Greasy Fork is available in English.

Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free

Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper

// ==UserScript==
// @name 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:pt-BR  Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:ar 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:bg 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:cs 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:da 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:de 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:el 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:eo 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:es 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:fi 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:fr 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:he 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:hu 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:id 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:it 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:ja 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:ko 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:nb 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:nl 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:pl 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:ro 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:ru 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:sk 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:sr 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:sv 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:th 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:tr 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:uk 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:ug 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:vi 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:zh-CN  Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @name:zh-TW  Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
// @namespace   http://savefrom.net/
// @license MIT
// @version     9.69.8
// @date        2022-01-24
// @author      Itproductdev Ltd
// @description			Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:pt-BR 	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:ar 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:bg 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:cs 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:da 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:de 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:el 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:eo 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:es 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:fi 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:fr 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:he 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:hu 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:id 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:it 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:ja 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:ko 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:nb 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:nl 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:pl 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:ro 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:ru 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:sk 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:sr 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:sv 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:th 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:tr 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:uk 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:ug 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:vi 		Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:zh-CN	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @description:zh-TW	Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free by SaveFrom.net helper
// @homepage    https://savefrom.net/user.php?helper=userjs
// @icon        https://sf-helper.com/img/icon_16.png
// @icon64      https://sf-helper.com/img/icon_64.png
// @include     http://*
// @include     https://*
// @run-at      document-end
// @grant       GM_listValues
// @grant       GM_setValue
// @grant       GM_getValue
// @grant       GM_deleteValue
// @grant       GM_xmlhttpRequest
// @grant       GM_info
// @grant       GM_openInTab
// @grant       GM_setClipboard
// @grant       GM_registerMenuCommand
// @grant       GM_unregisterMenuCommand
// @grant       GM_notification
// @grant       GM_download
// @grant       GM.info
// @grant       GM.listValues
// @grant       GM.setValue
// @grant       GM.getValue
// @grant       GM.deleteValue
// @grant       GM.openInTab
// @grant       GM.setClipboard
// @grant       GM.xmlHttpRequest
// @connect     vk.com
// @connect     vk.me
// @connect     userapi.com
// @connect     vkuseraudio.net
// @connect     vkuservideo.net
// @connect     vk-cdn.net
// @connect     youtube.com
// @connect     youtube-nocookie.com
// @connect     ytimg.com
// @connect     googlevideo.com
// @connect     video.google.com
// @connect     google-analytics.com
// @connect     api.amplitude.com
// @connect     dailymotion.com
// @connect     vimeo.com
// @connect     vimeocdn.com
// @connect     akamaized.net
// @connect     odnoklassniki.ru
// @connect     ok.ru
// @connect     cdn-ok.com
// @connect     mycdn.me
// @connect     storage.mds.yandex.net
// @connect     twitch.tv
// @connect     sf-helper.net
// @connect     televzr.com
// @connect     127.0.0.1
// @connect     pladform.ru
// @connect     clipyou.ru
// @connect     soundcloud.com
// @connect     sndcdn.com
// @connect     mail.ru
// @connect     176.9.38.116
// @connect     cdninstagram.com
// @connect     fbcdn.net
// @connect     facebook.com
// @connect     sf-helper.com
// @connect     savefr.com
// @connect     travelbar.tools
// @connect     promobar.tools
// @connect     savefrom.net
// @connect     self
// @connect     *
// ==/UserScript==
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=138)}([function(e,t,n){e.exports=n(73)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return R})),n.d(t,"hydrate",(function(){return P})),n.d(t,"createElement",(function(){return h})),n.d(t,"h",(function(){return h})),n.d(t,"Fragment",(function(){return v})),n.d(t,"createRef",(function(){return g})),n.d(t,"isValidElement",(function(){return i})),n.d(t,"Component",(function(){return b})),n.d(t,"cloneElement",(function(){return V})),n.d(t,"createContext",(function(){return B})),n.d(t,"toChildArray",(function(){return S})),n.d(t,"options",(function(){return r}));var r,i,o,a,s,l,u={},c=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var r,i,o,a=arguments,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[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 e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return m(e,s,r,i,null)}function m(e,t,n,i,o){var a={type:e,props:t,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 g(){return{current:null}}function v(e){return e.children}function b(e,t){this.props=e,this.context=t}function y(e,t){if(null==t)return e.__?y(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?y(e):null}function A(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return A(e)}}function w(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!k.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||a)(k)}function k(){for(var e;k.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,i,o,a;e.__d&&(o=(i=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=f({},i)).__v=i.__v+1,L(a,i,r,t.__n,void 0!==a.ownerSVGElement,null!=i.__h?[o]:null,n,null==o?y(i):o,i.__h),N(n,i),i.__e!=o&&A(i)))}))}function x(e,t,n,r,i,o,a,s,l,d){var f,p,h,g,b,A,w,k=r&&r.__k||c,x=k.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(g=n.__k[f]=null==(g=t[f])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g?m(null,g,null,null,g):Array.isArray(g)?m(v,{children:g},null,null,null):g.__b>0?m(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(h=k[f])||h&&g.key==h.key&&g.type===h.type)k[f]=void 0;else for(p=0;p<x;p++){if((h=k[p])&&g.key==h.key&&g.type===h.type){k[p]=void 0;break}h=null}L(e,g,h=h||u,i,o,a,s,l,d),b=g.__e,(p=g.ref)&&h.ref!=p&&(w||(w=[]),h.ref&&w.push(h.ref,null,g),w.push(p,g.__c||b,g)),null!=b?(null==A&&(A=b),"function"==typeof g.type&&null!=g.__k&&g.__k===h.__k?g.__d=l=C(g,l,e):l=M(e,g,h,k,b,l),d||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&h.__e==l&&l.parentNode!=e&&(l=y(h))}for(n.__e=A,f=x;f--;)null!=k[f]&&("function"==typeof n.type&&null!=k[f].__e&&k[f].__e==n.__d&&(n.__d=y(r,f+1)),F(k[f],k[f]));if(w)for(f=0;f<w.length;f++)j(w[f],w[++f],w[++f])}function C(e,t,n){var r,i;for(r=0;r<e.__k.length;r++)(i=e.__k[r])&&(i.__=e,t="function"==typeof i.type?C(i,t,n):M(n,i,i,e.__k,i.__e,t));return t}function S(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){S(e,t)})):t.push(e)),t}function M(e,t,n,r,i,o){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==i)break e;e.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function _(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function I(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||_(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||_(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?E:O,o):e.removeEventListener(t,o?E:O,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function O(e){this.l[e.type+!1](r.event?r.event(e):e)}function E(e){this.l[e.type+!0](r.event?r.event(e):e)}function L(e,t,n,i,o,a,s,l,u){var c,d,p,h,m,g,y,A,w,k,C,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,l=t.__e=n.__e,t.__h=null,a=[l]),(c=r.__b)&&c(t);try{e:if("function"==typeof S){if(A=t.props,w=(c=S.contextType)&&i[c.__c],k=c?w?w.props.value:c.__:i,n.__c?y=(d=t.__c=n.__c).__=d.__E:("prototype"in S&&S.prototype.render?t.__c=d=new S(A,k):(t.__c=d=new b(A,k),d.constructor=S,d.render=D),w&&w.sub(d),d.props=A,d.state||(d.state={}),d.context=k,d.__n=i,p=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,S.getDerivedStateFromProps(A,d.__s))),h=d.props,m=d.state,p)null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==S.getDerivedStateFromProps&&A!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(A,k),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(A,d.__s,k)||t.__v===n.__v){d.props=A,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,d.__h.length&&s.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(A,d.__s,k),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,m,g)}))}d.context=k,d.props=A,d.state=d.__s,(c=r.__r)&&c(t),d.__d=!1,d.__v=t,d.__P=e,c=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||(g=d.getSnapshotBeforeUpdate(h,m)),C=null!=c&&c.type===v&&null==c.key?c.props.children:c,x(e,Array.isArray(C)?C:[C],t,n,i,o,a,s,l,u),d.base=t.__e,t.__h=null,d.__h.length&&s.push(d),y&&(d.__E=d.__=null),d.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=T(n.__e,t,n,i,o,a,s,u);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(u||null!=a)&&(t.__e=l,t.__h=!!u,a[a.indexOf(l)]=null),r.__e(e,t,n)}}function N(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function T(e,t,n,r,i,o,a,s){var l,d,f,h,m=n.props,g=t.props,v=t.type,b=0;if("svg"===v&&(i=!0),null!=o)for(;b<o.length;b++)if((l=o[b])&&(l===e||(v?l.localName==v:3==l.nodeType))){e=l,o[b]=null;break}if(null==e){if(null===v)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),o=null,s=!1}if(null===v)m===g||s&&e.data===g||(e.data=g);else{if(o=o&&c.slice.call(e.childNodes),d=(m=n.props||u).dangerouslySetInnerHTML,f=g.dangerouslySetInnerHTML,!s){if(null!=o)for(m={},h=0;h<e.attributes.length;h++)m[e.attributes[h].name]=e.attributes[h].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||I(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||I(e,o,t[o],n[o],r)}(e,g,m,i,s),f)t.__k=[];else if(b=t.props.children,x(e,Array.isArray(b)?b:[b],t,n,r,i&&"foreignObject"!==v,o,a,e.firstChild,s),null!=o)for(b=o.length;b--;)null!=o[b]&&p(o[b]);s||("value"in g&&void 0!==(b=g.value)&&(b!==e.value||"progress"===v&&!b)&&I(e,"value",b,m.value,!1),"checked"in g&&void 0!==(b=g.checked)&&b!==e.checked&&I(e,"checked",b,m.checked,!1))}return e}function j(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function F(e,t,n){var i,o,a;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||j(i,null,t)),n||"function"==typeof e.type||(n=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&F(i[a],t,n);null!=o&&p(o)}function D(e,t,n){return this.constructor(e,n)}function R(e,t,n){var i,o,a;r.__&&r.__(e,t),o=(i="function"==typeof n)?null:n&&n.__k||t.__k,a=[],L(t,e=(!i&&n||t).__k=h(v,null,[e]),o||u,u,void 0!==t.ownerSVGElement,!i&&n?[n]:o?null:t.firstChild?c.slice.call(t.childNodes):null,a,!i&&n?n:o?o.__e:t.firstChild,i),N(a,e)}function P(e,t){R(e,t,P)}function V(e,t,n){var r,i,o,a=arguments,s=f({},e.props);for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);return null!=n&&(s.children=n),m(e.type,s,r||e.key,i||e.ref,null)}function B(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r={__e:function(e,t){for(var n,r,i;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),i=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),i=n.__d),i)return n.__E=n}catch(t){e=t}throw e},__v:0},i=function(e){return null!=e&&void 0===e.constructor},b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},b.prototype.render=v,o=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,k.__r=0,l=0},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(31);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(40),i=n(70),o=n(30),a=n(41);function s(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(67),i=n(68);function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){"use strict";n.r(t);t.default=function(e){var t=null;return(t=function(){}).t=t.log=t.info=t.warn=t.error=t.debug=t,t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(64),i=n(39),o=n(30),a=n(65);function s(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){"use strict";n.r(t);var r=n(13);t.default=function(e){return new Promise((function(t,n){Object(r.default)(e,(function(e,r){e?n(e):t(r)}))}))}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);var r=n(9),i=(Object(r.default)("webRequest"),!1),o=n(20),a=function(e){e=e.split(/\r?\n/);var t={};return e.forEach((function(e){var n=e.indexOf(":");if(-1!==n){var r=e.substr(0,n).trim().toLowerCase(),i=e.substr(n+1).trim();t[r]=i}})),t},s=function(){var e=this,t=null,n=function(t,n){e.readyState=n.readyState,e.status=n.status,e.statusText=n.statusText,"string"==typeof n.response&&(e.responseText=n.response),n.responseText&&(e.responseText=n.responseText),n.finalUrl&&(e.responseURL=n.finalUrl),e._responseHeaders=n.responseHeaders,e.onreadystatechange&&e.onreadystatechange(),e[t]&&e[t]()},r={headers:{},responseType:"text",onload:n.bind(null,"onload"),onerror:n.bind(null,"onerror"),onabort:n.bind(null,"onabort"),ontimeout:n.bind(null,"ontimeout")};this._responseHeaders="",this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.response="",this.responseType="",this.responseURL="",this.open=function(e,t){r.method=e,r.url=t},this.overrideMimeType=function(e){r.overrideMimeType=e},this.setRequestHeader=function(e,t){"cookie"===e.toLowerCase()&&""===t&&(r.anonymous=!0),r.headers[e]=t},this.getResponseHeader=function(e){return this._responseHeaders?(e=e.toLowerCase(),this.headers||(this.headers=a(this._responseHeaders)),this.headers.hasOwnProperty(e)?this.headers[e]:null):null},this.getAllResponseHeaders=function(){return this._responseHeaders},this.abort=function(){t&&t.abort()},this.send=function(e){r.data=e,t="function"==typeof GM_xmlhttpRequest?GM_xmlhttpRequest(r):GM.xmlHttpRequest(r)},this.onabort=null,this.onerror=null,this.onload=null,this.onreadystatechange=null,this.ontimeout=null};t.default=function(e,t){var n={},r=function(e,n){r=null,f.timeoutTimer&&clearTimeout(f.timeoutTimer);var i=null;e&&(i=String(e.message||e)||"ERROR"),t&&t(i,l(n),n)},l=function(e){var t={};t.statusCode=h.status,t.statusText=h.statusText;var n=null,r=h.getAllResponseHeaders();return"string"==typeof r&&(n=a(r)),t.headers=n||{},t.body=e,t.responseURL=h.responseURL,t};"object"!=typeof e&&(e={url:e});var u=e.url,c=e.method||e.type||"GET";c=c.toUpperCase();var d=e.data;"string"!=typeof d&&(d=o.stringify(d)),d&&"GET"===c&&(u+=(/\?/.test(u)?"&":"?")+d,d=void 0),!1===e.cache&&-1!==["GET","HEAD"].indexOf(c)&&(u+=(/\?/.test(u)?"&":"?")+"_="+Date.now()),e.headers=e.headers||{},d&&(e.headers["Content-Type"]=e.contentType||e.headers["Content-Type"]||"application/x-www-form-urlencoded; charset=UTF-8");var f={};f.url=u,f.method=c,d&&(f.data=d),e.json&&(f.json=!0),e.xml&&(f.xml=!0),e.timeout&&(f.timeout=e.timeout),e.mimeType&&(f.mimeType=e.mimeType),e.withCredentials&&(f.withCredentials=!0),Object.keys(e.headers).length&&(f.headers=e.headers),f.timeout>0&&(f.timeoutTimer=setTimeout((function(){r&&r(new Error("ETIMEDOUT")),h.abort()}),f.timeout));var p={0:200,1223:204},h=e.localXHR?new XMLHttpRequest:new s;h.open(f.method,f.url,!0),f.mimeType&&h.overrideMimeType(f.mimeType),f.withCredentials&&(h.withCredentials=!0);var m=[];for(var g in f.headers)i&&i.isSpecialHeader(g)&&m.push({key:g,value:f.headers[g]}),h.setRequestHeader(g,f.headers[g]);h.onload=function(){var e=p[h.status]||h.status;try{if(e>=200&&e<300||304===e){var t=h.responseText;if(f.json)t=JSON.parse(t);else if(f.xml)t=(new DOMParser).parseFromString(t,"text/xml");else if("string"!=typeof t)throw console.error("Response is not string!",t),new Error("Response is not string!");return r&&r(null,t)}throw new Error(h.status+" "+h.statusText)}catch(e){return r&&r(e)}};var v=h.onerror=function(){r&&r(new Error(h.status+" "+h.statusText))},b=null;void 0!==h.onabort?h.onabort=v:b=function(){4===h.readyState&&r&&setTimeout((function(){return v()}))},b&&(h.onreadystatechange=b);var y=function(){try{h.send(f.data||null)}catch(e){setTimeout((function(){r&&r(e)}))}};if(i&&m.length){i.requestPermission((function(e){e&&function(){for(var e,t=0;e=m[t];t++)h.setRequestHeader(i.wrapHeaderKey(e.key,e.value),e.value)}(),r&&y()}))}else y();return n.abort=function(){r=null,h.abort()},n}},function(e,t,n){"use strict";n.r(t),n.d(t,"useState",(function(){return m})),n.d(t,"useReducer",(function(){return g})),n.d(t,"useEffect",(function(){return v})),n.d(t,"useLayoutEffect",(function(){return b})),n.d(t,"useRef",(function(){return y})),n.d(t,"useImperativeHandle",(function(){return A})),n.d(t,"useMemo",(function(){return w})),n.d(t,"useCallback",(function(){return k})),n.d(t,"useContext",(function(){return x})),n.d(t,"useDebugValue",(function(){return C})),n.d(t,"useErrorBoundary",(function(){return S})),n.d(t,"createElement",(function(){return a.createElement})),n.d(t,"createContext",(function(){return a.createContext})),n.d(t,"createRef",(function(){return a.createRef})),n.d(t,"Fragment",(function(){return a.Fragment})),n.d(t,"Component",(function(){return a.Component})),n.d(t,"version",(function(){return ve})),n.d(t,"Children",(function(){return B})),n.d(t,"render",(function(){return $})),n.d(t,"hydrate",(function(){return ee})),n.d(t,"unmountComponentAtNode",(function(){return we})),n.d(t,"createPortal",(function(){return Y})),n.d(t,"createFactory",(function(){return be})),n.d(t,"cloneElement",(function(){return Ae})),n.d(t,"isValidElement",(function(){return ye})),n.d(t,"findDOMNode",(function(){return ke})),n.d(t,"PureComponent",(function(){return j})),n.d(t,"memo",(function(){return F})),n.d(t,"forwardRef",(function(){return P})),n.d(t,"unstable_batchedUpdates",(function(){return xe})),n.d(t,"StrictMode",(function(){return Ce})),n.d(t,"Suspense",(function(){return z})),n.d(t,"SuspenseList",(function(){return W})),n.d(t,"lazy",(function(){return H})),n.d(t,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return ue})),n.d(t,"unstable_ImmediatePriority",(function(){return ce})),n.d(t,"unstable_UserBlockingPriority",(function(){return de})),n.d(t,"unstable_NormalPriority",(function(){return fe})),n.d(t,"unstable_LowPriority",(function(){return pe})),n.d(t,"unstable_IdlePriority",(function(){return he})),n.d(t,"unstable_runWithPriority",(function(){return me})),n.d(t,"unstable_now",(function(){return ge}));var r,i,o,a=n(4),s=0,l=[],u=a.options.__b,c=a.options.__r,d=a.options.diffed,f=a.options.__c,p=a.options.unmount;function h(e,t){a.options.__h&&a.options.__h(i,e,s||t),s=0;var n=i.__H||(i.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function m(e){return s=1,g(L,e)}function g(e,t,n){var o=h(r++,2);return o.t=e,o.__c||(o.__=[n?n(t):L(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=i),o.__}function v(e,t){var n=h(r++,3);!a.options.__s&&E(n.__H,t)&&(n.__=e,n.__H=t,i.__H.__h.push(n))}function b(e,t){var n=h(r++,4);!a.options.__s&&E(n.__H,t)&&(n.__=e,n.__H=t,i.__h.push(n))}function y(e){return s=5,w((function(){return{current:e}}),[])}function A(e,t,n){s=6,b((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function w(e,t){var n=h(r++,7);return E(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function k(e,t){return s=8,w((function(){return e}),t)}function x(e){var t=i.context[e.__c],n=h(r++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(i)),t.props.value):e.__}function C(e,t){a.options.useDebugValue&&a.options.useDebugValue(t?t(e):e)}function S(e){var t=h(r++,10),n=m();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function M(){l.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(I),e.__H.__h.forEach(O),e.__H.__h=[]}catch(t){e.__H.__h=[],a.options.__e(t,e.__v)}})),l=[]}a.options.__b=function(e){i=null,u&&u(e)},a.options.__r=function(e){c&&c(e),r=0;var t=(i=e.__c).__H;t&&(t.__h.forEach(I),t.__h.forEach(O),t.__h=[])},a.options.diffed=function(e){d&&d(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==l.push(t)&&o===a.options.requestAnimationFrame||((o=a.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),_&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);_&&(t=requestAnimationFrame(n))})(M)),i=void 0},a.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(I),e.__h=e.__h.filter((function(e){return!e.__||O(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.options.__e(n,e.__v)}})),f&&f(e,t)},a.options.unmount=function(e){p&&p(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(I)}catch(e){a.options.__e(e,t.__v)}};var _="function"==typeof requestAnimationFrame;function I(e){var t=i;"function"==typeof e.__c&&e.__c(),i=t}function O(e){var t=i;e.__c=e.__(),i=t}function E(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function L(e,t){return"function"==typeof t?t(e):t}function N(e,t){for(var n in t)e[n]=t[n];return e}function T(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function j(e){this.props=e}function F(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:T(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Object(a.createElement)(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(j.prototype=new a.Component).isPureReactComponent=!0,j.prototype.shouldComponentUpdate=function(e,t){return T(this.props,e)||T(this.state,t)};var D=a.options.__b;a.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),D&&D(e)};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function P(e){function t(t,n){var r=N({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var V=function(e,t){return null==e?null:Object(a.toChildArray)(Object(a.toChildArray)(e).map(t))},B={map:V,forEach:V,count:function(e){return e?Object(a.toChildArray)(e).length:0},only:function(e){var t=Object(a.toChildArray)(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:a.toChildArray},U=a.options.__e;function z(){this.__u=0,this.t=null,this.__b=null}function q(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function H(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return Object(a.createElement)(n,i)}return i.displayName="Lazy",i.__f=!0,i}function W(){this.u=null,this.o=null}a.options.__e=function(e,t,n){if(e.then)for(var r,i=t;i=i.__;)if((r=i.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);U(e,t,n)},(z.prototype=new a.Component).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=q(r.__v),o=!1,a=function(){o||(o=!0,n.componentWillUnmount=n.__c,i?i(s):s())};n.__c=n.componentWillUnmount,n.componentWillUnmount=function(){a(),n.__c&&n.__c()};var s=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(a,a)},z.prototype.componentWillUnmount=function(){this.t=[]},z.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=N({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__e&&Object(a.createElement)(a.Fragment,null,e.fallback);return i&&(i.__h=null),[Object(a.createElement)(a.Fragment,null,t.__e?null:e.children),i]};var Q=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Z(e){return this.getChildContext=function(){return e.context},e.children}function G(e){var t=this,n=e.i;t.componentWillUnmount=function(){Object(a.render)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Object(a.render)(Object(a.createElement)(Z,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Y(e,t){return Object(a.createElement)(G,{__v:e,i:t})}(W.prototype=new a.Component).__e=function(e){var t=this,n=q(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Q(t,e,r)):i()};n?n(o):o()}},W.prototype.render=function(e){this.u=null,this.o=new Map;var t=Object(a.toChildArray)(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},W.prototype.componentDidUpdate=W.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Q(e,n,t)}))};var J="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,K=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,X=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function $(e,t,n){return null==t.__k&&(t.textContent=""),Object(a.render)(e,t),"function"==typeof n&&n(),e?e.__c:null}function ee(e,t,n){return Object(a.hydrate)(e,t),"function"==typeof n&&n(),e?e.__c:null}a.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(a.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var te=a.options.event;function ne(){}function re(){return this.cancelBubble}function ie(){return this.defaultPrevented}a.options.event=function(e){return te&&(e=te(e)),e.persist=ne,e.isPropagationStopped=re,e.isDefaultPrevented=ie,e.nativeEvent=e};var oe,ae={configurable:!0,get:function(){return this.class}},se=a.options.vnode;a.options.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var i in r={},n){var o=n[i];"value"===i&&"defaultValue"in n&&null==o||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===o?o="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!X(n.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():K.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[i]=o)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Object(a.toChildArray)(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Object(a.toChildArray)(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r}t&&n.class!=n.className&&(ae.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",ae)),e.$$typeof=J,se&&se(e)};var le=a.options.__r;a.options.__r=function(e){le&&le(e),oe=e.__c};var ue={ReactCurrentDispatcher:{current:{readContext:function(e){return oe.__n[e.__c].props.value}}}},ce=1,de=2,fe=3,pe=4,he=5;function me(e,t){return t()}var ge="object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):function(){return Date.now()},ve="16.8.0";function be(e){return a.createElement.bind(null,e)}function ye(e){return!!e&&e.$$typeof===J}function Ae(e){return ye(e)?a.cloneElement.apply(null,arguments):e}function we(e){return!!e.__k&&(Object(a.render)(null,e),!0)}function ke(e){return e&&(e.base||1===e.nodeType&&e)||null}var xe=function(e,t){return e(t)},Ce=a.Fragment;t.default={useState:m,useReducer:g,useEffect:v,useLayoutEffect:b,useRef:y,useImperativeHandle:A,useMemo:w,useCallback:k,useContext:x,useDebugValue:C,version:"16.8.0",Children:B,render:$,hydrate:ee,unmountComponentAtNode:we,createPortal:Y,createElement:a.createElement,createContext:a.createContext,createFactory:be,cloneElement:Ae,createRef:a.createRef,Fragment:a.Fragment,isValidElement:ye,findDOMNode:ke,Component:a.Component,PureComponent:j,memo:F,forwardRef:P,unstable_batchedUpdates:xe,StrictMode:a.Fragment,Suspense:z,SuspenseList:W,lazy:H,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ue}},function(e,t,n){"use strict";n.r(t);var r=n(23),i={create:function(e,t){var n,r;for(var i in n="object"!=typeof e?document.createElement(e):e,t){var a=t[i];(r=o[i])?r(n,a):n[i]=a}return n}},o={text:function(e,t){e.textContent=t},data:function(e,t){for(var n in t)e.dataset[n]=t[n]},class:function(e,t){if(Array.isArray(t))for(var n=0,r=t.length;n<r;n++)e.classList.add(t[n]);else e.setAttribute("class",t)},style:function(e,t){if("object"==typeof t)for(var n in t){var r=n;"float"===r&&(r="cssFloat");var i=t[n];if(Array.isArray(i))for(var o=0,a=i.length;o<a;o++)e.style[r]=i[o];else e.style[r]=i}else e.setAttribute("style",t)},append:function(e,t){Array.isArray(t)||(t=[t]);for(var n=0,r=t.length;n<r;n++){var i=t[n];(i||0===i)&&("object"!=typeof i&&(i=document.createTextNode(i)),e.appendChild(i))}},on:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,i=t.length;n<i;n++){var o=t[n];Array.isArray(o)&&r.default.on.apply(r.default,[e].concat(o))}},one:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,i=t.length;n<i;n++){var o=t[n];Array.isArray(o)&&r.default.one.apply(r.default,[e].concat(o))}},onCreate:function(e,t){t.call(e,e)},attr:function(e,t){var n,r;for(n in t)r=t[n],e.setAttribute(n,r)}};t.default=i},function(e,t,n){"use strict";n.r(t);t.default=function(e){return new Promise((function(t){return t(e())}))}},function(e,t,n){"use strict";n.r(t);t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t&&!Array.isArray(t)&&(t=[t]);for(var n,r=[],i={"{":0,"[":0},o={"}":"{","]":"["},a=/[{}\]\[":0-9.,-]/,s=/[\r\n\s\t]/,l="",u=0;n=e[u];u++)if('"'!==n)a.test(n)?(l+=n,"{"===n||"["===n?(i["{"]||i["["]||(l=n),i[n]++):"}"!==n&&"]"!==n||(i[o[n]]--,i["{"]||i["["]||r.push(l))):"t"===n&&"true"===e.substr(u,4)?(l+="true",u+=3):"f"===n&&"false"===e.substr(u,5)?(l+="false",u+=4):"n"===n&&"null"===e.substr(u,4)?(l+="null",u+=3):s.test(n)||(i["{"]=0,i["["]=0,l="");else{for(var c=u;-1!==c&&(c===u||"\\"===e[c-1]);)c=e.indexOf('"',c+1);-1===c&&(c=e.length-1),l+=e.substr(u,c-u+1),u=c,i["{"]||i["["]||r.push(l)}for(var d=[],f=function(e,n){var i=r[n];if("{}"===i||"[]"===i)return"continue";try{t.every((function(e){return e.test(i)}))&&d.push(JSON.parse(i))}catch(e){}},p=0,h=r.length;p<h;p++)f(h,p);return d}},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(6),o=n(8),a=n(3),s=n(19);function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(a.a)(e);if(t){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}var u=function(e){Object(i.a)(n,e);var t=l(n);function n(e,i){var o;return Object(r.a)(this,n),(o=t.call(this,e)).code=i,o}return n}(Object(s.a)(Error));t.default=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(47),i=n(31),o=n(71),a=n(72);function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return a(e,arguments,r(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),i(n,e)})(e)}},function(e,t,n){"use strict";t.decode=t.parse=n(81),t.encode=t.stringify=n(82)},function(e,t,n){"use strict";function r(e,t){for(var n,r=[];null!==(n=t.exec(e));)n.index===t.lastIndex&&t.lastIndex++,r.push(n);return r}n.r(t),n.d(t,"matchAll",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t);var r={on:function(e,t,n,r){e.addEventListener(t,n,r)},off:function(e,t,n,r){e.removeEventListener(t,n,r)},one:function(e,t,n,i){var o=["oneFn",t,!!i].join("_"),a=n[o];a||(n[o]=a=function(e){r.off(this,t,a,i),n.apply(this,arguments)}),r.on(e,t,a,i),e=null}},i="sf-removed-"+Math.floor(1e6*Math.random()),o="sf-notify-on-remove-"+Math.floor(1e6*Math.random());r.onRemoveEventName=i,r.onRemoveClassName=o,r.onRemoveListener=function(e){r.trigger(e,i,{cancelable:!0,bubbles:!1})},r.onRemoveEvent=function(e,t){e.classList.add(o),e.addEventListener(i,t)},r.offRemoveEvent=function(e,t){e.removeEventListener(r.onRemoveEventName,t)},r.trigger=function(e,t,n){void 0===n&&(n={}),void 0===n.bubbles&&(n.bubbles=!1),void 0===n.cancelable&&(n.cancelable=!1);var r=null;r="function"==typeof MouseEvent&&-1!==["click"].indexOf(t)?new MouseEvent(t,n):new CustomEvent(t,n),e.dispatchEvent(r)},t.default=r},function(e,t,n){"use strict";n.r(t);t.default=function(){switch(window.location.hostname){case"www.youtube.com":return"101";case"ok.ru":return"ok";case"vk.com":return"vk";case"music.yandex.ru":return"ya";case"www.facebook.com":case"web.facebook.com":return"fa";case"twitch.com":return"tw";case"www.instagram.com":return"in";case"my.mail.ru":return"ma";case"vimeo.com":return"vi";case"soundcloud.com":return"so";case"tiktok.com":return"ti";case"www.dailymotion.com":return"da";default:return""}}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){t&&!Array.isArray(t)&&(t=[t]);var n=[];return e.replace(/<script(?:\s*|\s[^>]+[^\/])>/g,(function(r,i){i+=r.length;var o=e.indexOf("<\/script>",i);if(-1!==o){var a=e.substr(i,o-i);t?t.every((function(e){return e.test(a)}))&&n.push(a):n.push(a)}})),n}},function(e,t,n){"use strict";n.r(t);t.default=function(){return"undefined"!=typeof MutationObserver?MutationObserver:"undefined"!=typeof WebKitMutationObserver?WebKitMutationObserver:"undefined"!=typeof MozMutationObserver?MozMutationObserver:n(76).default}},function(e,t,n){"use strict";n.r(t);var r=n(32),i={maxLength:80,rtrim:/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,illegalRe:/[\/?<>\\:*|"~\u202B]/g,controlRe:/[\x00-\x1f\x80-\x9f]/g,zeroWidthJoinerRe:/\u200D/g,reservedRe:/^\.+/,trim:function(e){return e.replace(this.rtrim,"")},partsRe:/^(.+)\.([a-z0-9]{1,4})$/i,getParts:function(e){return e.match(this.partsRe)},specialChars:"nbsp,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,times,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,divide,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml".split(","),specialCharsList:[["amp","quot","lt","gt"],[38,34,60,62]],specialCharsRe:/&([^;]{2,6});/g,decodeSpecialChars:function(e){var t=this;return e.replace(this.specialCharsRe,(function(e,n){var r=null;if("#"===n[0])return r=parseInt(n.substr(1)),isNaN(r)?"":String.fromCharCode(r);var i=t.specialCharsList[0].indexOf(n);return-1!==i?(r=t.specialCharsList[1][i],String.fromCharCode(r)):-1!==(i=t.specialChars.indexOf(n))?(r=i+160,String.fromCharCode(r)):""}))},decodeHexChars:function(e){return e.replace(/(\\x[a-zA-Z0-9]{2})/g,(function(e,t){var n=t;try{n=String.fromCharCode(parseInt("0x"+n.substr(2),16))}catch(e){}return n}))},rnRe:/\r?\n/g,re1:/[*?"]/g,re2:/</g,re3:/>/g,spaceRe:/[\s\t\uFEFF\xA0]+/g,dblRe:/(\.|!|\?|_|,|-|:|\+){2,}/g,re4:/[.,:;\/\-_+=']$/g,modify:function(e){if(!e)return"";e=Object(r.default)(e);try{e=decodeURIComponent(e)}catch(t){e=unescape(e)}if(e=(e=this.decodeSpecialChars(e)).replace(this.rnRe," "),(e=(e=this.trim(e)).replace(this.zeroWidthJoinerRe,"").replace(this.re1,"").replace(this.re2,"(").replace(this.re2,"(").replace(this.re3,")").replace(this.spaceRe," ").replace(this.dblRe,"$1").replace(this.illegalRe,"_").replace(this.controlRe,"").replace(this.reservedRe,"").replace(this.re4,"")).length>this.maxLength){var t=this.getParts(e);t&&3==t.length&&(t[1]=t[1].substr(0,this.maxLength),e=t[1]+"."+t[2])}return this.trim(e)}};t.default=i},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=null;n=!(t=t||{}).params&&/\?/.test(e)?e.match(/[^?]*\?(.*)/)[1]:e;for(var r=t.sep||"&",i=n.split(r),o={},a=0,s=i.length;a<s;a++){var l=i[a].split("="),u=l[0],c=l[1]||"";if(t.noDecode)o[u]=c;else{try{u=decodeURIComponent(u)}catch(e){u=unescape(u)}try{o[u]=decodeURIComponent(c)}catch(e){o[u]=unescape(c)}}}return o}},function(e,t,n){"use strict";n.r(t);t.default=function(e){return new Promise((function(t){return setTimeout(t,e)}))}},function(e,t,n){var r=n(54);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r=/\\(\\u[0-9a-f]{4})/g;t.default=function(e){try{return JSON.parse(JSON.stringify(e).replace(r,"$1"))}catch(t){return e}}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=(new DOMParser).parseFromString("<html><body>"+e+"</body></html>","text/html");if(t){var r=n.head.querySelector("base");r||((r=n.createElement("base")).href=t,n.head.appendChild(r))}return n}},function(e,t,n){"use strict";n.r(t);t.default=function(e){var t=function(e){for(var t=e[0],n=0;;){if(-1===(n=e.indexOf(t,n+1))){n=e.length;break}if("\\"!==e[n-1])break}var r="";try{r='"'===t?JSON.parse('"'+e.substr(1,n-1)+'"'):JSON.parse('"'+e.substr(1,n-1).replace(/\\'/g,"'").replace(/"/g,'\\"')+'"')}catch(e){}return{data:r,i:n}},n={"[":function(e){var t,r,i,o,a,s=[],l="";for(o=1;i=e[o];o++)if(r=n[i])t=r(e.substr(o)),l=JSON.stringify(t.data),o+=t.i;else{if("]"===i)break;","===i?(l&&s.push(l),l=""):l+=i}l&&s.push(l);try{a=JSON.parse("["+s.join(",")+"]")}catch(e){}return{data:a||[],i:o}},"{":function(e){var t,r,i,o,a,s=[],l=["",""],u=0;for(o=1;i=e[o];o++)if(r=n[i])t=r(e.substr(o)),l[u]=0===u?t.data:JSON.stringify(t.data),o+=t.i;else{if("}"===i)break;":"===i?u=1:","===i?(s.push(JSON.stringify(l[0])+":"+l[1]),l=["",""],u=0):l[u]=(l[u]+i).trim()}l[1]&&s.push(JSON.stringify(l[0])+":"+l[1]);try{a=JSON.parse("{"+s.join(",")+"}")}catch(e){}return{data:a||{},i:o}},'"':t,"'":t};return{some:function(t){return function(e,t){for(var r,i,o=0;i=e[o];o++)if(("["===i||"{"===i)&&(o+=(r=n[i](e.substr(o))).i,t(r.data)))return!0}(e,t)}}}},function(e,t,n){"use strict";n.r(t);var r=function(e,t){var n=document.createElement("div");return r="function"==typeof n.matches?function(e,t){return e.matches(t)}:"function"==typeof n.matchesSelector?function(e,t){return e.matchesSelector(t)}:"function"==typeof n.webkitMatchesSelector?function(e,t){return e.webkitMatchesSelector(t)}:"function"==typeof n.mozMatchesSelector?function(e,t){return e.mozMatchesSelector(t)}:"function"==typeof n.oMatchesSelector?function(e,t){return e.oMatchesSelector(t)}:"function"==typeof n.msMatchesSelector?function(e,t){return e.msMatchesSelector(t)}:function(e,t){return!1},n=null,r(e,t)};t.default=function(e,t){return r(e,t)}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.r(t);var r=n(16);t.default=function(e){return[function(t){return Object(r.default)(e).then((function(){return t}))},function(t){return Object(r.default)(e).then((function(){throw t}))}]}},function(e,t,n){"use strict";n.r(t);var r=n(7),i=n(1),o=n(2),a=n(16),s=function(){function e(t,n){var o=this;Object(i.a)(this,e),this.finishQueue=function(){if(o.activeCount--,o.queue.length>0){var e=o.queue.shift(),t=Object(r.a)(e,2),n=t[0],i=t[1];o.runQueue(n,i)}},this.limit=t,this.maxQueue=n,this.queue=[],this.activeCount=0}return Object(o.a)(e,[{key:"add",value:function(e){var t=null,n=new Promise((function(e){t=e}));if(this.activeCount<this.limit)this.runQueue(e,t);else{var r=[e,t],i=this.queue.push(r);this.maxQueue&&i>this.maxQueue&&this.queue.splice(0,i-this.maxQueue)}return n}},{key:"runQueue",value:function(e,t){this.activeCount++;var n=Object(a.default)(e);t(n),n.then(this.finishQueue,this.finishQueue)}}]),e}();t.default=function(e,t){var n=new s(e,t);return function(e){return n.add(e)}}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r=null;t.default=function(e,t){if(!r){var n=document.createElement("div");"function"==typeof n.matches?r=function(e,t){return e.matches(t)}:"function"==typeof n.matchesSelector?r=function(e,t){return e.matchesSelector(t)}:"function"==typeof n.webkitMatchesSelector?r=function(e,t){return e.webkitMatchesSelector(t)}:"function"==typeof n.mozMatchesSelector&&(r=function(e,t){return e.mozMatchesSelector(t)}),n=null}return r(e,t)}},function(e,t,n){"use strict";n.r(t);var r=n(24);t.default=function(e){switch(Object(r.default)()){case"101":return"video";case"ya":return"track";case"in":if(e.el.className.includes("story"))return"story";if(e.el.download.includes("mp4"))return"video";case"ma":if(0===Object.keys(e).length)return"track";if(e.el.download.includes("mp4"))return"video";case"vk":return 0===Object.keys(e).length?"track":e.el.download.includes("jpg")||e.el.download.includes("png")?"photo":"video";case"fa":return 0===Object.keys(e).length?"photo":"video";case"vi":return"video";case"sc":case"ok":return"track";case"da":return"video";default:return""}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(69);function i(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);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<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],l=t.base?o[0]+t.base:o[0],u=n[l]||0,c="".concat(l," ").concat(u);n[l]=u+1;var d=s(c),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:c,updater:g(f,t),references:1}),r.push(c)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,d=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function g(e,t){var n,r,i;if(t.singleton){var o=m++;n=h||(h=u(t)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=u(t),r=p.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=l(e,t),u=0;u<n.length;u++){var c=s(n[u]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=o}}}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);t.default=function e(t,n){var r=[];Array.isArray(t)||(t=[t]),n&&!Array.isArray(n)&&(n=[n]);var i=function(e,t){var n=[];for(var r in t){var i=t[r];"cssFloat"===r&&(r="float");var o=r.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()}));n.push(o+":"+i)}return n.length?[e.join(","),"{",n.join(";"),"}"].join(""):""},o=function(e,t){if(Array.isArray(t)||(t=[t]),n){var r=[],i=e.join||""===e.join?e.join:" ";n.forEach((function(e){t.forEach((function(t){r.push(e+i+t)}))})),t=r}return t};return t.forEach((function(t){var a=null,s=t.media,l=t.selector,u=t.style,c=t.append;if(s&&c)r.push([s,"{",e(c,n),"}"].join(""));else if(l||u)a=o(t,l),r.push(i(a,u)),c&&r.push(e(c,a));else for(var d in t)-1===["append","join"].indexOf(d)&&(l=d,(c=(u=t[d]).append)&&delete u.append,a=o(t,l),r.push(i(a,u)),c&&r.push(e(c,a)))})),r.join("")}},function(e,t,n){"use strict";n.r(t);var r=n(9),i=Object(r.default)("extensionMarker"),o="savefrom-helper-extension",a={getItem:function(e){var t=null;try{t=window.sessionStorage.getItem(e)}catch(t){i.error("getItem error",e,t)}return t},setItem:function(e,t){try{window.sessionStorage.setItem(e,t)}catch(n){i.error("setMarker error",e,t,n)}},hash:function(e){var t=e.length,n=0,r=0;if(t>0)for(;r<t;)n=(n<<5)-n+e.charCodeAt(r++)|0;return""+n},getMarker:function(){var e=null;return"undefined"!=typeof GM_info&&(e=GM_info.script&&GM_info.script.uuid),e||"undefined"!=typeof GM&&(e=GM.info&&GM.info.script&&GM.info.script.uuid),e||(e="userscript"),this.hash(""+e)},getCurrentMarker:function(){return this.getItem(o)},setMarker:function(e){return this.setItem(o,e)},getFallbackMarker:function(){return this.getItem("".concat(o,"-fallback"))},setFallbackMarker:function(){return this.setItem("".concat(o,"-fallback"),"1")},isSingle:function(){var e=this.getMarker(),t=this.getCurrentMarker();return"1"===t&&null===this.getFallbackMarker()&&(this.setFallbackMarker(),t=null),null===t&&this.setMarker(t=e),t===e}};t.default=a},function(e,t,n){"use strict";n.r(t),t.default=function(e){e=e?e+"_":"";var t=Date.now();return e+Math.floor(1e12*(t-Math.floor(t))).toString(36)+Math.floor(1e12*Math.random()).toString(36)}},function(e,t,n){"use strict";n.r(t);t.default=function(){return parseInt(Date.now()/1e3,10)}},function(e,t,n){"use strict";n.r(t);t.default=function(){return"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"}},function(e,t,n){"use strict";n.r(t);t.default=function(e){return function(t){return e.some((function(e){return function(e,t){var n=e.matches.test(t);return n&&e.exclude_matches&&(n=!e.exclude_matches.test(t)),n&&e.include_globs&&(n=e.include_globs.test(t)),n&&e.exclude_globs&&(n=!e.exclude_globs.test(t)),n}(e,t)}))}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(14);t.default=function(e,t){var n=document.createElement("div");if("string"==typeof t)if(document.getElementById(t))t=document.getElementById(t);else{var o=document.createElement("div");o.setAttribute("id",t),(t=o).style.position="fixed",t.style.bottom="20px",t.style.right="30px",t.style.display="flex",t.style.flexDirection="column-reverse",t.style.overflowX="hidden",t.style.overflowY="scroll",t.style.zIndex="100000",t.style.maxHeight="95%",document.body.appendChild(t)}function a(){n&&(Object(i.unmountComponentAtNode)(n),n=null)}return Object(r.render)(Object(i.createPortal)(Object(i.cloneElement)(e,{unmountLayer:a}),t),n),a}},function(e,t,n){"use strict";n.r(t);var r=n(14);t.default=function(e){var t=e.locals,n=e.use,i=e.unuse;return r.default.useMemo(n,[]),r.default.useEffect((function(){return i}),[]),t}},function(e,t,n){"use strict";n.r(t);t.default=function(){return window.top!==window.self}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=null;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(r,i)}),t)}}},function(e,t,n){"use strict";n.r(t);var r=n(29),i=n(9),o=Object(i.default)("retryFn");t.default=function e(t,n){return n().catch((function(i){if(t.retries<=1)throw o.error("The number of attempts has been exhausted",i.message),i;return Object(r.default)(t.timeout).then((function(){return o.warn("retry",i.message),e({timeout:t.timeout,retries:--t.retries},n)}))}))}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e?function e(t,n){var r;r=Array.isArray(t)?[]:{};n.push(t),Object.keys(t).forEach((function(i){var o=t[i];"function"!=typeof o&&(o&&"object"==typeof o?-1!==n.indexOf(t[i])?r[i]="[Circular]":r[i]=e(t[i],n.slice(0)):r[i]=o)})),"string"==typeof t.name&&(r.name=t.name);"string"==typeof t.message&&(r.message=t.message);"string"==typeof t.stack&&(r.stack=t.stack);return r}(e,[]):"function"==typeof e?"[Function: "+(e.name||"anonymous")+"]":e}},function(e,t,n){var r=n(96).default;e.exports=r},function(e,t,n){"use strict";n.r(t);var r=n(9),i=Object(r.default)("focusSwitcher");t.default=function(){var e,t={waitFocus:null,removeListeners:null},n=function(){i.info("focus out"),t.isFocus=!1};return window.addEventListener("blur",n,{once:!0}),t.waitFocus=new Promise((function(t){e=function(){i.info("focus in"),t()},window.addEventListener("focus",e,{once:!0})})),t.removeListeners=function(){window.removeEventListener("focus",e),window.removeEventListener("blur",n)},t}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(54);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(47);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(31),i=n(85);function o(t,n,a){return i()?(e.exports=o=Reflect.construct,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},e.exports.default=e.exports,e.exports.__esModule=!0),o.apply(null,arguments)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=A(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c={};function d(){}function f(){}function p(){}var h={};h[i]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,i)&&(h=g);var v=p.prototype=d.prototype=Object.create(h);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function A(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,A(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=v.constructor=p,p.constructor=f,f.displayName=s(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(y.prototype),y.prototype[o]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new y(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),s(v,a,"Generator"),v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";e.exports=a,e.exports.preferredLanguages=a;var r=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function i(e,t){var n=r.exec(e);if(!n)return null;var i=n[1],o=n[2],a=i;o&&(a+="-"+o);var s=1;if(n[3])for(var l=n[3].split(";"),u=0;u<l.length;u++){var c=l[u].split("=");"q"===c[0]&&(s=parseFloat(c[1]))}return{prefix:i,suffix:o,q:s,i:t,full:a}}function o(e,t,n){var r=i(e);if(!r)return null;var o=0;if(t.full.toLowerCase()===r.full.toLowerCase())o|=4;else if(t.prefix.toLowerCase()===r.full.toLowerCase())o|=2;else if(t.full.toLowerCase()===r.prefix.toLowerCase())o|=1;else if("*"!==t.full)return null;return{i:n,o:t.i,q:t.q,s:o}}function a(e,t){var n=function(e){for(var t=e.split(","),n=0,r=0;n<t.length;n++){var o=i(t[n].trim(),n);o&&(t[r++]=o)}return t.length=r,t}(void 0===e?"*":e||"");if(!t)return n.filter(u).sort(s).map(l);var r=t.map((function(e,t){return function(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}(e,n,t)}));return r.filter(u).sort(s).map((function(e){return t[r.indexOf(e)]}))}function s(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.full}function u(e){return e.q>0}},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(2),o=n(26),a=n(42),s={addedNodes:"added",removedNodes:"removed"},l=Object.keys(s),u=function(){function e(t){Object(r.a)(this,e),this.target=t.target||document.body,this.options=t.options||{childList:!0,subtree:!0},this.filterTarget=t.filterTarget||[],this.queries=t.queries,this.observer=null,this.init()}return Object(i.a)(e,[{key:"init",value:function(){var e=this,t=Object(o.default)();this.observer=new t((function(t){for(var n=null;n=t.shift();)e._isAvailableTarget(n.target)&&e._match(n)})),this.start()}},{key:"start",value:function(){this._disconnect(),this._connect(),this.trigger(this.target)}},{key:"trigger",value:function(e){this._match({addedNodes:[e],removedNodes:[]})}},{key:"stop",value:function(){this._disconnect()}},{key:"_match",value:function(e){for(var t,n=this.queries,r=0;t=n[r];r++){for(var i,o={target:e.target,added:[],removed:[]},u=0;i=l[u];u++){var c=s[i];if(void 0===t.is||t.is===c)for(var d,f=o[c],p=e[i],h=0;d=p[h];h++)1===d.nodeType&&(Object(a.default)(d,t.css)?f.push(d):f.push.apply(f,d.querySelectorAll(t.css)))}(o.added.length||o.removed.length)&&t.callback(o)}}},{key:"_isAvailableTarget",value:function(e){for(var t,n=this.filterTarget,r=0;t=n[r];r++)if(Object(a.default)(e,t.css))return!1;return!0}},{key:"_connect",value:function(){this.observer.observe(this.target,this.options)}},{key:"_disconnect",value:function(){this.observer.disconnect()}}],[{key:"isAvailable",value:function(){return!!Object(o.default)()}}]),e}();t.default=u},function(e,t,n){"use strict";n.r(t);
// @url https://github.com/webcomponents/webcomponentsjs
// @version 0.7.15
var r,i,o=void 0!==o?o:void 0;void 0===o&&(r=Object.defineProperty,i=Date.now()%1e9,(o=function(){this.name="__st"+(1e9*Math.random()>>>0)+i+++"__"}).prototype={set:function(e,t){var n=e[this.name];return n&&n[0]===e?n[1]=t:r(e,this.name,{value:[e,t],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];return!(!t||t[0]!==e||(t[0]=t[1]=void 0,0))},has:function(e){var t=e[this.name];return!!t&&t[0]===e}});var a=void 0!==a?a:void 0;!function(){if(void 0===a){var e,t=new o;if("undefined"!=typeof navigator&&/Trident|Edge/.test(navigator.userAgent))e=setTimeout;else if(window.setImmediate)e=window.setImmediate;else{var n=[],r=String(Math.random());window.addEventListener("message",(function(e){if(e.data===r){var t=n;n=[],t.forEach((function(e){e()}))}})),e=function(e){n.push(e),window.postMessage(r,"*")}}var i,s,l=!1,u=[],c=0;(a=function(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++c}).prototype={observe:function(e,n){var r;if(r=e,e=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(r)||r,!n.childList&&!n.attributes&&!n.characterData||n.attributeOldValue&&!n.attributes||n.attributeFilter&&n.attributeFilter.length&&!n.attributes||n.characterDataOldValue&&!n.characterData)throw new SyntaxError;var i,o=t.get(e);o||t.set(e,o=[]);for(var a=0;a<o.length;a++)if(o[a].observer===this){(i=o[a]).removeListeners(),i.options=n;break}i||(i=new v(this,e,n),o.push(i),this.nodes_.push(e)),i.addListeners()},disconnect:function(){this.nodes_.forEach((function(e){for(var n=t.get(e),r=0;r<n.length;r++){var i=n[r];if(i.observer===this){i.removeListeners(),n.splice(r,1);break}}}),this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},v.prototype={enqueue:function(t){var n,r=this.observer.records_,i=r.length;if(r.length>0){var o=g(r[i-1],t);if(o)return void(r[i-1]=o)}else n=this.observer,u.push(n),l||(l=!0,e(d));r[i]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var n=t.get(e);n||t.set(e,n=[]),n.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach((function(e){this.removeListeners_(e);for(var n=t.get(e),r=0;r<n.length;r++)if(n[r]===this){n.splice(r,1);break}}),this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,r=e.target;(a=new h("attributes",r)).attributeName=t,a.attributeNamespace=n;var o=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;f(r,(function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(n)))return e.attributeOldValue?m(o):a}));break;case"DOMCharacterDataModified":var a=h("characterData",r=e.target);o=e.prevValue;f(r,(function(e){if(e.characterData)return e.characterDataOldValue?m(o):a}));break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var l,u,c=e.target;"DOMNodeInserted"===e.type?(l=[c],u=[]):(l=[],u=[c]);var d=c.previousSibling,p=c.nextSibling;(a=h("childList",e.target.parentNode)).addedNodes=l,a.removedNodes=u,a.previousSibling=d,a.nextSibling=p,f(e.relatedNode,(function(e){if(e.childList)return a}))}i=s=void 0}}}function d(){l=!1;var e=u;u=[],e.sort((function(e,t){return e.uid_-t.uid_}));var n=!1;e.forEach((function(e){var r=e.takeRecords();!function(e){e.nodes_.forEach((function(n){var r=t.get(n);r&&r.forEach((function(t){t.observer===e&&t.removeTransientObservers()}))}))}(e),r.length&&(e.callback_(r,e),n=!0)})),n&&d()}function f(e,n){for(var r=e;r;r=r.parentNode){var i=t.get(r);if(i)for(var o=0;o<i.length;o++){var a=i[o],s=a.options;if(r===e||s.subtree){var l=n(s);l&&a.enqueue(l)}}}}function p(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function h(e,t){return i=new p(e,t)}function m(e){return s||((n=new p((t=i).type,t.target)).addedNodes=t.addedNodes.slice(),n.removedNodes=t.removedNodes.slice(),n.previousSibling=t.previousSibling,n.nextSibling=t.nextSibling,n.attributeName=t.attributeName,n.attributeNamespace=t.attributeNamespace,n.oldValue=t.oldValue,(s=n).oldValue=e,s);var t,n}function g(e,t){return e===t?e:s&&((n=e)===s||n===i)?s:null;var n}function v(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}}(),t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"showTooltip",(function(){return h})),n.d(t,"hideTooltip",(function(){return m}));var r=n(12),i=n(1),o=n(2),a=n(15),s=n(23),l=n(48),u=n(24),c=n(43);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(i.a)(this,e),this.target=t,this.options=Object.assign({content:"",defaultWidth:0,defaultHeight:0},n),this.handleMouseleave=this.handleMouseleave.bind(this),this.isVisible=!1,this.timeout=null}return Object(o.a)(e,[{key:"handleMouseleave",value:function(){this.hide()}},{key:"show",value:function(e){if(this.isVisible)this.startHideTimeout();else{this.node||(this.node=this.createTooltip(e)),this.isVisible=!0;var t=document.body;t&&(this.node.classList.add("hidden"),t.appendChild(this.node),this.setPos(),this.node.classList.remove("hidden")),this.target.addEventListener("mouseleave",this.handleMouseleave),this.startHideTimeout()}}},{key:"hide",value:function(){var e=this;this.isVisible&&(this.isVisible=!1,this.stopHideTimeout(),this.node.classList.add("hidden"),this.target.removeEventListener("mouseleave",this.handleMouseleave),setTimeout((function(){if(!e.isVisible&&e.node){var t=e.node.parentNode;t&&t.removeChild(e.node),e.node=null}}),250))}},{key:"startHideTimeout",value:function(){var e=this;this.stopHideTimeout(),this.timeout=setTimeout((function(){e.hide()}),3e3)}},{key:"stopHideTimeout",value:function(){clearTimeout(this.timeout)}},{key:"createTooltip",value:function(e){return a.default.create("div",{class:["sf-paper-tooltip-ctr"],append:[a.default.create("div",{class:"sf-paper-tooltip",style:f({display:"flex",align:"center"},"in"==Object(u.default)()?{flexDirection:"row"}:""),append:[a.default.create("span",{style:f({paddingTop:"6px"},"in"==Object(u.default)()?{width:"30px",height:"20px"}:""),text:"Hold"}),a.default.create("div",{style:{margin:"4px 4px 0 4px",width:"27px",height:"18px",backgroundColor:"black",borderRadius:"5px",border:"1px solid black",borderBottom:"3px solid black"},append:[a.default.create("div",{style:{fontWeight:"bold",fontSize:"8px",textAlign:"center",zIndex:1,position:"relative",width:"27px",height:"18px",backgroundColor:"white",color:"black",borderRadius:"5px"},append:[a.default.create("span",{style:f({display:"inline-block"},"in"!=Object(u.default)()?{marginTop:"5px"}:""),text:"option"})]})]}),a.default.create("span",{style:f({paddingTop:"6px"},"in"==Object(u.default)()?{width:"60px"}:""),text:"and click"})]}),a.default.create("style",{text:Object(l.default)({".sf-paper-tooltip-ctr":{display:"block",outline:"none",userSelect:"none",cursor:"default",position:"absolute",zIndex:1e4,transition:"opacity 0.25s",width:"180px"},".sf-paper-tooltip-ctr.hidden":{opacity:0},".sf-paper-tooltip":{display:"block",outline:"none",fontFamily:"Arial",fontSize:"14px",fontWeight:"bold",backgroundColor:"#4D4D4D",borderRadius:"8px",color:"white",padding:"8px",margin:"8px",marginBottom:"0"}})}),"photo"!==Object(c.default)(e)&&"story"!=Object(c.default)(e)?a.default.create("div",{style:{position:"relative",left:"15px",width:"0",height:"0",borderColor:"#4D4D4D transparent transparent transparent",borderStyle:"solid",borderWidth:"8px 8px 0 8px"}}):""]})}},{key:"setPos",value:function(){var e=window,t=e.pageXOffset,n=e.pageYOffset,r=e.innerWidth,i=e.innerHeight,o=i+n,a=r+t,s=this.node.getBoundingClientRect();s.width||s.height||(s.width=this.options.defaultWidth,s.height=this.options.defaultHeight);var l=this.target.getBoundingClientRect(),c={},d=["top","bottom","left","right"].map((function(e){var u=null,d=null,f=0;if(-1!==["left","right"].indexOf(e)){var p=(l.height-s.height)/2;if(u=Math.round(l.top+n+p),s.height<i){var h=u+s.height;h>o&&(u-=h-o,f=1),u<0&&(u=0,f=1)}}else"top"===e?u=Math.round(l.top+n)-s.height:"bottom"===e&&(u=Math.round(l.top+n)+l.height);if(-1!==["top","bottom"].indexOf(e)){var m=(l.width-s.width)/2;if(d=Math.round(l.left+t+m),s.width<r){var g=d+s.width;g>a&&(d-=g-a,f=1),d<0&&(d=0,f=1)}}else"left"===e?d=Math.round(l.left+t-s.width):"right"===e&&(d=Math.round(l.left+t+l.width));var v=d+s.width,b=u+s.height,y=s.width,A=s.height,w=y;u<0&&(A-=-1*u),b>o&&(A-=b-o),d<0&&(w-=-1*d),v>a&&(w-=v-a);var k=100/(s.width*s.height)*(w*A)-f;return c[e]={top:u,left:d,quality:k}}));d.sort((function(e,t){var n=e.quality,r=t.quality;return n===r?0:n>r?-1:1}));var f=d[0],p=65;"101"==Object(u.default)()&&window.innerWidth>=1293&&window.innerHeight>=768&&(p=35),this.node.style.top=f.top+"px",this.node.style.left=f.left+p+"px"}}]),e}(),h=function(e,t,n){if(!(e.dataset.sfTitleTooltip>0)){e.dataset.sfTitleTooltip=1;var r=new p(e,t);e.addEventListener("show_tooltip",(function(){r.show(n)})),e.addEventListener("hide_tooltip",(function(){r.hide()}))}s.default.trigger(e,"show_tooltip")},m=function(e){e.dataset.sfTitleTooltip>0&&s.default.trigger(e,"hide_tooltip")}},function(e,t,n){"use strict";n.r(t);var r=n(35);t.default=function(e,t){if(!e||1!==e.nodeType)return null;if(e.closest)return e.closest(t);if(Object(r.default)(e,t))return e;if(!Object(r.default)(e,t+" "+e.tagName))return null;for(var n=e=e.parentNode;n;n=n.parentNode){if(1!==n.nodeType)return null;if(Object(r.default)(n,t))return n}return null}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=!0;if(t){if(!Array.isArray(e)){var r=e;e=r.args||[],r.disableJson&&(n=!1)}}else t=e,e=[];var i="sf-bridge-"+parseInt(1e3*Math.random(),10)+"-"+Date.now();return new Promise((function(r){window.addEventListener(i,(function e(t){window.removeEventListener(i,e),r(t.detail)}));var o="(function(fn,args,id,useJson){var scriptNode=document.getElementById(id);if(scriptNode){scriptNode.parentNode.removeChild(scriptNode)}return new Promise(function(r){return r(fn.apply(null,args))}).then(function(result){return{result:result}},function(err){return{err:serializeError(err)}}).then(function(result){if(useJson){try{result=JSON.stringify(result)}catch(err){result=JSON.stringify({err:serializeError(err)})}}var e=new CustomEvent(id,{detail:result});window.dispatchEvent(e)});function serializeError(err){return{name:err.name,message:err.message,code:err.code,stack:err.stack}}})("+[t].concat([e,i,n].map((function(e){return JSON.stringify(e)}))).join(",")+")",a=document.createElement("script");a.id=i,a.textContent=o,document.body.appendChild(a)})).then((function(e){n&&(e=JSON.parse(e));var t=e,r=t.err,i=t.result;if(r)throw Object.assign(new Error,r);return i}))}},function(e,t,n){"use strict";n.r(t);t.default=function(e){return"data-"+e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var d,f,p,h,m=e[c].replace(s,"%20"),g=m.indexOf(n);g>=0?(d=m.substr(0,g),f=m.substr(g+1)):(d=m,f=""),p=decodeURIComponent(d),h=decodeURIComponent(f),r(a,p)?i(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){Array.isArray(t)||(t=[t]);for(var n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;for(var r,i=0;r=t[i];i++)if(n.classList.contains(r))return n}return null}},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(2),o=n(26),a=function(){function e(t){Object(r.a)(this,e),this.target=t.target,this.options=t.options||{attributes:!0,childList:!1,attributeOldValue:!0,attributeFilter:[]},this.attrs=t.attrs,this.observer=null,this.init()}return Object(i.a)(e,[{key:"init",value:function(){var e=this;this.attrs.forEach((function(t){e.options.attributeFilter.push(t.name)}));var t=Object(o.default)();this.observer=new t((function(t){for(var n;n=t.shift();)e._match(n)})),this.start()}},{key:"trigger",value:function(){for(var e,t=this.attrs,n=0;e=t[n];n++){var r=this.target.getAttribute(e.name);null!==r&&e.callback({value:r,oldValue:null})}}},{key:"start",value:function(){this._disconnect(),this._connect()}},{key:"stop",value:function(){this._disconnect()}},{key:"_match",value:function(e){for(var t,n=this.attrs,r=0;t=n[r];r++)t.name===e.attributeName&&t.callback({value:e.target.getAttribute(e.attributeName),oldValue:e.oldValue})}},{key:"_connect",value:function(){this.observer.observe(this.target,this.options)}},{key:"_disconnect",value:function(){this.observer.disconnect()}}],[{key:"isAvailable",value:function(){return!!Object(o.default)()}}]),e}();t.default=a},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.r(t);var r=n(14).default.createContext({});t.default=r},function(e,t,n){"use strict";n.r(t),n.d(t,"srcIcons",(function(){return o}));var r=n(14),i=r.default.memo((function(e){var t=e.className,n=e.name;return r.default.createElement("img",{className:t,src:o[n]})})),o={televzr:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABN2lDQ1BBZG9iZSBSR0IgKDE5OTgpAAAokZWPv0rDUBSHvxtFxaFWCOLgcCdRUGzVwYxJW4ogWKtDkq1JQ5ViEm6uf/oQjm4dXNx9AidHwUHxCXwDxamDQ4QMBYvf9J3fORzOAaNi152GUYbzWKt205Gu58vZF2aYAoBOmKV2q3UAECdxxBjf7wiA10277jTG+38yH6ZKAyNguxtlIYgK0L/SqQYxBMygn2oQD4CpTto1EE9AqZf7G1AKcv8ASsr1fBBfgNlzPR+MOcAMcl8BTB1da4Bakg7UWe9Uy6plWdLuJkEkjweZjs4zuR+HiUoT1dFRF8jvA2AxH2w3HblWtay99X/+PRHX82Vun0cIQCw9F1lBeKEuf1UYO5PrYsdwGQ7vYXpUZLs3cLcBC7dFtlqF8hY8Dn8AwMZP/fNTP8gAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAXRaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzE0NSA3OS4xNjM0OTksIDIwMTgvMDgvMTMtMTY6NDA6MjIgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjAtMDMtMTBUMTQ6MDc6MzQrMDM6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIwLTAzLTEwVDE0OjE5OjIwKzAzOjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTAzLTEwVDE0OjE5OjIwKzAzOjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo4YmRjOTI1Yy0yZjM0LTYzNDEtYmYwYi00MzViNTYwMTQ3ODEiIHhtcE1NOkRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo1ZGExNzMyZi1kYjdkLWYxNGYtYjI5Mi1kYzY1M2Y0OTA2M2QiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0Njc5MTViOC1jYWVlLWIxNDgtODdhZi00NTJhMTNiZTMyNjAiPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjQ2NzkxNWI4LWNhZWUtYjE0OC04N2FmLTQ1MmExM2JlMzI2MCIgc3RFdnQ6d2hlbj0iMjAyMC0wMy0xMFQxNDowNzozNCswMzowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo4YmRjOTI1Yy0yZjM0LTYzNDEtYmYwYi00MzViNTYwMTQ3ODEiIHN0RXZ0OndoZW49IjIwMjAtMDMtMTBUMTQ6MTk6MjArMDM6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5pQ7PdAAAHUUlEQVRYhcWXXYxdVRXHf2vvc869dz7uzNy2Q0lbamkppZRQLZYa0BCE1JSPGjAtEH0Bow9GDQbKkw8+NYqJaKLE+KCJlWgiUj6SGlpIlBaYSi3wUCHWh0I7nc709s505s49956z9/LhnPsx01af0H2zc/a5+5y91/6v//qvdURV+X+2YNG9AQQotP9QVVFVVUVU1YF2bG6PRFAQLwIgKiKIQHYVgHK+dgOIgc6pew2wqvq0c/5x7x3eK6rgvUfVA4JXhR7E2iNpXyUbGzHdCRGMGMQI1poz1tpbRWQSSAGV/BBr0jS9u9lKfqnek6aOOG5Srzfo6y9hrSFNXG6Morkhcw7enIG6g9AIRSuUrDAQGsqhYSgylCNDX2AoGCEwYIxNwij8KIrC7cC/RFWjJEl3xHH8wtzcPEeOHOPo0fc5ffostQszbLrpeh555H5WrLgqg8kajDEdeN++CL8/p8ROwSt4j6jDeEeonpJ4yhYqkbB+MGTLkoihyFIoFs4WCtE1kqbplvp842i1Om1+8fN9HDp4mLjZQuj6ccuWTTz+vUfZvHnjJSRyCi9X4aXz2f5d/2RIqfd45/BJAvE814UJD68usbwU0N9futXu2fPUh81mq/i7fS/y/B8P4L3HGoMx0jnl6dPneOut4/T1lVi7bjVBYGkz0QCrizCdwqm4y4eME4IYiwkCbBRhiiUmY890PWZj2WJUHzNJkg5OTEzx2qEjqGqbtQuatYazZyfZu/dZfvz0r5g8dx4RQVXxqhRFeWCpcmOf4ton73SP+qwjQjg4yAcNw6l6SpK0jHHeMzExRbVa6yx6uS4iNJtNnnvuJfbs+SHHj58AJIsUVUassntUWRVpN1oWd+8RI7RsyETsQRXjVWm1Epzzl5wc71HnekIvc8nY2Hs8+cRe/vT8n2m1WgCkXlkZKbuXKcM2M+Kyh/GKipD47BmTTfRGdt5V6b/+BipfuBM7MIB615mzVhgfP8fevc/yzDO/plqdzoxwnhv6PDuXeCK60Kv3oB6875ITUK8EGZk0+2kuHgoSWEbve4DhLduYOf43Jl74A/WTH3YUR4wQxzH7fruf8fFzPPnkN7jqqqV459k2AB/Nw+u1TJzyoMgH0nGJV8W0xSWTtbbSKWIMJsoUufzpW1jz3acY3fFlbF//Ircohw4e5mc//Q2zs3WcV4x67hzyjAYe5xYiod51Eei6IEeh59obw5qkBEMjXL3rq1zzze/Qt/Y6tMddIsLrr7/Ju8dPoKqkqadiPeuLHu88urj77h6mlyy03UCGSNti7xw+TUGV8s238KlvPUH5ps9ki+dAzM83+OCDkzjnSJ1DnWPUOmi/n/cMPZ+7wGcc6LCgvXmbE/kLmkeIAmIUOzCILZc7hCKHM262SNM8ZwA4ULcwsBQyFHLyB93kQh7vdMbqPT7NTgECRojPnGHywItMjx2m/bAqhKFl5crlOOdwziHAVAw+BbNA2yTnQRYUwYIMt8AFmkGWptl8mjDz96NMHdhPY/zjXDEFFJxzbNq0kRtvXE+rlaCqzDv452xu+2J5cR5VWYhA5gLfjUOfJRBVpTkxztTBV5g+egTfjEFMx1DvPWuuXcWjj+1icLCfVitBgLEZOFXPl1pkgDqHqs0M8NoVnm55pmjSojb2BvHZM9Te+gvx6VM55NIJVYDNmzfy2NcfYu3a1TSbLYwIJ+fhtSlI04XJqYtAinqDX4CA5nog7XoLamOHqY0dzjY00iWoVwqFiC/edTu7dt1LpTJCs9nK/J7Ay5NQi7NXLldx+jRFNUDVEHjfzYBdFyxqQq5e4NWzbGmFB79yD3fc8TmiKKTZbCLAnINXpjIVNFwKfa8LRD3qITAGRirDDA7202g0EHM50GhLAxs2rOPhh3Zy/Ya1GT+aWTJKPByswT8uZo9fhnudFqJUQsGpEhQLRZYuq/DZrTfz8kuvYrCXgKBeiaKQ2z9/Kzt3bqeyZIQ4bnXBAd6+CO/UrnzqdnPec12lxIoihGFIMDJU3jo/3zj64K57GB+f4Ng773fyv0hWCVdGhrnn3ru47batRFFI3Ig7Cwpwog5vXMhQ6K1nekQ1u1dYWY740soSRQMjw0M7RFVt9cL0TybOV79dq9Y49OpfOfbOe0xNVpmdq3P18lHuu38769at6VHK7uYfN+FAFWZ6GJ+V54I1QmQNpdAyXAy4drjItuUllhWEyshQffnosmFRVauqvjZ98QdT1QvfbyUJcdxkdnaOizOzDJXLDAz0k7SSTGad75TnsVPenIHzqRAaIbJCKbRZWV4IGC5YhgqWwcjQZ4WCUYLAsmRkWJcuqWy1xrwrqto2fFWz1dp9ca7+o0ajQZKkpM6RpmmWUlUX4CtkVXCi+fcHWdiZPGKMCMYIxhpCGxCEIaViUcuD/V8rFor7RfBAfMUa8D/10+MT0h6f+viM9M6dmzov5y/URFWpzzfkv63V/jL6pNvi2O4UmYs/Tj+pdqVTqvkfGXDF9m/pUjcFDUhV2wAAAABJRU5ErkJggg==",check:"data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill='green' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M497.36,69.995c-7.532-7.545-19.753-7.558-27.285-0.032L238.582,300.845l-83.522-90.713c-7.217-7.834-19.419-8.342-27.266-1.126c-7.841,7.217-8.343,19.425-1.126,27.266l97.126,105.481c3.557,3.866,8.535,6.111,13.784,6.22c0.141,0.006,0.277,0.006,0.412,0.006c5.101,0,10.008-2.026,13.623-5.628L497.322,97.286C504.873,89.761,504.886,77.54,497.36,69.995z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M492.703,236.703c-10.658,0-19.296,8.638-19.296,19.297c0,119.883-97.524,217.407-217.407,217.407c-119.876,0-217.407-97.524-217.407-217.407c0-119.876,97.531-217.407,217.407-217.407c10.658,0,19.297-8.638,19.297-19.296C275.297,8.638,266.658,0,256,0C114.84,0,0,114.84,0,256c0,141.154,114.84,256,256,256c141.154,0,256-114.846,256-256C512,245.342,503.362,236.703,492.703,236.703z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3Cg%3E%3C/g%3E%3C/svg%3E",warning:"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M256,0C114.497,0,0,114.507,0,256c0,141.503,114.507,256,256,256c141.503,0,256-114.507,256-256C512,114.497,397.493,0,256,0z M256,472c-119.393,0-216-96.615-216-216c0-119.393,96.615-216,216-216c119.393,0,216,96.615,216,216C472,375.393,375.385,472,256,472z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cpath d='M256,128.877c-11.046,0-20,8.954-20,20V277.67c0,11.046,8.954,20,20,20s20-8.954,20-20V148.877C276,137.831,267.046,128.877,256,128.877z'/%3E%3C/g%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Ccircle cx='256' cy='349.16' r='27'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E",circleLoading:"data:image/svg+xml,%3Csvg enable-background='new 0 0 497 497' viewBox='0 0 497 497' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Ccircle cx='98' cy='376' fill='%23909ba6' r='53'/%3E%3Ccircle cx='439' cy='336' fill='%23c8d2dc' r='46'/%3E%3Ccircle cx='397' cy='112' fill='%23e9edf1' r='38'/%3E%3Cellipse cx='56.245' cy='244.754' fill='%237e8b96' rx='56.245' ry='54.874'/%3E%3Cellipse cx='217.821' cy='447.175' fill='%23a2abb8' rx='51.132' ry='49.825'/%3E%3Cellipse cx='349.229' cy='427.873' fill='%23b9c3cd' rx='48.575' ry='47.297'/%3E%3Cellipse cx='117.092' cy='114.794' fill='%235f6c75' rx='58.801' ry='57.397'/%3E%3Cellipse cx='453.538' cy='216.477' fill='%23dce6eb' rx='43.462' ry='42.656'/%3E%3Ccircle cx='263' cy='62' fill='%234e5a61' r='62'/%3E%3C/g%3E%3C/svg%3E"};t.default=i},function(e,t,n){"use strict";n.r(t);var r=n(15);t.default=function e(t,n){if(n=n||{},"string"==typeof t){if("["!==t[0])return document.createTextNode(t);try{t=t.replace(/"/g,"\\u0022").replace(/\\'/g,"\\u0027").replace(/'/g,'"').replace(/([{,])\s*([a-zA-Z0-9]+):/g,'$1"$2":'),t=JSON.parse(t)}catch(e){return document.createTextNode(t)}}if(!Array.isArray(t))return document.createTextNode(t);for(var i=n.fragment||document.createDocumentFragment(),o=0,a=t.length;o<a;o++){var s=t[o];if("object"==typeof s)for(var l in s){var u=s[l],c=u.append;delete u.append;var d;i.appendChild(d=r.default.create(l,u)),void 0!==c&&e(c,{fragment:d})}else i.appendChild(document.createTextNode(s))}return i}},function(e,t,n){"use strict";n.r(t);var r=/^[^{]+\{\s*\[native \w/,i=function(e,t){return(i=r.test(document.compareDocumentPosition)||r.test(document.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1}).apply(this,arguments)};t.default=function(e,t){return i(e,t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"instanceCreate",(function(){return u})),n.d(t,"instanceInit",(function(){return c})),n.d(t,"instanceCallFn",(function(){return d})),n.d(t,"instanceDestroy",(function(){return f})),n.d(t,"buildInstance",(function(){return p}));var r=n(10),i=n(16),o=n(18),a=n(37),s=new Map,l=0,u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];l>1e5&&(l=0);for(var n,r=0;0===r||s.has(r);)r=++l;var i=new Promise((function(e){n=e}));return s.set(r,{initFn:e,onInit:n,whenInit:i}),{id:r,methods:t}},c=function(e){var t,n=m(e),s=null;try{n.init=n.initFn(),n.onInit()}catch(e){s=e,n.onInit(Promise.reject(new o.default("call initFn error","CALL_INIT_FN_ERROR")))}if(n.initFn=n.onInit=void 0,(t=Object(i.default)((function(){return n.init}))).then.apply(t,Object(r.a)(Object(a.default)((function(){f(e)})))),s)throw s;return n.init},d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=m(e);return r.whenInit.then((function(){var e=g(r.init,t),i=e.scope;return i[e.endPoint].apply(i,n)}))},f=function(e){s.delete(e)},p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];e.instanceInit=e.instanceInit||"instanceInit",e.instanceCallFn=e.instanceCallFn||"instanceCallFn";var r=null,a={id:null,whenInit:new Promise((function(e){r=e}))};return a.resultPromise=Object(i.default)(t).then((function(t){var n=t.id,i=t.methods;a.id=n;var o=e.apiCall(e.instanceInit,{id:n});return o.then((function(){a.id=null}),(function(e){a.id=null})),h(a,i,e),r(),o}),(function(e){throw r(Promise.reject(new o.default("Init remote instance error","INIT_REMOTE_INSTANCE_ERROR"))),e})),h(a,n,e),a.resultPromise};function h(e,t,n){for(var r,i=function(t,r){if(e.resultPromise.hasOwnProperty(r))return"continue";e.resultPromise[r]=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return e.whenInit.then((function(){if(!e.id)throw new o.default("Instance is done","INSTANCE_DONE");return n.apiCall(n.instanceCallFn,{id:e.id,path:r,args:i})}))}},a=0;r=t[a];a++)i(0,r)}function m(e){var t=s.get(e);if(!t)throw new o.default("Instance is not found","INSTANCE_IS_NOT_FOUND");return t}function g(e,t){for(var n=t.split("."),r=n.pop(),i=e;n.length;)i=i[n.shift()];return{scope:i,endPoint:r}}},function(e,t,n){"use strict";n.r(t),t.default=function(e){return e()||function(){}}},function(e,t,n){"use strict";n.r(t),t.default=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},function(e,t,n){"use strict";n.r(t);t.default=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++){var r=arguments[t];for(var i in r)void 0!==r[i]&&(delete e[i],e[i]=r[i])}return e}},function(e,t,n){"use strict";n.r(t);t.default={animation:"none 0s ease 0s 1 normal none running",backfaceVisibility:"visible",background:"transparent none repeat 0 0 / auto auto padding-box border-box scroll",border:"medium none currentColor",borderCollapse:"separate",borderImage:"none",borderRadius:"0",borderSpacing:"0",bottom:"auto",boxShadow:"none",boxSizing:"content-box",captionSide:"top",clear:"none",clip:"auto",color:"inherit",columns:"auto",columnCount:"auto",columnFill:"balance",columnGap:"normal",columnRule:"medium none currentColor",columnSpan:"1",columnWidth:"auto",content:"normal",counterIncrement:"none",counterReset:"none",cursor:"auto",direction:"ltr",display:"inline",emptyCells:"show",float:"none",font:"normal normal normal normal medium/normal inherit",height:"auto",hyphens:"none",left:"auto",letterSpacing:"normal",listStyle:"disc outside none",margin:"0",maxHeight:"none",maxWidth:"none",minHeight:"0",minWidth:"0",opacity:"1",orphans:"0",outline:"medium none invert",overflow:"visible",overflowX:"visible",overflowY:"visible",padding:"0",pageBreakAfter:"auto",pageBreakBefore:"auto",pageBreakInside:"auto",perspective:"none",perspectiveOrigin:"50% 50%",position:"static",right:"auto",tabSize:"8",tableLayout:"auto",textAlign:"inherit",textAlignLast:"auto",textDecoration:"none solid currentColor",textIndent:"0",textShadow:"none",textTransform:"none",top:"auto",transform:"none",transformOrigin:"50% 50% 0",transformStyle:"flat",transition:"none 0s ease 0s",unicodeBidi:"normal",verticalAlign:"baseline",visibility:"visible",whiteSpace:"normal",widows:"0",width:"auto",wordSpacing:"normal",zIndex:"auto",all:"initial"}},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(2),o=n(16),a=n(9),s=n(60),l=n(61),u=Object(a.default)("mediaMuxer:transport"),c=function(){},d=new WeakMap,f=function(){function e(t,n){var i=this;Object(r.a)(this,e),this.listener=function(e,t,n){switch(e.action){case"callFn":return i.responseFn(e,n),!0}},this.callFn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=i;return n.waitPromise({action:"callFn",fn:e,args:t})},this.scope=n,this.pageId=parseInt(1e3*Math.random(),10),this.callbackId=0,this.callbackIdCallback={},this.listeners=[],this.transport=t,this.onMessage(this.listener)}return Object(i.a)(e,[{key:"onMessage",value:function(e){var t=this,n=this.listeners,r=this.callbackIdCallback;!n.length&&this.transport.onMessage((function(e,i){if(i.responseId){var o=r[i.responseId];o?o(i.message):u.error("Callback is not found",i)}else{var a;a=i.callbackId?function(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}((function(e){t.transport.sendMessage({responseId:i.callbackId,message:e})})):c;var s=null;n.forEach((function(t){try{var n=t(i.message,{event:e},a);!0===n&&(s=n)}catch(e){u.error("Call listener error",e)}})),!0!==s&&a()}})),n.push(e)}},{key:"sendMessage",value:function(e,t){var n=this.callbackIdCallback,r={message:e};if(t){r.callbackId=this.pageId+ ++this.callbackId;var i=function(e){delete n[r.callbackId],t(e)};d.has(t)&&(d.delete(t),d.set(i,!0)),n[r.callbackId]=i}try{this.transport.sendMessage(r)}catch(e){throw delete n[r.callbackId],e}}},{key:"waitPromise",value:function(e){var t=this;return new Promise((function(n,r){var i=function(e){return e.err?r(l(e.err)):n(e.result)};d.set(i,!0),t.sendMessage(e,i)}))}},{key:"responsePromise",value:function(e,t){return e.then((function(e){t({result:e})}),(function(e){t({err:s(e)})})).catch((function(e){console.error("responsePromise error",e)})),!0}},{key:"resolvePath",value:function(e){for(var t=e.split("."),n=t.pop(),r=this.scope;t.length;)r=r[t.shift()];return{scope:r,endPoint:n}}},{key:"responseFn",value:function(e,t){var n=this,r=Object(o.default)((function(){var t=n.resolvePath(e.fn),r=t.scope;return r[t.endPoint].apply(r,e.args)}));return this.responsePromise(r,t)}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function i(e){return e&&"object"===(void 0===e?"undefined":r(e))&&"string"==typeof e.name&&"string"==typeof e.message}t.default=function(e){return i(e)?Object.assign(new Error,{stack:void 0},e):e},t.isSerializedError=i},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(6),o=n(8),a=n(3),s=n(19);function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(a.a)(e);if(t){var i=Object(a.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(o.a)(this,n)}}var u=function(e){Object(i.a)(n,e);var t=l(n);function n(e){var i;return Object(r.a)(this,n),(i=t.call(this,"Response is not ok ".concat(e.status," (").concat(e.statusText,")"))).name="ErrorFetchResponse",void 0!==e.url&&(i.url=e.url),i.status=e.status,i}return n}(Object(s.a)(Error));t.default=u},function(e,t,n){"use strict";n.r(t);function r(e){return"function"==typeof GM_xmlhttpRequest?GM_xmlhttpRequest(e):GM.xmlHttpRequest(e)}function i(e){var t=e.split(/\r?\n/),n=new Headers;return t.forEach((function(e){var t=e.indexOf(":");if(-1!==t){var r=e.substr(0,t).trim(),i=e.substr(t+1).trim();n.append(r,i)}})),n}function o(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.signal;return new Promise((function(a,s){if(n.aborted)return s(new DOMException("Aborted","AbortError"));var l=null,u=null,c=new Promise((function(e,t){u=e,l=function(e){(d||"AbortError"!==e.name)&&t(e)}})),d=!1,f={arrayBuffer:function(){return d=!0,c},text:function(){return f.arrayBuffer().then(o)},json:function(){return f.text().then(JSON.parse)},blob:function(){return f.arrayBuffer().then((function(e){return new Blob([e])}))}},p=r({method:t.method||"GET",url:e,headers:t.headers,data:t.body,responseType:"arraybuffer",onload:function(e){u(e.response)},onerror:function(){s(new TypeError("Network request failed"))},ontimeout:function(){s(new TypeError("Network request failed"))},onabort:function(){s(new DOMException("Aborted","AbortError"))},onreadystatechange:function(e){2===e.readyState&&(f.url=e.finalUrl,f.status=e.status,f.ok=f.status>=200&&f.status<300,f.statusText=e.statusText,f.headers=i(e.responseHeaders),s=l,a(f))}});n.addEventListener("abort",(function(){p.abort()}))}))}},function(e,t,n){"use strict";n.r(t);var r=0;function i(e){return e.returnValue=!0}t.default=function(){1===++r&&window.addEventListener("beforeunload",i);var e=!1;return function(){e||(e=!0,0==--r&&window.removeEventListener("beforeunload",i))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"ICON_DOWNLOAD",(function(){return r})),n.d(t,"ICON_DOWNLOAD_DISABLE",(function(){return i})),n.d(t,"ICON_PLAYLIST",(function(){return o})),n.d(t,"ICON_LOADING",(function(){return a})),n.d(t,"styles",(function(){return s}));var r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAPklEQVR42mNgGHTgvw/DfxgexJqBiuYja8CD55NrwHxyXTCfWP/OJ0sjFgPmkxvXCWRFDy6MT3MDITw40j8Ak46HYQ4gDfUAAAAASUVORK5CYII=",i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAVklEQVQoz2P4//8/A7mYgSqa0UF9ff1/GEaXG0SagYrmI2vAg+djtZkIA+bjdTYeA+YT5WcsBswnNcDmY9NIlGaoAQnYxHEFGMHQxqe5gRDGqpnuGQMALmDKhkjc9oYAAAAASUVORK5CYII=",o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAMUlEQVR42mL8//8/A7mAiYECwILC82Uk7IzN/xmpYjPjqJ9H/UxTP1OkGQAAAP//AwDcahUV6UvyJwAAAABJRU5ErkJggg==",a="data:image/gif;base64,R0lGODlhHgAeAKUAAAQCBISGhMzKzERCROTm5CQiJKSmpGRmZNza3PT29DQyNLS2tBQWFJyanFRSVHx6fNTS1Ozu7CwqLKyurGxubOTi5Pz+/Dw6PLy+vBweHKSipFxaXAQGBIyKjMzOzExKTCQmJKyqrGxqbNze3Pz6/DQ2NBwaHJyenHx+fNTW1PTy9MTCxFxeXP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCQAtACwAAAAAHgAeAAAGtMCWcEgcegoZT3HJFCYIpOEBADg0r84S5zHUADgaIiKKFXqoIMsQAiEmCquykORgNMoJOZGsb5IQan1lFh8ALIJFJAZ5QioMABmIRBUMSkMnAxOSRCqbnp+ggionKaFFIgAmjKAGEhUUkHyfISUECRMjprq7vKAYLAKfJAudQwoAA58nAAFEHQwnnwQUCL3WfSEb1VcqAZZyIABcVwYADn0aH6VzBwd8ESjBniMcHBW9ISF9QQAh+QQJCQAzACwAAAAAHgAeAIUEAgSEgoTEwsRMTkzk4uQkIiSkoqRsamzU0tT08vQ0MjQUEhRcWly0trSUkpR0dnQMCgzMyszs6uzc2tz8+vw8OjyMioxUVlQsKiysqqxkYmS8vrx8fnwEBgSEhoTExsRUUlTk5uR0cnTU1tT09vQ0NjQcGhxcXly8urycnpx8enwMDgzMzszs7uzc3tz8/vw8PjwsLiysrqz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGt8CZcEgcumCVSXHJFL4SRA4A8BhSJq1m8TVYOIaoTqcxPAAKEu2Q0AGUiCHCkGSaktXCgymjVnVKUHiCQxIUaoGDgwcdKolMAoZOBQAxjkUJBS5EDSAollufoaKjohQbIaRLHgAYkaQsJyQWlK6jCCcUFAKoqb2+v74jD0qiLyy1AwAMoygAKUQGBTKjLQFywNiOHwFZWhQpmoMVAF9aGwAaiRkX4TMvKiIvcxYjowkrEN2/ER+JQQAh+QQJCQAuACwAAAAAHgAeAIUEAgSEgoTExsREQkSkoqTs6uxkZmQcHhyUkpTU1tS0trT09vQUEhRUUlR0dnSMiozMzsysqqw0NjQMCgxMSkz08vQsKiycnpzk4uS8vrz8/vx8fnyEhoTMysxERkSkpqTs7uxsbmwkIiSUlpTc2ty8urz8+vwcGhxUVlR8enyMjozU0tSsrqwMDgz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGtkCXcEgcglCNQnHJHGqIIwDgQSwsmsvQITLstFqCYWAiuWKFiwmAQgSBhiaLtHMWSzLnUYtirvvRf4FLFQpKQw8tI4JEJhIAIm9CjgOLQwVqAAlDAgYQlUMbDAYmn1h9paipGiuRqUQXAAOkrhgOJrADT64kKaQJFa7BwsPDGCOtn8BEKAAbqBgMYUMREtKfJiynxNt+CQ/ISxoK4FjMF2cJACmBHQ7ICCqMBBioJgcns8Mkmn9BACH5BAkJADEALAAAAAAeAB4AhQQCBIyKjERGRMTGxCQiJOTm5GRiZKyqrNTW1BQSFDQyNJyanPT29HR2dFxaXMzOzGxqbMTCxNze3BwaHDw6PKSipAwKDExOTCwqLOzu7LS2tPz+/AQGBJSSlMzKzCQmJGRmZKyurNza3BQWFDQ2NJyenPz6/Hx6fFxeXNTS1GxubOTi5BweHDw+PKSmpFRSVPTy9P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa1wJhwSBwyVCpYcclsHgCACpFhai4DpMhQwpoghqXEq2odjgAooolBbEFF5WFH4Cm7WKhNfM/vx00PbEMVHyF+RS8AJGQxFwAOh0YJABwFQykNcJFCHQQneptNoKGkpUIFjKUHECkHHBCmMQ9QLC4AILGzACwxK6mkJSAPscTFpBkHSqSjQicAAccfEkQDFymlEb/G23EFFYJWBcxlEAAaZTAJLn0IAcpCIetEHuCbChjcK5Z8QQAh+QQJCQAzACwAAAAAHgAeAIUEAgSEgoTEwsRMTkzk4uQkIiSkoqRsamz08vTU0tQ0NjS0srQUEhSUkpRcWlx8enwMCgyMiozs6uwsKiz8+vzc2ty8urzMysysqqx0cnQ8PjxkYmQEBgSEhoTExsRUUlTk5uQkJiSkpqRsbmz09vTU1tQ8Ojy0trQcHhycmpxcXlx8fnwMDgyMjozs7uwsLiz8/vzc3ty8vrz///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGuMCZcEgcUjodSnHJbMoAAEtzOjQMSkPQJAQaLkIjKjEEyBBhyuEAwEGIhRhHhWp5md/4vL4JghExGhd7RAcAH35CHwArg0MoACxuQjENLo1CIgoNl5ydnmIkn0IyHQQeDA+fMRAAJgIsd50xHAAKMy6IngsPc6K+v1RpQyQCwoMrKAe5LQAplxKsAFhCCRsxlxQKACiSoi4nEsBvCBa5TaF5KwAJwQUCeQQp6NTsRCXmgyoO4iTGVEEAIfkECQkAMQAsAAAAAB4AHgCFBAIEhIaExMbEREJE5ObkpKakJCIkZGJklJaU1NbU9Pb0FBIUtLa0NDI0VFJUdHJ0zM7M7O7snJ6cvL68PDo8fHp8DAoMjI6MTEpM5OLk/P78HB4cjIqMzMrMREZE7OrsrKqsLC4snJqc3Nrc/Pr8FBYUvLq8NDY0XFpcdHZ01NLU9PL0pKKkxMLEPD48fH58DA4M////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABrrAmHBIHGpYLE1xyWxCAABVczoEoQjDlcu1GrYoFyqxAUAQNSTiAbAQeysRasdldtvv+Gaa2HGM8kQBAClEDwAcgEMhABtKQgQSXYkxDBggk5iZmpt3ECIRCRt1mREwAA4qJWGaHxanMXubLRxYnLa3eSQJjokIIYhDLAAmkysLABa1MSMpcYkaAwAnsZsKAgqbEdRUGspNFTAU2G4FJZJMCiVQxG4rHUUj3msbzokpFUQKKueJJNtTQQAAIfkECQkANAAsAAAAAB4AHgCFBAIEhIKExMLEREJE5OLkZGJkpKKkJCIk1NLUVFJUdHJ0tLK0lJKU9PL0NDY0FBYUzMrMbGpsrKqsLCos3NrcXFpc/Pr8DAoMjI6MTEpMfH58vL68nJqcBAYEhIaExMbE5ObkZGZkpKakJCYk1NbUVFZUdHZ0tLa09Pb0PDo8HBoczM7MbG5srK6sLC4s3N7cXF5c/P78TE5MnJ6c////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABrRAmnBIJEpaxaRySXsBOiCmlPbRNIaoEMsyRMhE02EGIJEqAJOwcBW4MkklpHpOr0tJrKhdyHlgiAEAYHs0AwAORA0LKIQ0EDACjZKTlJVMLy0oIA4LlCgqAAoEI2WTDQ8ALJZCCDNuq7CxUq97IgMGRB8PenYxoA+MQg0SMY0VADLFlhYUXJPOc8FMDA8l0FIbB8prCEMWBwAAJGrMRDNPpTRnDtJ1BeERQzEg7XUfKiPdYUEAIfkECQkAMQAsAAAAAB4AHgCFBAIEhIKExMLEVFJU5OLkJCIkpKakbG5s9PL0FBIUlJKU1NbUNDI0vLq8fHp8DAoMjIqMzMrMXFpc7Ors/Pr8LCostLK0dHZ0HB4cnJ6c3N7cPD48BAYEhIaExMbEVFZU5ObkJCYkrKqsdHJ09Pb0FBYUlJaU3NrcNDY0vL68fH58DA4MjI6MzM7MXF5c7O7s/P78////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABrXAmHBIJHpaxaRyGXs9SiSmNLZQRIWUg4N4+limQxdAIGUBNmChJkORvlSRtHxOnxICr/pQVDEQTQApekIfAANEFBEwg1QXC4yQkZKTTBMCFCQuj5EUFQAsJBKbkBQhABCUQiApbamur1OLjA0fDVwFV3qeIYhkjCMcI695TBTElC8MKwFSBgUHaRYAABitMRoERJ4cIGAgGADQQiIcD4JCLAkDslMIC+wj08xDL+x1Cygb2WBBACH5BAkJADEALAAAAAAeAB4AhQQCBISChMTCxERGROTi5KSipCQiJNTS1GRmZPTy9BQSFJSWlLS2tDQyNIyKjMzKzFRWVOzq7KyqrNza3HRydPz6/BwaHAwKDJyenDw+PHx6fISGhMTGxExOTOTm5KSmpCwuLNTW1PT29BQWFJyanLy6vDQ2NIyOjMzOzFxeXOzu7KyurNze3HR2dPz+/BweHAwODP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAazwJhwSCSGJsWkchkTjQzMqJDwqRA3C2KkhZIOKYBQlARIeYURhiua2CDP8Lg8KpKs50JBY0UUjCJ4Qi1lRQmBaAsEh4uMjY5MCWIVLYqMLhkABZOVixWYBY9CKgehpVIipRUpFhqHKAgPQygAABcqgZgZQyovABl3cycwJ1olhqZDLqihIgMKJFEMDRtnArQgRCq3QwO1VlIqDQDUeRcKXUIfLxRwIoBDG7TQyYseHRDbUkEAIfkECQkAMAAsAAAAAB4AHgCFBAIEhIKExMLEREZE5OLkZGZkpKKkHB4c1NLUVFZU9PL0dHZ0tLK0FBYUlJKUNDY0zMrMTE5MbG5srKqsJCYk3Nrc/Pr8DAoMZGJknJ6cBAYEhIaExMbETEpM5ObkbGpspKakJCIk1NbUXFpc9Pb0fH58vL68HBoclJaUzM7MVFJUdHJ0rK6sLCos3N7c/P78////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABrVAmHBIJBI8xaRyKQw9mFAhCVIEMYiKTSU6NDQUUBZAwhW+CFGSAVluu99QiwBOTKmoQxGFRBcGACVFL31CCiBghImKi0UQGCCMFi4wJwAACIsjGhMHliKLBRcsKR+QixZsjKplg6svCxQohBULn0IElg0WfSoAKkMkDwAJhBMUE0QkCLurzUovIwcsUBwdGWUilgPJzEIjACdlFh0NpjAIDQeTQiYPDm0viEIZlleqChILfFxBACH5BAkJAC8ALAAAAAAeAB4AhQQCBISGhMTGxExOTOTm5CQmJKyqrNTW1GxqbPT29DQ2NLy6vBQWFJSSlAwKDMzOzFxaXOzu7CwuLLSytNze3IyOjHx6fPz+/Dw+PMTCxAQGBIyKjMzKzFRWVOzq7CwqLKyurNza3HRydPz6/Dw6PLy+vBweHJyanAwODNTS1GRiZPTy9DQyNLS2tOTi5P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa3wJdwSCQmRsWkcinsqJhQ4YhSTKWMJ0J0WCogmRxAYDtMREeLCHm9JbRW7GjEBFB84y+K6jBMAQAOangvJwANQyMIDGODLwklZkR3jZSVli8hFi2XLxdqLAAaLpcIKBwKgFqWIgwcLgElnI6ytLVsFQoGlBENVEIRKAAFlBYAEEMXAwAilAIkIEQXqrbURCISsUwHENBbERoAHZKTIgASawgFC0MuBSweQw8Duo0tfxm0IwEBk0xBACH5BAkJADMALAAAAAAeAB4AhQQCBISChMTGxERCROTm5CQiJKSipGRiZBQSFJSSlNTW1PT29DQyNLS2tHR2dAwKDIyKjMzOzFRSVOzu7BwaHJyanNze3Dw6PKyurGxqbPz+/AQGBISGhMzKzExKTOzq7CwuLKSmpBQWFJSWlNza3Pz6/DQ2NLy6vHx6fAwODIyOjNTS1FxaXPTy9BweHJyenOTi5Dw+PGxubP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa6wJlwSCSWSsWkcjhZIYcO1HI6/LgAB6IFVhS0qMMGAEBZTCcIDFjYMqWkVIJmLSxN6NSWwIwHLxgAHn1FBA5cQgQbAAh8gzNiIUQcIBWOQyUkT5abnJ1rBBACnpczHgApd54QIgoSi6mdCQUWExUro7i5up0hHiecEy8fl1cmnBwADkQZDxycCiwdRY271UUqAxFUHyiiaxopWEQac0MJAMZ0EBfeMy0xA19CFixqmxFjCroaLwblYEEAADs=",s="\n  .sf--sc-btn {\n    background-image: url(".concat(r,");\n    background-repeat: no-repeat;\n    background-position: 50%;\n  }\n  .sf--sc-playlist {\n    background-image: url(").concat(o,");\n    background-size: 50%;\n  }\n  .sf--sc-loading {\n    background-image: url(").concat(a,");\n    background-size: 50%;\n  }\n  .sf--sc-error {\n    background-image: url(").concat(i,");\n  }\n")},function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=[],o=function(t){!i.find((function(r){return n.every((function(n){return r[n]===e[t][n]}))}))&&i.push(e[t])},a=0;a<e.length;a++)o(a);return i}n.r(t),n.d(t,"uniqArrayObject",(function(){return r}))},function(e,t,n){var r;e.exports=(r=n(103),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],A=e[t+9],w=e[t+10],k=e[t+11],x=e[t+12],C=e[t+13],S=e[t+14],M=e[t+15],_=o[0],I=o[1],O=o[2],E=o[3];_=u(_,I,O,E,a,7,s[0]),E=u(E,_,I,O,l,12,s[1]),O=u(O,E,_,I,p,17,s[2]),I=u(I,O,E,_,h,22,s[3]),_=u(_,I,O,E,m,7,s[4]),E=u(E,_,I,O,g,12,s[5]),O=u(O,E,_,I,v,17,s[6]),I=u(I,O,E,_,b,22,s[7]),_=u(_,I,O,E,y,7,s[8]),E=u(E,_,I,O,A,12,s[9]),O=u(O,E,_,I,w,17,s[10]),I=u(I,O,E,_,k,22,s[11]),_=u(_,I,O,E,x,7,s[12]),E=u(E,_,I,O,C,12,s[13]),O=u(O,E,_,I,S,17,s[14]),_=c(_,I=u(I,O,E,_,M,22,s[15]),O,E,l,5,s[16]),E=c(E,_,I,O,v,9,s[17]),O=c(O,E,_,I,k,14,s[18]),I=c(I,O,E,_,a,20,s[19]),_=c(_,I,O,E,g,5,s[20]),E=c(E,_,I,O,w,9,s[21]),O=c(O,E,_,I,M,14,s[22]),I=c(I,O,E,_,m,20,s[23]),_=c(_,I,O,E,A,5,s[24]),E=c(E,_,I,O,S,9,s[25]),O=c(O,E,_,I,h,14,s[26]),I=c(I,O,E,_,y,20,s[27]),_=c(_,I,O,E,C,5,s[28]),E=c(E,_,I,O,p,9,s[29]),O=c(O,E,_,I,b,14,s[30]),_=d(_,I=c(I,O,E,_,x,20,s[31]),O,E,g,4,s[32]),E=d(E,_,I,O,y,11,s[33]),O=d(O,E,_,I,k,16,s[34]),I=d(I,O,E,_,S,23,s[35]),_=d(_,I,O,E,l,4,s[36]),E=d(E,_,I,O,m,11,s[37]),O=d(O,E,_,I,b,16,s[38]),I=d(I,O,E,_,w,23,s[39]),_=d(_,I,O,E,C,4,s[40]),E=d(E,_,I,O,a,11,s[41]),O=d(O,E,_,I,h,16,s[42]),I=d(I,O,E,_,v,23,s[43]),_=d(_,I,O,E,A,4,s[44]),E=d(E,_,I,O,x,11,s[45]),O=d(O,E,_,I,M,16,s[46]),_=f(_,I=d(I,O,E,_,p,23,s[47]),O,E,a,6,s[48]),E=f(E,_,I,O,b,10,s[49]),O=f(O,E,_,I,S,15,s[50]),I=f(I,O,E,_,g,21,s[51]),_=f(_,I,O,E,x,6,s[52]),E=f(E,_,I,O,h,10,s[53]),O=f(O,E,_,I,w,15,s[54]),I=f(I,O,E,_,l,21,s[55]),_=f(_,I,O,E,y,6,s[56]),E=f(E,_,I,O,M,10,s[57]),O=f(O,E,_,I,v,15,s[58]),I=f(I,O,E,_,C,21,s[59]),_=f(_,I,O,E,m,6,s[60]),E=f(E,_,I,O,k,10,s[61]),O=f(O,E,_,I,p,15,s[62]),I=f(I,O,E,_,A,21,s[63]),o[0]=o[0]+_|0,o[1]=o[1]+I|0,o[2]=o[2]+O|0,o[3]=o[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function c(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),r.MD5)},function(e,t,n){(function(t){var r;e.exports=(r=r||function(e,r){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==t&&t.crypto&&(i=t.crypto),!i)try{i=n(!function(){var e=new Error("Cannot find module 'crypto'");throw e.code="MODULE_NOT_FOUND",e}())}catch(e){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},l=s.lib={},u=l.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=l.WordArray=u.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=u.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new c.init(t,e)}}),d=s.enc={},f=d.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},p=d.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},h=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},m=l.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,o);if(l){for(var d=0;d<l;d+=a)this._doProcessBlock(i,d);n=i.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=u.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(l.Hasher=m.extend({cfg:u.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}}),s.algo={});return s}(Math),r)}).call(this,n(63))},function(e,t,n){"use strict";n.r(t),t.default=function(e){for(var t=[];e.parentElement&&1===e.parentElement.nodeType;){var n="",r=[].slice.call(e.parentElement.children);r.length>1&&(n=":nth-child(".concat(r.indexOf(e)+1,")")),t.unshift("".concat(e.tagName).concat(n)),e=e.parentElement}return t.join(">")}},function(e,t,n){e.exports=function(){"use strict";function e(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/[\?\&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function t(e,t){for(var n in t.dataset)if(t.dataset.hasOwnProperty(n))if("env"===n||"dumpLineNumbers"===n||"rootpath"===n||"errorReporting"===n)e[n]=t.dataset[n];else try{e[n]=JSON.parse(t.dataset[n])}catch(e){}}var n=function(t,n,r){var i=r.href||"",o="less:"+(r.title||e(i)),a=t.getElementById(o),s=!1,l=t.createElement("style");l.setAttribute("type","text/css"),r.media&&l.setAttribute("media",r.media),l.id=o,l.styleSheet||(l.appendChild(t.createTextNode(n)),s=null!==a&&a.childNodes.length>0&&l.childNodes.length>0&&a.firstChild.nodeValue===l.firstChild.nodeValue);var u=t.getElementsByTagName("head")[0];if(null===a||!1===s){var c=r&&r.nextSibling||null;c?c.parentNode.insertBefore(l,c):u.appendChild(l)}if(a&&!1===s&&a.parentNode.removeChild(a),l.styleSheet)try{l.styleSheet.cssText=n}catch(e){throw new Error("Couldn't reassign styleSheet.cssText.")}},r=function(e){var t,n=e.document;return n.currentScript||(t=n.getElementsByTagName("script"))[t.length-1]},i={error:function(e){this._fireEvent("error",e)},warn:function(e){this._fireEvent("warn",e)},info:function(e){this._fireEvent("info",e)},debug:function(e){this._fireEvent("debug",e)},addListener:function(e){this._listeners.push(e)},removeListener:function(e){for(var t=0;t<this._listeners.length;t++)if(this._listeners[t]===e)return void this._listeners.splice(t,1)},_fireEvent:function(e,t){for(var n=0;n<this._listeners.length;n++){var r=this._listeners[n][e];r&&r(t)}},_listeners:[]},o=function(){function e(e,t){this.fileManagers=t||[],e=e||{};for(var n=[],r=n.concat(["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"]),i=0;i<r.length;i++){var o=r[i],a=e[o];a?this[o]=a.bind(e):i<n.length&&this.warn("missing required function in environment - "+o)}}return e.prototype.getFileManager=function(e,t,n,r,o){e||i.warn("getFileManager called with no filename.. Please report this issue. continuing."),null==t&&i.warn("getFileManager called with null directory.. Please report this issue. continuing.");var a=this.fileManagers;n.pluginManager&&(a=[].concat(a).concat(n.pluginManager.getFileManagers()));for(var s=a.length-1;s>=0;s--){var l=a[s];if(l[o?"supportsSync":"supports"](e,t,n,r))return l}return null},e.prototype.addFileManager=function(e){this.fileManagers.push(e)},e.prototype.clearFileManagers=function(){this.fileManagers=[]},e}(),a={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},s={length:{m:1,cm:.01,mm:.001,in:.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:1/400,turn:1}},l={colors:a,unitConversions:s},u=function(){function e(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null;var e=this;Object.defineProperty(this,"currentFileInfo",{get:function(){return e.fileInfo()}}),Object.defineProperty(this,"index",{get:function(){return e.getIndex()}})}return e.prototype.setParent=function(t,n){function r(t){t&&t instanceof e&&(t.parent=n)}Array.isArray(t)?t.forEach(r):r(t)},e.prototype.getIndex=function(){return this._index||this.parent&&this.parent.getIndex()||0},e.prototype.fileInfo=function(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}},e.prototype.isRulesetLike=function(){return!1},e.prototype.toCSS=function(e){var t=[];return this.genCSS(e,{add:function(e,n,r){t.push(e)},isEmpty:function(){return 0===t.length}}),t.join("")},e.prototype.genCSS=function(e,t){t.add(this.value)},e.prototype.accept=function(e){this.value=e.visit(this.value)},e.prototype.eval=function(){return this},e.prototype._operate=function(e,t,n,r){switch(t){case"+":return n+r;case"-":return n-r;case"*":return n*r;case"/":return n/r}},e.prototype.fround=function(e,t){var n=e&&e.numPrecision;return n?Number((t+2e-16).toFixed(n)):t},e.compare=function(t,n){if(t.compare&&"Quoted"!==n.type&&"Anonymous"!==n.type)return t.compare(n);if(n.compare)return-n.compare(t);if(t.type===n.type){if(t=t.value,n=n.value,!Array.isArray(t))return t===n?0:void 0;if(t.length===n.length){for(var r=0;r<t.length;r++)if(0!==e.compare(t[r],n[r]))return;return 0}}},e.numericCompare=function(e,t){return e<t?-1:e===t?0:e>t?1:void 0},e.prototype.blocksVisibility=function(){return null==this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks},e.prototype.addVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},e.prototype.removeVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},e.prototype.ensureVisibility=function(){this.nodeVisible=!0},e.prototype.ensureInvisibility=function(){this.nodeVisible=!1},e.prototype.isVisible=function(){return this.nodeVisible},e.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},e.prototype.copyVisibilityInfo=function(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)},e}(),c=function(e,t,n){var r=this;Array.isArray(e)?this.rgb=e:e.length>=6?(this.rgb=[],e.match(/.{2}/g).map((function(e,t){t<3?r.rgb.push(parseInt(e,16)):r.alpha=parseInt(e,16)/255}))):(this.rgb=[],e.split("").map((function(e,t){t<3?r.rgb.push(parseInt(e+e,16)):r.alpha=parseInt(e+e,16)/255}))),this.alpha=this.alpha||("number"==typeof t?t:1),void 0!==n&&(this.value=n)};function d(e,t){return Math.min(Math.max(e,0),t)}function f(e){return"#"+e.map((function(e){return((e=d(Math.round(e),255))<16?"0":"")+e.toString(16)})).join("")}c.prototype=Object.assign(new u,{type:"Color",luma:function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,n=this.rgb[2]/255;return.2126*(e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e,t){var n,r,i,o=e&&e.compress&&!t,a=[];if(r=this.fround(e,this.alpha),this.value)if(0===this.value.indexOf("rgb"))r<1&&(i="rgba");else{if(0!==this.value.indexOf("hsl"))return this.value;i=r<1?"hsla":"hsl"}else r<1&&(i="rgba");switch(i){case"rgba":a=this.rgb.map((function(e){return d(Math.round(e),255)})).concat(d(r,1));break;case"hsla":a.push(d(r,1));case"hsl":n=this.toHSL(),a=[this.fround(e,n.h),this.fround(e,100*n.s)+"%",this.fround(e,100*n.l)+"%"].concat(a)}if(i)return i+"("+a.join(","+(o?"":" "))+")";if(n=this.toRGB(),o){var s=n.split("");s[1]===s[2]&&s[3]===s[4]&&s[5]===s[6]&&(n="#"+s[1]+s[3]+s[5])}return n},operate:function(e,t,n){for(var r=new Array(3),i=this.alpha*(1-n.alpha)+n.alpha,o=0;o<3;o++)r[o]=this._operate(e,t,this.rgb[o],n.rgb[o]);return new c(r,i)},toRGB:function(){return f(this.rgb)},toHSL:function(){var e,t,n=this.rgb[0]/255,r=this.rgb[1]/255,i=this.rgb[2]/255,o=this.alpha,a=Math.max(n,r,i),s=Math.min(n,r,i),l=(a+s)/2,u=a-s;if(a===s)e=t=0;else{switch(t=l>.5?u/(2-a-s):u/(a+s),a){case n:e=(r-i)/u+(r<i?6:0);break;case r:e=(i-n)/u+2;break;case i:e=(n-r)/u+4}e/=6}return{h:360*e,s:t,l:l,a:o}},toHSV:function(){var e,t,n=this.rgb[0]/255,r=this.rgb[1]/255,i=this.rgb[2]/255,o=this.alpha,a=Math.max(n,r,i),s=Math.min(n,r,i),l=a,u=a-s;if(t=0===a?0:u/a,a===s)e=0;else{switch(a){case n:e=(r-i)/u+(r<i?6:0);break;case r:e=(i-n)/u+2;break;case i:e=(n-r)/u+4}e/=6}return{h:360*e,s:t,v:l,a:o}},toARGB:function(){return f([255*this.alpha].concat(this.rgb))},compare:function(e){return e.rgb&&e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:void 0}}),c.fromKeyword=function(e){var t,n=e.toLowerCase();if(a.hasOwnProperty(n)?t=new c(a[n].slice(1)):"transparent"===n&&(t=new c([0,0,0],0)),t)return t.value=e,t};var p=function(e){this.value=e};p.prototype=Object.assign(new u,{type:"Paren",genCSS:function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},eval:function(e){return new p(this.value.eval(e))}});var h={"":!0," ":!0,"|":!0},m=function(e){" "===e?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=""===this.value)};m.prototype=Object.assign(new u,{type:"Combinator",genCSS:function(e,t){var n=e.compress||h[this.value]?"":" ";t.add(n+this.value+n)}});var g=function(e,t,n,r,i,o){this.combinator=e instanceof m?e:new m(e),this.value="string"==typeof t?t.trim():t||"",this.isVariable=n,this._index=r,this._fileInfo=i,this.copyVisibilityInfo(o),this.setParent(this.combinator,this)};g.prototype=Object.assign(new u,{type:"Element",accept:function(e){var t=this.value;this.combinator=e.visit(this.combinator),"object"==typeof t&&(this.value=e.visit(t))},eval:function(e){return new g(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},clone:function(){return new g(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},genCSS:function(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())},toCSS:function(e){e=e||{};var t=this.value,n=e.firstSelector;return t instanceof p&&(e.firstSelector=!0),t=t.toCSS?t.toCSS(e):t,e.firstSelector=n,""===t&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(e)+t}});var v={ALWAYS:0,PARENS_DIVISION:1,PARENS:2},b=0,y=1,A=2;function w(e){return Object.prototype.toString.call(e).slice(8,-1)}function k(e){return"Array"===w(e)}function x(e,t){return void 0===t&&(t={}),k(e)?e.map((function(e){return x(e,t)})):"Object"!==w(n=e)||n.constructor!==Object||Object.getPrototypeOf(n)!==Object.prototype?e:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)).reduce((function(n,r){return k(t.props)&&!t.props.includes(r)||function(e,t,n,r,i){var o={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";"enumerable"===o&&(e[t]=n),i&&"nonenumerable"===o&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,r,x(e[r],t),e,t.nonenumerable),n}),{});var n}function C(e,t){for(var n=e+1,r=null,i=-1;--n>=0&&"\n"!==t.charAt(n);)i++;return"number"==typeof e&&(r=(t.slice(0,e).match(/\n/g)||"").length),{line:r,column:i}}function S(e){var t,n=e.length,r=new Array(n);for(t=0;t<n;t++)r[t]=e[t];return r}function M(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function _(e,t){var n=t||{};if(!t._defaults){n={};var r=x(e);n._defaults=r;var i=t?x(t):{};Object.assign(n,r,i)}return n}function I(e,t){if(t&&t._defaults)return t;var n=_(e,t);if(n.strictMath&&(n.math=v.PARENS),n.relativeUrls&&(n.rewriteUrls=A),"string"==typeof n.math)switch(n.math.toLowerCase()){case"always":n.math=v.ALWAYS;break;case"parens-division":n.math=v.PARENS_DIVISION;break;case"strict":case"parens":n.math=v.PARENS;break;default:n.math=v.PARENS}if("string"==typeof n.rewriteUrls)switch(n.rewriteUrls.toLowerCase()){case"off":n.rewriteUrls=b;break;case"local":n.rewriteUrls=y;break;case"all":n.rewriteUrls=A}return n}function O(e,t){void 0===t&&(t=[]);for(var n=0,r=e.length;n<r;n++){var i=e[n];Array.isArray(i)?O(i,t):void 0!==i&&t.push(i)}return t}var E=Object.freeze({__proto__:null,getLocation:C,copyArray:S,clone:M,defaults:_,copyOptions:I,merge:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},flattenArray:O}),L=/(<anonymous>|Function):(\d+):(\d+)/,N=function(e,t,n){Error.call(this);var r=e.filename||n;if(this.message=e.message,this.stack=e.stack,t&&r){var i=t.contents[r],o=C(e.index,i),a=o.line,s=o.column,l=e.call&&C(e.call,i).line,u=i?i.split("\n"):"";if(this.type=e.type||"Syntax",this.filename=r,this.index=e.index,this.line="number"==typeof a?a+1:null,this.column=s,!this.line&&this.stack){var c=this.stack.match(L),d=new Function("a","throw new Error()"),f=0;try{d()}catch(e){var p=e.stack.match(L);f=1-(a=parseInt(p[2]))}c&&(c[2]&&(this.line=parseInt(c[2])+f),c[3]&&(this.column=parseInt(c[3])))}this.callLine=l+1,this.callExtract=u[l],this.extract=[u[this.line-2],u[this.line-1],u[this.line]]}};if(void 0===Object.create){var T=function(){};T.prototype=Error.prototype,N.prototype=new T}else N.prototype=Object.create(Error.prototype);N.prototype.constructor=N,N.prototype.toString=function(e){e=e||{};var t="",n=this.extract||[],r=[],i=function(e){return e};if(e.stylize){var o=typeof e.stylize;if("function"!==o)throw Error("options.stylize should be a function, got a "+o+"!");i=e.stylize}if(null!==this.line){if("string"==typeof n[0]&&r.push(i(this.line-1+" "+n[0],"grey")),"string"==typeof n[1]){var a=this.line+" ";n[1]&&(a+=n[1].slice(0,this.column)+i(i(i(n[1].substr(this.column,1),"bold")+n[1].slice(this.column+1),"red"),"inverse")),r.push(a)}"string"==typeof n[2]&&r.push(i(this.line+1+" "+n[2],"grey")),r=r.join("\n")+i("","reset")+"\n"}return t+=i(this.type+"Error: "+this.message,"red"),this.filename&&(t+=i(" in ","red")+this.filename),this.line&&(t+=i(" on line "+this.line+", column "+(this.column+1)+":","grey")),t+="\n"+r,this.callLine&&(t+=i("from ","red")+(this.filename||"")+"/n",t+=i(this.callLine,"grey")+" "+this.callExtract+"/n"),t};var j=function(e,t,n,r,i,o){this.extendList=t,this.condition=n,this.evaldCondition=!n,this._index=r,this._fileInfo=i,this.elements=this.getElements(e),this.mixinElements_=void 0,this.copyVisibilityInfo(o),this.setParent(this.elements,this)};j.prototype=Object.assign(new u,{type:"Selector",accept:function(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))},createDerived:function(e,t,n){e=this.getElements(e);var r=new j(e,t||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo());return r.evaldCondition=null!=n?n:this.evaldCondition,r.mediaEmpty=this.mediaEmpty,r},getElements:function(e){return e?("string"==typeof e&&this.parse.parseNode(e,["selector"],this._index,this._fileInfo,(function(t,n){if(t)throw new N({index:t.index,message:t.message},this.parse.imports,this._fileInfo.filename);e=n[0].elements})),e):[new g("","&",!1,this._index,this._fileInfo)]},createEmptySelectors:function(){var e=new g("","&",!1,this._index,this._fileInfo),t=[new j([e],null,null,this._index,this._fileInfo)];return t[0].mediaEmpty=!0,t},match:function(e){var t,n,r=this.elements,i=r.length;if(0===(t=(e=e.mixinElements()).length)||i<t)return 0;for(n=0;n<t;n++)if(r[n].value!==e[n])return 0;return t},mixinElements:function(){if(this.mixinElements_)return this.mixinElements_;var e=this.elements.map((function(e){return e.combinator.value+(e.value.value||e.value)})).join("").match(/[,&#\*\.\w-]([\w-]|(\\.))*/g);return e?"&"===e[0]&&e.shift():e=[],this.mixinElements_=e},isJustParentSelector:function(){return!this.mediaEmpty&&1===this.elements.length&&"&"===this.elements[0].value&&(" "===this.elements[0].combinator.value||""===this.elements[0].combinator.value)},eval:function(e){var t=this.condition&&this.condition.eval(e),n=this.elements,r=this.extendList;return n=n&&n.map((function(t){return t.eval(e)})),r=r&&r.map((function(t){return t.eval(e)})),this.createDerived(n,r,t)},genCSS:function(e,t){var n;for(e&&e.firstSelector||""!==this.elements[0].combinator.value||t.add(" ",this.fileInfo(),this.getIndex()),n=0;n<this.elements.length;n++)this.elements[n].genCSS(e,t)},getIsOutput:function(){return this.evaldCondition}});var F=function(e){if(!e)throw new Error("Value requires an array argument");Array.isArray(e)?this.value=e:this.value=[e]};F.prototype=Object.assign(new u,{type:"Value",accept:function(e){this.value&&(this.value=e.visitArray(this.value))},eval:function(e){return 1===this.value.length?this.value[0].eval(e):new F(this.value.map((function(t){return t.eval(e)})))},genCSS:function(e,t){var n;for(n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),n+1<this.value.length&&t.add(e&&e.compress?",":", ")}});var D=function(e){this.value=e};D.prototype=Object.assign(new u,{type:"Keyword",genCSS:function(e,t){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)}}),D.True=new D("true"),D.False=new D("false");var R=function(e,t,n,r,i,o){this.value=e,this._index=t,this._fileInfo=n,this.mapLines=r,this.rulesetLike=void 0!==i&&i,this.allowRoot=!0,this.copyVisibilityInfo(o)};R.prototype=Object.assign(new u,{type:"Anonymous",eval:function(){return new R(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())},compare:function(e){return e.toCSS&&this.toCSS()===e.toCSS()?0:void 0},isRulesetLike:function(){return this.rulesetLike},genCSS:function(e,t){this.nodeVisible=Boolean(this.value),this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)}});var P=v,V=function(e,t,n,r,i,o,a,s){this.name=e,this.value=t instanceof u?t:new F([t?new R(t):null]),this.important=n?" "+n.trim():"",this.merge=r,this._index=i,this._fileInfo=o,this.inline=a||!1,this.variable=void 0!==s?s:e.charAt&&"@"===e.charAt(0),this.allowRoot=!0,this.setParent(this.value,this)};V.prototype=Object.assign(new u,{type:"Declaration",genCSS:function(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex());try{this.value.genCSS(e,t)}catch(e){throw e.index=this._index,e.filename=this._fileInfo.filename,e}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)},eval:function(e){var t,n,r=!1,i=this.name,o=this.variable;"string"!=typeof i&&(i=1===i.length&&i[0]instanceof D?i[0].value:function(e,t){var n,r="",i=t.length,o={add:function(e){r+=e}};for(n=0;n<i;n++)t[n].eval(e).genCSS(e,o);return r}(e,i),o=!1),
// @todo remove when parens-division is default
"font"===i&&e.math===P.ALWAYS&&(r=!0,t=e.math,e.math=P.PARENS_DIVISION);try{if(e.importantScope.push({}),n=this.value.eval(e),!this.variable&&"DetachedRuleset"===n.type)throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename};var a=this.important,s=e.importantScope.pop();return!a&&s.important&&(a=s.important),new V(i,n,a,this.merge,this.getIndex(),this.fileInfo(),this.inline,o)}catch(e){throw"number"!=typeof e.index&&(e.index=this.getIndex(),e.filename=this.fileInfo().filename),e}finally{r&&(e.math=t)}},makeImportant:function(){return new V(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)}});var B=function(){function e(t,n,r){var i="";if(t.dumpLineNumbers&&!t.compress)switch(t.dumpLineNumbers){case"comments":i=e.asComment(n);break;case"mediaquery":i=e.asMediaQuery(n);break;case"all":i=e.asComment(n)+(r||"")+e.asMediaQuery(n)}return i}return e.asComment=function(e){return"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+" */\n"},e.asMediaQuery=function(e){var t=e.debugInfo.fileName;return/^[a-z]+:\/\//i.test(t)||(t="file://"+t),"@media -sass-debug-info{filename{font-family:"+t.replace(/([.:\/\\])/g,(function(e){return"\\"==e&&(e="/"),"\\"+e}))+"}line{font-family:\\00003"+e.debugInfo.lineNumber+"}}\n"},e}(),U=function(e,t,n,r){this.value=e,this.isLineComment=t,this._index=n,this._fileInfo=r,this.allowRoot=!0};U.prototype=Object.assign(new u,{type:"Comment",genCSS:function(e,t){this.debugInfo&&t.add(B(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)},isSilent:function(e){var t=e.compress&&"!"!==this.value[2];return this.isLineComment||t}});var z={},q=function(e,t,n){if(e)for(var r=0;r<n.length;r++)e.hasOwnProperty(n[r])&&(t[n[r]]=e[n[r]])},H=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","pluginManager"];z.Parse=function(e){q(e,this,H),"string"==typeof this.paths&&(this.paths=[this.paths])};var W=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];function Q(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)}function Z(e){return"."===e.charAt(0)}z.Eval=function(e,t){q(e,this,W),"string"==typeof this.paths&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[]},z.Eval.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},z.Eval.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack.length||(this.inCalc=!1)},z.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},z.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},z.Eval.prototype.inCalc=!1,z.Eval.prototype.mathOn=!0,z.Eval.prototype.isMathOn=function(e){return!!this.mathOn&&!!("/"!==e||this.math===v.ALWAYS||this.parensStack&&this.parensStack.length)&&(!(this.math>v.PARENS_DIVISION)||this.parensStack&&this.parensStack.length)},z.Eval.prototype.pathRequiresRewrite=function(e){return(this.rewriteUrls===y?Z:Q)(e)},z.Eval.prototype.rewritePath=function(e,t){var n;return t=t||"",n=this.normalizePath(t+e),Z(e)&&Q(t)&&!1===Z(n)&&(n="./"+n),n},z.Eval.prototype.normalizePath=function(e){var t,n=e.split("/").reverse();for(e=[];0!==n.length;)switch(t=n.pop()){case".":break;case"..":0===e.length||".."===e[e.length-1]?e.push(t):e.pop();break;default:e.push(t)}return e.join("/")};var G=function e(t){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){var t=this;Object.keys(e).forEach((function(n){t.add(n,e[n])}))},get:function(e){return this._data[e]||t&&t.get(e)},getLocalFunctions:function(){return this._data},inherit:function(){return e(this)},create:function(t){return e(t)}}}(null),Y={eval:function(){var e=this.value_,t=this.error_;if(t)throw t;if(null!=e)return e?D.True:D.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}},J=function(e,t,n,r){this.selectors=e,this.rules=t,this._lookups={},this._variables=null,this._properties=null,this.strictImports=n,this.copyVisibilityInfo(r),this.allowRoot=!0,this.setParent(this.selectors,this),this.setParent(this.rules,this)};J.prototype=Object.assign(new u,{type:"Ruleset",isRuleset:!0,isRulesetLike:function(){return!0},accept:function(e){this.paths?this.paths=e.visitArray(this.paths,!0):this.selectors&&(this.selectors=e.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=e.visitArray(this.rules))},eval:function(e){var t,n,r,i,o,a=!1;if(this.selectors&&(n=this.selectors.length)){for(t=new Array(n),Y.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),i=0;i<n;i++){r=this.selectors[i].eval(e);for(var s=0;s<r.elements.length;s++)if(r.elements[s].isVariable){o=!0;break}t[i]=r,r.evaldCondition&&(a=!0)}if(o){var l=new Array(n);for(i=0;i<n;i++)r=t[i],l[i]=r.toCSS(e);this.parse.parseNode(l.join(","),["selectors"],t[0].getIndex(),t[0].fileInfo(),(function(e,n){n&&(t=O(n))}))}Y.reset()}else a=!0;var c,d,f=this.rules?S(this.rules):null,p=new J(t,f,this.strictImports,this.visibilityInfo());p.originalRuleset=this,p.root=this.root,p.firstRoot=this.firstRoot,p.allowImports=this.allowImports,this.debugInfo&&(p.debugInfo=this.debugInfo),a||(f.length=0),p.functionRegistry=function(e){for(var t,n=0,r=e.length;n!==r;++n)if(t=e[n].functionRegistry)return t;return G}(e.frames).inherit();var h=e.frames;h.unshift(p);var m=e.selectors;m||(e.selectors=m=[]),m.unshift(this.selectors),(p.root||p.allowImports||!p.strictImports)&&p.evalImports(e);var g=p.rules;for(i=0;c=g[i];i++)c.evalFirst&&(g[i]=c.eval(e));var v=e.mediaBlocks&&e.mediaBlocks.length||0;for(i=0;c=g[i];i++)"MixinCall"===c.type?(f=c.eval(e).filter((function(e){return!(e instanceof V&&e.variable&&p.variable(e.name))})),g.splice.apply(g,[i,1].concat(f)),i+=f.length-1,p.resetCache()):"VariableCall"===c.type&&(f=c.eval(e).rules.filter((function(e){return!(e instanceof V&&e.variable)})),g.splice.apply(g,[i,1].concat(f)),i+=f.length-1,p.resetCache());for(i=0;c=g[i];i++)c.evalFirst||(g[i]=c=c.eval?c.eval(e):c);for(i=0;c=g[i];i++)if(c instanceof J&&c.selectors&&1===c.selectors.length&&c.selectors[0]&&c.selectors[0].isJustParentSelector())for(g.splice(i--,1),s=0;d=c.rules[s];s++)d instanceof u&&(d.copyVisibilityInfo(c.visibilityInfo()),d instanceof V&&d.variable||g.splice(++i,0,d));if(h.shift(),m.shift(),e.mediaBlocks)for(i=v;i<e.mediaBlocks.length;i++)e.mediaBlocks[i].bubbleSelectors(t);return p},evalImports:function(e){var t,n,r=this.rules;if(r)for(t=0;t<r.length;t++)"Import"===r[t].type&&((n=r[t].eval(e))&&(n.length||0===n.length)?(r.splice.apply(r,[t,1].concat(n)),t+=n.length-1):r.splice(t,1,n),this.resetCache())},makeImportant:function(){return new J(this.selectors,this.rules.map((function(e){return e.makeImportant?e.makeImportant():e})),this.strictImports,this.visibilityInfo())},matchArgs:function(e){return!e||0===e.length},matchCondition:function(e,t){var n=this.selectors[this.selectors.length-1];return!(!n.evaldCondition||n.condition&&!n.condition.eval(new z.Eval(t,t.frames)))},resetCache:function(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}},variables:function(){return this._variables||(this._variables=this.rules?this.rules.reduce((function(e,t){if(t instanceof V&&!0===t.variable&&(e[t.name]=t),"Import"===t.type&&t.root&&t.root.variables){var n=t.root.variables();for(var r in n)n.hasOwnProperty(r)&&(e[r]=t.root.variable(r))}return e}),{}):{}),this._variables},properties:function(){return this._properties||(this._properties=this.rules?this.rules.reduce((function(e,t){if(t instanceof V&&!0!==t.variable){var n=1===t.name.length&&t.name[0]instanceof D?t.name[0].value:t.name;e["$"+n]?e["$"+n].push(t):e["$"+n]=[t]}return e}),{}):{}),this._properties},variable:function(e){var t=this.variables()[e];if(t)return this.parseValue(t)},property:function(e){var t=this.properties()[e];if(t)return this.parseValue(t)},lastDeclaration:function(){for(var e=this.rules.length;e>0;e--){var t=this.rules[e-1];if(t instanceof V)return this.parseValue(t)}},parseValue:function(e){var t=this;function n(e){return e.value instanceof R&&!e.parsed?("string"==typeof e.value.value?this.parse.parseNode(e.value.value,["value","important"],e.value.getIndex(),e.fileInfo(),(function(t,n){t&&(e.parsed=!0),n&&(e.value=n[0],e.important=n[1]||"",e.parsed=!0)})):e.parsed=!0,e):e}if(Array.isArray(e)){var r=[];return e.forEach((function(e){r.push(n.call(t,e))})),r}return n.call(t,e)},rulesets:function(){if(!this.rules)return[];var e,t,n=[],r=this.rules;for(e=0;t=r[e];e++)t.isRuleset&&n.push(t);return n},prependRule:function(e){var t=this.rules;t?t.unshift(e):this.rules=[e],this.setParent(e,this)},find:function(e,t,n){t=t||this;var r,i,o=[],a=e.toCSS();return a in this._lookups?this._lookups[a]:(this.rulesets().forEach((function(a){if(a!==t)for(var s=0;s<a.selectors.length;s++)if(r=e.match(a.selectors[s])){if(e.elements.length>r){if(!n||n(a)){i=a.find(new j(e.elements.slice(r)),t,n);for(var l=0;l<i.length;++l)i[l].path.push(a);Array.prototype.push.apply(o,i)}}else o.push({rule:a,path:[]});break}})),this._lookups[a]=o,o)},genCSS:function(e,t){var n,r,i,o,a,s=[];e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;var l,u=e.compress?"":Array(e.tabLevel+1).join("  "),c=e.compress?"":Array(e.tabLevel).join("  "),d=0,f=0;for(n=0;o=this.rules[n];n++)o instanceof U?(f===n&&f++,s.push(o)):o.isCharset&&o.isCharset()?(s.splice(d,0,o),d++,f++):"Import"===o.type?(s.splice(f,0,o),f++):s.push(o);if(s=[].concat(s),!this.root){(i=B(e,this,c))&&(t.add(i),t.add(c));var p=this.paths,h=p.length,m=void 0;for(l=e.compress?",":",\n"+c,n=0;n<h;n++)if(m=(a=p[n]).length)for(n>0&&t.add(l),e.firstSelector=!0,a[0].genCSS(e,t),e.firstSelector=!1,r=1;r<m;r++)a[r].genCSS(e,t);t.add((e.compress?"{":" {\n")+u)}for(n=0;o=s[n];n++){n+1===s.length&&(e.lastRule=!0);var g=e.lastRule;o.isRulesetLike(o)&&(e.lastRule=!1),o.genCSS?o.genCSS(e,t):o.value&&t.add(o.value.toString()),e.lastRule=g,!e.lastRule&&o.isVisible()?t.add(e.compress?"":"\n"+u):e.lastRule=!1}this.root||(t.add(e.compress?"}":"\n"+c+"}"),e.tabLevel--),t.isEmpty()||e.compress||!this.firstRoot||t.add("\n")},joinSelectors:function(e,t,n){for(var r=0;r<n.length;r++)this.joinSelector(e,t,n[r])},joinSelector:function(e,t,n){function r(e,t){var n,r;if(0===e.length)n=new p(e[0]);else{var i=new Array(e.length);for(r=0;r<e.length;r++)i[r]=new g(null,e[r],t.isVariable,t._index,t._fileInfo);n=new p(new j(i))}return n}function i(e,t){var n;return n=new g(null,e,t.isVariable,t._index,t._fileInfo),new j([n])}function o(e,t,n,r){var i,o,a;if(i=[],e.length>0?(o=(i=S(e)).pop(),a=r.createDerived(S(o.elements))):a=r.createDerived([]),t.length>0){var s=n.combinator,l=t[0].elements[0];s.emptyOrWhitespace&&!l.combinator.emptyOrWhitespace&&(s=l.combinator),a.elements.push(new g(s,l.value,n.isVariable,n._index,n._fileInfo)),a.elements=a.elements.concat(t[0].elements.slice(1))}if(0!==a.elements.length&&i.push(a),t.length>1){var u=t.slice(1);u=u.map((function(e){return e.createDerived(e.elements,[])})),i=i.concat(u)}return i}function a(e,t,n,r,i){var a;for(a=0;a<e.length;a++){var s=o(e[a],t,n,r);i.push(s)}return i}function s(e,t){var n,r;if(0!==e.length)if(0!==t.length)for(n=0;r=t[n];n++)r.length>0?r[r.length-1]=r[r.length-1].createDerived(r[r.length-1].elements.concat(e)):r.push(new j(e));else t.push([new j(e)])}function l(e,t){var n=t.createDerived(t.elements,t.extendList,t.evaldCondition);return n.copyVisibilityInfo(e),n}var u,c;if(!function e(t,n,l){var u,c,d,f,h,m,v,b,y,A,w,k,x=!1;for(f=[],h=[[]],u=0;b=l.elements[u];u++)if("&"!==b.value){var C=(k=void 0,(w=b).value instanceof p&&(k=w.value.value)instanceof j?k:null);if(null!=C){s(f,h);var S,M=[],_=[];for(S=e(M,n,C),x=x||S,d=0;d<M.length;d++)a(h,[i(r(M[d],b),b)],b,l,_);h=_,f=[]}else f.push(b)}else{for(x=!0,m=[],s(f,h),c=0;c<h.length;c++)if(v=h[c],0===n.length)v.length>0&&v[0].elements.push(new g(b.combinator,"",b.isVariable,b._index,b._fileInfo)),m.push(v);else for(d=0;d<n.length;d++){var I=o(v,n[d],b,l);m.push(I)}h=m,f=[]}for(s(f,h),u=0;u<h.length;u++)(y=h[u].length)>0&&(t.push(h[u]),A=h[u][y-1],h[u][y-1]=A.createDerived(A.elements,l.extendList));return x}(c=[],t,n))if(t.length>0)for(c=[],u=0;u<t.length;u++){var d=t[u].map(l.bind(this,n.visibilityInfo()));d.push(n),c.push(d)}else c=[[n]];for(u=0;u<c.length;u++)e.push(c[u])}});var K=function(e,t,n,r,i,o,a,s){var l;if(this.name=e,this.value=t instanceof u?t:t?new R(t):t,n){for(Array.isArray(n)?this.rules=n:(this.rules=[n],this.rules[0].selectors=new j([],null,null,r,i).createEmptySelectors()),l=0;l<this.rules.length;l++)this.rules[l].allowImports=!0;this.setParent(this.rules,this)}this._index=r,this._fileInfo=i,this.debugInfo=o,this.isRooted=a||!1,this.copyVisibilityInfo(s),this.allowRoot=!0};K.prototype=Object.assign(new u,{type:"AtRule",accept:function(e){var t=this.value,n=this.rules;n&&(this.rules=e.visitArray(n)),t&&(this.value=e.visit(t))},isRulesetLike:function(){return this.rules||!this.isCharset()},isCharset:function(){return"@charset"===this.name},genCSS:function(e,t){var n=this.value,r=this.rules;t.add(this.name,this.fileInfo(),this.getIndex()),n&&(t.add(" "),n.genCSS(e,t)),r?this.outputRuleset(e,t,r):t.add(";")},eval:function(e){var t,n,r=this.value,i=this.rules;return t=e.mediaPath,n=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],r&&(r=r.eval(e)),i&&((i=[i[0].eval(e)])[0].root=!0),e.mediaPath=t,e.mediaBlocks=n,new K(this.name,r,i,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())},variable:function(e){if(this.rules)return J.prototype.variable.call(this.rules[0],e)},find:function(){if(this.rules)return J.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){if(this.rules)return J.prototype.rulesets.apply(this.rules[0])},outputRuleset:function(e,t,n){var r,i=n.length;if(e.tabLevel=1+(0|e.tabLevel),e.compress){for(t.add("{"),r=0;r<i;r++)n[r].genCSS(e,t);return t.add("}"),void e.tabLevel--}var o="\n"+Array(e.tabLevel).join("  "),a=o+"  ";if(i){for(t.add(" {"+a),n[0].genCSS(e,t),r=1;r<i;r++)t.add(a),n[r].genCSS(e,t);t.add(o+"}")}else t.add(" {"+o+"}");e.tabLevel--}});var X=function(e,t){this.ruleset=e,this.frames=t,this.setParent(this.ruleset,this)};X.prototype=Object.assign(new u,{type:"DetachedRuleset",evalFirst:!0,accept:function(e){this.ruleset=e.visit(this.ruleset)},eval:function(e){var t=this.frames||S(e.frames);return new X(this.ruleset,t)},callEval:function(e){return this.ruleset.eval(this.frames?new z.Eval(e,this.frames.concat(e.frames)):e)}});var $=function(e,t,n){this.numerator=e?S(e).sort():[],this.denominator=t?S(t).sort():[],n?this.backupUnit=n:e&&e.length&&(this.backupUnit=e[0])};$.prototype=Object.assign(new u,{type:"Unit",clone:function(){return new $(S(this.numerator),S(this.denominator),this.backupUnit)},genCSS:function(e,t){var n=e&&e.strictUnits;1===this.numerator.length?t.add(this.numerator[0]):!n&&this.backupUnit?t.add(this.backupUnit):!n&&this.denominator.length&&t.add(this.denominator[0])},toString:function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t},compare:function(e){return this.is(e.toString())?0:void 0},is:function(e){return this.toString().toUpperCase()===e.toUpperCase()},isLength:function(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS())},isEmpty:function(){return 0===this.numerator.length&&0===this.denominator.length},isSingular:function(){return this.numerator.length<=1&&0===this.denominator.length},map:function(e){var t;for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1);for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)},usedUnits:function(){var e,t,n,r={};for(n in t=function(t){return e.hasOwnProperty(t)&&!r[n]&&(r[n]=t),t},s)s.hasOwnProperty(n)&&(e=s[n],this.map(t));return r},cancel:function(){var e,t,n={};for(t=0;t<this.numerator.length;t++)n[e=this.numerator[t]]=(n[e]||0)+1;for(t=0;t<this.denominator.length;t++)n[e=this.denominator[t]]=(n[e]||0)-1;for(e in this.numerator=[],this.denominator=[],n)if(n.hasOwnProperty(e)){var r=n[e];if(r>0)for(t=0;t<r;t++)this.numerator.push(e);else if(r<0)for(t=0;t<-r;t++)this.denominator.push(e)}this.numerator.sort(),this.denominator.sort()}});var ee=function(e,t){if(this.value=parseFloat(e),isNaN(this.value))throw new Error("Dimension is not a number.");this.unit=t&&t instanceof $?t:new $(t?[t]:void 0),this.setParent(this.unit,this)};ee.prototype=Object.assign(new u,{type:"Dimension",accept:function(e){this.unit=e.visit(this.unit)},eval:function(e){return this},toColor:function(){return new c([this.value,this.value,this.value])},genCSS:function(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: "+this.unit.toString());var n=this.fround(e,this.value),r=String(n);if(0!==n&&n<1e-6&&n>-1e-6&&(r=n.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(0===n&&this.unit.isLength())return void t.add(r);n>0&&n<1&&(r=r.substr(1))}t.add(r),this.unit.genCSS(e,t)},operate:function(e,t,n){var r=this._operate(e,t,this.value,n.value),i=this.unit.clone();if("+"===t||"-"===t)if(0===i.numerator.length&&0===i.denominator.length)i=n.unit.clone(),this.unit.backupUnit&&(i.backupUnit=this.unit.backupUnit);else if(0===n.unit.numerator.length&&0===i.denominator.length);else{if(n=n.convertTo(this.unit.usedUnits()),e.strictUnits&&n.unit.toString()!==i.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+i.toString()+"' and '"+n.unit.toString()+"'.");r=this._operate(e,t,this.value,n.value)}else"*"===t?(i.numerator=i.numerator.concat(n.unit.numerator).sort(),i.denominator=i.denominator.concat(n.unit.denominator).sort(),i.cancel()):"/"===t&&(i.numerator=i.numerator.concat(n.unit.denominator).sort(),i.denominator=i.denominator.concat(n.unit.numerator).sort(),i.cancel());return new ee(r,i)},compare:function(e){var t,n;if(e instanceof ee){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,n=e;else if(t=this.unify(),n=e.unify(),0!==t.unit.compare(n.unit))return;return u.numericCompare(t.value,n.value)}},unify:function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},convertTo:function(e){var t,n,r,i,o,a=this.value,l=this.unit.clone(),u={};if("string"==typeof e){for(t in s)s[t].hasOwnProperty(e)&&((u={})[t]=e);e=u}for(n in o=function(e,t){return r.hasOwnProperty(e)?(t?a/=r[e]/r[i]:a*=r[e]/r[i],i):e},e)e.hasOwnProperty(n)&&(i=e[n],r=s[n],l.map(o));return l.cancel(),new ee(a,l)}});var te=v,ne=function(e,t,n){this.op=e.trim(),this.operands=t,this.isSpaced=n};ne.prototype=Object.assign(new u,{type:"Operation",accept:function(e){this.operands=e.visitArray(this.operands)},eval:function(e){var t,n=this.operands[0].eval(e),r=this.operands[1].eval(e);if(e.isMathOn(this.op)){if(t="./"===this.op?"/":this.op,n instanceof ee&&r instanceof c&&(n=n.toColor()),r instanceof ee&&n instanceof c&&(r=r.toColor()),!n.operate||!r.operate){if((n instanceof ne||r instanceof ne)&&"/"===n.op&&e.math===te.PARENS_DIVISION)return new ne(this.op,[n,r],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return n.operate(e,t,r)}return new ne(this.op,[n,r],this.isSpaced)},genCSS:function(e,t){this.operands[0].genCSS(e,t),this.isSpaced&&t.add(" "),t.add(this.op),this.isSpaced&&t.add(" "),this.operands[1].genCSS(e,t)}});var re=function(e,t){if(this.value=e,this.noSpacing=t,!e)throw new Error("Expression requires an array parameter")};re.prototype=Object.assign(new u,{type:"Expression",accept:function(e){this.value=e.visitArray(this.value)},eval:function(e){var t,n=e.isMathOn(),r=this.parens,i=!1;return r&&e.inParenthesis(),this.value.length>1?t=new re(this.value.map((function(t){return t.eval?t.eval(e):t})),this.noSpacing):1===this.value.length?(!this.value[0].parens||this.value[0].parensInOp||e.inCalc||(i=!0),t=this.value[0].eval(e)):t=this,r&&e.outOfParenthesis(),!this.parens||!this.parensInOp||n||i||t instanceof ee||(t=new p(t)),t},genCSS:function(e,t){for(var n=0;n<this.value.length;n++)this.value[n].genCSS(e,t),!this.noSpacing&&n+1<this.value.length&&t.add(" ")},throwAwayComments:function(){this.value=this.value.filter((function(e){return!(e instanceof U)}))}});var ie=function(){function e(e,t,n,r){this.name=e.toLowerCase(),this.index=n,this.context=t,this.currentFileInfo=r,this.func=t.frames[0].functionRegistry.get(this.name)}return e.prototype.isValid=function(){return Boolean(this.func)},e.prototype.call=function(e){var t=this;Array.isArray(e)||(e=[e]);var n=this.func.evalArgs;!1!==n&&(e=e.map((function(e){return e.eval(t.context)})));var r=function(e){return!("Comment"===e.type)};return e=e.filter(r).map((function(e){if("Expression"===e.type){var t=e.value.filter(r);return 1===t.length?t[0]:new re(t)}return e})),!1===n?this.func.apply(this,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([this.context],e)):this.func.apply(this,e)},e}(),oe=function(e,t,n,r){this.name=e,this.args=t,this.calc="calc"===e,this._index=n,this._fileInfo=r};oe.prototype=Object.assign(new u,{type:"Call",accept:function(e){this.args&&(this.args=e.visitArray(this.args))},eval:function(e){var t=this,n=e.mathOn;e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc();var r,i=function(){(t.calc||e.inCalc)&&e.exitCalc(),e.mathOn=n},o=new ie(this.name,e,this.getIndex(),this.fileInfo());if(o.isValid())try{r=o.call(this.args),i()}catch(e){if(e.hasOwnProperty("line")&&e.hasOwnProperty("column"))throw e;throw{type:e.type||"Runtime",message:"Error evaluating function `"+this.name+"`"+(e.message?": "+e.message:""),index:this.getIndex(),filename:this.fileInfo().filename,line:e.lineNumber,column:e.columnNumber}}if(null!=r)return r instanceof u||(r=new R(r&&!0!==r?r.toString():null)),r._index=this._index,r._fileInfo=this._fileInfo,r;var a=this.args.map((function(t){return t.eval(e)}));return i(),new oe(this.name,a,this.getIndex(),this.fileInfo())},genCSS:function(e,t){t.add(this.name+"(",this.fileInfo(),this.getIndex());for(var n=0;n<this.args.length;n++)this.args[n].genCSS(e,t),n+1<this.args.length&&t.add(", ");t.add(")")}});var ae=function(e,t,n){this.name=e,this._index=t,this._fileInfo=n};ae.prototype=Object.assign(new u,{type:"Variable",eval:function(e){var t,n=this.name;if(0===n.indexOf("@@")&&(n="@"+new ae(n.slice(1),this.getIndex(),this.fileInfo()).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+n,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,(function(t){var r=t.variable(n);if(r)return r.important&&(e.importantScope[e.importantScope.length-1].important=r.important),e.inCalc?new oe("_SELF",[r.value]).eval(e):r.value.eval(e)})))return this.evaluating=!1,t;throw{type:"Name",message:"variable "+n+" is undefined",filename:this.fileInfo().filename,index:this.getIndex()}},find:function(e,t){for(var n=0,r=void 0;n<e.length;n++)if(r=t.call(e,e[n]))return r;return null}});var se=function(e,t,n){this.name=e,this._index=t,this._fileInfo=n};se.prototype=Object.assign(new u,{type:"Property",eval:function(e){var t,n=this.name,r=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:"Recursive property reference for "+n,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,(function(t){var i,o=t.property(n);if(o){for(var a=0;a<o.length;a++)i=o[a],o[a]=new V(i.name,i.value,i.important,i.merge,i.index,i.currentFileInfo,i.inline,i.variable);return r(o),(i=o[o.length-1]).important&&(e.importantScope[e.importantScope.length-1].important=i.important),i=i.value.eval(e)}})))return this.evaluating=!1,t;throw{type:"Name",message:"Property '"+n+"' is undefined",filename:this.currentFileInfo.filename,index:this.index}},find:function(e,t){for(var n=0,r=void 0;n<e.length;n++)if(r=t.call(e,e[n]))return r;return null}});var le=function(e,t,n){this.key=e,this.op=t,this.value=n};le.prototype=Object.assign(new u,{type:"Attribute",eval:function(e){return new le(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value)},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e){var t=this.key.toCSS?this.key.toCSS(e):this.key;return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),"["+t+"]"}});var ue=function(e,t,n,r,i){this.escaped=null==n||n,this.value=t||"",this.quote=e.charAt(0),this._index=r,this._fileInfo=i,this.variableRegex=/@\{([\w-]+)\}/g,this.propRegex=/\$\{([\w-]+)\}/g,this.allowRoot=n};ue.prototype=Object.assign(new u,{type:"Quoted",genCSS:function(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)},containsVariables:function(){return this.value.match(this.variableRegex)},eval:function(e){var t=this,n=this.value;function r(e,t,n){var r=e;do{e=r.toString(),r=e.replace(t,n)}while(e!==r);return r}return n=r(n,this.variableRegex,(function(n,r){var i=new ae("@"+r,t.getIndex(),t.fileInfo()).eval(e,!0);return i instanceof ue?i.value:i.toCSS()})),n=r(n,this.propRegex,(function(n,r){var i=new se("$"+r,t.getIndex(),t.fileInfo()).eval(e,!0);return i instanceof ue?i.value:i.toCSS()})),new ue(this.quote+n+this.quote,n,this.escaped,this.getIndex(),this.fileInfo())},compare:function(e){return"Quoted"!==e.type||this.escaped||e.escaped?e.toCSS&&this.toCSS()===e.toCSS()?0:void 0:u.numericCompare(this.value,e.value)}});var ce=function(e,t,n,r){this.value=e,this._index=t,this._fileInfo=n,this.isEvald=r};ce.prototype=Object.assign(new u,{type:"Url",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},eval:function(e){var t,n=this.value.eval(e);if(!this.isEvald&&("string"==typeof(t=this.fileInfo()&&this.fileInfo().rootpath)&&"string"==typeof n.value&&e.pathRequiresRewrite(n.value)?(n.quote||(t=t.replace(/[\(\)'"\s]/g,(function(e){return"\\"+e}))),n.value=e.rewritePath(n.value,t)):n.value=e.normalizePath(n.value),e.urlArgs&&!n.value.match(/^\s*data:/))){var r=(-1===n.value.indexOf("?")?"?":"&")+e.urlArgs;-1!==n.value.indexOf("#")?n.value=n.value.replace("#",r+"#"):n.value+=r}return new ce(n,this.getIndex(),this.fileInfo(),!0)}});var de=function(e,t,n,r,i){this._index=n,this._fileInfo=r;var o=new j([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new F(t),this.rules=[new J(o,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(i),this.allowRoot=!0,this.setParent(o,this),this.setParent(this.features,this),this.setParent(this.rules,this)};de.prototype=Object.assign(new K,{type:"Media",isRulesetLike:function(){return!0},accept:function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},genCSS:function(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},eval:function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var t=new de(null,[],this._index,this._fileInfo,this.visibilityInfo());return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t),this.rules[0].functionRegistry=e.frames[0].functionRegistry.inherit(),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),0===e.mediaPath.length?t.evalTop(e):t.evalNested(e)},evalTop:function(e){var t=this;if(e.mediaBlocks.length>1){var n=new j([],null,null,this.getIndex(),this.fileInfo()).createEmptySelectors();(t=new J(n,e.mediaBlocks)).multiMedia=!0,t.copyVisibilityInfo(this.visibilityInfo()),this.setParent(t,this)}return delete e.mediaBlocks,delete e.mediaPath,t},evalNested:function(e){var t,n,r=e.mediaPath.concat([this]);for(t=0;t<r.length;t++)n=r[t].features instanceof F?r[t].features.value:r[t].features,r[t]=Array.isArray(n)?n:[n];return this.features=new F(this.permute(r).map((function(e){for(e=e.map((function(e){return e.toCSS?e:new R(e)})),t=e.length-1;t>0;t--)e.splice(t,0,new R("and"));return new re(e)}))),this.setParent(this.features,this),new J([],[])},permute:function(e){if(0===e.length)return[];if(1===e.length)return e[0];for(var t=[],n=this.permute(e.slice(1)),r=0;r<n.length;r++)for(var i=0;i<e[0].length;i++)t.push([e[0][i]].concat(n[r]));return t},bubbleSelectors:function(e){e&&(this.rules=[new J(S(e),[this.rules[0]])],this.setParent(this.rules,this))}});var fe=function(e,t,n,r,i,o){if(this.options=n,this._index=r,this._fileInfo=i,this.path=e,this.features=t,this.allowRoot=!0,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{var a=this.getPath();a&&/[#\.\&\?]css([\?;].*)?$/.test(a)&&(this.css=!0)}this.copyVisibilityInfo(o),this.setParent(this.features,this),this.setParent(this.path,this)};fe.prototype=Object.assign(new u,{type:"Import",accept:function(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),this.options.isPlugin||this.options.inline||!this.root||(this.root=e.visit(this.root))},genCSS:function(e,t){this.css&&void 0===this.path._fileInfo.reference&&(t.add("@import ",this._fileInfo,this._index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))},getPath:function(){return this.path instanceof ce?this.path.value.value:this.path.value},isVariableImport:function(){var e=this.path;return e instanceof ce&&(e=e.value),!(e instanceof ue)||e.containsVariables()},evalForImport:function(e){var t=this.path;return t instanceof ce&&(t=t.value),new fe(t.eval(e),this.features,this.options,this._index,this._fileInfo,this.visibilityInfo())},evalPath:function(e){var t=this.path.eval(e),n=this._fileInfo;if(!(t instanceof ce)){var r=t.value;n&&r&&e.pathRequiresRewrite(r)?t.value=e.rewritePath(r,n.rootpath):t.value=e.normalizePath(t.value)}return t},eval:function(e){var t=this.doEval(e);return(this.options.reference||this.blocksVisibility())&&(t.length||0===t.length?t.forEach((function(e){e.addVisibilityBlock()})):t.addVisibilityBlock()),t},doEval:function(e){var t,n,r=this.features&&this.features.eval(e);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(e){throw e.message="Plugin error during evaluation",new N(e,this.root.imports,this.root.filename)}return(n=e.frames[0]&&e.frames[0].functionRegistry)&&this.root&&this.root.functions&&n.addMultiple(this.root.functions),[]}if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var i=new R(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0);return this.features?new de([i],this.features.value):[i]}if(this.css){var o=new fe(this.evalPath(e),r,this.options,this._index);if(!o.css&&this.error)throw this.error;return o}return this.root?((t=new J(null,S(this.root.rules))).evalImports(e),this.features?new de(t.rules,this.features.value):t.rules):[]}});var pe=function(){};pe.prototype=Object.assign(new u,{evaluateJavaScript:function(e,t){var n,r=this,i={};if(!t.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};e=e.replace(/@\{([\w-]+)\}/g,(function(e,n){return r.jsify(new ae("@"+n,r.getIndex(),r.fileInfo()).eval(t))}));try{e=new Function("return ("+e+")")}catch(t){throw{message:"JavaScript evaluation error: "+t.message+" from `"+e+"`",filename:this.fileInfo().filename,index:this.getIndex()}}var o=t.frames[0].variables();for(var a in o)o.hasOwnProperty(a)&&(i[a.slice(1)]={value:o[a].value,toJS:function(){return this.value.eval(t).toCSS()}});try{n=e.call(i)}catch(e){throw{message:"JavaScript evaluation error: '"+e.name+": "+e.message.replace(/["]/g,"'")+"'",filename:this.fileInfo().filename,index:this.getIndex()}}return n},jsify:function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map((function(e){return e.toCSS()})).join(", ")+"]":e.toCSS()}});var he=function(e,t,n,r){this.escaped=t,this.expression=e,this._index=n,this._fileInfo=r};he.prototype=Object.assign(new pe,{type:"JavaScript",eval:function(e){var t=this.evaluateJavaScript(this.expression,e),n=typeof t;return"number"!==n||isNaN(t)?"string"===n?new ue('"'+t+'"',t,this.escaped,this._index):Array.isArray(t)?new R(t.join(", ")):new R(t):new ee(t)}});var me=function(e,t){this.key=e,this.value=t};me.prototype=Object.assign(new u,{type:"Assignment",accept:function(e){this.value=e.visit(this.value)},eval:function(e){return this.value.eval?new me(this.key,this.value.eval(e)):this},genCSS:function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)}});var ge=function(e,t,n,r,i){this.op=e.trim(),this.lvalue=t,this.rvalue=n,this._index=r,this.negate=i};ge.prototype=Object.assign(new u,{type:"Condition",accept:function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},eval:function(e){var t=function(e,t,n){switch(e){case"and":return t&&n;case"or":return t||n;default:switch(u.compare(t,n)){case-1:return"<"===e||"=<"===e||"<="===e;case 0:return"="===e||">="===e||"=<"===e||"<="===e;case 1:return">"===e||">="===e;default:return!1}}}(this.op,this.lvalue.eval(e),this.rvalue.eval(e));return this.negate?!t:t}});var ve=function(e){this.value=e};ve.prototype=Object.assign(new u,{type:"UnicodeDescriptor"});var be=function(e){this.value=e};be.prototype=Object.assign(new u,{type:"Negative",genCSS:function(e,t){t.add("-"),this.value.genCSS(e,t)},eval:function(e){return e.isMathOn()?new ne("*",[new ee(-1),this.value]).eval(e):new be(this.value.eval(e))}});var ye=function(e,t,n,r,i){switch(this.selector=e,this.option=t,this.object_id=ye.next_id++,this.parent_ids=[this.object_id],this._index=n,this._fileInfo=r,this.copyVisibilityInfo(i),this.allowRoot=!0,t){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1}this.setParent(this.selector,this)};ye.prototype=Object.assign(new u,{type:"Extend",accept:function(e){this.selector=e.visit(this.selector)},eval:function(e){return new ye(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},clone:function(e){return new ye(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},findSelfSelectors:function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t].elements,t>0&&n.length&&""===n[0].combinator.value&&(n[0].combinator.value=" "),r=r.concat(e[t].elements);this.selfSelectors=[new j(r)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())}}),ye.next_id=0;var Ae=function(e,t,n){this.variable=e,this._index=t,this._fileInfo=n,this.allowRoot=!0};Ae.prototype=Object.assign(new u,{type:"VariableCall",eval:function(e){var t,n=new ae(this.variable,this.getIndex(),this.fileInfo()).eval(e),r=new N({message:"Could not evaluate variable call "+this.variable});if(!n.ruleset){if(n.rules)t=n;else if(Array.isArray(n))t=new J("",n);else{if(!Array.isArray(n.value))throw r;t=new J("",n.value)}n=new X(t)}if(n.ruleset)return n.callEval(e);throw r}});var we=function(e,t,n,r){this.value=e,this.lookups=t,this._index=n,this._fileInfo=r};we.prototype=Object.assign(new u,{type:"NamespaceValue",eval:function(e){var t,n,r=this.value.eval(e);for(t=0;t<this.lookups.length;t++){if(n=this.lookups[t],Array.isArray(r)&&(r=new J([new j],r)),""===n)r=r.lastDeclaration();else if("@"===n.charAt(0)){if("@"===n.charAt(1)&&(n="@"+new ae(n.substr(1)).eval(e).value),r.variables&&(r=r.variable(n)),!r)throw{type:"Name",message:"variable "+n+" not found",filename:this.fileInfo().filename,index:this.getIndex()}}else{if(n="$@"===n.substring(0,2)?"$"+new ae(n.substr(1)).eval(e).value:"$"===n.charAt(0)?n:"$"+n,r.properties&&(r=r.property(n)),!r)throw{type:"Name",message:'property "'+n.substr(1)+'" not found',filename:this.fileInfo().filename,index:this.getIndex()};r=r[r.length-1]}r.value&&(r=r.eval(e).value),r.ruleset&&(r=r.ruleset.eval(e))}return r}});var ke=function(e,t,n,r,i,o,a){this.name=e||"anonymous mixin",this.selectors=[new j([new g(null,e,!1,this._index,this._fileInfo)])],this.params=t,this.condition=r,this.variadic=i,this.arity=t.length,this.rules=n,this._lookups={};var s=[];this.required=t.reduce((function(e,t){return!t.name||t.name&&!t.value?e+1:(s.push(t.name),e)}),0),this.optionalParameters=s,this.frames=o,this.copyVisibilityInfo(a),this.allowRoot=!0};ke.prototype=Object.assign(new J,{type:"MixinDefinition",evalFirst:!0,accept:function(e){this.params&&this.params.length&&(this.params=e.visitArray(this.params)),this.rules=e.visitArray(this.rules),this.condition&&(this.condition=e.visit(this.condition))},evalParams:function(e,t,n,r){var i,o,a,s,l,u,c,d,f=new J(null,null),p=S(this.params),h=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(f.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new z.Eval(t,[f].concat(t.frames)),n)for(h=(n=S(n)).length,a=0;a<h;a++)if(u=(o=n[a])&&o.name){for(c=!1,s=0;s<p.length;s++)if(!r[s]&&u===p[s].name){r[s]=o.value.eval(e),f.prependRule(new V(u,o.value.eval(e))),c=!0;break}if(c){n.splice(a,1),a--;continue}throw{type:"Runtime",message:"Named argument for "+this.name+" "+n[a].name+" not found"}}for(d=0,a=0;a<p.length;a++)if(!r[a]){if(o=n&&n[d],u=p[a].name)if(p[a].variadic){for(i=[],s=d;s<h;s++)i.push(n[s].value.eval(e));f.prependRule(new V(u,new re(i).eval(e)))}else{if(l=o&&o.value)l=Array.isArray(l)?new X(new J("",l)):l.eval(e);else{if(!p[a].value)throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+h+" for "+this.arity+")"};l=p[a].value.eval(t),f.resetCache()}f.prependRule(new V(u,l)),r[a]=l}if(p[a].variadic&&n)for(s=d;s<h;s++)r[s]=n[s].value.eval(e);d++}return f},makeImportant:function(){var e=this.rules?this.rules.map((function(e){return e.makeImportant?e.makeImportant(!0):e})):this.rules;return new ke(this.name,this.params,e,this.condition,this.variadic,this.frames)},eval:function(e){return new ke(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||S(e.frames))},evalCall:function(e,t,n){var r,i,o=[],a=this.frames?this.frames.concat(e.frames):e.frames,s=this.evalParams(e,new z.Eval(e,a),t,o);return s.prependRule(new V("@arguments",new re(o).eval(e))),r=S(this.rules),(i=new J(null,r)).originalRuleset=this,i=i.eval(new z.Eval(e,[this,s].concat(a))),n&&(i=i.makeImportant()),i},matchCondition:function(e,t){return!(this.condition&&!this.condition.eval(new z.Eval(t,[this.evalParams(t,new z.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))},matchArgs:function(e,t){var n,r=e&&e.length||0,i=this.optionalParameters,o=e?e.reduce((function(e,t){return i.indexOf(t.name)<0?e+1:e}),0):0;if(this.variadic){if(o<this.required-1)return!1}else{if(o<this.required)return!1;if(r>this.params.length)return!1}n=Math.min(o,this.arity);for(var a=0;a<n;a++)if(!this.params[a].name&&!this.params[a].variadic&&e[a].value.eval(t).toCSS()!=this.params[a].value.eval(t).toCSS())return!1;return!0}});var xe=function(e,t,n,r,i){this.selector=new j(e),this.arguments=t||[],this._index=n,this._fileInfo=r,this.important=i,this.allowRoot=!0,this.setParent(this.selector,this)};xe.prototype=Object.assign(new u,{type:"MixinCall",accept:function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))},eval:function(e){var t,n,r,i,o,a,s,l,u,c,d,f,p,h,m,g=[],v=[],b=!1,y=[],A=[];function w(t,n){var r,i,o;for(r=0;r<2;r++){for(A[r]=!0,Y.value(r),i=0;i<n.length&&A[r];i++)(o=n[i]).matchCondition&&(A[r]=A[r]&&o.matchCondition(null,e));t.matchCondition&&(A[r]=A[r]&&t.matchCondition(g,e))}return A[0]||A[1]?A[0]!=A[1]?A[1]?1:2:0:-1}for(this.selector=this.selector.eval(e),a=0;a<this.arguments.length;a++)if(o=(i=this.arguments[a]).value.eval(e),i.expand&&Array.isArray(o.value))for(o=o.value,s=0;s<o.length;s++)g.push({value:o[s]});else g.push({name:i.name,value:o});for(m=function(t){return t.matchArgs(null,e)},a=0;a<e.frames.length;a++)if((t=e.frames[a].find(this.selector,null,m)).length>0){for(c=!0,s=0;s<t.length;s++){for(n=t[s].rule,r=t[s].path,u=!1,l=0;l<e.frames.length;l++)if(!(n instanceof ke)&&n===(e.frames[l].originalRuleset||e.frames[l])){u=!0;break}u||n.matchArgs(g,e)&&(-1!==(d={mixin:n,group:w(n,r)}).group&&y.push(d),b=!0)}for(Y.reset(),p=[0,0,0],s=0;s<y.length;s++)p[y[s].group]++;if(p[0]>0)f=2;else if(f=1,p[1]+p[2]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(g)+"`",index:this.getIndex(),filename:this.fileInfo().filename};for(s=0;s<y.length;s++)if(0===(d=y[s].group)||d===f)try{(n=y[s].mixin)instanceof ke||(h=n.originalRuleset||n,(n=new ke("",[],n.rules,null,!1,null,h.visibilityInfo())).originalRuleset=h);var k=n.evalCall(e,g,this.important).rules;this._setVisibilityToReplacement(k),Array.prototype.push.apply(v,k)}catch(e){throw{message:e.message,index:this.getIndex(),filename:this.fileInfo().filename,stack:e.stack}}if(b)return v}throw c?{type:"Runtime",message:"No matching definition was found for `"+this.format(g)+"`",index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.getIndex(),filename:this.fileInfo().filename}},_setVisibilityToReplacement:function(e){var t;if(this.blocksVisibility())for(t=0;t<e.length;t++)e[t].addVisibilityBlock()},format:function(e){return this.selector.toCSS().trim()+"("+(e?e.map((function(e){var t="";return e.name&&(t+=e.name+":"),e.value.toCSS?t+=e.value.toCSS():t+="???",t})).join(", "):"")+")"}});var Ce={Node:u,Color:c,AtRule:K,DetachedRuleset:X,Operation:ne,Dimension:ee,Unit:$,Keyword:D,Variable:ae,Property:se,Ruleset:J,Element:g,Attribute:le,Combinator:m,Selector:j,Quoted:ue,Expression:re,Declaration:V,Call:oe,URL:ce,Import:fe,Comment:U,Anonymous:R,Value:F,JavaScript:he,Assignment:me,Condition:ge,Paren:p,Media:de,UnicodeDescriptor:ve,Negative:be,Extend:ye,VariableCall:Ae,NamespaceValue:we,mixin:{Call:xe,Definition:ke}},Se=function(){function e(){}return e.prototype.getPath=function(e){var t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),(t=e.lastIndexOf("/"))<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)},e.prototype.tryAppendExtension=function(e,t){return/(\.[a-z]*$)|([\?;].*)$/.test(e)?e:e+t},e.prototype.tryAppendLessExtension=function(e){return this.tryAppendExtension(e,".less")},e.prototype.supportsSync=function(){return!1},e.prototype.alwaysMakePathsAbsolute=function(){return!1},e.prototype.isPathAbsolute=function(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)},e.prototype.join=function(e,t){return e?e+t:t},e.prototype.pathDiff=function(e,t){var n,r,i,o,a=this.extractUrlParts(e),s=this.extractUrlParts(t),l="";if(a.hostPart!==s.hostPart)return"";for(r=Math.max(s.directories.length,a.directories.length),n=0;n<r&&s.directories[n]===a.directories[n];n++);for(o=s.directories.slice(n),i=a.directories.slice(n),n=0;n<o.length-1;n++)l+="../";for(n=0;n<i.length-1;n++)l+=i[n]+"/";return l},e.prototype.extractUrlParts=function(e,t){var n,r,i=/^((?:[a-z-]+:)?\/{2}(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,o=e.match(i),a={},s=[],l=[];if(!o)throw new Error("Could not parse sheet href - '"+e+"'");if(t&&(!o[1]||o[2])){if(!(r=t.match(i)))throw new Error("Could not parse page url - '"+t+"'");o[1]=o[1]||r[1]||"",o[2]||(o[3]=r[3]+o[3])}if(o[3])for(s=o[3].replace(/\\/g,"/").split("/"),n=0;n<s.length;n++)".."===s[n]?l.pop():"."!==s[n]&&l.push(s[n]);return a.hostPart=o[1],a.directories=l,a.rawPath=(o[1]||"")+s.join("/"),a.path=(o[1]||"")+l.join("/"),a.filename=o[4],a.fileUrl=a.path+(o[4]||""),a.url=a.fileUrl+(o[5]||""),a},e}(),Me=function(){function e(){this.require=function(){return null}}return e.prototype.evalPlugin=function(e,t,n,r,i){var o,a,s,l,u,c;l=t.pluginManager,i&&(u="string"==typeof i?i:i.filename);var d=(new this.less.FileManager).extractUrlParts(u).filename;if(u&&(a=l.get(u))){if(c=this.trySetOptions(a,u,d,r))return c;try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new N(e,n,u)}return a}s={exports:{},pluginManager:l,fileInfo:i},o=G.create();try{new Function("module","require","registerPlugin","functions","tree","less","fileInfo",e)(s,this.require(u),(function(e){a=e}),o,this.less.tree,this.less,i)}catch(e){return new N(e,n,u)}if(a||(a=s.exports),(a=this.validatePlugin(a,u,d))instanceof N)return a;if(!a)return new N({message:"Not a valid plugin"},n,u);if(a.imports=n,a.filename=u,(!a.minVersion||this.compareVersion("3.0.0",a.minVersion)<0)&&(c=this.trySetOptions(a,u,d,r)))return c;if(l.addPlugin(a,i.filename,o),a.functions=o.getLocalFunctions(),c=this.trySetOptions(a,u,d,r))return c;try{a.use&&a.use.call(this.context,a)}catch(e){return e.message=e.message||"Error during @plugin call",new N(e,n,u)}return a},e.prototype.trySetOptions=function(e,t,n,r){if(r&&!e.setOptions)return new N({message:"Options have been provided but the plugin "+n+" does not support any options."});try{e.setOptions&&e.setOptions(r)}catch(e){return new N(e)}},e.prototype.validatePlugin=function(e,t,n){return e?("function"==typeof e&&(e=new e),e.minVersion&&this.compareVersion(e.minVersion,this.less.version)<0?new N({message:"Plugin "+n+" requires version "+this.versionToString(e.minVersion)}):e):null},e.prototype.compareVersion=function(e,t){"string"==typeof e&&(e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/)).shift();for(var n=0;n<e.length;n++)if(e[n]!==t[n])return parseInt(e[n])>parseInt(t[n])?-1:1;return 0},e.prototype.versionToString=function(e){for(var t="",n=0;n<e.length;n++)t+=(t?".":"")+e[n];return t},e.prototype.printUsage=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.printUsage&&n.printUsage()}},e}(),_e={visitDeeper:!0},Ie=!1;function Oe(e){return e}var Ee=function(){function e(e){this._implementation=e,this._visitInCache={},this._visitOutCache={},Ie||(function e(t,n){var r,i;for(r in t)switch(typeof(i=t[r])){case"function":i.prototype&&i.prototype.type&&(i.prototype.typeIndex=n++);break;case"object":n=e(i,n)}return n}(Ce,1),Ie=!0)}return e.prototype.visit=function(e){if(!e)return e;var t=e.typeIndex;if(!t)return e.value&&e.value.typeIndex&&this.visit(e.value),e;var n,r=this._implementation,i=this._visitInCache[t],o=this._visitOutCache[t],a=_e;if(a.visitDeeper=!0,i||(i=r[n="visit"+e.type]||Oe,o=r[n+"Out"]||Oe,this._visitInCache[t]=i,this._visitOutCache[t]=o),i!==Oe){var s=i.call(r,e,a);e&&r.isReplacing&&(e=s)}if(a.visitDeeper&&e)if(e.length)for(var l=0,u=e.length;l<u;l++)e[l].accept&&e[l].accept(this);else e.accept&&e.accept(this);return o!=Oe&&o.call(r,e),e},e.prototype.visitArray=function(e,t){if(!e)return e;var n,r=e.length;if(t||!this._implementation.isReplacing){for(n=0;n<r;n++)this.visit(e[n]);return e}var i=[];for(n=0;n<r;n++){var o=this.visit(e[n]);void 0!==o&&(o.splice?o.length&&this.flatten(o,i):i.push(o))}return i},e.prototype.flatten=function(e,t){var n,r,i,o,a,s;for(t||(t=[]),r=0,n=e.length;r<n;r++)if(void 0!==(i=e[r]))if(i.splice)for(a=0,o=i.length;a<o;a++)void 0!==(s=i[a])&&(s.splice?s.length&&this.flatten(s,t):t.push(s));else t.push(i);return t},e}(),Le=function(){function e(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}return e.prototype.addImport=function(e){var t=this,n={callback:e,args:null,isReady:!1};return this.imports.push(n),function(){n.args=Array.prototype.slice.call(arguments,0),n.isReady=!0,t.tryRun()}},e.prototype.addVariableImport=function(e){this.variableImports.push(e)},e.prototype.tryRun=function(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){var e=this.imports[0];if(!e.isReady)return;this.imports=this.imports.slice(1),e.callback.apply(null,e.args)}if(0===this.variableImports.length)break;var t=this.variableImports[0];this.variableImports=this.variableImports.slice(1),t()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()},e}(),Ne=function(e,t){this._visitor=new Ee(this),this._importer=e,this._finish=t,this.context=new z.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new Le(this._onSequencerEmpty.bind(this))};Ne.prototype={isReplacing:!1,run:function(e){try{this._visitor.visit(e)}catch(e){this.error=e}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(e,t){var n=e.options.inline;if(!e.css||n){var r=new z.Eval(this.context,S(this.context.frames)),i=r.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,r,i)):this.processImportNode(e,r,i)}t.visitDeeper=!1},processImportNode:function(e,t,n){var r,i=e.options.inline;try{r=e.evalForImport(t)}catch(t){t.filename||(t.index=e.getIndex(),t.filename=e.fileInfo().filename),e.css=!0,e.error=t}if(!r||r.css&&!i)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{r.options.multiple&&(t.importMultiple=!0);for(var o=void 0===r.css,a=0;a<n.rules.length;a++)if(n.rules[a]===e){n.rules[a]=r;break}var s=this.onImported.bind(this,r,t),l=this._sequencer.addImport(s);this._importer.push(r.getPath(),o,r.fileInfo(),r.options,l)}},onImported:function(e,t,n,r,i,o){n&&(n.filename||(n.index=e.getIndex(),n.filename=e.fileInfo().filename),this.error=n);var a=this,s=e.options.inline,l=e.options.isPlugin,u=e.options.optional,c=i||o in a.recursionDetector;if(t.importMultiple||(e.skip=!!c||function(){return o in a.onceFileDetectionMap||(a.onceFileDetectionMap[o]=!0,!1)}),!o&&u&&(e.skip=!0),r&&(e.root=r,e.importedFilename=o,!s&&!l&&(t.importMultiple||!c))){a.recursionDetector[o]=!0;var d=this.context;this.context=t;try{this._visitor.visit(r)}catch(n){this.error=n}this.context=d}a.importCount--,a.isFinished&&a._sequencer.tryRun()},visitDeclaration:function(e,t){"DetachedRuleset"===e.value.type?this.context.frames.unshift(e):t.visitDeeper=!1},visitDeclarationOut:function(e){"DetachedRuleset"===e.value.type&&this.context.frames.shift()},visitAtRule:function(e,t){this.context.frames.unshift(e)},visitAtRuleOut:function(e){this.context.frames.shift()},visitMixinDefinition:function(e,t){this.context.frames.unshift(e)},visitMixinDefinitionOut:function(e){this.context.frames.shift()},visitRuleset:function(e,t){this.context.frames.unshift(e)},visitRulesetOut:function(e){this.context.frames.shift()},visitMedia:function(e,t){this.context.frames.unshift(e.rules[0])},visitMediaOut:function(e){this.context.frames.shift()}};var Te=function(){function e(e){this.visible=e}return e.prototype.run=function(e){this.visit(e)},e.prototype.visitArray=function(e){if(!e)return e;var t,n=e.length;for(t=0;t<n;t++)this.visit(e[t]);return e},e.prototype.visit=function(e){return e?e.constructor===Array?this.visitArray(e):(!e.blocksVisibility||e.blocksVisibility()||(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this)),e):e},e}(),je=function(){function e(){this._visitor=new Ee(this),this.contexts=[],this.allExtendsStack=[[]]}return e.prototype.run=function(e){return(e=this._visitor.visit(e)).allExtends=this.allExtendsStack[0],e},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){if(!e.root){var n,r,i,o,a=[],s=e.rules,l=s?s.length:0;for(n=0;n<l;n++)e.rules[n]instanceof Ce.Extend&&(a.push(s[n]),e.extendOnEveryPath=!0);var u=e.paths;for(n=0;n<u.length;n++){var c=u[n],d=c[c.length-1].extendList;for((o=d?S(d).concat(a):a)&&(o=o.map((function(e){return e.clone()}))),r=0;r<o.length;r++)this.foundExtends=!0,(i=o[r]).findSelfSelectors(c),i.ruleset=e,0===r&&(i.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(i)}this.contexts.push(e.selectors)}},e.prototype.visitRulesetOut=function(e){e.root||(this.contexts.length=this.contexts.length-1)},e.prototype.visitMedia=function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},e.prototype.visitMediaOut=function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},e.prototype.visitAtRule=function(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)},e.prototype.visitAtRuleOut=function(e){this.allExtendsStack.length=this.allExtendsStack.length-1},e}(),Fe=function(){function e(){this._visitor=new Ee(this)}return e.prototype.run=function(e){var t=new je;if(this.extendIndices={},t.run(e),!t.foundExtends)return e;e.allExtends=e.allExtends.concat(this.doExtendChaining(e.allExtends,e.allExtends)),this.allExtendsStack=[e.allExtends];var n=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),n},e.prototype.checkExtendsForNonMatched=function(e){var t=this.extendIndices;e.filter((function(e){return!e.hasFoundMatches&&1==e.parent_ids.length})).forEach((function(e){var n="_unknown_";try{n=e.selector.toCSS({})}catch(e){}t[e.index+" "+n]||(t[e.index+" "+n]=!0,i.warn("extend '"+n+"' has no matches"))}))},e.prototype.doExtendChaining=function(e,t,n){var r,i,o,a,s,l,u,c,d=[],f=this;for(n=n||0,r=0;r<e.length;r++)for(i=0;i<t.length;i++)l=e[r],u=t[i],l.parent_ids.indexOf(u.object_id)>=0||(s=[u.selfSelectors[0]],(o=f.findMatch(l,s)).length&&(l.hasFoundMatches=!0,l.selfSelectors.forEach((function(e){var t=u.visibilityInfo();a=f.extendSelector(o,s,e,l.isVisible()),(c=new Ce.Extend(u.selector,u.option,0,u.fileInfo(),t)).selfSelectors=a,a[a.length-1].extendList=[c],d.push(c),c.ruleset=u.ruleset,c.parent_ids=c.parent_ids.concat(u.parent_ids,l.parent_ids),u.firstExtendOnThisSelectorPath&&(c.firstExtendOnThisSelectorPath=!0,u.ruleset.paths.push(a))}))));if(d.length){if(this.extendChainCount++,n>100){var p="{unable to calculate}",h="{unable to calculate}";try{p=d[0].selfSelectors[0].toCSS(),h=d[0].selector.toCSS()}catch(e){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+p+":extend("+h+")"}}return d.concat(f.doExtendChaining(d,t,n+1))}return d},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitSelector=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){if(!e.root){var n,r,i,o,a=this.allExtendsStack[this.allExtendsStack.length-1],s=[],l=this;for(i=0;i<a.length;i++)for(r=0;r<e.paths.length;r++)if(o=e.paths[r],!e.extendOnEveryPath){var u=o[o.length-1].extendList;u&&u.length||(n=this.findMatch(a[i],o)).length&&(a[i].hasFoundMatches=!0,a[i].selfSelectors.forEach((function(e){var t;t=l.extendSelector(n,o,e,a[i].isVisible()),s.push(t)})))}e.paths=e.paths.concat(s)}},e.prototype.findMatch=function(e,t){var n,r,i,o,a,s,l,u=e.selector.elements,c=[],d=[];for(n=0;n<t.length;n++)for(r=t[n],i=0;i<r.elements.length;i++)for(o=r.elements[i],(e.allowBefore||0===n&&0===i)&&c.push({pathIndex:n,index:i,matched:0,initialCombinator:o.combinator}),s=0;s<c.length;s++)l=c[s],""===(a=o.combinator.value)&&0===i&&(a=" "),!this.isElementValuesEqual(u[l.matched].value,o.value)||l.matched>0&&u[l.matched].combinator.value!==a?l=null:l.matched++,l&&(l.finished=l.matched===u.length,l.finished&&!e.allowAfter&&(i+1<r.elements.length||n+1<t.length)&&(l=null)),l?l.finished&&(l.length=u.length,l.endPathIndex=n,l.endPathElementIndex=i+1,c.length=0,d.push(l)):(c.splice(s,1),s--);return d},e.prototype.isElementValuesEqual=function(e,t){if("string"==typeof e||"string"==typeof t)return e===t;if(e instanceof Ce.Attribute)return e.op===t.op&&e.key===t.key&&(e.value&&t.value?(e=e.value.value||e.value)===(t=t.value.value||t.value):!e.value&&!t.value);if(e=e.value,t=t.value,e instanceof Ce.Selector){if(!(t instanceof Ce.Selector)||e.elements.length!==t.elements.length)return!1;for(var n=0;n<e.elements.length;n++){if(e.elements[n].combinator.value!==t.elements[n].combinator.value&&(0!==n||(e.elements[n].combinator.value||" ")!==(t.elements[n].combinator.value||" ")))return!1;if(!this.isElementValuesEqual(e.elements[n].value,t.elements[n].value))return!1}return!0}return!1},e.prototype.extendSelector=function(e,t,n,r){var i,o,a,s,l,u=0,c=0,d=[];for(i=0;i<e.length;i++)o=t[(s=e[i]).pathIndex],a=new Ce.Element(s.initialCombinator,n.elements[0].value,n.elements[0].isVariable,n.elements[0].getIndex(),n.elements[0].fileInfo()),s.pathIndex>u&&c>0&&(d[d.length-1].elements=d[d.length-1].elements.concat(t[u].elements.slice(c)),c=0,u++),l=o.elements.slice(c,s.index).concat([a]).concat(n.elements.slice(1)),u===s.pathIndex&&i>0?d[d.length-1].elements=d[d.length-1].elements.concat(l):(d=d.concat(t.slice(u,s.pathIndex))).push(new Ce.Selector(l)),u=s.endPathIndex,(c=s.endPathElementIndex)>=t[u].elements.length&&(c=0,u++);return u<t.length&&c>0&&(d[d.length-1].elements=d[d.length-1].elements.concat(t[u].elements.slice(c)),u++),d=(d=d.concat(t.slice(u,t.length))).map((function(e){var t=e.createDerived(e.elements);return r?t.ensureVisibility():t.ensureInvisibility(),t}))},e.prototype.visitMedia=function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},e.prototype.visitMediaOut=function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},e.prototype.visitAtRule=function(e,t){var n=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);n=n.concat(this.doExtendChaining(n,e.allExtends)),this.allExtendsStack.push(n)},e.prototype.visitAtRuleOut=function(e){var t=this.allExtendsStack.length-1;this.allExtendsStack.length=t},e}(),De=function(){function e(){this.contexts=[[]],this._visitor=new Ee(this)}return e.prototype.run=function(e){return this._visitor.visit(e)},e.prototype.visitDeclaration=function(e,t){t.visitDeeper=!1},e.prototype.visitMixinDefinition=function(e,t){t.visitDeeper=!1},e.prototype.visitRuleset=function(e,t){var n,r=this.contexts[this.contexts.length-1],i=[];this.contexts.push(i),e.root||((n=e.selectors)&&(n=n.filter((function(e){return e.getIsOutput()})),e.selectors=n.length?n:n=null,n&&e.joinSelectors(i,r,n)),n||(e.rules=null),e.paths=i)},e.prototype.visitRulesetOut=function(e){this.contexts.length=this.contexts.length-1},e.prototype.visitMedia=function(e,t){var n=this.contexts[this.contexts.length-1];e.rules[0].root=0===n.length||n[0].multiMedia},e.prototype.visitAtRule=function(e,t){var n=this.contexts[this.contexts.length-1];e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||0===n.length||null)},e}(),Re=function(){function e(e){this._visitor=new Ee(this),this._context=e}return e.prototype.containsSilentNonBlockedChild=function(e){var t;if(!e)return!1;for(var n=0;n<e.length;n++)if((t=e[n]).isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1},e.prototype.keepOnlyVisibleChilds=function(e){e&&e.rules&&(e.rules=e.rules.filter((function(e){return e.isVisible()})))},e.prototype.isEmpty=function(e){return!e||!e.rules||0===e.rules.length},e.prototype.hasVisibleSelector=function(e){return!(!e||!e.paths)&&e.paths.length>0},e.prototype.resolveVisibility=function(e,t){if(!e.blocksVisibility()){if(this.isEmpty(e)&&!this.containsSilentNonBlockedChild(t))return;return e}var n=e.rules[0];if(this.keepOnlyVisibleChilds(n),!this.isEmpty(n))return e.ensureVisibility(),e.removeVisibilityBlock(),e},e.prototype.isVisibleRuleset=function(e){return!!e.firstRoot||!this.isEmpty(e)&&!(!e.root&&!this.hasVisibleSelector(e))},e}(),Pe=function(e){this._visitor=new Ee(this),this._context=e,this.utils=new Re(e)};Pe.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitDeclaration:function(e,t){if(!e.blocksVisibility()&&!e.variable)return e},visitMixinDefinition:function(e,t){e.frames=[]},visitExtend:function(e,t){},visitComment:function(e,t){if(!e.blocksVisibility()&&!e.isSilent(this._context))return e},visitMedia:function(e,t){var n=e.rules[0].rules;return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,n)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitAtRule:function(e,t){return e.rules&&e.rules.length?this.visitAtRuleWithBody(e,t):this.visitAtRuleWithoutBody(e,t)},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e},visitAtRuleWithBody:function(e,t){var n=function(e){var t=e.rules;return function(e){var t=e.rules;return 1===t.length&&(!t[0].paths||0===t[0].paths.length)}(e)?t[0].rules:t}(e);return e.accept(this._visitor),t.visitDeeper=!1,this.utils.isEmpty(e)||this._mergeRules(e.rules[0].rules),this.utils.resolveVisibility(e,n)},visitAtRuleWithoutBody:function(e,t){if(!e.blocksVisibility()){if("@charset"===e.name){if(this.charset){if(e.debugInfo){var n=new Ce.Comment("/* "+e.toCSS(this._context).replace(/\n/g,"")+" */\n");return n.debugInfo=e.debugInfo,this._visitor.visit(n)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];if(t&&r instanceof Ce.Declaration&&!r.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:r.getIndex(),filename:r.fileInfo()&&r.fileInfo().filename};if(r instanceof Ce.Call)throw{message:"Function '"+r.name+"' did not return a root node",index:r.getIndex(),filename:r.fileInfo()&&r.fileInfo().filename};if(r.type&&!r.allowRoot)throw{message:r.type+" node returned by a function is not valid here",index:r.getIndex(),filename:r.fileInfo()&&r.fileInfo().filename}}},visitRuleset:function(e,t){var n,r=[];if(this.checkValidNodes(e.rules,e.firstRoot),e.root)e.accept(this._visitor),t.visitDeeper=!1;else{this._compileRulesetPaths(e);for(var i=e.rules,o=i?i.length:0,a=0;a<o;)(n=i[a])&&n.rules?(r.push(this._visitor.visit(n)),i.splice(a,1),o--):a++;o>0?e.accept(this._visitor):e.rules=null,t.visitDeeper=!1}return e.rules&&(this._mergeRules(e.rules),this._removeDuplicateRules(e.rules)),this.utils.isVisibleRuleset(e)&&(e.ensureVisibility(),r.splice(0,0,e)),1===r.length?r[0]:r},_compileRulesetPaths:function(e){e.paths&&(e.paths=e.paths.filter((function(e){var t;for(" "===e[0].elements[0].combinator.value&&(e[0].elements[0].combinator=new Ce.Combinator("")),t=0;t<e.length;t++)if(e[t].isVisible()&&e[t].getIsOutput())return!0;return!1})))},_removeDuplicateRules:function(e){if(e){var t,n,r,i={};for(r=e.length-1;r>=0;r--)if((n=e[r])instanceof Ce.Declaration)if(i[n.name]){(t=i[n.name])instanceof Ce.Declaration&&(t=i[n.name]=[i[n.name].toCSS(this._context)]);var o=n.toCSS(this._context);-1!==t.indexOf(o)?e.splice(r,1):t.push(o)}else i[n.name]=n}},_mergeRules:function(e){if(e){for(var t={},n=[],r=0;r<e.length;r++){var i=e[r];if(i.merge){var o=i.name;t[o]?e.splice(r--,1):n.push(t[o]=[]),t[o].push(i)}}n.forEach((function(e){if(e.length>0){var t=e[0],n=[],r=[new Ce.Expression(n)];e.forEach((function(e){"+"===e.merge&&n.length>0&&r.push(new Ce.Expression(n=[])),n.push(e.value),t.important=t.important||e.important})),t.value=new Ce.Value(r)}}))}}};var Ve={Visitor:Ee,ImportVisitor:Ne,MarkVisibleSelectorsVisitor:Te,ExtendVisitor:Fe,JoinSelectorVisitor:De,ToCSSVisitor:Pe},Be=function(){var e,t,n,r,i,o,a,s=[],l={};function u(n){for(var r,s,c,d=l.i,f=t,p=l.i-a,h=l.i+o.length-p,m=l.i+=n,g=e;l.i<h;l.i++){if(r=g.charCodeAt(l.i),l.autoCommentAbsorb&&47===r){if("/"===(s=g.charAt(l.i+1))){c={index:l.i,isLineComment:!0};var v=g.indexOf("\n",l.i+2);v<0&&(v=h),l.i=v,c.text=g.substr(c.index,l.i-c.index),l.commentStore.push(c);continue}if("*"===s){var b=g.indexOf("*/",l.i+2);if(b>=0){c={index:l.i,text:g.substr(l.i,b+2-l.i),isLineComment:!1},l.i+=c.text.length-1,l.commentStore.push(c);continue}}break}if(32!==r&&10!==r&&9!==r&&13!==r)break}if(o=o.slice(n+l.i-m+p),a=l.i,!o.length){if(t<i.length-1)return o=i[++t],u(0),!0;l.finished=!0}return d!==l.i||f!==t}return l.save=function(){a=l.i,s.push({current:o,i:l.i,j:t})},l.restore=function(e){(l.i>n||l.i===n&&e&&!r)&&(n=l.i,r=e);var i=s.pop();o=i.current,a=l.i=i.i,t=i.j},l.forget=function(){s.pop()},l.isWhitespace=function(t){var n=l.i+(t||0),r=e.charCodeAt(n);return 32===r||13===r||9===r||10===r},l.$re=function(e){l.i>a&&(o=o.slice(l.i-a),a=l.i);var t=e.exec(o);return t?(u(t[0].length),"string"==typeof t?t:1===t.length?t[0]:t):null},l.$char=function(t){return e.charAt(l.i)!==t?null:(u(1),t)},l.$str=function(t){for(var n=t.length,r=0;r<n;r++)if(e.charAt(l.i+r)!==t.charAt(r))return null;return u(n),t},l.$quoted=function(t){var n=t||l.i,r=e.charAt(n);if("'"===r||'"'===r){for(var i=e.length,o=n,a=1;a+o<i;a++)switch(e.charAt(a+o)){case"\\":a++;continue;case"\r":case"\n":break;case r:var s=e.substr(o,a+1);return t||0===t?[r,s]:(u(a+1),s)}return null}},l.$parseUntil=function(t){var n,r="",i=null,o=!1,a=0,s=[],c=[],d=e.length,f=l.i,p=l.i,h=l.i,m=!0;n="string"==typeof t?function(e){return e===t}:function(e){return t.test(e)};do{var g=e.charAt(h);if(0===a&&n(g))(i=e.substr(p,h-p))?c.push(i):c.push(" "),i=c,u(h-f),m=!1;else{if(o){"*"===g&&"/"===e.charAt(h+1)&&(h++,a--,o=!1),h++;continue}switch(g){case"\\":h++,g=e.charAt(h),c.push(e.substr(p,h-p+1)),p=h+1;break;case"/":"*"===e.charAt(h+1)&&(h++,o=!0,a++);break;case"'":case'"':(r=l.$quoted(h))?(c.push(e.substr(p,h-p),r),p=(h+=r[1].length-1)+1):(u(h-f),i=g,m=!1);break;case"{":s.push("}"),a++;break;case"(":s.push(")"),a++;break;case"[":s.push("]"),a++;break;case"}":case")":case"]":var v=s.pop();g===v?a--:(u(h-f),i=v,m=!1)}++h>d&&(m=!1)}}while(m);return i||null},l.autoCommentAbsorb=!0,l.commentStore=[],l.finished=!1,l.peek=function(t){if("string"==typeof t){for(var n=0;n<t.length;n++)if(e.charAt(l.i+n)!==t.charAt(n))return!1;return!0}return t.test(o)},l.peekChar=function(t){return e.charAt(l.i)===t},l.currentChar=function(){return e.charAt(l.i)},l.prevChar=function(){return e.charAt(l.i-1)},l.getInput=function(){return e},l.peekNotNumeric=function(){var t=e.charCodeAt(l.i);return t>57||t<43||47===t||44===t},l.start=function(r,s,c){e=r,l.i=t=a=n=0,i=s?function(e,t){var n,r,i,o,a,s,l,u,c,d=e.length,f=0,p=0,h=[],m=0;function g(t){var n=a-m;n<512&&!t||!n||(h.push(e.slice(m,a+1)),m=a+1)}for(a=0;a<d;a++)if(!((l=e.charCodeAt(a))>=97&&l<=122||l<34))switch(l){case 40:p++,r=a;continue;case 41:if(--p<0)return t("missing opening `(`",a);continue;case 59:p||g();continue;case 123:f++,n=a;continue;case 125:if(--f<0)return t("missing opening `{`",a);f||p||g();continue;case 92:if(a<d-1){a++;continue}return t("unescaped `\\`",a);case 34:case 39:case 96:for(c=0,s=a,a+=1;a<d;a++)if(!((u=e.charCodeAt(a))>96)){if(u==l){c=1;break}if(92==u){if(a==d-1)return t("unescaped `\\`",a);a++}}if(c)continue;return t("unmatched `"+String.fromCharCode(l)+"`",s);case 47:if(p||a==d-1)continue;if(47==(u=e.charCodeAt(a+1)))for(a+=2;a<d&&(!((u=e.charCodeAt(a))<=13)||10!=u&&13!=u);a++);else if(42==u){for(i=s=a,a+=2;a<d-1&&(125==(u=e.charCodeAt(a))&&(o=a),42!=u||47!=e.charCodeAt(a+1));a++);if(a==d-1)return t("missing closing `*/`",s);a++}continue;case 42:if(a<d-1&&47==e.charCodeAt(a+1))return t("unmatched `/*`",a);continue}return 0!==f?t(i>n&&o>i?"missing closing `}` or `*/`":"missing closing `}`",n):0!==p?t("missing closing `)`",r):(g(!0),h)}(r,c):[r],o=i[0],u(0)},l.end=function(){var t,i=l.i>=e.length;return l.i<n&&(t=r,l.i=n),{isFinished:i,furthest:l.i,furthestPossibleErrorMessage:t,furthestReachedEnd:l.i>=e.length-1,furthestChar:e[l.i]}},l},Ue=function e(t,n,r){var i,o=Be();function a(e,t){throw new N({index:o.i,filename:r.filename,type:t||"Syntax",message:e},n)}function s(e,t){var n=e instanceof Function?e.call(i):o.$re(e);if(n)return n;a(t||("string"==typeof e?"expected '"+e+"' got '"+o.currentChar()+"'":"unexpected token"))}function l(e,t){if(o.$char(e))return e;a(t||"expected '"+e+"' got '"+o.currentChar()+"'")}function u(e){var t=r.filename;return{lineNumber:C(e,o.getInput()).line+1,fileName:t}}return{parserInput:o,imports:n,fileInfo:r,parseNode:function(e,t,r,a,s){var l,u=[],c=o;try{c.start(e,!1,(function(e,t){s({message:e,index:t+r})}));for(var d=0,f=void 0,p=void 0;f=t[d];d++)if(p=c.i,l=i[f]()){try{l._index=p+r,l._fileInfo=a}catch(e){}u.push(l)}else u.push(null);c.end().isFinished?s(null,u):s(!0,null)}catch(e){throw new N({index:e.index+r,message:e.message},n,a.filename)}},
// @param str A string containing 'less' markup
// @param callback call `callback` when done.
// @param [additionalData] An optional map which can contains vars - a map (key, value) of variables to apply
parse:function(i,a,s){var l,u,c,d,f=null,p="";if(u=s&&s.globalVars?e.serializeVars(s.globalVars)+"\n":"",c=s&&s.modifyVars?"\n"+e.serializeVars(s.modifyVars):"",t.pluginManager)for(var h=t.pluginManager.getPreProcessors(),m=0;m<h.length;m++)i=h[m].process(i,{context:t,imports:n,fileInfo:r});(u||s&&s.banner)&&(p=(s&&s.banner?s.banner:"")+u,(d=n.contentsIgnoredChars)[r.filename]=d[r.filename]||0,d[r.filename]+=p.length),i=p+(i=i.replace(/\r\n?/g,"\n")).replace(/^\uFEFF/,"")+c,n.contents[r.filename]=i;try{o.start(i,t.chunkInput,(function(e,t){throw new N({index:t,type:"Parse",message:e,filename:r.filename},n)})),Ce.Node.prototype.parse=this,l=new Ce.Ruleset(null,this.parsers.primary()),Ce.Node.prototype.rootNode=l,l.root=!0,l.firstRoot=!0,l.functionRegistry=G.inherit()}catch(e){return a(new N(e,n,r.filename))}var g=o.end();if(!g.isFinished){var v=g.furthestPossibleErrorMessage;v||(v="Unrecognised input","}"===g.furthestChar?v+=". Possibly missing opening '{'":")"===g.furthestChar?v+=". Possibly missing opening '('":g.furthestReachedEnd&&(v+=". Possibly missing something")),f=new N({type:"Parse",message:v,index:g.furthest,filename:r.filename},n)}var b=function(e){return(e=f||e||n.error)?(e instanceof N||(e=new N(e,n,r.filename)),a(e)):a(null,l)};if(!1===t.processImports)return b();new Ve.ImportVisitor(n,b).run(l)},parsers:i={primary:function(){for(var e,t=this.mixin,n=[];;){for(;e=this.comment();)n.push(e);if(o.finished)break;if(o.peek("}"))break;if(e=this.extendRule())n=n.concat(e);else if(e=t.definition()||this.declaration()||t.call(!1,!1)||this.ruleset()||this.variableCall()||this.entities.call()||this.atrule())n.push(e);else{for(var r=!1;o.$char(";");)r=!0;if(!r)break}}return n},comment:function(){if(o.commentStore.length){var e=o.commentStore.shift();return new Ce.Comment(e.text,e.isLineComment,e.index,r)}},entities:{mixinLookup:function(){return i.mixin.call(!0,!0)},quoted:function(e){var t,n=o.i,i=!1;if(o.save(),o.$char("~"))i=!0;else if(e)return void o.restore();if(t=o.$quoted())return o.forget(),new Ce.Quoted(t.charAt(0),t.substr(1,t.length-2),i,n,r);o.restore()},keyword:function(){var e=o.$char("%")||o.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/);if(e)return Ce.Color.fromKeyword(e)||new Ce.Keyword(e)},call:function(){var e,t,n,i=o.i;if(!o.peek(/^url\(/i))if(o.save(),e=o.$re(/^([\w-]+|%|~|progid:[\w\.]+)\(/)){if(e=e[1],(n=this.customFuncCall(e))&&(t=n.parse())&&n.stop)return o.forget(),t;if(t=this.arguments(t),o.$char(")"))return o.forget(),new Ce.Call(e,t,i,r);o.restore("Could not parse call arguments or missing ')'")}else o.forget()},customFuncCall:function(e){return{alpha:t(i.ieAlpha,!0),boolean:t(n),if:t(n)}[e.toLowerCase()];function t(e,t){return{parse:e,stop:t}}function n(){return[s(i.condition,"expected condition")]}},arguments:function(e){var t,n,r=e||[],a=[];for(o.save();;){if(e)e=!1;else{if(!(n=i.detachedRuleset()||this.assignment()||i.expression()))break;n.value&&1==n.value.length&&(n=n.value[0]),r.push(n)}o.$char(",")||(o.$char(";")||t)&&(t=!0,n=r.length<1?r[0]:new Ce.Value(r),a.push(n),r=[])}return o.forget(),t?a:r},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var e,t;if(o.save(),e=o.$re(/^\w+(?=\s?=)/i))if(o.$char("=")){if(t=i.entity())return o.forget(),new Ce.Assignment(e,t);o.restore()}else o.restore();else o.restore()},url:function(){var e,t=o.i;if(o.autoCommentAbsorb=!1,o.$str("url("))return e=this.quoted()||this.variable()||this.property()||o.$re(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",o.autoCommentAbsorb=!0,l(")"),new Ce.URL(null!=e.value||e instanceof Ce.Variable||e instanceof Ce.Property?e:new Ce.Anonymous(e,t),t,r);o.autoCommentAbsorb=!0},variable:function(){var e,t,n=o.i;if(o.save(),"@"===o.currentChar()&&(t=o.$re(/^@@?[\w-]+/))){if("("===(e=o.currentChar())||"["===e&&!o.prevChar().match(/^\s/)){var a=i.variableCall(t);if(a)return o.forget(),a}return o.forget(),new Ce.Variable(t,n,r)}o.restore()},variableCurly:function(){var e,t=o.i;if("@"===o.currentChar()&&(e=o.$re(/^@\{([\w-]+)\}/)))return new Ce.Variable("@"+e[1],t,r)},property:function(){var e,t=o.i;if("$"===o.currentChar()&&(e=o.$re(/^\$[\w-]+/)))return new Ce.Property(e,t,r)},propertyCurly:function(){var e,t=o.i;if("$"===o.currentChar()&&(e=o.$re(/^\$\{([\w-]+)\}/)))return new Ce.Property("$"+e[1],t,r)},color:function(){var e;if(o.save(),"#"===o.currentChar()&&(e=o.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})([\w.#\[])?/))&&!e[2])return o.forget(),new Ce.Color(e[1],void 0,e[0]);o.restore()},colorKeyword:function(){o.save();var e=o.autoCommentAbsorb;o.autoCommentAbsorb=!1;var t=o.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(o.autoCommentAbsorb=e,t){o.restore();var n=Ce.Color.fromKeyword(t);return n?(o.$str(t),n):void 0}o.forget()},dimension:function(){if(!o.peekNotNumeric()){var e=o.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);return e?new Ce.Dimension(e[1],e[2]):void 0}},unicodeDescriptor:function(){var e;if(e=o.$re(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/))return new Ce.UnicodeDescriptor(e[0])},javascript:function(){var e,t=o.i;o.save();var n=o.$char("~");if(o.$char("`")){if(e=o.$re(/^[^`]*`/))return o.forget(),new Ce.JavaScript(e.substr(0,e.length-1),Boolean(n),t,r);o.restore("invalid javascript definition")}else o.restore()}},
//     @fink:
variable:function(){var e;if("@"===o.currentChar()&&(e=o.$re(/^(@[\w-]+)\s*:/)))return e[1]},
//     @fink();
//     @fink;
variableCall:function(e){var t,n=o.i,a=!!e,s=e;if(o.save(),s||"@"===o.currentChar()&&(s=o.$re(/^(@[\w-]+)(\(\s*\))?/))){if(!(t=this.mixin.ruleLookups())&&(a&&"()"!==o.$str("()")||"()"!==s[2]))return void o.restore("Missing '[...]' lookup in variable call");a||(s=s[1]);var l=new Ce.VariableCall(s,n,r);return!a&&i.end()?(o.forget(),l):(o.forget(),new Ce.NamespaceValue(l,t,n,r))}o.restore()},extend:function(e){var t,n,i,l,u,c=o.i;if(o.$str(e?"&:extend(":":extend(")){do{for(i=null,t=null;!(i=o.$re(/^(all)(?=\s*(\)|,))/))&&(n=this.element());)t?t.push(n):t=[n];i=i&&i[1],t||a("Missing target selector for :extend()."),u=new Ce.Extend(new Ce.Selector(t),i,c,r),l?l.push(u):l=[u]}while(o.$char(","));return s(/^\)/),e&&s(/^;/),l}},extendRule:function(){return this.extend(!0)},mixin:{call:function(e,t){var n,a,s,u,c=o.currentChar(),d=!1,f=o.i;if("."===c||"#"===c){if(o.save(),a=this.elements()){if(o.$char("(")&&(s=this.args(!0).args,l(")"),u=!0),!1!==t&&(n=this.ruleLookups()),!0===t&&!n)return void o.restore();if(e&&!n&&!u)return void o.restore();if(!e&&i.important()&&(d=!0),e||i.end()){o.forget();var p=new Ce.mixin.Call(a,s,f,r,!n&&d);return n?new Ce.NamespaceValue(p,n):p}}o.restore()}},elements:function(){for(var e,t,n,i,a,s=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;a=o.i,t=o.$re(s);)i=new Ce.Element(n,t,!1,a,r),e?e.push(i):e=[i],n=o.$char(">");return e},args:function(e){var t,n,r,s,l,u,c,d=i.entities,f={args:null,variadic:!1},p=[],h=[],m=[],g=!0;for(o.save();;){if(e)u=i.detachedRuleset()||i.expression();else{if(o.commentStore.length=0,o.$str("...")){f.variadic=!0,o.$char(";")&&!t&&(t=!0),(t?h:m).push({variadic:!0});break}u=d.variable()||d.property()||d.literal()||d.keyword()||this.call(!0)}if(!u||!g)break;s=null,u.throwAwayComments&&u.throwAwayComments(),l=u;var v=null;if(e?u.value&&1==u.value.length&&(v=u.value[0]):v=u,v&&(v instanceof Ce.Variable||v instanceof Ce.Property))if(o.$char(":")){if(p.length>0&&(t&&a("Cannot mix ; and , as delimiter types"),n=!0),!(l=i.detachedRuleset()||i.expression())){if(!e)return o.restore(),f.args=[],f;a("could not understand value for named argument")}s=r=v.name}else if(o.$str("...")){if(!e){f.variadic=!0,o.$char(";")&&!t&&(t=!0),(t?h:m).push({name:u.name,variadic:!0});break}c=!0}else e||(r=s=v.name,l=null);l&&p.push(l),m.push({name:s,value:l,expand:c}),o.$char(",")?g=!0:((g=";"===o.$char(";"))||t)&&(n&&a("Cannot mix ; and , as delimiter types"),t=!0,p.length>1&&(l=new Ce.Value(p)),h.push({name:r,value:l,expand:c}),r=null,p=[],n=!1)}return o.forget(),f.args=t?h:m,f},definition:function(){var e,t,n,r,a=[],l=!1;if(!("."!==o.currentChar()&&"#"!==o.currentChar()||o.peek(/^[^{]*\}/)))if(o.save(),t=o.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){e=t[1];var u=this.args(!1);if(a=u.args,l=u.variadic,!o.$char(")"))return void o.restore("Missing closing ')'");if(o.commentStore.length=0,o.$str("when")&&(r=s(i.conditions,"expected condition")),n=i.block())return o.forget(),new Ce.mixin.Definition(e,a,n,r,l);o.restore()}else o.restore()},ruleLookups:function(){var e,t=[];if("["===o.currentChar()){for(;;){if(o.save(),!(e=this.lookupValue())&&""!==e){o.restore();break}t.push(e),o.forget()}return t.length>0?t:void 0}},lookupValue:function(){if(o.save(),o.$char("[")){var e=o.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(o.$char("]"))return e||""===e?(o.forget(),e):void o.restore();o.restore()}else o.restore()}},entity:function(){var e=this.entities;return this.comment()||e.literal()||e.variable()||e.url()||e.property()||e.call()||e.keyword()||this.mixin.call(!0)||e.javascript()},end:function(){return o.$char(";")||o.peek("}")},ieAlpha:function(){var e;if(o.$re(/^opacity=/i))return(e=o.$re(/^\d+/))||(e="@{"+(e=s(i.entities.variable,"Could not parse alpha")).name.slice(1)+"}"),l(")"),new Ce.Quoted("","alpha(opacity="+e+")")},element:function(){var e,t,n,i=o.i;if(t=this.combinator(),(e=o.$re(/^(?:\d+\.\d+|\d+)%/)||o.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||o.$char("*")||o.$char("&")||this.attribute()||o.$re(/^\([^&()@]+\)/)||o.$re(/^[\.#:](?=@)/)||this.entities.variableCurly())||(o.save(),o.$char("(")?(n=this.selector(!1))&&o.$char(")")?(e=new Ce.Paren(n),o.forget()):o.restore("Missing closing ')'"):o.forget()),e)return new Ce.Element(t,e,e instanceof Ce.Variable,i,r)},combinator:function(){var e=o.currentChar();if("/"===e){o.save();var t=o.$re(/^\/[a-z]+\//i);if(t)return o.forget(),new Ce.Combinator(t);o.restore()}if(">"===e||"+"===e||"~"===e||"|"===e||"^"===e){for(o.i++,"^"===e&&"^"===o.currentChar()&&(e="^^",o.i++);o.isWhitespace();)o.i++;return new Ce.Combinator(e)}return o.isWhitespace(-1)?new Ce.Combinator(" "):new Ce.Combinator(null)},selector:function(e){var t,n,i,l,u,c,d,f=o.i;for(e=!1!==e;(e&&(n=this.extend())||e&&(c=o.$str("when"))||(l=this.element()))&&(c?d=s(this.conditions,"expected condition"):d?a("CSS guard can only be used at the end of selector"):n?u=u?u.concat(n):n:(u&&a("Extend can only be used at the end of selector"),i=o.currentChar(),t?t.push(l):t=[l],l=null),"{"!==i&&"}"!==i&&";"!==i&&","!==i&&")"!==i););if(t)return new Ce.Selector(t,u,d,f,r);u&&a("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){for(var e,t;(e=this.selector())&&(t?t.push(e):t=[e],o.commentStore.length=0,e.condition&&t.length>1&&a("Guards are only currently allowed on a single selector."),o.$char(","));)e.condition&&a("Guards are only currently allowed on a single selector."),o.commentStore.length=0;return t},attribute:function(){if(o.$char("[")){var e,t,n,r=this.entities;return(e=r.variableCurly())||(e=s(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),(n=o.$re(/^[|~*$^]?=/))&&(t=r.quoted()||o.$re(/^[0-9]+%/)||o.$re(/^[\w-]+/)||r.variableCurly()),l("]"),new Ce.Attribute(e,n,t)}},block:function(){var e;if(o.$char("{")&&(e=this.primary())&&o.$char("}"))return e},blockRuleset:function(){var e=this.block();return e&&(e=new Ce.Ruleset(null,e)),e},detachedRuleset:function(){var e,t,n;if(o.save(),!o.$re(/^[.#]\(/)||(t=(e=this.mixin.args(!1)).args,n=e.variadic,o.$char(")"))){var r=this.blockRuleset();if(r)return o.forget(),t?new Ce.mixin.Definition(null,t,r,null,n):new Ce.DetachedRuleset(r);o.restore()}else o.restore()},ruleset:function(){var e,n,r;if(o.save(),t.dumpLineNumbers&&(r=u(o.i)),(e=this.selectors())&&(n=this.block())){o.forget();var i=new Ce.Ruleset(e,n,t.strictImports);return t.dumpLineNumbers&&(i.debugInfo=r),i}o.restore()},declaration:function(){var e,t,n,i,a,s,l=o.i,u=o.currentChar();if("."!==u&&"#"!==u&&"&"!==u&&":"!==u)if(o.save(),e=this.variable()||this.ruleProperty()){if((s="string"==typeof e)&&(t=this.detachedRuleset())&&(n=!0),o.commentStore.length=0,!t){if(a=!s&&e.length>1&&e.pop().value,t=e[0].value&&"--"===e[0].value.slice(0,2)?this.permissiveValue():this.anonymousValue())return o.forget(),new Ce.Declaration(e,t,!1,a,l,r);t||(t=this.value()),t?i=this.important():s&&(t=this.permissiveValue())}if(t&&(this.end()||n))return o.forget(),new Ce.Declaration(e,t,i,a,l,r);o.restore()}else o.restore()},anonymousValue:function(){var e=o.i,t=o.$re(/^([^.#@\$+\/'"*`(;{}-]*);/);if(t)return new Ce.Anonymous(t[1],e)},permissiveValue:function(e){var t,n,i,s,l=e||";",u=o.i,c=[];function d(){var e=o.currentChar();return"string"==typeof l?e===l:l.test(e)}if(!d()){s=[];do{((n=this.comment())||(n=this.entity()))&&s.push(n)}while(n);if(i=d(),s.length>0){if(s=new Ce.Expression(s),i)return s;c.push(s)," "===o.prevChar()&&c.push(new Ce.Anonymous(" ",u))}if(o.save(),s=o.$parseUntil(l)){if("string"==typeof s&&a("Expected '"+s+"'","Parse"),1===s.length&&" "===s[0])return o.forget(),new Ce.Anonymous("",u);var f=void 0;for(t=0;t<s.length;t++)if(f=s[t],Array.isArray(f))c.push(new Ce.Quoted(f[0],f[1],!0,u,r));else{t===s.length-1&&(f=f.trim());var p=new Ce.Quoted("'",f,!0,u,r);p.variableRegex=/@([\w-]+)/g,p.propRegex=/\$([\w-]+)/g,c.push(p)}return o.forget(),new Ce.Expression(c,!0)}o.restore()}},
//     @import "lib";
import:function(){var e,t,n=o.i,i=o.$re(/^@import?\s+/);if(i){var s=(i?this.importOptions():null)||{};if(e=this.entities.quoted()||this.entities.url())return t=this.mediaFeatures(),o.$char(";")||(o.i=n,a("missing semi-colon or unrecognised media features on import")),t=t&&new Ce.Value(t),new Ce.Import(e,t,s,n,r);o.i=n,a("malformed import statement")}},importOptions:function(){var e,t,n,r={};if(!o.$char("("))return null;do{if(e=this.importOption()){switch(n=!0,t=e){case"css":t="less",n=!1;break;case"once":t="multiple",n=!1}if(r[t]=n,!o.$char(","))break}}while(e);return l(")"),r},importOption:function(){var e=o.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(e)return e[1]},mediaFeature:function(){var e,t,n=this.entities,i=[];o.save();do{(e=n.keyword()||n.variable()||n.mixinLookup())?i.push(e):o.$char("(")&&(t=this.property(),e=this.value(),o.$char(")")?t&&e?i.push(new Ce.Paren(new Ce.Declaration(t,e,null,null,o.i,r,!0))):e?i.push(new Ce.Paren(e)):a("badly formed media feature definition"):a("Missing closing ')'","Parse"))}while(e);if(o.forget(),i.length>0)return new Ce.Expression(i)},mediaFeatures:function(){var e,t=this.entities,n=[];do{if(e=this.mediaFeature()){if(n.push(e),!o.$char(","))break}else if((e=t.variable()||t.mixinLookup())&&(n.push(e),!o.$char(",")))break}while(e);return n.length>0?n:null},media:function(){var e,n,i,s,l=o.i;if(t.dumpLineNumbers&&(s=u(l)),o.save(),o.$str("@media"))return e=this.mediaFeatures(),(n=this.block())||a("media definitions require block statements after any features"),o.forget(),i=new Ce.Media(n,e,l,r),t.dumpLineNumbers&&(i.debugInfo=s),i;o.restore()},
//     @plugin (args) "lib";
plugin:function(){var e,t,n,i=o.i;if(o.$re(/^@plugin?\s+/)){if(n=(t=this.pluginArgs())?{pluginArgs:t,isPlugin:!0}:{isPlugin:!0},e=this.entities.quoted()||this.entities.url())return o.$char(";")||(o.i=i,a("missing semi-colon on @plugin")),new Ce.Import(e,null,n,i,r);o.i=i,a("malformed @plugin statement")}},pluginArgs:function(){if(o.save(),!o.$char("("))return o.restore(),null;var e=o.$re(/^\s*([^\);]+)\)\s*/);return e[1]?(o.forget(),e[1].trim()):(o.restore(),null)},
//     @charset "utf-8";
atrule:function(){var e,n,i,s,l,c,d,f=o.i,p=!0,h=!0;if("@"===o.currentChar()){if(n=this.import()||this.plugin()||this.media())return n;if(o.save(),e=o.$re(/^@[a-z-]+/)){switch(s=e,"-"==e.charAt(1)&&e.indexOf("-",2)>0&&(s="@"+e.slice(e.indexOf("-",2)+1)),s){case"@charset":l=!0,p=!1;break;case"@namespace":c=!0,p=!1;break;case"@keyframes":case"@counter-style":l=!0;break;case"@document":case"@supports":d=!0,h=!1;break;default:d=!0}if(o.commentStore.length=0,l?(n=this.entity())||a("expected "+e+" identifier"):c?(n=this.expression())||a("expected "+e+" expression"):d&&(n=this.permissiveValue(/^[{;]/),p="{"===o.currentChar(),n?n.value||(n=null):p||";"===o.currentChar()||a(e+" rule is missing block or ending semi-colon")),p&&(i=this.blockRuleset()),i||!p&&n&&o.$char(";"))return o.forget(),new Ce.AtRule(e,n,i,f,r,t.dumpLineNumbers?u(f):null,h);o.restore("at-rule options not recognised")}}},value:function(){var e,t=[],n=o.i;do{if((e=this.expression())&&(t.push(e),!o.$char(",")))break}while(e);if(t.length>0)return new Ce.Value(t,n)},important:function(){if("!"===o.currentChar())return o.$re(/^! *important/)},sub:function(){var e,t;if(o.save(),o.$char("("))return(e=this.addition())&&o.$char(")")?(o.forget(),(t=new Ce.Expression([e])).parens=!0,t):void o.restore("Expected ')'");o.restore()},multiplication:function(){var e,t,n,r,i;if(e=this.operand()){for(i=o.isWhitespace(-1);!o.peek(/^\/[*\/]/);){if(o.save(),!(n=o.$char("/")||o.$char("*")||o.$str("./"))){o.forget();break}if(!(t=this.operand())){o.restore();break}o.forget(),e.parensInOp=!0,t.parensInOp=!0,r=new Ce.Operation(n,[r||e,t],i),i=o.isWhitespace(-1)}return r||e}},addition:function(){var e,t,n,r,i;if(e=this.multiplication()){for(i=o.isWhitespace(-1);(n=o.$re(/^[-+]\s+/)||!i&&(o.$char("+")||o.$char("-")))&&(t=this.multiplication());)e.parensInOp=!0,t.parensInOp=!0,r=new Ce.Operation(n,[r||e,t],i),i=o.isWhitespace(-1);return r||e}},conditions:function(){var e,t,n,r=o.i;if(e=this.condition(!0)){for(;o.peek(/^,\s*(not\s*)?\(/)&&o.$char(",")&&(t=this.condition(!0));)n=new Ce.Condition("or",n||e,t,r);return n||e}},condition:function(e){var t,n,r;if(t=this.conditionAnd(e)){if(n=o.$str("or")){if(!(r=this.condition(e)))return;t=new Ce.Condition(n,t,r)}return t}},conditionAnd:function(e){var t,n,r,i,a=this;if(t=(i=a.negatedCondition(e)||a.parenthesisCondition(e))||e?i:a.atomicCondition(e)){if(n=o.$str("and")){if(!(r=this.conditionAnd(e)))return;t=new Ce.Condition(n,t,r)}return t}},negatedCondition:function(e){if(o.$str("not")){var t=this.parenthesisCondition(e);return t&&(t.negate=!t.negate),t}},parenthesisCondition:function(e){var t;if(o.save(),o.$str("(")){if(t=function(t){var n;if(o.save(),n=t.condition(e)){if(o.$char(")"))return o.forget(),n;o.restore()}else o.restore()}(this))return o.forget(),t;if(t=this.atomicCondition(e)){if(o.$char(")"))return o.forget(),t;o.restore("expected ')' got '"+o.currentChar()+"'")}else o.restore()}else o.restore()},atomicCondition:function(e){var t,n,r,i,s=this.entities,l=o.i;function u(){return this.addition()||s.keyword()||s.quoted()||s.mixinLookup()}if(t=(u=u.bind(this))())return o.$char(">")?i=o.$char("=")?">=":">":o.$char("<")?i=o.$char("=")?"<=":"<":o.$char("=")&&(i=o.$char(">")?"=>":o.$char("<")?"=<":"="),i?(n=u())?r=new Ce.Condition(i,t,n,l,!1):a("expected expression"):r=new Ce.Condition("=",t,new Ce.Keyword("true"),l,!1),r},operand:function(){var e,t=this.entities;o.peek(/^-[@\$\(]/)&&(e=o.$char("-"));var n=this.sub()||t.dimension()||t.color()||t.variable()||t.property()||t.call()||t.quoted(!0)||t.colorKeyword()||t.mixinLookup();return e&&(n.parensInOp=!0,n=new Ce.Negative(n)),n},
//     @var * 2
expression:function(){var e,t,n=[],r=o.i;do{(e=this.comment())?n.push(e):((e=this.addition()||this.entity())instanceof Ce.Comment&&(e=null),e&&(n.push(e),o.peek(/^\/[\/*]/)||(t=o.$char("/"))&&n.push(new Ce.Anonymous(t,r))))}while(e);if(n.length>0)return new Ce.Expression(n)},property:function(){var e=o.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(e)return e[1]},ruleProperty:function(){var e,t,n=[],i=[];o.save();var a=o.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(a)return n=[new Ce.Keyword(a[1])],o.forget(),n;function s(e){var t=o.i,r=o.$re(e);if(r)return i.push(t),n.push(r[1])}for(s(/^(\*?)/);s(/^((?:[\w-]+)|(?:[@\$]\{[\w-]+\}))/););if(n.length>1&&s(/^((?:\+_|\+)?)\s*:/)){for(o.forget(),""===n[0]&&(n.shift(),i.shift()),t=0;t<n.length;t++)e=n[t],n[t]="@"!==e.charAt(0)&&"$"!==e.charAt(0)?new Ce.Keyword(e):"@"===e.charAt(0)?new Ce.Variable("@"+e.slice(2,-1),i[t],r):new Ce.Property("$"+e.slice(2,-1),i[t],r);return n}o.restore()}}}};function ze(e,t,n,r){return t.eval(e)?n.eval(e):r?r.eval(e):new R}function qe(e,t){try{return t.eval(e),D.True}catch(e){return D.False}}Ue.serializeVars=function(e){var t="";for(var n in e)if(Object.hasOwnProperty.call(e,n)){var r=e[n];t+=("@"===n[0]?"":"@")+n+": "+r+(";"===String(r).slice(-1)?"":";")}return t},ze.evalArgs=!1,qe.evalArgs=!1;var He,We={isdefined:qe,boolean:function(e){return e?D.True:D.False},if:ze};function Qe(e){return Math.min(1,Math.max(0,e))}function Ze(e,t){var n=He.hsla(t.h,t.s,t.l,t.a);if(n)return e.value&&/^(rgb|hsl)/.test(e.value)?n.value=e.value:n.value="rgb",n}function Ge(e){if(e.toHSL)return e.toHSL();throw new Error("Argument cannot be evaluated to a color")}function Ye(e){if(e.toHSV)return e.toHSV();throw new Error("Argument cannot be evaluated to a color")}function Je(e){if(e instanceof ee)return parseFloat(e.unit.is("%")?e.value/100:e.value);if("number"==typeof e)return e;throw{type:"Argument",message:"color functions take numbers as parameters"}}var Ke=He={rgb:function(e,t,n){var r=1;if(e instanceof re){var i=e.value;if(e=i[0],t=i[1],(n=i[2])instanceof ne){var o=n;n=o.operands[0],r=o.operands[1]}}var a=He.rgba(e,t,n,r);if(a)return a.value="rgb",a},rgba:function(e,t,n,r){try{if(e instanceof c)return r=t?Je(t):e.alpha,new c(e.rgb,r,"rgba");var i=[e,t,n].map((function(e){return n=255,(t=e)instanceof ee&&t.unit.is("%")?parseFloat(t.value*n/100):Je(t);var t,n}));return r=Je(r),new c(i,r,"rgba")}catch(e){}},hsl:function(e,t,n){var r=1;if(e instanceof re){var i=e.value;if(e=i[0],t=i[1],(n=i[2])instanceof ne){var o=n;n=o.operands[0],r=o.operands[1]}}var a=He.hsla(e,t,n,r);if(a)return a.value="hsl",a},hsla:function(e,t,n,r){try{if(e instanceof c)return r=t?Je(t):e.alpha,new c(e.rgb,r,"hsla");var i,o;function a(e){return 6*(e=e<0?e+1:e>1?e-1:e)<1?i+(o-i)*e*6:2*e<1?o:3*e<2?i+(o-i)*(2/3-e)*6:i}e=Je(e)%360/360,t=Qe(Je(t)),n=Qe(Je(n)),r=Qe(Je(r)),i=2*n-(o=n<=.5?n*(t+1):n+t-n*t);var s=[255*a(e+1/3),255*a(e),255*a(e-1/3)];return r=Je(r),new c(s,r,"hsla")}catch(e){}},hsv:function(e,t,n){return He.hsva(e,t,n,1)},hsva:function(e,t,n,r){var i,o;e=Je(e)%360/360*360,t=Je(t),n=Je(n),r=Je(r);var a=[n,n*(1-t),n*(1-(o=e/60-(i=Math.floor(e/60%6)))*t),n*(1-(1-o)*t)],s=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return He.rgba(255*a[s[i][0]],255*a[s[i][1]],255*a[s[i][2]],r)},hue:function(e){return new ee(Ge(e).h)},saturation:function(e){return new ee(100*Ge(e).s,"%")},lightness:function(e){return new ee(100*Ge(e).l,"%")},hsvhue:function(e){return new ee(Ye(e).h)},hsvsaturation:function(e){return new ee(100*Ye(e).s,"%")},hsvvalue:function(e){return new ee(100*Ye(e).v,"%")},red:function(e){return new ee(e.rgb[0])},green:function(e){return new ee(e.rgb[1])},blue:function(e){return new ee(e.rgb[2])},alpha:function(e){return new ee(Ge(e).a)},luma:function(e){return new ee(e.luma()*e.alpha*100,"%")},luminance:function(e){var t=.2126*e.rgb[0]/255+.7152*e.rgb[1]/255+.0722*e.rgb[2]/255;return new ee(t*e.alpha*100,"%")},saturate:function(e,t,n){if(!e.rgb)return null;var r=Ge(e);return void 0!==n&&"relative"===n.value?r.s+=r.s*t.value/100:r.s+=t.value/100,r.s=Qe(r.s),Ze(e,r)},desaturate:function(e,t,n){var r=Ge(e);return void 0!==n&&"relative"===n.value?r.s-=r.s*t.value/100:r.s-=t.value/100,r.s=Qe(r.s),Ze(e,r)},lighten:function(e,t,n){var r=Ge(e);return void 0!==n&&"relative"===n.value?r.l+=r.l*t.value/100:r.l+=t.value/100,r.l=Qe(r.l),Ze(e,r)},darken:function(e,t,n){var r=Ge(e);return void 0!==n&&"relative"===n.value?r.l-=r.l*t.value/100:r.l-=t.value/100,r.l=Qe(r.l),Ze(e,r)},fadein:function(e,t,n){var r=Ge(e);return void 0!==n&&"relative"===n.value?r.a+=r.a*t.value/100:r.a+=t.value/100,r.a=Qe(r.a),Ze(e,r)},fadeout:function(e,t,n){var r=Ge(e);return void 0!==n&&"relative"===n.value?r.a-=r.a*t.value/100:r.a-=t.value/100,r.a=Qe(r.a),Ze(e,r)},fade:function(e,t){var n=Ge(e);return n.a=t.value/100,n.a=Qe(n.a),Ze(e,n)},spin:function(e,t){var n=Ge(e),r=(n.h+t.value)%360;return n.h=r<0?360+r:r,Ze(e,n)},mix:function(e,t,n){n||(n=new ee(50));var r=n.value/100,i=2*r-1,o=Ge(e).a-Ge(t).a,a=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-a,l=[e.rgb[0]*a+t.rgb[0]*s,e.rgb[1]*a+t.rgb[1]*s,e.rgb[2]*a+t.rgb[2]*s],u=e.alpha*r+t.alpha*(1-r);return new c(l,u)},greyscale:function(e){return He.desaturate(e,new ee(100))},contrast:function(e,t,n,r){if(!e.rgb)return null;if(void 0===n&&(n=He.rgba(255,255,255,1)),void 0===t&&(t=He.rgba(0,0,0,1)),t.luma()>n.luma()){var i=n;n=t,t=i}return r=void 0===r?.43:Je(r),e.luma()<r?n:t},argb:function(e){return new R(e.toARGB())},color:function(e){if(e instanceof ue&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(e.value)){var t=e.value.slice(1);return new c(t,void 0,"#"+t)}if(e instanceof c||(e=c.fromKeyword(e.value)))return e.value=void 0,e;throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(e,t){return He.mix(He.rgb(255,255,255),e,t)},shade:function(e,t){return He.mix(He.rgb(0,0,0),e,t)}};function Xe(e,t,n){var r,i,o,a,s=t.alpha,l=n.alpha,u=[];o=l+s*(1-l);for(var d=0;d<3;d++)a=e(r=t.rgb[d]/255,i=n.rgb[d]/255),o&&(a=(l*i+s*(r-l*(r+i-a)))/o),u[d]=255*a;return new c(u,o)}var $e={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return(e*=2)<=1?$e.multiply(e,t):$e.screen(e-1,t)},softlight:function(e,t){var n=1,r=e;return t>.5&&(r=1,n=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*r*(n-e)},hardlight:function(e,t){return $e.overlay(t,e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},average:function(e,t){return(e+t)/2},negation:function(e,t){return 1-Math.abs(e+t-1)}};for(var et in $e)$e.hasOwnProperty(et)&&(Xe[et]=Xe.bind(null,$e[et]));var tt=function(e){return Array.isArray(e.value)?e.value:Array(e)},nt={_SELF:function(e){return e},"~":function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?e[0]:new F(e)},extract:function(e,t){return t=t.value-1,tt(e)[t]},length:function(e){return new ee(tt(e).length)},range:function(e,t,n){var r,i,o=1,a=[];t?(i=t,r=e.value,n&&(o=n.value)):(r=1,i=e);for(var s=r;s<=i.value;s+=o)a.push(new ee(s,i.unit));return new re(a)},each:function(e,t){var n,r,i=this,o=[],a=function(e){return e instanceof u?e.eval(i.context):e};r=!e.value||e instanceof ue?e.ruleset?a(e.ruleset).rules:e.rules?e.rules.map(a):Array.isArray(e)?e.map(a):[a(e)]:Array.isArray(e.value)?e.value.map(a):[a(e.value)];var s="@value",l="@key",c="@index";t.params?(s=t.params[0]&&t.params[0].name,l=t.params[1]&&t.params[1].name,c=t.params[2]&&t.params[2].name,t=t.rules):t=t.ruleset;for(var d=0;d<r.length;d++){var f=void 0,p=void 0,h=r[d];h instanceof V?(f="string"==typeof h.name?h.name:h.name[0].value,p=h.value):(f=new ee(d+1),p=h),h instanceof U||(n=t.rules.slice(0),s&&n.push(new V(s,p,!1,!1,this.index,this.currentFileInfo)),c&&n.push(new V(c,new ee(d+1),!1,!1,this.index,this.currentFileInfo)),l&&n.push(new V(l,f,!1,!1,this.index,this.currentFileInfo)),o.push(new J([new j([new g("","&")])],n,t.strictImports,t.visibilityInfo())))}return new J([new j([new g("","&")])],o,t.strictImports,t.visibilityInfo()).eval(this.context)}},rt=function(e,t,n){if(!(n instanceof ee))throw{type:"Argument",message:"argument must be a number"};return null==t?t=n.unit:n=n.unify(),new ee(e(parseFloat(n.value)),t)},it={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var ot in it)it.hasOwnProperty(ot)&&(it[ot]=rt.bind(null,Math[ot],it[ot]));it.round=function(e,t){var n=void 0===t?0:t.value;return rt((function(e){return e.toFixed(n)}),null,e)};var at=function(e,t){switch((t=Array.prototype.slice.call(t)).length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var n,r,i,o,a,s,l,u,c=[],d={};for(n=0;n<t.length;n++)if((i=t[n])instanceof ee)if(l=""!==(s=""===(o=""===i.unit.toString()&&void 0!==u?new ee(i.value,u).unify():i.unify()).unit.toString()&&void 0!==l?l:o.unit.toString())&&void 0===l||""!==s&&""===c[0].unify().unit.toString()?s:l,u=""!==s&&void 0===u?i.unit.toString():u,void 0!==(r=void 0!==d[""]&&""!==s&&s===l?d[""]:d[s]))a=""===c[r].unit.toString()&&void 0!==u?new ee(c[r].value,u).unify():c[r].unify(),(e&&o.value<a.value||!e&&o.value>a.value)&&(c[r]=i);else{if(void 0!==l&&s!==l)throw{type:"Argument",message:"incompatible types"};d[s]=c.length,c.push(i)}else Array.isArray(t[n].value)&&Array.prototype.push.apply(t,Array.prototype.slice.call(t[n].value));return 1==c.length?c[0]:(t=c.map((function(e){return e.toCSS(this.context)})).join(this.context.compress?",":", "),new R((e?"min":"max")+"("+t+")"))},st={min:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return at(!0,e)}catch(e){}},max:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return at(!1,e)}catch(e){}},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new ee(Math.PI)},mod:function(e,t){return new ee(e.value%t.value,e.unit)},pow:function(e,t){if("number"==typeof e&&"number"==typeof t)e=new ee(e),t=new ee(t);else if(!(e instanceof ee&&t instanceof ee))throw{type:"Argument",message:"arguments must be numbers"};return new ee(Math.pow(e.value,t.value),e.unit)},percentage:function(e){return rt((function(e){return 100*e}),"%",e)}},lt={e:function(e){return new ue('"',e instanceof he?e.evaluated:e.value,!0)},escape:function(e){return new R(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,n,r){var i=e.value;return n="Quoted"===n.type?n.value:n.toCSS(),i=i.replace(new RegExp(t.value,r?r.value:""),n),new ue(e.quote||"",i,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),n=e.value,r=function(e){n=n.replace(/%[sda]/i,(function(n){var r="Quoted"===t[e].type&&n.match(/s/i)?t[e].value:t[e].toCSS();return n.match(/[A-Z]$/)?encodeURIComponent(r):r}))},i=0;i<t.length;i++)r(i);return n=n.replace(/%%/g,"%"),new ue(e.quote||"",n,e.escaped)}},ut=function(e,t){return e instanceof t?D.True:D.False},ct=function(e,t){if(void 0===t)throw{type:"Argument",message:"missing the required second argument to isunit."};if("string"!=typeof(t="string"==typeof t.value?t.value:t))throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return e instanceof ee&&e.unit.is(t)?D.True:D.False},dt={isruleset:function(e){return ut(e,X)},iscolor:function(e){return ut(e,c)},isnumber:function(e){return ut(e,ee)},isstring:function(e){return ut(e,ue)},iskeyword:function(e){return ut(e,D)},isurl:function(e){return ut(e,ce)},ispixel:function(e){return ct(e,"px")},ispercentage:function(e){return ct(e,"%")},isem:function(e){return ct(e,"em")},isunit:ct,unit:function(e,t){if(!(e instanceof ee))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof ne?". Have you forgotten parenthesis?":"")};return t=t?t instanceof D?t.value:t.toCSS():"",new ee(e.value,t)},"get-unit":function(e){return new R(e.unit)}},ft=function(e){var t={functionRegistry:G,functionCaller:ie};return G.addMultiple(We),G.add("default",Y.eval.bind(Y)),G.addMultiple(Ke),G.addMultiple(Xe),G.addMultiple(function(e){var t=function(e,t){return new ce(t,e.index,e.currentFileInfo).eval(e.context)};return{"data-uri":function(n,r){r||(r=n,n=null);var o=n&&n.value,a=r.value,s=this.currentFileInfo,l=s.rewriteUrls?s.currentDirectory:s.entryPath,u=a.indexOf("#"),c="";-1!==u&&(c=a.slice(u),a=a.slice(0,u));var d=M(this.context);d.rawBuffer=!0;var f=e.getFileManager(a,l,d,e,!0);if(!f)return t(this,r);var p=!1;if(n)p=/;base64$/.test(o);else{if("image/svg+xml"===(o=e.mimeLookup(a)))p=!1;else{var h=e.charsetLookup(o);p=["US-ASCII","UTF-8"].indexOf(h)<0}p&&(o+=";base64")}var m=f.loadFileSync(a,l,d,e);if(!m.contents)return i.warn("Skipped data-uri embedding of "+a+" because file not found"),t(this,r||n);var g=m.contents;if(p&&!e.encodeBase64)return t(this,r);var v="data:"+o+","+(g=p?e.encodeBase64(g):encodeURIComponent(g))+c;return new ce(new ue('"'+v+'"',v,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}}(e)),G.addMultiple(nt),G.addMultiple(it),G.addMultiple(st),G.addMultiple(lt),G.addMultiple({"svg-gradient":function(e){var t,n,r,i,o,a,s,l,u="linear",d='x="0" y="0" width="1" height="1"',f={compress:!1},p=e.toCSS(f);function h(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}switch(2==arguments.length?(arguments[1].value.length<2&&h(),t=arguments[1].value):arguments.length<3?h():t=Array.prototype.slice.call(arguments,1),p){case"to bottom":n='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":n='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":n='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":n='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":u="radial",n='cx="50%" cy="50%" r="75%"',d='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(r='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><'+u+'Gradient id="g" '+n+">",i=0;i<t.length;i+=1)t[i]instanceof re?(o=t[i].value[0],a=t[i].value[1]):(o=t[i],a=void 0),o instanceof c&&((0===i||i+1===t.length)&&void 0===a||a instanceof ee)||h(),s=a?a.toCSS(f):0===i?"0%":"100%",l=o.alpha,r+='<stop offset="'+s+'" stop-color="'+o.toRGB()+'"'+(l<1?' stop-opacity="'+l+'"':"")+"/>";return r+="</"+u+"Gradient><rect "+d+' fill="url(#g)" /></svg>',r=encodeURIComponent(r),new ce(new ue("'"+(r="data:image/svg+xml,"+r)+"'",r,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}),G.addMultiple(dt),t};function pt(e,t){var n,r=(t=t||{}).variables,i=new z.Eval(t);"object"!=typeof r||Array.isArray(r)||(r=Object.keys(r).map((function(e){var t=r[e];return t instanceof Ce.Value||(t instanceof Ce.Expression||(t=new Ce.Expression([t])),t=new Ce.Value([t])),new Ce.Declaration("@"+e,t,!1,null,0)})),i.frames=[new Ce.Ruleset(null,r)]);var o,a,s=[new Ve.JoinSelectorVisitor,new Ve.MarkVisibleSelectorsVisitor(!0),new Ve.ExtendVisitor,new Ve.ToCSSVisitor({compress:Boolean(t.compress)})],l=[];if(t.pluginManager){a=t.pluginManager.visitor();for(var u=0;u<2;u++)for(a.first();o=a.get();)o.isPreEvalVisitor?0!==u&&-1!==l.indexOf(o)||(l.push(o),o.run(e)):0!==u&&-1!==s.indexOf(o)||(o.isPreVisitor?s.unshift(o):s.push(o))}for(n=e.eval(i),u=0;u<s.length;u++)s[u].run(n);if(t.pluginManager)for(a.first();o=a.get();)-1===s.indexOf(o)&&-1===l.indexOf(o)&&o.run(n);return n}var ht,mt,gt,vt=function(){function e(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new e.PluginLoader(e)}return e.prototype.addPlugins=function(e){if(e)for(var t=0;t<e.length;t++)this.addPlugin(e[t])},e.prototype.addPlugin=function(e,t,n){this.installedPlugins.push(e),t&&(this.pluginCache[t]=e),e.install&&e.install(this.less,this,n||this.less.functions.functionRegistry)},e.prototype.get=function(e){return this.pluginCache[e]},e.prototype.addVisitor=function(e){this.visitors.push(e)},e.prototype.addPreProcessor=function(e,t){var n;for(n=0;n<this.preProcessors.length&&!(this.preProcessors[n].priority>=t);n++);this.preProcessors.splice(n,0,{preProcessor:e,priority:t})},e.prototype.addPostProcessor=function(e,t){var n;for(n=0;n<this.postProcessors.length&&!(this.postProcessors[n].priority>=t);n++);this.postProcessors.splice(n,0,{postProcessor:e,priority:t})},e.prototype.addFileManager=function(e){this.fileManagers.push(e)},e.prototype.getPreProcessors=function(){for(var e=[],t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e},e.prototype.getPostProcessors=function(){for(var e=[],t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e},e.prototype.getVisitors=function(){return this.visitors},e.prototype.visitor=function(){var e=this;return{first:function(){return e.iterator=-1,e.visitors[e.iterator]},get:function(){return e.iterator+=1,e.visitors[e.iterator]}}},e.prototype.getFileManagers=function(){return this.fileManagers},e}(),bt=function(e,t){return!t&&ht||(ht=new vt(e)),ht},yt=function(e){var t=e.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/);if(!t)throw new Error("Unable to parse: "+e);return{major:parseInt(t[1],10),minor:parseInt(t[2],10),patch:parseInt(t[3],10),pre:t[4]||"",build:t[5]||""}};function At(e,t){var n,r,a,s;a=function(e){return function(){function t(e,t){this.root=e,this.imports=t}return t.prototype.toCSS=function(t){var n,r,o={};try{n=pt(this.root,t)}catch(e){throw new N(e,this.imports)}try{var a=Boolean(t.compress);a&&i.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");var s={compress:a,dumpLineNumbers:t.dumpLineNumbers,strictUnits:Boolean(t.strictUnits),numPrecision:8};t.sourceMap?(r=new e(t.sourceMap),o.css=r.toCSS(n,s,this.imports)):o.css=n.toCSS(s)}catch(e){throw new N(e,this.imports)}if(t.pluginManager)for(var l=t.pluginManager.getPostProcessors(),u=0;u<l.length;u++)o.css=l[u].process(o.css,{sourceMap:r,options:t,imports:this.imports});for(var c in t.sourceMap&&(o.map=r.getExternalSourceMap()),o.imports=[],this.imports.files)this.imports.files.hasOwnProperty(c)&&c!==this.imports.rootFilename&&o.imports.push(c);return o},t}()}(r=function(e,t){return function(){function n(e){this.options=e}return n.prototype.toCSS=function(t,n,r){var i=new e({contentsIgnoredCharsMap:r.contentsIgnoredChars,rootNode:t,contentsMap:r.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline,disableSourcemapAnnotation:this.options.disableSourcemapAnnotation}),o=i.toCSS(n);return this.sourceMap=i.sourceMap,this.sourceMapURL=i.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=i.normalizeFilename(this.options.sourceMapInputFilename)),void 0!==this.options.sourceMapBasepath&&void 0!==this.sourceMapURL&&(this.sourceMapURL=i.removeBasepath(this.sourceMapURL)),o+this.getCSSAppendage()},n.prototype.getCSSAppendage=function(){var e=this.sourceMapURL;if(this.options.sourceMapFileInline){if(void 0===this.sourceMap)return"";e="data:application/json;base64,"+t.encodeBase64(this.sourceMap)}return this.options.disableSourcemapAnnotation?"":e?"/*# sourceMappingURL="+e+" */":""},n.prototype.getExternalSourceMap=function(){return this.sourceMap},n.prototype.setExternalSourceMap=function(e){this.sourceMap=e},n.prototype.isInline=function(){return this.options.sourceMapFileInline},n.prototype.getSourceMapURL=function(){return this.sourceMapURL},n.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},n.prototype.getInputFilename=function(){return this.sourceMapInputFilename},n}()}(n=function(e){return function(){function t(t){this._css=[],this._rootNode=t.rootNode,this._contentsMap=t.contentsMap,this._contentsIgnoredCharsMap=t.contentsIgnoredCharsMap,t.sourceMapFilename&&(this._sourceMapFilename=t.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=t.outputFilename,this.sourceMapURL=t.sourceMapURL,t.sourceMapBasepath&&(this._sourceMapBasepath=t.sourceMapBasepath.replace(/\\/g,"/")),t.sourceMapRootpath?(this._sourceMapRootpath=t.sourceMapRootpath.replace(/\\/g,"/"),"/"!==this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=t.outputSourceFiles,this._sourceMapGeneratorConstructor=e.getSourceMapGenerator(),this._lineNumber=0,this._column=0}return t.prototype.removeBasepath=function(e){return this._sourceMapBasepath&&0===e.indexOf(this._sourceMapBasepath)&&("\\"!==(e=e.substring(this._sourceMapBasepath.length)).charAt(0)&&"/"!==e.charAt(0)||(e=e.substring(1))),e},t.prototype.normalizeFilename=function(e){return e=e.replace(/\\/g,"/"),e=this.removeBasepath(e),(this._sourceMapRootpath||"")+e},t.prototype.add=function(e,t,n,r){if(e){var i,o,a,s,l;if(t&&t.filename){var u=this._contentsMap[t.filename];if(this._contentsIgnoredCharsMap[t.filename]&&((n-=this._contentsIgnoredCharsMap[t.filename])<0&&(n=0),u=u.slice(this._contentsIgnoredCharsMap[t.filename])),void 0===u)return void this._css.push(e);s=(o=(u=u.substring(0,n)).split("\n"))[o.length-1]}if(a=(i=e.split("\n"))[i.length-1],t&&t.filename)if(r)for(l=0;l<i.length;l++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+l+1,column:0===l?this._column:0},original:{line:o.length+l,column:0===l?s.length:0},source:this.normalizeFilename(t.filename)});else this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:o.length,column:s.length},source:this.normalizeFilename(t.filename)});1===i.length?this._column+=a.length:(this._lineNumber+=i.length-1,this._column=a.length),this._css.push(e)}},t.prototype.isEmpty=function(){return 0===this._css.length},t.prototype.toCSS=function(e){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles)for(var t in this._contentsMap)if(this._contentsMap.hasOwnProperty(t)){var n=this._contentsMap[t];this._contentsIgnoredCharsMap[t]&&(n=n.slice(this._contentsIgnoredCharsMap[t])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(t),n)}if(this._rootNode.genCSS(e,this),this._css.length>0){var r=void 0,i=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?r=this.sourceMapURL:this._sourceMapFilename&&(r=this._sourceMapFilename),this.sourceMapURL=r,this.sourceMap=i}return this._css.join("")},t}()}(e=new o(e,t)),e)),s=function(e){return function(){function t(e,t,n){this.less=e,this.rootFilename=n.filename,this.paths=t.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=t.mime,this.error=null,this.context=t,this.queue=[],this.files={}}return t.prototype.push=function(t,n,r,o,a){var s=this,l=this.context.pluginManager.Loader;this.queue.push(t);var u=function(e,n,r){s.queue.splice(s.queue.indexOf(t),1);var l=r===s.rootFilename;o.optional&&e?(a(null,{rules:[]},!1,null),i.info("The file "+r+" was skipped because it was not found and the import was marked optional.")):(s.files[r]||o.inline||(s.files[r]={root:n,options:o}),e&&!s.error&&(s.error=e),a(e,n,l,r))},c={rewriteUrls:this.context.rewriteUrls,entryPath:r.entryPath,rootpath:r.rootpath,rootFilename:r.rootFilename},d=e.getFileManager(t,r.currentDirectory,this.context,e);if(d){var f,p,h=function(e){var t,n=e.filename,i=e.contents.replace(/^\uFEFF/,"");c.currentDirectory=d.getPath(n),c.rewriteUrls&&(c.rootpath=d.join(s.context.rootpath||"",d.pathDiff(c.currentDirectory,c.entryPath)),!d.isPathAbsolute(c.rootpath)&&d.alwaysMakePathsAbsolute()&&(c.rootpath=d.join(c.entryPath,c.rootpath))),c.filename=n;var a=new z.Parse(s.context);a.processImports=!1,s.contents[n]=i,(r.reference||o.reference)&&(c.reference=!0),o.isPlugin?(t=l.evalPlugin(i,a,s,o.pluginArgs,c))instanceof N?u(t,null,n):u(null,t,n):o.inline?u(null,i,n):!s.files[n]||s.files[n].options.multiple||o.multiple?new Ue(a,s,c).parse(i,(function(e,t){u(e,t,n)})):u(null,s.files[n].root,n)},m=M(this.context);n&&(m.ext=o.isPlugin?".js":".less"),o.isPlugin?(m.mime="application/javascript",m.syncImport?f=l.loadPluginSync(t,r.currentDirectory,m,e,d):p=l.loadPlugin(t,r.currentDirectory,m,e,d)):m.syncImport?f=d.loadFileSync(t,r.currentDirectory,m,e):p=d.loadFile(t,r.currentDirectory,m,e,(function(e,t){e?u(e):h(t)})),f?f.filename?h(f):u(f):p&&p.then(h,u)}else u({message:"Could not find a file-manager for "+t})},t}()}(e);var u,c=function(e,t,n){var r=function(e,n,i){if("function"==typeof n?(i=n,n=I(this.options,{})):n=I(this.options,n||{}),!i){var o=this;return new Promise((function(t,i){r.call(o,e,n,(function(e,n){e?i(e):t(n)}))}))}this.parse(e,n,(function(e,n,r,o){if(e)return i(e);var a;try{a=new t(n,r).toCSS(o)}catch(e){return i(e)}i(null,a)}))};return r}(0,a),d=function(e,t,n){var r=function(e,t,i){if("function"==typeof t?(i=t,t=I(this.options,{})):t=I(this.options,t||{}),!i){var o=this;return new Promise((function(n,i){r.call(o,e,t,(function(e,t){e?i(e):n(t)}))}))}var a,s=void 0,l=new bt(this,!t.reUsePluginManager);if(t.pluginManager=l,a=new z.Parse(t),t.rootFileInfo)s=t.rootFileInfo;else{var u=t.filename||"input",c=u.replace(/[^\/\\]*$/,"");(s={filename:u,rewriteUrls:a.rewriteUrls,rootpath:a.rootpath||"",currentDirectory:c,entryPath:c,rootFilename:u}).rootpath&&"/"!==s.rootpath.slice(-1)&&(s.rootpath+="/")}var d=new n(this,a,s);this.importManager=d,t.plugins&&t.plugins.forEach((function(e){var t,n;if(e.fileContent){if(n=e.fileContent.replace(/^\uFEFF/,""),(t=l.Loader.evalPlugin(n,a,d,e.options,e.filename))instanceof N)return i(t)}else l.addPlugin(e)})),new Ue(a,d,s).parse(e,(function(e,n){if(e)return i(e);i(null,n,d,t)}),t)};return r}(0,0,s),f=yt("v4.1.1"),p={version:[f.major,f.minor,f.patch],data:l,tree:Ce,Environment:o,AbstractFileManager:Se,AbstractPluginLoader:Me,environment:e,visitors:Ve,Parser:Ue,functions:ft(e),contexts:z,SourceMapOutput:n,SourceMapBuilder:r,ParseTree:a,ImportManager:s,render:c,parse:d,LessError:N,transformTree:pt,utils:E,PluginManager:bt,logger:i},h=function(e){return function(){var t=Object.create(e.prototype);return e.apply(t,Array.prototype.slice.call(arguments,0)),t}},m=Object.create(p);for(var g in p.tree)if("function"==typeof(u=p.tree[g]))m[g.toLowerCase()]=h(u);else for(var v in m[g]=Object.create(null),u)m[g][v.toLowerCase()]=h(u[v]);return p.parse=p.parse.bind(m),p.render=p.render.bind(m),m}var wt={},kt=function(){};kt.prototype=Object.assign(new Se,{alwaysMakePathsAbsolute:function(){return!0},join:function(e,t){return e?this.extractUrlParts(t,e).path:t},doXHR:function(e,t,n,r){var i=new XMLHttpRequest,o=!mt.isFileProtocol||mt.fileAsync;function a(t,n,r){t.status>=200&&t.status<300?n(t.responseText,t.getResponseHeader("Last-Modified")):"function"==typeof r&&r(t.status,e)}"function"==typeof i.overrideMimeType&&i.overrideMimeType("text/css"),gt.debug("XHR: Getting '"+e+"'"),i.open("GET",e,o),i.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),i.send(null),mt.isFileProtocol&&!mt.fileAsync?0===i.status||i.status>=200&&i.status<300?n(i.responseText):r(i.status,e):o?i.onreadystatechange=function(){4==i.readyState&&a(i,n,r)}:a(i,n,r)},supports:function(){return!0},clearFileCache:function(){wt={}},loadFile:function(e,t,n,r){t&&!this.isPathAbsolute(e)&&(e=t+e),e=n.ext?this.tryAppendExtension(e,n.ext):e,n=n||{};var i=this.extractUrlParts(e,window.location.href).url,o=this;return new Promise((function(e,t){if(n.useFileCache&&wt[i])try{var r=wt[i];return e({contents:r,filename:i,webInfo:{lastModified:new Date}})}catch(e){return t({filename:i,message:"Error loading file "+i+" error was "+e.message})}o.doXHR(i,n.mime,(function(t,n){wt[i]=t,e({contents:t,filename:i,webInfo:{lastModified:n}})}),(function(e,n){t({type:"File",message:"'"+n+"' wasn't found ("+e+")",href:i})}))}))}});var xt=function(e,t){return mt=e,gt=t,kt},Ct=function(e){this.less=e};Ct.prototype=Object.assign(new Me,{loadPlugin:function(e,t,n,r,i){return new Promise((function(o,a){i.loadFile(e,t,n,r).then(o).catch(a)}))}});var St=function(t,r,i){return{add:function(o,a){i.errorReporting&&"html"!==i.errorReporting?"console"===i.errorReporting?function(e,t){var n=e.filename||t,o=[],a=(e.type||"Syntax")+"Error: "+(e.message||"There is an error in your .less file")+" in "+n,s=function(e,t,n){void 0!==e.extract[t]&&o.push("{line} {content}".replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};e.line&&(s(e,0,""),s(e,1,"line"),s(e,2,""),a+=" on line "+e.line+", column "+(e.column+1)+":\n"+o.join("\n")),e.stack&&(e.extract||i.logLevel>=4)&&(a+="\nStack Trace\n"+e.stack),r.logger.error(a)}(o,a):"function"==typeof i.errorReporting&&i.errorReporting("add",o,a):function(r,o){var a,s,l="less-error-message:"+e(o||""),u=t.document.createElement("div"),c=[],d=r.filename||o,f=d.match(/([^\/]+(\?.*)?)$/)[1];u.id=l,u.className="less-error-message",s="<h3>"+(r.type||"Syntax")+"Error: "+(r.message||"There is an error in your .less file")+'</h3><p>in <a href="'+d+'">'+f+"</a> ";var p=function(e,t,n){void 0!==e.extract[t]&&c.push('<li><label>{line}</label><pre class="{class}">{content}</pre></li>'.replace(/\{line\}/,(parseInt(e.line,10)||0)+(t-1)).replace(/\{class\}/,n).replace(/\{content\}/,e.extract[t]))};r.line&&(p(r,0,""),p(r,1,"line"),p(r,2,""),s+="on line "+r.line+", column "+(r.column+1)+":</p><ul>"+c.join("")+"</ul>"),r.stack&&(r.extract||i.logLevel>=4)&&(s+="<br/>Stack Trace</br />"+r.stack.split("\n").slice(1).join("<br/>")),u.innerHTML=s,n(t.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),u.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"===i.env&&(a=setInterval((function(){var e=t.document,n=e.body;n&&(e.getElementById(l)?n.replaceChild(u,e.getElementById(l)):n.insertBefore(u,n.firstChild),clearInterval(a))}),10))}(o,a)},remove:function(n){i.errorReporting&&"html"!==i.errorReporting?"console"===i.errorReporting||"function"==typeof i.errorReporting&&i.errorReporting("remove",n):function(n){var r=t.document.getElementById("less-error-message:"+e(n));r&&r.parentNode.removeChild(r)}(n)}}},Mt={javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,math:1,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""};if(window.less)for(var _t in window.less)window.less.hasOwnProperty(_t)&&(Mt[_t]=window.less[_t]);(function(e,n){t(n,r(e)),void 0===n.isFileProtocol&&(n.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),n.async=n.async||!1,n.fileAsync=n.fileAsync||!1,n.poll=n.poll||(n.isFileProtocol?1e3:1500),n.env=n.env||("127.0.0.1"==e.location.hostname||"0.0.0.0"==e.location.hostname||"localhost"==e.location.hostname||e.location.port&&e.location.port.length>0||n.isFileProtocol?"development":"production");var i=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash);i&&(n.dumpLineNumbers=i[1]),void 0===n.useFileCache&&(n.useFileCache=!0),void 0===n.onReady&&(n.onReady=!0),n.relativeUrls&&(n.rewriteUrls="all")})(window,Mt),Mt.plugins=Mt.plugins||[],window.LESS_PLUGINS&&(Mt.plugins=Mt.plugins.concat(window.LESS_PLUGINS));var It,Ot,Et,Lt=function(e,r){var i=e.document,o=At();o.options=r;var a=o.environment,s=xt(r,o.logger),l=new s;a.addFileManager(l),o.FileManager=s,o.PluginLoader=Ct,function(e,t){t.logLevel=void 0!==t.logLevel?t.logLevel:"development"===t.env?3:1,t.loggers||(t.loggers=[{debug:function(e){t.logLevel>=4&&console.log(e)},info:function(e){t.logLevel>=3&&console.log(e)},warn:function(e){t.logLevel>=2&&console.warn(e)},error:function(e){t.logLevel>=1&&console.error(e)}}]);for(var n=0;n<t.loggers.length;n++)e.logger.addListener(t.loggers[n])}(o,r);var u=St(e,o,r),c=o.cache=r.cache||function(e,t,n){var r=null;if("development"!==t.env)try{r=void 0===e.localStorage?null:e.localStorage}catch(e){}return{setCSS:function(e,t,i,o){if(r){n.info("saving "+e+" to cache.");try{r.setItem(e,o),r.setItem(e+":timestamp",t),i&&r.setItem(e+":vars",JSON.stringify(i))}catch(t){n.error('failed to save "'+e+'" to local storage for caching.')}}},getCSS:function(e,t,n){var i=r&&r.getItem(e),o=r&&r.getItem(e+":timestamp"),a=r&&r.getItem(e+":vars");if(n=n||{},a=a||"{}",o&&t.lastModified&&new Date(t.lastModified).valueOf()===new Date(o).valueOf()&&JSON.stringify(n)===a)return i}}}(e,r,o.logger);!function(){function e(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}var t={"image-size":function(t){return e(),-1},"image-width":function(t){return e(),-1},"image-height":function(t){return e(),-1}};G.addMultiple(t)}(o.environment),r.functions&&o.functions.functionRegistry.addMultiple(r.functions);var d=/^text\/(x-)?less$/;function f(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function p(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){var r=n.concat(Array.prototype.slice.call(arguments,0));return e.apply(t,r)}}function h(e){for(var t,n=i.getElementsByTagName("style"),a=0;a<n.length;a++)if((t=n[a]).type.match(d)){var s=f(r);s.modifyVars=e;var l=t.innerHTML||"";s.filename=i.location.href.replace(/#.*$/,""),o.render(l,s,p((function(e,t,n){t?u.add(t,"inline"):(e.type="text/css",e.styleSheet?e.styleSheet.cssText=n.css:e.innerHTML=n.css)}),null,t))}}function m(e,n,i,s,d){var p=f(r);t(p,e),p.mime=e.type,d&&(p.modifyVars=d),l.loadFile(e.href,null,p,a).then((function(t){!function(t){var r=t.contents,a=t.filename,d=t.webInfo,f={currentDirectory:l.getPath(a),filename:a,rootFilename:a,rewriteUrls:p.rewriteUrls};if(f.entryPath=f.currentDirectory,f.rootpath=p.rootpath||f.currentDirectory,d){d.remaining=s;var h=c.getCSS(a,d,p.modifyVars);if(!i&&h)return d.local=!0,void n(null,h,r,e,d,a)}u.remove(a),p.rootFileInfo=f,o.render(r,p,(function(t,i){t?(t.href=a,n(t)):(c.setCSS(e.href,d.lastModified,p.modifyVars,i.css),n(null,i.css,r,e,d,a))}))}(t)})).catch((function(e){console.log(e),n(e)}))}function g(e,t,n){for(var r=0;r<o.sheets.length;r++)m(o.sheets[r],e,t,o.sheets.length-(r+1),n)}return o.watch=function(){return o.watchMode||(o.env="development","development"===o.env&&(o.watchTimer=setInterval((function(){o.watchMode&&(l.clearFileCache(),g((function(t,r,i,o,a){t?u.add(t,t.href||o.href):r&&n(e.document,r,o)})))}),r.poll))),this.watchMode=!0,!0},o.unwatch=function(){return clearInterval(o.watchTimer),this.watchMode=!1,!1},o.registerStylesheetsImmediately=function(){var e=i.getElementsByTagName("link");o.sheets=[];for(var t=0;t<e.length;t++)("stylesheet/less"===e[t].rel||e[t].rel.match(/stylesheet/)&&e[t].type.match(d))&&o.sheets.push(e[t])},o.registerStylesheets=function(){return new Promise((function(e,t){o.registerStylesheetsImmediately(),e()}))},o.modifyVars=function(e){return o.refresh(!0,e,!1)},o.refresh=function(t,r,i){return(t||i)&&!1!==i&&l.clearFileCache(),new Promise((function(i,a){var s,l,c,d;s=l=new Date,0===(d=o.sheets.length)?(l=new Date,c=l-s,o.logger.info("Less has finished and no sheets were loaded."),i({startTime:s,endTime:l,totalMilliseconds:c,sheets:o.sheets.length})):g((function(t,r,f,p,h){if(t)return u.add(t,t.href||p.href),void a(t);h.local?o.logger.info("Loading "+p.href+" from cache."):o.logger.info("Rendered "+p.href+" successfully."),n(e.document,r,p),o.logger.info("CSS for "+p.href+" generated in "+(new Date-l)+"ms"),0==--d&&(c=new Date-s,o.logger.info("Less has finished. CSS generated in "+c+"ms"),i({startTime:s,endTime:l,totalMilliseconds:c,sheets:o.sheets.length})),l=new Date}),t,r),h(r)}))},o.refreshStyles=h,o}(window,Mt);function Nt(e){e.filename&&console.warn(e),Mt.async||Ot.removeChild(Et)}return window.less=Lt,Mt.onReady&&(/!watch/.test(window.location.hash)&&Lt.watch(),Mt.async||(It="body { display: none !important }",Ot=document.head||document.getElementsByTagName("head")[0],(Et=document.createElement("style")).type="text/css",Et.styleSheet?Et.styleSheet.cssText=It:Et.appendChild(document.createTextNode(It)),Ot.appendChild(Et)),Lt.registerStylesheetsImmediately(),Lt.pageLoadFinished=Lt.refresh("development"===Lt.env).then(Nt,Nt)),Lt}()},function(e,t,n){"use strict";n.r(t),n.d(t,"STYLE",(function(){return r}));var r="\n      .theme-white .sf-download { background: white;  box-shadow: 0 0 7px 7px white; }\n      .theme_dark .sf-download { background: #181818; box-shadow: 0 0 7px 7px #181818; } \n      \n      .theme-white .sf-download:hover path { fill: black; }\n      .theme_dark .sf-download:hover path { fill: white; }\n        \n      .theme-white .sf-download path { fill: #a7a7a7; }  \n      \n      .sf-download {\n            margin-top: 3px;\n            margin-right: 6px;\n            padding-right: 10px;\n            padding-left: 10px;\n            float:left;\n      }\n      \n      .sf-download-in-control {\n            margin: 12px;\n            width: 11px;\n            height: 22px;\n            margin-top: 9px;\n      }\n      \n      .theme_dark .sf-download-in-control path { fill: white; }\n      .theme-white .sf-download-in-control path { fill: #3c3b3b; }\n      \n      .sf-icon-error path, .sf-icon-error:hover path { fill: #ff33334a!important; }\n"},function(e,t,n){"use strict";n.r(t);var r=n(11),i=n(21);t.default=function(e){return function(e){var t={operationName:"PlaybackAccessToken_Template",variables:{vodID:e,login:"",isLive:!1,isVod:!0,playerType:"site"},query:'query PlaybackAccessToken_Template($login: String!, $isLive: Boolean!, $vodID: ID!, $isVod: Boolean!, $playerType: String!) {\n  streamPlaybackAccessToken(\n    channelName: $login\n    params: {platform: "web", playerBackend: "mediaplayer", playerType: $playerType}\n  ) @include(if: $isLive) {\n    value\n    signature\n    __typename\n  }\n  videoPlaybackAccessToken(\n    id: $vodID\n    params: {platform: "web", playerBackend: "mediaplayer", playerType: $playerType}\n  ) @include(if: $isVod) {\n    value\n    signature\n    __typename\n  }\n}\n'};return Object(r.default)({url:"https://gql.twitch.tv/gql",method:"POST",headers:{"client-id":"kimne78kx3ncx6brgo4mv6wki5h1ko"},json:!0,data:JSON.stringify(t)}).then((function(t){if(!t.body||!t.body.data||!t.body.data.videoPlaybackAccessToken)throw new Error("Response not valid");var n=t.body.data.videoPlaybackAccessToken;if(!n.signature||!n.value)throw new Error("Signature or Value not found for video "+e);return n}))}(e).then((function(t){var n=t.signature,i=t.value,o="https://usher.ttvnw.net/vod/".concat(e,".m3u8?sig=").concat(n,"&supported_codecs=avc1&token=").concat(i,"&cdm=wv&player_version=0.9.80");return Object(r.default)(o)})).then((function(e){var t=new RegExp('(https.*?)\\n#EXT-X-MEDIA.*?NAME="(.*?)"',"g");return Object(i.matchAll)(e.body,t).map((function(e){return{url:e[1],quality:parseInt(e[2])}}))}))}},function(e,t,n){"use strict";n.r(t);var r=n(7),i=n(44),o=n(14),a=n(36),s=n.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u={position:"relative"},c=o.default.memo((function(e){var t=e.hoverText,n=e.children,a=Object(i.a)(e,["hoverText","children"]),c=o.default.useRef(),d=o.default.useState(!1),f=Object(r.a)(d,2),p=f[0],h=f[1],m=o.default.useCallback((function(){return h(!0)}),[]),g=o.default.useCallback((function(){return h(!1)}),[]);return o.default.createElement("div",l({onmouseenter:m,onmouseout:g,style:u},a),o.default.createElement("div",{ref:c,className:s()("div-hover",p?"show":"hide")},t),n)}));t.default=c},function(e,t,n){"use strict";n.r(t);t.default=function(e){return e.charAt(0).toUpperCase()+e.substr(1)}},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var i,o,a,s;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):g(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var u=l.length,c=g(l,u);for(n=0;n<u;++n)o(c[n],this,t)}return!0},s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)},s.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";n.r(t);t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(t)||(t=[t]);var n=new DOMParser,r=n.parseFromString(e,"text/html");return[].slice.call(r.querySelectorAll("script")).map((function(e){return e.textContent})).filter((function(e){return t.every((function(t){return t.test(e)}))}))}},function(e,t,n){"use strict";n.r(t);t.default={youtube:"moduleYoutube",dailymotion:"moduleDailymotion",vimeo:"moduleVimeo",facebook:"moduleFacebook",soundcloud:"moduleSoundcloud",vk:"moduleVkontakte",odnoklassniki:"moduleOdnoklassniki",mailru:"moduleMailru",instagram:"moduleInstagram",rutube:"moduleRutube",tiktok:"moduleTiktok",yandexMusic:"moduleYandexMusic",matchTv:"moduleMatchTv"}},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(2),o=n(25),a=n(17),s=n(13),l=n(9),u=Object(l.default)("VimeoComEmbed"),c=function(){function e(t){Object(r.a)(this,e),this.engine=t}return Object(i.a)(e,[{key:"getVimeoLinks",value:function(e,t){return this._getVimeoLinks(e.extVideoId,e.url,(function(n,r,i){var o={action:e.action,extVideoId:e.extVideoId,links:n,title:r,thumb:i};t(o)})),!0}},{key:"_getVimeoLinks",value:function(e,t,n){var r=this;this.getVimeoNoEmbedLinks(e,t,(function(t,i,o){if(t)return n(t,i,o);r.getVimeoEmbedLinks(e,n)}))}},{key:"getVimeoEmbedLinks",value:function(e,t){var n=this,r=function(){return t(null,"","")};if(!e)return r();Object(s.default)({url:"https://player.vimeo.com/video/"+e},(function(e,i,o){if(e||!o)return r();var s=Object(a.default)(o,[/"files":/]),l=null;return s.some((function(e){if(e.video&&e.request&&e.request.files)return l=e,!0})),(o=n.getLinksFromConfig(l))?t(o.links,o.title,o.thumb):r()}))}},{key:"getVimeoConfig",value:function(e,t){var n=this,r=function(){return t(null,"","")};Object(s.default)({url:e},(function(e,i,o){return e||!o?r():(o=n.getVimeoDataFromConfig(o))?t(o.links,o.title,o.thumb):r()}))}},{key:"getVimeoLinksFromConfigAction",value:function(e,t){var n=this;return new Promise((function(t,r){var i=n.getLinksFromConfig(e.config);i?t(i):r(new Error("Get links from config error"))})).then(t,(function(e){u.error("getVimeoLinksFromConfigAction error",e),t(null)})),!0}},{key:"getClipPageConfig",value:function(e,t){var n=null;return Object(o.default)(e,/['"]config_url['"]\s*:\s*/).some((function(e){return Object(a.default)(e,/['"]config_url['"]\s*:\s*/).some((function(e){if(e.player&&(n=e.player.config_url))return!0}))})),n?this.getVimeoConfig(n,t):t(null,"","")}},{key:"getVimeoNoEmbedLinks",value:function(e,t,n){var r=this;if(e&&t){var i=/vimeo\.com\/[^\/]+\/review\/\d+/i.test(t),o=/vimeo\.com\/\d+\/\w+/i.test(t);i||o||(t=null)}Object(s.default)({url:t||"https://vimeo.com/"+e},(function(e,t,i){if(e||!i)return n(null,"","");var o=i.match(/data-config-url=["']([^\s"'<>]+)/i);return(o=o&&o[1].replace(/&amp;/gi,"&"))?r.getVimeoConfig(o,n):r.getClipPageConfig(i,n)}))}},{key:"getVimeoLinksFromConfig",value:function(e,t){var n=this.getLinksFromConfig(e.config);return t(n||null)}},{key:"getLinksFromConfig",value:function(e){if(!(e&&e.video&&e.request&&e.request.files))return null;var t=e.video,n=e.request.files,r={};r.title=t.title||"";var i=null;for(var o in t.thumbs)(null===i||i<o)&&(i=o,r.thumb=t.thumbs[o]);for(var a in r.links=[],n)Array.isArray(n[a])&&n[a].forEach((function(e){if(e&&e.url&&e.mime){var t=e.mime.split("/")[1];t||(t=(t=e.url.match(/\.(\w{2,4})(?:\?|#|$)/i))&&t[1]||"mp4");var n=t.toUpperCase(),i=e.quality;/^\d+p$/.test(i)&&(i=i.replace(/p$/,""));var o=n+" "+i;r.links.push({url:e.url,name:o,height:i,type:n,format:n,ext:t})}}));return r.links.length||(r=null),r}},{key:"getVimeoDataFromConfig",value:function(e){e=e.replace(/(\{|,)\s*(\w+)\s*:/gi,'$1"$2":').replace(/(:\s+)\'/g,'$1"').replace(/\'([,\]\}])/g,'"$1');try{e=JSON.parse(e)}catch(e){return null}return this.getLinksFromConfig(e)}}]),e}();t.default=c},function(e,t,n){"use strict";n.r(t);var r=n(5),i=n(1),o=n(2),a=n(0),s=n.n(a),l=n(28),u=n(13),c=n(27),d=n(11),f=n(52),p=n(20),h=function(){function e(t){Object(i.a)(this,e),this.engine=t}var t;return Object(o.a)(e,[{key:"getOkVideoUrlFromMobile",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,i,o,a,l,u;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.videoUrl,r=t.videoId,n=n.replace("/ok.ru","/m.ok.ru"),e.next=4,Object(d.default)(n);case 4:if(i=e.sent,o=i.body,a=o.match(/data-video=".*?"/g),Array.isArray(a)){e.next=9;break}return e.abrupt("return");case 9:return l=a.map((function(e){try{var t=e.replace(/data-video="(.*?)"/,"$1").replace(/&quot;/g,'"');return JSON.parse(t)}catch(e){return!1}})).filter(Boolean),u=l.find((function(e){return parseInt(e.movieId)===parseInt(r)})),e.abrupt("return",u&&u.videoSrc);case 12:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})},{key:"getOdnoklassnikiLinks",value:function(e,t){return this._getOdnoklassnikiLinks(e.extVideoId,(function(n){var r={action:e.action,extVideoId:e.extVideoId,links:n,title:e.title};t(r)})),!0}},{key:"getOdnoklassnikiAudioLinks",value:function(e,t){return this._getOdnoklassnikiAudioLinks(e.url,e.trackId,e.jsessionId,(function(n){var r={action:e.action,trackId:e.trackId,jsessionId:e.jsessionId,data:n};t(r)})),!0}},{key:"_getOdnoklassnikiLinks",value:function(e,t){if(e){var n="http://in.video.mail.ru/cgi-bin/video/oklite?eid="+e;Object(u.default)({url:n},(function(n,r,i){if(n||!i)return t(null);var o="http://www.okcontent.video.mail.ru/media/",a=i.match(/\$vcontentHost=([^\s"'<>]+)/i);a&&a.length>1&&(o="http://"+a[1]+"/media/"),o+=e;var s=[],l="",u=i.match(/\$height=([0-9]+)/);u&&u.length>1&&(l=u[1]),s.push({url:o+"-v.mp4",name:"SD",ext:"FLV",subname:l}),i.search(/\$HDexist=1/i)>-1&&(l="",(u=i.match(/\$HDheight=([0-9]+)/))&&u.length>1&&(l=u[1]),s.push({url:o+"-hv.mp4",name:"HD",ext:"MP4",subname:l})),s&&t(s)}))}else t(null)}},{key:"_getOdnoklassnikiAudioLinks",value:function(e,t,n,r){if(!t||!n)return r(null);Object(u.default)({url:"http://wmf1.ok.ru/play;jsessionid="+n+"?tid="+t,json:!0},(function(e,t,n){if(e||!n)return r(null);r(n)}))}},{key:"getOkAudioListLinks",value:function(e,t){var n=[],r=e.trackIdArr,i=e.jsessionId;if(!Array.isArray(r)||"string"!=typeof i||!r.length)return t(n);for(var o,a=r.length,s=0,l=function(e){e&&n.push(e),function(){if(++s===a)t(n)}()},u=0;o=r[u];u++)this._getOdnoklassnikiAudioLinks(void 0,o,i,l);return!0}},{key:"getClipyouLinks",value:function(e,t,n,r,i){Object(u.default)({url:"http://media.clipyou.ru/api/player/secure_link?record_id="+e+"&type=mp4&resource_hash="+t,json:!0},(function(e,t,o){if(e||!o||!Array.isArray(o.data)||!o.data.length)return i();var a=[];o.data.forEach((function(e){a.push({quality:n,url:e,title:r})})),i(a)}))}},{key:"getClipyouHash",value:function(e,t){Object(u.default)({url:"http://media.clipyou.ru/api/player_data.json?id="+e},(function(e,n,r){if(e||!r)return t();if(!(r=r.match('resource_hash".?:.?"([^"]*)"'))||r.length<2)return t();var i=r[1];t(i)}))}},{key:"getPladformVideo",value:function(e,t){var n=this,r={action:e.action,extVideoId:e.extVideoId,links:[],title:e.title},i=function(){t(r)},o=e.extVideoId.playerId,a=e.extVideoId.videoId;return Object(u.default)({url:"http://out.pladform.ru/getVideo?pl="+o+"&videoid="+a,xml:!0},(function(e,t,o){if(e||!o)return i();var a=o.querySelectorAll("src");if(0===a.length)return i();var s=o.querySelector("cover")||void 0;s&&(s=s.textContent)&&"//"===s.substr(0,2)&&(s="http:"+s);var l=o.querySelector("time")||void 0;l=l&&l.textContent;var u=o.querySelector("title");(u=u&&u.textContent)&&(r.title=u);var c=a[0],d=c.getAttribute("type"),f=c.textContent||"",p=c.getAttribute("quality");if(c){if("clipyou"===d)return n.getClipyouHash(f,(function(e){if(!e)return i();n.getClipyouLinks(f,e,p,u,(function(e){r.links=e,i()}))}));if("rutube"===d){var h=o.querySelector("external_embed");return(h=h&&h.textContent)&&(r.action="getRutubeLinks",r.links=[h]),i()}}for(var m,g=["ld","sd"],v=["360","720"],b=0;m=a[b];b++){f=m.textContent||"",p=m.getAttribute("quality"),/^\d+p$/.test(p)&&(p=p.match(/^(\d+)p$/)[1]);var y=g.indexOf(p);-1!==y&&(p=v[y]),"video"===(d=m.getAttribute("type"))&&r.links.push({url:f,quality:p,title:u,cover:s,duration:l})}return i()})),!0}},{key:"getOkMetadata",value:function(e,t){var n=e.url;return n?(Object(u.default)({method:"POST",url:n,json:!0},(function(e,n,r){if(e||!r)return t();t(r)})),!0):t()}},{key:"getOkViaMobile",value:function(e,t){var n=e.metadata,r={"st.cmd":"movieLayer","st.mvId":e.mvId},i="http://m.ok.ru/dk?"+p.stringify(r),o={action:e.action,links:null,title:n.movie.title};return Object(u.default)({url:i},(function(r,i,a){if(r||!a)return t();var s=new RegExp('href="([^"]+st\\.cmd=moviePlaybackRedirect[^"]+st\\.mvid='+e.mvId+'[^"]+)"'),u=a.match(s);if(!(u=u&&u[1]))return t();if(u=c.default.decodeSpecialChars(u),o.links=[{url:u}],!/st.mq=\d+/.test(u))return t(o);var d=n.videos;if(!d||!d.length)return t(o);d.forEach((function(e){if(e.url){var t=Object(l.default)(e.url);t.type&&(e.url=u.replace(/(st.mq=)\d+/,"$1"+t.type))}})),o.links=d,t(o)})),!0}},{key:"okDirectOrMobile",value:function(e,t){var n=this,r=e.metadata,i=null;r.videos&&r.videos.some((function(e){if(e.url)return i=e.url,!0}));var o=function(){e.action="getOkViaMobile",n.getOkViaMobile(e,t)};return i?(Object(u.default)({url:i,type:"HEAD"},(function(n){return n?o():(e.action="getOkViaMobileNoWrap",e.links=r.videos,t(e))})),!0):(o(),!0)}},{key:"okRequestVideoPage",value:function(e){var t=e.videoId,n="https://ok.ru/video/".concat(t);return Object(d.default)({url:n,headers:{"user-agent":Object(f.default)()}}).then((function(e){return e.body}))}}]),e}();t.default=h},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(2),o=n(25),a=n(34),s=n(13),l=function(){function e(t){Object(r.a)(this,e),this.engine=t}return Object(i.a)(e,[{key:"getFacebookLinks",value:function(e,t){return this._getFacebookLinks(e.extVideoId,(function(n,r,i,o){var a={action:e.action,extVideoId:e.extVideoId,links:n||null,title:r||"",thumb:i||"",duration:o||""};t(a)})),!0}},{key:"getFacebookLinksFromData",value:function(e,t){var n=e.data,r=e.extVideoId;return this.getLinksFromData2(n,r,!0,(function(n,r,i,o){var a={action:"getFacebookLinksFromData",extVideoId:e.extVideoId,links:n||null,title:r||"",thumb:i||"",duration:o||""};t(a)}))}},{key:"_getFacebookLinks",value:function(e,t){var n=this;Object(s.default)({type:"GET",url:"https://www.facebook.com/video.php?v="+e,headers:{Cookie:""}},(function(r,i,o){if(r||!o)return t();n.getLinksFromData(o,e,t)}))}},{key:"getLinksFromData",value:function(e,t,n){var r=this,i=e.match(/\["params","([^"]*)"\]/im);if(!i)return this.getLinksFromData2(e,t,!1,n);var o=null;try{if((o=JSON.parse(decodeURIComponent(JSON.parse('"'+i[1]+'"'))).video_data).progressive&&(o=o.progressive),!o)return n()}catch(e){return n()}var a=null,s=null,l=[],u={sd_src:"SD",hd_src:"HD"};Array.isArray(o)||(o=[o]);for(var c,d=0;c=o[d];d++)["sd_src","hd_src"].forEach((function(e){if(c.thumbnail_src&&(a=c.thumbnail_src),c.video_duration&&(s=c.video_duration),c[e]){var t=r.getFileExtension(c[e],"mp4");l.push({url:c[e],name:u[e],type:t,ext:t.toUpperCase()})}}));n(l,"",a,s)}},{key:"getLinksFromData2",value:function(e,t,n,r){var i=null,s=function(e){return e.split(/"?videoData"?:\[/).some((function(e){return Object(a.default)(e).some((function(e){if((e.sd_src||e.hd_src)&&String(e.video_id)===String(t))return i=e,!0}))}))};if(n?s(e):Object(o.default)(e,[/"?videoData"?:\[/]).some(s),!i)return r();var l,u=[];return i.sd_src&&(l=this.getFileExtension(i.sd_src,"mp4"),u.push({url:i.sd_src,name:"SD",type:l,ext:l.toUpperCase()})),i.hd_src&&(l=this.getFileExtension(i.hd_src,"mp4"),u.push({url:i.hd_src,name:"HD",type:l,ext:l.toUpperCase()})),r(u,"",i.thumbnail_src,i.video_duration)}},{key:"getFileExtension",value:function(e,t){var n=e.match(/\.([a-z0-9]{3,4})(\?|$)/i);return n?(n=n[1]).toLowerCase():t||""}},{key:"getFacebookPhotoUrl",value:function(e,t){return e.fbid?(Object(s.default)({url:"https://www.facebook.com/photo.php?fbid="+e.fbid},(function(e,n,r){if(e||!r)return t();if(o=r.match(/<a[^>]+fbPhotosPhotoActionsItem[^>]+href="([^">]+dl=1)"[^>]+>/i)){var i=o[1].replace(/&amp;/g,"&");return t([i])}var o,a=[],s={};return(o=r.match(/(<a[^>]+rel="theater"[^>]+>)/gi))&&o.forEach((function(e){var t=e.match(/data-pl[os]i="[^"]+"/gi);t&&t.forEach((function(e){var t=e.indexOf("=");if(-1!==t){var n=e.substr(0,t),r=e.substr(t+1);r=r.substr(1,r.length-2).replace(/&amp;/g,"&"),s[n]=r,a.push(r)}}))})),s["data-ploi"]?t([s["data-ploi"]]):t(a)})),!0):t()}}]),e}();t.default=l},function(e,t,n){"use strict";n.r(t);var r=n(5),i=n(1),o=n(2),a=n(0),s=n.n(a),l=function(){function e(t){Object(i.a)(this,e),this.engine=t}var t;return Object(o.a)(e,[{key:"ffInstagramDownloadMedia",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,i,o,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.downloadFileUrl,r=t.filename,e.next=3,fetch(n,{headers:{"User-Agent":"curl/7.64.1"}});case 3:return i=e.sent,e.next=6,i.blob();case 6:o=e.sent,a=URL.createObjectURL(o),this.engine.utils.downloadFile({options:{filename:r,url:a}});case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return d}));var r=n(5),i=n(1),o=n(2),a=n(0),s=n.n(a),l=n(11),u=n(9),c=Object(u.default)("match_tv_embed"),d=function(){function e(t){Object(i.a)(this,e),this.engine=t}var t;return Object(o.a)(e,[{key:"matchTvFetchVideoSources",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,i,o,a,u,d,f,p,h,m;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.iframeVideoURL,e.prev=1,r=n.match(/\d+/),i=r&&r[0]){e.next=6;break}return e.abrupt("return",[]);case 6:return o="https://matchtv.ru/vdl/playlist/".concat(encodeURIComponent(i),"/1.json"),e.next=9,Object(l.default)({url:o,json:!0});case 9:a=e.sent,u=a.body,d=[],f=0;case 13:if(!(f<u.length)){e.next=23;break}return p=u[f],e.next=17,Object(l.default)(p.src);case 17:h=e.sent,(m=h.body.match(/^http.*?$/m))&&d.push({endpoint:m[0],title:p.label});case 20:f++,e.next=13;break;case 23:return e.abrupt("return",d);case 26:return e.prev=26,e.t0=e.catch(1),c.error("get videos error",e.t0),e.abrupt("return",[]);case 30:case"end":return e.stop()}}),e,null,[[1,26]])}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return f}));var r=n(5),i=n(1),o=n(2),a=n(0),s=n.n(a),l=n(21),u=n(11),c=n(34),d=n(33),f=function(){function e(t){Object(i.a)(this,e),this.engine=t}var t;return Object(o.a)(e,[{key:"showjetFetchMovie",value:(t=Object(r.a)(s.a.mark((function e(t){var n,r,i,o,a,f,p,h;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.iframeVideoURL,e.next=3,Object(u.default)(n);case 3:if(r=e.sent,i=Object(d.default)(r.body),Object(c.default)(r.body).some((function(e){if(e.hls)return o=e.hls,!0})),o){e.next=8;break}return e.abrupt("return",[]);case 8:return e.next=10,Object(u.default)(o);case 10:return a=e.sent,f=a.body,p=o.split("/").slice(0,-1).join("/"),h=(h=Object(l.matchAll)(f,/RESOLUTION=(.*?),.*\n(.*?\.m3u8$)/gm)).map((function(e){return{filename:i.title,title:e[1],endpoint:p+"/"+e[2]}})),e.abrupt("return",h);case 16:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(2),o=n(25),a=n(17),s=n(13),l=function(){function e(t){Object(r.a)(this,e),this.engine=t}return Object(i.a)(e,[{key:"getMailruLinks",value:function(e,t){return this._getMailruLinks(e.extVideoId,(function(n,r,i,o,a){var s={action:e.action,extVideoId:o||e.extVideoId,links:n,title:r,thumb:i,duration:a};t(s)})),!0}},{key:"_getMailruLinks",value:function(e,t){var n,r=this,i=e,l=e.match(/\/([^\/]+)\/([^\/]+)\/video\/(.+).html/);if(l||(l=e.match(/embed\/([^\/]+)\/([^\/]+)\/(.+).html/)),l&&(n="http://api.video.mail.ru/videos/"+l[1]+"/"+l[2]+"/"+l[3]+".json",i=l[1]+"/"+l[2]+"/video/"+l[3]+".html"),n)return this.onGetMailruMetadataUrl(n,i,t);Object(s.default)({url:"http://my.mail.ru/"+e},(function(e,s,l){if(e||!l)return t();var u=/"metaUrl":/,c=null;if(Object(o.default)(l,u).some((function(e){return Object(a.default)(e,u).some((function(e){if(e.metaUrl)return c=e,!0}))})),c)return n=c.metaUrl,void r.onGetMailruMetadataUrl(n,i,t);if(!(l=l.match(/<meta\s+content="[^"]+(videoapi\.my\.mail[^&]+)&[^"]+"[^>]+\/>/)))return t();var d=(l=decodeURIComponent(l[1])).substr(l.lastIndexOf("/")+1);n="http://videoapi.my.mail.ru/videos/"+d+".json",r.onGetMailruMetadataUrl(n,i,t)}))}},{key:"onGetMailruMetadataUrl",value:function(e,t,n){var r=this;this.getMailruMetadata(e,(function(e){if(!e||"string"==typeof e)return n();r.readMailruMetadata(e,(function(e,i,o,a){n(r.prepMailruLinks(e),i,o,t,a)}))}))}},{key:"prepMailruLinks",value:function(e){if(e){for(var t,n=[],r=0;t=e[r];r++){var i=t.url,o="FLV";-1!==i.indexOf(".mp4")&&(o="MP4"),-1!==i.indexOf(".mov")&&(o="MOV"),-1!==i.indexOf(".mpg")&&(o="MPG"),t.quality||(t.quality="-?-");var a=t.quality.toUpperCase(),s=["1080P","720P","480P","360P","272P"].indexOf(a);-1!==s&&(a=["1080","720","480","360","272"][s]);var l=o.toLowerCase();n.push({url:i,subname:a,name:o,ext:l})}return n.sort((function(e,t){return"HD"===e.subname?1:e.subname>t.subname})),n}}},{key:"getMailruMetadata",value:function(e,t){if(!e)return t();Object(s.default)({url:e,json:!0},(function(e,n,r){if(e||!r)return t();t(r)}))}},{key:"readMailruMetadata",value:function(e,t){var n,r=[],i=void 0,o=void 0;if(e.meta&&(o=e.meta.poster,i=e.meta.duration),"UPLOADED"===e.provider){if(n=e.movie?e.movie.title:void 0,!e.videos)return t();e.videos.forEach((function(e){r.push({quality:e.name,url:e.url,title:n})}))}else if("ugc"===e.provider){if(n=e.meta?e.meta.title:void 0,!e.videos)return t();e.videos.forEach((function(e){r.push({quality:e.key,url:e.url,title:n})}))}else if("pladform"===e.provider){return n=e.meta?e.meta.title:void 0,void this.engine.modules.odnoklassniki.getPladformVideo({extVideoId:{playerId:e.meta.playerId,videoId:e.meta.videoId}},(function(e){if(!e)return t();"getRutubeLinks"===e.action&&(e.links=null);var r=e.links;if(!r)return t();r.forEach((function(e){void 0===e.title&&(e.title=n)})),t(r,n,o,i)}))}return 0===r.length?t():t(r,n,o,i)}}]),e}();t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return m}));var r=n(10),i=n(12),o=n(5),a=n(1),s=n(2),l=n(0),u=n.n(l),c=n(11);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function(e,t,n){return"https://".concat(e,"/api/v2.1/handlers/track/").concat(t,":").concat(n,"/web-home_new-chart-track-saved/download/m?hq=0&external-domain=music.yandex.ru&overembed=no&__t=").concat(Date.now())},h=function(e,t,n,r,i){return"https://".concat(e,"/get-mp3/").concat(t,"/").concat(n,"/").concat(r,"?track-id=").concat(i,"&play=false")},m=function(){function e(t){Object(a.a)(this,e)}var t;return Object(s.a)(e,[{key:"yandexGetTrack",value:(t=Object(o.a)(u.a.mark((function e(t){var n,i,o,a,s,l,d,m,g,v,b,y,A,w,k,x,C,S;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.album,i=t.trackId,o=t.uid,a=t.currentPage,a=new URL(a),s={headers:{accept:"application/json","X-Current-UID":o,"X-Retpath-Y":a.toString()},json:!0,withCredentials:!0},e.next=5,Object(c.default)(f({url:p(a.host,i,n)},s));case 5:return l=e.sent,d=l.body,m=d.src,g=d.codec,v=d.bitrate,b=-1===m.indexOf("https:")?"https:"+m:m,y=new URL(b),[["track_id",i],["format","json"]].forEach((function(e){var t;return(t=y.searchParams).append.apply(t,Object(r.a)(e))})),e.next=12,Object(c.default)(f({url:y.toString()},s));case 12:return A=e.sent,w=A.body,k=w.host,x=w.ts,C=w.path,S=w.s,e.abrupt("return",{bitrate:v,codec:g,downloadURL:h(k,S,x,C,i)});case 15:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}()},function(e,t,n){"use strict";n.r(t);var r=n(122);t.default=function(e){if("<all_urls>"===e)return"^https?:\\/\\/.+$";var t=e.match(/(\*|http|https|file|ftp):\/\/([^\/]+)(?:\/(.*))?/);if(!t)throw new Error("Invalid url-pattern");var n=t[1];"*"===n&&(n="https?");var i=t[2],o=["^",n,":\\/\\/",i="*"===i?".+":(i=(i=r(i)).replace(/^\\\*\\\./,"(?:[^/]+\\.)?")).replace(/\\\.\\\*$/g,"\\.[a-z\\.]{2,}")],a=t[3];return a?"*"===a?(a="(?:|/.*)",o.push(a),o.push("$")):a&&(a=(a=r(a="/"+a)).replace(/\\\*/g,".*"),o.push(a),o.push("$")):o.push("$"),o.join("")}},function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=/:\/\/(?:[^\/?#]*@)?([^:\/?#]+)/.exec(e);return(n=n&&n[1])&&t&&(n=n.replace(/^www\./,"")),n}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=/^[\d.]+$/;if(!n.test(e)||!n.test(t))throw new Error("Incorrect version");for(var r=function(e,t){for(;e.length<t;)e="0"+e;return e},i=e.split("."),o=t.split("."),a=0;a<o.length;a++){var s=i[a]||"",l=o[a]||"",u=Math.max(s.length,l.length);if(s=parseInt(r(s,u)),(l=parseInt(r(l,u)))!==s)return l>s}return!1}},function(e,t,n){"use strict";n.r(t);var r=n(11),i=n(9),o=n(20),a=Object(i.default)("amplitude");t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bc3c8ed7b305f692ec048b0425b002df";return a.debug("send",e),Object(r.default)({url:"https://api.amplitude.com/httpapi",method:"POST",contentType:"application/x-www-form-urlencoded",data:o.stringify({api_key:t,event:JSON.stringify(e)})}).catch((function(e){a.error("amplitude error",e)}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"countryPresets",(function(){return l})),n.d(t,"isAllowedExperiment",(function(){return u}));var r=n(12);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var a={enabled:!1,percent:10,countries:["all"],browsers:["all"],languages:["all"],platforms:["all"]},s=["az","am","by","kg","kz","md","ru","tj","ua","uz"],l={presetOnlyCIS:function(e){return s.includes(e)},presetNotAllowCIS:function(e){return!s.includes(e)}};function u(e,t){var n,r=o(o({},a),e),i=r.browsers,s=void 0===i?[]:i,u=r.countries,c=void 0===u?[]:u,d=r.languages,f=void 0===d?[]:d,p=r.platforms,h=void 0===p?[]:p,m=r.percent,g=function(e){return e.toLowerCase()},v=s.map(g).includes(t.browser)||s.includes("all");if(c.every((function(e){return Object.keys(l).includes(e)}))){var b=c[0];n=l[b](t.country)}else n=c.map(g).includes(t.country)||c.includes("all");var y=f.map(g).find((function(e){return-1!==t.getLanguage().indexOf(e)}))||f.includes("all"),A=h.map(g).includes(t.getPlatform().toLowerCase())||h.includes("all");return!!(r.enabled&&v&&n&&y&&A)&&function(e){return 100*Math.random()<=e}(m)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n(50),i=new Map;function o(){return{createRequest:a,sendRequest:s,readRequestBodyChunk:l,clearRequest:c,clearRequestByPrefix:u}}function a(e){var t=Object(r.default)(e);return i.set(t,{id:t,xhr:new XMLHttpRequest}),t}function s(e){return new Promise((function(t,n){var r=i.get(e.id),o=e.fetchOptions,a=r.xhr;for(var s in a.onload=function(){t({id:r.id,numChunks:Math.ceil(a.response.byteLength/16e6)||1,response:{ok:a.status>=200&&a.status<300,status:a.status,statusText:a.statusText,headers:d(a.getAllResponseHeaders()||""),url:a.responseURL}})},a.onerror=a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new DOMException("Aborted","AbortError"))},a.responseType="arraybuffer",a.open(o.method||"GET",e.url,!0),o.headers)a.setRequestHeader(s,o.headers[s]);a.send()}))}function l(e){return function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e99,r=8192,i=[],o=Math.min(e.byteLength,t+n);t<o;t+=r)i.push(String.fromCharCode.apply(null,new Uint8Array(e,t,Math.min(r,o-t))));return i.join("")}(i.get(e.id).xhr.response,16e6*e.chunkIndex,16e6)}function u(e){Array.from(i.keys()).filter((function(t){return-1!==t.indexOf(e)})).map((function(e){return c(e)}))}function c(e){var t=i.get(e);t&&(t.xhr&&t.xhr.abort(),i.delete(e))}function d(e){var t=e.split(/\r?\n/),n=[];return t.forEach((function(e){var t=e.indexOf(":");if(-1!==t){var r=e.substr(0,t).trim(),i=e.substr(t+1).trim();n.push([r,i])}})),n}},function(e,t,n){"use strict";n.r(t);var r=n(11),i=n(9),o=n(18),a=n(29),s=Object(i.default)("televzrRemoteFn"),l="http://127.0.0.1:34138";t.default=function(e){return{infoRequest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return Object(r.default)({url:l+"/info",json:!0,timeout:e}).then((function(e){if(e.body.error)throw new o.default(e.body.error.message,e.body.error.code);return e.body.result}))},openUrl:function(e){return Object(r.default)({url:l+"/open-url",method:"POST",headers:{"Content-Type":"application/json"},data:JSON.stringify({url:e}),json:!0}).then((function(e){if(e.body.error)throw new o.default(e.body.error.message,e.body.error.code);return e.body.result}))},startDownloadRequest:function(e,t,n){var i={url:l+"/download",method:"POST",json:!0,headers:{"Content-Type":"application/json"},data:JSON.stringify({url:e,type:t,height:n})};return Object(r.default)(i).then((function(e){var t=e.body.error;if(t)throw new o.default(t.message,t.code);return e.body.result}),(function(e){throw s.error("Download Request error",e),e}))},appAuth:function(){var t=this;return e.authService.getQuickCodeRequest().then((function(e){return t.sendQuickCodeRequest(e)})).then((function(){return Object(a.default)(1e3)})).then((function(){s.log("Televzr is authorized")}))},sendQuickCodeRequest:function(e){return Object(r.default)({url:l+"/auth/quick-code",headers:{"Content-Type":"application/json"},method:"POST",json:!0,data:JSON.stringify({code:e})}).catch((function(e){throw s.error("sendQuickCodeRequest",e),e}))}}}},function(e,t,n){var r,i=n(130).Buffer,o=n(20),a=n(131);r="function"==typeof i?function(e){return i.from(e).toString("base64")}:window.btoa.bind(window),e.exports=g;var s={Accept:"application/json, application/x-www-form-urlencoded","Content-Type":"application/x-www-form-urlencoded"},l={invalid_request:["The request is missing a required parameter, includes an","invalid parameter value, includes a parameter more than","once, or is otherwise malformed."].join(" "),invalid_client:["Client authentication failed (e.g., unknown client, no","client authentication included, or unsupported","authentication method)."].join(" "),invalid_grant:["The provided authorization grant (e.g., authorization","code, resource owner credentials) or refresh token is","invalid, expired, revoked, does not match the redirection","URI used in the authorization request, or was issued to","another client."].join(" "),unauthorized_client:["The client is not authorized to request an authorization","code using this method."].join(" "),unsupported_grant_type:["The authorization grant type is not supported by the","authorization server."].join(" "),access_denied:["The resource owner or authorization server denied the request."].join(" "),unsupported_response_type:["The authorization server does not support obtaining","an authorization code using this method."].join(" "),invalid_scope:["The requested scope is invalid, unknown, or malformed."].join(" "),server_error:["The authorization server encountered an unexpected","condition that prevented it from fulfilling the request.","(This error code is needed because a 500 Internal Server","Error HTTP status code cannot be returned to the client","via an HTTP redirect.)"].join(" "),temporarily_unavailable:["The authorization server is currently unable to handle","the request due to a temporary overloading or maintenance","of the server."].join(" ")};function u(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null==e[n])throw new TypeError('Expected "'+n+'" to exist')}}function c(e){var t=l[e.error]||e.error_description||e.error;if(t){var n=new Error(t);return n.body=e,n.code="EAUTH",n}}function d(e){return Array.isArray(e)?e.join(" "):h(e)}function f(e,t){u(e,"clientId","authorizationUri");var n={client_id:e.clientId,redirect_uri:e.redirectUri,response_type:t,state:e.state};void 0!==e.scopes&&(n.scope=d(e.scopes));var r=e.authorizationUri.includes("?")?"&":"?";return e.authorizationUri+r+o.stringify(Object.assign(n,e.query))}function p(e,t){return"Basic "+r(h(e)+":"+h(t))}function h(e){return null==e?"":String(e)}function m(e,t){return{url:e.url,method:e.method,body:Object.assign({},e.body,t.body),query:Object.assign({},e.query,t.query),headers:Object.assign({},e.headers,t.headers)}}function g(e,t){this.options=e,this.request=t||a,this.code=new w(this),this.token=new y(this),this.owner=new b(this),this.credentials=new A(this),this.jwt=new k(this)}function v(e,t){this.client=e,this.data=t,this.tokenType=t.token_type&&t.token_type.toLowerCase(),this.accessToken=t.access_token,this.refreshToken=t.refresh_token,this.expiresIn(Number(t.expires_in))}function b(e){this.client=e}function y(e){this.client=e}function A(e){this.client=e}function w(e){this.client=e}function k(e){this.client=e}g.Token=v,g.prototype.createToken=function(e,t,n,r){var i=Object.assign({},r,"string"==typeof e?{access_token:e}:e,"string"==typeof t?{refresh_token:t}:t,"string"==typeof n?{token_type:n}:n);return new g.Token(this,i)},g.prototype._request=function(e){var t=e.url,n=o.stringify(e.body),r=o.stringify(e.query);return r&&(t+=(-1===t.indexOf("?")?"?":"&")+r),this.request(e.method,t,n,e.headers).then((function(e){var t=function(e){try{return JSON.parse(e)}catch(t){return o.parse(e)}}(e.body),n=c(t);if(n)return Promise.reject(n);if(e.status<200||e.status>=399){var r=new Error("HTTP status "+e.status);return r.status=e.status,r.body=e.body,r.code="ESTATUS",Promise.reject(r)}return t}))},v.prototype.expiresIn=function(e){if("number"==typeof e)this.expires=new Date,this.expires.setSeconds(this.expires.getSeconds()+e);else{if(!(e instanceof Date))throw new TypeError("Unknown duration: "+e);this.expires=new Date(e.getTime())}return this.expires},v.prototype.sign=function(e){if(!this.accessToken)throw new Error("Unable to sign without access token");if(e.headers=e.headers||{},"bearer"===this.tokenType)e.headers.Authorization="Bearer "+this.accessToken;else{var t=e.url.split("#"),n="access_token="+this.accessToken,r=t[0].replace(/[?&]access_token=[^&#]/,""),i=t[1]?"#"+t[1]:"";e.url=r+(r.indexOf("?")>-1?"&":"?")+n+i,e.headers.Pragma="no-store",e.headers["Cache-Control"]="no-store"}return e},v.prototype.refresh=function(e){var t=this,n=Object.assign({},this.client.options,e);return this.refreshToken?this.client._request(m({url:n.accessTokenUri,method:"POST",headers:Object.assign({},s,{Authorization:p(n.clientId,n.clientSecret)}),body:{refresh_token:this.refreshToken,grant_type:"refresh_token"}},n)).then((function(e){return t.client.createToken(Object.assign({},t.data,e))})):Promise.reject(new Error("No refresh token"))},v.prototype.expired=function(){return Date.now()>this.expires.getTime()},b.prototype.getToken=function(e,t,n){var r=this,i=Object.assign({},this.client.options,n),o={username:e,password:t,grant_type:"password"};return void 0!==i.scopes&&(o.scope=d(i.scopes)),this.client._request(m({url:i.accessTokenUri,method:"POST",headers:Object.assign({},s,{Authorization:p(i.clientId,i.clientSecret)}),body:o},i)).then((function(e){return r.client.createToken(e)}))},y.prototype.getUri=function(e){return f(Object.assign({},this.client.options,e),"token")},y.prototype.getToken=function(e,t){var n=Object.assign({},this.client.options,t),r="object"==typeof e?e:new URL(e,"https://example.org/"),i=new URL(n.redirectUri,"https://example.org/");if("string"==typeof r.pathname&&r.pathname!==i.pathname)return Promise.reject(new TypeError("Redirected path should match configured path, but got: "+r.pathname));if(!r.hash&&!r.search)return Promise.reject(new TypeError("Unable to process uri: "+e));var a=Object.assign({},"string"==typeof r.search?o.parse(r.search.substr(1)):r.search||{},"string"==typeof r.hash?o.parse(r.hash.substr(1)):r.hash||{}),s=c(a);return s?Promise.reject(s):null!=n.state&&a.state!==n.state?Promise.reject(new TypeError("Invalid state: "+a.state)):Promise.resolve(this.client.createToken(a))},A.prototype.getToken=function(e){var t=this,n=Object.assign({},this.client.options,e);u(n,"clientId","clientSecret","accessTokenUri");var r={grant_type:"client_credentials"};return void 0!==n.scopes&&(r.scope=d(n.scopes)),this.client._request(m({url:n.accessTokenUri,method:"POST",headers:Object.assign({},s,{Authorization:p(n.clientId,n.clientSecret)}),body:r},n)).then((function(e){return t.client.createToken(e)}))},w.prototype.getUri=function(e){return f(Object.assign({},this.client.options,e),"code")},w.prototype.getToken=function(e,t){var n=this,r=Object.assign({},this.client.options,t);u(r,"clientId","accessTokenUri");var i="object"==typeof e?e:new URL(e,"https://example.org/");if("string"==typeof r.redirectUri&&"string"==typeof i.pathname&&i.pathname!==new URL(r.redirectUri,"https://example.org/").pathname)return Promise.reject(new TypeError("Redirected path should match configured path, but got: "+i.pathname));if(!i.search||!i.search.substr(1))return Promise.reject(new TypeError("Unable to process uri: "+e));var a="string"==typeof i.search?o.parse(i.search.substr(1)):i.search||{},l=c(a);if(l)return Promise.reject(l);if(null!=r.state&&a.state!==r.state)return Promise.reject(new TypeError("Invalid state: "+a.state));if(!a.code)return Promise.reject(new TypeError("Missing code, unable to request token"));var d=Object.assign({},s),f={code:a.code,grant_type:"authorization_code",redirect_uri:r.redirectUri};return r.clientSecret?d.Authorization=p(r.clientId,r.clientSecret):f.client_id=r.clientId,this.client._request(m({url:r.accessTokenUri,method:"POST",headers:d,body:f},r)).then((function(e){return n.client.createToken(e)}))},k.prototype.getToken=function(e,t){var n=this,r=Object.assign({},this.client.options,t),i=Object.assign({},s);u(r,"accessTokenUri"),r.clientId&&(i.Authorization=p(r.clientId,r.clientSecret));var o={grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:e};return void 0!==r.scopes&&(o.scope=d(r.scopes)),this.client._request(m({url:r.accessTokenUri,method:"POST",headers:i,body:o},r)).then((function(e){return n.client.createToken(e)}))}},function(e,t){},function(e,t){e.exports=function(e,t,n,r){return new Promise((function(i,o){var a=new window.XMLHttpRequest;a.open(e,t),a.onload=function(){return i({status:a.status,body:a.responseText})},a.onerror=a.onabort=function(){return o(new Error(a.statusText||"XHR aborted: "+t))},Object.keys(r).forEach((function(e){a.setRequestHeader(e,r[e])})),a.send(n)}))}},function(e,t,n){"use strict";n.r(t);var r=n(53),i=Object(r.default)([{matches:/^(?:https?|file|ftp):\/\/[^\\/]*\.ozon\.travel\/.*$|^(?:https?|file|ftp):\/\/ozon\.travel\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.onetwotrip\.com\/.*$|^(?:https?|file|ftp):\/\/onetwotrip\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.onetravel\.com\/.*$|^(?:https?|file|ftp):\/\/onetravel\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.aeroflot\.ru\/.*$|^(?:https?|file|ftp):\/\/aeroflot\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.anywayanyday\.com\/.*$|^(?:https?|file|ftp):\/\/anywayanyday\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.svyaznoy\.travel\/.*$|^(?:https?|file|ftp):\/\/svyaznoy\.travel\/.*$|^(?:https?|file|ftp):\/\/avia\.tickets\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.s7\.ru\/.*$|^(?:https?|file|ftp):\/\/s7\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.kupibilet\.ru\/.*$|^(?:https?|file|ftp):\/\/kupibilet\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.trip\.ru\/.*$|^(?:https?|file|ftp):\/\/trip\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.trip\.com\/.*$|^(?:https?|file|ftp):\/\/trip\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.ctrip\.com\/.*$|^(?:https?|file|ftp):\/\/ctrip\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.tutu\.ru\/.*$|^(?:https?|file|ftp):\/\/tutu\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.uralairlines\.ru\/.*$|^(?:https?|file|ftp):\/\/uralairlines\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.flyredwings\.com\/.*$|^(?:https?|file|ftp):\/\/flyredwings\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.airastana\.com\/.*$|^(?:https?|file|ftp):\/\/airastana\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.airmoldova\.md\/.*$|^(?:https?|file|ftp):\/\/airmoldova\.md\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.sindbad\.ru\/.*$|^(?:https?|file|ftp):\/\/sindbad\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.aviakassa\.ru\/.*$|^(?:https?|file|ftp):\/\/aviakassa\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.aviakassa\.com\/.*$|^(?:https?|file|ftp):\/\/aviakassa\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.biletix\.ru\/.*$|^(?:https?|file|ftp):\/\/biletix\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.utair\.ru\/.*$|^(?:https?|file|ftp):\/\/utair\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.orbitz\.com\/.*$|^(?:https?|file|ftp):\/\/orbitz\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.travelocity\.com\/.*$|^(?:https?|file|ftp):\/\/travelocity\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.travelocity\.ca\/.*$|^(?:https?|file|ftp):\/\/travelocity\.ca\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.expedia-cn\.com\/.*$|^(?:https?|file|ftp):\/\/expedia-cn\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.priceline\.com\/.*$|^(?:https?|file|ftp):\/\/priceline\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.airasia\.com\/.*$|^(?:https?|file|ftp):\/\/airasia\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.ryanair\.com\/.*$|^(?:https?|file|ftp):\/\/ryanair\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.hotels\.com\/.*$|^(?:https?|file|ftp):\/\/hotels\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.ostrovok\.ru\/.*$|^(?:https?|file|ftp):\/\/ostrovok\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.travel\.ru\/.*$|^(?:https?|file|ftp):\/\/travel\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.oktogo\.ru\/.*$|^(?:https?|file|ftp):\/\/oktogo\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.roomguru\.ru\/.*$|^(?:https?|file|ftp):\/\/roomguru\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.tripadvisor\.ru\/.*$|^(?:https?|file|ftp):\/\/tripadvisor\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.hilton\.ru\/.*$|^(?:https?|file|ftp):\/\/hilton\.ru\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.hilton\.com\/.*$|^(?:https?|file|ftp):\/\/hilton\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.marriott\.com\/.*$|^(?:https?|file|ftp):\/\/marriott\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.hostelworld\.com\/.*$|^(?:https?|file|ftp):\/\/hostelworld\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.tiket\.com\/.*$|^(?:https?|file|ftp):\/\/tiket\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.hotelsclick\.com\/.*$|^(?:https?|file|ftp):\/\/hotelsclick\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.hotelscombined\.com\/.*$|^(?:https?|file|ftp):\/\/hotelscombined\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.wizzair\.com\/.*$|^(?:https?|file|ftp):\/\/wizzair\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.emirates\.com\/.*$|^(?:https?|file|ftp):\/\/emirates\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.delta\.com\/.*$|^(?:https?|file|ftp):\/\/delta\.com\/.*$|^(?:https?|file|ftp):\/\/booking\.etihad\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.budget\.com\/.*$|^(?:https?|file|ftp):\/\/budget\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.hertz\.com\/.*$|^(?:https?|file|ftp):\/\/hertz\.com\/.*$|^(?:https?|file|ftp):\/\/[^\\/]*\.europcar\.com\/.*$|^(?:https?|file|ftp):\/\/europcar\.com\/.*$/i},{matches:/^(?:https?|file|ftp):\/\/[^\\/]*\/.*$/i,include_globs:/^[^:]*:\/\/skyscanner\.[^\\/]*\/.*$|^[^:]*:\/\/[^\\/]*\.skyscanner\.[^\\/]*\/.*$|^[^:]*:\/\/momondo\.[^\\/]*\/.*$|^[^:]*:\/\/[^\\/]*\.momondo\.[^\\/]*\/.*$|^[^:]*:\/\/kayak\.[^\\/]*\/.*$|^[^:]*:\/\/[^\\/]*\.kayak\.[^\\/]*\/.*$|^[^:]*:\/\/booking\.[^\\/]*\/.*$|^[^:]*:\/\/[^\\/]*\.booking\.[^\\/]*\/.*$|^[^:]*:\/\/agoda\.[^\\/]*\/.*$|^[^:]*:\/\/[^\\/]*\.agoda\.[^\\/]*\/.*$|^[^:]*:\/\/expedia\.[^\\/]*\/.*$|^[^:]*:\/\/[^\\/]*\.expedia\.[^\\/]*\/.*$|^[^:]*:\/\/avis\.[^\\/]*\/.*$|^[^:]*:\/\/[^\\/]*\.avis\.[^\\/]*\/.*$/i}]);t.default=function(e){return i(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return s}));var r=n(1),i=n(2),o=n(9),a=Object(o.default)("ExperimentExecutor"),s=function(){function e(t){Object(r.a)(this,e),this.exp=t}return Object(i.a)(e,[{key:"isActive",value:function(){return this.exp&&this.exp.allowed&&this.exp.config&&this.exp.config.enabled}},{key:"exec",value:function(e){if(this.isActive()){var t=this.exp.name;["testing","production"].includes("production")||a.info(t+" exec"),e()}}}]),e}()},function(e,t,n){"use strict";var r=n(135),i=n(137);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=y(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),d=["%","/","?",";","#"].concat(c),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(20);function y(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var y=e=u.join(s);if(y=y.trim(),!n&&1===e.split("#").length){var A=l.exec(y);if(A)return this.path=y,this.href=y,this.pathname=A[1],A[2]?(this.search=A[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(y);if(w){var k=(w=w[0]).toLowerCase();this.protocol=k,y=y.substr(w.length)}if(n||w||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===y.substr(0,2);!x||w&&g[w]||(y=y.substr(2),this.slashes=!0)}if(!g[w]&&(x||w&&!v[w])){for(var C,S,M=-1,_=0;_<f.length;_++){-1!==(I=y.indexOf(f[_]))&&(-1===M||I<M)&&(M=I)}-1!==(S=-1===M?y.lastIndexOf("@"):y.lastIndexOf("@",M))&&(C=y.slice(0,S),y=y.slice(S+1),this.auth=decodeURIComponent(C)),M=-1;for(_=0;_<d.length;_++){var I;-1!==(I=y.indexOf(d[_]))&&(-1===M||I<M)&&(M=I)}-1===M&&(M=y.length),this.host=y.slice(0,M),y=y.slice(M),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var E=this.hostname.split(/\./),L=(_=0,E.length);_<L;_++){var N=E[_];if(N&&!N.match(p)){for(var T="",j=0,F=N.length;j<F;j++)N.charCodeAt(j)>127?T+="x":T+=N[j];if(!T.match(p)){var D=E.slice(0,_),R=E.slice(_+1),P=N.match(h);P&&(D.push(P[1]),R.unshift(P[2])),R.length&&(y="/"+R.join(".")+y),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=r.toASCII(this.hostname));var V=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+V,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[k])for(_=0,L=c.length;_<L;_++){var U=c[_];if(-1!==y.indexOf(U)){var z=encodeURIComponent(U);z===U&&(z=escape(U)),y=y.split(U).join(z)}}var q=y.indexOf("#");-1!==q&&(this.hash=y.substr(q),y=y.slice(0,q));var H=y.indexOf("?");if(-1!==H?(this.search=y.substr(H),this.query=y.substr(H+1),t&&(this.query=b.parse(this.query)),y=y.slice(0,H)):t&&(this.search="",this.query={}),y&&(this.pathname=y),v[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){V=this.pathname||"";var W=this.search||"";this.path=V+W}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),u=0;u<l.length;u++){var c=l[u];"protocol"!==c&&(n[c]=e[c])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",b=n.search||"";n.path=m+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),A=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=A||y||n.host&&e.pathname,k=w,x=n.pathname&&n.pathname.split("/")||[],C=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===x[0])),A)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=h;else if(h.length)x||(x=[]),x.pop(),x=x.concat(h),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(C)n.hostname=n.host=x.shift(),(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=x.slice(-1)[0],M=(n.host||e.host||x.length>1)&&("."===S||".."===S)||""===S,_=0,I=x.length;I>=0;I--)"."===(S=x[I])?x.splice(I,1):".."===S?(x.splice(I,1),_++):_&&(x.splice(I,1),_--);if(!w&&!k)for(;_--;_)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),M&&"/"!==x.join("/").substr(-1)&&x.push("");var O,E=""===x[0]||x[0]&&"/"===x[0].charAt(0);C&&(n.hostname=n.host=E?"":x.length?x.shift():"",(O=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=O.shift(),n.host=n.hostname=O.shift()));return(w=w||n.host&&x.length)&&!E&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){(function(e,r){var i;!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,u=/^xn--/,c=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(f[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function y(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function A(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function k(e){var t,n,r,i,o,a,s,u,c,d,f,h=[],g=e.length,v=0,b=128,A=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),h.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=v,a=1,s=36;i>=g&&m("invalid-input"),((u=(f=e.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||u>p((l-v)/a))&&m("overflow"),v+=u*a,!(u<(c=s<=A?1:s>=A+26?26:s-A));s+=36)a>p(l/(d=36-c))&&m("overflow"),a*=d;A=w(v-o,t=h.length+1,0==o),p(v/t)>l-b&&m("overflow"),b+=p(v/t),v%=t,h.splice(v++,0,b)}return y(h)}function x(e){var t,n,r,i,o,a,s,u,c,d,f,g,v,y,k,x=[];for(g=(e=b(e)).length,t=128,n=0,o=72,a=0;a<g;++a)(f=e[a])<128&&x.push(h(f));for(r=i=x.length,i&&x.push("-");r<g;){for(s=l,a=0;a<g;++a)(f=e[a])>=t&&f<s&&(s=f);for(s-t>p((l-n)/(v=r+1))&&m("overflow"),n+=(s-t)*v,t=s,a=0;a<g;++a)if((f=e[a])<t&&++n>l&&m("overflow"),f==t){for(u=n,c=36;!(u<(d=c<=o?1:c>=o+26?26:c-o));c+=36)k=u-d,y=36-d,x.push(h(A(d+k%y,0))),u=p(k/y);x.push(h(A(u,0))),o=w(n,v,r==i),n=0,++r}++n,++t}return x.join("")}s={version:"1.4.1",ucs2:{decode:b,encode:y},decode:k,encode:x,toASCII:function(e){return v(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return v(e,(function(e){return u.test(e)?k(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(136)(e),n(63))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";n.r(t);var r=n(10),i=n(5),o=n(12),a=n(1),s=n(2),l=n(66);function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=l(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}var c=n(6),d=n(8),f=n(3),p=n(0),h=n.n(p);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var g=n(44),v=n(7),b=function(){var e=[];return Array.isArray(navigator.languages)?e=navigator.languages:navigator.language&&(e=[navigator.language]),e};function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var i=Object(f.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var A=n(74).preferredLanguages,w=function(e){return function(e){Object(c.a)(n,e);var t=y(n);function n(){var e;return Object(a.a)(this,n),(e=t.call(this)).defaultLocale="en",e.localeMap={de:{extName:{message:"SaveFrom.net Helfer"},extDescription:{message:"Laden Sie von YouTube, Facebook, VK.com und mehr als 40 anderen Seiten mit einem Klick herunter."},extNameLite:{message:"SaveFrom.net Helfer Lite"},extDescriptionLite:{message:"Herunterladen von Facebook, VK.com und mehr als 40 weiteren Seiten mit einem Klick herunter."},lang:{message:"de"},titleDefault:{message:"SaveFrom.net Helfer"},titleDesabled:{message:"SaveFrom.net Helfer deaktiviert"},menuEnable:{message:"Aktivieren"},menuDisable:{message:"Deaktivieren"},showButton:{message:"Erweiterungs Knopf anzeigen"},copy:{message:"Kopie"},download:{message:"Herunterladen"},downloadTitle:{message:"Klicke Sie den Link während Sie die Alt/Einstellung oder Ctrl/Strg Taste drücken zum Herunterladen der Dateien."},noLinksFound:{message:"Keine Links wurden gefunden"},more:{message:"Mehr"},close:{message:"Schließen"},kbps:{message:"kbps"},withoutAudio:{message:"without audio"},size:{message:"größe"},subtitles:{message:"Untertitel"},playlist:{message:"Wiedergabliste"},filelist:{message:"List of files"},downloadWholePlaylist:{message:"Die komplette Wiedergabliste herunterladen"},getFileSizeTitle:{message:"Dateigröße bestimmen"},getFileSizeFailTitle:{message:"Fehler bei bestimmung der Dateigröße. Bitte versuchen Sie es erneut."},lmButtonTitle:{message:"Holen Sie sich einen direkten Link."},downloadFromCurrentPage:{message:"Zu SaveFrom.net"},updateLinks:{message:"Links aktualisieren"},updateLinksNotification:{message:"Links aktualisiert"},downloadMP3Files:{message:"Download Audiodateien"},downloadPlaylist:{message:"Download Playlist"},downloadPhotos:{message:"Download Bilder"},installFullVersion:{message:"Install full version"},disable:{message:"Deaktivieren"},showOptions:{message:"Einstellungen"},reportBug:{message:"Fehler melden"},openPoll:{message:"Become better"},disableModule:{message:"Auf dieser Webseite deaktivieren"},enableModule:{message:"Auf dieser Webseite aktivieren"},enableDisableModule:{message:"Ein/Aus auf dieser Webseite"},showHideButton:{message:"Erweitern Ein-/Ausblenden"},updateTo:{message:"Update auf %d"},aboutPage:{message:"Über"},aboutTitle:{message:"SaveFrom.net Helfer"},aboutVersion:{message:"Version"},aboutDescription:{message:"Hilft den Nutzern direkte Links zu Herunterladen von mehr als 40 Webseiten, inklusive Dailymotion.com, YouTube.com, VK.com und weiteren zu bekommen."},aboutDescriptionLite:{message:"Hilft den Nutzern direkte Links zu Herunterladen von mehr als 40 Webseiten, inklusive Dailymotion.com, VK.com und weiteren zu bekommen."},aboutSupported:{message:"Unterstützte Ressourcen"},homePage:{message:"Homepage"},optionsTitle:{message:"SaveFrom.net Helfer - Einstellungen"},optionsHandleLinks:{message:"Links handhaben"},optionsMediaHostings:{message:"Zu Medienhoster"},optionsModules:{message:"Module"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Links ausblenden"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Bitrate sofort zeigen"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"Tipps für UVD einblenden"},optionsGmNativeDownload:{message:"Erweiterter Download-Modus"},optionsShowUmmyBtn:{message:"Schaltfläche Ummy anzeigen"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Jedes Mal nachfragen, wo eine Datei gespeichert werden soll"},menuDownloadFromCurrentPage:{message:"Laden Sie die Dateien mit SaveFrom.net von der aktuellen Seite"},menuUpdateLinks:{message:"Hier klicke, wenn die Download-Taste nicht erscheint"},menuDownloadMP3Files:{message:"Alle auf dieser Seite gefundenen Audiodateien herunterladen"},menuDownloadPlaylist:{message:"Playliste mit den Links zu den Audiodateien generieren und downloaden"},menuDownloadPhotos:{message:"Alle auf der aktuellen Seite gefundenen Bilder herunterladen"},menuReportBug:{message:"Schreiben Sie uns, wenn Probleme auftreten"},menuShowOptions:{message:"AN/AUS unterstützte Ressourcen und Helperoptionen"},menuEnableExtension:{message:""},menuOpenPoll:{message:""},quality:{message:"Qualität"},qualityNote:{message:"Wenn es nicht um Qualität geht, wird das nächste verfügbare Video heruntergeladen."},filelistTitle:{message:"Die Liste der gefundenen dateien"},filelistInstruction:{message:"['Zum Herunterladen aller datien kopieren Sie die liste der Links in Ihren ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'Download Manager'}},'. Wenn Sie noch keinen Download Manager haben we empfehlen wir Ihnen die Installation des ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Wiedergabliste"},playlistInstruction:{message:"Zur Wiedergabe Ihrer gespeicherten Wiedergabliste kann es nun mit einem Musik-Player geöffnet werden."},ummySfTitle:{message:"HD oder MP3"},ummyMenuItem:{message:"[{span:{}},' mithilfe von Ummy herunterladen']"},ummyMenuInfo:{message:"[{p:{text:'Schnell und einfach HD Videos und MP3 über Ummy Video Downloader herunterladen!'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Jetzt installieren'}}]}},{p:{append:['Nach der Installation startet jederzeit ein Download, wenn Sie auf ',{img:{src:'#'}},' klicke']}}]"},warningPopupTitle:{message:"Überprüfen Sie die Browsereinstellungen"},warningPopupDesc:{message:'Die Option "Jedes Mal nachfragen, wo eine Datei gespeichert werden soll" muss deaktiviert sein.'},readMore:{message:"Mehr"},noWarning:{message:"Nicht benachrichtigen"},cancel:{message:"Abbrechen"},continue:{message:"Fortsetzen"},beforeDownloadPopupWarn:{message:"Achtung! Der Download kann nicht abgebrochen oder angehalten werden."},vkInfo:{message:"Info"},vkInfoTitle:{message:"Dateigröße und Bitrate"},vkMp3LinksNotFound:{message:"Links zu MP3 Dateien wurden nicht gefunden"},vkPhotoLinksNotFound:{message:"Photos are not found"},vkDownloadPhotoAlbum:{message:"Album herunterladen"},vkDownloadAllPhotoAlbums:{message:"Alle Alben herunterladen"},vkFoundPhotos:{message:"Gefundene Fotos"},vkNotAvailablePhotos:{message:"%d Foto(s) vorübergehend nicht verfügbar"},vkFoundLinks:{message:"Gefundene Links"},vkFoundOf:{message:"von"},vkShowAs:{message:"Zeigen als"},vkListOfLinks:{message:"Liste der Links"},vkListOfLinksInstruction:{message:"['Um alle Fotos herunterzuladen, kopieren Sie die Links aus der Liste und fügen Sie diese in Ihren ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'Download Manager'}},' ein. Wenn Sie noch keinen Download Manager haben we empfehlen wir Ihnen die Installation des ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tabelle der Thumbnails"},vkListOfPhotos:{message:"Liste der Fotos"},vkListOfPhotosInstruction:{message:"klicke Sie auf ein Foto um es herunterzuladen."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Herunterladen: Öffnen Sie ',{a:{href:'{url}',text:'die Video Seite'}},' und drücken Sie den \"Herunterladen\" Knopf über dem Video-Spieler']"},vkFoundFiles:{message:"Dateien gefunden: %d"},shareIn:{message:"In %w teilen"},socialDesc:{message:"Der SaveFrom.net Helper ermöglicht es Ihnen Dateien YouTube.com, Facebook.com, VK.com und mehr als 40 andere Seiten mit einem Klick herunterzuladen"},tutorialS1Title:{message:"Gute Nachrichten!"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}},' wurde erfolgreich installiert. Jetzt kannst du jedes Video mit einem Klick von YouTube herunterladen']"},tutorialS1Arrow:{message:"['Wie das geht?',{br:{}},'Hier erfährst du es']"},tutorialS2Main:{message:'Wähle das Format des Videos, das du herunterladen möchtest und klicke auf "Herunterladen"'},tutorialS3History:{message:"Historie"},tutorialS3Main:{message:"['Du möchtest ein Video aus der Historie herunterladen? Klicke einfach in der Vorschau des zuletzt gesehenen Videos auf ', {img: {src: '#arrow'}}]"},tutorialS4Main:{message:"['Du musst dir das Video nicht ansehen — klicke einfach auf ', {img: {src: '#arrow'}}, ', wähle die Qualität und lade es herunter. Ganz einfach, oder?']"},tutorialS5Title:{message:"Viel Spaß mit SaveFrom.net Helper!"},tutorialS5Main:{message:"['Noch Fragen? Vorschläge? Willkommen auf unserer ', {a: {text: 'Support-Seite', href: '#support'}} ,'. Schließe dich uns bei ', {a: {text: 'Facebook', href: '#fb'}} ,' an']"},tutorialTooltipText:{message:"['Klicke Sie zum ',{b: {text: 'Download'}},', einfach auf die Schaltfläche']"},ummyTooltipConfirm:{message:"['Hatten Sie ',{img:{}},' Ummy Video Downloader bereits zuvor installiert?']"},yes:{message:"Ja"},no:{message:"Nein"},tooltipHide:{message:"Diese Meldung nicht wieder anzeigen"}},en:{extName:{message:"SaveFrom.net helper"},extDescription:{message:"Download YouTube, Facebook, VK.com and 40+ sites in one click."},extNameLite:{message:"SaveFrom.net helper lite"},extDescriptionLite:{message:"Download Facebook, VK.com and 40+ sites in one click."},lang:{message:"en"},titleDefault:{message:"SaveFrom.net helper"},titleDesabled:{message:"SaveFrom.net helper disabled"},menuEnable:{message:"Enable"},menuDisable:{message:"Disable"},showButton:{message:"Show extension button"},copy:{message:"Copy"},download:{message:"Download"},downloadTitle:{message:"Click the link while holding Alt/Option or Ctrl key to download the file."},noLinksFound:{message:"No links were found"},partnersLinksOnly:{message:"No links found, use affiliate products"},more:{message:"More"},close:{message:"Close"},kbps:{message:"kbps"},withoutAudio:{message:"without audio"},size:{message:"size"},subtitles:{message:"Subtitles"},playlist:{message:"Playlist"},filelist:{message:"List of files"},downloadWholePlaylist:{message:"Download the whole playlist"},getFileSizeTitle:{message:"Get file size"},getFileSizeFailTitle:{message:"Unable to get the file size. Please try again."},lmButtonTitle:{message:"Get a direct link"},downloadFromCurrentPage:{message:"Go to SaveFrom.net"},updateLinks:{message:"Refresh links"},updateLinksNotification:{message:"Links updated"},downloadMP3Files:{message:"Download audio files"},downloadPlaylist:{message:"Download a playlist"},downloadPhotos:{message:"Download pictures"},installFullVersion:{message:"Install full version"},disable:{message:"Disable"},showOptions:{message:"Settings"},reportBug:{message:"Report a bug"},openPoll:{message:"Become better"},disableModule:{message:"Disable on this website"},enableModule:{message:"Enable on this website"},enableDisableModule:{message:"Turn On/Off on this website"},showHideButton:{message:"Show/hide extension button"},updateTo:{message:"Update to %d"},aboutPage:{message:"About"},aboutTitle:{message:"SaveFrom.net Helper"},aboutVersion:{message:"Version"},aboutDescription:{message:"Helps users to get direct links to download from more than 40 websites, including Dailymotion.com, YouTube.com, VK.com and others."},aboutDescriptionLite:{message:"Helps users to get direct links to download from more than 40 websites, including Dailymotion.com, VK.com and others."},aboutSupported:{message:"Supported resources"},homePage:{message:"Home page"},optionsTitle:{message:"SaveFrom.net Helper - Preferences"},optionsHandleLinks:{message:"Handle links"},optionsFfmpegEnabled:{message:"Converter for ffmpeg (alpha version)"},optionsMediaHostings:{message:"To mediahostings"},optionsModules:{message:"Modules"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Hide links"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Show bitrate instantly"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"Show tips for Ummy Video Downloader"},optionsGmNativeDownload:{message:"Advanced download mode"},optionsShowUmmyBtn:{message:"Show the Ummy button"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Always ask me where to save files"},optionsDirectory:{message:"The name of the directory into which files of one of the listed formats will be saved."},optionsFormats:{message:"Specify, separated by a space, the file formats that will be saved to the specified directory"},menuDownloadFromCurrentPage:{message:"Download files from the current page using SaveFrom.net"},menuUpdateLinks:{message:"Press if Download button doesn't appear"},menuDownloadMP3Files:{message:"Download all audio files found on the current page"},menuDownloadPlaylist:{message:"Generates and downloads the playlist consisting of links to audio files"},menuDownloadPhotos:{message:"Download all pictures found on the current page"},menuReportBug:{message:"Let us know if you have any problems"},menuShowOptions:{message:"ON/OFF supported resources and Helper options"},menuEnableExtension:{message:""},menuOpenPoll:{message:"We work hard to become better. Please, give us a hand!"},quality:{message:"Quality"},qualityNote:{message:"The best available video will be downloaded If there is no chosen quality."},filelistTitle:{message:"The list of the found files"},filelistInstruction:{message:"['To download all files copy the list of links and paste it into the ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. If you do not have a download manager installed we recommend installing ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Playlist"},playlistInstruction:{message:"To playback the saved playlist it may be now opened in the music player."},ummySfTitle:{message:"HD or MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Fast and easy download HD videos and MP3 via Ummy Video Downloader!'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Install Now'}}]}},{p:{append:['When installed, a download will start anytime you click on ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Check browser settings"},warningPopupDesc:{message:'The option "Always ask me where to save files" must be turned off.'},readMore:{message:"More"},noWarning:{message:"Don't notify"},cancel:{message:"Cancel"},continue:{message:"Continue"},beforeDownloadPopupWarn:{message:"Warning! Downloading cannot be canceled or suspended."},vkInfo:{message:"Info"},vkInfoTitle:{message:"File size and bitrate"},vkMp3LinksNotFound:{message:"Links to MP3 files are not found"},vkPhotoLinksNotFound:{message:"Photos are not found"},vkDownloadPhotoAlbum:{message:"Download album"},vkDownloadAllPhotoAlbums:{message:"Download all albums"},vkFoundPhotos:{message:"Found photos"},vkNotAvailablePhotos:{message:"%d photos are temporarily unavailable"},vkFoundLinks:{message:"Found links"},vkFoundOf:{message:"of"},vkShowAs:{message:"Show as"},vkListOfLinks:{message:"List of links"},vkListOfLinksInstruction:{message:"['To download all photos copy the list of links and paste it into the ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. If you do not have a download manager installed we recommend installing ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Table of thumbnails"},vkListOfPhotos:{message:"List of photos"},vkListOfPhotosInstruction:{message:"Click on the photo to download it."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Download: open ',{a:{href:'{url}',text:'the video page'}},' and press the \"Download\" button above the player']"},vkFoundFiles:{message:"Files found: %d"},shareIn:{message:"Share on %w"},socialDesc:{message:"SaveFrom.net helper enables you to download files from YouTube.com, Facebook.com, VK.com and more than 40 other just in one click for free"},tutorialS1Title:{message:"Good news!"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}},' has been successfully installed and now you can download any video from YouTube in one click']"},tutorialS1Arrow:{message:"['Want to know how?',{br:{}},'Click here']"},tutorialS2Main:{message:'To download a video choose a format and click the "Download" button'},tutorialS3History:{message:"History"},tutorialS3Main:{message:"['Do you want to download a video from History?',{br:{}},'Just click ', {img: {src: '#arrow'}},' on the preview of the previously watched video']"},tutorialS4Main:{message:"['No need to watch a video — just click on ', {img: {src: '#arrow'}},', choose the quality, and download. Quite easy, isn’t it?']"},tutorialS5Title:{message:"Enjoy SaveFrom.net Helper!"},tutorialS5Main:{message:"['Still have questions? Want to share your ideas? Welcome to ',{a: {text: 'our support page', href: '#support'}},' or join us on ', {a: {text: 'Facebook', href: '#fb'}}]"},tutorialTooltipText:{message:"['Just click the button to ',{b: {text: 'download'}}]"},ummyTooltipConfirm:{message:"['Have you already installed',{br:{}},{img:{}},' Ummy Video Downloader earlier?']"},yes:{message:"Yes"},no:{message:"No"},tooltipHide:{message:"Do not show this message again"},sendToButton:{message:"To phone"},sendToLinkGoBack:{message:"Go back to downloading video"},sendToTextOr:{message:"or"},sendToLoginTitle:{message:"Transfer video directly to your mobile!"},sendToLoginText:{message:"Please, Sign In with Google to transfer chosen video"},sendToLoginButton:{message:"Sign in"},sendToEmailTitle:{message:"Thanks for your interest!"},sendToEmailText:{message:"The work under the feature is in progress now. Please, send us your email and we will send you an invite as far as feature would be ready."},sendToEmailButton:{message:"Send email"},sendToEmailTextComplete:{message:"Thank you!"},sendToEmailInputError:{message:"Error"},sendToEmailInputPlaceholder:{message:"Type your email here"},aliwizTopbarTitle:{message:"Aliexpress assistant shows <b>best price</b> & <b>good sellers!</b>"},aliwizTopbarButton:{message:"Get for free"},doNotClosePage:{message:"Do not close the page until the file has downloaded"},completed:{message:"Completed"},somethingWentWrong:{message:"Something went wrong. Try later."},downloadInfo:{message:"Download information"},prepareDownload:{message:"Preparing to download"},videoDownloading:{message:"Video downloading"},videoDownloaded:{message:"Videos uploaded successfully"},minimize:{message:"Minimize"},minimizeDownloadPanel:{message:"Minimize the download window, we'll let you know when the video has been downloaded"},done:{message:"Done"},cancelDownload:{message:"Cancel download"},conversionCompleted:{message:"Conversion completed"},someFilesNeedConverted:{message:"Some files need to be converted, do not close the window until the conversion is complete."},errors:{message:"Errors"},files:{message:"Files"},login:{message:"Login to Helper Pro"},loginIfPro:{message:"Login if you have Pro"},activate:{message:"Activate"},activatePro:{message:"Activate PRO"},logout:{message:"Logout"},instruction:{message:"Instructions for use"},success:{message:"Успешно"},televzrNotFound:{message:"Televzr not found"},televzrNotFoundSubMessage:{message:"Try to download and open Televzr"},authCheck:{message:"Credentials checking"},tzSearchApp:{message:"Search Televzr"},tzPreparingToDownload:{message:"Preparing to download"},tzDownloadStarted:{message:"Added to the download"},msg_no_premium:{message:"You have not activated Pro"},msg_not_authorized:{message:"To use pro you need to login"},msg_quality_not_found:{message:"Could not find the specified quality"},msg_video_not_found:{message:"Could not find the specified video"},msg_data_invalid:{message:"Invalid data was sent, please try again"},msg_video_exists:{message:"The video is already downloading"},loginGmMessage:{message:"Go to the login page"},loginAlreadyGmMessage:{message:"You are already logged in, please refresh the page"},logoutGmMessage:{message:"You have successfully logged out"},logoutAlreadyGmMessage:{message:"You are already logged out, refresh the page"},howActivateHelperPro:{message:"How to activate Helper Pro"},video_coming_soon:{message:"Video coming soon starts downloading"},dont_close_page:{message:"Don't close the page, <br/> it will take a few minutes"},video_coming_ok:{message:"Continue"},are_you_sure_interrupt_download:{message:"Are you sure you want to interrupt the download?"}},es:{extName:{message:"SaveFrom.net helper"},extDescription:{message:"Descargas desde YouTube, Facebook, VK.com y 40+ sitios en un sólo clic."},extNameLite:{message:"SaveFrom.net helper lite"},extDescriptionLite:{message:"Descargas desde Facebook, VK.com y 40+ sitios en un sólo clic."},lang:{message:"es"},titleDefault:{message:"SaveFrom.net helper"},titleDesabled:{message:"SaveFrom.net helper deshabilitado"},menuEnable:{message:"Habilitar"},menuDisable:{message:"Deshabilitar"},showButton:{message:"Mostrar botón de extensión"},copy:{message:"Copiar"},download:{message:"Descargar"},downloadTitle:{message:"Haga clic en el enlace mientras presiona la tecla Alt/Opción o Ctrl para descargar el archivo."},noLinksFound:{message:"No se han encontrado enlaces"},more:{message:"Más"},close:{message:"Cerrar"},kbps:{message:"kbps"},withoutAudio:{message:"sin audio"},size:{message:"tamaño"},subtitles:{message:"Subtítulos"},playlist:{message:"Lista de reproducción"},filelist:{message:"Lista de archivos"},downloadWholePlaylist:{message:"Descargar toda la lista de reproducción"},getFileSizeTitle:{message:"Obtener tamaño de archivo"},getFileSizeFailTitle:{message:"No se pudo obtener el tamaño del archivo. Por favor, inténtelo de nuevo."},lmButtonTitle:{message:"Obtener un enlace directo"},downloadFromCurrentPage:{message:"Ir a SaveFrom.net"},updateLinks:{message:"Actualizar enlaces"},updateLinksNotification:{message:"Enlaces actualizados"},downloadMP3Files:{message:"Descargar archivos de audio"},downloadPlaylist:{message:"Descargar una lista de reproducción"},downloadPhotos:{message:"Descargar imágenes"},installFullVersion:{message:"Instalar la versión completa"},disable:{message:"Deshabilitar"},showOptions:{message:"Ajustes"},reportBug:{message:"Informar sobre un problema"},openPoll:{message:"Mejorar"},disableModule:{message:"Desactivar en este sitio web"},enableModule:{message:"Activar en este sitio web"},enableDisableModule:{message:"Activ./Desactiv. en esta web"},showHideButton:{message:"Mostrar/ocultar botón extens"},updateTo:{message:"Actualizar a la %d"},aboutPage:{message:"Acerca de"},aboutTitle:{message:"SaveFrom.net Helper"},aboutVersion:{message:"Versión"},aboutDescription:{message:"Ayuda a los usuarios a obtener enlaces directos para descargar desde más de 40 sitios web, incluidos Dailymotion.com, YouTube.com, VK.com y otros."},aboutDescriptionLite:{message:"Ayuda a los usuarios a obtener enlaces directos para descargar desde más de 40 sitios web, incluidos Dailymotion.com, VK.com y otros."},aboutSupported:{message:"Recursos admitidos"},homePage:{message:"Página de inicio"},optionsTitle:{message:"SaveFrom.net Helper - Preferencias"},optionsHandleLinks:{message:"Manejar enlaces"},optionsMediaHostings:{message:"A servidores multimedia"},optionsModules:{message:"Módulos"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Ocultar enlaces"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Mostrar velocidad de bits instantáneamente"},optionsSovetnikEnabled:{message:"Consejero"},optionsShowUmmyInfo:{message:"Muestra consejos para Ummy Video Downloader"},optionsGmNativeDownload:{message:"Móudlo de descarga avanzada"},optionsShowUmmyBtn:{message:"Mostrar el botón Ummy"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Preguntarme siempre dónde guardar los archivos"},menuDownloadFromCurrentPage:{message:"Descargar archivos de la página actual usando SaveFrom.net"},menuUpdateLinks:{message:"Pulse si no aparece el botón Descargar"},menuDownloadMP3Files:{message:"Descargar todos los archivos de audio de la página actual"},menuDownloadPlaylist:{message:"Genera y descarga la lista de reproducción que consiste en enlaces a archivos de audio"},menuDownloadPhotos:{message:"Descargar todas las imágenes encontradas en la página actual"},menuReportBug:{message:"Háganos saber si tiene algún problema"},menuShowOptions:{message:"ACTIVAR/DESACTIVAR recursos admitidos y opciones del Helper"},menuEnableExtension:{message:""},menuOpenPoll:{message:"Trabajamos duro para mejorar. ¡Échenos una mano!"},quality:{message:"Calidad"},qualityNote:{message:"Si no se elige ninguna calidad, se descargará el mejor vídeo disponible."},filelistTitle:{message:"La lista de los archivos encontrados"},filelistInstruction:{message:"['Para descargar todos los archivos, copie la lista de enlaces y péguela en el ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'gestor de descargas'}},'. Si no tiene instalado un gestor de descargas, le recomendamos que instale ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Lista de reproducción"},playlistInstruction:{message:"Para reproducir la lista de reproducción guardada, puede abrirla ahora en el reproductor de música."},ummySfTitle:{message:"HD o MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Instale Ummy Video Downloader y descargue sus vídeos favoritos en HD o MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Descargar'}}]}},{p:{append:['Después de la instalación, se iniciará una descarga automáticamente siempre que haga clic en ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Compruebe la configuración de su navegador"},warningPopupDesc:{message:'La opción "Preguntarme siempre dónde guardar los archivos" debe estar desactivada.'},readMore:{message:"Más"},noWarning:{message:"No notificar"},cancel:{message:"Cancelar"},continue:{message:"Continuar"},beforeDownloadPopupWarn:{message:"¡Advertencia! La descarga no se puede cancelar o suspender."},vkInfo:{message:"Información"},vkInfoTitle:{message:"Tamaño de archivo y velocidad de bits"},vkMp3LinksNotFound:{message:"No se han encontrado enlaces a archivos MP3"},vkPhotoLinksNotFound:{message:"No se han encontrado imágenes"},vkDownloadPhotoAlbum:{message:"Descargar álbum"},vkDownloadAllPhotoAlbums:{message:"Descargar todos los álbums"},vkFoundPhotos:{message:"Imágenes encontradas"},vkNotAvailablePhotos:{message:"%d imágenes están temporalmente no disponibles"},vkFoundLinks:{message:"Enlaces encontrados"},vkFoundOf:{message:"de"},vkShowAs:{message:"Mostrar como"},vkListOfLinks:{message:"Lista de enlaces"},vkListOfLinksInstruction:{message:"['Para descargar todas las imágenes, copie la lista de enlaces y péguela en el ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'gestor de descargas'}},'. Si no tiene instalado un gestor de descargas, le recomendamos que instale ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tabla de miniaturas"},vkListOfPhotos:{message:"Lista de imágenes"},vkListOfPhotosInstruction:{message:"Haga clic en la imagen para descargarla."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Descargar: abra ',{a:{href:'{url}',text:'la página del vídeo'}},' y pulse el botón \"Descargar\" sobre el reproductor']"},vkFoundFiles:{message:"Archivos encontrados: %d"},shareIn:{message:"Compartir en %w"},socialDesc:{message:"SaveFrom.net helper le permite descargar archivos desde YouTube.com, Facebook.com, VK.com y más de 40 sitios distintos con tan sólo un clic y gratis"},tutorialS1Title:{message:"¡Excelentes noticias!"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}}, ' se instaló con éxito y ahora puedes descargar cualquier video de YouTube con un solo clic']"},tutorialS1Arrow:{message:"['¿Quieres saber cómo?', {br:{}}, 'Haz clic aquí']"},tutorialS2Main:{message:'Para descargar un video, elige el formato y haz clic en el botón "Descargar"'},tutorialS3History:{message:"Historial"},tutorialS3Main:{message:"['¿Deseas descargar un video del Historial?', {br:{}}, 'Simplemente haz clic en ', {img: {src: '#arrow'}}, ' en la vista previa del video visto anteriormente.']"},tutorialS4Main:{message:"['No es necesario mirar un video: simplemente haz clic en ', {img: {src: '#arrow'}}, ', elige la calidad y descárgalo. Fácil, ¿verdad?']"},tutorialS5Title:{message:"¡Disfruta de SaveForm.net Helper!"},tutorialS5Main:{message:"['¿Todavía tienes preguntas? ¿Quieres compartir tus ideas? Puedes ir a nuestra ',{a: {text: 'página de soporte', href: '#support'}},' o unirte a nosotros en ', {a: {text: 'Facebook', href: '#fb'}}]"},tutorialTooltipText:{message:"['Simplemente haz clic en el botón para ',{b: {text: 'descargar'}}]"},ummyTooltipConfirm:{message:"['¿Ya has instalado',{br:{}},{img:{}},' Ummy Video Downloader antes?']"},yes:{message:"Sí"},no:{message:"No"},tooltipHide:{message:"No mostrar de nuevo este mensaje"}},fr:{extName:{message:"SaveFrom.net Helper"},extDescription:{message:"Téléchargez YouTube, Facebook, VK.com et 40+ sites en un seul clic."},extNameLite:{message:"SaveFrom.net Helper lite"},extDescriptionLite:{message:"Téléchargez Facebook, VK.com et 40+ sites en un seul clic."},lang:{message:"fr"},titleDefault:{message:"SaveFrom.net Helper"},titleDesabled:{message:"Assistant SaveFrom.net désactivé"},menuEnable:{message:"Activer"},menuDisable:{message:"Désactiver"},showButton:{message:"Afficher le bouton d'extension"},copy:{message:"Copier"},download:{message:"Télécharger"},downloadTitle:{message:"Cliquer sur le lien tout en maintenant la touche Alt/Option ou Ctrl pour télécharger le fichier."},noLinksFound:{message:"Aucun lien n'a été trouvé"},more:{message:"Plus"},close:{message:"Fermer"},kbps:{message:"kbps"},withoutAudio:{message:"sans audio"},size:{message:"taille"},subtitles:{message:"Sous-titres"},playlist:{message:"Playlist"},filelist:{message:"Liste de fichiers"},downloadWholePlaylist:{message:"Télécharger toute la playlist"},getFileSizeTitle:{message:"Obtenir la taille du fichier"},getFileSizeFailTitle:{message:"Impossible d'obtenir la taille du fichier. Veuillez réessayer."},lmButtonTitle:{message:"Obtenir un lien direct"},downloadFromCurrentPage:{message:"Aller à SaveFrom.net"},updateLinks:{message:"Rafraîchir les liens"},updateLinksNotification:{message:"Liens mis à jour"},downloadMP3Files:{message:"Télécharger les fichiers audio"},downloadPlaylist:{message:"Télécharger une playlist"},downloadPhotos:{message:"Télécharger les images"},installFullVersion:{message:"Installer la version complète"},disable:{message:"Désactiver"},showOptions:{message:"Paramètres"},reportBug:{message:"Signaler un bug"},openPoll:{message:"Améliorer"},disableModule:{message:"Désactiver sur ce site"},enableModule:{message:"Activer sur ce site"},enableDisableModule:{message:"Activer On/Off sur ce site web"},showHideButton:{message:"Afficher/masquer le bouton d'extension"},updateTo:{message:"Passer à la version %d"},aboutPage:{message:"À propos"},aboutTitle:{message:"SaveFrom.net Helper"},aboutVersion:{message:"Version"},aboutDescription:{message:"Aide les utilisateurs à obtenir des liens directs pour télécharger depuis plus de 40 sites web, y compris Dailymotion.com, YouTube.com, VK.com et d'autres."},aboutDescriptionLite:{message:"Aide les utilisateurs à obtenir des liens directs pour télécharger depuis plus de 40 sites web, y compris Dailymotion.com, VK.com et d'autres."},aboutSupported:{message:"Ressources prises en charge"},homePage:{message:"Page d'accueil"},optionsTitle:{message:"SaveFrom.net Helper - Préférences"},optionsHandleLinks:{message:"manipuler les liens"},optionsMediaHostings:{message:"Vers l'hébergement de médias"},optionsModules:{message:"Modules"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Masquer les liens"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Afficher instantanément le bitrate"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"Afficher les astuces pour Ummy Video Downloader"},optionsGmNativeDownload:{message:"Mode de téléchargement avancé"},optionsShowUmmyBtn:{message:"Montrer le bouton Ummy"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Toujours demander où enregistrer les fichiers"},menuDownloadFromCurrentPage:{message:"Téléchargement des fichiers depuis la page actuelle en utilisant SaveFrom.net"},menuUpdateLinks:{message:"Appuyez si le bouton Télécharger n'apparaît pas"},menuDownloadMP3Files:{message:"Télécharger tous les fichiers audio trouvés sur la page actuelle"},menuDownloadPlaylist:{message:"Génère et télécharge la playlist consistant en liens vers les fichiers audio"},menuDownloadPhotos:{message:"Télécharger toutes les images trouvées sur la page actuelle"},menuReportBug:{message:"Prévenez-nous si vous avez des problèmes"},menuShowOptions:{message:"ON/OFF ressources prises en charge et options Helper"},menuEnableExtension:{message:""},menuOpenPoll:{message:"Nous faisons tout pour nous améliorer. N'hésitez pas à nous aider !"},quality:{message:"Qualité"},qualityNote:{message:"La meilleure vidéo disponible sera téléchargée s'il n'y a pas de qualité choisie."},filelistTitle:{message:"La liste des fichiers trouvés"},filelistInstruction:{message:"['Pour télécharger tous les fichiers copiez la liste des liens et collez-la dans ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. Si vous n\\'avez pas installé de gestionnaire de téléchargement, nous vous recommandons d\\'installer ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Playlist"},playlistInstruction:{message:"Pour lire la playlist sauvegardée, ouvrez-la dans le lecteur musical."},ummySfTitle:{message:"HD ou MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Installez Ummy Video Downloader et téléchargez vos vidéos favorites en HD ou MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Download'}}]}},{p:{append:['Après l\\'installation, un téléchargement démarrera automatiquement dès que vous cliquez sur ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Vérifier les paramètres du navigateur"},warningPopupDesc:{message:'L\'option "Toujours me demander où sauvegarder les fichiers" doit être désactivée.'},readMore:{message:"Plus"},noWarning:{message:"ne pas notifier'"},cancel:{message:"Annuler"},continue:{message:"Continuer"},beforeDownloadPopupWarn:{message:"Attention! Le téléchargement ne peut pas être annulé ou suspendu."},vkInfo:{message:"Info"},vkInfoTitle:{message:"Taille de fichier et bitrate"},vkMp3LinksNotFound:{message:"Les liens vers les fichiers MP3 sont introuvables"},vkPhotoLinksNotFound:{message:"Photos introuvables"},vkDownloadPhotoAlbum:{message:"Télécharger l'album"},vkDownloadAllPhotoAlbums:{message:"Télécharger tous les albums"},vkFoundPhotos:{message:"Photos trouvées"},vkNotAvailablePhotos:{message:"%d photos sont temporairement indisponibles"},vkFoundLinks:{message:"Liens trouvés"},vkFoundOf:{message:"de"},vkShowAs:{message:"Afficher comme"},vkListOfLinks:{message:"Liste des liens"},vkListOfLinksInstruction:{message:"['Pour télécharger toutes les photos copiez la liste des liens et collez-la dans ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'download manager'}},'. Si vous n\\'avez pas installé de gestionnaire de téléchargement nous vous recommandons d\\'installer ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tableau des vignettes"},vkListOfPhotos:{message:"Liste des photos"},vkListOfPhotosInstruction:{message:"Cliquez sur la photo pour la télécharger."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"O"},vkFileSizeKByte:{message:"ko"},vkFileSizeMByte:{message:"Mo"},vkFileSizeGByte:{message:"Go"},vkFileSizeTByte:{message:"To"},vkDownloadFromYoutube:{message:"['Download: open ',{a:{href:'{url}',text:'the video page'}},' et appuyez sur le bouton \"Télécharger\" au-dessus du lecteur']"},vkFoundFiles:{message:"Fichiers trouvés : %d"},shareIn:{message:"Partager sur %w"},socialDesc:{message:"SaveFrom.net helper vous permet de télécharger des fichiers de YouTube.com, Facebook.com, VK.com et plus de 40 autres gratuitement et en un seul clic"},tutorialS1Title:{message:"Bonnes nouvelles !"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}}, ' a été installé avec succès et maintenant vous pouvez télécharger les vidéos de YouTube en un clic']"},tutorialS1Arrow:{message:"['Vous voulez savoir comment ? Cliquez ici']"},tutorialS2Main:{message:'Pour télécharger une vidéo, choisissez un format et cliquez sur le bouton "Télécharger"'},tutorialS3History:{message:"Historique"},tutorialS3Main:{message:"['Voulez-vous télécharger une vidéo depuis l’historique ?', {br:{}}, 'Il suffit de cliquer sur ', {img: {src: '#arrow'}}, ' située sur l\\'aperçu de la vidéo précédemment regardée']"},tutorialS4Main:{message:"['Pas besoin de regarder une vidéo — il suffit de cliquer sur ', {img: {src: '#arrow'}}, ', faites le choix de la qualité, et télécharger. Facile, est-ce pas ?']"},tutorialS5Title:{message:"Profitez de SaveFrom.net Helper !"},tutorialS5Main:{message:"['Vous avez encore des questions ? Vous voulez partager vos idées ? Bienvenue sur notre page ',{a: {text: 'de d’Aide', href: '#support'}},' ou rejoignez-nous sur ', {a: {text: 'Facebook', href: '#fb'}}]"},tutorialTooltipText:{message:"['Il suffit de cliquer sur le bouton pour ',{b: {text: 'télécharger'}}]"},ummyTooltipConfirm:{message:"['Avez-vous déjà installé',{br:{}},{img:{}},' Ummy Video Downloader avant ?']"},yes:{message:"Oui"},no:{message:"Non"},tooltipHide:{message:"Ne plus afficher ce message"}},id:{extName:{message:"Bantuan SaveFrom.net"},extDescription:{message:"Unduh YouTube, Facebook, VK.com, dan 40+ situs dengan satu klik."},extNameLite:{message:"Bantuan SaveFrom.net lite"},extDescriptionLite:{message:"Unduh Facebook, VK.com, dan 40+ situs dengan satu klik."},lang:{message:"id"},titleDefault:{message:"Bantuan SaveFrom.net"},titleDesabled:{message:"Bantuan SaveFrom.net nonaktif"},menuEnable:{message:"Aktifkan"},menuDisable:{message:"Nonaktifkan"},showButton:{message:"Tampilkan tombol ekstensi"},copy:{message:"Salin"},download:{message:"Unduh"},downloadTitle:{message:"Klik tautan sambil menahan tombol Alt/Option atau Ctrl untuk mengunduh file."},noLinksFound:{message:"Tautan tidak ditemukan"},more:{message:"Lainnya"},close:{message:"Tutup"},kbps:{message:"kbps"},withoutAudio:{message:"tanpa audio"},size:{message:"ukuran"},subtitles:{message:"Subtitel"},playlist:{message:"Daftar putar"},filelist:{message:"Daftar file"},downloadWholePlaylist:{message:"Unduh seluruh daftar putar"},getFileSizeTitle:{message:"Dapatkan ukuran file"},getFileSizeFailTitle:{message:"Gagal mendapatkan ukuran file. Mohon coba lagi."},lmButtonTitle:{message:"Dapatkan tautan langsung"},downloadFromCurrentPage:{message:"Buka SaveFrom.net"},updateLinks:{message:"Segarkan tautan"},updateLinksNotification:{message:"Tautan diperbarui"},downloadMP3Files:{message:"Unduh file audio"},downloadPlaylist:{message:"Unduh daftar putar"},downloadPhotos:{message:"Unduh gambar"},installFullVersion:{message:"Pasang versi lengkap"},disable:{message:"Nonaktifkan"},showOptions:{message:"Setelan"},reportBug:{message:"Laporkan bug"},openPoll:{message:"Jadikan lebih baik"},disableModule:{message:"Nonaktifkan di situs web ini"},enableModule:{message:"Aktifkan di situs web ini"},enableDisableModule:{message:"Nyalakan/Matikan di situs ini"},showHideButton:{message:"Tampilkan/tutup tbl ekstensi"},updateTo:{message:"Perbarui ke %d"},aboutPage:{message:"Tentang"},aboutTitle:{message:"Bantuan SaveFrom.net"},aboutVersion:{message:"Versi"},aboutDescription:{message:"Membantu pengguna mendapatkan tautan langsung dari 40+ situs web, termasuk Dailymotion.com, YouTube.com, VK.com dan lain-lain."},aboutDescriptionLite:{message:"Membantu pengguna mendapatkan tautan langsung untuk mengunduh dari 40+ situs web, termasuk Dailymotion.com, VK.com dan lain-lain."},aboutSupported:{message:"Sumber daya yang didukung"},homePage:{message:"Laman beranda"},optionsTitle:{message:"Bantuan SaveFrom.net - Preferensi"},optionsHandleLinks:{message:"Tangani tautan"},optionsMediaHostings:{message:"Ke mediahosting"},optionsModules:{message:"Modul"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Sembunyikan tautan"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Langsung tampilkan bitrate"},optionsSovetnikEnabled:{message:"Penasihat"},optionsShowUmmyInfo:{message:"Tampilkan tips untuk Ummy Video Downloader"},optionsGmNativeDownload:{message:"Mode unduh lanjutan"},optionsShowUmmyBtn:{message:"Perlihatkan tombol Ummy"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Selalu tanyakan lokasi penyimpanan berkas"},menuDownloadFromCurrentPage:{message:"Unduh file dari laman saat ini dengan SaveFrom.net"},menuUpdateLinks:{message:"Tekan jika tombol Unduh tidak muncul"},menuDownloadMP3Files:{message:"Unduh semua file audio yang ada di laman saat ini"},menuDownloadPlaylist:{message:"Buat dan unduh daftar putar berisi tautan ke file audio"},menuDownloadPhotos:{message:"Unduh semua gambar yang ada di laman saat ini"},menuReportBug:{message:"Beri tahu kami jika Anda mengalami masalah"},menuShowOptions:{message:"AKTIFKAN/NONAKTIFKAN sumber daya yang didukung dan opsi Bantuan"},menuEnableExtension:{message:""},menuOpenPoll:{message:"Kami bekerja keras untuk jadi lebih baik. Tolong, bantu kami!"},quality:{message:"Kualitas"},qualityNote:{message:"Video terbaik yang tersedia akan diunduh jika tidak ada kualitas yang dipilih."},filelistTitle:{message:"Daftar file yang ditemukan"},filelistInstruction:{message:"['Untuk mengunduh semua file, salin daftar tautan dan tempelkan ke ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'pengelola unduhan'}},'. Jika Anda tidak memiliki pengelola unduhan, kami menyarankan ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},playlistTitle:{message:"Daftar putar"},playlistInstruction:{message:"Untuk memutar daftar putar yang disimpan, sekarang bisa dibuka di pemutar musik."},ummySfTitle:{message:"HD atau MP3"},ummyMenuItem:{message:"[{span:{}},' via Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Pasang Ummy Video Downloader  dan unduh video favorit Anda dalam format HD atau MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Unduh'}}]}},{p:{append:['Setelah pemasangan, unduhan akan otomatis dimulai setiap kali Anda mengeklik ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Periksa setelan browser"},warningPopupDesc:{message:'Opsi "Selalu tanya saya di mana menyimpan file" harus dinonaktifkan.'},readMore:{message:"Lainnya"},noWarning:{message:"Jangan beri tahu"},cancel:{message:"Batal"},continue:{message:"Lanjutkan"},beforeDownloadPopupWarn:{message:"Perhatian! Pengunduhan tidak dapat dibatalkan atau ditunda."},vkInfo:{message:"Info"},vkInfoTitle:{message:"Ukuran file dan bitrate"},vkMp3LinksNotFound:{message:"Tautan atau file MP3 tidak ditemukan"},vkPhotoLinksNotFound:{message:"Foto tidak ditemukan"},vkDownloadPhotoAlbum:{message:"Unduh album"},vkDownloadAllPhotoAlbums:{message:"Unduh semua album"},vkFoundPhotos:{message:"Foto ditemukan"},vkNotAvailablePhotos:{message:"%d foto sementara ini tidak tersedia"},vkFoundLinks:{message:"Tautan ditemukan"},vkFoundOf:{message:"dari"},vkShowAs:{message:"Tampilkan sebagai"},vkListOfLinks:{message:"Daftar tautan"},vkListOfLinksInstruction:{message:"['Untuk mengunduh semua foto, salin daftar tautan dan tempelkan ke ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'pengelola unduhan'}},'. Jika Anda tidak memiliki pengelola unduhan, kami menyarankan ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},'.']"},vkTableOfThumbnails:{message:"Tabel gambar mini"},vkListOfPhotos:{message:"Daftar foto"},vkListOfPhotosInstruction:{message:"Klik foto untuk mengunduhnya."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['Mengunduh: buka ',{a:{href:'{url}',text:'laman video'}},' dan tekan tombol \"Unduh\" di atas pemutar']"},vkFoundFiles:{message:"File ditemukan: %d"},shareIn:{message:"Bagikan di %w"},socialDesc:{message:"Dengan bantuan SaveFrom.net, Anda dapat mengunduh file dari YouTube.com, Facebook.com, VK.com, dan lebih dari 40 lainnya hanya dengan satu klik gratis"},tutorialS1Title:{message:"Berita bagus!"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}},' telah berhasil diinstal dan kini Anda dapat mengunduh video apa pun dari YouTube dengan satu klik']"},tutorialS1Arrow:{message:"['Anda ingin tahu caranya?', {br:{}}, 'Klik di sini']"},tutorialS2Main:{message:'Untuk mengunduh video, pilih suatu format dan klik tombol "Unduh"'},tutorialS3History:{message:"Riwayat"},tutorialS3Main:{message:"['Apakah Anda ingin mengunduh video dari Riwayat?', {br:{}}, 'Cukup klik ', {img: {src: '#arrow'}}, ' pada pratinjau video yang telah ditonton sebelumnya']"},tutorialS4Main:{message:"['Tidak perlu menonton video — cukup klik pada ', {img: {src: '#arrow'}}, ', pilih mutunya, dan unduh. Cukup mudah, ya?']"},tutorialS5Title:{message:"Nikmati SaveFrom.net Helper!"},tutorialS5Main:{message:"['Masih punya pertanyaan? Ingin berbagi ide? Selamat datang di ', {a: {text: 'halaman dukungan', href: '#support'}},' kami atau bergabunglah dengan kami di ', {a: {text: 'Facebook', href: '#fb'}}]"},tutorialTooltipText:{message:"['Cukup klik tombol untuk ',{b: {text: 'mengunduh'}}]"},ummyTooltipConfirm:{message:"['Apakah Anda sudah menginstal',{br:{}},{img:{}},' Ummy Video Downloader sebelumnya?']"},yes:{message:"Ya"},no:{message:"Tidak"},tooltipHide:{message:"Jangan perlihatkan pesan ini lagi"}},ru:{extName:{message:"SaveFrom.net помощник"},extDescription:{message:"Скачивайте с Вконтакте, YouTube, Одноклассники и еще 40 сайтов за 1 клик."},extNameLite:{message:"SaveFrom.net помощник lite"},extDescriptionLite:{message:"Скачивайте с Вконтакте, Одноклассники и еще 40 сайтов за 1 клик."},lang:{message:"ru"},titleDefault:{message:"SaveFrom.net помощник"},titleDesabled:{message:"SaveFrom.net помощник выключен"},menuEnable:{message:"Включить"},menuDisable:{message:"Выключить"},showButton:{message:"Показывать кнопку расширения"},copy:{message:"Копировать"},download:{message:"Скачать"},downloadTitle:{message:"Нажмите на ссылку, удерживая клавишу Alt или Ctrl, чтобы сохранить файл."},noLinksFound:{message:"Не удалось найти ссылки"},partnersLinksOnly:{message:"Ссылки не найдены, воспользуйтесь партнерскими продуктами"},more:{message:"Ещё"},close:{message:"Закрыть"},kbps:{message:"кб/с"},withoutAudio:{message:"без аудио"},size:{message:"размер"},subtitles:{message:"Субтитры"},playlist:{message:"Плейлист"},filelist:{message:"Список файлов"},downloadWholePlaylist:{message:"Скачать весь плейлист"},getFileSizeTitle:{message:"Определить размер файла"},getFileSizeFailTitle:{message:"Не удалось определить размер файла. Попробуйте повторить попытку."},lmButtonTitle:{message:"Получи прямую ссылку"},downloadFromCurrentPage:{message:"Перейти на SaveFrom.net"},updateLinks:{message:"Обновить ссылки"},updateLinksNotification:{message:"Ссылки обновлены"},downloadMP3Files:{message:"Скачать аудио файлы"},downloadPlaylist:{message:"Скачать плейлист"},downloadPhotos:{message:"Скачать фотографии"},installFullVersion:{message:"Установить полную версию"},disable:{message:"Выключить"},showOptions:{message:"Настройки"},reportBug:{message:"Сообщить об ошибке"},openPoll:{message:"Стать лучше"},disableModule:{message:"Отключить на этом сайте"},enableModule:{message:"Включить на этом сайте"},enableDisableModule:{message:"Вкл/Выкл на этом сайте"},showHideButton:{message:"Показ./скр. кнопку расширения"},updateTo:{message:"Обновить до %d"},aboutPage:{message:"О расширении"},aboutTitle:{message:"SaveFrom.net помощник"},aboutVersion:{message:"Версия"},aboutDescription:{message:"Позволяет получать прямые ссылки для скачивания с более чем 40 сайтов, среди которых  VK.com, YouTube.com и другие."},aboutDescriptionLite:{message:"Позволяет получать прямые ссылки для скачивания с более чем 40 сайтов, среди которых  VK.com, Vimeo и другие."},aboutSupported:{message:"Поддерживаемые ресурсы"},homePage:{message:"Домашняя страница"},optionsTitle:{message:"SaveFrom.net помощник - Настройки"},optionsHandleLinks:{message:"Обрабатывать ссылки"},optionsMediaHostings:{message:"На медиахостинги"},optionsModules:{message:"Модули"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Скрывать ссылки"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"Вконтакте"},optionsOdnoklassniki:{message:"Одноклассники"},optionsMailru:{message:"Мой мир"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Показывать битрейт сразу"},optionsSovetnikEnabled:{message:"Советник"},optionsShowUmmyInfo:{message:"Показывать подсказки для Ummy Video Downloader"},optionsGmNativeDownload:{message:"Расширенный режим закачки"},optionsShowUmmyBtn:{message:"Отображать кнопку Ummy"},optionsAviaBarEnabled:{message:"Советник Дешевых Авиабилетов"},optionsSaveAsDialog:{message:"Всегда выдавать запрос на сохранение файлов"},menuDownloadFromCurrentPage:{message:"Скачать файлы с текущей страницы с помощью сервиса SaveFrom.net"},menuUpdateLinks:{message:"Нажмите, если ссылка для скачивания не появляется"},menuDownloadMP3Files:{message:"Скачать все найденные на странице аудиофайлы"},menuDownloadPlaylist:{message:"Формирует и скачивает плейлист с ссылками на аудиофайлы"},menuDownloadPhotos:{message:"Скачать все найденные на странице фотографии"},menuReportBug:{message:"Дайте нам знать, если возникли проблемы"},menuShowOptions:{message:"Вкл./откл. поддерживаемые ресурсы и возможности помощника"},menuEnableExtension:{message:""},menuOpenPoll:{message:'Пожалуйста, оцените качество расширения "SaveFrom.net помощник"'},quality:{message:"Качество"},qualityNote:{message:"Если видео в нужном качестве нет, скачается лучшее из возможного."},filelistTitle:{message:"Список найденных файлов"},filelistInstruction:{message:"['Чтобы скачать все файлы, скопируйте список ссылок и вставьте его в ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер закачек'}},'. Если у вас не установлен менеджер закачек, рекомендуем установить ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},playlistTitle:{message:"Плейлист"},playlistInstruction:{message:"Сохраненный плейлист можно открыть в плеере для  воспроизведения."},ummySfTitle:{message:"HD или MP3"},ummyMenuItem:{message:"[{span:{}},' с помощью Ummy']"},ummyMenuInfo:{message:"[{p:{append:['Скачивайте HD и MP3 с помощью бесплатной программы', {br:{}}, 'Ummy Video Downloader!']}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'Установить'}}]}},{p:{append:['После установки скачивание будет начинаться автоматически', {br:{}}, 'при клике на ',{img:{src:'#'}}]}}]"},warningPopupTitle:{message:"Проверьте настройки браузера"},warningPopupDesc:{message:"Выбор папки при скачивании должен быть отключен."},readMore:{message:"Подробнее..."},noWarning:{message:"Не предупреждать"},cancel:{message:"Отмена"},continue:{message:"Продолжить"},beforeDownloadPopupWarn:{message:"Внимание: отменить или приостановить закачку будет невозможно."},vkInfo:{message:"Параметры"},vkInfoTitle:{message:"Размер файла и битрейт"},vkMp3LinksNotFound:{message:"Не найдены ссылки на MP3 файлы"},vkPhotoLinksNotFound:{message:"Не найдены ссылки на фотографии"},vkDownloadPhotoAlbum:{message:"Скачать альбом"},vkDownloadAllPhotoAlbums:{message:"Скачать все альбомы"},vkFoundPhotos:{message:"Найдено фотографий"},vkNotAvailablePhotos:{message:"%d фото временно не доступно"},vkFoundLinks:{message:"Найдено ссылок"},vkFoundOf:{message:"из"},vkShowAs:{message:"Показать как"},vkListOfLinks:{message:"Список ссылок"},vkListOfLinksInstruction:{message:"['Чтобы скачать все фотографии, скопируйте список ссылок и вставьте его в ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер закачек'}},'. Если у вас не установлен менеджер закачек, рекомендуем установить ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},vkTableOfThumbnails:{message:"Таблицу эскизов"},vkListOfPhotos:{message:"Список фотографий"},vkListOfPhotosInstruction:{message:"Чтобы скачать фотографию, щелкните на ней левой кнопкой мыши."},vkKbps:{message:"кб/с"},vkFileSizeByte:{message:"Б"},vkFileSizeKByte:{message:"кБ"},vkFileSizeMByte:{message:"МБ"},vkFileSizeGByte:{message:"ГБ"},vkFileSizeTByte:{message:"ТБ"},vkDownloadFromYoutube:{message:"['Скачать: откройте ',{a:{href:'{url}',text:'страницу видео ролика'}},' и нажмите кнопку \"Скачать\" над плеером']"},vkFoundFiles:{message:"Найдено файлов: %d"},shareIn:{message:"Поделиться в %w"},socialDesc:{message:"SaveFrom.net помощник помогает бесплатно скачивать с VK.com, YouTube.com, Odnoklassniki.ru и более 40 других сайтов в 1 клик"},tutorialS1Title:{message:"Хорошие новости!"},tutorialS1Main:{message:"['У тебя установлен SaveFrom.net помощник ',{img: {src: '#logo'}},', и теперь ты можешь скачать любое видео с YouTube в один клик']"},tutorialS1Arrow:{message:"['Хочешь узнать как?',{br:{}},'Нажми здесь']"},tutorialS2Main:{message:'Чтобы скачать видео, выбери формат и нажми кнопку "Скачать"'},tutorialS3History:{message:"Просмотренные"},tutorialS3Main:{message:"['Хочешь скачать уже просмотренное видео?',{br:{}},'Нажимай на ', {img: {src: '#arrow'}},' на превью в Просмотренных видео']"},tutorialS4Main:{message:"['Видео не обязательно просматривать —',{br:{}},'нажимай на ', {img: {src: '#arrow'}},', выбирай формат и скачивай. Это удобно!']"},tutorialS5Title:{message:"Приятной работы!"},tutorialS5Main:{message:"['Остались вопросы? Есть предложения? Загляните на ', {a: {text: 'страницу поддержки', href: '#support'}},' или вступайте в наше ', {a: {text: 'ВК-собщество', href: '#vk'}}]"},tutorialTooltipText:{message:"['Чтобы ',{b: {text: 'скачать'}},', просто кликните по кнопке']"},ummyTooltipConfirm:{message:"['Вы уже установили',{br:{}},{img:{}},' Ummy Video Downloader?']"},yes:{message:"Да"},no:{message:"Нет"},tooltipHide:{message:"Больше не показывать это сообщение"},sendToButton:{message:"На телефон"},sendToLinkGoBack:{message:"Вернуться к скачиванию видео"},sendToTextOr:{message:"или"},sendToLoginTitle:{message:"Скачайте видео сразу в ваш телефон!"},sendToLoginText:{message:"Пожалуйста, авторизуйтесь через Google, чтобы отправить выбранное видео"},sendToLoginButton:{message:"Войти"},sendToEmailTitle:{message:"Благодарим за интерес к нашим сервисам!"},sendToEmailText:{message:"Работа над этой функцией все еще кипит. Оставьте, пожалуйста, ваш email и мы вышлем эксклюзивное приглашение, как только запустим сервис!"},sendToEmailButton:{message:"Оставить емейл"},sendToEmailTextComplete:{message:"Спасибо!"},sendToEmailInputError:{message:"Ошибка"},sendToEmailInputPlaceholder:{message:"Введите ваш емейл"},aliwizTopbarTitle:{message:"Покажем <b>надежных продавцов</b> и <b>лучшие цены</b> на Aliexpress!"},aliwizTopbarButton:{message:"Показать"},doNotClosePage:{message:"Не закрывайте страницу, пока файл не будет загружен!"},completed:{message:"Завершено"},somethingWentWrong:{message:"Что-то пошло не так. Попробуйте позже"},downloadInfo:{message:"Информация о скачивании"},prepareDownload:{message:"Подготовка к загрузке"},videoDownloading:{message:"Загрузка видео"},videoDownloaded:{message:"Видео успешно загружено"},minimize:{message:"Свернуть"},minimizeDownloadPanel:{message:"Сверните окно загрузки, мы сообщим вам, когда видео будет загружено"},done:{message:"Готово"},cancelDownload:{message:"Отменить загрузку"},conversionCompleted:{message:"Конвертация завершена"},someFilesNeedConverted:{message:"Некоторые файлы необходимо конвертировать, не закрывайте окно до завершения операции"},errors:{message:"Ошибки"},files:{message:"Файлы"},login:{message:"Войти в Helper Pro"},loginIfPro:{message:"Войдите, если у вас Pro"},activate:{message:"Активировать"},activatePro:{message:"Активировать PRO"},logout:{message:"Выйти"},instruction:{message:"Инструкция"},success:{message:"Успешно"},televzrNotFound:{message:"Televzr не найден"},televzrNotFoundSubMessage:{message:"Попробуйте скачать и открыть Televzr"},authCheck:{message:"Проверка учетных данных"},tzSearchApp:{message:"Поиск Televzr"},tzPreparingToDownload:{message:"Подготовка к загрузке"},tzDownloadStarted:{message:"Добавлено в Загрузки"},msg_no_premium:{message:"Вы не активировали Pro"},msg_not_authorized:{message:"Чтобы использовать pro, вам необходимо войти в систему"},msg_quality_not_found:{message:"Не удалось найти указанное качество"},msg_video_not_found:{message:"Не удалось найти указанное видео"},msg_data_invalid:{message:"Отправлены неверные данные, попробуйте еще раз"},msg_video_exists:{message:"Видео уже скачивается"},loginGmMessage:{message:"Перейти на страницу входа"},loginAlreadyGmMessage:{message:"Вы уже вошли в систему, обновите страницу"},logoutGmMessage:{message:"Вы успешно вышли из системы"},logoutAlreadyGmMessage:{message:"Вы уже вышли из системы, обновите страницу"},howActivateHelperPro:{message:"Как активировать Helper Pro"},video_coming_soon:{message:"Видео скоро начнет скачиваться"},dont_close_page:{message:"Не закрывайте страницу, <br/>это займет несколько минут"},video_coming_ok:{message:"Понятно"},are_you_sure_interrupt_download:{message:"Вы уверены, что хотите прервать загрузку?"}},tr:{extName:{message:"SaveFrom.net asistan"},extDescription:{message:"Sadece bir tıklama ile YouTube, Facebook, VK.com ve 40'dan fazla siteden dosya indirin."},extNameLite:{message:"SaveFrom.net asistan lite"},extDescriptionLite:{message:"Sadece bir tıklama ile Facebook, VK.com ve 40'dan fazla siteden dosya indirin"},lang:{message:"tr"},titleDefault:{message:"SaveFrom.net asistan"},titleDesabled:{message:"SaveFrom.net asistan devre dışı"},menuEnable:{message:"Etkin"},menuDisable:{message:"Devre dışı"},showButton:{message:"Eklenti düğmesini göster"},copy:{message:"Kopyala"},download:{message:"İndir"},downloadTitle:{message:"Dosyayı indirmek için Alt/Option veya Ctrl tuşuna basılı tutarak bağlantıyı tıklayın."},noLinksFound:{message:"Hiçbir bağlantı bulunamadı"},more:{message:"Daha fazla"},close:{message:"Kapat"},kbps:{message:"kbps"},withoutAudio:{message:"without audio"},size:{message:"boyut"},subtitles:{message:"Alt yazı"},playlist:{message:"Çalma listesi"},filelist:{message:"Dosya listesi"},downloadWholePlaylist:{message:"Tüm çalma listesini indir"},getFileSizeTitle:{message:"Dosya boyutunu al"},getFileSizeFailTitle:{message:"Dosya boyutu alınamadı. Lütfen tekrar deneyiniz."},lmButtonTitle:{message:"Doğrudan bağlantı al"},downloadFromCurrentPage:{message:"SaveFrom.net'e git"},updateLinks:{message:"Bağlantıları yenile"},updateLinksNotification:{message:"Bağlantılar güncellendi"},downloadMP3Files:{message:"Ses dosyalarını indir"},downloadPlaylist:{message:"Çalma listesini indir"},downloadPhotos:{message:"Resimleri indir"},installFullVersion:{message:"Tam versiyonu kur"},disable:{message:"Devre dışı"},showOptions:{message:"Ayarlar"},reportBug:{message:"Hata bildir"},openPoll:{message:"Become better"},disableModule:{message:"Bu web sitesinde devre dışı bırak"},enableModule:{message:"Bu web sitesinde etkinleştir"},enableDisableModule:{message:"Bu sitede etkin/devre dışı"},showHideButton:{message:"Eklenti butonunu göster/gizle"},updateTo:{message:"%d sürümüne güncelle"},aboutPage:{message:"Hakkında"},aboutTitle:{message:"SaveFrom.net Asistan"},aboutVersion:{message:"Versiyon"},aboutDescription:{message:"Kullanıcıların, Dailymotion.com, YouTube.com, VK.com ve diğerleri de dahil olmak üzere 40'dan fazla web sitesinden dosya indirmek için doğrudan bağlantılar almalarını sağlar."},aboutDescriptionLite:{message:"Kullanıcıların, Dailymotion.com, VK.com ve diğerleri de dahil olmak üzere 40'dan fazla web sitesinden dosya indirmek için doğrudan bağlantılar almalarını sağlar."},aboutSupported:{message:"Desteklenen kaynaklar"},homePage:{message:"Ana Sayfa"},optionsTitle:{message:"SaveFrom.net Asistan - Tercihler"},optionsHandleLinks:{message:"Linkleri taşı"},optionsMediaHostings:{message:"Medya paylaşıma"},optionsModules:{message:"Modüller"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Bağlantıları gizle"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"VK"},optionsOdnoklassniki:{message:"Odnoklassniki"},optionsMailru:{message:"Moy Mir"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Bit hızını anlık olarak göster"},optionsSovetnikEnabled:{message:"Advisor"},optionsShowUmmyInfo:{message:"UVD için ipuçlarını göster"},optionsGmNativeDownload:{message:"Gelişmiş indirme modu"},optionsShowUmmyBtn:{message:"Ummy düğmesini göster"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Dosyaların nereye kaydedileceğini her seferinde sor"},menuDownloadFromCurrentPage:{message:"SaveFrom.net'i kullanarak geçerli sayfadan dosya indirin"},menuUpdateLinks:{message:"Download düğmesi görünmüyorsa tıklayın"},menuDownloadMP3Files:{message:"Geçerli sayfada bulunan tüm ses dosyalarını indirin"},menuDownloadPlaylist:{message:"Ses dosyalarından oluşan bir çalma listesi oluşturur ve indirir"},menuDownloadPhotos:{message:"Geçerli sayfada bulunan tüm resimleri indirin"},menuReportBug:{message:"Herhangi bir sorun olması durumunda bize bildirin"},menuShowOptions:{message:"Desteklenen kaynakları ve Helper seçeneklerini AÇ/KAPAT"},menuEnableExtension:{message:""},menuOpenPoll:{message:""},quality:{message:"Kalite"},qualityNote:{message:"Herhangi bir seçilebilir kalitenin olmaması durumunda mevcut olan en iyi video indirilecektir."},filelistTitle:{message:"Bulunan dosyalarını listesi"},filelistInstruction:{message:"['Tüm dosyalarını indirmek için bağlantı listesini kopyalayın ve ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'indirme yöneticisine'}},' yapıştırın. Kurulu bir indirme yöneticiniz yoksa ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},' yüklemenizi tavsiye ederiz.']"},playlistTitle:{message:"Çalma Listesi"},playlistInstruction:{message:"Artık kaydedilen çalma listenizi yürütmek için müzik çalarınızda açabilirsiniz."},ummySfTitle:{message:"HD veya MP3"},ummyMenuItem:{message:"['Ummy ile ',{span:{}}]"},ummyMenuInfo:{message:"[{p:{text:'Ummy Video İndirici\\'yi yükleyin ve en sevdiğiniz HD videoları ya da MP3\\'leri hemen indirin.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'İndir'}}]}},{p:{append:['Kurulumdan sonra ',{img:{src:'#'}},' simgesine tıklayarak dosya indirme işlemini otomatik olarak başlatabilirsiniz.']}}]"},warningPopupTitle:{message:"Tarayıcı ayarlarını kontrol edin"},warningPopupDesc:{message:'"Dosyaların nereye kaydedileceğini her seferinde sor" seçeneği kapalı olmalıdır.'},readMore:{message:"Daha fazla"},noWarning:{message:"Bildirme"},cancel:{message:"İptal"},continue:{message:"Devam"},beforeDownloadPopupWarn:{message:"Uyarı! İndirme işlemi iptal edilemez ya da ertelenemez."},vkInfo:{message:"Bilgi"},vkInfoTitle:{message:"Dosya boyutu ve bit hızı"},vkMp3LinksNotFound:{message:"MP3 dosyaları için bağlantılar bulunamıyor"},vkPhotoLinksNotFound:{message:"Fotoğraflar bulunamadı"},vkDownloadPhotoAlbum:{message:"Albümü indir"},vkDownloadAllPhotoAlbums:{message:"Tüm albümleri indir"},vkFoundPhotos:{message:"Bulunan fotoğraflar"},vkNotAvailablePhotos:{message:"%d resim geçici olarak kullanılamıyor"},vkFoundLinks:{message:"Bulunan bağlantılar"},vkFoundOf:{message:"den"},vkShowAs:{message:"Olarak göster"},vkListOfLinks:{message:"Bağlantı listesi"},vkListOfLinksInstruction:{message:"['Tüm fotoğrafları indirmek için bağlantı listesini kopyalayın ve ',{a:{href:'http://en.wikipedia.org/wiki/Download_manager',text:'indirme yöneticisine'}},' yapıştırın. Kurulu bir indirme yöneticiniz yoksa ',{a:{href:'http://www.freedownloadmanager.org/',text:'Free Download Manager'}},' yüklemenizi tavsiye ederiz.']"},vkTableOfThumbnails:{message:"Küçükk resimler tablosu"},vkListOfPhotos:{message:"Fotoğraf listesi"},vkListOfPhotosInstruction:{message:"İndirmek için fotoğrafın üzerine tıklayın."},vkKbps:{message:"kbps"},vkFileSizeByte:{message:"B"},vkFileSizeKByte:{message:"kB"},vkFileSizeMByte:{message:"MB"},vkFileSizeGByte:{message:"GB"},vkFileSizeTByte:{message:"TB"},vkDownloadFromYoutube:{message:"['İndirme: ',{a:{href:'{url}',text:'video sayfasını'}},' açın ve oynatıcı üzerindeki \"İndir\" dümesine basın']"},vkFoundFiles:{message:"Bulunan dosyalar: %d"},shareIn:{message:"%w üzerinden paylaş"},socialDesc:{message:"SaveFrom.net Helper, sadece bir tıklama ile YouTube.com, Facebook.com, VK.com ve 40'dan fazla siteden ücretsiz olarak dosya indirmenizi sağlar."},tutorialS1Title:{message:"Size harika bir haberimiz var!"},tutorialS1Main:{message:"['SaveFrom.net Helper ',{img: {src: '#logo'}}, ' başarıyla kuruldu. Artık tek bir tıklama ile YouTube\\'dan istediğiniz videoyu indirebilirsiniz']"},tutorialS1Arrow:{message:"['Nasıl olduğunu öğrenmek ister misiniz? Buraya tıklayın']"},tutorialS2Main:{message:'Sadece indirmek istediğiniz videonun formatını seçin ve "İndir" butonuna tıklayın'},tutorialS3History:{message:"Geçmiş"},tutorialS3Main:{message:"['Web geçmişinizdeki videoları indirmek ister misiniz?', {br:{}}, ' Sadece daha önce izlediğiniz bir videonun önizlemesi üzerindeki ', {img: {src: '#arrow'}}, ' simgesine tıklayın']"},tutorialS4Main:{message:"['Videoları izlemenize gerek yok — sadece ', {img: {src: '#arrow'}}, ' simgesine tıklayın, kalite değerini seçin ve anında indirin. Oldukça kolay, değil mi?']"},tutorialS5Title:{message:"Hemen SaveFrom.net Helper'in keyfini çıkarmaya başlayın!"},tutorialS5Main:{message:"['Hala kafanıza takılan sorular mı var? Düşüncelerinizi paylaşmak mı istiyorsunuz? ',{a: {text: 'Destek sayfamızı', href: '#support'}},' ziyaret edin veya ',{a: {text: 'Facebook', href: '#fb'}},' topluluğumuza katılın']"},tutorialTooltipText:{message:"[{b: {text: 'İndirmek'}}, ' için sadece butona tıklayın']"},ummyTooltipConfirm:{message:"[{img:{}},' Ummy Video Downloader programını daha önce yüklediniz mi?']"},yes:{message:"Evet"},no:{message:"Hayır"},tooltipHide:{message:"Bu mesajı tekrar gösterme"}},uk:{extName:{message:"SaveFrom.net помічник"},extDescription:{message:"Завантажуйте з «ВКонтакте», YouTube, Facebook і ще 40 сайтів за 1 клік."},extNameLite:{message:"SaveFrom.net помічник lite"},extDescriptionLite:{message:"Завантажуйте з «ВКонтакте», YouTube, Facebook і ще 40 сайтів за 1 клік."},lang:{message:"uk"},titleDefault:{message:"SaveFrom.net помічник"},titleDesabled:{message:"SaveFrom.net помічник вимкнений"},menuEnable:{message:"Увімкнути"},menuDisable:{message:"Вимкнути"},showButton:{message:"Показувати кнопку розширення"},copy:{message:"Копіювати"},download:{message:"Завантажити"},downloadTitle:{message:"Натисніть на посилання, утримуючи клавішу Alt чи Ctrl, щоб зберегти файл."},noLinksFound:{message:"Не вдалося знайти посилання"},more:{message:"Ще"},close:{message:"Закрити"},kbps:{message:"кб/с"},withoutAudio:{message:"без аудіо"},size:{message:"розмір"},subtitles:{message:"Субтитри"},playlist:{message:"Плейліст"},filelist:{message:"Список файлів"},downloadWholePlaylist:{message:"Завантажити весь плейліст"},getFileSizeTitle:{message:"Визначити розмір файлу"},getFileSizeFailTitle:{message:"Не вдалося визначити розмір файлу. Спробуйте ще раз."},lmButtonTitle:{message:"Отримай пряме посилання"},downloadFromCurrentPage:{message:"Перейти на SaveFrom.net"},updateLinks:{message:"Відновити посилання"},updateLinksNotification:{message:"Посилання оновлені"},downloadMP3Files:{message:"Скачати аудіо файли"},downloadPlaylist:{message:"Скачати плейлист"},downloadPhotos:{message:"Скачати фотографії"},installFullVersion:{message:"Встановити повну версію"},disable:{message:"Вимкнути"},showOptions:{message:"Налаштування"},reportBug:{message:"Повідомити про помилку"},openPoll:{message:"Стати краще"},disableModule:{message:"Вимкнути на цьому сайті"},enableModule:{message:"Увімкнути на цьому сайті"},enableDisableModule:{message:"Вкл./вимк. на цьому сайті"},showHideButton:{message:"Показ./скр. кнопку розширення"},updateTo:{message:"Оновити до %d"},aboutPage:{message:"Про розширення"},aboutTitle:{message:"SaveFrom.net помічник"},aboutVersion:{message:"Версія"},aboutDescription:{message:"Дозволяє отримувати прямі посилання для завантаження з понад 40 сайтів, серед яких VK.com, YouTube.com та інші."},aboutDescriptionLite:{message:"Дозволяє отримувати прямі посилання для завантаження з понад 40 сайтів, серед яких VK.com та інші."},aboutSupported:{message:"Ресурси, які підтримуються"},homePage:{message:"Домашня сторінка"},optionsTitle:{message:"SaveFrom.net помічник - Налаштування"},optionsHandleLinks:{message:"Обробляти посилання"},optionsMediaHostings:{message:"На медіахостинги"},optionsModules:{message:"Модулі"},optionsYoutube:{message:"YouTube"},optionsYTHideLinks:{message:"Сховати посилання"},optionsDailymotion:{message:"Dailymotion"},optionsVimeo:{message:"Vimeo"},optionsFacebook:{message:"Facebook"},optionsSoundcloud:{message:"SoundCloud"},optionsVkontakte:{message:"ВКонтакте"},optionsOdnoklassniki:{message:"Одноклассники"},optionsMailru:{message:"Мой мир"},optionsInstagram:{message:"Instagram"},optionsRutube:{message:"Rutube"},optionsTiktok:{message:"Tiktok"},optionsBitrate:{message:"Показувати бітрейт одразу"},optionsSovetnikEnabled:{message:"Порадник"},optionsShowUmmyInfo:{message:"Показувати підказки для Ummy Video Downloader"},optionsGmNativeDownload:{message:"Розширений режим закачування"},optionsShowUmmyBtn:{message:"Відображати кнопку Ummy"},optionsAviaBarEnabled:{message:"Cheap Flights Advisor"},optionsSaveAsDialog:{message:"Завжди запитувати де зберегти файли"},menuDownloadFromCurrentPage:{message:"Завантажити файли з поточної сторінки за допомогою сервісу SaveFrom.net"},menuUpdateLinks:{message:"Натисніть, якщо посилання для скачування не з'являється"},menuDownloadMP3Files:{message:"Завантажити всі знайдені на сторінці аудіофайли"},menuDownloadPlaylist:{message:"Формує та завантажує плейлист з посиланнями на аудіофайли"},menuDownloadPhotos:{message:"Завантажити всі знайдені на сторінці фотографії"},menuReportBug:{message:"Дайте нам знати, якщо виникли проблеми"},menuShowOptions:{message:"Вкл. / Вимк. підтримувані ресурси і можливості помічника"},menuEnableExtension:{message:""},menuOpenPoll:{message:'Будь ласка, оцініть якість розширення "SaveFrom.net помічник"'},quality:{message:"Якість"},qualityNote:{message:"Якщо відео в потрібній якості немає, скачається найкраще з можливого."},filelistTitle:{message:"Список знайдених файлів"},filelistInstruction:{message:"['Щоб завантажити усі файли, скопіюйте список посилань і вставте його у ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер завантажень'}},'. Якщо у вас не встановлений менеджер завантажень, рекомендуємо встановити ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},playlistTitle:{message:"Плейліст"},playlistInstruction:{message:"Збережений плейліст можна відкрити у плеєрі для відтворення."},ummySfTitle:{message:"HD або MP3"},ummyMenuItem:{message:"[{span:{}},' з домомогою Ummy']"},ummyMenuInfo:{message:"[{p:{text:'Встановіть безкоштовний Ummy Video Downloader і завантажуйте свої улюблені відео в HD або в MP3.'}},{p:{class:'center',append:[{a:{class:'green-btn-2 arrow',href:'{url}',target:'_blank',text:'СКАЧАТИ'}}]}},{p:{append:['Після встановлення при кліці на ',{img:{src:'#'}},' закачка буде починатися автоматично.']}}]"},warningPopupTitle:{message:"Перевірте налаштування браузера"},warningPopupDesc:{message:"Вибір папки при скачуванні повинен бути відключений."},readMore:{message:"Детальніше..."},noWarning:{message:"Не попереджати"},cancel:{message:"Скасування"},continue:{message:"Продовжити"},beforeDownloadPopupWarn:{message:"Увага: скасувати або призупинити завантаження буде неможливо."},vkInfo:{message:"Параметри"},vkInfoTitle:{message:"Розмір файлу і бітрейт"},vkMp3LinksNotFound:{message:"Не знайдено посилань на MP3-файли"},vkPhotoLinksNotFound:{message:"Не знайдено посилань на фотографії"},vkDownloadPhotoAlbum:{message:"Завантажити альбом"},vkDownloadAllPhotoAlbums:{message:"Завантажити усі альбоми"},vkFoundPhotos:{message:"Знайдено фотографій"},vkNotAvailablePhotos:{message:"%d фото тимчасово недоступно"},vkFoundLinks:{message:"Знайдено посилань"},vkFoundOf:{message:"з"},vkShowAs:{message:"Показати як"},vkListOfLinks:{message:"Список посилань"},vkListOfLinksInstruction:{message:"['Щоб завантажити усі фотографії, скопіюйте список посилань і вставте його у ',{a:{href:'http://ru.wikipedia.org/wiki/Менеджер_загрузок',text:'менеджер завантажень'}},'. Якщо у вас не встановлений менеджер завантажень, рекомендуємо встановити ',{a:{href:'http://www.westbyte.com/dm/',text:'Download Master'}},'.']"},vkTableOfThumbnails:{message:"Таблицю ескізів"},vkListOfPhotos:{message:"Список фотографій"},vkListOfPhotosInstruction:{message:"Щоб завантажити фотографію, натисніть на неї лівою кнопкою миші."},vkKbps:{message:"кб/с"},vkFileSizeByte:{message:"Б"},vkFileSizeKByte:{message:"кБ"},vkFileSizeMByte:{message:"МБ"},vkFileSizeGByte:{message:"ГБ"},vkFileSizeTByte:{message:"ТБ"},vkDownloadFromYoutube:{message:"['Завантажити: відкрийте ',{a:{href:'{url}',text:'сторінку відео-ролика'}},' і натисніть кнопку \"Завантажити\" над плеєром']"},vkFoundFiles:{message:"Знайдено файлів: %d"},shareIn:{message:"Поділитися в %w"},socialDesc:{message:"SaveFrom.net помічник дає вам можливість безкоштовно завантажувати файли з YouTube.com, Facebook.com, VK.com та більше 40 інших сайтів лише одним кліком"},tutorialS1Title:{message:"Добрі новини!"},tutorialS1Main:{message:"['У тебе встановлений SaveFrom.net помічник ',{img: {src: '#logo'}}, ', і тепер ти можеш завантажити будь-яке відео з YouTube в один клік']"},tutorialS1Arrow:{message:"['Прагнеш довідатися як?', {br:{}}, 'Натисни тут']"},tutorialS2Main:{message:'Щоб завантажити відео, оберіть формат і натисни кнопку "Завантажити"'},tutorialS3History:{message:"Переглянуті"},tutorialS3Main:{message:"['Хочеш скачати вже переглянуте відео?', {br:{}}, 'Натискай на ', {img: {src: '#arrow'}}, ' на превью в переглянутих відео']"},tutorialS4Main:{message:"['Відео не обов\\'язково переглядати —', {br:{}}, 'натискай на ', {img: {src: '#arrow'}}, ', обирай формат і скачуй. Це зручно!']"},tutorialS5Title:{message:"Приємної роботи!"},tutorialS5Main:{message:"['Залишилися питання? Є пропозиції? Загляньте на ',{a: {text: 'сторінку підтримки', href: '#support'}},' або вступайте до нашої ', {a: {text: 'ВК-спільноти', href: '#vk'}}]"},tutorialTooltipText:{message:"['Щоб ',{b: {text: 'скачати'}},', просто клікніть по кнопці']"},ummyTooltipConfirm:{message:"['Ви вже встановили',{br:{}},{img:{}},' Ummy Video Downloader?']"},yes:{message:"Так"},no:{message:"Ні"},tooltipHide:{message:"Більше не показувати це повідомлення"}}},e}return Object(s.a)(n,[{key:"getLocale",value:function(){var e=b(),t=A(e.join(","),Object.keys(this.localeMap)),n=this.localeMap[this.defaultLocale];return t&&(n=Object.assign({},n,this.localeMap[t[0]])),n}}]),n}(e)},k=n(9);function x(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(f.a)(e);if(t){var i=Object(f.a)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Object(d.a)(this,n)}}var I=Object(k.default)("mono:router"),O=function(e){Object(c.a)(l,e);var t=_(l);function l(){var e;return Object(a.a)(this,l),(e=t.call(this)).monoInstances=[],e.contentScripts=[{matches:"^(?:https?|file|ftp)://[^\\/]*\\.vimeo\\.com/.*$|^(?:https?|file|ftp)://vimeo\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,1]},{matches:"^(?:https?|file|ftp)://[^\\/]*/.*$",include_globs:"^http://dailymotion\\.[^\\/]*/.*$|^http://[^\\/]*\\.dailymotion\\.[^\\/]*/.*$|^https://dailymotion\\.[^\\/]*/.*$|^https://[^\\/]*\\.dailymotion\\.[^\\/]*/.*$",run_at:"document_end",all_frames:!0,js:[0,2]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.youtube\\.com/.*$|^(?:https?|file|ftp)://youtube\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,3]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.soundcloud\\.com/.*$|^(?:https?|file|ftp)://soundcloud\\.com/.*$",run_at:"document_end",js:[0,4]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.vk\\.com/.*$|^(?:https?|file|ftp)://vk\\.com/.*$|^(?:https?|file|ftp)://[^\\/]*\\.vkontakte\\.ru/.*$|^(?:https?|file|ftp)://vkontakte\\.ru/.*$",run_at:"document_end",all_frames:!0,js:[0,5]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.ok\\.ru/.*$|^(?:https?|file|ftp)://ok\\.ru/.*$|^(?:https?|file|ftp)://[^\\/]*\\.odnoklassniki\\.ru/.*$|^(?:https?|file|ftp)://odnoklassniki\\.ru/.*$",run_at:"document_end",js:[0,6]},{matches:"^(?:https?|file|ftp)://my\\.mail\\.ru/.*$",run_at:"document_end",js:[0,7]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.facebook\\.com/.*$|^(?:https?|file|ftp)://facebook\\.com/.*$",run_at:"document_end",js:[0,8]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.savefrom\\.net/.*$|^(?:https?|file|ftp)://savefrom\\.net/.*$",run_at:"document_end",js:[0,9]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.instagram\\.com/.*$|^(?:https?|file|ftp)://instagram\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,10]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.rutube\\.ru/.*$|^(?:https?|file|ftp)://rutube\\.ru/.*$",run_at:"document_end",all_frames:!0,js:[0,11]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.tiktok\\.com/.*$|^(?:https?|file|ftp)://tiktok\\.com/.*$",run_at:"document_end",all_frames:!0,js:[0,12]},{matches:"^(?:https?|file|ftp)://music\\.yandex\\.ru/.*$|^(?:https?|file|ftp)://music\\.yandex\\.by/.*$",run_at:"document_end",all_frames:!0,js:[0,13]},{matches:"^(?:https?|file|ftp)://[^\\/]*\\.twitch\\.tv/.*$|^(?:https?|file|ftp)://twitch\\.tv/.*$",run_at:"document_end",all_frames:!0,js:[0,14]},{matches:"^(?:https?|file|ftp)://matchtv\\.ru/.*$",run_at:"document_end",all_frames:!0,js:[0,15]},{matches:"^(?:https?|file|ftp)://sf-helper\\.net/.*$|^(?:https?|file|ftp)://oauth2\\.televzr\\.com/.*$",js:[0,16]},{matches:"^(?:https?|file|ftp)://[^\\/]*/.*$",run_at:"document_end",js:[17]}],e.contentScriptMap={"includes/commons.js":0,"includes/vimeo_com.js":1,"includes/dailymotion_com.js":2,"includes/youtube_com.js":3,"includes/soundcloud_com.js":4,"includes/vkontakte_ru.js":5,"includes/odnoklassniki_ru.js":6,"includes/mail_ru.js":7,"includes/facebook_com.js":8,"includes/savefrom_net.js":9,"includes/instagram_com.js":10,"includes/rutube_ru.js":11,"includes/tiktok_com.js":12,"includes/yandex_music.js":13,"includes/twitch_tv.js":14,"includes/match_tv.js":15,"includes/oauth_helper_net.js":16,"includes/tab.js":17,"includes/aviaBar.js":18,"includes/link_modifier.js":19,"includes/migrateTM.js":20},e.contentScriptIndex=[function(e){!window.savefromContentScriptWebpackJsonp&&(window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[]).push([[0],[function(t,n,r){var i=e;n.a=i},function(e,t){e.exports=n(14)},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(23)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(27)},function(e,t){e.exports=n(9)},function(e,t,n){var r=n(0);t.a=function(e){r.a.sendMessage({action:"sendMonitoring",obj:{category:e.category,event:e.event,subcategory:e.subcategory}})}},function(e,t){e.exports=n(75)},function(e,t){e.exports=n(48)},function(e,t,n){n.d(t,"b",(function(){return a}));var r=n(0),i=[],o=function(e,t,n){return Promise.resolve().then((function(){return!n||n()})).then((function(n){n&&(-1===i.indexOf(e)&&i.push(e),t())}))},a=function(e,t,n){return o(e,(function(){return r.a.callFn("getPreferences").then((function(n){t(e,{preferences:n})}))}),n)};t.a=o},function(e,t,n){var i=n(0),l=n(65),u=n.n(l),c=n(56),d=n.n(c),f=n(9),p=n.n(f),h=n(20),m=n.n(h),g=n(14),b=n.n(g),y=n(46),A=n.n(y),w=n(3),k=n.n(w),x=n(66),C=n.n(x),S=n(2),_=n.n(S),I=n(49),O=n.n(I),E=n(5),L=n.n(E),N=n(17),T=n(6),j=n.n(T),F=n(12),D=n(33),R=n.n(D),P=n(47),V=n.n(P),B=n(4),U=n(27),z=n(15),q=n.n(z),H=n(1),W=n.n(H),Q=n(23),Z=n.n(Q),G=n(75),Y=n.n(G),J=n(59),K=n(30),X=n.n(K),$=n(34),ee=n.n($),te=j()("queueMuxer"),ne=new ee.a("Queue destroyed","DESTROYED"),re=function(){function e(t,n){Object(a.a)(this,e),this.onStartTask=function(e){},this.onStatus=function(e,t){},this.onProgress=function(e,t){},this.onProgressStatus=function(e){},this.onError=function(e){},this.container=t,this.tasks=Object.assign([],n),this._mediaMuxer=null,this.destroyed=!1}return Object(s.a)(e,[{key:"start",value:function(){var e,t=this,n=this.tasks.shift();if(n&&!this.destroyed)return(e=this._runTask(n)).then.apply(e,Object(r.a)(X()((function(){return t.start()}))));if(this.destroyed)for(var i=0;i<=this.tasks.length;i++)this.onError(ne);return te.log("queue finished"),Promise.resolve()}},{key:"destroy",value:function(){this.destroyed=!0,te.log("queue destroy"),this._muxerDestroy(),this.tasks=[]}},{key:"_muxerDestroy",value:function(){this.destroyed||(this._mediaMuxer&&this._mediaMuxer.destroy(),this._mediaMuxer=null)}},{key:"_runTask",value:function(e){var t,n=this;return te.log("run task: ",e),this.onStartTask(e),this._mediaMuxer=new J.a(this.container),this._mediaMuxer.onStatus=this.onStatus,this._mediaMuxer.onProgress=this.onProgress,this._mediaMuxer.onProgressStatus=this.onProgressStatus,(t=this._mediaMuxer.init().then((function(){if(n.destroyed)throw ne;return"hls"===e.format?n._mediaMuxer.hlsToMp3(e.sources,e.filename):n._mediaMuxer.join(e.sources,e.filename)})).then((function(){if(n.destroyed)throw ne;return n._mediaMuxer.download()}))).then.apply(t,Object(r.a)(X()((function(){n._muxerDestroy(),te.log("mediaMuxer destroy: ",e)})))).catch((function(e){te.error("Download error: ",e),n.onError(e)}))}}]),e}(),ie=j()("ConverterPopup"),oe=W.a.memo((function(e){var t=e.files,n=e.onDone,o=W.a.useRef(),a=Z()(Y.a),s=W.a.useState(0),l=Object(v.a)(s,2),u=l[0],c=l[1],d=W.a.useState(0),f=Object(v.a)(d,2),p=f[0],h=f[1],m=W.a.useState(0),g=Object(v.a)(m,2),b=g[0],y=g[1],A=W.a.useState("Prepare"),w=Object(v.a)(A,2),k=w[0],x=w[1],C=W.a.useState(null),S=Object(v.a)(C,2),M=S[0],_=S[1],I=W.a.useState(!1),O=Object(v.a)(I,2),E=O[0],L=O[1];return W.a.useEffect((function(){var e,i=!0,a=new re(o.current,t);return a.onStartTask=function(e){i&&(y(0),x("Prepare"),_(e),c((function(e){return++e})))},a.onProgress=function(e){i&&y(Math.trunc(100*e))},a.onError=function(e){ie.error("item download error: ",e),i&&h((function(e){return++e}))},a.onProgressStatus=function(e){i&&x(e)},(e=a.start()).then.apply(e,Object(r.a)(X()((function(){i&&(L(!0),n&&n())})))).catch((function(e){ie.error("queue error: ",e)})),function(){i=!1,a.destroy()}}),[]),W.a.createElement("div",{ref:o},M&&!E&&W.a.createElement("div",null,W.a.createElement("div",{className:a.information},i.a.i18n.getMessage("someFilesNeedConverted")),W.a.createElement("div",{className:a.filesCount},i.a.i18n.getMessage("files"),": (",u," / ",t.length,")"),W.a.createElement(ae,{styles:a,title:M.filename,status:k,progress:b})),E&&W.a.createElement("div",null,W.a.createElement("div",{className:a.information},i.a.i18n.getMessage("conversionCompleted")),W.a.createElement("div",null,i.a.i18n.getMessage("success"),": ",t.length-p,". ",i.a.i18n.getMessage("errors"),": ",p,".")))})),ae=W.a.memo((function(e){var t=e.styles,n=e.title,r=e.status,i={width:e.progress+"%"};return W.a.createElement("div",{className:t.progress},W.a.createElement("div",{className:t.line,style:i}),W.a.createElement("div",{className:t.text},W.a.createElement("div",{className:t.filename},n),W.a.createElement("div",null,r)))})),se=oe,le=n(76),ue=n.n(le),ce=n(44),de=n.n(ce),fe=n(63),pe=n.n(fe),he=n(77),me=n.n(he),ge=n(28),ve=j()("televzrBridge");function be(){ve.log("Init Tz Bridge Server");var e=me()(),t=document.createElement("iframe");return t.src="televzr://bridgeInit",document.body.appendChild(t),de()(1e3).then((function(){return!1===document.hasFocus()?e.waitFocus:null})).then((function(){e.removeListeners(),t.remove()}))}function ye(e){return i.a.callFn("televzr.infoRequest",[e]).then((function(e){var t=e.app,n=e.user;return ve.log("Televzr Found",t,n),{app:t,user:n}})).catch((function(e){if(ve.error("Fetch televzr info error",e),e.code)throw e;throw new ee.a("Televzr not found","televzr_not_found")}))}var Ae=function(){var e={timeout:1e3,retries:3},t=function(e){var t=e.user;return Object(ge.a)(["userInfo"]).then((function(e){var n=e.userInfo;if(!n)throw new ee.a("Helper not auth","code_not_authorized");if(!t.isAuth||!t.isPremium&&n.isPremium)return i.a.callFn("televzr.appAuth")}))};return ye(2e3).then(t,(function(n){if("televzr_not_found"===n.code)return be().then((function(){return pe()(e,(function(){return ye(2e3)}))})).then(t);throw n}))},we=function(e,t,n){return i.a.callFn("televzr.startDownloadRequest",[e,t,n])},ke=function(){var e={timeout:1e3,retries:2};return ye(1e3).catch((function(t){if("televzr_not_found"===t.code)return be().then((function(){return pe()(e,(function(){return ye(1e3)}))}));throw t}))},xe=n(19),Ce=n.n(xe),Se=function(e,t){return W.a.useCallback((function(n){var r=n.label,o=n.action;i.a.sendMessage({action:"track",t:"event",tid:e,ec:t,el:r||"",ea:o})}),[])},Me=n(39),_e=n.n(Me),Ie=j()("TzDownload"),Oe="STATE_AUTH_CHECK",Ee="STATE_TELEVZR_SEARCH",Le="STATE_DOWNLOAD_PREPARING",Ne="STATE_DOWNLOAD_STARTED",Te="STATE_ERROR",je="https://sf-helper.net/helper-pro",Fe=W.a.memo((function(e){var t=e.unmountLayer,n=e.link,r=e.positionStyle,a=W.a.useRef(),s=Z()(ue.a),l=W.a.useState(null),u=Object(v.a)(l,2),c=u[0],d=u[1],f=W.a.useState(null),p=Object(v.a)(f,2),h=p[0],m=p[1],g=W.a.useState(null),b=Object(v.a)(g,2),y=b[0],A=b[1],w=Se("UA-67738130-20","helper-try-pro"),k=Se("UA-181742122-2","download"),x=W.a.useCallback((function(e){var t=e.code||e.message;m(t),d(Te),"EEXIST"===t&&k({label:"download",action:"video-is-already"}),"televzr_not_found"===t&&k({label:"download",action:"televzr_not_found"}),"quality_not_found"===t&&k({label:"download",action:"quality_not_found"}),"data_invalid"===t&&k({label:"download",action:"data_invalid"})}),[]),C=W.a.useMemo((function(){var e;return(e={},Object(o.a)(e,Oe,i.a.i18n.getMessage("authCheck")),Object(o.a)(e,Ee,i.a.i18n.getMessage("tzSearchApp")),Object(o.a)(e,Le,i.a.i18n.getMessage("tzPreparingToDownload")),Object(o.a)(e,Ne,i.a.i18n.getMessage("tzDownloadStarted")),e)[c]||c}),[c]),S=W.a.useMemo((function(){return{code_not_authorized:i.a.i18n.getMessage("msg_not_authorized"),quality_not_found:i.a.i18n.getMessage("msg_quality_not_found"),video_not_found:i.a.i18n.getMessage("msg_quality_not_found"),televzr_not_found:i.a.i18n.getMessage("televzrNotFound"),data_invalid:i.a.i18n.getMessage("msg_data_invalid"),code_no_premium:i.a.i18n.getMessage("msg_no_premium"),EEXIST:i.a.i18n.getMessage("msg_video_exists")}[h]||h}),[h]),M=W.a.useCallback((function(){return t()}),[]),_=W.a.useCallback((function(){if(w({label:"button",action:"button-click"+n.quality}),i.a.isFirefox)location.href=je;else{var e=document.createElement("a");e.href=je,e.target="_blank",document.body.appendChild(e),e.click(),setTimeout((function(){return e.remove()}))}t()}),[n]),I=W.a.useCallback((function(){return t()}),[]),O=W.a.useCallback((function(){k({label:"download",action:"instructions-for-use"})}),[]);return W.a.useEffect((function(){var e=function(e){a&&!a.current.contains(e.target)&&[Te,Ne].includes(c)&&I()};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[c]),W.a.useEffect((function(){var e;c===Ee?e={label:"download",action:"search-televzr"}:c===Le?e={label:"download",action:"preparing-to-download"}:c===Ne&&(e={label:"download",action:"add-to-download"}),e&&k(e)}),[c]),W.a.useEffect((function(){k({label:"download",action:"click-button"}),i.a.callFn("auth.getLoginUrl").then((function(e){return A(e)})).then((function(){return i.a.callFn("auth.isAuth")})).then((function(e){if(!e)throw new ee.a("User not authorized","code_not_authorized");d(Ee)})).then((function(){return Ae()})).then((function(){return d(Le)})).then((function(){return we(n.url,n.type,n.height)})).then((function(e){Ie.info("added download",e),d(Ne)})).catch((function(e){if("code_not_authorized"===e.code)return _();Ie.error("Download error",e),x(e)}))}),[]),W.a.createElement("div",{ref:a,className:Ce()(s.popupContainer,s.flexColumn,!c&&s.hidden),style:r},W.a.createElement("button",{className:s.close,onClick:I},"✖"),W.a.createElement("div",{className:s.popupBody},W.a.createElement(De,{styles:s,state:c}),W.a.createElement("div",{className:s.textContainer},S||C),"code_not_authorized"===h&&W.a.createElement("a",{href:y,target:"_blank",onClick:M,className:s.btn},i.a.i18n.getMessage("login")),"code_no_premium"===h&&W.a.createElement("a",{href:je,target:"_blank",className:s.btn},i.a.i18n.getMessage("activate")),"televzr_not_found"===h&&W.a.createElement("div",null,W.a.createElement("div",{className:s.subTextContainer},i.a.i18n.getMessage("televzrNotFoundSubMessage")),W.a.createElement("a",{onClick:O,href:"https://sf-helper.net/helper-pro-manual.php",target:"_blank",className:s.btn},i.a.i18n.getMessage("instruction")))))})),De=W.a.memo((function(e){var t=e.styles,n=e.state;return W.a.createElement("div",{className:t.flexColumn},n===Te&&W.a.createElement(_e.a,{className:Ce()(t.icon),name:"loading"}),[Ee,Le,Oe].includes(n)&&W.a.createElement(_e.a,{className:Ce()(t.icon,t.circleLoaderIcon),name:"circleLoading"}),n===Ne&&W.a.createElement(_e.a,{className:Ce()(t.icon),name:"check"}))})),Re=Fe,Pe=n(78),Ve=n.n(Pe),Be=n(36),Ue=n.n(Be),ze=function(e){return Object(N.a)({action:"getFileSize",url:e}).then((function(e){if(e.error)throw new Error("Get file size error");return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e,r=0,o="",a=[i.a.i18n.getMessage("vkFileSizeByte"),i.a.i18n.getMessage("vkFileSizeKByte"),i.a.i18n.getMessage("vkFileSizeMByte"),i.a.i18n.getMessage("vkFileSizeGByte"),i.a.i18n.getMessage("vkFileSizeTByte")];for(n<0&&(o="-",n=Math.abs(n));n>=1e3;)r++,n/=1024;if(t>=0){var s=10*t;n=Math.round(n*s)/s}return r<a.length?o+n+" "+a[r]:e}(e.fileSize)}))},qe=W.a.memo((function(e){var t=e.item,n=W.a.useContext(Ue.a),r=n.SaveFrom_Utils,o=n.styles,a=W.a.useMemo((function(){return!i.a.isGM&&!i.a.isSafari||t.extra?"":i.a.i18n.getMessage("downloadTitle")}),[t]),s=W.a.useMemo((function(){var e=(t.ext||t.format||"").toLowerCase(),n=t.title?[t.title,e].filter(Boolean).join("."):"";return L.a.modify(n)}),[t]),l=W.a.useCallback((function(e){if(t.func)return t.func(e,t);t.forceDownload&&!t.forceConverter&&r.downloadOnClick(e,null,{el:e.target})}),[t]);return W.a.createElement("a",{href:t.href,download:s,className:o.dropdownItem,onClick:l,title:a,target:t.isBlank?"_blank":""},"SRT"===t.quality?W.a.createElement(We,{text:t.itemText}):W.a.createElement(He,{item:t}))})),He=W.a.memo((function(e){var t=e.item,n=W.a.useContext(Ue.a),r=n.styles,o=n.SaveFrom_Utils;return W.a.createElement("div",{className:r.dropdownContainer},W.a.createElement("div",{className:r.dropdownFormat},t.format||"???"),"SRT"!==t.quality&&W.a.createElement("div",{className:r.dropdownQuality},W.a.createElement("div",null,t.quality),W.a.createElement(Qe,{quality:t.quality})),"SRT"===t.quality&&W.a.createElement("div",{className:Ce()(r.dropdownQuality,r.subtitles)},t.itemText),W.a.createElement("div",{className:r.dropdownAction},t.noAudio&&W.a.createElement("img",{src:o.svg.getSrc("noSound","#ff0000"),title:i.a.i18n.getMessage("withoutAudio")}),!t.noSize&&W.a.createElement(Ze,{src:o.svg.getSrc("info"),url:t.href})))})),We=W.a.memo((function(e){var t=e.text,n=W.a.useContext(Ue.a).styles;return W.a.createElement("div",{className:n.dropdownContainer},W.a.createElement("div",null,t))})),Qe=W.a.memo((function(e){var t=e.quality,n=W.a.useContext(Ue.a).styles,r=W.a.useMemo((function(){var e=String(t);return["1080","720","1440"].includes(e)?"HD":{2160:"4K",4320:"8K",hls:"HLS",1440:"QHD"}[e]}),[t]);return W.a.createElement("div",null,r&&W.a.createElement("div",{className:n.qualityBadge},r))})),Ze=W.a.memo((function(e){var t=e.url,n=e.src,r=W.a.useContext(Ue.a).styles,i=W.a.useState(null),o=Object(v.a)(i,2),a=o[0],s=o[1],l=W.a.useCallback((function(e){return e.stopPropagation(),e.preventDefault(),ze(t).then((function(e){return s(e)}))}),[t]);return a?W.a.createElement("div",{className:r.sizeIcon},a):W.a.createElement("img",{src:n,onClick:l})})),Ge=qe,Ye="PRO_SECTION_LOGIN",Je="PRO_SECTION_LANDING",Ke=W.a.memo((function(e){var t=e.hiddenItems,n=e.SaveFrom_Utils,r=Z()(Ve.a),o=W.a.useState(!1),a=Object(v.a)(o,2),s=a[0],l=a[1],u=W.a.useState(null),c=Object(v.a)(u,2),d=c[0],f=c[1],p=W.a.useState(null),h=Object(v.a)(p,2),m=h[0],g=h[1],b=W.a.useState(!1),y=Object(v.a)(b,2),A=y[0],w=y[1],x=W.a.useMemo((function(){return t.length>0}),[t]),C=W.a.useCallback((function(){return l((function(e){return!e}))}),[]),S=Se("UA-181742122-2","download");W.a.useEffect((function(){i.a.callFn("getPreferences").then((function(e){return w(e.proEnabled)}))}),[]),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];W.a.useEffect((function(){var t=i.a.callFn("auth.isAuth"),n=Object(ge.a)(["userInfo"]).then((function(e){return Boolean(e.userInfo&&e.userInfo.isPremium)})),r=i.a.callFn("auth.getLoginUrl");Promise.all([t,n,r]).then((function(t){var n=Object(v.a)(t,3),r=n[0],i=n[1],o=n[2];return e(r,i,o)}))}),t)}((function(e,t,n){if(A){var r=e&&t?"PRO_SECTION_INFO":e?Je:Ye;f(n),g(r)}else g(null)}),[A]);var M=W.a.useCallback((function(){S({label:"download",action:"login-to-helperpro-button"}),k.a.trigger(document,"mousedown")}),[]),_=W.a.useCallback((function(){S({label:"download",action:"activated-pro-button"})}),[]);return W.a.createElement(Ue.a.Provider,{value:{SaveFrom_Utils:n,styles:r}},W.a.createElement("div",null,s&&W.a.createElement(Xe,{list:t}),[Je,Ye,null].includes(m)&&W.a.createElement(et,null),m===Je&&W.a.createElement("a",{className:r.loginBtn,onClick:_,href:"https://sf-helper.net/helper-pro",target:"_blank"},i.a.i18n.getMessage("activatePro")),m===Ye&&W.a.createElement("a",{className:r.loginBtn,onClick:M,href:d,target:"_blank"},i.a.i18n.getMessage("loginIfPro")),"PRO_SECTION_INFO"===m&&W.a.createElement("div",null,W.a.createElement(et,null),W.a.createElement("div",{className:r.proInformation},W.a.createElement("div",{className:r.info},W.a.createElement("img",{src:n.svg.getSrc("rocket","#46aa4b")}),W.a.createElement("div",{className:r.proLabel},"You are PRO")),x&&W.a.createElement($e,{onClick:C}))),null===m&&x&&W.a.createElement($e,{onClick:C}),[Ye,Je].includes(m)&&x&&W.a.createElement("div",null,W.a.createElement(et,null),W.a.createElement($e,{onClick:C}))))})),Xe=W.a.memo((function(e){var t=e.list,n=W.a.useRef(),r=W.a.useContext(Ue.a).styles;return function(e,t){W.a.useEffect((function(){var n=e.current;return n&&n.addEventListener("scroll",t),function(){return n&&n.removeEventListener("scroll",t)}}),[e])}(n,(function(e){var t=r.hiddenShadow,n=e.target;n&&n.scrollTop>0?!n.classList.contains(t)&&n.classList.add(t):n.classList.contains(t)&&n.classList.remove(t)})),W.a.createElement("div",{ref:n,className:Ce()(t.length>8&&r.hiddenViewer)},t.map((function(e){return W.a.createElement(Ge,{item:e})})))})),$e=W.a.memo((function(e){var t=e.onClick,n=W.a.useContext(Ue.a).styles,r=W.a.useState(!1),o=Object(v.a)(r,2),a=o[0],s=o[1],l=W.a.useCallback((function(e){e.preventDefault(),t(e),s((function(e){return!e}))}));return W.a.createElement("a",{href:"#",className:Ce()(n.dropdownItem,n.moreBtn),onClick:l},a?i.a.i18n.getMessage("more")+" "+String.fromCharCode(171):i.a.i18n.getMessage("more")+" "+String.fromCharCode(187))})),et=W.a.memo((function(){var e=W.a.useContext(Ue.a).styles;return W.a.createElement("div",{className:e.separator})})),tt=Ke,nt=n(79),rt=n.n(nt),it=j()("TryProButtonExp"),ot=W.a.memo((function(e){var t=e.unmountLayer,n=Z()(rt.a),r=Se("UA-67738130-20","helper-try-pro"),o=W.a.useCallback((function(){return r({label:"button",action:"button-click"})}),[]),a=W.a.useState(!1),s=Object(v.a)(a,2),l=s[0],u=s[1];return W.a.useEffect((function(){i.a.callFn("getPreferences").then((function(e){if(!e.proEnabled)throw new Error("Helper pro exp disabled");return Object(ge.a)(["userInfo"])})).then((function(e){e.userInfo&&e.userInfo.isPremium?t():u(!0)})).catch((function(e){it.warn("Experiment error",e),t()}))}),[]),W.a.createElement("div",null,l&&W.a.createElement("a",{href:"https://sf-helper.net/helper-pro",className:n.button,onClick:o,target:"_blank"},"TRY PRO"))})),at=n(80),st=n.n(at),lt=W.a.memo((function(e){var t=e.state,n=e.installUrl,r=e.styles,o=Se(ut,"install"),a=W.a.useCallback((function(){return o({action:"televzr",label:"televzr"})}),[]);return W.a.createElement("div",{className:r.televzrPopup},W.a.createElement("div",{className:r.televzrPopupHeader}),t===dt&&W.a.createElement("div",null,W.a.createElement(_e.a,{name:"circleLoading",className:[r.icon,r.circleLoaderIcon].join(" ")}),W.a.createElement("div",null,i.a.i18n.getMessage("tzSearchApp"))),t===pt&&W.a.createElement("div",null,W.a.createElement("div",{className:r.televzrPopupBody},W.a.createElement("a",{className:[r.televzrPopupBtn,r.btnInvert].join(" "),href:n,target:"_blank",onClick:a},W.a.createElement("span",{className:r.btnOuter},W.a.createElement("span",{className:r.btnInner},"Install Now")))),W.a.createElement("div",{className:r.televzrPopupFooter},'Allows to download HD/MP3 by "Televzr" button')),t===ft&&W.a.createElement("div",null,W.a.createElement(_e.a,{name:"check",className:[r.icon].join(" ")}),W.a.createElement("div",null,"Televzr launched")))})),ut="UA-181742122-3",ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.createElement("a");n.href=e,t&&(n.target="_blank"),document.body.appendChild(n),n.click(),setTimeout((function(){return n.remove()}))},dt="pending",ft="installed",pt="tz_not_installed",ht=j()("tz-hd-btn"),mt=W.a.memo((function(e){var t=e.openUrl,n=Se(ut,"download"),r=Z()(st.a),o=W.a.useRef(),a=W.a.useState("idle"),s=Object(v.a)(a,2),l=s[0],u=s[1],c=W.a.useState(!1),f=Object(v.a)(c,2),p=f[0],h=f[1],m=W.a.useState(!1),g=Object(v.a)(m,2),b=g[0],y=g[1],A=W.a.useState(),w=Object(v.a)(A,2),k=w[0],x=w[1],C=W.a.useState((function(){return t.match(/v=(.*?)$/)[1]})),S=Object(v.a)(C,1)[0],M=W.a.useMemo((function(){return"https://desktop.televzr.com/download-in-hd.html?vid=693&video_id=yt-".concat(S,"&utm_source=helper&utm_medium=hd-mp3-button&utm_campaign=televzr&utm_content=televzr_integration")}),[S]);W.a.useEffect((function(){var e=function(e){k&&!k.contains(e.target)&&[ft,pt].includes(l)&&h(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[l,k]),W.a.useEffect((function(){var e,t,n,i;return p&&(e=function(e,t,n){var r=document.body.querySelector(":not(.ytd-browse[hidden]) #savefrom__yt_btn"),i=document.querySelector(".sf-televzr-popup-container");i&&i.remove(),r&&(i=_.a.create("div",{class:"sf-televzr-popup-container",style:{zIndex:99999,position:"absolute",top:"33px",right:"9%",width:"206px"}}),r.appendChild(i));var o=Boolean(document.body.querySelector("#sfYtFrameBtn")),a={position:"absolute"};return!i&&o&&(a.right="0",i=document.body.querySelector(".sf-btn-ctr")),i||(a.position="relative",i=_.a.create("div",{style:{position:"fixed",zIndex:999999,bottom:"30px",right:"0",width:"268px"}}),document.body.appendChild(i)),[q()(Object(B.createElement)(lt,{state:e,installUrl:t,styles:n}),i),i]}(l,M,r),t=Object(v.a)(e,2),n=t[0],i=t[1],x(i)),function(){return n&&n()}}),[l,p,M]),W.a.useEffect((function(){var e=!1,t=d()((function(){return e&&h(!1)}),300),n=function(){e=!0,t()},r=function(){e=!1},i=function(){o.current&&o.current.removeEventListener("mouseleave",n),o.current&&o.current.removeEventListener("mouseenter",r),k&&k.removeEventListener("mouseleave",n),k&&k.removeEventListener("mouseenter",r)};return b&&k?(o.current&&o.current.addEventListener("mouseleave",n),o.current&&o.current.addEventListener("mouseenter",r),k.addEventListener("mouseleave",n),k.addEventListener("mouseenter",r)):i(),function(){return i()}}),[k,b]);var I=W.a.useCallback((function(e){if(e.preventDefault(),e.stopPropagation(),y(!1),n({action:"click_televzr",label:"download"}),"idle"===l)return h(!0),u(dt),ke().then((function(){u(ft),localStorage.setItem("televzr_installed","1"),i.a.callFn("televzr.openUrl",[t.replace("televzr://","https://")]).catch((function(e){ht.error("televzr.openUrl: ",e),ct(t)}))}),(function(e){u(pt),localStorage.removeItem("televzr_installed"),ct(M,!0),ht.error(e)}));[pt,ft].includes(l)&&h(!0)}),[M]),O=W.a.useCallback((function(){localStorage.getItem("televzr_installed")||p||(h(!0),y(!0),u(pt))}),[p]);return W.a.createElement("div",{ref:o},W.a.createElement("a",{href:"#",onClick:I,className:[r.itemAnchor,"sf-menu-item"].join(" "),onMouseEnter:O},W.a.createElement("div",{className:r.itemContainer},W.a.createElement("span",null,"HD/MP3 Televzr"),W.a.createElement(_e.a,{name:"televzr",className:r.logo}))))})),gt=n(7),vt=n(31),bt=n.n(vt),yt=n(50),At=n.n(yt);n(43);var wt=j()("components"),kt=null,xt=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"),Ct={downloadParam:"sfh--download",setStyle:function(e,t){if(e&&t)for(var n in t)e.style[n]=t[n]},getStyle:function(e,t){return e&&window.getComputedStyle&&window.getComputedStyle(e,null).getPropertyValue(t)},addStyleRules:function(e,t,n){var r=n?document.querySelector("#savefrom-styles."+n):document.getElementById("savefrom-styles");if(!r){(r=document.createElement("style")).id="savefrom-styles",n&&r.classList.add(n);var i=document.querySelector("head style");i?i.parentNode.insertBefore(r,i):document.querySelector("head").appendChild(r)}if("object"==typeof t){var o=[];for(var a in t)o.push(a+":"+t[a]);t=o.join(";")}r.textContent+=e+"{"+t+"}"},getPosition:function(e,t){var n=e.getBoundingClientRect();if(t){var r=t.getBoundingClientRect();return{top:Math.round(n.top-r.top),left:Math.round(n.left-r.left),width:n.width,height:n.height}}return{top:Math.round(n.top+window.pageYOffset),left:Math.round(n.left+window.pageXOffset),width:n.width,height:n.height}},getSize:function(e){return{width:e.offsetWidth,height:e.offsetHeight}},getMatchFirst:function(e,t){var n=e.match(t);return n&&n.length>1?n[1]:""},getElementByIds:function(e){for(var t=0;t<e.length;t++){var n=document.getElementById(e[t]);if(n)return n}return null},getParentByClass:function(e,t){if(!e||""==t)return!1;var n;if("object"==typeof t&&t.length>0)for(n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;for(var r=0;r<t.length;r++)if(n.classList.contains(t[r]))return n}else for(n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;if(n.classList.contains(t))return n}return null},getParentByTagName:function(e,t){if(!e||!t)return!1;for(var n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;if(n.tagName===t)return n}return null},getParentById:function(e,t){for(var n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;if(n.id===t)return n}return null},hasChildrenTagName:function(e,t){for(var n,r=0;n=e.childNodes[r];r++)if(1===n.nodeType&&n.tagName===t)return!0;return!1},isParent:function(e,t){return!(!t||-1===[1,9,11].indexOf(t.nodeType))&&t.contains(e)},emptyNode:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},download:function(e,t,n,r){if(!t)return!1;if(!(e=e||this.getFileName(t)))return!1;if(!kt.preferences.downloads)return!1;var o=n||{};return o.url=t,o.filename=e.trim(),r=r||void 0,i.a.sendMessage({action:"downloadFile",options:o},r),!0},downloadList:{showDownloadWarningPopup:function(e,t){var n=Ct.playlist.getInfoPopupTemplate();i.a.sendMessage({action:"getWarningIcon",type:t},(function(e){n.icon.style.backgroundImage="url("+e+")"})),_.a.create(n.textContainer,{append:[_.a.create("p",{text:i.a.i18n.getMessage("warningPopupTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),_.a.create("p",{text:i.a.i18n.getMessage("warningPopupDesc")+" ",style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"},append:_.a.create("a",{href:"ru"===i.a.i18n.getMessage("lang")||"uk"===i.a.i18n.getMessage("lang")?"http://vk.com/page-55689929_49003549":"http://vk.com/page-55689929_49004259",text:i.a.i18n.getMessage("readMore"),target:"_blank",style:{color:"#4A90E2"}})}),_.a.create("p",{style:{marginBottom:"13px"},append:[_.a.create("label",{style:{color:"#868686",cursor:"pointer",fontSize:"14px",lineHeight:"19px"},append:[_.a.create("input",{type:"checkbox",style:{cssFloat:"left",marginLeft:"0px"},on:["click",function(){i.a.sendMessage({action:"hideDownloadWarning",set:this.checked?1:0})}]}),i.a.i18n.getMessage("noWarning")]})]})]});var r=void 0,o=void 0;_.a.create(n.buttonContainer,{append:[r=_.a.create("button",{text:i.a.i18n.getMessage("cancel"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"4px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}}),o=_.a.create("button",{text:i.a.i18n.getMessage("continue"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]}),r.addEventListener("click",(function(e){var t=n.body.parentNode;k.a.trigger(t.lastChild,"click")})),o.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e(),k.a.trigger(r,"click")})),Ct.popupDiv(n.body,"dl_warning_box_popup")},startChromeDownloadList:function(e){var t=e.folderName,n=e.list;return t&&(t+="/"),i.a.sendMessage({action:"downloadList",fileList:n,folder:t})},startOldChromeDownloadList:function(e,t){var n=e.folderName,r=e.list,o=e.type;n&&(n+="/");var a=0,s=!1,l=500,u=document.body;u.focus(),t||(u.onblur=function(){s=!0});!function e(){var t=r[a];if(a++,void 0!==t)if(kt.preferences.downloads?Ct.download(n+t.filename,t.url):k.a.trigger(_.a.create("a",{download:t.filename,href:t.url,on:["click",function(e){Ct.downloadOnClick(e)}]}),"click",{cancelable:!0,altKey:!0}),s)Ct.downloadList.showDownloadWarningPopup((function(){s=!1,u.focus(),e()}),o);else{if(a>5&&l&&(l=void 0,u.onblur=void 0,s=!1,kt.preferences.downloads))return void i.a.sendMessage({action:"downloadList",fileList:r.slice(a),folder:n});setTimeout((function(){e()}),l)}}()},startDownload:function(e){e.list.forEach((function(e){e.filename=L.a.modify(e.filename)})),e.folderName=L.a.modify(e.folderName);var t=kt.preferences.sortDownloads;if(t&&t.isEnabled){var n=e.list[0].filename,r=n.slice(n.lastIndexOf(".")+1),o=t.groups.find((function(e){return e.formats.some((function(e){return-1!==e.indexOf(r)}))}));o&&o.dir&&(e.folderName="".concat(L.a.modify(o.dir),"/").concat(e.folderName))}return i.a.isGM&&"undefined"!=typeof GM_download||i.a.isChrome&&kt.preferences.downloads||i.a.isFirefox?Ct.downloadList.startChromeDownloadList(e):i.a.isSafari?i.a.sendMessage({action:"hideDownloadWarning"},(function(t){Ct.downloadList.startOldChromeDownloadList(e,t)})):void 0},showBeforeDownloadPopup:function(e,t){t&&!t.count&&(t.count=e.length),t.list=e.filter((function(e){return!e.useConverter})),t.listConverter=e.filter((function(e){return e.useConverter}));var n=t.type,r=t.folderName,o=t.onContinue||Ct.downloadList.startDownload,a=t.onShowList||Ct.playlist.popupFilelist,s=t.count||e.length,l=Ct.playlist.getInfoPopupTemplate();i.a.sendMessage({action:"getWarningIcon",color:"#00CCFF",type:n},(function(e){l.icon.style.backgroundImage="url("+e+")"}));var u=[];a&&(u=[" (",_.a.create("a",{href:"#",text:i.a.i18n.getMessage("vkListOfLinks").toLowerCase()}),")"])[1].addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),a(t.list),k.a.trigger(d,"click")})),_.a.create(l.textContainer,{append:[_.a.create("p",{text:r||i.a.i18n.getMessage("playlistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),_.a.create("p",{text:i.a.i18n.getMessage("vkFoundFiles").replace("%d",s),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"},append:u}),_.a.create("p",{text:i.a.i18n.getMessage("beforeDownloadPopupWarn"),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}})]});var c,d=void 0,f=void 0;_.a.create(l.buttonContainer,{append:[d=_.a.create("button",{text:i.a.i18n.getMessage("cancel"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"4px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}}),f=_.a.create("button",{text:i.a.i18n.getMessage("continue"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]}),d.addEventListener("click",(function(e){var t=l.body.parentNode;k.a.trigger(t.lastChild,"click")})),f.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),o(t),t.listConverter.length?(c=q()(Object(B.createElement)(se,{files:t.listConverter,onDone:function(){d.textContent=i.a.i18n.getMessage("close"),f.style.display="none",l.buttonContainer.style.display="block"}}),l.textContainer),l.buttonContainer.style.display="none"):k.a.trigger(d,"click")})),Ct.popupDiv(l.body,"dl_confirm_box_popup",void 0,void 0,(function(){c&&c()}),{docCloseEnable:!t.listConverter.length})}},downloadLink:function(e,t){if(!e.href)return!1;var n=e.getAttribute("download");return this.download(n,e.href,null,t)},safariDlLink:function(e){if(!(e.button||e.ctrlKey||e.altKey||e.shitfKey)){var t=null;try{if("function"!=typeof MouseEvent)throw"legacy";t=new MouseEvent("click",{bubbles:!0,cancelable:e.cancelable,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY,ctrlKey:!1,altKey:!0,shiftKey:!1,metaKey:e.metaKey,button:e.button,relatedTarget:e.relatedTarget})}catch(n){t=function(e){var t=document.createEvent("MouseEvents");return t.initMouseEvent("click",!0,e.cancelable,window,0,e.screenX,e.screenY,e.clientX,e.clientY,!1,!0,!1,e.metaKey,e.button,e.relatedTarget),t}(e)}e.preventDefault(),e.stopPropagation(),this.dispatchEvent(t)}},downloadOnClick:function(e,t,n){var r=Ct,o=(n=n||{}).el||e.target;if("A"!==o.tagName&&(o=b()(o,"A")),o){var a=i.a.isGM&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"),s=!(!i.a.isGM||"undefined"==typeof GM_info||"Tampermonkey"!==GM_info.scriptHandler||kt.preferences.downloads);if(i.a.isSafari||a||s){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(F.showTooltip)(o,{defaultWidth:400,defaultHeight:60},n);Object(F.hideTooltip)(o)}if(i.a.isSafari)return r.safariDlLink.call(o,e);kt.preferences.downloads&&((i.a.isFirefox||i.a.isGM)&&/^blob:|^data:/.test(o.href)||2!==e.button&&(e.preventDefault(),!n.withoutPropagation&&e.stopPropagation(),Object(gt.a)({category:"download",subcategory:bt()(),event:At()(n)}),r.downloadLink(o,t)))}},getQueryString:function(e,t,n){if(!e||"object"!=typeof e)return"";void 0===t&&(t=""),void 0===n&&(n="");var r="";for(var i in e)r.length&&(r+="&"),e[i]instanceof Object?(t||(t=""),n||(n=""),r+=Ct.getQueryString(e[i],t+i+"[","]"+n)):r+=t+escape(i)+n+"="+escape(e[i]);return r},decodeUnicodeEscapeSequence:function(e){return e.replace(/\\u([0-9a-f]{4})/g,(function(e,t){if(t=parseInt(t,16),!isNaN(t))return String.fromCharCode(t)}))},getFileExtension:function(e,t){var n=this.getMatchFirst(e,/\.([a-z0-9]{3,4})(\?|$)/i);return n?n.toLowerCase():t||""},getFileName:function(e){var t=this.getMatchFirst(e,/\/([^\?#\/]+\.[a-z\d]{2,6})(?:\?|#|$)/i);return t?L.a.modify(t):t},getTopLevelDomain:function(e){if(!e)return"";if(!e.match(/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}/))return e;var t=e.split("."),n=t.length;return 2==n?e:t[n-2]+"."+t[n-1]},dateToObj:function(e,t){var n=null==e?new Date:new Date(e);void 0===t&&(t=!0);var r={year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:n.getHours(),min:n.getMinutes(),sec:n.getSeconds()};if(t)for(var i in r)1==r[i].toString().length&&(r[i]="0"+r[i]);return r},utf8Encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},sizeHuman:function(e,t){null!=t&&null!=t||(t=2);var n=e,r=0,o="",a=[i.a.i18n.getMessage("vkFileSizeByte"),i.a.i18n.getMessage("vkFileSizeKByte"),i.a.i18n.getMessage("vkFileSizeMByte"),i.a.i18n.getMessage("vkFileSizeGByte"),i.a.i18n.getMessage("vkFileSizeTByte")];for(n<0&&(o="-",n=Math.abs(n));n>=1e3;)r++,n/=1024;if(t>=0){var s=10*t;n=Math.round(n*s)/s}return r<a.length?o+n+" "+a[r]:e},secondsToDuration:function(e){if(!e||isNaN(e))return"";function t(e){return e<10?"0"+e:e.toString()}var n=Math.floor(e/3600);e%=3600;var r=Math.floor(e/60);return e%=60,n>0?n+":"+t(r)+":"+t(e):r+":"+t(e)},svg:{icon:{download:"M 4,0 4,8 0,8 8,16 16,8 12,8 12,0 4,0 z",info:"M 8,1.55 C 11.6,1.55 14.4,4.44 14.4,8 14.4,11.6 11.6,14.4 8,14.4 4.44,14.4 1.55,11.6 1.55,8 1.55,4.44 4.44,1.55 8,1.55 M 8,0 C 3.58,0 0,3.58 0,8 0,12.4 3.58,16 8,16 12.4,16 16,12.4 16,8 16,3.58 12.4,0 8,0 L 8,0 z M 9.16,12.3 H 6.92 V 7.01 H 9.16 V 12.3 z M 8.04,5.91 C 7.36,5.91 6.81,5.36 6.81,4.68 6.81,4 7.36,3.45 8.04,3.45 8.72,3.45 9.27,4 9.27,4.68 9.27,5.36 8.72,5.91 8.04,5.91 z",noSound:"M 11.4,5.05 13,6.65 14.6,5.05 16,6.35 14.4,7.95 16,9.55 14.6,11 13,9.35 11.4,11 10,9.55 11.6,7.95 10,6.35 z M 8,1.75 8,14.3 4,10.5 l -4,0 0,-4.75 4,0 z",rocket:"M 11.371094 7.625 C 13.507812 5.074219 14.054688 1.523438 13.996094 0.445312 C 13.996094 0.328125 13.9375 0.226562 13.863281 0.136719 C 13.789062 0.0625 13.6875 0.00390625 13.554688 0.00390625 C 12.476562 -0.0546875 8.925781 0.476562 6.390625 2.613281 L 5.800781 2.390625 C 4.769531 2.007812 3.605469 2.320312 2.894531 3.160156 L 1.261719 5.089844 C 1.023438 5.355469 1.140625 5.78125 1.480469 5.898438 L 3.234375 6.550781 C 2.851562 7.199219 2.585938 7.742188 2.410156 8.125 C 2.261719 8.4375 2.335938 8.804688 2.585938 9.054688 L 4.945312 11.429688 C 5.179688 11.664062 5.550781 11.738281 5.875 11.589844 C 6.257812 11.414062 6.800781 11.148438 7.449219 10.765625 L 8.085938 12.519531 C 8.203125 12.859375 8.628906 12.960938 8.894531 12.738281 L 10.8125 11.105469 C 11.652344 10.394531 11.960938 9.230469 11.578125 8.199219 Z M 10.265625 5.78125 C 9.707031 6.34375 8.792969 6.34375 8.21875 5.78125 C 7.65625 5.222656 7.65625 4.308594 8.21875 3.734375 C 8.777344 3.171875 9.691406 3.171875 10.265625 3.734375 C 10.828125 4.308594 10.828125 5.222656 10.265625 5.78125 Z M 10.265625 5.78125 M 3.929688 12.03125 L 2.867188 13.078125 C 2.660156 13.285156 2.660156 13.640625 2.867188 13.84375 C 3.074219 14.050781 3.425781 14.050781 3.632812 13.84375 L 4.695312 12.785156 C 4.902344 12.578125 4.902344 12.222656 4.695312 12.015625 C 4.472656 11.8125 4.136719 11.8125 3.929688 12.03125 Z M 3.929688 12.03125 M 3.324219 10.675781 C 3.117188 10.46875 2.765625 10.46875 2.558594 10.675781 L 0.878906 12.371094 C 0.671875 12.578125 0.671875 12.929688 0.878906 13.136719 C 1.082031 13.34375 1.4375 13.34375 1.644531 13.136719 L 3.324219 11.429688 C 3.546875 11.222656 3.546875 10.882812 3.324219 10.675781 Z M 3.324219 10.675781 M 1.984375 10.085938 C 2.1875 9.878906 2.1875 9.527344 1.984375 9.320312 C 1.777344 9.113281 1.421875 9.113281 1.214844 9.320312 L 0.15625 10.382812 C -0.0507812 10.585938 -0.0507812 10.941406 0.15625 11.148438 C 0.359375 11.355469 0.714844 11.355469 0.921875 11.148438 Z M 1.984375 10.085938"},cache:{},getSrc:function(e,t){return this.icon[e]?(this.cache[e]||(this.cache[e]={}),this.cache[e][t]||(this.cache[e][t]=btoa('<?xml version="1.0" encoding="UTF-8"?><svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="16" height="16" viewBox="0 0 16 16" id="svg2" xml:space="preserve"><path d="'+this.icon[e]+'" fill="'+t+'" /></svg>')),this.cache[e][t]?"data:image/svg+xml;base64,"+this.cache[e][t]:""):""},getSvg:function(e,t,n,r){var i=document.createElementNS("http://www.w3.org/2000/svg","svg"),o=i.namespaceURI;i.setAttribute("width",n||"16"),i.setAttribute("height",r||n||"16"),i.setAttribute("viewBox","0 0 16 16");var a=document.createElementNS(o,"path");return i.appendChild(a),a.setAttribute("d",this.icon[e]),t&&a.setAttribute("fill",t),i}},appendDownloadInfo:function(e,t,n,r){t||(t="#a0a0a0");var o=document.createElement("span");o.appendChild(document.createTextNode(i.a.i18n.getMessage("downloadTitle"))),this.setStyle(o,{display:"inline-block",position:"relative",border:"1px solid "+t,borderRadius:"5px",fontSize:"13px",lineHeight:"17px",padding:"2px 19px 2px 5px",marginTop:"5px",opacity:.9}),n&&this.setStyle(o,n);var a=document.createElement("span");a.textContent=String.fromCharCode(215),this.setStyle(a,{color:t,width:"14px",height:"14px",fontSize:"14px",fontWeight:"bold",lineHeight:"14px",position:"absolute",top:0,right:0,overflow:"hidden",cursor:"pointer"}),r&&this.setStyle(a,r),a.addEventListener("click",(function(){o.parentNode.removeChild(o),i.a.sendMessage({action:"updateOption",key:"moduleShowDownloadInfo",value:0})}),!1),o.appendChild(a),e.appendChild(o)},getFileSizeIcon:function(e,t,n,r){var o=this;r=r||{},e=e||{},t=t||{},n=n||{};var a=function(e){return _.a.create("div",{style:t,append:[_.a.create(Ct.svg.getSvg("info",e),{style:n})]})},s=_.a.create("div",{style:e,append:[_.a.create(a("#333333"),{title:i.a.i18n.getMessage("getFileSizeTitle"),on:["click",function e(t){t.stopPropagation(),t.preventDefault(),s.textContent="...";var n=r.url;n||(n=r.link&&r.link.href),Object(N.a)({action:"getFileSize",url:n}).then((function(e){if(e.error||!e.fileSize)throw new Error(JSON.stringify(e));var t=e.fileType||"",n=o.sizeHuman(e.fileSize,2),a="";if(r.link&&/^audio\//i.test(t)){var l=parseInt(r.link.dataset.savefromHelperDuration);l>0&&(a+=Math.floor(e.fileSize/l/125),a+=" "+i.a.i18n.getMessage("kbps"))}var u="";u+=a?n+" ~ "+a:n,r.brackets&&(u="("+u+")"),s.textContent=u,s.title=t})).catch((function(t){var n;wt.error(t),"ZERO"===t.message?(n=a("#ffac00")).title=i.a.i18n.getMessage("getFileSizeTitle"):(n=a("#ff0000")).title=i.a.i18n.getMessage("getFileSizeFailTitle"),n.addEventListener("click",e),s.textContent="",s.appendChild(n)}))}]})]});return{node:s}},appendFileSizeIcon:function(e,t,n,r,o,a){t=t||{},n=n||{};var s="#333333";"0"===r?s="#ffac00":r?s="#ff0000":t.color&&(s=t.color);var l={width:"14px",height:"14px",marginLeft:"3px",verticalAlign:"middle",position:"relative",top:"-1px",cursor:"pointer"};Object.assign(l,t);var u={fontSize:"75%",fontWeight:"normal",marginLeft:"3px",whiteSpace:"nowrap"};Object.assign(u,n);var c=_.a.create("img",{src:Ct.svg.getSrc("info",s),title:r?i.a.i18n.getMessage("getFileSizeFailTitle"):i.a.i18n.getMessage("getFileSizeTitle"),style:l}),d=this;return a?a.appendChild(c):e.nextSibling?e.parentNode.insertBefore(c,e.nextSibling):e.parentNode.appendChild(c),c.addEventListener("click",(function(r){r.preventDefault(),r.stopPropagation();var a=_.a.create("span",{text:"...",style:u});c.parentNode.replaceChild(a,c);var s=function(r){if(r.fileSize>0){var s=r.fileType||"",l=d.sizeHuman(r.fileSize,2),u="";if(/^audio\//i.test(s)){var c=e.getAttribute("data-savefrom-helper-duration");(c=c&&parseInt(c))>0&&(u=Math.floor(r.fileSize/c/125),u+=" "+i.a.i18n.getMessage("kbps"))}var f="";f=u?l+" ~ "+u:l,o||(f="("+f+")"),a.textContent=f,a.title=s}else if(r.error){var p=d.appendFileSizeIcon(e,t,n,!0,o,document.createDocumentFragment());a.parentNode.replaceChild(p,a)}else{var h=d.appendFileSizeIcon(e,t,n,"0",o,document.createDocumentFragment());a.parentNode.replaceChild(h,a)}};return"ok.ru"===location.host?fetch(e.href,{method:"HEAD"}).then((function(e){return{fileSize:e.headers.get("content-length"),contentType:e.headers.get("content-type"),status:e.status,error:200!==e.status}})).then(s).catch((function(){return s({fileSize:0,error:!0})})):i.a.sendMessage({action:"getFileSize",url:e.href},s)}),!1),c},appendNoSoundIcon:function(e,t){var n="#ff0000";(t=t||{}).color&&(n=t.color);var r={width:"14px",height:"14px",marginLeft:"3px",verticalAlign:"middle",position:"relative",top:"-1px",cursor:"pointer"};Object.assign(r,t);var o=_.a.create("img",{src:Ct.svg.getSrc("noSound",n),title:i.a.i18n.getMessage("withoutAudio"),style:r});e.nextSibling?e.parentNode.insertBefore(o,e.nextSibling):e.parentNode?e.parentNode.appendChild(o):e.appendChild(o)},video:{dataAttr:"data-savefrom-video-visible",yt:{inited:!1,show3D:!1,showMP4NoAudio:!1,showFormat:{FLV:!0,MP4:!0,WebM:!1,"3GP":!1,"Audio AAC":!1,"Audio Vorbis":!1,"Audio Opus":!1},format:{FLV:{5:{quality:"240"},6:{quality:"270"},34:{quality:"360"},35:{quality:"480"}},MP4:{18:{quality:"360"},22:{quality:"720"},37:{quality:"1080"},38:{quality:"8K"},59:{quality:"480"},78:{quality:"480"},82:{quality:"360","3d":!0},83:{quality:"240","3d":!0},84:{quality:"720","3d":!0},85:{quality:"1080","3d":!0},160:{quality:"144",noAudio:!0},133:{quality:"240",noAudio:!0},134:{quality:"360",noAudio:!0},135:{quality:"480",noAudio:!0},136:{quality:"720",noAudio:!0},137:{quality:"1080",noAudio:!0},212:{quality:"480",noAudio:!0},213:{quality:"480",noAudio:!0},214:{quality:"720",noAudio:!0},215:{quality:"720",noAudio:!0},264:{quality:"1440",noAudio:!0},138:{quality:"8K",noAudio:!0},298:{quality:"720",noAudio:!0,sFps:!0},299:{quality:"1080",noAudio:!0,sFps:!0},266:{quality:"4K",noAudio:!0}},WebM:{43:{quality:"360"},44:{quality:"480"},45:{quality:"720"},46:{quality:"1080"},167:{quality:"360",noAudio:!0},168:{quality:"480",noAudio:!0},169:{quality:"720",noAudio:!0},170:{quality:"1080",noAudio:!0},218:{quality:"480",noAudio:!0},219:{quality:"480",noAudio:!0},242:{quality:"240",noAudio:!0},243:{quality:"360",noAudio:!0},244:{quality:"480",noAudio:!0},245:{quality:"480",noAudio:!0},246:{quality:"480",noAudio:!0},247:{quality:"720",noAudio:!0},248:{quality:"1080",noAudio:!0},271:{quality:"1440",noAudio:!0},272:{quality:"8K",noAudio:!0},278:{quality:"144",noAudio:!0},100:{quality:"360","3d":!0},101:{quality:"480","3d":!0},102:{quality:"720","3d":!0},302:{quality:"720",noAudio:!0,sFps:!0},303:{quality:"1080",noAudio:!0,sFps:!0},308:{quality:"1440",noAudio:!0,sFps:!0},313:{quality:"4K",noAudio:!0},315:{quality:"4K",noAudio:!0,sFps:!0},330:{quality:"144",noAudio:!0,sFps:!0},331:{quality:"240",noAudio:!0,sFps:!0},332:{quality:"360",noAudio:!0,sFps:!0},333:{quality:"480",noAudio:!0,sFps:!0},334:{quality:"720",noAudio:!0,sFps:!0},335:{quality:"1080",noAudio:!0,sFps:!0},336:{quality:"1440",noAudio:!0,sFps:!0},337:{quality:"2160",noAudio:!0,sFps:!0},398:{quality:"720",noAudio:!0},397:{quality:"480",noAudio:!0},396:{quality:"360",noAudio:!0},395:{quality:"240",noAudio:!0},394:{quality:"144",noAudio:!0}},"3GP":{17:{quality:"144"},36:{quality:"240"}},"Audio AAC":{139:{quality:"48",ext:"m4a",noVideo:!0},140:{quality:"128",ext:"m4a",noVideo:!0},141:{quality:"256",ext:"m4a",noVideo:!0},256:{quality:"192",ext:"m4a",noVideo:!0},258:{quality:"384",ext:"m4a",noVideo:!0},325:{quality:"384",ext:"m4a",noVideo:!0},328:{quality:"384",ext:"m4a",noVideo:!0},380:{quality:"384",ext:"m4a",noVideo:!0}},"Audio Vorbis":{171:{quality:"128",ext:"webm",noVideo:!0},172:{quality:"192",ext:"webm",noVideo:!0}},"Audio Opus":{249:{quality:"48",ext:"opus",noVideo:!0},250:{quality:"128",ext:"opus",noVideo:!0},251:{quality:"256",ext:"opus",noVideo:!0}}},init:function(){if(!Ct.video.yt.inited){["Audio AAC","Audio Vorbis","Audio Opus"].forEach((function(e){var t=Ct.video.yt.format[e];for(var n in t)t[n].quality+=" "+i.a.i18n.getMessage("kbps")})),Ct.video.yt.show3D="0"==kt.preferences.ytHide3D,Ct.video.yt.showMP4NoAudio="0"==kt.preferences.ytHideMP4NoAudio;var e=!1,t=!1;for(var n in Ct.video.yt.showFormat){var r="ytHide"+n.replace(" ","_");"ytHideAudio_AAC"===r&&(r="ytHideAudio_MP4");var o="0"==kt.preferences[r];"Audio AAC"===n&&(t=o),Ct.video.yt.showFormat[n]=o,o&&(e=!0)}Ct.video.yt.showFormat["Audio Vorbis"]=t,Ct.video.yt.showFormat["Audio Opus"]=t,e||(Ct.video.yt.showFormat.FLV=!0),Ct.video.yt.inited=!0}},show:function(e,t,n,r,o){r=r||{};var a=document.createElement("div");Ct.setStyle(a,{display:"inline-block",margin:"0 auto"}),t.appendChild(a);var s=document.createElement("div");Ct.setStyle(s,{display:"inline-block",padding:"0 90px 0 0",position:"relative"}),a.appendChild(s);var l=document.createElement("table");Ct.setStyle(l,{emptyCells:"show",borderCollapse:"collapse",margin:"0 auto",padding:"0",width:"auto"}),s.appendChild(l);var u=!1;for(var c in Ct.video.yt.format)Ct.video.yt.append(e,c,Ct.video.yt.format[c],l,r,o)&&(u=!0);for(var c in e)if("ummy"!==c&&"ummyAudio"!==c&&"meta"!==c){Ct.video.yt.append(e,"",null,l,r,o)&&(u=!0);break}if(l.firstChild){if(u){var d=document.createElement("span");d.textContent=i.a.i18n.getMessage("more")+" "+String.fromCharCode(187),Ct.setStyle(d,{color:"#555",border:"1px solid #a0a0a0",borderRadius:"3px",display:"block",fontFamily:"Arial",fontSize:"15px",lineHeight:"17px",padding:"1px 5px",position:"absolute",bottom:"3px",right:"0",cursor:"pointer"}),r.btn&&"object"==typeof r.btn&&Ct.setStyle(d,r.btn),s.appendChild(d),d.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();for(var n=t.querySelectorAll("*["+Ct.video.dataAttr+"]"),r=0;r<n.length;r++){var o=n[r].getAttribute(Ct.video.dataAttr),a="none",s=String.fromCharCode(187);"0"==o?(o="1",a="",s=String.fromCharCode(171)):o="0",n[r].style.display=a,n[r].setAttribute(Ct.video.dataAttr,o),this.textContent=i.a.i18n.getMessage("more")+" "+s}return!1}),!1),1===n&&(l.querySelector("td a"),a.appendChild(document.createElement("br")),Ct.appendDownloadInfo(a,"#a0a0a0",null,{width:"16px",height:"16px",fontSize:"16px",lineHeight:"16px"}))}}else t.textContent=i.a.i18n.getMessage("noLinksFound")},append:function(e,t,n,r,o,a){var s=!1,l={whiteSpace:"nowrap"},u={fontSize:"75%",fontWeight:"normal",marginLeft:"3px",whiteSpace:"nowrap"},c=document.createElement("tr"),d=document.createElement("td");d.appendChild(document.createTextNode(t||"???")),t&&Ct.video.yt.showFormat[t]||(c.setAttribute(Ct.video.dataAttr,"0"),c.style.display="none",s=!0),Ct.setStyle(d,{border:"none",padding:"3px 15px 3px 0",textAlign:"left",verticalAlign:"middle"}),c.appendChild(d),d=document.createElement("td"),Ct.setStyle(d,{border:"none",padding:"3px 0",textAlign:"left",verticalAlign:"middle",lineHeight:"17px"}),c.appendChild(d);var f=e.meta||{},p=!1;if(n){for(var h in n)if(e[h]){var m=n[h].quality;p&&(d.lastChild.style.marginRight="15px",d.appendChild(document.createTextNode(" ")));var g=document.createElement("span");g.style.whiteSpace="nowrap";var v=document.createElement("a");if(v.href=e[h],v.title=i.a.i18n.getMessage("downloadTitle"),f[h]&&(f[h].quality&&(m=f[h].quality),n[h].sFps&&(m+=" "+(f[h].fps||60))),n[h]["3d"]?v.textContent="3D":v.textContent=m,a){var b=n[h].ext;b||(b=t.toLowerCase()),v.setAttribute("download",L.a.modify(a+"."+b)),v.addEventListener("click",(function(e){Ct.downloadOnClick(e)}),!1)}if(Ct.setStyle(v,l),o.link&&"object"==typeof o.link&&Ct.setStyle(v,o.link),g.appendChild(v),Ct.appendFileSizeIcon(v,o.fsIcon,o.fsText),n[h]["3d"]){Ct.video.yt.show3D||(s=!0,g.setAttribute(Ct.video.dataAttr,"0"),g.style.display="none");var y=document.createElement("span");y.textContent=m,Ct.setStyle(y,u),o.text&&"object"==typeof o.text&&Ct.setStyle(y,o.text),v.appendChild(y)}n[h].noAudio&&(Ct.video.yt.showMP4NoAudio||(s=!0,g.setAttribute(Ct.video.dataAttr,"0"),g.style.display="none"),Ct.appendNoSoundIcon(v,!!o&&o.noSoundIcon)),d.appendChild(g),p=!0,delete e[h]}}else for(var h in e){p&&(d.lastChild.style.marginRight="15px",d.appendChild(document.createTextNode(" ")));var A=document.createElement("span");A.style.whiteSpace="nowrap";var w=document.createElement("a");w.href=e[h],w.title=i.a.i18n.getMessage("downloadTitle"),w.textContent=h,Ct.setStyle(w,l),o.link&&"object"==typeof o.link&&Ct.setStyle(w,o.link),A.appendChild(w),Ct.appendFileSizeIcon(w,o.fsIcon,o.fsText),d.appendChild(A),p=!0,delete e[h]}if(!1!==p)return r.appendChild(c),s}}},playlist:{btnStyle:{display:"block",fontWeight:"bold",border:"none",textDecoration:"underline"},getFilelistHtml:function(e){if(e&&0!=e.length){for(var t,n=0,r="",o=0;o<e.length;o++)e[o].url&&(r+=e[o].url+"\r\n",n++);if(r)return n<5?n=5:n>14&&(n=14),_.a.create(document.createDocumentFragment(),{append:[_.a.create("p",{text:i.a.i18n.getMessage("filelistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"5px"}}),_.a.create("p",{style:{marginBottom:"11px"},append:O()(i.a.i18n.getMessage("filelistInstruction"))}),_.a.create("p",{text:i.a.i18n.getMessage("vkFoundFiles").replace("%d",e.length),style:{color:"#000",marginBottom:"11px"},append:_.a.create("a",{text:i.a.i18n.getMessage("playlist"),href:"#",class:"sf__playlist",style:{display:"none",cssFloat:"right"}})}),t=_.a.create("textarea",{text:r,rows:n,cols:60,style:{width:"100%",whiteSpace:i.a.isFirefox||i.a.isGM&&!i.a.isTM?"normal":"nowrap"}}),i.a.isChrome||i.a.isFirefox?_.a.create("button",{text:i.a.i18n.getMessage("copy"),style:{height:"27px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",marginTop:"6px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"5px",fontSize:"14px",cursor:"pointer",cssFloat:"right"},on:["click",function(e){var n=this;n.disabled=!0,i.a.isFirefox?(t.select(),document.execCommand("copy")):i.a.sendMessage({action:"addToClipboard",text:r}),setTimeout((function(){n.disabled=!1}),1e3)}],append:_.a.create("style",{text:p()({"#savefrom_popup_box":{append:{"button:hover:not(:disabled)":{backgroundColor:"#597A9E !important",borderColor:"#597A9E !important",color:"#fff"},"button:active":{opacity:.9}}}})})}):void 0]})}},popupFilelist:function(e,t,n,r){var i=Ct.playlist.getFilelistHtml(e);if(i){var o=Ct.popupDiv(i,r);if(n){var a=o.querySelector("a.sf__playlist");a&&(a.addEventListener("click",(function(n){return setTimeout((function(){Ct.playlist.popupPlaylist(e,t,!0,r)}),100),n.preventDefault(),!1}),!1),Ct.setStyle(a,Ct.playlist.btnStyle))}}},getInfoPopupTemplate:function(){var e=_.a.create("div",{class:"sf-infoPopupTemplate",style:{width:"400px",minHeight:"40px"}}),t=_.a.create("div",{style:{backgroundSize:"48px",backgroundRepeat:"no-repeat",backgroundPosition:"center top",display:"inline-block",width:"60px",height:"60px",cssFloat:"left",marginTop:"16px",marginRight:"10px"}}),n=_.a.create("div",{style:{display:"inline-block",width:"330px"}}),r=_.a.create("div",{style:{textAlign:"right"},append:_.a.create("style",{text:p()({".sf-infoPopupTemplate":{append:[{"a.sf-button":{padding:"1px 6px",display:"inline-block",textAlign:"center",height:"23px",lineHeight:"23px",textDecoration:"none"}},{selector:["button:hover","a.sf-button:hover"],style:{backgroundColor:"#597A9E !important",borderColor:"#597A9E !important",color:"#fff"}}]}})})});return e.appendChild(t),e.appendChild(n),e.appendChild(r),{icon:t,buttonContainer:r,textContainer:n,body:e}},getM3U:function(e){for(var t="#EXTM3U\r\n",n=0;n<e.length;n++)e[n].duration||(e[n].duration="-1"),(e[n].title||e[n].duration)&&(t+="#EXTINF:"+e[n].duration+","+e[n].title+"\r\n"),t+=e[n].url+"\r\n";return t},getPlaylistHtml:function(e,t){if(e&&0!=e.length){var n=e.length,r=Ct.dateToObj(),o=r.year+"-"+r.month+"-"+r.day+" "+r.hour+"-"+r.min,a=Ct.playlist.getM3U(e);a=a.replace(/\r\n/g,"\n");var s=A()(a,"audio/x-mpegurl"),l=Ct.playlist.getInfoPopupTemplate();return i.a.sendMessage({action:"getWarningIcon",color:"#00CCFF",type:"playlist"},(function(e){l.icon.style.backgroundImage="url("+e+")"})),_.a.create(l.textContainer,{append:[_.a.create("p",{text:t||i.a.i18n.getMessage("playlistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),_.a.create("p",{text:i.a.i18n.getMessage("playlistInstruction"),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}}),_.a.create("a",{text:i.a.i18n.getMessage("filelist")+" ("+n+")",href:"#",class:"sf__playlist",style:{display:"none",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}})]}),t||(t="playlist"),t+=" "+o,_.a.create(l.buttonContainer,{append:[_.a.create("a",{text:i.a.i18n.getMessage("download"),href:s,download:L.a.modify(t+".m3u"),class:"sf-button",style:{width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]}),l.body}},popupPlaylist:function(e,t,n,r){var i=Ct.playlist.getPlaylistHtml(e,t);if(i){var o=Ct.popupDiv(i,r);if(n){var a=o.querySelector("a.sf__playlist");a&&(a.addEventListener("click",(function(n){return setTimeout((function(){Ct.playlist.popupFilelist(e,t,!0,r)}),100),n.preventDefault(),!1}),!1),a.style.display="inline",a=null)}for(var s,l=o.querySelectorAll("a[download]"),u=0;s=l[u];u++)s.addEventListener("click",Ct.downloadOnClick,!1)}}},popupCloseBtn:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAWUlEQVQ4y2NgGHHAH4j1sYjrQ+WIAvFA/B+I36MZpg8V+w9VQ9Al/5EwzDBkQ2AYr8uwaXiPQ0yfkKuwGUayIYQMI8kQqhlEFa9RLbCpFv1US5BUzSLDBAAARN9OlWGGF8kAAAAASUVORK5CYII=",popupDiv:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{docCloseEnable:!0};t||(t="savefrom_popup_box"),n||(n=580),r||(r=520);var a=document.getElementById(t);a&&a.parentNode.removeChild(a),a=_.a.create("div",{id:t,style:{zIndex:"9999",display:"block",cssFloat:"none",position:"fixed",margin:"0",padding:"0",visibility:"hidden",color:"#000",background:"#fff",border:"3px solid #c0cad5",borderRadius:"7px",overflow:"auto"}});var s=_.a.create("div",{style:{display:"block",cssFloat:"none",position:"relative",overflow:"auto",margin:"0",padding:"10px 15px"}});"function"==typeof e?e(s):s.appendChild(e);var l=_.a.create("img",{src:Ct.popupCloseBtn,alt:"x",width:18,height:18,style:{position:"absolute",top:"10px",right:"15px",opacity:"0.5",cursor:"pointer"},on:[["mouseenter",function(){this.style.opacity="0.9"}],["mouseleave",function(){this.style.opacity="0.5"}],["click",function(){return a.parentNode&&a.parentNode.removeChild(a),i&&i(),!1}]]});s.appendChild(l),a.appendChild(s),document.body.appendChild(a),a.offsetWidth>n&&(a.style.width=n+"px"),a.offsetHeight>r&&(a.style.height=r+"px",a.style.width=n+20+"px"),setTimeout((function(){var e=Math.floor((window.innerWidth-a.offsetWidth)/2),t=Math.floor((window.innerHeight-a.offsetHeight)/2);t<0&&(t=0),-1!==location.host.indexOf("youtu")&&t<92&&(t=92,a.style.height=a.offsetHeight-t-10+"px"),e<0&&(e=0),Ct.setStyle(a,{top:t+"px",left:e+"px",visibility:"visible"})}));var u=function e(t){if(o&&!o.docCloseEnable)return!1;var n=t.target;n===a||Ct.isParent(n,a)||(a.parentNode&&a.parentNode.removeChild(a),document.removeEventListener("click",e,!1),i&&i())};return setTimeout((function(){document.addEventListener("click",u,!1)}),100),a.addEventListener("close",(function(){a.parentNode&&a.parentNode.removeChild(a),document.removeEventListener("click",u,!1),i&&i()})),a.addEventListener("kill",(function(){a.parentNode&&a.parentNode.removeChild(a),document.removeEventListener("click",u,!1)})),a},popupDiv2:function(e){var t={id:"savefrom_popup_box",containerStyle:null,bodyStyle:null,content:null,container:null,body:null,_onClose:function(){document.removeEventListener("click",t._onClose),n.parentNode&&n.parentNode.removeChild(n),t.onClose&&t.onClose()}};Object.assign(t,e);var n=t.container=_.a.create("div",{id:t.id,style:{zIndex:9999,display:"block",position:"fixed",background:"#fff",border:"3px solid #c0cad5",borderRadius:"7px"},append:[_.a.create("style",{text:p()({selector:"#"+t.id,style:C.a})})],on:[["click",function(e){e.stopPropagation()}]]}),r=_.a.create("img",{src:Ct.popupCloseBtn,alt:"x",width:18,height:18,style:{position:"absolute",top:"10px",right:"15px",opacity:"0.5",cursor:"pointer"},on:[["mouseenter",function(){this.style.opacity="0.9"}],["mouseleave",function(){this.style.opacity="0.5"}],["click",t._onClose]]});n.appendChild(r);var i=t.body=_.a.create("div",{style:u()({display:"block",position:"relative",padding:"10px 15px",overflow:"auto"},t.bodyStyle)});return"function"==typeof t.content?t.content(i):i.appendChild(t.content),n.appendChild(i),document.body.appendChild(n),document.addEventListener("click",t._onClose),t},showTooltip:function(e,t,n,r){if(e){var i=document.querySelector(".savefrom-tooltip");i||((i=document.createElement("div")).className="savefrom-tooltip",Ct.setStyle(i,{position:"absolute",opacity:0,zIndex:-1}),r&&Ct.setStyle(i,r)),i.textContent=t,i.lastNode&&i.lastNode===e||(i.lastNode&&(k.a.off(i.lastNode,"mouseleave",a),k.a.off(i.lastNode,"mousemove",o),i.lastRow&&k.a.off(i.lastRow,"mouseleave",a)),i.lastNode=e,n&&(i.lastRow=n),k.a.on(e,"mouseleave",a),k.a.on(e,"mousemove",o,!1),n&&k.a.on(n,"mouseleave",a),document.body.appendChild(i)),o()}function o(t){void 0!==t&&t.stopPropagation();var n=Ct.getPosition(e),r=Ct.getSize(i);0==n.top&&0==n.left||(n.top=n.top-r.height-10,n.left=n.left-r.width/2+Ct.getSize(e).width/2,n.left=Math.min(n.left,document.body.clientWidth+document.body.scrollLeft-r.width),n.top<document.body.scrollTop&&(n.top=n.top+r.height+Ct.getSize(e).height+20),n.top+="px",n.left+="px",n.zIndex=9999,n.opacity=1,Ct.setStyle(i,n))}function a(){i.parentNode&&document.body.removeChild(i),i.lastNode=null,i.lastRow=null,Ct.setStyle(i,{zIndex:-1,opacity:0}),k.a.off(e,"mouseleave",a),k.a.off(e,"mousemove",o),n&&k.a.off(n,"mouseleave",a)}},embedDownloader:{dataAttr:"data-savefrom-get-links",dataIdAttr:"data-savefrom-container-id",containerClass:"savefrom-links-container",linkClass:"savefrom-link",panel:null,lastLink:null,style:null,hostings:{youtube:{re:[/^https?:\/\/(?:[a-z]+\.)?youtube\.com\/(?:#!?\/)?watch\?.*v=([\w\-]+)/i,/^https?:\/\/(?:[a-z0-9]+\.)?youtube\.com\/(?:embed|v)\/([\w\-]+)/i,/^https?:\/\/(?:[a-z]+\.)?youtu\.be\/([\w\-]+)/i],action:"getYoutubeLinks",prepareLinks:function(e){var t=[],n=Ct.video.yt.format,r=e.meta||{};for(var i in n)for(var o in n[i]){var a=r[o]||{};if(e[o]){var s=i;n[i][o].ext&&(s=n[i][o].ext);var l=n[i][o].quality;a.quality&&(l=a.quality),n[i][o].sFps&&(l+=" "+(a.fps||60)),n[i][o]["3d"]&&(l+=" (3d)"),t.push({name:i+" "+l,type:s,url:e[o],noSound:n[i][o].noAudio})}}return t}},vimeo:{re:[/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/(?:\w+\#)?(\d+)/i,/^https?:\/\/player\.vimeo\.com\/video\/(\d+)/i,/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/channels\/(?:[^\/]+)\/(\d+)$/i,/^https?:\/\/vimeo\.com\/(?:.+)clip_id=(\d+)/i],action:"getVimeoLinks",prepareLinks:function(e){return e.map((function(e){var t=e.ext;return t||(t="MP4",-1!=e.url.search(/\.flv($|\?)/i)&&(t="FLV")),e.name=e.name?e.name:t,e.type=e.type?e.type:t,e.ext=t,e}))}},vk:{re:[/^https?:\/\/(?:[\w\-]+\.)?(?:vk\.com|vkontakte\.ru)\/(?:[^\/]+\/)*(?:[\w\-\.]+\?.*z=)?(video-?\d+_-?\d+\?list=[0-9a-z]+|video-?\d+_-?\d+)/i,/^https?:\/\/(?:[\w\-]+\.)?(?:vk\.com|vkontakte\.ru)\/video_ext\.php\?(.+)/i],action:"getVKLinks"},dailymotion:{re:[/^http:\/\/(?:www\.)?dai\.ly\/([a-z0-9]+)_?/i,/^https?:\/\/(?:[\w]+\.)?dailymotion\.com(?:\/embed|\/swf)?\/video\/([a-z0-9]+)_?/i],action:"getDailymotionLinks"},facebook:{re:[/^https?:\/\/(?:[\w]+\.)?facebook\.com(?:\/video)?\/video.php.*[?&]{1}v=([0-9]+).*/i,/^https?:\/\/(?:[\w]+\.)?facebook\.com\/.+\/videos(?:\/\w[^\/]+)?\/(\d+)/i],action:"getFacebookLinks"}},init:function(e){this.style=e,this.panel&&Ct.popupMenu.removePanel(),this.panel=null,this.lastLink=null;var t,n=document.querySelectorAll("a["+this.dataAttr+"]"),r=n.length;for(t=0;t<r;t++)["savefrom.net","sf-addon.com"].indexOf(Ct.getTopLevelDomain(n[t].hostname))>-1&&(n[t].removeEventListener("click",this.onClick,!1),n[t].addEventListener("click",this.onClick,!1));document.body&&(document.body.removeEventListener("click",this.onBodyClick,!0),document.body.addEventListener("click",this.onBodyClick,!0))},checkUrl:function(e){for(var t in this.hostings)for(var n=this.hostings[t],r=0,i=n.re.length;r<i;r++){var o=e.match(n.re[r]);if(o)return{hosting:t,action:n.action,extVideoId:o[1]}}return null},reMapHosting:function(e){return{getYoutubeLinks:"youtube",getVimeoLinks:"vimeo",getDailymotionLinks:"dailymotion",getFacebookLinks:"facebook",getVKLinks:"vk"}[e]},onClick:function(e,t){var n=Ct.embedDownloader;if(!t){for(t=e.target;t.parentNode&&"A"!==t.nodeName;)t=t.parentNode;if(!t)return}var r=t.getAttribute("data-savefrom-get-links");if(r&&0===e.button&&!e.ctrlKey&&!e.shiftKey){if(n.lastLink===t&&n.panel&&"none"!=n.panel.style.display)return n.lastLink=null,n.panel.style.display="none",e.preventDefault(),void e.stopPropagation();n.lastLink=t;var o=n.checkUrl(r);if(o){e.preventDefault(),e.stopPropagation();var a={action:o.action,extVideoId:o.extVideoId};return n.showLinks(i.a.i18n.getMessage("download")+" ...",null,t),i.a.sendMessage(a,(function(e){var r=o.hosting;e.action!=a.action&&(r=n.reMapHosting(e.action)),e.links?n.showLinks(e.links,e.title,t,r,!0):n.showLinks(i.a.i18n.getMessage("noLinksFound"),null,t,void 0,!0)})),!1}}},onBodyClick:function(e){var t=Ct.embedDownloader,n=e.target;if(!t.panel||"none"==t.panel.style.display){if("A"!==n.tagName&&m()(n,"A "+n.tagName))for(;n.parentNode&&"A"!==n.tagName;)n=n.parentNode;if("A"!==n.nodeName)return;return n.hasAttribute(t.dataAttr)&&["savefrom.net","sf-addon.com"].indexOf(Ct.getTopLevelDomain(n.hostname))>-1?t.onClick(e,n):void 0}t.panel===n||t.panel.contains(n)||(t.lastLink=null,t.panel.style.display="none",e.preventDefault(),e.stopPropagation())},hidePanel:function(){this.panel&&(this.panel.style.display="none")},createMenu:function(e,t,n,r,o){var a=i.a.i18n.getMessage("noLinksFound");"string"==typeof e?a=e:void 0!==Ct.popupMenu.prepareLinks[r]&&e&&(a=Ct.popupMenu.prepareLinks[r](e,t));var s={links:a,button:n,popupId:void 0,showFileSize:!0,containerClass:this.containerClass,linkClass:this.linkClass,style:{popup:this.style?this.style.container:void 0,item:this.style?this.style.link:void 0},isUpdate:o};o&&this.panel?Ct.popupMenu.update(this.panel,s):this.panel=Ct.popupMenu.create(s)},showLinks:function(e,t,n,r,o){var a,s=n.getAttribute(this.dataIdAttr);if(s&&(a=document.getElementById(s)),a)if(this.panel&&(this.panel.style.display="none"),"string"==typeof e)a.textContent=e;else if(e&&0!=e.length){r&&this.hostings[r]&&this.hostings[r].prepareLinks&&(e=this.hostings[r].prepareLinks(e)),a.textContent="";for(var l=0;l<e.length;l++)if(e[l].url&&e[l].name){(n=document.createElement("a")).href=e[l].url,n.title=i.a.i18n.getMessage("downloadTitle"),n.appendChild(document.createTextNode(e[l].name));var u=document.createElement("span");u.className=this.linkClass,u.appendChild(n),a.appendChild(u),Ct.appendFileSizeIcon(n),e[l].noSound&&Ct.appendNoSoundIcon(n),t&&!e[l].noTitle&&e[l].type&&(n.setAttribute("download",L.a.modify(t+"."+e[l].type.toLowerCase())),n.addEventListener("click",Ct.downloadOnClick,!1))}}else a.textContent=i.a.i18n.getMessage("noLinksFound");else this.createMenu(e,t,n,r,o)}},popupMenu:{popupId:"sf_popupMenu",popup:void 0,popupStyle:void 0,dataArrtVisible:"data-isVisible",extStyleCache:void 0,ummyIcon:null,badgeQualityList:["8K","4K","2160","1440","1080","720","ummy","mp3","4320"],createProBadge:function(e){var t=this;return Object(ge.a)(["userInfo"]).then((function(e){return e.userInfo&&e.userInfo.isPremium})).then((function(n){var r=_.a.create("div",{style:{display:"inline-block"}}),i={display:"inline-block",backgroundColor:"#505050",lineHeight:"18px",color:"#fff",fontSize:"12px",fontFamily:"'Roboto', sans-serif",borderRadius:"2px",verticalAlign:"middle",textAlign:"center",paddingRight:"2px",paddingLeft:"2px",fontWeight:"bold",marginLeft:"3px",borderBottomRightRadius:n?"2px":0,borderTopRightRadius:n?"2px":0},o=_.a.create("div",{text:t.prepareQualityLabel(e),style:i});if(r.appendChild(o),!n){var a=_.a.create("div",{text:"PRO",style:M(M({},i),{},{width:"auto",backgroundColor:"#54B85B",marginLeft:0,borderBottomRightRadius:"3px",borderTopRightRadius:"3px"})});r.appendChild(a)}return r}))},prepareQualityLabel:function(e){var t=String(e);return["1080","720","1440"].includes(t)?"HD":{2160:"4K",4320:"8K",hls:"HLS",1440:"QHD"}[t]||t.toUpperCase()},createBadge:function(e,t){t=t||{};var n={display:"inline-block",lineHeight:"18px",width:"19px",height:"17px",color:"#fff",fontSize:"12px",borderRadius:"2px",verticalAlign:"middle",textAlign:"center",paddingRight:"2px",fontWeight:"bold",marginLeft:"3px"};for(var r in t.containerStyle)n[r]=t.containerStyle[r];var i=_.a.create("div",{style:n});return"HLS"===e?(i.textContent="HLS",i.style.width="26px",i.style.paddingRight="1px",i.style.backgroundColor="#505050"):"1080"===e||"2160"===e||"1440"===e||"720"===e?(i.textContent="HD",i.style.backgroundColor="#505050",i.style.paddingRight="1px"):"8K"===e||"4K"===e?(i.textContent="HD",i.style.paddingRight="1px",i.style.backgroundColor="rgb(247, 180, 6)"):"mp3"!==e&&"MP3"!==e||(i.textContent="MP3",i.style.width="26px",i.style.paddingRight="1px",i.style.backgroundColor="#505050"),i},getTitleNode:function(e){var t=Ct.popupMenu,n=_.a.create("span",{style:{cssFloat:"left"}});if("converter"===e.extra){var r=document.createDocumentFragment();-1!==["MP3","8K","4K","1440","1080","720"].indexOf(e.format)?r.appendChild(t.createBadge(e.format,{containerStyle:{marginLeft:0}})):r.appendChild(document.createTextNode(e.format)),_.a.create(n,{append:[r," ",e.quality]}),r=null}else if(e.itemText)n.textContent=e.itemText;else{var i=e.quality?" "+e.quality:"";"mp3"===e.quality&&"pro"===e.itag&&(i="");var o=e.format?e.format:"???",a=e["3d"]?"3D ":"",s="";e.sFps&&(s+=" "+(e.fps||60)),n.textContent=a+o+i+s}return"pro"===e.itag?t.createProBadge(String(e.quality)).then((function(e){e&&n.appendChild(e)})):-1!==t.badgeQualityList.indexOf(String(e.quality))&&n.appendChild(t.createBadge(String(e.quality))),n},createPopupItem:function(e,t){var n,r=Ct.popupMenu;if("-"===(n="string"==typeof e?e:e.href))return{el:_.a.create("div",{style:{display:"block",margin:"1px 0",borderTop:"1px solid rgb(214, 214, 214)"}})};var o=document.createElement("-text-"===n?"div":"a");t.linkClass&&o.classList.add(t.linkClass);var a={display:"block",padding:"0 5px",textDecoration:"none",whiteSpace:"nowrap",overflow:"hidden"};if(e.isHidden&&(o.setAttribute(r.dataArrtVisible,"0"),a.display="none"),Ct.setStyle(o,a),"televzr"===e.itag){var s=document.createElement("div");return q()(Object(B.createElement)(mt,{openUrl:e.href}),s),{el:s,prop:e}}if("-text-"===n)return o.style.lineHeight="22px",{el:o};if(o.href=n,"#"===n)return{el:o};if((i.a.isGM||i.a.isSafari)&&(e.extra||(o.title=i.a.i18n.getMessage("downloadTitle"))),e.forceDownload&&!e.forceConverter){var l="";if(e.title){var u=(e.ext||e.format||"").toLowerCase();u&&(u="."+u),l=e.title+u}o.setAttribute("download",L.a.modify(l)),o.addEventListener("click",(function(e){Ct.downloadOnClick(e,null,{el:this})}),!1)}var c=[];e.func&&(Array.isArray(e.func)?c.push.apply(c,e.func):c.push(e.func)),t.onItemClick&&-1===c.indexOf(t.onItemClick)&&c.push(t.onItemClick),c.length&&o.addEventListener("click",(function(t){var n=this;c.forEach((function(r){return r.call(n,t,e)}))}),!1),e.isBlank&&o.setAttribute("target","_blank"),o.appendChild(r.getTitleNode(e));var d=_.a.create("span",{style:{cssFloat:"right",lineHeight:"22px",height:"22px"}}),f={top:"5px",verticalAlign:"top"};for(var p in t.sizeIconStyle)f[p]=t.sizeIconStyle[p];e.noAudio&&Ct.appendNoSoundIcon(d,f);var h=null;return e.noSize||(d.addEventListener("click",(function e(t){"IMG"===d.firstChild.tagName&&(t.preventDefault(),t.stopPropagation(),k.a.trigger(d.firstChild,"click",{cancelable:!0})),this.removeEventListener("click",e)})),h=Ct.appendFileSizeIcon(o,f,{marginLeft:0},void 0,!0,d,e)),o.appendChild(d),{el:o,sizeIcon:h,prop:e}},sortMenuItems:function(e,t){void 0===t&&(t={});var n=["HLS","Audio Opus","Audio Vorbis","Audio AAC","3GP","WebM","FLV","MP4"],r={Mobile:280,LD:280,SD:360,HD:720,ummy:1};t.strQualityExtend&&Object.assign(r,t.strQualityExtend);var i={},o=[],a=[],s=[],l=[],u=[],c=[],d=[],f=[];e.forEach((function(e){var n=e.prop;t.noProp&&(n=e);var p=n.sort||{};if(!n.format)return f.push(e),1;if(n.isOther)f.push(e);else if(n.isSubtitle)l.push(e);else if(n.noVideo)o[n.quality]=parseInt(n.quality),s.push(e);else{var h=p.size||r[n.quality]||-1;if(-1===h&&(h="K"===String(n.quality).substr(-1)?1e3*parseInt(n.quality):parseInt(n.quality)),t.maxSize&&h>t.maxSize)return 1;if(t.minSize&&h<t.minSize)return 1;i[n.quality]=h,n.noAudio?n.sFps?u.push(e):c.push(e):n["3d"]?d.push(e):a.push(e)}}));var p=function(e,t){return e.noVideo&&t.noVideo?function(e,t){return o[e.quality]>o[t.quality]?-1:o[e.quality]===o[t.quality]?0:1}(e,t):e.noVideo?1:t.noVideo||n.indexOf(e.format)>n.indexOf(t.format)?-1:n.indexOf(e.format)===n.indexOf(t.format)?0:1},h=function(e,n){var r=e.prop,o=n.prop;t.noProp&&(r=e,o=n);var a=function(e,t){var n=i[e.quality],r=i[t.quality];return isNaN(n)&&isNaN(r)?0:isNaN(n)?-1:isNaN(r)?1:n>r?-1:n===r?0:1}(r,o);return 0!==a?a:p(r,o)};a.sort(h),d.sort(h),s.sort(h),u.sort(h),c.sort(h);var m=null;return t.typeList?(m=[],-1!==t.typeList.indexOf("video")&&(m=m.concat(a)),-1!==t.typeList.indexOf("3d")&&(m=m.concat(d)),-1!==t.typeList.indexOf("audio")&&(m=m.concat(s)),-1!==t.typeList.indexOf("mute")&&(m=m.concat(c)),-1!==t.typeList.indexOf("mute60")&&(m=m.concat(u)),-1!==t.typeList.indexOf("subtitles")&&(m=m.concat(l)),-1!==t.typeList.indexOf("other")&&(m=m.concat(f))):m=a.concat(d,s,l,u,c,f),t.groupCompare&&m.sort(h),m.sort((function(e,t){var n=e.itag||e.prop&&e.prop.itag,r=t.itag||t.prop&&t.prop.itag;return"pro"!==n&&"pro"!==r||n===r?0:"pro"===n?-1:1})),m},removePanel:function(){null!==this.popup.parentNode&&this.popup.parentNode.removeChild(this.popup),void 0!==this.popupStyle&&null!==this.popupStyle.parentNode&&this.popupStyle.parentNode.removeChild(this.popupStyle),this.popup=void 0,this.popupStyle=void 0},getContent:function(e){var t=this,n=e.links,r=document.createDocumentFragment(),o=[];if(e.title){var a=t.createPopupItem("-text-",e).el;a.textContent=e.title,a.style.color="rgb(109, 104, 104)",a.fontStyle="italic",r.appendChild(a)}if("string"==typeof n){var s=t.createPopupItem("-text-",e).el;s.textContent=n,r.appendChild(s)}else if(0===n.length){var l=t.createPopupItem("-text-",e).el;l.textContent=i.a.i18n.getMessage("noLinksFound"),r.appendChild(l)}else{var u=[];n.forEach((function(n){u.push(t.createPopupItem(n,e))})),u=t.sortMenuItems(u,e.sortDetails),q()(Object(B.createElement)(ot),r);var c=[];u.forEach((function(t){if(t.prop.isHidden)return c.push(t.el),1;r.appendChild(t.el),e.showFileSize&&t.sizeIcon&&o.push(t.sizeIcon)})),e.visibleCount=u.length-c.length,c.length>0&&(e.getHiddenListFunc?r.appendChild(e.getHiddenListFunc(c,e)):q()(Object(B.createElement)(tt,{SaveFrom_Utils:Ct,hiddenItems:u.filter((function(e){return e.prop.isHidden})).map((function(e){return e.prop}))}),r))}return{sizeIconList:o,content:r}},create:function(e){var t=e.button,n=Ct.popupMenu;if(e.linkClass=e.linkClass||"sf-menu-item",e.offsetRight=e.offsetRight||0,e.offsetTop=e.offsetTop||0,e.parent=e.parent||document.body,!e.isUpdate||void 0!==n.popup&&"none"!==n.popup.style.display){n.popup&&n.removePanel();var r=n.popup=document.createElement("div"),i="#"+n.popupId;e.popupId?(i="#"+e.popupId,r.id=e.popupId):e.containerClass?(i="."+e.containerClass,r.classList.add(e.containerClass)):r.id=n.popupId;var o={display:"block",position:"absolute",minHeight:"24px",cursor:"default",textAlign:"left",whiteSpace:"nowrap",fontFamily:"arial, sans-serif"};e.extStyle&&delete o.display;var a=Ct.getPosition(t,e.parent),s=Ct.getSize(t);o.top=a.top+e.offsetTop+s.height+"px",o.left=a.left+e.offsetRight+"px",Ct.setStyle(r,o);var l={"background-color":"#fff","z-index":"9999","box-shadow":"0 2px 10px 0 rgba(0,0,0,0.2)",border:"1px solid #ccc","border-radius":"3px","font-size":"12px","font-weight":"bold","min-width":"190px"};if(e.style&&e.style.popup)for(var u in e.style.popup){var c=e.style.popup[u];l[u]=c}Ct.addStyleRules(i,l);var d={"line-height":"24px",color:"#3D3D3D"};if(e.style&&e.style.item)for(var u in e.style.item)c=e.style.item[u],d[u]=c;Ct.addStyleRules(i+" ."+e.linkClass,d);var f=function(e){e.stopPropagation()};for(_.a.create(r,{on:[["click",f],["mouseover",f],["mouseup",f],["mousedown",f],["mouseout",f]]});null!==r.firstChild;)r.removeChild(r.firstChild);var h=n.getContent.call(n,e),m=h.sizeIconList;h=h.content,r.appendChild(h);var g="#2F8AFF",v="#fff";e.style&&e.style.hover&&(g=e.style.hover.backgroundColor||g,v=e.style.hover.color||v);var b=n.popupStyle=document.createElement("style");if(b.textContent=p()({selector:i,append:{"a:hover":{backgroundColor:g,color:v},"> a:first-child":{borderTopLeftRadius:"3px",borderTopRightRadius:"3px"},"> a:last-child":{borderBottomLeftRadius:"3px",borderBottomRightRadius:"3px"}}}),e.parent.appendChild(b),e.parent.appendChild(r),e.extStyle){void 0!==Ct.popupMenu.extStyleCache&&null!==Ct.popupMenu.extStyleCache.parentNode&&Ct.popupMenu.extStyleCache.parentNode.removeChild(Ct.popupMenu.extStyleCache);var y="sf-extElStyle_"+i.substr(1),A="sf-extBodyStyle_"+i.substr(1);null===document.querySelector("style."+A)&&document.body.appendChild(_.a.create("style",{class:A,text:p()({selector:i,style:{display:"none"}})})),Ct.popupMenu.extStyleCache=e.extStyle.appendChild(_.a.create("style",{class:y,text:p()({selector:"body "+i,style:{display:"block"}})}))}return setTimeout((function(){m.forEach((function(e){k.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))})),r}},update:function(e,t){for(var n=Ct.popupMenu;null!==e.firstChild;)e.removeChild(e.firstChild);var r=n.getContent.call(n,t),i=r.sizeIconList;r=r.content,e.appendChild(r),setTimeout((function(){i.forEach((function(e){k.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))}))},preprocessItem:{srt2url:function(e,t){var n=e.srt,r=A()(n,"text/plain");t.ext="srt",t.format="SRT",t.href=r,t.noSize=!0}},prepareLinks:{youtube:function(e,t,n,r){r=r||{},n=n||[],e=Object.assign({},e);var o=Ct.video.yt;o.init();var a=[],s=null,l=e.meta||{};return Object.keys(o.format).forEach((function(n){var r=o.format[n];return Object.keys(r).forEach((function(i){var u=e[i];if(u){var c=!1;o.showFormat[n]||(c=!0);var d=r[i];d["3d"]&&!o.show3D&&(c=!0),d.noAudio&&!o.showMP4NoAudio&&(c=!0),s={href:u,isHidden:c,title:t,format:n,itag:i,forceDownload:!0},Object.assign(s,d);var f=l[i];f&&(f.quality&&(s.quality=f.quality),f.fps&&(s.fps=f.fps)),a.push(s),delete e[i]}}))})),e.televzr&&(a.push({itag:"televzr",format:"televzr",quality:"televzr",href:e.televzr,noSize:!0}),delete e.televzr),kt.preferences.ffmpegEnabled&&l.muxer&&(s={href:"#muxer",fps:l.muxer.fps,quality:l.muxer.quality,format:l.muxer.format,itag:"muxer",uQuality:l.muxer.quality,noSize:!0,func:function(e){e.preventDefault(),e.stopPropagation(),q()(Object(B.createElement)(U.a,l.muxer.mmProps),"sf-muxer-parent"),i.a.sendMessage({action:"track",t:"event",tid:"UA-181742122-3",el:"mp4_".concat(l.muxer.quality,"_conv"),ec:"download",ea:"mp4_".concat(l.muxer.quality,"_conv")})}},a.push(s)),Object.keys(e).forEach((function(n){"meta"!==n&&(s={href:e[n],isHidden:!0,title:t,quality:n,itag:n,forceDownload:!0},a.push(s),delete e[n])})),Object.keys(e.meta).forEach((function(t){if(-1!==t.indexOf("pro")){var n=e.meta[t];a.push({href:"#pro",isHidden:!1,noSize:!0,format:n.format,noVideo:n.noVideo,itag:"pro",func:function(e){e.preventDefault(),k.a.trigger(document,"mousedown");var t=document.body.querySelector("#savefrom__yt_btn"),r=Boolean(document.body.querySelector("#sfYtFrameBtn")),i={position:"absolute"};!t&&r&&(i.right="0",t=document.body.querySelector(".sf-btn-ctr")),t||(i.position="relative",t=_.a.create("div",{style:{position:"fixed",zIndex:999999,bottom:"30px",right:"0"}}),document.body.appendChild(t)),q()(Object(B.createElement)(Re,{link:n,positionStyle:i}),t)},quality:String(n.quality)})}})),n.forEach((function(e){s={href:e.url,isHidden:!0,quality:"SRT"+(e.isAuto?"A":""),itemText:i.a.i18n.getMessage("subtitles")+" ("+e.lang+")",title:t+"-"+e.langCode,ext:"vtt",format:"VTT",isSubtitle:!0,langCode:e.langCode,forceDownload:!0},"srt2url"===e.preprocess&&Ct.popupMenu.preprocessItem.srt2url(e,s),a.push(s)})),l.extra&&l.extra.forEach((function(e){s={href:"#"+e.extra,noSize:!0,isHidden:!1},Object.assign(s,e),e.itag&&Object.keys(o.format).some((function(t){var n=o.format[t][e.itag];if(n)return Object.assign(s,n),!0})),e.request&&(s.func=function(t){return t.preventDefault(),i.a.sendMessage(e.request)}),s.noAudio=!1,a.push(s)})),a},vimeo:function(e,t){var n,r=[];return e.forEach((function(e){var i=e.ext;i||(i="mp4",-1!=e.url.search(/\.flv($|\?)/i)&&(i="flv"));var o=e.height||"",a=e.type;n={href:e.url,title:t,ext:i,format:a,quality:o,forceDownload:!0},r.push(n)})),r},vk:function(e,t){var n,r=[];return e.forEach((function(e){var i=e.name||e.ext;i&&(i=i.toLowerCase());var o=i&&i.toUpperCase()||"",a=e.subname||"";n={href:e.url,title:t,ext:i,format:o,quality:a,forceDownload:!0},r.push(n)})),r},dailymotion:function(e,t){var n=[];return e.forEach((function(e){var r=null;"ummy"===e.extra?(r={href:e.url,quality:"ummy",noSize:!0,format:"ummy",videoId:e.videoId,sort:{size:480}},"ummyAudio"===e.type&&(r.uQuality="mp3",r.uIsAudio=!0)):r={href:e.url,title:t,ext:e.ext,format:e.ext,quality:e.height||"",forceDownload:!0},n.push(r)})),n},facebook:function(e,t){var n,r=[];return e.forEach((function(e){var i=e.ext,o=i?i.toUpperCase():"",a=e.name;n={href:e.url,title:t,ext:i,format:o,quality:a,forceDownload:!0},r.push(n)})),r},rutube:function(e){if(Array.isArray(e)&&(e=e[0]),"string"==typeof e){var t=e.match(/\/embed\/(\d+)/);return(t=t&&t[1]||void 0)||(t=(t=e.match(/\/video\/([0-9a-z]+)/))&&t[1]||void 0),/\/\/video\./.test(e)&&(e=e.replace(/\/\/video\./,"//"),t||(t=(t=e.match(/\/(\d+)$/))&&t[1]||void 0)),t&&(t="rt-"+t),[]}},mailru:function(e,t){var n,r=[];return e.forEach((function(e){var i=e.ext,o=e.name,a=e.subname;n={href:e.url,title:t,ext:i,format:o,quality:a,forceDownload:!0},r.push(n)})),r}},quickInsert:function(e,t,n,r){r=r||{};var i={},o=function t(n){n&&(n.target===e||e.contains(n.target))||i.isShow&&(s.style.display="none",k.a.off(document,"mousedown",t),i.isShow=!1,r.onHide&&r.onHide(s))},a={links:t,button:e,popupId:n,showFileSize:!0};Object.assign(a,r);var s=Ct.popupMenu.create(a);return r.onShow&&r.onShow(s),k.a.off(document,"mousedown",o),k.a.on(document,"mousedown",o),Object.assign(i,{button:e,isShow:!0,el:s,hide:o,update:function(e,t){t&&(a.title=t),a.links=e,Ct.popupMenu.update(s,a)}})}},frameMenu:{getBtn:function(e){var t={verticalAlign:"middle",position:"absolute",zIndex:999,fontFamily:"arial, sans-serif"};for(var n in e.containerStyle)t[n]=e.containerStyle[n];var r=e.quickBtnStyleObj||{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid rgba(255, 255, 255, 0.4)",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingRight:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"};e.singleBtn&&!e.quickBtnStyleObj&&(delete r.borderTopRightRadius,delete r.borderBottomRightRadius);var i={position:"relative",display:"inline-block",fontSize:"inherit",height:"24px",padding:0,paddingRight:"21px",border:"1px solid rgba(255, 255, 255, 0.4)",borderLeft:0,borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#fff",zIndex:0,verticalAlign:"middle",marginLeft:0,boxSizing:"border-box",lineHeight:"22px"};for(var n in e.selectBtnStyle)i[n]=e.selectBtnStyle[n];var o,a=e.quickBtnIcon||_.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+Ct.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}}),s=e.selectBtnIcon||_.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #FFF",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}}),l=_.a.create("div",{id:e.btnId,style:t,on:e.on,append:[o=_.a.create("a",{class:"sf-quick-btn",style:r,href:"#",append:[a]}),_.a.create("style",{text:p()({selector:"#"+e.btnId,style:e.nodeCssStyle||{opacity:.8,display:"none"},append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-btn":e.quickBtnCssStyle||{backgroundColor:"rgba(28,28,28,0.1)"},".sf-select-btn":{backgroundColor:"rgba(28,28,28,0.1)"}},{selector:[":hover",".sf-over"],join:"",style:{opacity:1},append:{".sf-quick-btn":e.quickBtnOverCssStyle||{backgroundColor:"rgba(0, 163, 80, 0.5)"},".sf-select-btn":{backgroundColor:"rgba(60, 60, 60, 0.5)"}}},{join:"",".sf-over":{append:{".sf-select-btn":{backgroundColor:"rgba(28,28,28,0.8)"}}},".sf-show":{display:"block"}}]})})]}),u=null,c=null;return e.singleBtn||(c=function(e){var t="object"==typeof e?e:document.createTextNode(e),n=u.firstChild;n===s?u.insertBefore(t,n):u.replaceChild(t,n)},u=_.a.create("button",{class:"sf-select-btn",style:i,on:e.onSelectBtn,append:[s]}),l.appendChild(u)),{node:l,setQuality:c,setLoadingState:function(){c(_.a.create("img",{src:Ct.svg.getSrc("info","#ffffff"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:"-1px",position:"relative"}}))},selectBtn:u,quickBtn:o}},getHiddenList:function(e,t){var n=Ct.popupMenu,r=n.createPopupItem("-text-",t).el;_.a.create(r,{text:i.a.i18n.getMessage("more")+" "+String.fromCharCode(187),style:{cursor:"pointer"},on:["click",function(){for(var e,t=this.parentNode.querySelectorAll("*["+n.dataArrtVisible+"]"),r=0;e=t[r];r++)e.style.display="block",e.setAttribute(n.dataArrtVisible,1);this.parentNode.removeChild(this)}]});var o=document.createDocumentFragment();return o.appendChild(r),_.a.create(o,{append:e}),0===t.visibleCount&&k.a.trigger(r,"click",{cancelable:!0}),o},getMenuContainer:function(e){var t=Ct.popupMenu,n=e.button,r=e.popupId,i=_.a.create("div",{style:{position:"absolute",minHeight:"24px",cursor:"default",textAlign:"left",whiteSpace:"nowrap",overflow:"auto"}});"#"===r[0]?i.id=r.substr(1):i.classList.add(r);var o=t.getContent(e);i.appendChild(o.content),setTimeout((function(){o.sizeIconList.forEach((function(e){k.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))}));var a=Ct.getPosition(n,e.parent),s=Ct.getSize(n),l=function(e){e.stopPropagation()},u=a.top+s.height,c={top:u+"px",maxHeight:document.body.offsetHeight-u-40+"px"};return e.leftMenuPos?c.left=a.left+"px":c.right=document.body.offsetWidth-a.left-s.width+"px",_.a.create(i,{style:c,on:[["click",l],["mouseover",l],["mouseup",l],["mousedown",l],["mouseout",l],["wheel",function(e){(e.wheelDeltaY>0&&0===this.scrollTop||e.wheelDeltaY<0&&this.scrollHeight-(this.offsetHeight+this.scrollTop)<=0)&&e.preventDefault()}]],append:[_.a.create("style",{text:p()({selector:("#"===r[0]?"":".")+r,style:{display:"none",fontFamily:"arial, sans-serif",backgroundColor:"rgba(28,28,28,0.8)",zIndex:9999,borderRadius:"4px",fontSize:"12px",fontWeight:"bold",minWidth:"190px",color:"#fff"},append:[{join:"",".sf-show":{display:"block"},"::-webkit-scrollbar-track":{backgroundColor:"#424242"},"::-webkit-scrollbar":{width:"10px",backgroundColor:"#424242"},"::-webkit-scrollbar-thumb":{backgroundColor:"#8e8e8e"}},{".sf-menu-item":{lineHeight:"24px",color:"#fff"},".sf-menu-item:hover":{backgroundColor:"#1c1c1c"}}]})})]}),i},getMenu:function(e,t,n,r){var i={links:t,button:e,popupId:n||"#sf-frame-menu",showFileSize:!0,sizeIconStyle:{color:"#fff"},linkClass:"sf-menu-item",bindUmmyInfoDetails:{posLeft:!0,widthLimit:480,container:r.container,createUmmyInfoDetails:{posLeft:!0,darkTheme:!0}},getHiddenListFunc:this.getHiddenList.bind(this)};for(var o in r)i[o]=r[o];var a=this.getMenuContainer(i);(i.container||document.body).appendChild(a);var s=function(){a.parentNode&&a.parentNode.removeChild(a),l.isShow=!1,i.onHide&&i.onHide()};i.onShow&&i.onShow(a),k.a.off(document,"mousedown",s),k.a.on(document,"mousedown",s);var l={isShow:!0,el:a,hide:s,update:function(e){var t=Ct.popupMenu,n=a.lastChild;a.textContent="",i.links=e;var r=t.getContent(i);setTimeout((function(){r.sizeIconList.forEach((function(e){k.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))})),a.appendChild(r.content),a.appendChild(n)}};return l}},mobileLightBox:{id:"sf-lightbox",clear:function(){var e=document.getElementById(Ct.mobileLightBox.id);null!==e&&e.parentNode.removeChild(e)},getTitle:function(e){var t=[];if(t.push(e.format||"???"),e.quality){var n=e.quality;e.sFps&&(n+=" "+(e.fps||60)),t.push(n)}return e["3d"]&&t.push("3D"),e.noAudio&&t.push(i.a.i18n.getMessage("withoutAudio")),t.join(" ")},createItem:function(e){var t=Ct.mobileLightBox,n=_.a.create("a",{style:{display:"block",marginBottom:"6px",border:"solid 1px #d3d3d3",lineHeight:"36px",minHeight:"36px",background:"#f8f8f8",verticalAlign:"middle",fontSize:"15px",textAlign:"center",color:"#333",borderRadius:"2px",overflow:"hidden",position:"relative"}}),r="";if(e.title){var i=(e.ext||e.format||"").toLowerCase();i&&(i="."+i),r=L.a.modify(e.title+i)}if("string"==typeof e)return n.textContent=e,n;if(n.href=e.href,n.download=r,n.textContent=t.getTitle(e),n.addEventListener("click",(function(t){e.func&&e.func(t),"muxer"!==e.itag&&e.forceDownload&&Ct.downloadOnClick(t,null,{el:this})})),e.isHidden&&(n.classList.add("isOptional"),n.style.display="none"),!e.noSize){var o=Ct.getFileSizeIcon({cssFloat:"right",lineHeight:"36px",fontSize:"75%",marginRight:"10px"},{padding:"10px",verticalAlign:"middle",lineHeight:0},{width:"16px",height:"16px"},{url:e.href});n.appendChild(o.node)}return n},getItems:function(e){var t=Ct.mobileLightBox;if("string"==typeof e)return{list:[t.createItem(e)],hiddenCount:0};for(var n,r=[],i=0;n=e[i];i++)["ummy","televzr"].includes(n.quality)||n.extra||r.push({el:t.createItem(n),prop:n});r=Ct.popupMenu.sortMenuItems(r);var o=[],a=[];for(i=0;n=r[i];i++)n.prop.isHidden?a.push(n.el):o.push(n.el);return{list:o.concat(a),hiddenCount:a.length}},show:function(e){var t,n=Ct.mobileLightBox,r=window.pageYOffset,o=window.innerHeight,a=parseInt(o/100*15),s=void 0,l=function(e){return o-46*(e?2:1)-2*a},u=function(e){e.hiddenCount>0?(s.style.height=l(1)+"px",t.style.display="block"):(t.style.display="none",s.style.height=l(0)+"px"),e.hiddenCount===e.list.length&&c(t)},c=function(e){var t="none",n=e.parentNode.querySelectorAll(".isOptional");"open"!==e.dataset.state?(e.dataset.state="open",e.textContent=i.a.i18n.getMessage("more")+" "+String.fromCharCode(171),t="block"):(e.dataset.state="close",e.textContent=i.a.i18n.getMessage("more")+" "+String.fromCharCode(187));for(var r,o=0;r=n[o];o++)r.style.display=t},d=document.getElementById(n.id);null!==d&&d.parentNode.removeChild(d);var f=window.innerWidth;f=f<=250?"90%":"70%",e&&0!==e.length||(e=i.a.i18n.getMessage("noLinksFound"));var p=n.getItems(e),h=_.a.create("div",{id:n.id,style:{position:"absolute",top:0,left:0,width:"100%",zIndex:9e3,height:document.body.scrollHeight+"px",background:"rgba(0,0,0,0.85)",textAlign:"center",boxSizing:"content-box"},on:[["click",function(e){e.preventDefault(),v()}]],append:_.a.create("div",{style:{display:"inline-block",width:f,backgroundColor:"#eee",height:o-2*a+"px",marginTop:a+r+"px",borderRadius:"4px",padding:"8px",position:"relative",boxSizing:"content-box"},append:[s=_.a.create("div",{style:{overflowY:"auto",marginBottom:"6px"},append:p.list,on:["touchmove",function(e){e.stopPropagation()}]}),t=_.a.create(n.createItem(i.a.i18n.getMessage("more")+" "+String.fromCharCode(187)),{href:"#",on:["click",function(e){e.preventDefault(),c(this)}]}),_.a.create(n.createItem(i.a.i18n.getMessage("close")),{style:{marginBottom:0},on:["click",function(e){e.preventDefault(),v()}]})],on:["click",function(e){e.stopPropagation()}]})});u(p),document.body.appendChild(h);var m=document.body.scrollTop,g={},v=function(){g.isShow&&(document.body.scrollTop=m,g.hide())};return Object.assign(g,{isShow:!0,el:h,hide:function(){h.parentNode&&h.parentNode.removeChild(h),g.isShow=!1},close:v,update:function(e){if(null!==h.parentNode){e&&0!==e.length||(e=i.a.i18n.getMessage("noLinksFound")),s.textContent="";var t=n.getItems(e);_.a.create(s,{append:t.list}),u(t)}}})}},bridge:function(e){e.args=e.args||[],void 0===e.timeout&&(e.timeout=300);var t="sf-bridge-"+parseInt(1e3*Math.random())+"-"+Date.now();window.addEventListener("sf-bridge-"+t,(function n(r){var i;window.removeEventListener("sf-bridge-"+t,n),i=r.detail?JSON.parse(r.detail):void 0,e.cb(i)}));var n='(function(func,args,scriptId,timeout){/* fix */var node=document.getElementById(scriptId);if(node){node.parentNode.removeChild(node)}var fired=false;var done=function done(data){if(fired){return}fired=true;var event=new CustomEvent("sf-bridge-"+scriptId,{detail:JSON.stringify(data)});window.dispatchEvent(event)};timeout&&setTimeout(function(){done()},timeout);args.push(done);func.apply(null,args)})('+[e.func.toString(),JSON.stringify(e.args),JSON.stringify(t),parseInt(e.timeout)].join(",")+");";i.a.isSafari&&(n=n.replace("/* fix */",'(function(){"undefined"==typeof CustomEvent&&(CustomEvent=function CustomEvent(e,t){t=t||{bubbles:!1,cancelable:!1};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n},CustomEvent.prototype=window.Event.prototype)})();'));var r=_.a.create("script",{id:t,text:n});document.body.appendChild(r)},openMediaOnSaveFrom:function(e){window.open("https://ru.savefrom.net/#url="+e,"_blank")},TutorialTooltip:function(e){var t=this;this.details={btnTopOffset:-3,btnLeftOffset:0},Object.assign(this.details,e),this.onResize=this.onResize.bind(this),this.onResizeDebouce=d()(this.onResize,250),this.onClose=this.onClose.bind(this),this.target=e.target,"1"!==this.target.dataset.sfHasTooltip&&(this.target.dataset.sfHasTooltip="1",this.tooltipNode=this.getNode(),this.target.addEventListener("mouseup",this.onClose),this.target.addEventListener(k.a.onRemoveEventName,(function(){t.onClose&&t.onClose(1)})),window.addEventListener("resize",this.onResizeDebouce),this.onResize(),this.tooltipNode&&(e.parent||document.body).appendChild(this.tooltipNode))}};Ct.TutorialTooltip.prototype.getNode=function(){var e=this,t=function(){var e=1e3,t=document.getElementById("masthead-positioner"),n=t&&window.getComputedStyle(t,null);return n&&(e=parseInt(n.getPropertyValue("z-index"))+1),e}();if(xt)var n=_.a.create("div",{class:"sf-tooltip",style:{top:"-70px",display:"flex"},on:["mouseup",function(e){e.stopPropagation()}],append:[_.a.create("div",{style:{height:"40px",backgroundColor:"#4D4D4D",paddingBottom:"10px",maxWidth:"220px",minWidth:"220px",lineHeight:"16px",fontSize:"14px",fontFamily:"font-family: arial, sans-serif",color:"#fff",display:"flex"},append:[_.a.create("div",{style:{width:"60%",margin:"0 0 5px 10px"},append:[_.a.create("span",{style:{color:"white",fontSize:"14px",fontWeight:"bold",display:"inline-block"},text:"Just hold"}),_.a.create("div",{style:{display:"inline-block",position:"relative",margin:"4px 4px 0 4px",width:"27px",height:"18px",backgroundColor:"black",borderRadius:"5px",border:"1px solid black",borderBottom:"3px solid black"},append:[_.a.create("div",{style:{fontWeight:"bold",fontSize:"8px",textAlign:"center",zIndex:1,position:"relative",width:"27px",height:"18px",backgroundColor:"white",color:"black",borderRadius:"5px"},append:[_.a.create("span",{style:{display:"inline-block",marginTop:"2px"},text:"option"})]})]}),_.a.create("span",{style:{color:"white",fontSize:"14px",fontWeight:"bold"},text:"and click on Download"})]}),_.a.create("a",{class:"sf-button",text:"OK",style:{height:"18px",width:"50px",display:"inline-block",textAlign:"center",textDecoration:"none",padding:"0 10px",cssFloat:"right",marginTop:"25px",lineHeight:"20px",borderRadius:"3px",fontSize:"12px",color:"#fff",fontWeight:"bolder",backgroundColor:"#167AC6",cursor:"pointer"},on:["click",function(t){t.preventDefault(),e.onClose&&e.onClose()}]}),_.a.create("style",{text:p()({".sf-tooltip":{position:"absolute",zIndex:t+2,append:{".sf-button:hover":{backgroundColor:"#126db3 !important"},".sf-button:active":{opacity:.9}}}})})]})]});else n=_.a.create("div",{class:"sf-tooltip",on:["mouseup",function(e){e.stopPropagation()}],append:[_.a.create("span",{style:{display:"inline-block",border:"8px solid transparent",borderRight:"10px solid #4D4D4D",borderLeft:0,width:0,top:"8px",left:"0px",position:"absolute"}}),_.a.create("span",{style:{display:"inline-block",backgroundColor:"#4D4D4D",marginLeft:"10px",padding:"10px 10px",maxWidth:"220px",minWidth:"220px",lineHeight:"16px",fontSize:"14px",fontFamily:"font-family: arial, sans-serif",color:"#fff"},append:[_.a.create("p",{style:{margin:0},append:O()(i.a.i18n.getMessage("tutorialTooltipText"))}),_.a.create("a",{class:"sf-button",text:"OK",style:{display:"inline-block",textAlign:"center",textDecoration:"none",padding:"0 10px",cssFloat:"right",marginTop:"5px",lineHeight:"20px",borderRadius:"3px",fontSize:"12px",color:"#fff",fontWeight:"bolder",backgroundColor:"#167AC6",cursor:"pointer"},on:["click",function(t){t.preventDefault(),e.onClose&&e.onClose()}]}),_.a.create("style",{text:p()({".sf-tooltip":{position:"absolute",zIndex:t+2,append:{".sf-button:hover":{backgroundColor:"#126db3 !important"},".sf-button:active":{opacity:.9}}}})})]})]});return n},Ct.TutorialTooltip.prototype.onClose=function(e){e&&"mouseup"===e.type&&(e=null),this.tooltipNode&&(this.tooltipNode.parentNode&&this.tooltipNode.parentNode.removeChild(this.tooltipNode),this.tooltipNode=null),window.removeEventListener("resize",this.onResizeDebouce),this.target.removeEventListener("mouseup",this.onClose),this.onClose=null,e||this.details.onClose&&this.details.onClose()},Ct.TutorialTooltip.prototype.onResize=function(){var e=this.target;if(!e.offsetParent||!e.parentNode)return this.onClose&&this.onClose(1);var t=Ct.getPosition(e,this.details.parent);t.top,this.details.btnTopOffset,t.left,t.width,this.details.btnLeftOffset},Ct.mutationWatcher={getMutationObserver:function(){return R()()},isAvailable:function(){return!!this.getMutationObserver()},disconnect:function(e){e.observer.disconnect()},connect:function(e){e.observer.observe(e.target,e.config)},joinMutations:function(e){for(var t,n,r,i,o,a,s=[],l=[],u={};r=e.shift();){for(-1===(a=l.indexOf(r.target))&&(u[a=l.push(r.target)-1]={target:r.target,added:[],removed:[]}),t=u[a],n=void 0,i=0;o=r.addedNodes[i];i++)1===o.nodeType&&(t.added.push(o),n=!0);for(i=0;o=r.removedNodes[i];i++)1===o.nodeType&&(t.removed.push(o),n=!0);void 0!==n&&void 0===t.inList&&(t.inList=!0,s.push(t))}return s},isMatched:V.a,match:function(e,t,n){var r,i,o,a,s=this,l=e.queries,u=!1;return["added","removed"].forEach((function(e){var c=n[e];for(a=0;r=c[a];a++)for(i=0;o=l[i];i++)if(void 0===o.is||o.is===e){var d=t[i][e];!0===s.isMatched(r,o.css)?d.push(r):d.push.apply(d,r.querySelectorAll(o.css)),!1===u&&(u=void 0!==d[0])}})),u},filterTarget:function(e,t){var n,r;for(n=0;r=e[n];n++)if(!0===this.isMatched(t,r.css))return!0;return!1},run:function(e){var t=this,n={config:{childList:!0,subtree:!0},target:document.body,filterTarget:[]};Object.assign(n,e),n._disconnect=this.disconnect.bind(this,n),n._connect=this.connect.bind(this,n),n._match=this.match.bind(this,n);for(var r=[],i=0;i<n.queries.length;i++)r.push({added:[],removed:[]});r=JSON.stringify(r);var o=this.getMutationObserver();return n.observer=new o((function(e){var i=t.joinMutations(e);if(0!==i.length){for(var o,a=!1,s=JSON.parse(r);o=i.shift();)!1===t.filterTarget(n.filterTarget,o.target)&&!0===n._match(s,o)&&(a=!0);!0===a&&n.callback(s)}})),n.trigger=function(e){var t=!1,i=JSON.parse(r),o={added:[e],removed:[]};n._match(i,o)&&(t=!0),!0===t&&n.callback(i)},n.start=function(){n._disconnect(),n._connect(),n.trigger(n.target)},n.stop=function(){n._disconnect()},n.start(),n}},Ct.mutationAttrWatcher={isAvailable:function(){return!!Ct.mutationWatcher.getMutationObserver()},disconnect:function(e){e.observer.disconnect()},connect:function(e){e.observer.observe(e.target,e.config)},run:function(e){var t={config:{attributes:!0,childList:!1,attributeOldValue:!0},target:document.body};Object.assign(t,e),Array.isArray(t.attr)||(t.attr=[t.attr]),t.config.attributeFilter=t.attr,t._disconnect=this.disconnect.bind(this,t),t._connect=this.connect.bind(this,t);for(var n=[],r=0;r<t.attr.length;r++)n.push({});n=JSON.stringify(n);var i=Ct.mutationWatcher.getMutationObserver();return t.observer=new i((function(e){for(var r,i=!1,o=JSON.parse(n);r=e.shift();){var a=t.attr.indexOf(r.attributeName);if(-1!==a){var s=r.target.getAttribute(r.attributeName);s!==r.oldValue&&(o[a]={value:s,oldValue:r.oldValue},i=!0)}}!0===i&&t.callback(o)})),t.start=function(){t._disconnect(),t._connect();for(var e,r=!1,i=JSON.parse(n),o=0;e=t.attr[o];o++){var a=t.target.getAttribute(e);null!==a&&(i[o]={value:a,oldValue:null},r=!0)}!0===r&&t.callback(i)},t.stop=function(){t._disconnect()},setTimeout((function(){t.start()})),t}},Ct.waitNodesBySelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1,r=null,i=Promise.resolve().then((function(){var i=t.target||document.body,o=Ct.mutationWatcher.getMutationObserver(),a=null,s=null,l=new Promise((function(e,t){a=e,s=t})),u=null;t.timeout>0&&(u=setTimeout((function(){r&&r()}),t.timeout));var c=[],d=new o((function(t){var n,r;for(n=0;n<t.length;n++){var i=t[n];for(r=0;r<i.addedNodes.length;r++){var o=i.addedNodes[r];1===o.nodeType&&(V()(o,e)?c.push(o):c.push.apply(c,o.querySelectorAll(e)))}}c.length&&a(c)}));return d.observe(i,{childList:!0,subtree:!0}),r=function(){r=null,s(new Error("ABORTED"))},c.push.apply(c,i.querySelectorAll(e)),c.length&&a(c),n&&r&&r(),l.then((function(e){return d.disconnect(),clearTimeout(u),e}),(function(e){throw d.disconnect(),clearTimeout(u),e}))}));return i.abort=function(){n=!0,r&&r()},i},t.a=function(e){return kt=e,Ct}},function(e,t){e.exports=n(77)},function(e,t){e.exports=n(49)},function(e,t){e.exports=n(78)},function(e,t){e.exports=n(55)},function(e,t){e.exports=n(79)},function(e,t,n){var r=n(0);t.a=function(e){return new Promise((function(t){r.a.sendMessage(e,t)}))}},function(e,t){e.exports=n(80)},function(e,t){e.exports=n(36)},function(e,t){e.exports=n(35)},function(e,t){e.exports=n(45)},function(e,t){e.exports=n(11)},function(e,t){e.exports=n(56)},function(e,t){e.exports=n(28)},function(e,t){e.exports=n(57)},function(e,t){e.exports=n(83)},function(e,t,n){var i=n(0),o=n(6),a=n.n(o),s=n(30),l=n.n(s),u=n(59),c=n(1),d=n.n(c),f=n(3),p=n.n(f),h=a()("downloader:providers"),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t?"".concat(t,"-converter"):"unknown-converter",r={ec:n};e.on("run",(function(e){h.info(n,"Send analytics run downloader."),i.a.sendMessage({action:"trackConverterStat",params:M({ea:"init-converter",el:"true"},r)})})),e.on("completed",(function(e){h.info(n,"Send analytics downloader completed."),i.a.sendMessage({action:"trackConverterStat",params:M({ea:"completed-converter",el:"true"},r)})})),e.on("error",(function(t){e.sendError||(h.info(n,"Send analytics error downloader - "+t.message),i.a.sendMessage({action:"trackConverterStat",params:M({ea:"error-converter",el:t.message,cd3:location.href},r)}),e.sendError=!0)}))},g=n(4),b=n(71),y=n.n(b),A=n(72),w=n.n(A),k=n(19),x=n.n(k),C=n(73),S=n.n(C),_=n(23),I=n.n(_),O={margin:"0 12px"},E=function(e){var t=e.title,n=e.status,r=e.progress,i=e.progressStatus,o=e.onClickCancel,a=e.error,s=I()(S.a),l=d.a.useMemo((function(){return{width:r+"%"}}),[r]);return d.a.createElement("div",{className:x()(s.ffDownloader)},d.a.createElement("div",{className:s.container},d.a.createElement("div",{onClick:o,className:s.closeBtn,style:{backgroundImage:"url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgb3BhY2l0eT0iMC42Ij4KPHBhdGggZD0iTTEzLjY4IDE0LjIyQzEzLjUzNjggMTQuMjE5OSAxMy4zOTk2IDE0LjE2MjkgMTMuMjk4NCAxNC4wNjE2TDMuOTM4MzkgNC43MDE2MkMzLjg0MyA0LjU5OTI1IDMuNzkxMDcgNC40NjM4NiAzLjc5MzU0IDQuMzIzOTZDMy43OTYwMSA0LjE4NDA2IDMuODUyNjggNC4wNTA1OSAzLjk1MTYyIDMuOTUxNjVDNC4wNTA1NiAzLjg1MjcxIDQuMTg0MDMgMy43OTYwNCA0LjMyMzkzIDMuNzkzNTdDNC40NjM4MyAzLjc5MTEgNC41OTkyMiAzLjg0MzAzIDQuNzAxNTkgMy45Mzg0MkwxNC4wNjE2IDEzLjI5ODRDMTQuMTM3IDEzLjM3MzkgMTQuMTg4NCAxMy40NzAxIDE0LjIwOTIgMTMuNTc0OEMxNC4yMyAxMy42Nzk1IDE0LjIxOTMgMTMuNzg4IDE0LjE3ODQgMTMuODg2NkMxNC4xMzc2IDEzLjk4NTIgMTQuMDY4NSAxNC4wNjk1IDEzLjk3OTcgMTQuMTI4OUMxMy44OTEgMTQuMTg4MiAxMy43ODY3IDE0LjIxOTkgMTMuNjggMTQuMjJaIiBmaWxsPSIjNDM0MzQzIi8+CjxwYXRoIGQ9Ik00LjMyMDI5IDE0LjIyQzQuMjEzNTUgMTQuMjE5OSA0LjEwOTI0IDE0LjE4ODIgNC4wMjA1MyAxNC4xMjg5QzMuOTMxODEgMTQuMDY5NSAzLjg2MjY3IDEzLjk4NTIgMy44MjE4NCAxMy44ODY2QzMuNzgxMDEgMTMuNzg4IDMuNzcwMzIgMTMuNjc5NSAzLjc5MTExIDEzLjU3NDhDMy44MTE5MSAxMy40NzAxIDMuODYzMjYgMTMuMzczOSAzLjkzODY5IDEzLjI5ODRMMTMuMjk4NyAzLjkzODQyQzEzLjQwMTEgMy44NDMwMyAxMy41MzY0IDMuNzkxMSAxMy42NzYzIDMuNzkzNTdDMTMuODE2MiAzLjc5NjA0IDEzLjk0OTcgMy44NTI3MSAxNC4wNDg3IDMuOTUxNjVDMTQuMTQ3NiA0LjA1MDU5IDE0LjIwNDMgNC4xODQwNiAxNC4yMDY3IDQuMzIzOTZDMTQuMjA5MiA0LjQ2Mzg2IDE0LjE1NzMgNC41OTkyNSAxNC4wNjE5IDQuNzAxNjJMNC43MDE4OSAxNC4wNjE2QzQuNjAwNzEgMTQuMTYyOSA0LjQ2MzQ2IDE0LjIxOTkgNC4zMjAyOSAxNC4yMloiIGZpbGw9IiM0MzQzNDMiLz4KPC9nPgo8L3N2Zz4K)"}}),a&&d.a.createElement("div",{className:s.error},d.a.createElement("div",{className:s.errorText},"Error:")," ",a.message," "),!a&&d.a.createElement("div",null,d.a.createElement("p",{className:s.fileName},"Filename: ",t),d.a.createElement("div",{className:s.footer},d.a.createElement("div",{style:O},d.a.createElement("div",{className:s.loadingBar},d.a.createElement("div",{className:s.progressBar,style:l})),d.a.createElement("div",{className:s.status},d.a.createElement("div",{className:s.statusState},d.a.createElement("div",null,n),d.a.createElement("div",null,i)),d.a.createElement("div",{className:s.statusPercentage},r,"%")))))))},L=n(74),N=n.n(L),T=function(e){var t=e.title,n=e.status,r=e.progress,i=e.progressStatus,o=e.onClickCancel,a=e.error,s=e.blob,l=e.onClickShowTip,u=e.showTip,c=I()(N.a),f=d.a.useMemo((function(){return{width:r+"%"}}),[r]);return d.a.createElement("div",{className:x()(c.ffDownloader)},d.a.createElement("div",{className:c.container},d.a.createElement("svg",{width:"12",height:"12",viewBox:"0 0 39 39",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:l,className:x()(c.showTipBtn,u&&c.activeShowTip)},d.a.createElement("path",{d:"M19.5006 3.2522C10.536 3.2522 3.25293 10.5353 3.25293 19.4999C3.25293 28.4645 10.536 35.7476 19.5006 35.7476C28.4653 35.7476 35.7484 28.4645 35.7484 19.4999C35.7484 10.5353 28.4653 3.2522 19.5006 3.2522ZM19.5006 4.72926C27.667 4.72926 34.2713 11.3336 34.2713 19.4999C34.2713 27.6663 27.667 34.2706 19.5006 34.2706C11.3343 34.2706 4.72999 27.6663 4.72999 19.4999C4.72999 11.3336 11.3343 4.72926 19.5006 4.72926ZM19.5006 10.6375C16.6542 10.6375 14.3309 12.9608 14.3309 15.8072C14.3295 15.9051 14.3476 16.0023 14.3841 16.0931C14.4206 16.1839 14.4748 16.2666 14.5435 16.3363C14.6122 16.406 14.6941 16.4613 14.7844 16.4991C14.8747 16.5368 14.9716 16.5563 15.0694 16.5563C15.1673 16.5563 15.2642 16.5368 15.3545 16.4991C15.4448 16.4613 15.5267 16.406 15.5954 16.3363C15.6641 16.2666 15.7183 16.1839 15.7548 16.0931C15.7913 16.0023 15.8094 15.9051 15.808 15.8072C15.808 13.7591 17.4525 12.1146 19.5006 12.1146C21.5488 12.1146 23.1933 13.7591 23.1933 15.8072C23.2077 17.4659 22.3172 18.3589 21.22 19.3961C20.6715 19.9146 20.0851 20.4437 19.6045 21.1039C19.1239 21.7641 18.7621 22.5871 18.7621 23.5618V23.9311C18.7607 24.029 18.7788 24.1261 18.8153 24.217C18.8518 24.3078 18.906 24.3904 18.9747 24.4601C19.0434 24.5298 19.1253 24.5852 19.2156 24.6229C19.3059 24.6607 19.4028 24.6802 19.5006 24.6802C19.5985 24.6802 19.6954 24.6607 19.7857 24.6229C19.876 24.5852 19.9579 24.5298 20.0266 24.4601C20.0953 24.3904 20.1495 24.3078 20.186 24.217C20.2225 24.1261 20.2406 24.029 20.2392 23.9311V23.5618C20.2392 22.9289 20.4376 22.4577 20.7931 21.9694C21.1486 21.481 21.6721 21.0019 22.2355 20.4692C23.3603 19.4059 24.6847 18.0253 24.6704 15.8072C24.6703 15.8031 24.6704 15.7998 24.6704 15.7957C24.664 12.9546 22.3431 10.6375 19.5006 10.6375ZM19.5006 26.1467C18.8888 26.1467 18.3928 26.6427 18.3928 27.2545C18.3928 27.8663 18.8888 28.3623 19.5006 28.3623C20.1125 28.3623 20.6084 27.8663 20.6084 27.2545C20.6084 26.6427 20.1125 26.1467 19.5006 26.1467Z"})),d.a.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,className:c.closeBtn},d.a.createElement("g",{opacity:"0.4"},d.a.createElement("path",{d:"M9.11983 9.48007C9.02438 9.47999 8.93288 9.44201 8.86543 9.37447L2.62543 3.13447C2.56184 3.06623 2.52722 2.97597 2.52886 2.8827C2.53051 2.78944 2.56829 2.70045 2.63425 2.63449C2.70021 2.56854 2.78919 2.53075 2.88246 2.52911C2.97572 2.52746 3.06598 2.56208 3.13423 2.62567L9.37423 8.86567C9.42451 8.91602 9.45875 8.98014 9.47261 9.04993C9.48648 9.11972 9.47935 9.19205 9.45213 9.2578C9.42491 9.32354 9.37881 9.37974 9.31967 9.4193C9.26052 9.45886 9.19098 9.48001 9.11983 9.48007Z",fill:"#434343"}),d.a.createElement("path",{d:"M2.88019 9.48007C2.80904 9.48001 2.7395 9.45886 2.68035 9.4193C2.62121 9.37974 2.57512 9.32354 2.54789 9.2578C2.52067 9.19205 2.51354 9.11972 2.52741 9.04993C2.54127 8.98014 2.57551 8.91602 2.62579 8.86567L8.86579 2.62567C8.93404 2.56208 9.0243 2.52746 9.11756 2.52911C9.21083 2.53075 9.29981 2.56854 9.36577 2.63449C9.43173 2.70045 9.46951 2.78944 9.47116 2.8827C9.4728 2.97597 9.43818 3.06623 9.37459 3.13447L3.13459 9.37447C3.06714 9.44201 2.97564 9.47999 2.88019 9.48007V9.48007Z",fill:"#434343"}))),u&&d.a.createElement("div",{className:c.tipWindow},d.a.createElement("div",{className:c.tipText},d.a.createElement("svg",{width:"30",height:"30",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d.a.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 7.49902C0 3.35689 3.35787 -0.000976562 7.5 -0.000976562C11.6421 -0.000976562 15 3.35689 15 7.49902C15 11.6412 11.6421 14.999 7.5 14.999C3.35787 14.999 0 11.6412 0 7.49902ZM7.50106 3.63696C6.26032 3.63696 5.24759 4.64969 5.24759 5.89043C5.24699 5.93309 5.25487 5.97545 5.27078 6.01503C5.28668 6.05462 5.3103 6.09065 5.34025 6.12103C5.37021 6.15141 5.4059 6.17553 5.44526 6.192C5.48461 6.20846 5.52685 6.21694 5.56952 6.21694C5.61218 6.21694 5.65442 6.20846 5.69377 6.192C5.73313 6.17553 5.76882 6.15141 5.79878 6.12103C5.82873 6.09065 5.85235 6.05462 5.86825 6.01503C5.88416 5.97545 5.89204 5.93309 5.89144 5.89043C5.89144 4.99765 6.60828 4.28081 7.50106 4.28081C8.39384 4.28081 9.11068 4.99765 9.11068 5.89043C9.11696 6.61343 8.72878 7.00268 8.25054 7.45479L8.17988 7.52137C7.9618 7.72654 7.73531 7.93963 7.54633 8.19924C7.33684 8.487 7.17914 8.84575 7.17914 9.27064V9.4316C7.17853 9.47426 7.18642 9.51661 7.20232 9.5562C7.21823 9.59579 7.24185 9.63182 7.2718 9.6622C7.30175 9.69258 7.33745 9.7167 7.3768 9.73317C7.41616 9.74963 7.4584 9.75811 7.50106 9.75811C7.54373 9.75811 7.58596 9.74963 7.62532 9.73317C7.66468 9.7167 7.70037 9.69258 7.73032 9.6622C7.76028 9.63182 7.78389 9.59579 7.7998 9.5562C7.81571 9.51661 7.82359 9.47426 7.82299 9.4316V9.27064C7.82299 8.99475 7.90946 8.78936 8.06443 8.57649C8.206 8.38203 8.40867 8.19092 8.6299 7.98231L8.62991 7.9823L8.69319 7.92258C9.18349 7.45907 9.76077 6.85728 9.75453 5.89043V5.8854C9.75175 4.64699 8.7401 3.63696 7.50106 3.63696ZM7.50106 10.3974C7.23437 10.3974 7.01818 10.6136 7.01818 10.8803C7.01818 11.1469 7.23437 11.3631 7.50106 11.3631C7.76775 11.3631 7.98395 11.1469 7.98395 10.8803C7.98395 10.6136 7.76775 10.3974 7.50106 10.3974Z",fill:"#DD6464"})),d.a.createElement("p",null,"Если загрузка не началась, ",d.a.createElement("b",null,"разрешите сайту автоматически скачивать файлы")," и нажмите на “Cкачать”")),s&&d.a.createElement("a",{href:s,download:t},"Скачать")),a&&d.a.createElement("div",{className:c.error},d.a.createElement("div",{className:c.errorText},"Error:")," ",a.message," "),!a&&d.a.createElement("div",null,d.a.createElement("p",{className:c.fileName},"Filename: ",t),d.a.createElement("div",{className:c.footer},d.a.createElement("div",null,d.a.createElement("div",{className:c.loadingBar},d.a.createElement("div",{className:c.progressBar,style:f})),d.a.createElement("div",{className:c.status},d.a.createElement("div",{className:c.statusState},d.a.createElement("div",null,n),d.a.createElement("div",null,i)),d.a.createElement("div",{className:c.statusPercentage},r,"%")))))))},j=n(7),F=n(31),D=n.n(F);try{var R=requestAnimationFrame((function(){}));cancelAnimationFrame(R)}catch(e){g.options.requestAnimationFrame=setTimeout}var P=a()("MediaMuxer"),V="PREPARE",B="CONVERTING",U="DOWNLOADED",z="INFINITE",q="FINITE",H=d.a.memo((function(e){var t=e.sources,n=e.filename,o=e.format,a=e.unmountLayer,s=e.convertType,c=e.showConfirmOnClose,f=d.a.useState(null),h=Object(v.a)(f,2),g=h[0],b=h[1],A=d.a.useState(!1),k=Object(v.a)(A,2),x=(k[0],k[1]),C=d.a.useState("Loading..."),S=Object(v.a)(C,2),M=S[0],_=S[1],I=d.a.useState(V),O=Object(v.a)(I,2),L=O[0],N=O[1],F=d.a.useState(0),R=Object(v.a)(F,2),H=R[0],W=R[1],Q=d.a.useState(""),Z=Object(v.a)(Q,2),G=Z[0],Y=Z[1],J=d.a.useState(z),K=Object(v.a)(J,2),X=(K[0],K[1]),$=d.a.useState(null),ee=Object(v.a)($,2),te=ee[0],ne=ee[1],re=d.a.useState(!1),ie=Object(v.a)(re,2),oe=ie[0],ae=ie[1],se=d.a.useRef();d.a.useEffect((function(){function e(){a()}return p.a.onRemoveEvent(se.current,e),function(){p.a.offRemoveEvent(se.current,e)}}),[]),d.a.useEffect((function(){var e,c={run:[],completed:[],error:[]},d=function(e,t){return c[e].forEach((function(e){return e(t)}))};m({on:function(e,t){c[e]&&c[e].push(t)}},"youtube-merge");var f=!0,p=new u.a(se.current);p.onProgress=function(e,t){f&&(W(Math.trunc(100*e)),[q,z].includes(t)&&X(t))},p.onProgressStatus=function(e){f&&Y(e)},p.onStatus=function(e,t){f&&(_(e),[V,B,U].includes(t)&&N(t))},d("run");var h=w()(),g=y()();return(e=p.init().then((function(){return Object(j.a)({category:"download-start",subcategory:D()(),event:"video"}),"hls"===s?p.hls(t,n,o):"hlsToMp3"===s?p.hlsToMp3(t,n):p.join(t,n,o)})).then((function(){if(f){if(i.a.isFirefox)return p.download(),setTimeout(a,3e3);p.getBuiltBlob().then((function(e){var t=document.createElement("a"),n=URL.createObjectURL(e.blob);t.href=n,t.download=e.filename,setTimeout((function(){t.dispatchEvent(new MouseEvent("click"))}),0),ne(n),ae(!0)}))}})).then((function(){Object(j.a)({category:"download-complete",subcategory:D()(),event:"video"}),d("completed"),f&&(x(!0),_("Complete"),N(U))}),(function(e){d("error",e),f&&(P.error("Join error",e),b(e))}))).then.apply(e,Object(r.a)(l()((function(){h(),g(),f&&x(!0)})))),function(){f=!1,h(),g()}}),[]);var le=d.a.useCallback((function(){(L===U||!c||confirm(i.a.i18n.getMessage("are_you_sure_interrupt_download")))&&a()}),[L]),ue=d.a.useCallback((function(){return ae(!oe)}),[ae,oe]);return i.a.isFirefox?d.a.createElement("div",{ref:se},d.a.createElement(E,{title:n,format:o,status:M,progress:H,progressStatus:G,onClickCancel:le,error:g})):d.a.createElement("div",{ref:se},d.a.createElement(T,{title:n,format:o,status:M,progress:H,progressStatus:G,onClickCancel:le,error:g,blob:te,onClickShowTip:ue,showTip:oe}))}));t.a=H},function(e,t,n){var r=n(0);t.a=function(e){return new Promise((function(t){return r.a.storage.get(e,t)}))}},function(e,t){e.exports=n(84)},function(e,t){e.exports=n(37)},function(e,t){e.exports=n(24)},function(e,t){e.exports=n(46)},function(e,t){e.exports=n(26)},function(e,t){e.exports=n(18)},,function(e,t){e.exports=n(86)},function(e,t){e.exports=n(17)},function(e,t){e.exports=n(13)},function(e,t){e.exports=n(87)},function(e,t){e.exports=n(21)},function(e,t,n){n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return g}));var r=n(0),i=n(1),a=n.n(i),s=n(83),l=n.n(s),u=n(19),c=n.n(u),d=n(23),f=n.n(d),p="matchtv",h="vk",m=a.a.memo((function(e){var t=e.items,n=void 0===t?[]:t,i=e.theme,s=e.children,u=f()(l.a),d=a.a.useState(!1),m=Object(v.a)(d,2),g=m[0],b=m[1],y=a.a.useRef(),A=a.a.useRef(),w=a.a.useRef(),k=a.a.useMemo((function(){var e;return(e={twitch:u.themeTwitch},Object(o.a)(e,h,u.themeVk),Object(o.a)(e,p,u.themeMatchtv),e)[i]}),[i]),x=a.a.useCallback((function(){b((function(e){return!e}))}),[]);return a.a.useEffect((function(){var e=function(e){var t=e.target===y.current||y.current.contains(e.target),n=e.target===A.current;t||n||!w.current.classList.contains(u.show)||x()};return document.addEventListener("click",e),function(){document.removeEventListener("click",e)}}),[]),a.a.createElement("div",{ref:y,className:k},a.a.createElement("div",{ref:A,onClick:x},s),a.a.createElement("div",{ref:w,className:c()(u.itemContainer,g?u.show:u.hide)},!n.length&&a.a.createElement("div",{className:u.message},r.a.i18n.getMessage("noLinksFound")),n.map((function(e){return a.a.createElement("div",{onClick:e.onClick,className:u.item},a.a.createElement("div",null,e.title))}))))})),g=function(e){return a.a.createElement("div",null,e.children)}},,function(e,t){e.exports=n(20)},function(e,t){e.exports=n(29)},function(e,t,n){n.d(t,"a",(function(){return c}));var r=n(0),o=n(11),l=n(8),u=n.n(l),c=function(){function e(){Object(a.a)(this,e),this.active=1,this.utils=void 0,this.settings=void 0,this.cache=d}var t;return Object(s.a)(e,[{key:"start",value:(t=Object(i.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.a.callFn("getPreferences");case 2:this.settings=e.sent,this.utils=Object(o.a)({preferences:this.settings}),this.defaultListeners(),this.init&&this.init();case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"defaultListeners",value:function(){var e=this;document.addEventListener("file.download",(function(t){var n=t.detail;e.utils.download(n.filename,n.downloadURL)}))}},{key:"initObserver",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.observer=new u.a({queries:e.map((function(e){return{css:e.selector,callback:e.handle.bind(e),is:e.type}}))}),this.observer.start()}},{key:"appendStyle",value:function(e){var t=document.createElement("style");t.textContent=e,document.body.appendChild(t)}}]),e}(),d=function(){function e(){Object(a.a)(this,e)}return Object(s.a)(e,null,[{key:"set",value:function(e,t,n){localStorage.setItem(e,JSON.stringify({val:t,expires:n?Date.now()+60*n*1e3:-1}))}},{key:"get",value:function(e){var t=localStorage.getItem(e);if(!t)return null;var n=JSON.parse(t),r=n.val,i=n.expires;return r&&-1===i||i>Date.now()?r:null}}]),e}()},function(e,t){e.exports=n(146)},function(e,t){e.exports=n(42)},,function(e,t){e.exports=n(88)},function(e,t){e.exports=n(43)},function(e,t){e.exports=n(89)},function(e,t){e.exports=n(90)},,,,function(e,t){e.exports=n(58)},function(e,t){e.exports=n(25)},,function(e,t,n){var i=n(0),o=n(67),l=n.n(o),u=n(68),c=n.n(u),d=n(69),f=n.n(d),p=n(52),h=n(60),m=n.n(h),v=n(62),b=n.n(v),y=n(30),A=n.n(y),w=n(70),k=n.n(w);t.a=function(){function e(t){var n=this;Object(a.a)(this,e),this.frameListener=function(e){if(n.frame&&e.source===n.frame.contentWindow){var t=e.data;t&&n.onMessage(e,t)}},this.frameCtr=t,this.frame=null,this.isLoaded=!1,this.destroyed=!1,this.messageStack=[],this.onDestroy=[],this.requestPrefix=k()(),this.initTransport(),this.onDestroy.push(m()((function(){var e=function(){return i.a.callFn("clearRequestByPrefix",[n.requestPrefix])};return window.addEventListener("unload",e),function(){window.removeEventListener("unload",e)}})))}return Object(s.a)(e,[{key:"onProgress",value:function(e,t){}},{key:"onProgressStatus",value:function(e){}},{key:"onStatus",value:function(e,t){}},{key:"download",value:function(){return this.transport.callFn("download")}},{key:"getBuiltBlob",value:function(){return this.transport.callFn("getBuiltBlob")}},{key:"join",value:function(e,t,n){return this.transport.callFn("join",[{sources:e,filename:t,format:n}])}},{key:"hls",value:function(e,t,n){return this.transport.callFn("hls",[{sources:e,filename:t,format:n}])}},{key:"hlsToMp3",value:function(e,t){return this.transport.callFn("hlsToMp3",[{sources:e,filename:t}])}},{key:"initTransport",value:function(){var e=this,t=this;this.transport=new l.a({onMessage:function(e){t.onMessage=e},sendMessage:function(e){t.postMessage(e)}},this.getScope()),this.transport.onMessage((function(t,n,r){switch(t.action){case"progress":e.onProgress(t.progress,t.type);break;case"progressStatus":e.onProgressStatus(t.status);break;case"status":e.onStatus(t.status,t.code)}}))}},{key:"getScope",value:function(){var e=this;return{createFetchInstance:function(t){var n=t.url,i=t.options,o=Object(p.instanceCreate)((function(){a();var t=function(e,t){var n=t||{},r=n.responseStatus,i=n.responseOk,o=void 0===i||i,a=n.responseType,s=void 0===a?"text":a,l=(n.requestPrefix,Object(g.a)(n,["responseStatus","responseOk","responseType","requestPrefix"])),u=null;l.signal={aborted:!1,addEventListener:function(e,t){"abort"===e&&(u=t)}};var d=f()(e,l).then((function(e){if(o&&!e.ok||r&&r!==e.status)throw new c.a(e);var t={};["ok","redirected","status","statusText","type","url"].forEach((function(n){t[n]=e[n]}));var n={};return e.headers.forEach((function(e,t){n[t]=e})),t.headers=n,e[s]().then((function(e){return{response:t,body:e}}))}));return d.abort=function(){u&&u()},d}(n,M(M({},i),{},{requestPrefix:e.requestPrefix}));return t.then.apply(t,Object(r.a)(A()(m()((function(){function n(){t.abort()}return e.onDestroy.push(n),function(){return b()(e.onDestroy,n)}}))))),t}),["abort"]),a=m()((function(){function t(){Object(p.instanceDestroy)(o.id)}return e.onDestroy.push(t),function(){return b()(e.onDestroy,t)}}));return o},instanceInit:function(e){var t=e.id;return Object(p.instanceInit)(t)},instanceCallFn:function(e){var t=e.id,n=e.path,r=e.args;return Object(p.instanceCallFn)(t,n,r)}}}},{key:"onMessage",value:function(){throw new Error("onMessage is not set")}},{key:"init",value:function(){var e=this;return new Promise((function(t,n){e.destroyFrame(),window.addEventListener("message",e.frameListener);var r=e.frame=document.createElement("iframe");r.src="https://sf-helper.com/static/joiner2/frame2.html",r.style.position="absolute",r.style.height="0px",r.style.width="0px",r.style.top="-9999px",r.style.left="-9999px",r.onload=function(){r.onload=r.onerror=null,e.isLoaded=!0;var i=setTimeout((function(){n(new Error("Load frame timeout"))}),3e4);try{e.transport.sendMessage({action:"ping"},(function(){clearTimeout(i),t()}))}catch(e){n(e)}},r.onerror=function(){r.onload=r.onerror=null,n(new Error("Load frame error"))},e.frameCtr.appendChild(r)})).then((function(){for(;e.messageStack.length;)e.postMessage(e.messageStack.shift())}))}},{key:"postMessage",value:function(e){if(!this.destroyed)if(this.isLoaded){if(!this.frame.contentWindow)throw new Error("Window is closed");this.frame.contentWindow.postMessage(e,"*")}else this.messageStack.push(e)}},{key:"destroyFrame",value:function(){window.removeEventListener("message",this.frameListener),this.frame&&this.frame.parentNode&&this.frame.parentNode.removeChild(this.frame)}},{key:"destroy",value:function(){this.destroyed=!0,this.destroyFrame(),this.onDestroy.splice(0).forEach((function(e){return e()}))}}]),e}()},function(e,t){e.exports=n(91)},,function(e,t){e.exports=n(92)},function(e,t){e.exports=n(59)},,function(e,t){e.exports=n(93)},function(e,t){e.exports=n(94)},function(e,t){e.exports=n(95)},function(e,t){e.exports=n(97)},function(e,t){e.exports=n(98)},function(e,t){e.exports=n(50)},function(e,t){e.exports=n(147)},function(e,t){e.exports=n(99)},function(e,t,n){var r=n(32),i=n(91);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o,a=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},l={};l.locals=i.locals||{},l.use=function(){return a++||(o=r(i,s)),l},l.unuse=function(){a>0&&!--a&&(o(),o=null)},e.exports=l},function(e,t,n){var r=n(32),i=n(92);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o,a=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},l={};l.locals=i.locals||{},l.use=function(){return a++||(o=r(i,s)),l},l.unuse=function(){a>0&&!--a&&(o(),o=null)},e.exports=l},function(e,t,n){var r=n(32),i=n(93);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o,a=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},l={};l.locals=i.locals||{},l.use=function(){return a++||(o=r(i,s)),l},l.unuse=function(){a>0&&!--a&&(o(),o=null)},e.exports=l},function(e,t,n){var r=n(32),i=n(94);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o,a=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},l={};l.locals=i.locals||{},l.use=function(){return a++||(o=r(i,s)),l},l.unuse=function(){a>0&&!--a&&(o(),o=null)},e.exports=l},function(e,t){e.exports=n(62)},function(e,t,n){var r=n(32),i=n(95);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o,a=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},l={};l.locals=i.locals||{},l.use=function(){return a++||(o=r(i,s)),l},l.unuse=function(){a>0&&!--a&&(o(),o=null)},e.exports=l},function(e,t,n){var r=n(32),i=n(96);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o,a=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},l={};l.locals=i.locals||{},l.use=function(){return a++||(o=r(i,s)),l},l.unuse=function(){a>0&&!--a&&(o(),o=null)},e.exports=l},function(e,t,n){var r=n(32),i=n(97);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o,a=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},l={};l.locals=i.locals||{},l.use=function(){return a++||(o=r(i,s)),l},l.unuse=function(){a>0&&!--a&&(o(),o=null)},e.exports=l},,,function(e,t,n){var r=n(32),i=n(100);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o,a=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},l={};l.locals=i.locals||{},l.use=function(){return a++||(o=r(i,s)),l},l.unuse=function(){a>0&&!--a&&(o(),o=null)},e.exports=l},,,,,,,,function(e,t,n){n.r(t);var r=n(21),i=n.n(r)()(!1);i.push([e.i,".IA4ff--ff-downloader{display:block;overflow:hidden;width:376px;background:#fff;z-index:99999999;transition:.5s;border:1px solid #dedede;box-sizing:border-box;box-shadow:0 -10px 10px rgba(91,91,91,.06),-10px 0 10px rgba(91,91,91,.06),0 10px 10px rgba(91,91,91,.06);border-radius:10px;font-family:sans-serif;font-style:normal;font-weight:600;font-size:16px;line-height:22px;color:#434343}._3dm6a--close-btn{height:18px;width:18px;background-size:100%;border-radius:4px;cursor:pointer;position:absolute;top:5px;right:9px}._3dm6a--close-btn:hover{background:#e2dede}._3fFst--file-name{font-weight:400;font-size:12px;line-height:14px;padding:6px 12px;margin:0 auto}._3-2Az--status{padding-bottom:6px;font-size:14px;margin-top:12px}._3-2Az--status,._2SAq4--status-state{display:flex;justify-content:space-between}._2SAq4--status-state{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._2SAq4--status-state>div:first-child{margin-right:8px;font-weight:700}.sdrC4--status-percentage{color:#77cb35;font-weight:700}._1E_Fg--error{color:red;padding:10px;font-size:14px;display:flex;margin-left:12px}._2wdod--error-text{font-weight:700;margin-right:7px}._2q8i4--container{position:relative;height:100%;line-height:1}._2q8i4--container ._1Gxfa--notice{margin-top:21px;font-size:11px;border:0;color:rgba(0,0,0,.88)}._35EDl--footer{height:40px;width:100%;background:#fff}._35EDl--footer ._1sLOY--loader{-webkit-animation:_1bszC--rotation 3.5s linear forwards;animation:_1bszC--rotation 3.5s linear forwards;border-radius:50%;border:5px solid #fff;border-top-color:#a29bfe;height:70px;width:70px;display:flex;justify-content:center;align-items:center}._35EDl--footer ._3rmUp--loading-bar{width:100%;height:6px;background:#dfe6e9;border-radius:5px}._35EDl--footer ._3rmUp--loading-bar ._3PMgF--progress-bar{height:100%;background:#8bc34a;border-radius:5px}",""]),i.locals={"ff-downloader":"IA4ff--ff-downloader",ffDownloader:"IA4ff--ff-downloader","close-btn":"_3dm6a--close-btn",closeBtn:"_3dm6a--close-btn","file-name":"_3fFst--file-name",fileName:"_3fFst--file-name",status:"_3-2Az--status","status-state":"_2SAq4--status-state",statusState:"_2SAq4--status-state","status-percentage":"sdrC4--status-percentage",statusPercentage:"sdrC4--status-percentage",error:"_1E_Fg--error","error-text":"_2wdod--error-text",errorText:"_2wdod--error-text",container:"_2q8i4--container",notice:"_1Gxfa--notice",footer:"_35EDl--footer",loader:"_1sLOY--loader",rotation:"_1bszC--rotation","loading-bar":"_3rmUp--loading-bar",loadingBar:"_3rmUp--loading-bar","progress-bar":"_3PMgF--progress-bar",progressBar:"_3PMgF--progress-bar"},t.default=i},function(e,t,n){n.r(t);var r=n(21),i=n.n(r)()(!1);i.push([e.i,".TLrqR--ff-downloader{display:block;overflow:hidden;width:300px;background:#fff;z-index:99999999;transition:.5s;border:1px solid #dedede;box-sizing:border-box;box-shadow:0 -10px 10px rgba(91,91,91,.06),-10px 0 10px rgba(91,91,91,.06),0 10px 10px rgba(91,91,91,.06);border-radius:10px;font-family:sans-serif;font-style:normal;font-weight:600;font-size:16px;line-height:22px;color:#434343;padding:16px 14px}._3kisY--close-btn{background-size:100%;border-radius:4px;cursor:pointer;position:absolute;top:-11px;right:9px}._3kisY--close-btn:hover{background:#e2dede}.NoqX7--show-tip-btn{background-size:100%;border-radius:4px;cursor:pointer;position:absolute;top:-11px;right:30px}.NoqX7--show-tip-btn path{fill:#434343;stroke:#434343}.NoqX7--show-tip-btn._1aGqd--active-show-tip path{fill:#dd6464;stroke:#dd6464}.NoqX7--show-tip-btn._1aGqd--active-show-tip{background-color:#fcf0f0}.NoqX7--show-tip-btn:hover path{fill:#dd6464;stroke:#dd6464}._3n5gf--file-name{text-overflow:ellipsis;overflow:hidden;width:216px;font-weight:400;font-size:12px;line-height:14px;margin:12px 0}._1vRnH--status{font-size:14px;margin-top:12px}._1vRnH--status,._7Hual--status-state{display:flex;justify-content:space-between}._7Hual--status-state{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._7Hual--status-state>div:first-child{margin-right:8px;font-weight:700}._1RYBO--status-percentage{color:#77cb35;font-weight:700}._1nQko--error{color:red;font-size:14px;display:flex;margin-left:12px}._2tKo9--error-text{font-weight:700;margin-right:7px}._2s9gW--container{position:relative;height:100%;line-height:1}._2s9gW--container ._33B9N--notice{margin-top:21px;font-size:11px;border:0;color:rgba(0,0,0,.88)}.TEgm5--footer{width:100%;background:#fff}.TEgm5--footer ._1nEH0--loader{-webkit-animation:_2E9Cu--rotation 3.5s linear forwards;animation:_2E9Cu--rotation 3.5s linear forwards;border-radius:50%;border:5px solid #fff;border-top-color:#a29bfe;height:70px;width:70px;display:flex;justify-content:center;align-items:center}.TEgm5--footer .YTS1C--loading-bar{width:100%;height:8px;background:#dfe6e9;border-radius:5px}.TEgm5--footer .YTS1C--loading-bar ._1ynZw--progress-bar{height:100%;background:#8bc34a;border-radius:6px}._2x0sx--tip-window{padding:15px 11px;background-color:#fcf0f0;border-radius:6px;font-family:Open Sans;font-style:normal;font-weight:400;font-size:8px;line-height:10px;color:#434343;justify-content:space-between}._2x0sx--tip-window,._2x0sx--tip-window ._3Jng7--tip-text{display:flex}._2x0sx--tip-window p{margin:0;padding-left:8px}._2x0sx--tip-window a{display:block;font-family:Open Sans;font-style:normal;font-weight:600;font-size:10px;line-height:10px;-webkit-text-decoration-line:underline;text-decoration-line:underline;color:#77cb35}",""]),i.locals={"ff-downloader":"TLrqR--ff-downloader",ffDownloader:"TLrqR--ff-downloader","close-btn":"_3kisY--close-btn",closeBtn:"_3kisY--close-btn","show-tip-btn":"NoqX7--show-tip-btn",showTipBtn:"NoqX7--show-tip-btn","active-show-tip":"_1aGqd--active-show-tip",activeShowTip:"_1aGqd--active-show-tip","file-name":"_3n5gf--file-name",fileName:"_3n5gf--file-name",status:"_1vRnH--status","status-state":"_7Hual--status-state",statusState:"_7Hual--status-state","status-percentage":"_1RYBO--status-percentage",statusPercentage:"_1RYBO--status-percentage",error:"_1nQko--error","error-text":"_2tKo9--error-text",errorText:"_2tKo9--error-text",container:"_2s9gW--container",notice:"_33B9N--notice",footer:"TEgm5--footer",loader:"_1nEH0--loader",rotation:"_2E9Cu--rotation","loading-bar":"YTS1C--loading-bar",loadingBar:"YTS1C--loading-bar","progress-bar":"_1ynZw--progress-bar",progressBar:"_1ynZw--progress-bar","tip-window":"_2x0sx--tip-window",tipWindow:"_2x0sx--tip-window","tip-text":"_3Jng7--tip-text",tipText:"_3Jng7--tip-text"},t.default=i},function(e,t,n){n.r(t);var r=n(21),i=n.n(r)()(!1);i.push([e.i,"._1ZCaa--information{border-left:4px solid #c58d39;background:rgba(255,178,63,.76);font-weight:700;color:#191919;margin-bottom:12px;font-size:13px;line-height:1.5;padding:5px}._14ZoA--filesCount{margin-bottom:4px;font-size:13px}._23oew--progress{position:relative;height:21px;background-color:#e8e8e8;border-radius:3px;overflow:hidden}._23oew--progress ._3Zbxt--line{height:21px;position:absolute;background-color:#0cf;border-radius:5px;transition:width .1s}._23oew--progress ._1_rf_--text{position:absolute;top:3px;left:5px;display:flex}._23oew--progress ._1Vd2Z--filename{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:226px;margin-right:10px}",""]),i.locals={information:"_1ZCaa--information",filesCount:"_14ZoA--filesCount",progress:"_23oew--progress",line:"_3Zbxt--line",text:"_1_rf_--text",filename:"_1Vd2Z--filename"},t.default=i},function(e,t,n){n.r(t);var r=n(21),i=n.n(r)()(!1);i.push([e.i,".f6_Yv--popup--container{position:absolute;right:40px;width:270px;background:#fff;border:1px solid hsla(0,0%,50.2%,.2);z-index:9999;top:7px;min-height:76px;font-size:14px;border-radius:5px;box-shadow:1px 1px 11px rgba(0,0,0,.24);color:#000}._3P3ml--flex-column{display:flex;flex-direction:column}._2oZ5H--popup--title{padding:4px;background:#efefef}._2hXtY--popup--body{font-size:17px;padding:1px 25px 32px}.yMYoc--btn{background:#6bcc3e;color:#fff;border-radius:3px;padding:9px 10px;display:block;text-align:center;box-shadow:0 6px 18px -5px #6bcc3e;width:179px;margin:23px auto 0}.yMYoc--btn,.yMYoc--btn:hover{text-decoration:none}._190oX--text--container{text-align:center}._2omPX--sub-text--container{font-size:12px;color:#4c4c4c;text-align:center;display:block}._2Sq05--close{width:30px;font-size:17px;color:#c0c5cb;align-self:flex-end;background-color:transparent;border:none;margin-top:3px;margin-right:3px;cursor:pointer}.JkFLZ--hidden{display:none}._2xVWx--circle-loader--icon{-webkit-animation-name:_3eONx--spin;animation-name:_3eONx--spin;-webkit-animation-duration:5s;animation-duration:5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}._2Fl6I--icon{width:51px;opacity:.3;margin:0 auto 12px}@-webkit-keyframes _3eONx--spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _3eONx--spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",""]),i.locals={"popup--container":"f6_Yv--popup--container",popupContainer:"f6_Yv--popup--container","flex-column":"_3P3ml--flex-column",flexColumn:"_3P3ml--flex-column","popup--title":"_2oZ5H--popup--title",popupTitle:"_2oZ5H--popup--title","popup--body":"_2hXtY--popup--body",popupBody:"_2hXtY--popup--body",btn:"yMYoc--btn","text--container":"_190oX--text--container",textContainer:"_190oX--text--container","sub-text--container":"_2omPX--sub-text--container",subTextContainer:"_2omPX--sub-text--container",close:"_2Sq05--close",hidden:"JkFLZ--hidden","circle-loader--icon":"_2xVWx--circle-loader--icon",circleLoaderIcon:"_2xVWx--circle-loader--icon",spin:"_3eONx--spin",icon:"_2Fl6I--icon"},t.default=i},function(e,t,n){n.r(t);var r=n(21),i=n.n(r)()(!1);i.push([e.i,".mJsPd--hidden--shadow{box-shadow:inset -2px 1px 2px 0 rgba(0,0,0,.4)}._1rD1i--hidden--viewer::-webkit-scrollbar{width:.5em}._1rD1i--hidden--viewer::-webkit-scrollbar-track{background:#e0dada}._1rD1i--hidden--viewer::-webkit-scrollbar-thumb{background-color:#6b6969;border-radius:3px}.GhBlA--dropdown--item{display:block;padding:0 5px;white-space:nowrap;overflow:hidden;line-height:24px;color:#3d3d3d}.GhBlA--dropdown--item,.GhBlA--dropdown--item:hover{text-decoration:none}.P8atp--dropdown--container{display:flex;justify-content:space-between}.JyzBs--dropdown--format{min-width:36px}._6YFFO--dropdown--quality{min-width:42px;margin-left:6px;display:flex;justify-content:space-between}._3-xgu--quality--badge{background-color:#505050;color:#fff;padding-left:2px;padding-right:2px;height:19px;vertical-align:middle;margin-top:2px;border-radius:3px;line-height:21px;margin-left:2px}.kgZxX--dropdown--action{width:30px;display:flex;justify-content:flex-end}.kgZxX--dropdown--action img{width:14px;margin-left:4px}._1rD1i--hidden--viewer{max-height:192px;overflow-y:scroll;background:#f7f7f7}._2NTis--size--icon{font-size:72%;font-weight:400;margin-left:2px;white-space:nowrap}.So4Gk--separator{display:block;margin:1px 0;border-top:1px solid #d6d6d6}._3SKld--more--btn{text-align:center;display:block;color:rgba(44,44,44,.6)}.-fGIK--more--btn-with-pro{display:flex;justify-content:space-between}.-fGIK--more--btn-with-pro a:hover{background:none!important;color:inherit!important}._18Xft--login--btn{display:block;font-family:Roboto,sans-serif;font-style:normal;font-weight:700;font-size:13px;line-height:14px;color:#46aa4b;padding-top:8px;padding-bottom:8px;text-align:center;text-decoration:none}._3mwDU--pro-information,._3mwDU--pro-information ._3XqHH--info{display:flex;justify-content:space-between}._3mwDU--pro-information ._3XqHH--info img{width:16px;height:16px;margin-right:8px;margin-left:5px;margin-top:3px}.bl5bM--pro--label{line-height:1.9;color:#46aa4b}._2MP7R--subtitles{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}",""]),i.locals={"hidden--shadow":"mJsPd--hidden--shadow",hiddenShadow:"mJsPd--hidden--shadow","hidden--viewer":"_1rD1i--hidden--viewer",hiddenViewer:"_1rD1i--hidden--viewer","dropdown--item":"GhBlA--dropdown--item",dropdownItem:"GhBlA--dropdown--item","dropdown--container":"P8atp--dropdown--container",dropdownContainer:"P8atp--dropdown--container","dropdown--format":"JyzBs--dropdown--format",dropdownFormat:"JyzBs--dropdown--format","dropdown--quality":"_6YFFO--dropdown--quality",dropdownQuality:"_6YFFO--dropdown--quality","quality--badge":"_3-xgu--quality--badge",qualityBadge:"_3-xgu--quality--badge","dropdown--action":"kgZxX--dropdown--action",dropdownAction:"kgZxX--dropdown--action","size--icon":"_2NTis--size--icon",sizeIcon:"_2NTis--size--icon",separator:"So4Gk--separator","more--btn":"_3SKld--more--btn",moreBtn:"_3SKld--more--btn","more--btn-with-pro":"-fGIK--more--btn-with-pro",moreBtnWithPro:"-fGIK--more--btn-with-pro","login--btn":"_18Xft--login--btn",loginBtn:"_18Xft--login--btn","pro-information":"_3mwDU--pro-information",proInformation:"_3mwDU--pro-information",info:"_3XqHH--info","pro--label":"bl5bM--pro--label",proLabel:"bl5bM--pro--label",subtitles:"_2MP7R--subtitles"},t.default=i},function(e,t,n){n.r(t);var r=n(21),i=n.n(r)()(!1);i.push([e.i,"._3_2Gl--button{display:block;padding:5px;color:#fff;text-align:center;background:linear-gradient(180deg,#54b85b,#3a833f);border-radius:2px;text-decoration:none;font-size:12px;margin:5px}._3_2Gl--button:hover{background:#3a833f!important}",""]),i.locals={button:"_3_2Gl--button"},t.default=i},function(e,t,n){n.r(t);var r=n(21),i=n.n(r)()(!1);i.push([e.i,'._3HHgx--item--anchor{display:flex;padding:0 5px;text-decoration:none;white-space:nowrap;overflow:hidden}._3APsa--item--container{width:100%;display:block}._3APsa--item--container span{font-weight:700}._1UsEx--televzr-popup-container{border-radius:6px}._3qvYg--televzr-popup{background-color:#fff;border:1px solid #ccc;text-align:center;line-height:16px;font-size:12px;font-family:arial,sans-serif;cursor:default;border-radius:6px;padding:6px}._2VlZl--televzr-popup-header{width:114px;height:42px;margin:7px auto 8px;background:url("data:image/jpeg;base64,/9j/4QxRRXhpZgAATU0AKgAAAAgADQEAAAMAAAABBQAAAAEBAAMAAAABAeQAAAECAAMAAAADAAAAqgEGAAMAAAABAAIAAAESAAMAAAABAAEAAAEVAAMAAAABAAMAAAEaAAUAAAABAAAAsAEbAAUAAAABAAAAuAEoAAMAAAABAAIAAAExAAIAAAAiAAAAwAEyAAIAAAAUAAAA4gITAAMAAAABAAEAAIdpAAQAAAABAAAA+AAAATAACAAIAAgAC+bgAAAnEAAL5uAAACcQQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpADIwMjA6MDM6MTEgMTU6MzQ6MjAAAAAABJAAAAcAAAAEMDIyMaABAAMAAAAB//8AAKACAAQAAAABAAAAyKADAAQAAAABAAAASwAAAAAAAAAGAQMAAwAAAAEABgAAARoABQAAAAEAAAF+ARsABQAAAAEAAAGGASgAAwAAAAEAAgAAAgEABAAAAAEAAAGOAgIABAAAAAEAAAq7AAAAAAAAAEgAAAABAAAASAAAAAH/2P/tAAxBZG9iZV9DTQAC/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgAPACgAwEiAAIRAQMRAf/dAAQACv/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHxY3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcLSRJNUoxdkRVU2dGXi8rOEw9N14/NGlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vYnN0dXZ3eHl6e3x//aAAwDAQACEQMRAD8A9UTFwHJhOSuR+ufWMuh9GFi2ux/Xa+y66s7bBWxzamVUWf4L1rHbrbW/pPTZ7EQLKnq3WADcQQPE6f8AVIZy6QYNjAfAub/evK6bn414ysd7qslsxduL3QfpNs9Yv9at/wCfXb9Ndl0H61YWcWYmXXVi5x0Y1oAquP8A3We76Fv/AHVt/Sf6H10TCvFTvjqWG76ORU74WM/vRmXteJadw/kkO/6krJ6hjVHdkMraSNbmbQZ/4QCPpN/wqoCrEJn0a/i0AH/OZtUscMZCxJqz5mWORjKH2HcPUB4PB1HI7p1hYGRZVkMpD3PqsDjWHkuLHMG/a17vf6NrPzH/AM2txpkKKcDA0WfFkGSPENOjJJNISkJq9dJMnSUpJDbfQ611LbGG1gl1YcC4DT6TPpfnIiSlJJJJKUkkkkpSSSSSn//Q9ReYXA/Xh0dTxD441n/n4LvbV559e3R1HD/8L2/+fk6G6i1OkYmHmY2Uclpc5tjGMsa4tewFm/8ARn6P0v32ql1LpuRhtJsjIxHED1mtgDX2tyKv8C/9x/8ANf6OxF6Nn4uLjZRyLm1fpGOAOriNmz9FW332+79xVOpdcuy2OprHoYh+m1xG94B3fp3/AEa69N3o1/8AXbLFZqPAP3muDl96VfJYvi22/Qem+qf1jy8i/wDZmZY66wVusxch+tjhX/O0ZD/8K9tf6Si/6f8AOV3/AOkWplhtNwLNK7QXNaOGkH3tH8n85i5n6pdNyGXjq+Q011mtzMJjhDrPVGx+Vs+lXQ2v2Y+/+kep6v8ANV+/ZzMttlwYwy2oFsju4n3x/VjYm4vn02r1K5oA49d79P8A3To4Nm7Nx/8Arn/UFdFS6Wj4Lk+l2Tn0jys/6hy6qj6I+ATeY+ceX/fK5T+bP94/lFyPrP8AUrpH1nsx7OovvacVr21il7Wgh5YXb9zLP9GvOui/UnonUfrn1XoF3qtw8BjnUvY4C0lrqW/pbNjt/wDPP/MXsi86+qf/AOVL6w/8XZ/1eKo4k0fJsOieq/Vb/F1iM6PW7KyrbrDcMesC66bfY0uP6vU1rvT/AEbP5160Og/X7ofXM89NrZkYWdrsx8yv03vgeo/09j7WbmV+/Y92/YuOzn9Ur/xq5zulsxn9SLWjFGduFUHGo3+m6mH+v6bbW1f8H9pW5g/Vn62dQ+t2H9YfrAcOhuBWWMrwy8l+lwrb+l/l5Nj7Hvs/4Ouv+csQIHXtamv0MD/x3uuaD+ifw6cui+sn126L9XLK6Mz1b8q6CzGxmepZDjsY9251dbd7m+z9Jvs/wa53ohA/xvdakgbsUhs9zt6cYCy+pP6pX/jWy3dMbju6gWsGIM3eKYOLXv2Oqh/rbW3tp/8AQhGrPkLU9h0H6/dE631A9MrrycLO1LMfMr9Nz4b6j9mx9rdza/fsf+YrnQfrV03r1+ZjYrLqr+nuDMmq9gY4OJsr0hz92yyixj1z+J9WfrZ1L62YXX/rCcKhnT2bWMwy8l8C3Y39LP597nWb7f8Ag66/fa9V76XfV/8Axq0ZDYZhfWKpzHGIHrNa3e0R/hPXpxn/APoZYhQ6dlPUWfWvpbPrJX9Wmi2zqD27zsaDWwbHX/pbC4bf0Tf3f8LUsd3+NT6tC11XpZhe15ZAoJlzXGv2+794Kh/i4Y/rPWut/W69p25Vxx8Iu5FY2ueNv8mhmDTv/wCDtVr6y/WDqPWOpO+qn1XeftAO3qfUWzsx28Pqbaz/AA35tuz3/wDaer9Y9X7Iq1pTqdK+vXReq4fUszGbe2vpNQvyhZXtdsLbbf0bd3vdtx7FQy/8av1UxsbHuDrr7ckbhi1MabmAksH2gPsZVU72/Q9X1Nn6T+bVrK6B0/6v/UXqnT8FkNbgZJttIG+x/ov3W2kfnf8Antn6Niq/4q8bGb9UsbKbUwZFr7hbcGje/bbYxnqWfTfsZ7GJUKvxU//R9QsC4T699LzLfQzset1zcRtleSxgLniuxzbqsplTG77Kq376sn0/fV7Lf5v1F3rxKqZFO6DwRq0gwR/VcEYmlPibLWZFrasc+vdYdtdVRD3uP7rGN9y6XpXQKcYtyeo7MjJadzMcEPoqI+i5/wCbmXt/9haf+H/nF3F9Jc8vfXXY4gtL3saXFp/MNm3ftVY4uP3w6T8GgfkAUnEUOHmdQe0ljXE3P1seTq0Hz/0j/wDoMVEZFbIBc1o7AkBdMOm9OBkdOx5OpLm7pJ/r7lZx8VlR/QY9NHnXW0H/ADtqkjlERQiWCeGU5WSB2605XQab7bxlbSKWtc2pxBHqPeNn6OfpVVM99tv0F19LYAHhoqtFJ3b3EueeXEyVdY2Aock+I2y48YhGhr1SLIwPqv0vA63l9cx/U+25wc27c8lkOLHu2V/m+6pi10kxe4P1j+pfQvrIW2dQrezIY3Y3Ipdss2A7/Td9Ouxm76PqV/o/8GqvQv8AF19Xuh9Rr6ljnIvy6d3pWX27tu9rqnw2ttTXbq3u+muoSRs1Snl+v/4u/q91/POfl+vVdZt9YUPDW2FgDK32Ney33trb6e6r01b+sn1M6F9ZNj+oVvbkVt2MyaXbLNk7/Td9Kuxm/wBzfVrf6f8Ag1upJWfsU8v0L/F19Xuh9Rr6njuyL8und6T77d23e11T4bW2pvure5vvWl9YPqx0n6w1U19RY8nGeX1WVuLHt3DbY3e38yz89aySVndTS6P0jC6L06npuC0tx6N23c4ucS5zrbHve76Tn2Pc5c27/FT9UnAtc3Jc0ku2m90Akl30f7a7FJKyp57pX1F6B0jD6jhYTbW09VqFOUHWFx2httf6Nx+g7bkWLS6H0XC6H06vpuDv+z1Fzm+o7c6XuNjvd/Wcr6SFqf/S9UKg5gKImSU13UA9kM4w8Fc0Te1HVTUGMPBTbQB2Vj2pe1LVTBtYCIBCSSCl0kkklKSSSSUpJJJJSkkkklKSSSSUpJJJJT//2f/tE+xQaG90b3Nob3AgMy4wADhCSU0EBAAAAAAABxwCAAACAAAAOEJJTQQlAAAAAAAQ6PFc8y/BGKGie2etxWTVujhCSU0EOgAAAAAA9wAAABAAAAABAAAAAAALcHJpbnRPdXRwdXQAAAAFAAAAAFBzdFNib29sAQAAAABJbnRlZW51bQAAAABJbnRlAAAAAEltZyAAAAAPcHJpbnRTaXh0ZWVuQml0Ym9vbAAAAAALcHJpbnRlck5hbWVURVhUAAAAAQAAAAAAD3ByaW50UHJvb2ZTZXR1cE9iamMAAAAVBB8EMARABDAEPAQ1BEIEQARLACAERgQyBDUEQgQ+BD8EQAQ+BDEESwAAAAAACnByb29mU2V0dXAAAAABAAAAAEJsdG5lbnVtAAAADGJ1aWx0aW5Qcm9vZgAAAAlwcm9vZkNNWUsAOEJJTQQ7AAAAAAItAAAAEAAAAAEAAAAAABJwcmludE91dHB1dE9wdGlvbnMAAAAXAAAAAENwdG5ib29sAAAAAABDbGJyYm9vbAAAAAAAUmdzTWJvb2wAAAAAAENybkNib29sAAAAAABDbnRDYm9vbAAAAAAATGJsc2Jvb2wAAAAAAE5ndHZib29sAAAAAABFbWxEYm9vbAAAAAAASW50cmJvb2wAAAAAAEJja2dPYmpjAAAAAQAAAAAAAFJHQkMAAAADAAAAAFJkICBkb3ViQG/gAAAAAAAAAAAAR3JuIGRvdWJAb+AAAAAAAAAAAABCbCAgZG91YkBv4AAAAAAAAAAAAEJyZFRVbnRGI1JsdAAAAAAAAAAAAAAAAEJsZCBVbnRGI1JsdAAAAAAAAAAAAAAAAFJzbHRVbnRGI1B4bEBTgAAAAAAAAAAACnZlY3RvckRhdGFib29sAQAAAABQZ1BzZW51bQAAAABQZ1BzAAAAAFBnUEMAAAAATGVmdFVudEYjUmx0AAAAAAAAAAAAAAAAVG9wIFVudEYjUmx0AAAAAAAAAAAAAAAAU2NsIFVudEYjUHJjQFkAAAAAAAAAAAAQY3JvcFdoZW5QcmludGluZ2Jvb2wAAAAADmNyb3BSZWN0Qm90dG9tbG9uZwAAAAAAAAAMY3JvcFJlY3RMZWZ0bG9uZwAAAAAAAAANY3JvcFJlY3RSaWdodGxvbmcAAAAAAAAAC2Nyb3BSZWN0VG9wbG9uZwAAAAAAOEJJTQPtAAAAAAAQAE4AAAABAAEATgAAAAEAAThCSU0EJgAAAAAADgAAAAAAAAAAAAA/gAAAOEJJTQQNAAAAAAAEAAAAHjhCSU0EGQAAAAAABAAAAB44QklNA/MAAAAAAAkAAAAAAAAAAAEAOEJJTScQAAAAAAAKAAEAAAAAAAAAAThCSU0D9QAAAAAASAAvZmYAAQBsZmYABgAAAAAAAQAvZmYAAQChmZoABgAAAAAAAQAyAAAAAQBaAAAABgAAAAAAAQA1AAAAAQAtAAAABgAAAAAAAThCSU0D+AAAAAAAcAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAA4QklNBAgAAAAAABAAAAABAAACQAAAAkAAAAAAOEJJTQQeAAAAAAAEAAAAADhCSU0EGgAAAAADSwAAAAYAAAAAAAAAAAAAAEsAAADIAAAACwBsAG8AZwBvAF8AaABlAGEAZABlAHIAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAMgAAABLAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAEAAAAAAABudWxsAAAAAgAAAAZib3VuZHNPYmpjAAAAAQAAAAAAAFJjdDEAAAAEAAAAAFRvcCBsb25nAAAAAAAAAABMZWZ0bG9uZwAAAAAAAAAAQnRvbWxvbmcAAABLAAAAAFJnaHRsb25nAAAAyAAAAAZzbGljZXNWbExzAAAAAU9iamMAAAABAAAAAAAFc2xpY2UAAAASAAAAB3NsaWNlSURsb25nAAAAAAAAAAdncm91cElEbG9uZwAAAAAAAAAGb3JpZ2luZW51bQAAAAxFU2xpY2VPcmlnaW4AAAANYXV0b0dlbmVyYXRlZAAAAABUeXBlZW51bQAAAApFU2xpY2VUeXBlAAAAAEltZyAAAAAGYm91bmRzT2JqYwAAAAEAAAAAAABSY3QxAAAABAAAAABUb3AgbG9uZwAAAAAAAAAATGVmdGxvbmcAAAAAAAAAAEJ0b21sb25nAAAASwAAAABSZ2h0bG9uZwAAAMgAAAADdXJsVEVYVAAAAAEAAAAAAABudWxsVEVYVAAAAAEAAAAAAABNc2dlVEVYVAAAAAEAAAAAAAZhbHRUYWdURVhUAAAAAQAAAAAADmNlbGxUZXh0SXNIVE1MYm9vbAEAAAAIY2VsbFRleHRURVhUAAAAAQAAAAAACWhvcnpBbGlnbmVudW0AAAAPRVNsaWNlSG9yekFsaWduAAAAB2RlZmF1bHQAAAAJdmVydEFsaWduZW51bQAAAA9FU2xpY2VWZXJ0QWxpZ24AAAAHZGVmYXVsdAAAAAtiZ0NvbG9yVHlwZWVudW0AAAARRVNsaWNlQkdDb2xvclR5cGUAAAAATm9uZQAAAAl0b3BPdXRzZXRsb25nAAAAAAAAAApsZWZ0T3V0c2V0bG9uZwAAAAAAAAAMYm90dG9tT3V0c2V0bG9uZwAAAAAAAAALcmlnaHRPdXRzZXRsb25nAAAAAAA4QklNBCgAAAAAAAwAAAACP/AAAAAAAAA4QklNBBEAAAAAAAEBADhCSU0EFAAAAAAABAAAAAE4QklNBAwAAAAACtcAAAABAAAAoAAAADwAAAHgAABwgAAACrsAGAAB/9j/7QAMQWRvYmVfQ00AAv/uAA5BZG9iZQBkgAAAAAH/2wCEAAwICAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIADwAoAMBIgACEQEDEQH/3QAEAAr/xAE/AAABBQEBAQEBAQAAAAAAAAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggFAwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNUZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkNTFWNzNPElBhaisoMHJjXC0kSTVKMXZEVVNnRl4vKzhMPTdePzRpSkhbSVxNTk9KW1xdXl9VZmdoaWprbG1ub2JzdHV2d3h5ent8f/2gAMAwEAAhEDEQA/APVExcByYTkrkfrn1jLofRhYtrsf12vsuurO2wVsc2plVFn+C9ax2621v6T02exECyp6t1gA3EEDxOn/AFSGcukGDYwHwLm/3ryum5+NeMrHe6rJbMXbi90H6TbPWL/Wrf8An12/TXZdB+tWFnFmJl11YucdGNaAKrj/AN1nu+hb/wB1bf0n+h9dEwrxU746lhu+jkVO+FjP70Zl7XiWncP5JDv+pKyeoY1R3ZDK2kjW5m0Gf+EAj6Tf8KqAqxCZ9Gv4tAB/zmbVLHDGQsSas+ZljkYyh9h3D1AeDwdRyO6dYWBkWVZDKQ9z6rA41h5LixzBv2te73+jaz8x/wDNrcaZCinAwNFnxZBkjxDToySTSEpCavXSTJ0lKSQ230OtdS2xhtYJdWHAuA0+kz6X5yIkpSSSSSlJJJJKUkkkkp//0PUXmFwP14dHU8Q+ONZ/5+C721eefXt0dRw//C9v/n5OhuotTpGJh5mNlHJaXObYxjLGuLXsBZv/AEZ+j9L99qpdS6bkYbSbIyMRxA9ZrYA19rcir/Av/cf/ADX+jsRejZ+Li42Uci5tX6RjgDq4jZs/RVt99vu/cVTqXXLstjqax6GIfptcRveAd36d/wBGuvTd6Nf/AF2yxWajwD95rg5felXyWL4ttv0Hpvqn9Y8vIv8A2ZmWOusFbrMXIfrY4V/ztGQ//CvbX+kov+n/ADld/wDpFqZYbTcCzSu0FzWjhpB97R/J/OYuZ+qXTchl46vkNNdZrczCY4Q6z1RsflbPpV0Nr9mPv/pHqer/ADVfv2czLbZcGMMtqBbI7uJ98f1Y2JuL59Nq9SuaAOPXe/T/AN06ODZuzcf/AK5/1BXRUulo+C5Ppdk59I8rP+ocuqo+iPgE3mPnHl/3yuU/mz/eP5Rcj6z/AFK6R9Z7MezqL72nFa9tYpe1oIeWF2/cyz/Rrzrov1J6J1H659V6Bd6rcPAY51L2OAtJa6lv6WzY7f8Azz/zF7IvOvqn/wDlS+sP/F2f9XiqOJNHybDonqv1W/xdYjOj1uysq26w3DHrAuum32NLj+r1Na70/wBGz+detDoP1+6H1zPPTa2ZGFna7MfMr9N74HqP9PY+1m5lfv2Pdv2Ljs5/VK/8auc7pbMZ/Ui1oxRnbhVBxqN/puph/r+m21tX/B/aVuYP1Z+tnUPrdh/WH6wHDobgVljK8MvJfpcK2/pf5eTY+x77P+Drr/nLECB17Wpr9DA/8d7rmg/on8OnLovrJ9dui/VyyujM9W/KugsxsZnqWQ47GPdudXW3e5vs/Sb7P8Gud6IQP8b3WpIG7FIbPc7enGAsvqT+qV/41st3TG47uoFrBiDN3imDi179jqof621t7af/AEIRqz5C1PYdB+v3ROt9QPTK68nCztSzHzK/Tc+G+o/Zsfa3c2v37H/mK50H61dN69fmY2Ky6q/p7gzJqvYGODibK9Ic/dssosY9c/ifVn62dS+tmF1/6wnCoZ09m1jMMvJfAt2N/Sz+fe51m+3/AIOuv32vVe+l31f/AMatGQ2GYX1iqcxxiB6zWt3tEf4T16cZ/wD6GWIUOnZT1Fn1r6Wz6yV/Vpots6g9u87Gg1sGx1/6WwuG39E393/C1LHd/jU+rQtdV6WYXteWQKCZc1xr9vu/eCof4uGP6z1rrf1uvaduVccfCLuRWNrnjb/JoZg07/8Ag7Va+sv1g6j1jqTvqp9V3n7QDt6n1Fs7MdvD6m2s/wAN+bbs9/8A2nq/WPV+yKtaU6nSvr10XquH1LMxm3tr6TUL8oWV7XbC2239G3d73bcexUMv/Gr9VMbGx7g66+3JG4YtTGm5gJLB9oD7GVVO9v0PV9TZ+k/m1ayugdP+r/1F6p0/BZDW4GSbbSBvsf6L91tpH53/AJ7Z+jYqv+KvGxm/VLGym1MGRa+4W3Bo3v222MZ6ln037GexiVCr8VP/0fULAuE+vfS8y30M7Hrdc3EbZXksYC54rsc26rKZUxu+yqt++rJ9P31ey3+b9Rd68SqmRTug8EatIMEf1XBGJpT4my1mRa2rHPr3WHbXVUQ97j+6xjfcul6V0CnGLcnqOzIyWnczHBD6KiPouf8Am5l7f/YWn/h/5xdxfSXPL3112OILS97GlxafzDZt37VWOLj98Ok/BoH5AFJxFDh5nUHtJY1xNz9bHk6tB8/9I/8A6DFRGRWyAXNaOwJAXTDpvTgZHTseTqS5u6Sf6+5WcfFZUf0GPTR511tB/wA7apI5REUIlgnhlOVkgdutOV0Gm+28ZW0ilrXNqcQR6j3jZ+jn6VVTPfbb9BdfS2AB4aKrRSd29xLnnlxMlXWNgKHJPiNsuPGIRoa9UiyMD6r9LwOt5fXMf1PtucHNu3PJZDix7tlf5vuqYtdJMXuD9Y/qX0L6yFtnUK3syGN2NyKXbLNgO/03fTrsZu+j6lf6P/Bqr0L/ABdfV7ofUa+pY5yL8und6Vl9u7bva6p8NrbU126t7vprqEkbNUp5fr/+Lv6vdfzzn5fr1XWbfWFDw1thYAyt9jXst97a2+nuq9NW/rJ9TOhfWTY/qFb25FbdjMml2yzZO/03fSrsZv8Ac31a3+n/AINbqSVn7FPL9C/xdfV7ofUa+p47si/Lp3ek++3dt3tdU+G1tqb7q3ub71pfWD6sdJ+sNVNfUWPJxnl9Vlbix7dw22N3t/Ms/PWsklZ3U0uj9Iwui9Op6bgtLcejdt3OLnEuc62x73u+k59j3OXNu/xU/VJwLXNyXNJLtpvdAJJd9H+2uxSSsqee6V9RegdIw+o4WE21tPVahTlB1hcdobbX+jcfoO25Fi0uh9Fwuh9Or6bg7/s9Rc5vqO3Ol7jY73f1nK+khan/0vVCoOYCiJklNd1APZDOMPBXNE3tR1U1BjDwU20AdlY9qXtS1UwbWAiAQkkgpdJJJJSkkkklKSSSSUpJJJJSkkkklKSSSSU//9kAOEJJTQQhAAAAAABdAAAAAQEAAAAPAEEAZABvAGIAZQAgAFAAaABvAHQAbwBzAGgAbwBwAAAAFwBBAGQAbwBiAGUAIABQAGgAbwB0AG8AcwBoAG8AcAAgAEMAQwAgADIAMAAxADkAAAABADhCSU0EBgAAAAAABwABAAAAAQEA/+ENw2h0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8APD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1wTU06RG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmViMTRlOGE4LTU4M2EtZjA0ZC04NTE0LTgzYWUyYWQ5NmZhMyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxOWNkMzA3Yi1jYWUwLTBjNDctODg3Ni0zMTc3Yzc1YTk3OTMiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0iMDM1MTRGQjY3QjlGNzBDRDc2MEY2NzZCNEVGQThCQUUiIGRjOmZvcm1hdD0iaW1hZ2UvanBlZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9IiIgeG1wOkNyZWF0ZURhdGU9IjIwMjAtMDMtMTFUMTU6MjQ6NDMrMDM6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDIwLTAzLTExVDE1OjM0OjIwKzAzOjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTAzLTExVDE1OjM0OjIwKzAzOjAwIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6NDAzNTg2MzAtNjI2OS01NTQ1LWFiOGEtNWNkZjFiMjMzZGI5IiBzdEV2dDp3aGVuPSIyMDIwLTAzLTExVDE1OjM0OjIwKzAzOjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjE5Y2QzMDdiLWNhZTAtMGM0Ny04ODc2LTMxNzdjNzVhOTc5MyIgc3RFdnQ6d2hlbj0iMjAyMC0wMy0xMVQxNTozNDoyMCswMzowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+/+4ADkFkb2JlAGSAAAAAAf/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8AAEQgASwDIAwEiAAIRAQMRAf/dAAQADf/EAT8AAAEFAQEBAQEBAAAAAAAAAAMAAQIEBQYHCAkKCwEAAQUBAQEBAQEAAAAAAAAAAQACAwQFBgcICQoLEAABBAEDAgQCBQcGCAUDDDMBAAIRAwQhEjEFQVFhEyJxgTIGFJGhsUIjJBVSwWIzNHKC0UMHJZJT8OHxY3M1FqKygyZEk1RkRcKjdDYX0lXiZfKzhMPTdePzRieUpIW0lcTU5PSltcXV5fVWZnaGlqa2xtbm9jdHV2d3h5ent8fX5/cRAAICAQIEBAMEBQYHBwYFNQEAAhEDITESBEFRYXEiEwUygZEUobFCI8FS0fAzJGLhcoKSQ1MVY3M08SUGFqKygwcmNcLSRJNUoxdkRVU2dGXi8rOEw9N14/NGlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vYnN0dXZ3eHl6e3x//aAAwDAQACEQMRAD8A9VTJIOTkMoqdZY4MYxpe954a1o3OekpKXAclR9VviuFzfrn1G+wnAazGx5/Rvsb6lrh2e5rv0dW79xE6V9bLQ/0er3PdW46ZVYDS2e11bG+6v/hGfQTuAqt7b1Ql6nx+5VGVUWMbYy19jHjcx4fLSD+c0tVHNxHUO9Su64VOP+kPtP8A5FGEOI1dLMk+CPFXEOtOz6rfFSDwe650W5Tfo5Vo+JDv+qCK3Nz2a72XgfmObtJ+D2fnJ55eXQgsQ5vGdwQ7ySq4eWzIra9sw6dDyCPpVu/qq0oSK0LOCCLHVdJJJJKkkkklKSSSSUpJJJJSkkkklKSSSSUpJJJJSkkkklP/0PU3FYf1reR0LPgx+iA+Re0FbbysD62H/IWf/wAUP+rYiNwp4F9gEyYAUsijKxmsffWa2WAFjjxr4kfRd/Icqlz/AGu+BXXOe19QY8B7HMaHNcJBEDlqsQhxX4MGbKcfDpYN243R/rFmdIftqPq4rjNmK4wPN9Lv8Db/AOBruMDq2D1TFN+K/wBSs+2ytwh7Cf8AB3M/N/12LgOrdMrxqzlY7opDg11TtSC7/Rv/ADm/yEHoXULsLq+NZWYba9tNzR+dW87drv6rvexNnCj4skJxnGxs9zksOPZAM1u1Y7/vrv5TVFtqNluDsexp12e5p82rOZapsUuKOu40aOfEIT02OodrpDv56OPVB+9q2GlYXRnS20/8KP8AqVt1nRVsvzybmD+aj5ON9bvrJlfV/Fx78bBdnuvt9NzGlwLRtc/f+jru/d2rlbP8bOfVHrdFNW76PqWPZP8AV9Shu5ekLzL/ABwf0rpX9S7/AKqlCFE0QytzF/xm9VvyqKD0K1jbrWVl5NkND3NYX644+hu3L0FU83qFHTelW9QySfRxaTa+OSGt3bW/ynLz/A+sf+Mf6zvuyeitx8TEqfs2uDSAY3+kbbm2vutaxzfV2V11oVew4aU+mLkcr655lH13r+rTcas49hYDeXO3jfW6/wCh9D81U/qp9cOvWfWB/wBWvrFVX9sAfsurG0hzGi3Y9rd1VjLKf0lVtez+osvqP/5X6P69P/tvYiI6m+1qfTklhfXD6zN+rfSftbaxdk3PFONU4w0vILt9hHu9KtjN71yWLnf42OoYLeq4rscY1rfVpp2Vhzmct9Op+9/u/wAH6l+9ARJF6DzU+lJLivq39b+r/WH6v9SNNddXWsBk1kNJrsJaX1foXHcxz3VvpsZvVn/F79asv6xYOT+0NgzMa0SK27B6b27qvYXP929trHIGJF+CnrElw31l+t3W6frdifV7o3pD1PSbe6xheQ60l7i33N2tqxmeor31hu/xhM6m5vQKMazp+xu11xbu36+p9KxiXCdPFT1aS8r6t9dP8YPR8hmJnDCbl2gGvHqb6th3HbXLKrXbfVf7av8ASLovrh9ZevdD+rvTMyoVVdQyXVsy22M3NDjU621oa1/t22s/eR4Dp4qeySXnV31n/wAYXWyyzoHTHYWC7btvtawvsGm6z9Zc2v0/3PTrs/41JLgPceVqf//R9Reue+th/wAhZ/8AxI/6ti6F6xPrFh25nTcvFpE230ubUPF7SLGs/t7diI3UXy+5xIcPitzJ65iU0sNbvXsc1u1jeBp/hXfmf1fprnnvJmQWkEhzToQRo5jh+a5qG1r7LG11NL7HmGMaJcT/ACQrEZGN11Yp4ozri/RT5edkZdnqZD5j6LRoxo/kt/78tn6t9HtffV1LKBZRUd+Ox2jrHj6Fhafo0M+l/wAKidK+r9WOW5GfF14gsp5rYf5f+mt/8CWvfmCpu9x3Pdo0eJ/8imkkmhqSv9MY9ohsZuWG1+kDL7OfJv8A5kqjLFRNznuLnGXO1JRGWwOYCnhHhFfa0MszOV/QeT0vQ3TXZ/xo/wCpW9VwsDoNVjcdrniPWf6jQedgG1jv7a6CsKrlPrl5t3CKxx8kq8z/AMcH9K6X/Uu/6qlemLA+tH1NwfrLZj2ZWRdQcUOawU7dd5a47vUY/wD0abE0QSyLfXat9n1K6k1gJd9m3QPBu17v+i1cL9SsL61dQ6fczoPWKsCmm53qYr2Bztzw1/rzsf7Ll6wamGr0XgPYW7HNcJBEbSHD+UuHzv8AFJ0i2824GZkYLDMVNh7Wz+ZU5221tf8AI9R6MZCiD/FSf6tfUbPwOvu671rqDc3Oh2wVtIlzx6brbHP/AHa/0ddddaw+pvaz/G9Q55DRvoEnQSaHtb/0l031Z/xf9P8Aq/n/ALRbl5GVlBjqwbCAza7bu9jR/J/fS+tH+L/pv1hzBnG+zEyi0MtcwNe17W/Q312fns/fYlxCzZ6UpyP8b9bndN6baBuqbkPY4jiX1u2N/tbHIHR+j/XzqPRsa/p/1hpZhW0tbVWGQ5jNuz0S5tftsp/m11mL9UemV/Vqv6uZRdmYlYI32Q18lzrm2MdXt9N9b3fo1zdn+KDB9Rxo6pk1VuP0IYT/AGnt9Pf/AJiQkKq9vC1O19SPqiPq1jZAtyG5OVlOabXMG1jQwEMrZuLn/nvc971zPR6x9WP8ZmRgOPp4fUmPdVPG2zdl0/8Abd1eTSuy+q/1Vwvq1i20Yltt5yHiy19xBJcBs9rWNbtQPrN9S+m/WO+jJybbse/Ha5gsoIBcxx3bH72v+i76G1IS1NndTyv+Lymzrf1p6p9Z7xLGue2iezrj7Q3/AIrCZUz/AK6ul+un1xo+r2MKMcC/quSP1ajnaD7ftFzW+70930K/p32fo2LT+r3QMP6v9Nb0/Dc97N7rH2WQXOe/6TnbA1v8lZHXv8XvTeudUs6nflZFNtrWMLaiwNHpja0jexzkrBlrsppfUr6n24tzvrB9YHev1nIJsa2wgmrd+e/837U5vt9v9Gq/QVIH+OHXoWF/4a/9FXKR/wAUHRCCPt2Zr/KZ/wCk1tdZ+pWB1fouD0a7Iurp6eGCuxhbvdsrOOPU3sc36LkrHEDd/RTpfV//AJB6b/4Uo/8APbElZwsVmFhY+GxxczGqZU1zuSGNFYc6Pzvakm9VP//S9ScFVvqD2kFXChPbKQU811P6udIz7TdmYodcfpX1udXY7zsdWdtjv67VVxPq30jB3fZTbW9/0rHuD3x+5vc1u1i6eymVXfig9k8HxQ4x6VjnjIePiGn+IVd/1fpseX2Zrj4AMaIH7ur1uHDHgkMMeCIkRsUSgJCjq4jPq9gA+7IuePAbW/i0OV3G6N06twdXTvcOHWuL/wDon2f9BaLMUDsrFdACRySP6RQMUB+iFY9UanVx5KuMCgxkIoCYV7JJJJBSkkkklKSSSSUpJJJJSkkkklKSSSSUpJJJJSkkkklP/9P1RIiU6ZJTAsUTWEVJJSD0gl6QRvuS+5HVSIVBTDFNJBSwEJ0k6SlJJJJKUkkkkpSSSSSlJJJJKUkkkkpSSSSSlJJJJKUkkkkp/9k=") no-repeat;background-size:100%}._2nG_1--televzr-popup-footer{width:195px;margin:22px auto 0;color:#63d0ff;font-size:12px;white-space:normal;font-weight:400}._3XlHh--televzr-popup-btn{text-decoration:none;display:inline-block;line-height:18px;white-space:nowrap;font-size:13px;text-align:center;font-family:Roboto,sans-serif;font-weight:500;margin:0;border-radius:90px;padding:0;overflow:hidden;border:2px solid transparent;background:linear-gradient(270deg,#66d1ff,#35c3ff);background-origin:border-box;text-transform:uppercase;width:171px}._3XlHh--televzr-popup-btn ._3PMH0--btn-outer{padding:13px 15px;display:block;background:#f4f3f3}._3XlHh--televzr-popup-btn .ktwT_--btn-inner{background:linear-gradient(270deg,#66d1ff,#35c3ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}._3XlHh--televzr-popup-btn .ktwT_--btn-inner svg{margin-top:-2px;margin-right:4px}._3XlHh--televzr-popup-btn:disabled{opacity:.5}._3XlHh--televzr-popup-btn.yL0oy--btn-invert{position:relative;overflow:visible}._3XlHh--televzr-popup-btn.yL0oy--btn-invert:before{content:"";position:absolute;left:10px;right:10px;top:20px;bottom:-1px;background:#6dd3ff;-webkit-filter:blur(12px);filter:blur(12px);border-radius:100px;box-shadow:0 3px 0 0;color:#67cefb}._3XlHh--televzr-popup-btn.yL0oy--btn-invert ._3PMH0--btn-outer{background:transparent;padding:7px 8px;position:relative}._3XlHh--televzr-popup-btn.yL0oy--btn-invert .ktwT_--btn-inner{background:none;-webkit-background-clip:border-box;-webkit-text-fill-color:#fff;color:#fff}._3XlHh--televzr-popup-btn.yL0oy--btn-invert .ktwT_--btn-inner svg path{fill:#fff}._3XlHh--televzr-popup-btn.yL0oy--btn-invert:focus,._3XlHh--televzr-popup-btn.yL0oy--btn-invert:hover{background:linear-gradient(90deg,#66d1ff,#35c3ff)}._3XlHh--televzr-popup-btn._2hGlR--btn-small{font-size:12px;line-height:15px;border-width:1px}._3XlHh--televzr-popup-btn._2hGlR--btn-small ._3PMH0--btn-outer{padding:8px 15px;background:#fff}._3XlHh--televzr-popup-btn:focus,._3XlHh--televzr-popup-btn:hover{outline:none}._3XlHh--televzr-popup-btn:focus ._3PMH0--btn-outer,._3XlHh--televzr-popup-btn:hover ._3PMH0--btn-outer{background:transparent}._3XlHh--televzr-popup-btn:focus .ktwT_--btn-inner,._3XlHh--televzr-popup-btn:hover .ktwT_--btn-inner{background:none;-webkit-background-clip:border-box;-webkit-text-fill-color:#fff;color:#fff}._3XlHh--televzr-popup-btn:focus .ktwT_--btn-inner svg path,._3XlHh--televzr-popup-btn:hover .ktwT_--btn-inner svg path{fill:#fff}a._3XlHh--televzr-popup-btn.yL0oy--btn-invert{text-decoration:none}._3mvnS--popupAngle{display:inline-block;width:0;position:absolute;z-index:1;border-left-width:0;border-left-style:none;border-top:8px solid transparent;border-right:10px solid #fff;border-bottom:8px solid transparent;border-left-color:initial;border-image:initial;top:8px;left:-9px}.PgSuo--popupAngle--shadow{border-right-color:#c0bbbb;border-width:8px 11px 9px 0;z-index:0;top:8px;left:-10px}._2sbNx--logo{width:19px;height:17px;margin-left:5px;vertical-align:middle}._3sETR--circle-loader--icon{-webkit-animation-name:_2PKta--spin;animation-name:_2PKta--spin;-webkit-animation-duration:5s;animation-duration:5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear}._3hlXG--icon--check{margin-bottom:-13px!important}.XAKzR--icon{width:51px;opacity:.3;margin:0 auto 12px}@-webkit-keyframes _2PKta--spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes _2PKta--spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}',""]),i.locals={"item--anchor":"_3HHgx--item--anchor",itemAnchor:"_3HHgx--item--anchor","item--container":"_3APsa--item--container",itemContainer:"_3APsa--item--container","televzr-popup-container":"_1UsEx--televzr-popup-container",televzrPopupContainer:"_1UsEx--televzr-popup-container","televzr-popup":"_3qvYg--televzr-popup",televzrPopup:"_3qvYg--televzr-popup","televzr-popup-header":"_2VlZl--televzr-popup-header",televzrPopupHeader:"_2VlZl--televzr-popup-header","televzr-popup-footer":"_2nG_1--televzr-popup-footer",televzrPopupFooter:"_2nG_1--televzr-popup-footer","televzr-popup-btn":"_3XlHh--televzr-popup-btn",televzrPopupBtn:"_3XlHh--televzr-popup-btn","btn-outer":"_3PMH0--btn-outer",btnOuter:"_3PMH0--btn-outer","btn-inner":"ktwT_--btn-inner",btnInner:"ktwT_--btn-inner","btn-invert":"yL0oy--btn-invert",btnInvert:"yL0oy--btn-invert","btn-small":"_2hGlR--btn-small",btnSmall:"_2hGlR--btn-small",popupAngle:"_3mvnS--popupAngle","popupAngle--shadow":"PgSuo--popupAngle--shadow",popupAngleShadow:"PgSuo--popupAngle--shadow",logo:"_2sbNx--logo","circle-loader--icon":"_3sETR--circle-loader--icon",circleLoaderIcon:"_3sETR--circle-loader--icon",spin:"_2PKta--spin","icon--check":"_3hlXG--icon--check",iconCheck:"_3hlXG--icon--check",icon:"XAKzR--icon"},t.default=i},,,function(e,t,n){n.r(t);var r=n(21),i=n.n(r)()(!1);i.push([e.i,"._3pIRM--theme-vk .xpBs7--item-container .Bqu1j--item{margin-left:0;display:block;white-space:nowrap;position:relative;height:30px;line-height:30px;padding:0 15px;color:#2a5885;outline:none}._3pIRM--theme-vk .xpBs7--item-container .Bqu1j--item:hover{background-color:#e4eaf0}._3pIRM--theme-vk .xpBs7--item-container .Bqu1j--item ._1GRqL--tooltip{top:0;right:228px;padding:0 10px 3px 6px}._3pIRM--theme-vk .xpBs7--item-container .Bqu1j--item ._2Z6Sq--download-bar{position:absolute;top:0;left:0}._2Iwu5--theme-matchtv .xpBs7--item-container{right:185px}._2Iwu5--theme-matchtv .xpBs7--item-container ._2Z6Sq--download-bar{background-image:linear-gradient(90deg,rgba(8,174,234,.12),rgba(42,245,152,.73))}.xpBs7--item-container{position:absolute;background:#fff;padding:4px 0;z-index:9999;box-shadow:0 1px 3px rgba(80,80,80,.27);border:1px solid #c5d0db;border-radius:4px;font-size:12px;min-width:190px;transition:.5s;margin-left:13px}.xpBs7--item-container .Bqu1j--item{position:relative;cursor:pointer;padding-top:5px;padding-bottom:5px;padding-left:9px}.xpBs7--item-container .Bqu1j--item:hover{background:#e6e6e6}.xpBs7--item-container .Bqu1j--item.BNSqB--item-disable{opacity:.8}.xpBs7--item-container ._1lDlk--message{padding:3px}.xpBs7--item-container._2ZBFv--show{display:block}.xpBs7--item-container._3jLoS--hide{display:none}",""]),i.locals={"theme-vk":"_3pIRM--theme-vk",themeVk:"_3pIRM--theme-vk","item-container":"xpBs7--item-container",itemContainer:"xpBs7--item-container",item:"Bqu1j--item",tooltip:"_1GRqL--tooltip","download-bar":"_2Z6Sq--download-bar",downloadBar:"_2Z6Sq--download-bar","theme-matchtv":"_2Iwu5--theme-matchtv",themeMatchtv:"_2Iwu5--theme-matchtv","item-disable":"BNSqB--item-disable",itemDisable:"BNSqB--item-disable",message:"_1lDlk--message",show:"_2ZBFv--show",hide:"_3jLoS--hide"},t.default=i}]])},function(e){!function(e){function t(t){for(var r,a,s=t[0],l=t[1],u=t[2],d=0,f=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(c&&c(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={17:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([90,0]),n()}({90:function(e,t,n){n.r(t);var r=n(0),i=n(11),o=n(10),a=n(25),s=n.n(a),l=n(26),u=n.n(l),c=n(18),d=n.n(c),f=n(57),p=n.n(f),h=n(37),m=n.n(h),g=n(9),v=n.n(g),b=n(20),y=n.n(b),A=n(14),w=n.n(A),k=n(3),x=n.n(k),C=n(2),S=n.n(C),M=n(17),_=n(6),I=n.n(_),O=n(13),E=n.n(O),L=n(8),N=n.n(L),T=n(29),j=n.n(T),F=n(22),D=n.n(F),R=n(16),P=n.n(R),V=n(7),B=I()("vimeo_com");E.a.isSingle()&&Object(o.b)("vimeo",(function(e,t){var n=Object(i.a)(t),o=t.preferences,a=o.moduleVimeo?1:0,l=s()();r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:a,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return c.changeState(t.state)}"updatePreferences"!==t.action||Object.assign(o,t.preferences)})),a&&setTimeout((function(){c.run()}));var c={panelId:"savefrom__vimeo_links",btnBox:null,clipId:null,timer:null,btnPrefix:"sd_ld_bnt_",popupIsShow:!1,dlBtnClassName:"sf-dl-btn",currentMenu:null,linkCache:{},run:function(){if(a=1,l){if(c.clipId=c.getFrameClipId(),c.clipId)return c.appendIframeButtons();l=!1}this.videoFeed.injectStyle(),N.a.isAvailable()&&this.mutationMode.enable()},changeState:function(e){l||(a=e,c.videoFeed.disable(),c.rmAllBtn(),c.mutationMode.stop(),e&&c.run())},hideMenu:function(){c.currentMenu&&(c.currentMenu.hide(),c.currentMenu=null)},getFrameClipId:function(){var e=document.location.href.match(/player\.vimeo\.com\/video\/([\w\-]+)/i);if(e=e&&e[1])return e},getBrowserVideoData:function(e,t){var n=e.querySelector(".uploaded_on");if(n||(n=e.querySelector("#info .meta .stats")),!n)return null;if(t&&(t=(t=t.match(/([0-9]+)$/))&&t[1]),!t){var r=e.querySelector("a.js-title")||e.querySelector("a");if(!r)return;var i=r.getAttribute("href");if(!i)return;t=(t=i.match(/\/([0-9]+)$/))&&t[1]}return t?{id:t,parent:n,style:1}:void 0},getVideoId:function(e){var t,n=null;if(t=(e=e||document).querySelector(".player[data-clip-id]"))return t.dataset.clipId;if(t=e.querySelector(".player[data-fallback-url]")){var r=t.dataset.fallbackUrl||"";if(r=r.match(/video\/([0-9]+)\//))return r[1]}return(t=e.querySelector("div.player_wrapper > div.faux_player[data-clip_id]"))&&(n=t.dataset.clip_id)?n:void 0},onBtnClick:function(e,t){t.stopPropagation(),t.preventDefault();var i=e.id;if(!i){var o=null;e.playerContainer&&(o=w()(e.parent,e.playerContainer)),i=c.getVideoId(o)}if(c.currentMenu&&c.currentMenu.isShow)c.hideMenu();else{var a=r.a.i18n.getMessage("download")+" ...",s={};4===e.style&&(s.offsetTop=20);var l,u=this.dataset.sfMobile>0;l=c.currentMenu=u?n.mobileLightBox.show(a):n.popupMenu.quickInsert(this,a,"sf-popupMenu",s);var d=function(e){if(e&&e.links){c.linkCache[i]=e;var t=n.popupMenu.prepareLinks.vimeo(e.links,e.title);l.update(t)}else l.update(r.a.i18n.getMessage("noLinksFound"))},f=c.linkCache[i];if(!f)return c.getLinksFromPage2(i).catch((function(e){return B.error("getLinksFromPage error",e),Object(M.a)({action:"getVimeoLinks",extVideoId:i,url:location.href}).catch((function(e){throw B.error("getVimeoLinks error",e),e}))})).then((function(e){d(e)}),(function(e){d()}));d(f)}},getPlayerConfig:function(){return P()('function(){var clip=null;try{clip=vimeo.clip_page_config.clip}catch(err){throw new Error("Player config is not found")}return{clipId:vimeo.clip_page_config.clip.id,url:vimeo.clip_page_config.player.config_url,clip:clip}}')},getLinksFromPage2:function(e){return e=parseInt(e,10),this.getPlayerConfig().then((function(t){var n=t.clipId,r=t.url,i=t.clip;if(n!==e)throw new Error("Clip id is change");var o=function(e){return Object(M.a)({action:"getVimeoLinksFromConfigAction",config:e}).then((function(e){if(e)return e;throw new Error("getLinksFromConfig result is empty")}))};return Promise.resolve().then((function(){if(i)return o(i);throw new Error("Clip is not exists!")})).catch((function(e){return B.error("Get links from config error",e),D()({url:r,localXHR:!0,json:!0,withCredentials:!0}).then((function(e){var t=e.body;return o(t)}))}))}))},rmAllBtn:function(){["sfSkip"].forEach((function(e){for(var t,n=d()(e),r=document.querySelectorAll("["+n+"]"),i=0;t=r[i];i++)t.removeAttribute(n)}));for(var e,t=document.querySelectorAll("."+c.dlBtnClassName),n=0;e=t[n];n++)"1"!==e.dataset.sfType&&"3"!==e.dataset.sfType||(e=e.parentNode),e.parentNode.removeChild(e);c.videoFeed.rmBtn(),c.hideMenu()},appendBtn:function(e){var t,i=e.parent,o=i.querySelector("."+c.dlBtnClassName);if(o){if(!o.dataset.sfId&&6!==e.style)return;o.parentNode.removeChild(o),o=null}if(1===e.style?t=S.a.create("a",{text:r.a.i18n.getMessage("download"),class:[c.dlBtnClassName,"sf-style-1"],style:{display:"inline"},data:{sfId:e.id,sfType:e.style},href:"#"+e.id}):2===e.style?t=S.a.create("button",{text:r.a.i18n.getMessage("download"),class:[c.dlBtnClassName,"btn","iconify_down_b"],data:{sfId:e.id,sfType:e.style}}):5===e.style?t=S.a.create("button",{class:[c.dlBtnClassName,"sf-type-5"],data:{sfId:e.id,sfType:e.style},append:[S.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),S.a.create("span",{style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]}):7===e.style?t=S.a.create("button",{class:[c.dlBtnClassName,"sf-type-7"],data:{sfId:e.id,sfType:e.style},append:[S.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),S.a.create("span",{style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]}):3===e.style?t=S.a.create("button",{class:[c.dlBtnClassName,"iris_btn","iris_btn-switch"],data:{sfId:e.id,sfType:e.style},append:[S.a.create(n.svg.getSvg("download","#00adef"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),S.a.create("span",{class:"iris_btn-content",style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]}):4===e.style?t=S.a.create("i",{class:[c.dlBtnClassName,"sf-style-4"],data:{sfId:e.id,sfType:e.style},style:{display:"inline-block",border:"1px solid #F8F8F8",width:"20px",height:"20px",lineHeight:0,cursor:"pointer",marginLeft:"10px",verticalAlign:"middle"},append:S.a.create("style",{text:v()([{selector:"."+c.dlBtnClassName+".sf-style-4",style:{background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:"."+c.dlBtnClassName+".sf-style-4:hover",style:{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:"."+c.dlBtnClassName+".sf-style-4:active",style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}}])})}):6===e.style&&(t=S.a.create("button",{class:[c.dlBtnClassName,"btn","btn_sm","btn_blue_o"],data:{sfId:e.id,sfType:e.style,sfMobile:1},style:{marginLeft:"8px"},append:[S.a.create(n.svg.getSvg("download","#00adef"),{style:{display:"inline-block",width:"12px",height:"12px",verticalAlign:"text-bottom",marginRight:"4px"}}),S.a.create("span",{class:"btn_text",style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]})),t.addEventListener("click",c.onBtnClick.bind(t,e)),1===e.style&&(t=S.a.create("span",{append:[t," | "]})),3===e.style&&(t=S.a.create("div",{class:"clip_info-user_actions",append:[t]})),1===e.style||2===e.style||6===e.style){var a=i.firstChild;a?i.insertBefore(t,a):i.appendChild(t)}else i.appendChild(t);Object(V.a)({category:"append",subcategory:"vi",event:"b"})},playerStateChangeObserver:null,observeVideoUi:function(e,t){var n=t;if(n){var r=null,i=/(\s|^)with-controls(\s|$)/;this.playerStateChangeObserver&&this.playerStateChangeObserver.stop(),this.playerStateChangeObserver=new j.a({attrs:[{name:"class",callback:function(t){var n=!i.test(t.oldValue),o=!i.test(t.value);!n&&o?(clearTimeout(r),r=setTimeout((function(){e.lockHide||e.container.classList.add("sf-hide-ui")}),100)):n&&!o&&(clearTimeout(r),e.container.classList.remove("sf-hide-ui"))}}],target:n})}},appendIframeButtons:function(){var e=this,t=n.frameMenu.getBtn({quickBtnStyleObj:{display:"inline-block",border:0,borderRadius:".3em",cursor:"pointer",position:"relative",padding:"6px 8px"},quickBtnCssStyle:{backgroundColor:"rgba(23,35,34,.75)"},quickBtnOverCssStyle:{backgroundColor:"rgb(0, 173, 239)"},nodeCssStyle:{display:"none"},singleBtn:!0,btnId:e.panelId,containerStyle:{left:"10px",top:"10px"},quickBtnIcon:S.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"}}),on:[["click",function(i){if(i.preventDefault(),i.stopPropagation(),e.currentMenu&&e.currentMenu.isShow)e.hideMenu();else{var o=e.clipId,a=e.linkCache[o],s=r.a.i18n.getMessage("download")+" ...";a&&(s=n.popupMenu.prepareLinks.vimeo(a.links,a.title));var l=e.currentMenu=n.frameMenu.getMenu(this,s,"sf-frame-menu",{leftMenuPos:!0,container:t.container,onShow:function(){t.node.classList.add("sf-over")},onHide:function(){e.currentMenu=null,t.node.classList.remove("sf-over")}});a||e.getLinksFromPage((function(t,i){var a=r.a.i18n.getMessage("noLinksFound");t&&(e.linkCache[o]={links:t,title:i},a=n.popupMenu.prepareLinks.vimeo(t,i)),l.update(a)}))}}],["mousedown",function(n){n.stopPropagation(),2===n.button&&(i&&(i.stop(),i=null),e.hideMenu(),t.container.parentNode&&t.container.parentNode.removeChild(t.container))}]]});t.quickBtn.title=r.a.i18n.getMessage("download"),t.container=S.a.create("div",{class:"sf-btn-ctr",append:t.node}),x.a.on(t.container,"mouseenter",(function(){t.lockHide=!0})),x.a.on(t.container,"mouseleave",(function(){t.lockHide=!1})),t.node.appendChild(S.a.create("style",{text:v()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #"+e.panelId,"body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(t.container);var i=new N.a({queries:[{css:'#player .captions[aria-live="assertive"]',is:"added",callback:function(n){var r=n.added[0];r&&(e.observeVideoUi(t,r),setTimeout((function(){i.stop(),i=null}),0))}}]})},getLinksFromPage:function(e){var t=[/"video":{/,/"request":{/,/"files":/],n=p()(document.body.innerHTML,t),i=null;n.some((function(e){return m()(e,t).some((function(e){if(e.video&&e.request&&e.request.files)return i=e,!0}))}));var o=null,a=null,s=null,l=function(t){return t&&(a=t.links||null,s=t.title||null),e(a,s)};return i?(o={action:"getVimeoLinksFromConfig",config:i},r.a.sendMessage(o,l)):(o={action:"getVimeoLinks",extVideoId:c.clipId},r.a.sendMessage(o,l))},videoFeed:{btnClassName:"sf-feed-dl-btn",style:null,onClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.dataset.sfId;if(this.dataset.sfCouchMode,c.currentMenu&&c.currentMenu.isShow)c.hideMenu();else{var i=c.linkCache[t],o=r.a.i18n.getMessage("download")+" ...";i&&(o=n.popupMenu.prepareLinks.vimeo(i.links,i.title));var a=c.currentMenu=n.popupMenu.quickInsert(this,o,"sf-popupMenu");if(!i){var s=null;/"url"/.test(t)&&(s=JSON.parse(t).url,t=null),r.a.sendMessage({action:"getVimeoLinks",extVideoId:t,url:s},(function(e){var i=null;e.links?(c.linkCache[t]=e,i=n.popupMenu.prepareLinks.vimeo(e.links,e.title)):i=r.a.i18n.getMessage("noLinksFound"),a.update(i)}))}}},getBtn:function(e){return S.a.create("i",{class:e.classList,data:{sfId:e.id,sfCouchMode:e.isCouchMode?1:0},on:["click",this.onClick]})},onImgOver2:function(e){var t,n,r=this.parentNode;if("A"===r.tagName){var i=r.getAttribute("href");if(i&&(n=(n=i.match(/^\/(\d+)$/))&&n[1])&&(t=r.parentNode)&&t.classList.contains("contextclip-img")&&!(t.dataset.sfBtn>0)){t.dataset.sfBtn="1";var o=[c.videoFeed.btnClassName,"sf-type1-btn"];r.appendChild(c.videoFeed.getBtn({id:n,classList:o})),r=null,t=null}}},onImgOver:function(e){var t,n,r=this.parentNode;if(y()(this,"a.contextclip-img-thumb")){t=this,r=this;var i=/\/([0-9]+)/.exec(this.href);i&&(n=i[1])}if(!n&&(y()(this,"div.iris_video-vital")||y()(this,"li.clip_thumbnail"))){r=this.querySelector(".iris_thumbnail"),t=this;var o=this.querySelector("a.iris_link-box");if(o){var a=o.href;!(n=(n=a.match(/\/([0-9]+)/))&&n[1])&&a&&(n=JSON.stringify({url:a}))}}if(!n&&"LI"==r.tagName){if(!(n=r.dataset.resultId)||"clip_"!==n.substr(0,5))return;n=n.substr(5),t=r,r=this.querySelector(".thumbnail_wrapper")}if(!n){if("A"!==r.tagName)return;if(n=r.dataset.clipId,!(t=r.parentNode))return}var s=!1;if(!n){if((s="item_id"===(n=t.id).substr(0,7)&&t.classList.contains("clip"))||"clip"===n.substr(0,4)||(n=void 0),!n&&"ARTICLE"===t.tagName&&t.classList.contains("clip_item")&&(n=r.getAttribute("href")),!n)return;(n=n.match(/([0-9]+)$/))&&(n=n[1])}if(!t.dataset.sfBtn){t.dataset.sfBtn="1";var l=[c.videoFeed.btnClassName];this.classList.contains("thumbnail_lg_wide")&&l.push("sf-type1-btn"),this.classList.contains("contextclip-img-thumb")&&l.push("sf-type4-btn"),(this.classList.contains("clip_thumbnail")||this.classList.contains("iris_video-vital"))&&l.push("sf-type3-btn");var u=t.parentNode;u&&"clips"===u.id&&l.push("sf-type1-btn"),u=null,s&&l.push("sf-type1-btn"),t.classList.contains("promo_clip")&&1===l.length&&l.push("sf-type1-btn"),r.appendChild(c.videoFeed.getBtn({id:n,classList:l,isCouchMode:s})),r=null,t=null}},injectStyle:function(){this.style?!this.style.parentNode&&document.head.appendChild(this.style):(this.style=S.a.create("style",{text:v()([{selector:[".sf-dl-btn.sf-type-5",".sf-dl-btn.sf-type-7"],style:{color:"#fff",borderColor:"#00adef",backgroundColor:"#00adef",minWidth:"68px",minHeight:"32px",padding:"0 10px",lineHeight:"30px",fontSize:"14px",width:"auto",position:"relative",margin:0,fontWeight:700,borderWidth:"1px",borderStyle:"solid",borderRadius:"3px",letterSpacing:".1px",transition:"all .1s ease-in-out",cursor:"pointer",marginLeft:".5rem"}},{selector:[".sf-dl-btn.sf-type-7"],style:{verticalAlign:"middle"}},{selector:[".sf-dl-btn.sf-type-5:hover",".sf-dl-btn.sf-type-7:hover"],style:{color:"#fff",borderColor:"#08c",backgroundColor:"#08c"}},{selector:["a > .sf-feed-dl-btn","a .sf-feed-dl-btn.sf-type3-btn","a > .sf-feed-dl-btn.sf-type4-btn"],style:{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px",top:"auto",left:"auto",lineHeight:0}},{selector:["a > .sf-feed-dl-btn.sf-type4-btn"],style:{top:0,left:0}},{selector:["a > .sf-feed-dl-btn.sf-type1-btn","a > div > .sf-feed-dl-btn.sf-type3-btn"],style:{top:0}},{selector:["a > .sf-feed-dl-btn.sf-type2-btn"],style:{opacity:.5}},{selector:["a > div > .sf-feed-dl-btn.sf-type3-btn"],style:{zIndex:10}},{selector:["a > .sf-feed-dl-btn:hover","a > div > .sf-feed-dl-btn.sf-type3-btn:hover"],style:{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:["a > .sf-feed-dl-btn.sf-type2-btn:hover"],style:{opacity:.8}},{selector:["a > .sf-feed-dl-btn:active","a > div > .sf-feed-dl-btn.sf-type3-btn:active"],style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}},{selector:["a:hover > .sf-feed-dl-btn","a:hover > div > .sf-feed-dl-btn.sf-type3-btn"],style:{display:"block"}}])}),document.head.appendChild(this.style))},disable:function(){this.style&&this.style.parentNode&&this.style.parentNode.removeChild(this.style)},rmBtn:function(){for(var e,t=document.querySelectorAll(".sf-feed-dl-btn"),n=0;e=t[n];n++)e.parentNode.removeChild(e);var r=d()("sfBtn"),i=document.querySelectorAll("["+r+"]");for(n=0;e=i[n];n++)e.removeAttribute(r)}},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop()},wrapOnImgOver:function(){a&&c.videoFeed.onImgOver.apply(this,arguments)},wrapOnImgOver2:function(){a&&c.videoFeed.onImgOver2.apply(this,arguments)},enable:function(){if(this.observer)return this.observer.start();this.observer=new N.a({queries:[{css:"#clip #info #tools",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)c.hideMenu(),t.dataset.sfSkip>0||(t.dataset.sfSkip="1",c.appendBtn({id:"",parent:t,style:2,playerContainer:"#clip"}))}},{css:"#channel_clip_container #info .meta",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(c.hideMenu(),!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=t.querySelector(".stats")||t.querySelector(".time");r&&c.appendBtn({id:"",parent:r,style:1,playerContainer:"#channel_clip_container"})}}},{css:"#browse_content ol.browse_videos_videos > li",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)&&(t.dataset.sfSkip="1","clip_"===t.id.substr(0,5))){var r=c.getBrowserVideoData(t,t.id);r&&c.appendBtn(r)}}},{css:"img.thumbnail",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",x.a.one(t,"mouseenter",c.mutationMode.wrapOnImgOver))}},{css:".clip_thumbnail .iris_thumbnail img",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=u()(t,"clip_thumbnail");x.a.one(r,"mouseenter",c.mutationMode.wrapOnImgOver)}}},{css:".iris_video-vital .iris_thumbnail img",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=u()(t,"iris_video-vital");x.a.one(r,"mouseenter",c.mutationMode.wrapOnImgOver)}}},{css:".contextclip-img-thumb img",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=u()(t,"contextclip-img-thumb");x.a.one(r,"mouseenter",c.mutationMode.wrapOnImgOver)}}},{css:".clip_main .clip_info a.js-user_link.iris_link-header",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1",c.hideMenu();var r=w()(t,".clip_info-wrapper");if(r){var i=r.querySelector(".clip_info-actions");i&&c.appendBtn({id:"",parent:i,style:3,playerContainer:".clip_main"})}}}},{css:".clip_main .clip_main-content div.clip_info-subline--inline",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",c.hideMenu(),w()(t,".clip_main-content")&&c.appendBtn({id:"",parent:t,style:5,playerContainer:".clip_main"}))}},{css:".contextclip-img img",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",x.a.one(t,"mouseenter",c.mutationMode.wrapOnImgOver2))}},{css:".client_wrapper .clip header h1",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",c.appendBtn({id:"",parent:t,style:4,playerContainer:".clip"}))}},{css:".clip_page .clip .meta_section_subinfo",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)c.appendBtn({id:"",parent:t,style:6,playerContainer:".clip_wrapper"})}},{css:"#main .clip_info-subline--inline",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)c.appendBtn({id:"",parent:t,style:7,playerContainer:"#main"})}}]})}}}}))}})},function(e){!function(e){function t(t){for(var r,a,s=t[0],l=t[1],u=t[2],d=0,f=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(c&&c(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={2:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([98,0]),n()}({98:function(e,t,n){n.r(t);var r=n(0),i=n(11),o=n(10),a=n(25),s=n.n(a),l=n(18),u=n.n(l),c=n(57),d=n.n(c),f=n(37),p=n.n(f),h=n(9),m=n.n(h),g=n(3),v=n.n(g),b=n(2),y=n.n(b),A=n(17),w=n(6),k=n.n(w),x=n(13),C=n.n(x),S=n(8),M=n.n(S),_=n(7),I=k()("dailymotion_com");C.a.isSingle()&&Object(o.b)("dailymotion",(function(e,t){var n=Object(i.a)(t),o=t.preferences,a=o.moduleDailymotion?1:0,l=s()()&&/\/embed\/([\w\-]+)/i.test(document.location.href);r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:a,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return c.changeState(t.state)}"updatePreferences"!==t.action?a&&"updateLinks"===t.action&&c.updateLinks():Object.assign(o,t.preferences)})),a&&setTimeout((function(){Object(_.a)({category:"append",subcategory:"da",event:"b"}),c.run()}));var c={contextMenu:null,linkCache:{},embed:null,title:"",styleIndex:0,btnId:"sf__download_btn",result:null,popupIsShow:!1,run:function(){return a=1,l?(Object(_.a)({category:"download",subcategory:"da",event:"video"}),void c.appendIframeButtons()):M.a.isAvailable()?c.mutationMode.enable():void 0},changeState:function(e){l||(a=e,c.rmBtn(),c.mutationMode.stop(),e&&c.run())},hideMenu:function(){c.contextMenu&&c.contextMenu.isShow&&(c.contextMenu.hide(),c.contextMenu=null)},updateLinks:function(){c.changeState(0),c.changeState(1)},appendIframeButtons:function(){var e=this,t=n.frameMenu.getBtn({quickBtnStyleObj:{display:"inline-block",cursor:"pointer",position:"relative",padding:"9px 10px"},quickBtnCssStyle:{backgroundColor:"rgba(0,0,0,.75)"},singleBtn:!0,btnId:e.btnId,containerStyle:{right:"50px",top:"10px"},quickBtnIcon:y.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"}}),on:[["click",function(i){if(i.preventDefault(),i.stopPropagation(),e.contextMenu&&e.contextMenu.isShow)e.hideMenu();else{var o=e.getIdFromUrl(),a=r.a.i18n.getMessage("download")+" ...",s=e.linkCache[o];s&&(a=n.popupMenu.prepareLinks.dailymotion(s.links,s.title));var l=e.contextMenu=n.frameMenu.getMenu(this,a,"sf-frame-menu",{container:t.container,onShow:function(){t.node.classList.add("sf-over")},onHide:function(){e.contextMenu=null,t.node.classList.remove("sf-over")}});s||r.a.sendMessage({action:"getDailymotionLinks",extVideoId:o,metadata:e.getMetadata(o)},(function(t){var i=r.a.i18n.getMessage("noLinksFound");t.links&&(e.linkCache[o]=t,i=n.popupMenu.prepareLinks.dailymotion(t.links,t.title)),l.update(i)}))}}],["mousedown",function(n){n.stopPropagation(),2===n.button&&(v.a.off(document.body,"mousemove",s),e.hideMenu(),t.container.parentNode&&t.container.parentNode.removeChild(t.container))}]]});t.quickBtn.title=r.a.i18n.getMessage("download"),t.container=y.a.create("div",{class:"sf-btn-ctr",append:t.node}),v.a.on(t.container,"mouseenter",(function(){t.lockHide=!0})),v.a.on(t.container,"mouseleave",(function(){t.lockHide=!1}));var i=null,o=!1,a=function(){t.lockHide||(t.container.classList.add("sf-hide-ui"),o=!0)},s=function(){o&&(t.container.classList.remove("sf-hide-ui"),o=!1),clearTimeout(i),i=setTimeout(a,3e3)};v.a.on(document.body,"mousemove",s),t.node.appendChild(y.a.create("style",{text:m()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #"+e.btnId,"body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(t.container)},getIdFromUrl:function(e){var t=(e=e||location.href).match(/\/embed\/video\/([a-z0-9]+)/);return t&&t[1]},getMetadata:function(e){var t=null;return d()(document.body.innerHTML,/playerV5/).some((function(n){return p()(n).some((function(n){if(n&&n.metadata&&n.metadata.id===e)return t=n.metadata,!0}))})),t},rmBtn:function(){for(var e,t=document.querySelectorAll(["#"+c.btnId,".sf-wrapper"]),n=0;e=t[n];n++)e.parentNode.removeChild(e);c.result=null,c.popupIsShow=!1},newGetVideoId:function(){var e="",t=/\/video\/([^\/?#]+)/.exec(location.href);return t&&(e=t[1]),e},insertBtn:function(e){var t=this;if(!e.querySelector(".sf-dl-btn")){var i=y.a.create("button",{id:c.btnId,class:["sf-dl-btn"],title:r.a.i18n.getMessage("download"),append:[y.a.create("span",{append:[n.svg.getSvg("download","#000")]}),y.a.create("style",{text:m()({selector:".sf-dl-btn",style:{display:"block",border:0,borderRadius:"50%",cursor:"pointer",background:"#e8e8e8",width:"32px",height:"32px",marginRight:"8px"},append:{selector:"span",style:{display:"flex",justifyContent:"center",alignItems:"center",marginRight:"auto",marginLeft:"auto",width:"16px",height:"16px"}}})})],on:["click",function(e){if(e.preventDefault(),e.stopPropagation(),c.contextMenu&&c.contextMenu.isShow)c.hideMenu();else{var t=r.a.i18n.getMessage("download")+" ...",i=c.contextMenu=n.popupMenu.quickInsert(this,t,"sf-popupMenu");Promise.resolve().then((function(){var e=c.newGetVideoId();if(!e)throw new Error("Video is not found");return c.linkCache[e]||Object(A.a)({action:"getDailymotionLinks",extVideoId:e}).then((function(t){if(!t||!t.links)throw new Error("Links is not found");return c.linkCache[e]=t}))})).then((function(e){var t=n.popupMenu.prepareLinks.dailymotion(e.links,e.title);i.update(t)})).catch((function(e){I.debug("Load links error",e),i.update(r.a.i18n.getMessage("noLinksFound"))}))}}]});v.a.onRemoveEvent(i,(function(n){e.dataset.sfSkip=0,document.body.contains(e)&&t.mutationMode.observer.trigger(e)})),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=u()(e),r=document.querySelectorAll("["+n+"]"),i=0;t=r[i];i++)t.removeAttribute(n)}))},enable:function(){if(this.observer)return this.observer.start();this.observer=new M.a({queries:[{css:'div[class^="VideoInfo__reportAndActions"]',is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",c.insertBtn(t))}},{css:".".concat(v.a.onRemoveClassName),is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)v.a.onRemoveListener(t)}}]})}}}}),(function(){if(!s()())return!0;if(/\/embed\/([\w\-]+)/i.test(location.href)){var e=!1;try{e=location.hostname===window.parent.location.hostname}catch(e){}return!e}}))}})},function(e){!function(e){function t(t){for(var r,a,s=t[0],l=t[1],u=t[2],d=0,f=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(c&&c(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={20:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([123,0]),n()}({123:function(e,t,n){n.r(t);var r=n(0),i=n(11),o=n(10),a=n(25),s=n.n(a),l=n(24),u=n.n(l),c=n(18),d=n.n(c),f=n(9),p=n.n(f),h=n(20),m=n.n(h),g=n(14),v=n.n(g),b=n(3),y=n.n(b),A=n(2),w=n.n(A),k=n(5),x=n.n(k),C=n(6),S=n.n(C),_=n(13),I=n.n(_),O=n(8),E=n.n(O),L=n(29),N=n.n(L),T=n(51),j=n.n(T),F=n(16),D=n.n(F),R=n(22),P=n.n(R),V=n(37),B=n.n(V),U=n(17),z=n(43),q=S()("getYoutubeLinks");function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(e,t,n){return Object(U.a)(M({action:"getYoutubeLinks",extVideoId:e,url:t},n)).then((function(e){if(!e.links)throw Error("getYoutubeLinksFromBackground. Links not found");return e}))}(e,t,n).catch((function(t){return q.error("getVideoLinks error",t),function(e){return function(e){var t="https://www.youtube.com/embed/"+encodeURIComponent(e);return P()({url:t,localXHR:r.a.isGM}).then((function(e){var t=B()(e.body,/INNERTUBE_CONTEXT":(.*?),/);if(!t.length||!t[0].INNERTUBE_CONTEXT||!t[0].INNERTUBE_API_KEY)throw Error("INNERTUBE_CONTEXT not found");return t[0]}))}(e).then((function(t){var n="https://www.youtube.com/youtubei/v1/player?"+z.stringify({key:t.INNERTUBE_API_KEY});return P()({url:n,method:"POST",localXHR:r.a.isGM,json:!0,data:JSON.stringify({context:t.INNERTUBE_CONTEXT,videoId:e}),headers:{"Content-Type":"application/json","X-Youtube-Client-Name":t.INNERTUBE_CONTEXT_CLIENT_NAME||"55","X-Youtube-Client-Version":t.INNERTUBE_CONTEXT_CLIENT_VERSION||"1.20210331.1.0"}})})).then((function(e){return{videoInfo:{player_response:e.body}}}))}(e).then((function(t){var r=t.videoInfo;return Object(U.a)({action:"ytPrepareVideoInfo",videoId:e,checkSubtitles:n.checkSubtitles,noDash:n.checkSubtitles,config:r})}))})).then((function(e){if(!e.links)throw new Error("Links not found");return e}))}var W=n(7),Q=n(12),Z=S()("youtube_com");I.a.isSingle()&&Object(o.b)("youtube",(function(e,t){var n=Object(i.a)(t),o=t.preferences,a=o.moduleYoutube?1:0,l=r.a.isChrome||r.a.isFirefox||r.a.isGM&&r.a.isTM,c=s()();o.experiments;r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:a,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return f.changeState(t.state)}if("updatePreferences"!==t.action){if(a){if("updateLinks"===t.action){var i=f.getIdFromLocation();i&&g((function(e){if(e&&e.args&&e.args.video_id===i){var t=document.getElementById(f.buttonId);null!==t&&t.parentNode.removeChild(t),f.responseCache={},f.video_id=e.args.video_id;var n=document.getElementById("watch7-subscription-container");f.appendDownloadButton(n)}}))}"downloadPlaylist"===t.action&&f.downloadPlaylist()}}else Object.assign(o,t.preferences)})),a&&setTimeout((function(){f.run()}));var f={swfargs:null,video_id:"",buttonId:"savefrom__yt_btn",responseCache:{},isMobile:!1,mobileMenu:null,currentMenu:null,currentTutorial:null,run:function(){if(a=1,c){var e=location.href.match(/\/embed\/([\w\-]+)/i);(e=e&&e[1])||(c=!1)}return 0===location.host.indexOf("m.")?(f.isMobile=!0,void(E.a.isAvailable()&&f.mobileMutationMode.enable())):c?(f.video_id=e,void f.appendFrameButton()):void(E.a.isAvailable()&&(f.videoFeed.injectStyle(),f.mutationMode.enable()))},changeState:function(e){if(a=e,!c&&!f.isMobile){f.tutorial.hide(),f.hideCurrentMenu(),f.videoFeed.rmBtn(),f.mutationMode.stop();var t=document.getElementById(f.buttonId);t&&t.parentNode.removeChild(t),e&&f.run()}},hideCurrentMenu:function(){f.currentMenu&&(f.currentMenu.hide(),f.currentMenu=null)},hideMobileMenu:function(){f.mobileMenu&&(f.mobileMenu.hide(),f.mobileMenu=null)},mutationMode:{observer:null,stop:function(){f.mutationMode.observer&&f.mutationMode.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=d()(e),r=document.querySelectorAll("["+n+"]"),i=0;t=r[i];i++)t.removeAttribute(n)}))},wrapVideoFeedOnImgHover:function(){if(a&&f.videoFeed.testUrl(location.href)&&!(this.dataset.sfBtn>0)){this.dataset.sfBtn="1";var e=JSON.parse(this.dataset.sfContext);this.appendChild(f.videoFeed.getBtnNode(e.id,e.styleIndex))}},wrapNewVideoFeedOnThumbnailHover:function(){if(a&&f.videoFeed.testUrl(location.href)){var e=f.mutationMode,t=this,n=t.href,r=n&&n.match(f.videoFeed.hrefIdPattern),i=r&&r[1];if(i&&!t.querySelector(".sf-feed-btn")){var o=f.videoFeed.getBtnNode(i,2);y.a.onRemoveEvent(o,(function(){this.parentNode||y.a.one(t,"mouseenter",e.wrapNewVideoFeedOnThumbnailHover)})),t.appendChild(o)}n=null,r=null,i=null,o=null}},enable:function(){var e=this;if(e.observer)return e.observer.start();var t=function(t){if(f.videoFeed.testUrl(location.href))for(var n,r=0;n=t.added[r];r++)if(!(n.dataset.sfSkip>0)){n.dataset.sfSkip="1";var i=n.dataset.videoIds;if(i){var o=n.parentNode,a={};a.id=i,a.styleIndex=1,o.dataset.sfContext=JSON.stringify(a),y.a.one(o,"mouseenter",e.wrapVideoFeedOnImgHover)}}},n=function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.appendNewDownloadButton(t))};e.observer=new E.a({queries:[{css:"#watch7-subscription-container",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.appendDownloadButton(t))}},{css:".reel-video-in-sequence.style-scope.ytd-shorts #actions #like-button ytd-like-button-renderer",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.appendShortDownloadButton(t))}},{css:"button.addto-watch-later-button-sign-in",is:"added",callback:t},{css:"button.addto-watch-later-button",is:"added",callback:t},{css:"ytd-thumbnail a#thumbnail img",is:"added",callback:function(t){if(f.videoFeed.testUrl(location.href))for(var n,r=0;n=t.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",y.a.one(v()(n,"a"),"mouseenter",e.wrapNewVideoFeedOnThumbnailHover))}},{css:".ytd-page-manager #info #info-contents:not([hidden]) #top-level-buttons-computed",is:"added",callback:n},{css:".ytd-page-manager #actions .actions-inner #top-level-buttons-computed",is:"added",callback:n},{css:"."+y.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)y.a.onRemoveListener(t)}}]})}},mobileMutationMode:{observer:null,stop:function(){f.mutationMode.observer&&f.mutationMode.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=d()(e),r=document.querySelectorAll("["+n+"]"),i=0;t=r[i];i++)t.removeAttribute(n)}))},enable:function(){if(this.observer)return this.observer.start();this.observer=new E.a({queries:[{css:'div > div > div > a[onclick][href="#"] > span[id]',is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(0===t.id.indexOf("koya_elem_")){for(var r=0;r<4&&t;)t=t.parentNode,r++;if(t&&4===r){var i=1,o=t.querySelector("div:nth-child(1)>h1:nth-child(1)");if(o||(o=null),!o&&m()(t,'div > div > div[id^="koya_child_"]:last-child > div')){for(o=t,r=0;r<3&&o;)o=o.parentNode,r++;o&&o.querySelector("div:nth-child(1)>h2:nth-child(1)")?(t=t.parentNode,i=2):o=null}o&&(t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.appendMobileButton("",t,i)))}}}},{css:"#app .page-container .video-main-content-actions",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.appendMobileButton("",t,3))}},{css:"#app .page-container .playlist-controls-secondary",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.appendMobileButton("",t,4))}},{css:"#app .slim-video-action-bar-actions",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",f.appendNewMobileButton(t,5))}},{css:"."+y.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)y.a.onRemoveListener(t)}}]})}},_onSelectBtnClick:function(e,t){if(!(t.button>0))if(t.stopPropagation(),t.preventDefault(),f.currentMenu&&f.currentMenu.isShow)f.hideCurrentMenu();else{var i=e.btnObj,o=i.videoId,a=f.currentMenu=n.popupMenu.quickInsert(i.node,r.a.i18n.getMessage("download")+" ...","sf-popupMenu",{onShow:function(){y.a.onRemoveEvent(i.node,f.hideCurrentMenu)},onHide:function(){y.a.offRemoveEvent(i.node,f.hideCurrentMenu)},onItemClick:function(e,t){var n=t.itag;i.lastItag!==n&&r.a.storage.set({ytLastITag:n},(function(){f.quickBtn.setValue(i)})),f.onMenuItemClick(t,{isPageItem:1,videoId:o})},offsetTop:i.popupMenu&&i.popupMenu.offsetTop,offsetRight:i.popupMenu&&i.popupMenu.offsetRight,parent:i.popupMenu&&i.popupMenu.parent}),s=function(e){return e&&e.length?a.update(e,r.a.i18n.getMessage("partnersLinksOnly")):a.update(r.a.i18n.getMessage("noLinksFound"))};if(!o)return s();var l=function(e){var t=[];if(e.links){var i=n.popupMenu.prepareLinks.youtube(e.links,e.title,e.subtitles);if(!(i=i.filter((function(e){return e.href}))).length)return void s(t);if(0===i.filter((function(e){return!["ummy","televzr"].includes(e.format)})).length)return s(t);i=i.map((function(e){return!["360","720"].includes(e.quality)||"MP4"!==e.format||isNaN(parseInt(e.itag))||e.func||(e.func=function(){Z.log("track click downloadItem",e),r.a.sendMessage({action:"track",t:"event",tid:"UA-181742122-3",el:"mp4_".concat(e.quality),ec:"download",ea:"mp4_".concat(e.quality)})}),e})),a.update(i)}else s(t)},u=f.responseCache[o];if(u)return l(u);H(o,location.href,{checkSubtitles:!0}).then((function(e){f.responseCache[o]=e,l(e)}),(function(e){Z.error("get links for dropdown error",e),s()})),i.isFirstMenuShow&&(i.isFirstMenuShow=!1)}},appendDownloadButton:function(e){var t=e.querySelector("#"+f.buttonId);t&&(t.parentNode&&t.parentNode.removeChild(t),t=null);var n=this,r={},i=n.getButtonUnderVideo(f._onSelectBtnClick.bind(null,r));return r.btnObj=i,i.isFirstMenuShow=!0,i.setLoadingState(),e.appendChild(i.node),g((function(e){var t=null;if(e&&e.args&&e.args.video_id&&(t=e.args.video_id),t){i.node.dataset.sfVideoId=t,i.ytConfig=e,i.videoId=t,i.isPage=1;var r=[],o=function(){o=null,f.tutorial.show({target:i.node})};r.push((function(){return o&&o()})),i.onGetLinksArr=r,n.quickBtn.setValue(i)}}))},appendNewDownloadButton:function(e,t){var r=this,i=e.querySelector("#"+f.buttonId);if(i){if(t)return;i.classList.remove(y.a.onRemoveClassName),i.parentNode&&i.parentNode.removeChild(i),i=null}var o=new this.getNewButtonUnderVideo(f._onSelectBtnClick);o.isFirstMenuShow=!0,o.setLoadingState();var a=e.childNodes[2];a||(a=e.firstChild),a?e.insertBefore(o.node,a):e.appendChild(o.node);var s=null,l=null;return y.a.onRemoveEvent(o.node,(function(){s&&(s.abort(),s=null),l&&(l.destroy(),l=null),e.parentNode&&f.appendNewDownloadButton(e,!0)})),o.popupMenu={offsetTop:-6,offsetRight:-1,parent:o.menuContainer},(s=n.waitNodesBySelector("#movie_player")).then((function(){if(j()(document.body,o.node))return b().then((function(e){var t=e&&e.args&&e.args.video_id;if(t){o.node.dataset.sfVideoId=t,o.ytConfig=e,o.videoId=t,o.isPage=1;var n=[];o.onGetLinksArr=n,n.push((function(){f.tutorial.show({target:o.selectBtn,parent:o.menuContainer,btnLeftOffset:12,btnTopOffset:-6})})),r.quickBtn.setValue(o),Object(W.a)({category:"append",subcategory:"101",event:"b"})}else Z.debug("videoId is not found!")}));Z.debug("Btn not exists")})).catch((function(e){"ABORTED"!==e.message&&Z.error("waitNodesBySelector error",e)}))},appendShortDownloadButton:function(e,t){var r=this;e.closest(".overlay.ytd-reel-video-renderer").style.overflow="visible";var i=e.querySelector("#"+f.buttonId);if(i){if(t)return;i.classList.remove(y.a.onRemoveClassName),i.parentNode&&i.parentNode.removeChild(i),i=null}var o=new this.getShortButton(f._onSelectBtnClick);o.isFirstMenuShow=!0,o.setLoadingState(),e.append(o.node);var a=null,s=null;return y.a.onRemoveEvent(o.node,(function(){a&&(a.abort(),a=null),s&&(s.destroy(),s=null),e.parentNode&&f.appendShortDownloadButton(e,!0)})),o.popupMenu={offsetTop:-6,offsetRight:-1,parent:o.menuContainer},(a=n.waitNodesBySelector("#movie_player")).then((function(){if(j()(document.body,o.node))return b().then((function(e){console.log("config ",e);var t=e&&e.args&&e.args.video_id;if(t){o.node.dataset.sfVideoId=t,o.ytConfig=e,o.videoId=t,o.isPage=1;var n=[];o.onGetLinksArr=n,n.push((function(){f.tutorial.show({target:o.selectBtn,parent:o.menuContainer,btnLeftOffset:12,btnTopOffset:-6})})),r.quickBtn.setValue(o),Object(W.a)({category:"append",subcategory:"101",event:"b"})}else Z.debug("videoId is not found!")}));Z.debug("Btn not exists")})).catch((function(e){"ABORTED"!==e.message&&Z.error("waitNodesBySelector error",e)}))},getIdFromLocation:function(e){e||(e=document.location.href);var t=e.match(/\/watch\?(?:.+&)?v=([\w\-]+)/i);return(t=t&&t[1])||null},getIdFromLocationShorts:function(){return window.location.href.substring(31,42)},appendNewMobileButton:function(e,t){var i=w.a.create("div",{id:f.buttonId,style:{flex:"1 1",minWidth:0,overflow:"hidden",margin:"-0.7em -0.57em",marginLeft:"0.7em",marginRight:0,display:"flex"},append:[w.a.create("button",{style:{padding:".7em .57em"},append:[w.a.create("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},append:[w.a.create("div",{style:{display:"block",height:"24px",width:"24px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",backgroundSize:"20px"}}),w.a.create("div",{style:{marginTop:"7px",alignSelf:"center",minHeight:"1em",lineHeight:"1em"},text:r.a.i18n.getMessage("download")})]})],on:["click",function(e){e.preventDefault(),f.hideMobileMenu();var t=f.getIdFromLocation(),i=f.mobileMenu=n.mobileLightBox.show(r.a.i18n.getMessage("download")+" ...");return Promise.resolve().then((function(){return f.responseCache[t]?f.responseCache[t]:H(t,location.href)})).then((function(e){f.responseCache[t]=e;var r=n.popupMenu.prepareLinks.youtube(e.links,e.title||f.getTitleModify());Z.log("lightbox update"),i.update(r)}),(function(e){Z.error("getLinks for mobile error",e),i.update(void 0)}))}]})]});y.a.onRemoveEvent(i,(function(){f.hideMobileMenu(),document.body.contains(e)&&(e.dataset.sfSkip="0",f.mobileMutationMode.observer.trigger(e))})),e.appendChild(i)},appendMobileButton:function(e,t,i){var o={};3===i?Object.assign(o,{display:"flex",height:"24px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",padding:".7em .57em",marginLeft:".7em"}):4===i?Object.assign(o,{display:"flex",width:"24px",background:"url("+n.svg.getSrc("download","#eee")+") center no-repeat",padding:".7em .57em",marginLeft:".7em"}):1===i?Object.assign(o,{display:"inline-block",height:"28px",width:"18px",marginRight:"20px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",cssFloat:"right"}):2===i&&Object.assign(o,{display:"inline-block",height:"38px",width:"18px",marginRight:"12px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",backgroundSize:"20px",cssFloat:"right"});var a=w.a.create("div",{data:{id:e},style:o,on:["click",function(){var e=this.dataset.id||f.getIdFromLocation();f.hideMobileMenu();var t=f.mobileMenu=n.mobileLightBox.show(r.a.i18n.getMessage("download")+" ..."),i=function(e){var r=null;e&&e.links&&(r=n.popupMenu.prepareLinks.youtube(e.links,e.title||f.getTitleModify())),t.update(r)},o=f.responseCache[e];if(o)return i(o);H(e,location.href).then((function(e){Z.info("getLinks for mPlaylist"),i(e)}),(function(e){Z.error("getLinks for mPlaylist error",e),i(void 0)}))}]});y.a.onRemoveEvent(a,(function(){f.hideMobileMenu(),3!==i&&4!==i||document.body.contains(t)&&(t.dataset.sfSkip="0",f.mobileMutationMode.observer.trigger(t))}));var s='div[id^="koya_child_"]:nth-child(1) > a[href="#"] > span[id^="koya_elem_"]',l=t.lastElementChild;l.querySelector(s)||(l=l.previousElementSibling).querySelector(s)||(l=null),l&&(l=l.nextElementSibling),l?l.parentNode.insertBefore(a,l):t.appendChild(a)},getNewButtonUnderVideo:function(e){var t=this,i=this,o=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");this.node=w.a.create("div",{id:f.buttonId,style:{display:["-ms-flexbox","-webkit-flex","flex"],marginLeft:"8px",MsFlexDirection:"row",WebkitFlexDirection:"row",flexDirection:"row",MsFlexAlign:"center",WebkitAlignItems:"center",alignItems:"center",MsFlexPack:"center",WebkitJustifyContent:"center",justifyContent:"center",padding:"0 8px 0 0"},append:[this.menuContainer=w.a.create("div",{style:{position:"relative"}}),this.quickBtn=w.a.create("a",{class:"sf-quick-dl-btn",on:[["click",function(){Z.log("track click greenBtn"),r.a.sendMessage({action:"track",t:"event",tid:"UA-181742122-3",ec:"menu",el:"menu",ea:"download"})}],["mouseover",function(e){if(o){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(Q.showTooltip)(t.quickBtn,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60});Object(Q.hideTooltip)(t.quickBtn,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60})}}]],style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #00B75A",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"},href:"#",append:[w.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+n.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}}),w.a.create("span",{class:"sf-btn-name",style:{paddingRight:"12px"},text:r.a.i18n.getMessage("download")})]}),this.quickBtnStyle=w.a.create("style",{text:p()({selector:"#"+f.buttonId,style:{fontFamily:"Roboto, Arial, sans-serif",fontSize:"13px"},append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{backgroundColor:"#00B75A"},".sf-quick-dl-btn:hover":{backgroundColor:"rgb(0, 163, 80)"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}},{media:"@media screen and (max-width: 1293px), screen and (max-height: 768px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]})}),this.selectBtn=w.a.create("button",{style:{position:"relative",display:"inline-block",marginLeft:"-2px",fontSize:"inherit",height:"24px",paddingRight:"21px",backgroundColor:"#F8F8F8",border:"1px solid #CCCCCC",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#9B9B9B",zIndex:0,verticalAlign:"middle",boxSizing:"border-box",lineHeight:r.a.isSafari?"21px":"22px"},on:["mousedown",function(t){return e.call(this,{btnObj:i},t)}],append:[this.selectBtnIcon=w.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})]})]}),this.node.classList.add(y.a.onRemoveClassName);var a=function(e){var t="object"==typeof e?e:document.createTextNode(e);t.style.marginLeft=0;var n=i.selectBtn.firstChild;n===i.selectBtnIcon?i.selectBtn.insertBefore(t,n):i.selectBtn.replaceChild(t,n)};this.setQuality=a,this.setLoadingState=function(){a(w.a.create("img",{src:n.svg.getSrc("info","#333333"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:r.a.isSafari?"-3px":"-1px",position:"relative"}}))}},getButtonUnderVideo:function(e){var t,i,o=null,a=w.a.create("div",{id:f.buttonId,style:{display:"inline-block",marginLeft:"10px",verticalAlign:"middle"},append:[i=w.a.create("a",{class:"sf-quick-dl-btn",style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #00B75A",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"},href:"#",append:[w.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+n.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}}),w.a.create("span",{class:"sf-btn-name",style:{paddingRight:"12px"},text:r.a.i18n.getMessage("download")})]}),w.a.create("style",{text:p()({selector:"#"+f.buttonId,append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{backgroundColor:"#00B75A"},".sf-quick-dl-btn:hover":{backgroundColor:"rgb(0, 163, 80)"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}},{media:"@media screen and (max-width: 1293px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]})}),o=w.a.create("button",{style:{position:"relative",display:"inline-block",marginLeft:"-2px",fontSize:"inherit",height:"24px",paddingRight:"21px",backgroundColor:"#F8F8F8",border:"1px solid #CCCCCC",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#9B9B9B",zIndex:0,verticalAlign:"middle",boxSizing:"border-box",lineHeight:"22px"},on:["mousedown",e],append:[t=w.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})]})]});a.classList.add(y.a.onRemoveClassName);var s=function(e){var n="object"==typeof e?e:document.createTextNode(e),r=o.firstChild;r===t?o.insertBefore(n,r):o.replaceChild(n,r)};return{node:a,selectBtn:o,quickBtn:i,setQuality:s,setLoadingState:function(){s(w.a.create("img",{src:n.svg.getSrc("info","#333333"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:"-1px",position:"relative"}}))}}},getShortButton:function(e){var t=this,i=this,o=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");this.node=w.a.create("div",{id:f.buttonId,style:{display:["-ms-flexbox","-webkit-flex","flex"],marginLeft:"8px",MsFlexDirection:"column",WebkitFlexDirection:"column",flexDirection:"column",MsFlexAlign:"center",WebkitAlignItems:"center",alignItems:"center",MsFlexPack:"center",WebkitJustifyContent:"center",justifyContent:"center",padding:"0 8px 0 0",marginTop:"16px"},append:[this.menuContainer=w.a.create("div",{style:{position:"relative"}}),this.quickBtn=w.a.create("a",{class:"sf-quick-dl-btn",on:[["click",function(){Z.log("track click greenBtn"),r.a.sendMessage({action:"track",t:"event",tid:"UA-181742122-3",ec:"menu",el:"menu",ea:"download"})}],["mouseover",function(e){if(o){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(Q.showTooltip)(t.quickBtn,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60});Object(Q.hideTooltip)(t.quickBtn,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60})}}]],style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #606060",borderRadius:"3px",borderTopRightRadius:0,borderBottomRightRadius:0,paddingLeft:"28px",marginBottom:"10px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#fff"},href:"#",append:[w.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+n.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}})]}),this.quickBtnStyle=w.a.create("style",{text:p()({selector:"#"+f.buttonId,style:{fontFamily:"Roboto, Arial, sans-serif",fontSize:"13px"},append:[{"button::-moz-focus-inner":{padding:0,margin:0},".sf-quick-dl-btn":{border:"1px solid #606060",backgroundColor:"#606060"},".sf-quick-dl-btn:hover":{border:"1px solid #00B75A",backgroundColor:"#00B75A"},".sf-quick-dl-btn:active":{backgroundColor:"rgb(0, 151, 74)"}}]})}),this.selectBtn=w.a.create("button",{style:{position:"relative",display:"inline-block",marginLeft:"-2px",fontSize:"inherit",height:"24px",paddingRight:"21px",backgroundColor:"#F8F8F8",border:"1px solid #CCCCCC",borderRadius:"3px",borderTopLeftRadius:"0",borderBottomLeftRadius:"0",cursor:"pointer",color:"#9B9B9B",zIndex:0,verticalAlign:"middle",boxSizing:"border-box",lineHeight:r.a.isSafari?"21px":"22px"},on:["mousedown",function(t){return e.call(this,{btnObj:i},t)}],append:[this.selectBtnIcon=w.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})]})]}),this.node.classList.add(y.a.onRemoveClassName);var a=function(e){var t="object"==typeof e?e:document.createTextNode(e);t.style.marginLeft=0;var n=i.selectBtn.firstChild;n===i.selectBtnIcon?i.selectBtn.insertBefore(t,n):i.selectBtn.replaceChild(t,n)};this.setQuality=a,this.setLoadingState=function(){a(w.a.create("img",{src:n.svg.getSrc("info","#333333"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:r.a.isSafari?"-3px":"-1px",position:"relative"}}))}},titleChangeObserver:null,playerStateChangeObserver:null,observeFrameVideoChange:function(e){var t=this;if(E.a.isAvailable()){var n=document.querySelector(".ytp-title-link");n&&(this.titleChangeObserver&&this.titleChangeObserver.stop(),this.titleChangeObserver=new N.a({attrs:[{name:"href",callback:function(n){var r=n.oldValue&&f.getIdFromLocation(n.oldValue),i=n.value&&f.getIdFromLocation(n.value);r!==i&&f.video_id!==i&&(f.video_id=i,f.frameQualityDetected&&(e.link=null,e.setLoadingState(),t.quickBtn.setValue(e)))}}],target:n}));var r=document.querySelector(".html5-video-player");if(r){var i=null,o=/(\s|^)ytp-autohide(\s|$)/;this.playerStateChangeObserver&&this.playerStateChangeObserver.stop(),this.playerStateChangeObserver=new N.a({attrs:[{name:"class",callback:function(t){var n=o.test(t.oldValue),r=o.test(t.value);!n&&r?(clearTimeout(i),i=setTimeout((function(){e.lockHide||e.container.classList.add("sf-hide-ui")}),100)):n&&!r&&(clearTimeout(i),e.container.classList.remove("sf-hide-ui"))}}],target:r})}}},appendFrameButton:function(){if(!(document.body.clientWidth<220||document.body.clientHeight<150)){var e=f,t=!0,i=n.frameMenu.getBtn({btnId:"sfYtFrameBtn",containerStyle:{top:"40px",right:"20px"},on:[["mousedown",function(t){t.stopPropagation(),2===t.button&&(e.onFrameMouseEnterBind&&(y.a.off(document.body,"mouseenter",e.onFrameMouseEnterBind),y.a.off(document.body,"mouseleave",e.onFrameMouseLeaveBind),e.onFrameMouseEnterBind=null,e.onFrameMouseLeaveBind=null),e.titleChangeObserver&&(e.titleChangeObserver.stop(),e.titleChangeObserver=null),e.playerStateChangeObserver&&(e.playerStateChangeObserver.stop(),e.playerStateChangeObserver=null),e.hideCurrentMenu(),i.container.parentNode&&i.container.parentNode.removeChild(i.container))}]],onSelectBtn:["mousedown",function(o){if(!(o.button>0)){o.stopPropagation(),o.preventDefault();var a=e.video_id;if(e.currentMenu)f.hideCurrentMenu();else{var s=e.currentMenu=n.frameMenu.getMenu(this.parentNode,r.a.i18n.getMessage("download")+" ...","sf-popupMenu",{container:i.container,onShow:function(){i.node.classList.add("sf-over"),t||(t=!1)},onHide:function(){e.currentMenu=null,i.node.classList.remove("sf-over")},onItemClick:function(t,n){var o=n.itag;i.lastItag!==o&&r.a.storage.set({ytLastITag:o},(function(){e.quickBtn.setValue(i)})),f.onMenuItemClick(n,{isFrameItem:1,videoId:a})}}),l=function(e){var t=n.popupMenu.prepareLinks.youtube(e.links,e.title,e.subtitles,{ummyVid:136});s.update(t)},u=e.responseCache[a];if(u)return l(u);H(a,location.href,{checkSubtitles:!0}).then((function(t){e.responseCache[a]=t,Z.log("Links for frame received"),l(t)}),(function(e){Z.error("Get links for frame error",e),s.update(r.a.i18n.getMessage("noLinksFound"))}))}}}]});i.setLoadingState(),i.container=w.a.create("div",{class:"sf-btn-ctr",append:i.node}),document.body.appendChild(i.container);y.a.on(i.node,"mouseenter",(function t(){y.a.off(i.node,"mouseenter",t),e.frameQualityDetected||(e.frameQualityDetected=!0,e.quickBtn.setValue(i))})),y.a.one(document,"mouseenter",(function(){e.onFrameMouseEnter(i)})),y.a.on(i.container,"mouseenter",(function(){i.lockHide=!0})),y.a.on(i.container,"mouseleave",(function(){i.lockHide=!1})),i.node.appendChild(w.a.create("style",{text:p()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #sfYtFrameBtn","body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-popupMenu"],style:{display:"block"}}])})),this.onFrameMouseEnterBind&&(y.a.off(document.body,"mouseenter",this.onFrameMouseEnterBind),y.a.off(document.body,"mouseleave",this.onFrameMouseLeaveBind)),this.onFrameMouseEnterBind=this.onFrameMouseEnter.bind(this,i),this.onFrameMouseLeaveBind=this.onFrameMouseLeave.bind(this,i),y.a.on(document.body,"mouseenter",this.onFrameMouseEnterBind),y.a.on(document.body,"mouseleave",this.onFrameMouseLeaveBind),this.observeFrameVideoChange(i)}},frameQualityDetected:!1,frameQualityTimer:null,onFrameMouseEnterBind:null,onFrameMouseLeaveBind:null,onFrameMouseEnter:function(e){var t=this;this.frameQualityDetected||(clearTimeout(this.frameQualityTimer),this.frameQualityTimer=setTimeout((function(){t.frameQualityDetected||(t.frameQualityDetected=!0,t.quickBtn.setValue(e))}),500))},onFrameMouseLeave:function(e){this.frameQualityDetected||clearTimeout(this.frameQualityTimer)},getTitle:function(){var e=document.getElementById("watch-headline-title");if(e)return e.textContent;for(var t=document.getElementsByTagName("meta"),n=0;n<t.length;n++){var r=t[n].getAttribute("name");if(r&&"title"==r.toLowerCase())return t[n].getAttribute("content")}return c||f.isMobile?document.title.replace(/ - YouTube$/,""):""},getTitleModify:function(){var e=f.getTitle();return e&&(e=h(e)),e},onMenuItemClick:function(e,t){t=t||{},e.format||r.a.sendMessage({action:"track",t:"event",ec:"youtube",ea:"new_format",el:e.itag+" "+t.videoId})},onDlBtnClick:function(e,t,r){if(r=r||{},!t)return e.preventDefault(),e.stopPropagation(),void y.a.trigger(this.parentNode.lastChild,"mousedown");f.onMenuItemClick(t,r),"ummy"!==t.quality&&"muxer"!==t.itag&&t.forceDownload&&n.downloadOnClick(e)},quickBtn:{prepMenuLinks:function(e,t){for(var r,i=n.popupMenu.prepareLinks.youtube(e,t),o=[],a=0;r=i[a];a++)o.push({prop:r});return{menuLinks:i=n.popupMenu.sortMenuItems(o)}},setValueInSelectBtn:function(e,t){"object"!=typeof t&&(t=document.createTextNode(t));var n=e.selectBtn.firstChild;n===e.selectBtn.lastChild?e.selectBtn.insertBefore(t,n):e.selectBtn.replaceChild(t,n)},getBestItem:function(e){return r.a.callFn("auth.isAuth").then((function(t){var n=e.find((function(e){var n=e.prop.noAudio||e.prop.noVideo;return!("pro"===e.prop.itag&&!t||n||"televzr"===e.prop.itag||e.prop.isHidden)}));return n?n.prop:void 0}))},bindDlBtn:function(e){var t=e.quickBtn;e.quickBtnEvent&&t.removeEventListener("click",e.quickBtnEvent),t.addEventListener("click",e.quickBtnEvent=function(t){e.link.func&&e.link.func(t),t.stopPropagation(),e.link&&f.currentMenu&&f.hideCurrentMenu();var n={videoId:e.videoId||f.video_id,links:e.links};e.isPage?n.isPage=1:n.isFrame=1,f.onDlBtnClick.call(this,t,e.link,n)})},setBestValue:function(e,t){var n=e.quickBtn;e.link=t;var i=t.quality;"pro"===t.itag?i={2160:"4K",4320:"8K",hls:"HLS",1440:"QHD"}[t.quality]||t.quality:t.noVideo||(i=parseInt(i)),t["3d"]&&(i="3D "+i),t.sFps&&(i+=" "+(t.fps||60));var o=w.a.create("span",{text:i,style:{marginLeft:"6px",verticalAlign:"bottom"}});e.setQuality?e.setQuality(o):this.setValueInSelectBtn(e,o);var a=[t.format,i];if(t.noAudio&&a.push(r.a.i18n.getMessage("withoutAudio")),a=a.join(" "),n.title=a,n.href=t.href,t.title&&t.format){var s=(t.ext||t.format||"").toLowerCase();s&&(s="."+s),n.setAttribute("download",x.a.modify(t.title+s))}},onGetLinks:function(e,t,n){var i=this;if(t){var o=Object.keys(t).length;t.meta&&o--}if(!t||!o)return this.setValueInSelectBtn(e,"");r.a.storage.get("ytLastITag",(function(r){var o=r.ytLastITag;e.lastItag=o;var a=i.prepMenuLinks(t,n||f.getTitleModify());e.onGetLinksArr&&e.onGetLinksArr.forEach((function(e){return e(a.menuLinks)})),i.getBestItem(a.menuLinks).then((function(t){t?i.setBestValue(e,t):i.setValueInSelectBtn(e,"")}))}))},setValue:function(e){var t=this;this.bindDlBtn(e);var n=e.videoId||f.video_id;if(!n)return this.onGetLinks(e);var i=f.responseCache[n];if(i)return this.onGetLinks(e,i.links,i.title),void(i=null);var o=function(n){return(n=n||{}).isQuick&&(e.quickBtn.dataset.isQuick="1"),e.links=n.links,t.onGetLinks(e,n.links,n.title)};e.ytConfig?r.a.sendMessage({action:"getYoutubeLinksFromConfig",extVideoId:n,url:location.href,noDash:!0,config:e.ytConfig},o):H(n,location.href,{noDash:!0}).then(o,(function(e){Z.error("get links quickBtnDownload",e)}))}},videoFeed:{style:null,hrefIdPattern:/[\?&]v=([^&]+)/,imgIdPattern:/vi[^\/]*\/([^\/]+)/,rList:[/\/playlist\?/,/(user|channel|c|show)\/[^\/]+(\/feed|\/featured|\/videos|$)/i,/\/(feed)\/(trending|subscriptions|history)/i],testUrl:function(e){return this.rList.some((function(t){return t.test(e)}))},injectStyle:function(){this.style?!this.style.parentNode&&document.head.appendChild(this.style):(this.style=w.a.create("style",{class:"sf-feed-style",text:p()([{selector:[".contains-percent-duration-watched .sf-feed-btn"],style:{bottom:"6px"}},{selector:["a > .sf-feed-btn","div > .sf-feed-btn","span > .sf-feed-btn"],style:{display:"none",border:"1px solid #d3d3d3",width:"20px",height:"20px",padding:0,position:"absolute",right:"26px",bottom:"2px",borderRadius:"2px",background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px",cursor:"pointer"}},{selector:["a > .sf-feed-btn.style-2"],style:{border:0,top:0,left:0,margin:"4px",padding:"2px 4px",background:"url("+n.svg.getSrc("download","#FFF")+") center no-repeat #000",backgroundSize:"14px",opacity:".8"}},{selector:["a > .sf-feed-btn:hover","div > .sf-feed-btn:hover","span > .sf-feed-btn:hover"],style:{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:["a > .sf-feed-btn.style-2:hover"],style:{border:0,top:0,left:0,margin:"4px",padding:"2px 4px",background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #000",backgroundSize:"14px",opacity:".8"}},{selector:["a > .sf-feed-btn:active","div > .sf-feed-btn:active","span > .sf-feed-btn:active"],style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}},{selector:["a:hover > .sf-feed-btn","div:hover > .sf-feed-btn","span:hover > .sf-feed-btn"],style:{display:"block"}}])}),document.head.appendChild(this.style))},rmBtn:function(){for(var e,t=document.querySelectorAll(".sf-feed-btn"),n=0;e=t[n];n++)e.parentNode.removeChild(e);["sfBtn","sfSkip"].forEach((function(r){var i=d()(r);for(t=document.querySelectorAll("["+i+"]"),n=0;e=t[n];n++)e.removeAttribute(i)}))},getBtnNode:function(e,t){var i=["sf-feed-btn"];return t&&i.push("style-"+t),w.a.create("i",{class:i,on:["click",function(t){t.preventDefault(),t.stopPropagation();var i=this;if(f.currentMenu&&f.currentMenu.isShow)f.hideCurrentMenu();else{var o=e,a=i.parentNode;if(a&&"A"===a.tagName&&"thumbnail"===a.id){var s=f.videoFeed.hrefIdPattern.exec(a.href);s&&(o=s[1])}var l=document.querySelector("#home-page-skeleton.hidden"),u=f.currentMenu=n.popupMenu.quickInsert(i,r.a.i18n.getMessage("download")+" ...","sf-popupMenu",{offsetTop:l?54:0,onShow:function(){y.a.onRemoveEvent(i,f.hideCurrentMenu)},onHide:function(){y.a.offRemoveEvent(i,f.hideCurrentMenu)},onItemClick:function(e,t){f.onMenuItemClick(t,{isFeedItem:1,videoId:o})}});H(o,location.href,{checkSubtitles:!0}).then((function(e){Z.log("get links for videoFeed");var t=n.popupMenu.prepareLinks.youtube(e.links,e.title,e.subtitles);u.update(t)})).catch((function(e){Z.error("get links for videoFeed err",e),u.update(r.a.i18n.getMessage("noLinksFound"))}))}}]})}},downloadPlaylist:function(){var e=function(e){for(var t,n=[],r=e.querySelectorAll("ytd-browse:not([hidden]) #contents img[src]#img"),i=f.videoFeed.imgIdPattern,o=0;t=r[o];o++){var a=t.src.match(i);a&&-1===n.indexOf(a[1])&&n.push(a[1])}for(var s,l=e.querySelectorAll("*[data-video-id]"),u=0;s=l[u];u++){var c=s.dataset.videoId;-1===n.indexOf(c)&&n.push(c)}return n},t=function(e,t,r,i){var o=!1,a={},s=0,l=0,u=e.length,c=void 0;"audio"===t?(c=["audio"],t=void 0):(c=["video"],t=parseInt(t)||void 0);var d=function d(){if(!o){var f=e[s];if(void 0===f)return 0===l?i(a):void 0;s++,l++,function(e,t,r,i){var o=-1!==r.indexOf("audio");H(e,location.href,{noDash:o}).then((function(e){var o=n.popupMenu.prepareLinks.youtube(e.links,e.title);o=n.popupMenu.sortMenuItems(o,{noProp:!0,maxSize:t,minSize:2,typeList:r}),i(o)})).catch((function(e){Z.error("Get yt links for playlist error",e),i(void 0)}))}(f,t,c,(function(e){e&&(e=e.filter((function(e){return!["televzr","ummy","pro","muxer"].includes(e.itag)})));var t=e?e[0]:void 0;if(t){var n=(t.ext||t.format||"").toLowerCase();n&&(n="."+n);var i=x.a.modify(t.title+n);a[f]={url:t.href,title:t.title,filename:i}}r(s,u),l--,d()}))}};return d(),d(),{abort:function(){o=!0}}};return function(){var i=!1,o=function(e){var t,i,o,a,s,u=n.playlist.getInfoPopupTemplate();r.a.sendMessage({action:"getWarningIcon",type:"playlist",color:"#77D1FA"},(function(e){u.icon.style.backgroundImage="url("+e+")"})),w.a.create(u.textContainer,{append:[w.a.create("p",{text:r.a.i18n.getMessage("playlist"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),i=w.a.create("div",{append:[w.a.create("p",{text:r.a.i18n.getMessage("quality")+":",style:{color:"#000000",fontSize:"14px",marginBottom:"13px",lineHeight:"24px"},append:[o=w.a.create("select",{style:{width:"75px",marginLeft:"5px"},append:["720","480","360","240","Audio"].map((function(e){return w.a.create("option",{text:e,value:e.toLowerCase()})}))})]}),w.a.create("p",{text:r.a.i18n.getMessage("qualityNote"),style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]}),t=w.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]}),w.a.create(u.buttonContainer,{append:[s=w.a.create("button",{text:r.a.i18n.getMessage("cancel"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"4px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}}),a=w.a.create("button",{text:r.a.i18n.getMessage("continue"),style:{height:"27px",width:"118px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",margin:"12px",marginBottom:"11px",marginRight:"8px",borderRadius:"5px",fontSize:"14px",cursor:"pointer"}})]});var c=n.popupDiv(u.body,"pl_progress_popup",void 0,void 0,e);return{qualitySelect:function(e){t.style.display="none",u.buttonContainer.style.display="block",i.style.display="block",a.addEventListener("click",(function(){e(o.value)})),s.addEventListener("click",(function(){y.a.trigger(c,"kill")}))},onPrepare:function(e){t.style.display="block",u.buttonContainer.style.display="none",i.style.display="none",t.textContent=e},onProgress:function(e,n){t.textContent=r.a.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+r.a.i18n.getMessage("vkFoundOf")+" "+n},onReady:function(e,t){y.a.trigger(c,"kill"),l?n.downloadList.showBeforeDownloadPopup(e,{type:"playlist",folderName:t}):n.playlist.popupPlaylist(e,t,!0,void 0,"video")},onError:function(e){r.a.sendMessage({action:"getWarningIcon",type:"playlist",color:"#AAAAAA"},(function(e){u.icon.style.backgroundImage="url("+e+")"})),t.style.display="block",u.buttonContainer.style.display="none",i.style.display="none",t.textContent=e}}}((function(){i=!0}));o.qualitySelect((function(n){o.onPrepare(r.a.i18n.getMessage("download")+" ..."),function(t){var n=document,i=u()(location.href);if(i.list)r.a.sendMessage({action:"getYoutubeIdListFromPlaylist",listId:i.list,baseUrl:location.protocol+"//"+location.host},(function(n){if(!n)return t();if(!n.idList||0===n.idList.length){var r=document.querySelector(".playlist-videos-container > .playlist-videos-list");if(null!==r&&(n.idList=e(r)),!n.title){var i=document.querySelector(".playlist-info > .playlist-title");null!==i&&(n.title=i.textContent.replace(/\r?\n/g," ").trim())}}t(n.idList,n.title)}));else{var o=e(n);t(o,f.getTitle())}}((function(e,a){if(!i)if(e&&0!==e.length){var s=function(e,n,r){return new Promise((function(i){return t(e,n,r,i)}))};s(e,n,o.onProgress).then((function(t){return 0===Object.keys(t).length?s(e,720,o.onProgress):t})).then((function(e){var t=[];for(var n in e)t.push(e[n]);var r=x.a.modify(a);o.onReady(t,r)}))}else o.onError(r.a.i18n.getMessage("noLinksFound"))}))}))}}()};f.tutorial={show:function(e){if(this.hide(),o.onceShowYtTooltip){e.onClose=function(){t&&t.stop(),r.a.sendMessage({action:"updateOption",key:"onceShowYtTooltip",value:o.onceShowYtTooltip=0})},f.currentTutorial=new n.TutorialTooltip(e);var t=null,i=document.querySelector("#page.watch");i&&(t=f.currentTutorial.attrWatcher=new N.a({attrs:[{name:"class",callback:function(){var e=f.currentTutorial;e&&e.tooltipNode.parentNode?e.onResize():t.stop()}}],target:i}))}},hide:function(){var e=f.currentTutorial;e&&(e.onClose&&e.onClose(1),e.attrWatcher&&e.attrWatcher.stop(),f.currentTutorial=null)}};var h=function(e){return(e=(e=(e=(e=(e=e.replace(/[\x2F\x5C\x3A\x7C]/g,"-")).replace(/[\x2A\x3F]/g,"")).replace(/\x22/g,"'")).replace(/\x3C/g,"(")).replace(/\x3E/g,")")).replace(/(?:^\s+)|(?:\s+$)/g,"")},g=function(e){return D()("function(){var ytPlayerConfig=window.ytplayer&&window.ytplayer.config;if(!ytPlayerConfig){return}return{args:ytPlayerConfig.args,sts:ytPlayerConfig.sts,assets:ytPlayerConfig.assets}}").then((function(t){if(!t||!t.args||!t.args.video_id){var n=document.querySelector('#watch7-content meta[itemprop="videoId"]'),r=n&&n.getAttribute("content");r&&((t=t||{}).args=t.args||{},t.args.video_id=r)}return e(t)}))},b=function(){return D()('function(){try{var player=document.querySelector("#movie_player");if(!player){throw new Error("PLAYER_IS_NOT_FOUND")}if(!player.getVideoData){throw new Error("PLAYER_API_IS_NOT_FOUND")}if(!player.getPlayerResponse){(function(fn){if(fn&&!fn.sf_apply){fn.sf_apply=fn.apply;fn.apply=function(self,args){var playerArgs=args[0];if(playerArgs&&playerArgs.raw_player_response){var vars=null;try{vars=JSON.parse(JSON.stringify(playerArgs))}catch(err){// pass\n}player.getSfPlayerVars=function(){return vars}}return fn.sf_apply(self,args)}}})(player.loadVideoByPlayerVars)}var ytPlayer=window.ytplayer;var playerUrl=ytPlayer&&ytPlayer.web_player_context_config&&ytPlayer.web_player_context_config.jsUrl;// when open main page\nif(!playerUrl&&typeof ytcfg==="object"&&ytcfg){playerUrl=ytcfg.data_&&ytcfg.data_.PLAYER_JS_URL}var playerResponse=player.getPlayerResponse&&player.getPlayerResponse();if(!playerResponse){var sfConfig=player.getSfPlayerVars&&player.getSfPlayerVars();playerResponse=sfConfig&&sfConfig.raw_player_response}if(!playerResponse){playerResponse=ytPlayer&&ytPlayer.config&&ytPlayer.config.args&&ytPlayer.config.args.raw_player_response}var videoData=player.getVideoData();var video_id=videoData&&videoData.video_id;return{result:{config:{playerUrl:playerUrl,args:{player_response:playerResponse,video_id:playerResponse&&playerResponse.videoDetails&&playerResponse.videoDetails.videoId}},video_id:video_id}}}catch(err){return{error:{message:err.message,stack:err.stack}}}}').then((function(e){var t=null;if(e?e.error&&(t=Object.assign(new Error("UNKNOWN_ERROR"),e.error)):t=new Error("EMPTY_RESPONSE"),t)throw t;return e.result})).then((function(e){var t=e.config,n=e.video_id;return n||(n=f.getIdFromLocation()),n||(n=f.getIdFromLocationShorts()),!t.args.player_response||n&&n!==t.args.video_id?n?{args:{video_id:n}}:null:t}))}}),(function(){return!/\/\/gaming\.youtube/.test(location.href)}))}})},function(e){!function(e){function t(t){for(var r,a,s=t[0],l=t[1],u=t[2],d=0,f=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(c&&c(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={13:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([115,0]),n()}({115:function(e,t,n){n.r(t);var r=n(0),o=n(16),l=n.n(o),u=n(17),d=n(7),f=n(12),p=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");function m(e){return e.dataset.sfSongReady=1,e}var g=function(e){return!e.dataset.sfSongReady},v=function(){try{return"Tampermonkey"===GM_info.scriptHandler||"Violentmonkey"===GM_info.scriptHandler}catch(e){return!1}},b=function(){return!v()&&!(r.a.isGM&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"))},y=function(e){var t=e.downloadURL,n=e.filename;if(v()){var r=document.createElement("a");r.style.display="none",r.href=t,r.setAttribute("target","_blank"),r.download=n,document.body.appendChild(r),r.click(),r.remove()}else{var i=new CustomEvent("song.download",{detail:{downloadURL:t,filename:n}});document.dispatchEvent(i)}},A=function(e){var t=document.createElement("a");return t.target="_blank",e&&t.classList.add("sf--sc-"+e),t.classList.add("sf--sc-btn","sc-button","sc-button-small","sc-button-icon","sc-button-responsive"),t.addEventListener("mouseenter",(function(e){if(p){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(f.showTooltip)(t,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60});Object(f.hideTooltip)(t,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60})}})),Object(d.a)({category:"append",subcategory:"so",event:"b"}),t},w=function(e,t){["loading","error","playlist","default"].includes(t)&&(e.classList.remove("sf--sc-loading"),e.classList.add("sf--sc-".concat(t)))},k=function(e){return function(e){try{var t=e.replace(/[^A-Za-zА-Яа-яЁё0-9\s\.\-\(\)\[\]]/g,"").trim();if(""===t||t.length<3)throw new Error("filename not valid");return t}catch(e){return Date.now()+"_track"}}("".concat(e.title))+".mp3"};function x(e,t){return Object(u.a)({action:"soundcloudFetchPageInfo",clientId:e,songEndpoint:t})}function C(e,t){return S.apply(this,arguments)}function S(){return(S=Object(i.a)(h.a.mark((function e(t,n){var r,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x(t,n);case 2:if((r=e.sent)&&"track"===r.kind){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,O(t,r);case 7:return i=e.sent,e.abrupt("return",M(M({},r),{},{downloadURL:i,filename:k(r)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e,t){return Object(u.a)({action:"soundcloudSearchBestDownloadURL",clientID:e,song:t})}function E(e,t){return Object(u.a)({action:"soundcloudFetchSongsOfPlaylist",clientID:e,playlist:t})}var L=n(45),N=n(11),T=n(8),j=n.n(T),F=n(84),D=n(13),R=n.n(D),P=n(10),V=function(){function e(t){Object(a.a)(this,e),this.selector='[role="group"].sound.playlist.streamContext',this.type="added",this.clientID=t}var t;return Object(s.a)(e,[{key:"handle",value:function(e){var t=this;e.added.filter(g).map(m).map((function(e){return t.renderDownloadButton(e)}))}},{key:"renderDownloadButton",value:function(e){var t=e.querySelector(".sc-button-group"),n=A("playlist");n.addEventListener("click",this.downloadPlaylist.bind(this)),t.appendChild(n)}},{key:"downloadPlaylist",value:(t=Object(i.a)(h.a.mark((function e(t){var n,r,o,a,s=this;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),n=t.target,w(n,"loading"),e.prev=3,r=t.target.closest(this.selector).querySelector('a[href*="sets/"]').href,e.next=7,x(this.clientID,r);case 7:if("playlist"===(o=e.sent).kind){e.next=10;break}throw new Error("It's not playlist.");case 10:return e.next=12,E(this.clientID,o);case 12:return a=e.sent.map(function(){var e=Object(i.a)(h.a.mark((function e(t){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=k(t),e.next=3,O(s.clientID,t);case 3:return e.t1=e.sent,e.abrupt("return",{filename:e.t0,downloadURL:e.t1});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=15,Promise.all(a);case 15:e.sent.map(y),e.next=21;break;case 18:throw e.prev=18,e.t0=e.catch(3),w(n,"error"),e.t0;case 21:return e.prev=21,w(n,"default"),e.finish(21);case 24:case"end":return e.stop()}}),e,this,[[3,18,21,24]])}))),function(e){return t.apply(this,arguments)})}]),e}(),B=n(6),U=n.n(B)()("userCardSingleTrack"),z=function(){function e(t,n){Object(a.a)(this,e),this.selector='[role="group"].sound.streamContext:not(.playlist)',this.type="added",this.utils=t,this.clientID=n}var t;return Object(s.a)(e,[{key:"handle",value:function(e){var t=this;e.added.filter(g).map(m).map((function(e){return t.renderDownloadButton(e)}))}},{key:"renderDownloadButton",value:function(e){var t=e.querySelector(".sc-button-group");t&&this.btnPrepare(e).then((function(e){e&&t.appendChild(e)}))}},{key:"btnPrepare",value:(t=Object(i.a)(h.a.mark((function e(t){var n,r,i,o;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=A(),r=t.closest(this.selector)){e.next=3;break}return e.abrupt("return",void U.error("root not found",t));case 3:if(i=r.querySelector("a.soundTitle__title[href]")){e.next=6;break}return e.abrupt("return",void U.error("song url not found",t));case 6:return e.next=8,x(this.clientID,i.href);case 8:if(!(o=e.sent)||"track"!==o.kind){e.next=18;break}return e.next=12,O(this.clientID,o);case 12:n.href=e.sent,n.download=k(o),n.addEventListener("click",this.utils.downloadOnClick),e.t0=n,e.next=19;break;case 18:e.t0=void 0;case 19:return e.abrupt("return",e.t0);case 20:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),q=[".listenDetails .trackItem.g-flex-row.sc-type-small .sc-button-group, .chartTrack .sc-button-group",".trackItem.g-flex-row.sc-type-small.m-playable .sc-button-group"].join(","),H=function(){function e(t,n){Object(a.a)(this,e),this.selector=q,this.type="added",this.utils=t,this.clientID=n}var t;return Object(s.a)(e,[{key:"handle",value:function(e){var t=this;e.added.filter(g).map(m).map((function(e){return t.renderDownloadButton(e)}))}},{key:"renderDownloadButton",value:function(e){this.btnPrepare(e).then((function(t){Object(d.a)({category:"append",subcategory:"so",event:"b"}),t&&e.appendChild(t)}))}},{key:"btnPrepare",value:(t=Object(i.a)(h.a.mark((function e(t){var n,r,i,o;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=A(),r=t.closest(".sc-type-small, .chartTrack")){e.next=3;break}return e.abrupt("return",void I.error("root not found",t));case 3:if(i=r.querySelector(".trackItem__trackTitle[href], .chartTrack__title [href]")){e.next=6;break}return e.abrupt("return");case 6:return i=i.href,e.next=9,C(this.clientID,i);case 9:return o=e.sent,e.abrupt("return",o?(n.href=o.downloadURL,n.download=o.filename,n.addEventListener("click",this.utils.downloadOnClick),n):void 0);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),W=".sidebarContent .sc-media:not(.hiddenActions) .sc-button-group",Q=".l-about-top .sc-button-group:nth-child(1)",Z=".l-about-row .sound__soundActions .sc-button-group:nth-child(1)",G=function(){function e(t,n){Object(a.a)(this,e),this.selector=[Z,W,Q].join(","),this.type="added",this.utils=t,this.clientID=n}var t,n,r;return Object(s.a)(e,[{key:"handle",value:function(e){var t=this;e.added.filter(g).map(m).map((function(e){return t.renderDownloadButton(e)}))}},{key:"renderDownloadButton",value:function(e){var t,n=b(),r=n||!n&&-1===location.pathname.indexOf("/sets/");this.isTopSidebar(e)?r&&(t=this.prepareButtonForTop()):t=this.prepareButtonForSidebar(e),t&&t.then((function(t){t&&e.appendChild(t)}))}},{key:"prepareButtonForSidebar",value:(r=Object(i.a)(h.a.mark((function e(t){var n,r,i,o,a;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=A(),r=t.closest(".sc-media")){e.next=3;break}return e.abrupt("return");case 3:if((o=r.querySelector(".soundTitle__title[href]"))&&(i=o.href),!o&&document.querySelector(Z)&&(i=location.href),i){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,C(this.clientID,i);case 8:return a=e.sent,e.abrupt("return",a?(n.href=a.downloadURL,n.download=a.filename,n.addEventListener("click",this.utils.downloadOnClick),n):void 0);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"prepareButtonForTop",value:(n=Object(i.a)(h.a.mark((function e(){var t,n;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=A()).dataset.position="sidebar",t.style.width=t.style.height="26px",e.next=4,C(this.clientID,location.href);case 4:return n=e.sent,e.abrupt("return",n?(t.href=n.downloadURL,t.download=n.filename,t.addEventListener("click",this.utils.downloadOnClick),t):(t.addEventListener("click",this.onDownloadPlaylist.bind(this)),t.classList.remove("sc-button-small"),t));case 6:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"onDownloadPlaylist",value:(t=Object(i.a)(h.a.mark((function e(t){var n,r,o=this;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),t.stopPropagation(),e.next=3,x(this.clientID,location.href);case 3:return n=e.sent,e.next=6,E(this.clientID,n);case 6:return r=e.sent.map(function(){var e=Object(i.a)(h.a.mark((function e(t){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=k(t),e.next=3,O(o.clientID,t);case 3:return e.t1=e.sent,e.abrupt("return",{filename:e.t0,downloadURL:e.t1});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Promise.all(r);case 9:e.sent.map(y);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"isTopSidebar",value:function(e){return null!==e.closest(".l-about-top")}}]),e}(),Y=function(e){Object(c.a)(o,e);var t,n=_(o);function o(){var e;Object(a.a)(this,o);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(e=n.call.apply(n,[this].concat(r))).mutationHandlers=[],e.active=1,e}return Object(s.a)(o,[{key:"init",value:(t=Object(i.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.a.callFn("getPreferences");case 2:if(this.settings=e.sent,this.utils=Object(N.a)({preferences:this.settings}),this.active=Number(this.settings.moduleSoundcloud),this.clientId=this.cache.get("client_id"),e.t0=this.clientId,e.t0){e.next=11;break}return e.next=10,l()('function(){var wpchunk=window.webpackChunk||window.webpackJsonp;if(typeof wpchunk==="undefined"){return}var _result;var sections=wpchunk.filter(function(v,k){return k!=="push"});// check fn\nfor(var id in wpchunk){var chunk=wpchunk[id];if(chunk[1]&&chunk[1][41021]){var matches=chunk[1][41021].toString().match(/\\?client_id=(.+?)&/);if(Array.isArray(matches)&&matches[1]){return matches[1]}}}sections.some(function(section){var obj=section[1];return Object.keys(obj).some(function(fnIdx){var result=obj[fnIdx].toString().match(/\\?client_id=(.+?)&/);if(result&&result[1]){return _result=result[1]}})});return _result}');case 10:this.clientId=e.sent;case 11:this.registerMonoListeners(),this.registerListeners(),this.active&&this.initObserver(),this.appendStyle(F.styles);case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"registerListeners",value:function(){var e=this;document.addEventListener("song.download",(function(t){var n=t.detail;e.utils.download(n.filename,n.downloadURL)}))}},{key:"registerMonoListeners",value:function(){var e=this;r.a.onMessage.addListener(function(){var t=Object(i.a)(h.a.mark((function t(n,r,i){var a,s,l;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=n.action,s=n.moduleName,l=n.state,s!==o.moduleName){t.next=10;break}if("getModuleInfo"!==a){t.next=4;break}return t.abrupt("return",i({state:e.active,moduleName:o.moduleName}));case 4:if("updatePreferences"!==a){t.next=6;break}return t.abrupt("return",(r=n.preferences,e.settings=M(M({},e.settings),{},{preferences:r})));case 6:if("changeState"!==a){t.next=10;break}if(!l){t.next=9;break}return t.abrupt("return",e.initObserver());case 9:e.observer.stop(),document.querySelectorAll(".sf--sc-btn").forEach((function(e){return e.remove()})),document.querySelectorAll('[data-sf-song-ready="1"]').forEach((function(e){e.removeAttribute("data-sf-song-ready")}));case 10:case"end":return t.stop()}var r}),t)})));return function(e,n,r){return t.apply(this,arguments)}}())}},{key:"initObserver",value:function(){var e=this.clientId;this.mutationHandlers=[new z(this.utils,e),new H(this.utils,e),new G(this.utils,e)],b()&&this.mutationHandlers.push(new V(e)),this.observer=new j.a({queries:this.mutationHandlers.map((function(e){return{css:e.selector,callback:e.handle.bind(e),is:e.type}}))}),this.observer.start()}}]),o}(L.a);Y.moduleName="soundcloud";var J=new Y;R.a.isSingle()&&Object(P.a)(Y.moduleName,(function(){return J.init()}),(function(){return!0}))},84:function(e,t){e.exports=n(100)}})},function(e){!function(e){function t(t){for(var r,a,s=t[0],l=t[1],u=t[2],d=0,f=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(c&&c(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={18:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([118,0]),n()}({118:function(e,t,n){n.r(t);var o=n(0),a=n(11),s=n(10),l=n(25),u=n.n(l),c=n(26),d=n.n(c),f=n(24),p=n.n(f),m=n(58),g=n.n(m),b=n(18),y=n.n(b),A=n(37),w=n.n(A),k=n(9),x=n.n(k),C=n(20),S=n.n(C),_=n(14),I=n.n(_),O=n(46),E=n.n(O),L=n(38),N=n.n(L),T=n(22),j=n.n(T),F=n(3),D=n.n(F),R=n(2),P=n.n(R),V=n(49),B=n.n(V),U=n(5),z=n.n(U),q=n(17),H=n(6),W=n.n(H),Q=n(13),Z=n.n(Q),G=n(8),Y=n.n(G),J=n(33),K=n.n(J),X=n(29),$=n.n(X),ee=n(53),te=n(40),ne=n(48),re=W()("tools/youtube");function ie(e){return new Promise((function(t,n){o.a.sendMessage({action:"getFileSize",url:e},(function(n){var r=n.fileSize;if(0===r||!Number.isFinite(r))return t(!1);o.a.sendMessage({action:"getFileSize",url:e,requestOptions:{type:"GET",headers:{Range:"bytes=".concat(r-8,"-").concat(r)}}},(function(n){var r=n.error;r?re.debug("Link ".concat(e," don't have content")):re.debug("Link ".concat(e," have content")),t(!r)}))}))}))}var oe=n(15),ae=n.n(oe),se=n(4),le=n(27),ue=function(e){var t={full:1080,hd:720,sd:480,low:360,lowest:240,mobile:144};return e.rawQuality=e.quality,e.quality=t[e.quality]?String(t[e.quality]):e.quality,e},ce=n(16),de=n.n(ce),fe=n(41),pe=n(1),he=n.n(pe),me=Object(a.a)({}).svg.getSrc("download","#4986cc","20px"),ge=he.a.memo((function(e){var t=e.iframeSrc,n=he.a.useState([]),r=Object(v.a)(n,2),i=r[0],a=r[1];return he.a.useEffect((function(){Object(q.a)({action:"showjetFetchMovie",iframeVideoURL:t}).then((function(e){e=e.map((function(e){return M(M({},e),{},{onClick:function(){ae()(Object(se.createElement)(le.a,{filename:z.a.modify(e.filename)+".mp4",format:"mp4",sources:[{url:e.endpoint,format:"mp4"}],convertType:"hls"}),"sf-muxer-parent")}})})),a(e)}))}),[]),he.a.createElement(fe.b,{items:i,theme:fe.d},he.a.createElement(fe.a,null,he.a.createElement("div",{className:"like_btn",style:{marginLeft:"14px"}},he.a.createElement("img",{src:me,style:{opacity:.5},alt:""}),he.a.createElement("div",{className:"like_button_label"},o.a.i18n.getMessage("download")))))})),ve=n(85),be=n.n(ve),ye=n(7),Ae=n(12),we=n(43),ke=W()("vkontakte_ru"),xe=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");Z.a.isSingle()&&Object(s.b)("vk",(function(e,t){var n=Object(a.a)(t),s=t.preferences,l=s.moduleVkontakte?1:0,c=o.a.isChrome||o.a.isFirefox||o.a.isGM&&o.a.isTM,f=u()(),m=!1;if(f)if(/\/video_ext\.php\?.+/.test(location.href))m=!0;else{if(!/\/widget_comments\.php\?.+/.test(location.href))return;f=!1}o.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:l,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return O.changeState(t.state)}"updatePreferences"!==t.action?l&&("updateLinks"===t.action&&L(),"downloadMP3Files"===t.action&&(c?U.downloadMP3Files():U.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&U.showListOfAudioFiles(!0),"downloadPhotos"===t.action&&Q.downloadPhoto()):Object.assign(s,t.preferences)})),l&&setTimeout((function(){O.run()}));var b,A,k,C=[],_={},O={contextMenu:null,isMutation:!1,run:function(){if(l=1,/m\.vk\.com/.test(location.hostname))return Z.run();m?H.addFrameBtn():(Q.injectStyle(),Y.a.isAvailable()&&(O.isMutation=!0,U.addCustomStyle(),O.mutationMode.enable()))},changeState:function(e){f||(l=e,T(),U.hideLinks(),W.off(),O.hideMenu(),Q.rmCurrentPhotoBtn(),U.rmBitrate(),Q.rmPhotoAlbumDlBtn(),O.mutationMode.stop(),e&&O.run())},hideMenu:function(){O.contextMenu&&(O.contextMenu.hide(),O.contextMenu=null)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=y()(e),r=document.querySelectorAll("["+n+"]"),i=0;t=r[i];i++)t.removeAttribute(n)}))},wrapNewAudioOnMouseOver:function(){l&&U.onNewMouseOver.apply(this,arguments)},wrapNewVoiceOnMouseOver:function(){var e=I()(this,".im-mess");if(!(e&&e.querySelector(".sf-voice-btn")||!l)){var t=P.a.create("a",{href:this.getAttribute("data-mp3")||"#sf-preload",class:[U.className,"sf-audio-btn","sf-voice-btn"],download:z.a.modify(this.getAttribute("data-mp3"))||"",style:{width:"3px",height:"3px",padding:"0px 9px 9px"},on:[["click",function(e){e.stopPropagation(),n.downloadOnClick(e)}]]}),r=e.querySelector(".im-mess--actions, .audio-msg-track--duration");Object(ye.a)({category:"append",subcategory:"vk",event:"b"}),r&&(r.classList.contains("audio-msg-track--duration")&&t.classList.add("sf-voice-btn-in-dur"),r.appendChild(t),e.addEventListener("mouseleave",(function(){return t.style.display="none"})),e.addEventListener("mouseenter",(function(){return t.style.display="inline"}))),n.addStyleRules(".".concat(U.className,".sf-voice-btn"),{"background-size":"12px !important"}),n.addStyleRules(".".concat(U.className,".sf-voice-btn-in-dur"),{position:"absolute",top:"23px",right:"-13px"})}},wrapVideoFeedOnMouseOver:function(){l&&(Object(ye.a)({category:"append",subcategory:"vk",event:"b"}),W.onLinkHover.apply(this,arguments))},onVideoInsert:function(e){de()("function(){return window.mvcur&&window.mvcur.mvData&&window.mvcur.mvData.is_active_live}").then((function(t){var r=n.getParentById(e,"mv_box"),i=H.getPlayerNode(r);i&&!t?H.getLinksFromPlayer(r,i,H.newAppendButton.bind(H)):e.dataset.sfSkip=0}))},onVideoChange:(k=Object(i.a)(h.a.mark((function e(t){var n,r,i,o,a;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,de()("function(){return window.mvcur&&window.mvcur.mvData&&window.mvcur.mvData.is_active_live}");case 2:if(e.sent){e.next=6;break}n=this,/video_box_wrap-?\d+_-?\d+/.test(t.id)?t.sfWatch?n.onVideoInsert(t):(t.sfWatch=!0,(r=new $.a({attrs:[{name:"id",callback:function(){n.onVideoInsert(t)}}],target:t})).trigger(),D.a.onRemoveEvent(t,(function(){r.stop(),t.sfWatch=!1,t.dataset.sfSkip=0}))):n.onVideoInsert(t),document.querySelector('iframe[src*="showjet"]')&&(i=document.querySelector('iframe[src*="showjet"]'),o=document.createElement("div"),(a=document.querySelector(".like_btns"))&&(a.insertBefore(o,a.querySelector(".ui_actions_menu_wrap._ui_menu_wrap")),ae()(Object(se.createElement)(ge,{iframeSrc:i.src}),o)));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)}),enable:function(){var e=this;if(this.observer)return this.observer.start();var t=function(e){for(var t,n=0;t=e.added[n];n++)Object(ye.a)({category:"append",subcategory:"vk",event:"b"}),t.dataset.sfSkip>0||(t.dataset.sfSkip="1",D.a.one(t,"mouseenter",O.mutationMode.wrapNewAudioOnMouseOver))};this.observer=new Y.a({queries:[{css:".post_video_desc a.lnk",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",D.a.one(t,"mouseenter",O.mutationMode.wrapVideoFeedOnMouseOver))}},{css:"#mv_box #mv_player_box > .video_box_wrap",is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",e.onVideoChange(n))}},{css:"#mv_box #mv_player_box > .video_box_wrap > #video_player",is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)(n=n.parentNode).dataset.sfSkip>0||(n.dataset.sfSkip="1",e.onVideoChange(n))}},{css:"#photos_all_block",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",Q.addNewPhotoAlbumDlBtn(t))}},{css:".pv_photo_wrap .pv_img_area_wrap",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",Q.addNewDlCurrentPhotoBtn(t))}},{css:".audio_row",is:"added",callback:t},{css:".top_audio_player .top_audio_player_title",is:"added",callback:t},{css:".audio_page_player .audio_page_player_title_performer",is:"added",callback:t},{css:".audio-msg-track",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",D.a.one(t,"mouseenter",O.mutationMode.wrapNewVoiceOnMouseOver))}},{css:"."+D.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)D.a.onRemoveListener(t)}}]})}}},L=function(){O.changeState(0),O.changeState(1)},T=function(){U.lastRow=null;for(var e=document.querySelectorAll("a.savefrom_vk_download,div.savefrom_vk_download,span.savefrom_vk_download"),t=e.length-1;t>=0;t--)U.elIsHidden(e[t])&&e[t].parentNode.removeChild(e[t])},F=function(){if(null!==document.querySelector('.page_block_header_inner._header_inner a.ui_crumb[href="/audio"]')){var e=document.querySelector(".page_block_header_inner._header_inner div.ui_crumb");if(e&&e.textContent)return z.a.modify(e.textContent)}var t=document.title,n=t.indexOf("|");return-1!==n&&(t=t.substr(0,n-1)),z.a.modify(t)},R=function(e){try{var t=JSON.parse(e).payload[1];return[null,null,null,null,null,t[0],t[1],null,t[3]]}catch(e){}for(var n=function(e){return!0===e?1:parseInt(e)||0},r=function(e){return!0===e?1:parseFloat(e)||0},i=e.split("<!>"),o=i.length-1;o>=0;--o){var a=i[o];if("<!"==a.substr(0,2)){var s=a.indexOf(">"),l=a.substr(2,s-2);switch(a=a.substr(s+1),l){case"json":var u=null;try{u=JSON.parse(a)}catch(e){}i[o]=u;break;case"int":i[o]=n(a);break;case"float":i[o]=r(a);break;case"bool":i[o]=!!n(a);break;case"null":i[o]=null;break;case"pageview_candidate":i.pop();break;case"debug":i.pop()}}}return i},V=function(e){return/<em>.*<\/em>/.test(e)&&(e=e.replace(/<\/?em>/g,"")),e},U={audioElClassList:["audio","audioRow","audioRowWall"],lastRow:null,className:"savefrom_vk_download",cache:{},lastValidRequest:null,waitUntilUnblock:function(e){var t=this,n=10;if(!t.lastValidRequest)return Promise.reject(new Error("Last valid request is empty!"));return function r(){return new Promise((function(e){setTimeout(e,15e3)})).then((function(){if(e.abort)throw new Error("Abort");return j()(t.lastValidRequest).then((function(e){if(n--,!R(e.body)[5]){if(n>0)return r();throw new Error("Can't request data")}}))}))}().then((function(){return new Promise((function(e){setTimeout(e,250)}))}))},needUnmask:function(e){var t=/audio_api_unavailable/;return e.some((function(e){if(t.test(e[2]))return!0}))},unmaskUrlViaUtil:function(e){return U.needUnmask(e)?de()([],"function(){return vk.id}").then((function(t){var n=e.map((function(e){try{return Array.isArray(e)&&e[2]?(e[2]=ee.decodeUnavailableUrl(t,e[2]),e):null}catch(e){return ke.debug("track decode error: ",e),null}}));return Promise.all(n).then((function(e){return e.filter((function(e){return null!==e}))}))})):Promise.resolve(e)},unmaskUrl:function(e){return U.needUnmask(e)?de()([e],'function(idsArr){var aFail=false;var bFail=false;var cFail=false;var unmaskUrl=function unmaskUrl(url){var _url="";if(!aFail&&window.sfUnmaskUrl){try{_url=window.sfUnmaskUrl(url)}catch(err){aFail=true}}if(!cFail&&!_url&&window.AudioPlayerHTML5){try{var res=null;var r={_isHlsUrl:function _isHlsUrl(url){res=url;return true},_initHls:function _initHls(){}};window.AudioPlayerHTML5.prototype._setAudioNodeUrl.apply(r,[null,url]);_url=res}catch(err){cFail=true}}if(!bFail&&!_url&&window.AudioPlayerFlash){try{var r={};window.AudioPlayerFlash.prototype.setUrl.apply(r,[url]);_url=r._url}catch(err){bFail=true}}if(typeof _url!=="string"){_url=""}return _url};idsArr.forEach(function(item){var url=unmaskUrl(item[2]);if(url){item[2]=url}});return idsArr}').then((function(t){return t||e})):Promise.resolve(e)},_getNewTrackListByIdsWithActionHash:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=0,i={},o=this.cache,a=e.filter((function(e){var t=e.fullId;return!o[t]||(i[t]=o[t],r++,!1)})),s=[];a.length;)s.push(a.splice(0,9));var l=e.length,u=Promise.resolve();return s.forEach((function(e){u=u.then((function(){var a=function(){if(n.abort)throw new Error("Abort");var a=e.filter((function(e){return e.fullId&&e.actionHash&&e.urlHash})).map((function(e){return e.fullId+"_"+e.actionHash+"_"+e.urlHash})),s={type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},data:we.stringify({act:"reload_audio",al:1,ids:a.join(",")}),url:"/al_audio.php",localXHR:!0};return j()(s).then((function(e){var a=R(e.body)[5];if(!a||!Array.isArray(a))throw new Error("Track list is not found!");return t.lastValidRequest=s,a.forEach((function(e){var t=e[1]+"_"+e[0];o[t]=e,i[t]=e,r++})),n.onProgress&&n.onProgress(r,l),new Promise((function(e){setTimeout(e,250)}))}))},s=2;return function e(){return a().catch((function(r){if("Track list is not found!"===r.message&&!n.withoutUnblock){if(t.lastValidRequest)return t.waitUntilUnblock(n).then(a);if(s-- >0)return new Promise((function(e){return setTimeout(e,15e3)})).then((function(){return e()}))}throw r}))}().catch((function(e){"Abort"!==e.message&&ke.debug("requestIds error!",e)}))}))})),u=(u=u.then((function(){Object.keys(o).slice(1e3).forEach((function(e){delete o[e]}));var t=[];return e.forEach((function(e){var n=e.fullId,r=i[n];r&&t.push(r)})),t}))).then((function(e){return U.unmaskUrlViaUtil(e)})).then((function(e){var t=be()(5),n=e.map((function(e){return t((function(){var t=e[2],n=function(e){if(U.isHlsLink(e)){var t=(e=e.replace("/index.m3u8",".mp3")).split("/"),n=-1!==e.indexOf("audios")?1:0;return t.splice(t.length-(2+n),1),t.join("/")}return e}(t);return U.isHlsLink(t)?j()({method:"HEAD",url:n}).then((function(){return e[2]=n,e}),(function(t){return ke.warn("getNewTrackListByIdsWithActionHash: mp3 file not available. ",t),e})):e}))}));return Promise.all(n)}))},_getAlbumIdFromUrl:function(e){var t=this,n=[e],r=p()(e);r.z&&n.unshift(r.z);var i=null;return n.some((function(e){if(i=t._getAlbumId(e))return!0})),i},_getAlbumId:function(e){if(/[?&]q=/.test(e))return null;var t={url:"/al_audio.php",data:{}},n=/audio_playlist(-?\d+)_(-?\d+)(?:\/(\w+))?/.exec(e);if(n&&(t.data.access_hash=n[3]||"",t.data.act="load_section",t.data.al=1,t.data.claim=0,t.data.owner_id=n[1],t.data.playlist_id=n[2],t.data.type="playlist",t.data.offset=0),!t.data.act){var r=/audios(-?\d+)/.exec(e);if(r){var i=/[?&]section=(\w+)/.exec(e),o=i&&i[1];if(o&&-1===["playlists","all"].indexOf(o))return null;t.data.access_hash="",t.data.act="load_section",t.data.al=1,t.data.claim=0,t.data.owner_id=r[1],t.data.playlist_id=-1,t.data.type="playlist",t.data.offset=0}}return t.data.act?t:null},getNewNodeTrackInfo:(A=Object(i.a)(h.a.mark((function e(t){var n,r;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.readNewDataAudio(t.dataset.audio),(r=this.getNewTrackInfo(n))&&r.fullId){e.next=3;break}throw new Error("Track info is not found");case 3:return e.abrupt("return",r.url?U.unmaskUrlViaUtil([[null,null,r.url]]).then((function(e){return r.url=e[0][2],r})):r);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)}),_getAlbumTrackViaApi:function(e,t){if(!e.url)throw ke.debug("Page is not exists!",e),new Error("Page is not exists!");var n=JSON.parse(JSON.stringify(e.data)),r=function(){return t.abort?Promise.reject(new Error("Abort")):j()({type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},url:e.url,data:n,timeout:6e4,localXHR:!0}).then((function(e){var t=R(e.body)[5];if(!t)throw new Error("Album data is empty!");return new Promise((function(e){setTimeout(e,250)})).then((function(){return t}))}))};return r().then((function(e){var t=20;return e.hasMore?function i(o){return!o||t<0?e:(t--,n.offset=o,r().then((function(t){return t.list.length?(e.list.push.apply(e.list,t.list),t.hasMore?i(t.nextOffset):e):e}),(function(t){return"Abort"!==t.message&&ke.debug("getOffset error!",t),e})))}(e.nextOffset):e}))},_getAllTrackViaDom:function(e,t){var n=this;t=t||{};var r=[];return[].slice.call(e.querySelectorAll(".audio_row")).forEach((function(e){if((!t.fromPage||!n.elIsHidden(e))&&(t.grabReply||!Q.isReply(e))){var i=null;try{i=JSON.parse(e.dataset.audio)}catch(e){}i&&r.push(i)}})),{list:r}},_getNewAudioLinks:function(e,t){var n=this;t=t||{};var r=(e=e||document)===document,i=Q.getPopup("","audio",(function(){t.abort=!0}));i.onPrepare(o.a.i18n.getMessage("download")+" ...");var a=function(){return Promise.resolve().then((function(){return n._getAllTrackViaDom(e,{fromPage:r,grabReply:!1})}))};t.onProgress=function(e,t){i.onProgress(e,t)};var s=Promise.resolve();return(s=(s=(s=r?s.then((function(){return Promise.resolve().then((function(){var e=n._getAlbumIdFromUrl(location.href);if(!e)throw new Error("Album is not found");return n._getAlbumTrackViaApi(e,t)}))})).catch((function(e){throw"Album is not found"!==e.message&&ke.debug("findAlbumLinks error!",e),e})).catch((function(){return a()})):s.then(a)).then((function(e){var t=e.list;if(!t.length)throw new Error("Audio is not found");return i.onProgress(0,t.length),e}))).then((function(e){var r=[],i="";"string"==typeof e.title&&(i=z.a.modify(e.title));var o=[];return e.list.forEach((function(e){var t=e[1]+"_"+e[0],n=U.getTrackActionHash(e),i=U.getTrackUrlHash(e);-1===o.indexOf(t)&&(o.push(t),r.push({fullId:t,actionHash:n,urlHash:i}))})),n._getNewTrackListByIdsWithActionHash(r,t).then((function(e){var t={},r=[];return e.forEach((function(e){var i=n.getNewTrackInfo(e);if(i&&i.url){var o=n.getNewAudioFilename(i),a=n.getNewAudioFullTitle(i);t[i.fullId]=i.url,r.push({url:i.url,title:a,filename:o})}})),{linkList:t,trackList:r,title:i}}))}))).then((function(e){return i.onReady(),e}),(function(e){throw i.onReady(),e}))},tooltip:{tooltip:void 0,updatePos:function(e,t){var r=n.getPosition(e),i=n.getSize(this.tooltip);this.tooltip.style.top=r.top+t.top-i.height+"px";var o=r.left+parseInt(t.width/2)-parseInt(i.width/2),a=document.body.clientWidth+document.body.scrollLeft;a<o+i.width&&(o=a-i.width),this.tooltip.style.left=o+"px"},show:function(e,t){var n=this;return void 0!==this.tooltip?this.hide():(this.tooltip=P.a.create("div",{class:"sf-tooltip",style:Object.assign({position:"absolute",display:"none",zIndex:9999,opacity:0,transition:"opacity 0.2s",whiteSpace:"nowrap"},t.style),on:["mouseenter",function(e){n.hide()}]}),document.body.appendChild(this.tooltip)),this.tooltip.style.display="block",setTimeout((function(){n.updatePos(e,t),n.tooltip.style.opacity=1}),0),this.tooltip},hide:function(){this.tooltip&&(this.tooltip.style.opacity=0,this.tooltip.style.display="none")}},rmBitrate:function(){void 0===U.rmBitrate.style&&document.body.appendChild(U.rmBitrate.style=P.a.create("style",{text:".sf-bitrate-value {display: none;}"}));for(var e,t=document.querySelectorAll(".sf-bitrate-value"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},insertNewBitrate:function(e,t){if(e&&t&&t.classList.contains("audio_row__info")){var n=t.querySelector(".audio_row__duration");if(n&&(void 0!==U.rmBitrate.style&&(U.rmBitrate.style.parentNode.removeChild(U.rmBitrate.style),U.rmBitrate.style=void 0),!n.querySelector(".sf-bitrate-value"))){var r=P.a.create("span",{text:" "+e,class:"sf-bitrate-value",style:{position:"absolute",textAlign:"right",right:0,opacity:"0.8",top:"14px",fontSize:"11px",whiteSpace:"nowrap"}});n.appendChild(r)}}},onDlBtnLeave:function(){U.tooltip.hide()},onDlBtnOver:function(){var e=U,t=e.tooltip,n=this,r=n.dataset.fullId,i=n.parentNode&&n.parentNode.parentNode,a=-6;n.dataset.bitrateOffsetTop&&(a=parseInt(n.dataset.bitrateOffsetTop));var s={top:a,width:24,style:{backgroundColor:"#fff",border:"1px solid #ccc",color:"rgb(48, 48, 48)"}},l=t.show(n,s);l.dataset.fullId=r;var u=function(){var t=n.dataset.bitrate,r=n.dataset.size,a="";e.isHlsLink(n.href)?a=o.a.i18n.getMessage("download"):r?t?(e.insertNewBitrate(t,i),a=r+" ~ "+t):a=r:a=o.a.i18n.getMessage("getFileSizeFailTitle"),l.style.padding="2px 5px 3px",l.textContent=a};n.dataset.size||e.isHlsLink(n.href)?u():(l.style.padding="2px 2px 0 2px",l.textContent="",l.appendChild(P.a.create("img",{src:"/images/upload.gif",height:8,width:32,style:{marginTop:"2px",marginBottom:"1px"}})),n.dataset.preloadOver||(n.dataset.preloadOver=1,e._preloadNewTrackUrl(n).then((function(o){if(n.dataset.preloadOver=2,n.href=o,!e.isHlsLink(o))return e._onOverInsertBitrate(n,i).then((function(){l.dataset.fullId===r&&(u(),t.updatePos(n,s))}));u(),t.updatePos(n,s)})).catch((function(e){ke.error("_preloadNewTrackUrl error",e),n.dataset.preloadOver="",l.dataset.fullId===r&&(u(),t.updatePos(n,s))}))))},preloadIdPromiseMap:{},_preloadNewTrackUrl:function(e){var t=this,n=t.preloadIdPromiseMap,r=e.dataset.fullId,i=e.dataset.actionHash,o=e.dataset.urlHash,a=n[r];return a||(a=n[r]=t._getNewTrackListByIdsWithActionHash([{fullId:r,actionHash:i,urlHash:o}],{withoutUnblock:!0}).then((function(e){delete n[r];var i=null;e.some((function(e){if(e[1]+"_"+e[0]===r)return i=e,!0}));var o=i&&t.getNewTrackInfo(i);if(!o||!o.url)throw new Error("Track is not found");return o.url}),(function(e){throw delete n[r],e})).then((function(e){return U.unmaskUrl([e])})).then((function(e){return e[0]}))),a},isHlsLink:function(e){return/\.m3u8(\?|$)/.test(e)},onNewDlBtnClick:function(e){U.isHlsLink(this.href)?(e.preventDefault(),ae()(Object(se.createElement)(le.a,{sources:[{url:this.href,format:"hls"}],filename:this.download,format:"mp3",convertType:"hlsToMp3"}),"sf-muxer-parent")):n.downloadOnClick(e);for(var t,r=document.querySelectorAll("._audio_row_"+this.dataset.fullId),i=0;t=r[i];i++)t.style.backgroundColor="#f4f7fc"},_onNewDlBtnClickWrapper:function(e){var t=U,n=this;e.stopPropagation(),(n.dataset.preloadOver>1||n.dataset.preloadBitrate>1)&&(n.dataset.preloadDl=2),n.dataset.preloadDl?n.dataset.preloadDl>1?U.onNewDlBtnClick.call(n,e):e.preventDefault():(e.preventDefault(),n.dataset.preloadDl=1,t._preloadNewTrackUrl(n).then((function(t){n.dataset.preloadDl=2,n.href=t,U.onNewDlBtnClick.call(n,e)}),(function(e){ke.error("_preloadNewTrackUrl error",e),n.dataset.preloadDl=""})))},getNewDlBtn:function(e,t){var n={href:e.url||"#sf-preload",class:[U.className,"sf-audio-btn"],download:z.a.modify(t)||"",data:{duration:e.duration||"",fullId:e.fullId,actionHash:e.actionHash,urlHash:e.urlHash},style:{width:"16px",height:"16px"},on:[["mouseenter",this.onDlBtnOver],["mouseleave",this.onDlBtnLeave],["click",this._onNewDlBtnClickWrapper],["mousedown",function(e){e.stopPropagation()}]]};return(o.a.isGM||o.a.isSafari)&&(n.title=o.a.i18n.getMessage("downloadTitle")),P.a.create("a",n)},preloadSizePromiseMap:{},_onOverInsertBitrate:function(e,t){var r=this,i=r.preloadSizePromiseMap,a=e.dataset.fullId,s=i[a];return s||(s=i[a]=function(e){var t=_[e];if(t){var n=C.indexOf(e);-1!==n&&(C.splice(n,1),C.unshift(e))}else if(t=_[e]=Object(q.a)({action:"getFileSize",url:e}).then((function(t){return t&&!t.error||delete _[e],t})).catch((function(t){throw delete _[e],t})),C.unshift(e),C.length>100){var r=C.pop();delete _[r]}return t}(e.href).then((function(s){if(delete i[a],!s)throw new Error("Response is empty");if(!s.fileSize)throw delete r.cache[a],new Error("File size is empty");var l=n.sizeHuman(s.fileSize,2),u="";e.dataset.duration&&(u=Math.floor(s.fileSize/e.dataset.duration/125)+" "+o.a.i18n.getMessage("kbps")),e.dataset.bitrate=u,e.dataset.size=l,U.insertNewBitrate(u,t)}),(function(e){throw delete i[a],e}))),s},getNewAudioFullTitle:function(e){var t=[];return e.title&&t.push(e.title),e.performer&&(t.length&&t.unshift(" - "),t.unshift(e.performer)),t.join("")},getNewAudioFilename:function(e){var t=this.getNewAudioFullTitle(e);return t&&(t+=".mp3"),t},handleNewCurrentAudioRow:function(e,t,r){if(!e.querySelector("."+U.className)){var i=this.getNewAudioFilename(t),o=this.getNewDlBtn(t,i),a="#6C8CAC";1===r&&(a="#C4D1DE"),o.classList.remove("sf-audio-btn"),P.a.create(o,{style:{background:"url("+n.svg.getSrc("download",a)+") center no-repeat",backgroundSize:"12px",width:"12px",height:"12px",padding:0,margin:0,cssFloat:"left",marginRight:"3px",marginTop:"6px",marginBottom:"-2px"}});var s=null;if(D.a.onRemoveEvent(o,(function(){D.a.one(e,"mouseenter",O.mutationMode.wrapNewAudioOnMouseOver),s&&s.stop()})),2===r){var l=I()(e,".audio_page_player");l&&(s=new $.a({target:l,attrs:[{name:"data-full-id",callback:function(){o.parentNode&&o.parentNode.removeChild(o),s&&s.stop()}}]})).trigger()}1===r&&(o.dataset.bitrateOffsetTop=1),e.insertBefore(o,e.firstChild)}},handleNewAudioRow:function(e,t,n){if(!e.querySelector("."+U.className)){var r=this,i=this.getNewAudioFilename(n),o=this.getNewDlBtn(n,i),a=t.parentNode;P.a.create(o,{class:["audio_row__action"],style:{width:"24px",height:"24px",cssFloat:"left"},on:[["mouseover",function(e){if(xe){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(Ae.showTooltip)(o,{defaultWidth:400,defaultHeight:60},{});Object(Ae.hideTooltip)(o,{defaultWidth:400,defaultHeight:60})}}]]});var l=t.firstChild;l?t.insertBefore(o,l):t.appendChild(o),1===s.vkShowBitrate&&(o.dataset.preloadBitrate||(o.dataset.preloadBitrate=1,r._preloadNewTrackUrl(o).then((function(e){return o.dataset.preloadBitrate=2,o.href=e,r._onOverInsertBitrate(o,a)})).catch((function(e){ke.error("_preloadNewTrackUrl error",e)}))))}},addNewDlTrackBtn:function(e){var t=this,n=function(){o.disconnect()},r=null,i=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(i){r||(r=t.getNewNodeTrackInfo(e)),r.then((function(n){return function(n,r){t.handleNewAudioRow(e,n,r)}(i,n)})).catch((function(e){ke.error("Fetch track info error: "+e.message),n()}))})),o=new(K()())((function(e){if(l){for(var t=null,r=null,o=0;t=e.shift();)if("childList"===t.type&&t.addedNodes.length&&t.target.classList.contains("audio_row__info"))for(o=0,t.addedNodes;r=t.addedNodes[o];o++)if(r.classList.contains("audio_row__actions"))return void i(r)}else n()}));o.observe(e,{childList:!0,subtree:!0});var a=e.querySelector(".audio_row__actions");a&&(i(a),a=null)},getNewTrackInfo:function(e){if(!e)return null;var t={};return"string"==typeof e[2]&&(t.url=e[2]),t.title=e[3],t.title&&(t.title=z.a.decodeSpecialChars(V(t.title))),t.performer=e[4],t.performer&&(t.performer=z.a.decodeSpecialChars(V(t.performer))),t.duration=parseInt(e[5]),t.actionHash=U.getTrackActionHash(e),t.urlHash=U.getTrackUrlHash(e),e[1]&&e[0]&&(t.fullId=e[1]+"_"+e[0]),t.id=e[0],t.ownerId=e[1],t},getTrackActionHash:function(e){return(e[13]||"").split("/")[2]||""},getTrackUrlHash:function(e){return(e[13]||"").split("/")[5]||""},readNewDataAudio:function(e){try{return JSON.parse(e)}catch(e){return null}},addNewDlCurrentTrackBtn:function(e,t){var n=this;return de()((function(){var e=null;if("undefined"!=typeof ap&&ap._currentAudio&&(e=ap._currentAudio),!e&&"undefined"!=typeof cur&&cur.audioPage&&cur.audioPage._readyAudio&&(e=cur.audioPage._readyAudio),!e)try{e=JSON.parse(localStorage.audio_v9_track)}catch(e){}return e})).then((function(r){if(!r){var i=document.querySelector(".audio_page_player[data-audio]");r=i&&_this.readNewDataAudio(i.dataset.audio)}var o=r&&n.getNewTrackInfo(r);o&&(o.url||o.fullId)&&n.handleNewCurrentAudioRow(e,o,t)}))},onNewMouseOver:function(e){var t=U;if(this&&!this.querySelector("."+U.className)){var n=null;this.classList.contains("top_audio_player_title")&&(n=1),this.classList.contains("audio_page_player_title_performer")&&(n=2),n?t.addNewDlCurrentTrackBtn(this,n):t.addNewDlTrackBtn(this)}},addCustomStyle:function(){if(1!==this.addCustomStyle.hasStyle){this.addCustomStyle.hasStyle=1;var e=document.querySelector("#savefrom-styles.sf-audio");e&&e.parentNode.removeChild(e),n.addStyleRules(".savefrom_vk_download.sf-audio-btn",{background:"url("+n.svg.getSrc("download","#5f7fa2")+") center no-repeat !important",opacity:"0.4"},"sf-audio")}},hideLinks:function(){if(this.addCustomStyle.hasStyle){this.addCustomStyle.hasStyle=0;var e=document.querySelector("#savefrom-styles.sf-audio");e&&e.parentNode.removeChild(e),n.addStyleRules(".savefrom_vk_download",{display:"none"},"sf-audio")}U.tooltip.tooltip&&(U.tooltip.tooltip.parentNode.removeChild(U.tooltip.tooltip),U.tooltip.tooltip=void 0),U.cache={}},elIsHidden:function(e){return null===e.offsetParent},downloadMP3Files:function(){var e=Q.getLayer()||document;U._getNewAudioLinks(e).then((function(e){e.linkList;var t=e.trackList,r=e.title||F(),i=t.map((function(e){return U.isHlsLink(e.url)?{filename:e.filename,sources:[{url:e.url,format:"hls"}],format:"hls",useConverter:!0}:e}));if(0===i.length)return alert(o.a.i18n.getMessage("vkMp3LinksNotFound"));n.downloadList.showBeforeDownloadPopup(i,{type:"audio",folderName:r})}),(function(e){"Abort"!==e.message&&(ke.debug("_getNewAudioLinks error!",e),alert(o.a.i18n.getMessage("vkMp3LinksNotFound")))}))},showListOfAudioFiles:function(e){var t=Q.getLayer()||document;U._getNewAudioLinks(t).then((function(t){var r=t.linkList,i=t.trackList,a=t.title||F(),s=null;if(e){if(0!==(s=i).length)return n.playlist.popupPlaylist(s,a,!0)}else{for(var l in s=[],r)s.push({url:r[l]});if(0!==s.length)return n.playlist.popupFilelist(s)}alert(o.a.i18n.getMessage("vkMp3LinksNotFound"))}),(function(e){"Abort"!==e.message&&(ke.debug("_getNewAudioLinks error!",e),alert(o.a.i18n.getMessage("vkMp3LinksNotFound")))}))},requestReloadAudio:function(e,t,n){var r={act:"reload_audio",ids:"".concat(e,"_").concat(t,"_").concat(n)};return j()({type:"POST",url:"/audio",json:!0,data:r}).then((function(e){var t=e.body.data;return U.getNewTrackInfo(t[0][0])}))}},H={panelId:"savefrom__vk_video_links",videoAttr:"data-savefrom-video",hiddenAttr:"data-savefrom-hidden",btnBoxId:"sf-iframe-dl-btn",btnBox:null,style:{fontSize:"10pt",margin:"15px 0",padding:"0"},getLinksFormUrl:function(e){if(e){if("//"===e.substr(0,2)&&(e="http:"+e),s.showUmmyItem&&this.isRutubeLink(e))return H.getRutubeLinks(e);if(this.isPladformLink(e))return H.getPladformLinks(e);var t,r=n.embedDownloader.hostings;for(var i in r){for(var o,a=r[i],l=0;o=a.re[l];l++){var u=e.match(o);if(u){t={hosting:i,action:a.action,extVideoId:u[1]};break}}if(t)break}if(t)return{request:t}}},getLinksFromFlashVars:function(e){var t=p()(e,{params:!0});return H.getLinksFromHtml5MetaData(t)},getLinksFromHtml5MetaData:function(e){if(e){var t=e.md_title;if(void 0!==t){var n=Object.keys(e).some((function(e){return e.match(/cache([0-9]+)/)}))?/cache([0-9]+)/:/url([0-9]+)/,r={},i=!1;for(var o in e){var a=null;if("extra_data"!==o||"52"!==e.extra){if(null!==(a=o.match(n))){var s=e[o],l=s.indexOf("?");-1!==l&&(s=s.substr(0,l)),i=!0,r[a[1]]=s}}else r[a=e.hd?"HD":"SD"]=e[o],i=!0}return i?{title:t,links:r}:void 0}}},getRutubeLinks:function(e){if(/rutube[^\/]+\/(?:play|video)\/embed\/(\d+)/.test(e)||/video\.rutube\./.test(e))return{isUmmy:!0,links:n.popupMenu.prepareLinks.rutube(e)}},isRutubeLink:function(e){return/\/\/.*rutube\..*/.test(e)},getPladformLinks:function(e){if(e){var t=p()(e);return{request:{action:"getPladformVideo",extVideoId:{playerId:t.pl,videoId:t.videoid}}}}},isPladformLink:function(e){return/\/\/.*pladform\..*/.test(e)},getLinksVideoEl:function(e,t){var n=t.querySelector(".vv_summary");if(!n)return null;n=n.textContent;for(var r,i,o={},a=e.querySelectorAll("source"),s=0;i=a[s];s++){var l=i.src||"",u=l.indexOf("?");-1!==u&&(l=l.substr(0,u));var c=l.match(/\.(\d+)\.[^\/]+$/);null!==c&&(o[c[1]]=l,r=!0)}return r?{title:n,links:o}:void 0},getPlayerNode:function(e){var t=null;return["iframe.video_yt_player","#html5_player","#flash_video_obj","#playerObj","#player",".video_box_wrap > #video_player"].some((function(n){if(t=e.querySelector(n))return!0})),t},getLinksFromMv:function(e,t,n){return de()([t,e],(function(e,t){var r=window.mvcur;if(r&&r.player&&r.player.vars){var i=r.player.vars;return i.vid!==e||i.oid!==t?n():{vars:r.player.vars}}})).then((function(e){return e?H.getLinksFromHtml5MetaData(e.vars):null}))},getLinksFromFrame:function(e){var t=document.body.innerHTML,n=p()(location.href),r=parseInt(n.oid),i=parseInt(n.id);if(r&&i){var o=null;if(w()(t,[/"vid":/,/"oid":/,/"md_title":/]).some((function(e){return o=e,!0})),o&&o.vid===i&&o.oid===r)return e(null,{request:{hosting:"vk",action:"getVkLinksFromJsonMsg",json:o}});var a=document.body,s=H.getPlayerNode(a);if(s)return H.getLinksFromPlayer(a,s,(function(t){t&&e(null,t)}))}return e("ERROR")},getLinksFromPlayer:function(e,t,r){if(t){var i,o;if("OBJECT"===t.tagName)(o=t.querySelector('param[name="flashvars"]'))&&(o=o.getAttribute("value"),i=H.getLinksFromFlashVars(o));else if("IFRAME"===t.tagName){var a=t.getAttribute("src");i||(i=H.getLinksFormUrl(a))}else if("EMBED"===t.tagName){var s=t.getAttribute("src");i||(o=t.getAttribute("flashvars"))&&(i=H.getLinksFromFlashVars(o)),i||(i=H.getLinksFormUrl(s))}if(i)return r(i,e);if("DIV"===t.tagName&&"video_player"===t.id){var l=t.parentNode.id,u=l&&l.match(/video_box_wrap(-?\d+)_(-?\d+)/);if(u)return u.shift(),u=u.map((function(e){return parseInt(e)})),de()(u,(function(e,t){var n=window.mvcur;if(!n)return r();var i="video"+e+"_"+t;return n.listId&&(i+="?list="+n.listId),{path:i}})).then((function(t){if(t)return r({request:{hosting:"vk",action:"getVKLinks",extVideoId:t.path,oidVid:u}},e)}))}if("html5_player"===t.id)return de()((function(){return window.html5video&&window.html5video.vars?window.html5video.vars:r()})).then((function(t){var n=H.getLinksFromHtml5MetaData(t);if(n)return r(n,e)}));if("A"===t.tagName){var c=t.href,d=p()(c);if(d.to)return i=n.embedDownloader.checkUrl(d.to),r(i?{request:i}:null,e)}return r(null,e)}},preparePladformLinks:function(e){e&&"getRutubeLinks"===e.action&&(e.links=null);var t=e&&e.links,n="noname",r={};if(t)for(var i,o=0;i=t[o];o++)n=i.title,r[i.quality]&&(i.quality=0),r[i.quality.toUpperCase()]=i.url;return{title:n,links:r}},prepareLinks:function(e){var t=e.title,n=[];for(var r in e.links){var i=e.links[r],o=i.match(/[\w]+\.(mp4|flv)(?:\?|$)/i),a=(o=o?o[1]:"flv").toUpperCase();n.push({href:i,quality:r,title:t,ext:o,format:a,forceDownload:!0})}return n},getVideoLinksAsAjax:function(e){var t=/video(-?\d+_-?\d+)/.exec(e);t=t&&t[1];var n=p()(e).list;return Q._getModuleName().then((function(e){return new Promise((function(r){W.getLinkAsAjax([t,n],(function(e,t){r({hosting:t,response:e})}),e)}))}))},prepareVideoLinks:function(e){return Object(i.a)(h.a.mark((function t(){var o,a,l,u,c,d,f,p,m,g,b,y,A,w,k,x,C,S,_,I,O,E,L,N,T,F;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l=[],!e||!e.oidVid){t.next=7;break}return c=Object(v.a)(e.oidVid,2),d=c[0],f=c[1],t.next=5,H.getLinksFromMv(d,f);case 5:(p=t.sent)&&(u=l).push.apply(u,Object(r.a)(H.prepareLinks(p)));case 7:return t.next=9,Object(q.a)(e);case 9:if((m=t.sent)&&("getPladformVideo"===e.action?s.showUmmyItem&&"getRutubeLinks"===m.action?(o=l).push.apply(o,Object(r.a)(n.popupMenu.prepareLinks.rutube(m.links))):(a=l).push.apply(a,Object(r.a)(H.prepareLinks(H.preparePladformLinks(m)))):m.links&&(b=n.embedDownloader.reMapHosting(m.action))&&(g=l).push.apply(g,Object(r.a)(n.popupMenu.prepareLinks[b](m.links,m.title)))),l.length||"getVKLinks"!==e.action){t.next=18;break}return t.next=14,H.getVideoLinksAsAjax(e.extVideoId);case 14:w=t.sent,k=w.hosting,(x=w.response)&&x.links&&(x.isUmmy?(y=l).push.apply(y,Object(r.a)(x.links)):(A=l).push.apply(A,Object(r.a)(n.popupMenu.prepareLinks[k](x.links,x.title))));case 18:if(!(l.filter((function(e){return-1!==e.href.indexOf("mycdn.me/")})).length||l.length<=2)||!e.extVideoId){t.next=35;break}return S={},(_=document.querySelector('a[href*="'+e.extVideoId+'"]'))&&_.dataset.length&&((I=_.closest('[id*="post"]'))&&(S.post_id=I.dataset.postId),S.list=_.dataset.list,S.paylist_id="wall_"+_.dataset.video.split("_")[0]),S.video=e.extVideoId.split("?")[0].replace("video",""),(O=location.href.match(/pl_(wall_.\d+)/))&&O[1]&&(S.playlist_id=O[1]),(E=document.querySelector('a[data-video="'.concat(S.video,'"]')))&&E.dataset.list&&(S.list=E.dataset.list),t.next=28,j()({type:"POST",url:"https://vk.com/al_video.php?act=show",data:M({act:"show",al:1,autoplay:1,module:"groups"},S)});case 28:return L=t.sent,t.next=31,function(){var e=Object(i.a)(h.a.mark((function e(t,n){var i,o,a,s,l,u;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Object(te.matchAll)(n,/:"(https:\\\/\\\/[a-z0-9\-]{3,15}\.vkuservideo\.net.*?\.(\d+)\.mp4.*?)",/gm).filter((function(e){return e[1]})).map((function(e){var t=Object(v.a)(e,3);t[0];return{href:t[1],quality:t[2],format:"MP4"}})),a=Object(te.matchAll)(n,/RESOLUTION=(.*?)\\n(http.*?)\\n/gm).filter((function(e){return e[1]})).map((function(e){var t=Object(v.a)(e,3),n=(t[0],t[1]),r=t[2];return{quality:n.split("x").length>1?n.split("x")[1]:n,href:r,format:"HLS",noSize:!0}})),s=Object(te.matchAll)(n,/hls":"(.*?)",/gm).filter((function(e){return e[1]})).map((function(e){return e[1]})).pop(),e.next=5,j()(s).then((function(e){return e.body}));case 5:return l=e.sent,u=Object(te.matchAll)(l,/QUALITY=(.*?),RESOLUTION=(.*?)\n(.*?)\n/gm),e.abrupt("return",((i=a).push.apply(i,Object(r.a)(u.filter((function(e){return e[1]})).map((function(e){var n=Object(v.a)(e,4),r=(n[0],n[1]),i=(n[2],n[3]);return{quality:r.split("x").length>1?r.split("x")[1]:r,href:i,format:"MP4",noSize:!0,func:function(e){e.preventDefault(),e.stopPropagation(),ae()(Object(se.createElement)(le.a,{filename:t+".mp4",format:"mp4",sources:[{url:i}],convertType:"hls"}),"sf-muxer-parent")}}})))),a=a.map(ue),{hls:Object(ne.uniqArrayObject)(a,"href"),mp4:Object(ne.uniqArrayObject)(o,"href"),dash:[]}));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(m.title,L.body);case 31:N=t.sent,T=N.hls,F=N.mp4,(C=l).push.apply(C,Object(r.a)(F).concat(Object(r.a)(T))),l=Object(ne.uniqArrayObject)(l,"href");case 35:return t.next=37,function(){var e=Object(i.a)(h.a.mark((function e(t,n){var r,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[],i=0;case 2:if(!(i<t.length)){e.next=19;break}if(!n||!n(t[i])){e.next=7;break}r.push(t[i]),e.next=16;break;case 7:if(-1===t[i].href.indexOf("http")){e.next=15;break}return e.next=10,ie(t[i].href);case 10:if(e.t0=e.sent,!e.t0){e.next=13;break}r.push(t[i]);case 13:e.next=16;break;case 15:r.push(t[i]);case 16:i++,e.next=2;break;case 19:return e.abrupt("return",r);case 20:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(Object(ne.uniqArrayObject)(l,"quality","itag"),(function(e){return 22==e.itag}));case 37:return l=(l=t.sent).map((function(e){return e.title="."===e.title?"video-"+e.quality:e.title,e})),t.abrupt("return",l);case 40:case"end":return t.stop()}}),t)})))()},newAppendButton:function(e,t){if(e){Object(ye.a)({category:"append",subcategory:"vk",event:"b"});var r=t.querySelector("#mv_info"),a=r&&r.querySelector(".mv_actions_block .like_cont .like_btns");r=null;var s=function(e){return e?e.querySelector("#mv_top_controls, #VideoLayerInfo__topControls"):null},l=s(t);if(l||(l=s(t.closest("#mv_container"))),a&&U.elIsHidden(a)&&(a=null),a||l){for(var u,c=!(a||!l),d=t.querySelectorAll(".savefrom_vk_download"),f=0;u=d[f];f++)u.parentNode.removeChild(u);u=null,d=null;var p=P.a.create("div",{class:["savefrom_vk_download","sf-under-video"],style:{cursor:"pointer"},on:[["click",function(){var r=Object(i.a)(h.a.mark((function r(i){var a,s;return h.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i.stopPropagation(),D.a.onRemoveEvent(this,O.hideMenu),!O.contextMenu||!O.contextMenu.isShow){r.next=2;break}return r.abrupt("return",void O.hideMenu());case 2:if(a=O.contextMenu=n.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+"...","sf-single-video-menu",{parent:t}),!e.isUmmy){r.next=5;break}return r.abrupt("return",void a.update(e.links));case 5:return r.next=7,H.prepareVideoLinks(e.request);case 7:return s=r.sent,r.abrupt("return",(s=s.map((function(e){return"MP4"===e.format&&(e.forceDownload=!0),e})),a.update(s)));case 9:case"end":return r.stop()}}),r,this)})));return function(e){return r.apply(this,arguments)}}()],["mousedown",function(e){e.stopPropagation()}],["keydown",function(e){e.stopPropagation()}]]});if(a){P.a.create(p,{class:["like_btn"],append:[P.a.create("div",{class:["like_button_icon"],append:[P.a.create("img",{src:n.svg.getSrc("download","#828a99"),width:16,height:16,style:{margin:"4px"}})]}),P.a.create("div",{class:["like_button_label"],text:o.a.i18n.getMessage("download")})]});var m=a.querySelector(".ui_actions_menu_wrap");m?m.parentNode.insertBefore(p,m):a.appendChild(p)}else if(c){P.a.create(p,{class:["mv_top_button"],style:{textAlign:"center"},append:[P.a.create("img",{class:["mv_small_close_icon"],style:{backgroundImage:"none",width:"20px",height:"20px"},src:n.svg.getSrc("download","#FFFFFF"),width:20,height:20})]});var g=l.firstChild;if(g)if(U.elIsHidden(l.lastChild)){for(;g.nextElementSibling&&!U.elIsHidden(g.nextElementSibling);)g=g.nextElementSibling;g.parentNode.insertBefore(p,g)}else l.appendChild(p);else l.appendChild(p)}}}},appendNewFrameBtn:function(e,t){var r=this;if(!t.querySelector(".savefrom_vk_download")){var i=n.frameMenu.getBtn({singleBtn:!0,btnId:r.btnBoxId,containerStyle:{top:"10px",right:"10px"},on:[["click",function(t){if(t.preventDefault(),t.stopPropagation(),O.contextMenu&&O.contextMenu.isShow)O.hideMenu();else{var a=O.contextMenu=n.frameMenu.getMenu(this,o.a.i18n.getMessage("download")+"...","sf-frame-menu",{container:i.container,onShow:function(){i.node.classList.add("sf-over")},onHide:function(){O.contextMenu=null,i.node.classList.remove("sf-over")}});if(e.request){var l=function(t){var i=o.a.i18n.getMessage("noLinksFound");if(t&&"getPladformVideo"===e.request.action)i=s.showUmmyItem&&"getRutubeLinks"===t.action?n.popupMenu.prepareLinks.rutube(t.links):r.prepareLinks(r.preparePladformLinks(t));else if(t&&t.links){var l=n.embedDownloader.reMapHosting(t.action);l&&(i=n.popupMenu.prepareLinks[l](t.links,t.title))}a.update(i)};try{o.a.sendMessage(e.request,l)}catch(t){l()}}else a.update(r.prepareLinks(e))}}],["mousedown",function(e){e.stopPropagation(),2===e.button&&(O.hideMenu(),i.container.parentNode&&i.container.parentNode.removeChild(i.container))}]]});i.container=P.a.create("div",{class:"sf-btn-ctr",append:i.node}),i.node.appendChild(P.a.create("style",{text:x()([{selector:["body:hover .sf-btn-ctr #"+r.btnBoxId,"body:hover .sf-btn-ctr .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(i.container)}},addFrameBtn:function(){var e=document.getElementById("page_wrap");e&&H.getLinksFromFrame((function(t,n){t||H.appendNewFrameBtn(n,e)}))}},W={linkDataAttr:"savefromHasBtn",getLinkAsAjaxRequest:function(e,t){t=t||0;var n=Object.assign({},e),r=function(){if(t<1)return W.getLinkAsAjaxRequest(e,++t);e.error&&e.error()},i=n.data;0===t?i.act="show_inline":1===t&&(i.act="show"),N()(n,(function(t,n,i){return t||!i||-1!==i.indexOf('href="/join"')?r():void e.success(i)}))},getVideoDataFromLink:function(e){var t=e.getAttribute("onclick"),n=/showVideo\(['"]{1}([^'"]+)['"]{1},.?['"]{1}([^'"]+)['"]{1},.*\)/.exec(t);return n&&n.shift(),n},getLinkAsAjax:function(e,t,r){W.getLinkAsAjaxRequest({localXHR:1,type:"POST",url:"/al_video.php",data:{list:e[1],video:e[0],act:"show_inline",module:r,al:1},success:function(e){if(!e)return t();var r=e.match(/<iframe[^>]+src=['"]{1}([^'">]+)['"]{1}[^>]+>/i);if(r||(r=e.match(/var\s+opts\s+=\s+({[^}]*})/im))&&(r=r[1].match(/url:\s+['"]{1}([^'"]+)['"]{1}/i))&&0!==r[1].indexOf("//")&&0!==r[1].indexOf("http")&&(r=null),r){var i=r[1];if(s.showUmmyItem&&H.isRutubeLink(i))return t(H.getRutubeLinks(i));if(0===i.indexOf("//")&&(i="http:"+i),0!==i.indexOf("http"))return t();var a=n.embedDownloader.checkUrl(i);if(!a)return t();var l={action:a.action,extVideoId:a.extVideoId};o.a.sendMessage(l,(function(e){var r=a.hosting;return e.action!==l.action&&(r=n.embedDownloader.reMapHosting(e.action)),t(e,r)}))}else Object(q.a)({action:"getVkLinksFromData",data:e}).then((function(e){return t(e,"vk")})).catch((function(){return t({},"vk")}))},error:function(){t()}})},addDownloadBtn:function(e){var t=e.href,r={display:"inline-block",width:"16px",height:"16px",marginLeft:"5px",backgroundImage:"url("+n.svg.getSrc("download","#78A2CC")+")",backgroundRepeat:"no-repeat",marginBottom:"-4px"},i=P.a.create("a",{href:"http://savefrom.net/?url="+encodeURIComponent(t),style:r,on:["click",function(e){if(e.preventDefault(),D.a.onRemoveEvent(a,O.hideMenu),O.contextMenu&&O.contextMenu.isShow)O.hideMenu();else{var t=document.querySelector("#wk_box");t&&t.contains(this)||(t=null);var r={parent:t},s=this.getAttribute(n.embedDownloader.dataAttr),l=n.embedDownloader.checkUrl(s);if(l){var u={action:l.action,extVideoId:l.extVideoId},c=O.contextMenu=n.popupMenu.quickInsert(i,o.a.i18n.getMessage("download")+" ...","sf-popupMenu",r);H.prepareVideoLinks(u).then((function(e){e.map((function(e){return"MP4"===e.format&&(e.forceDownload=!0),e})),c.update(e)}))}else O.contextMenu=n.popupMenu.quickInsert(i,o.a.i18n.getMessage("noLinksFound"),"sf-popupMenu",r)}}]});i.setAttribute(n.embedDownloader.dataAttr,t);var a=P.a.create("span",{class:"sf-video-feed-container",on:["click",function(e){e.stopPropagation()}],append:[i]}),s=e.querySelector(".post_video_title");s?s.appendChild(a):e.appendChild(a)},onLinkHover:function(){if("A"===this.tagName){var e=this.href||"";0===this.id.indexOf("post_media_lnk")&&-1!==e.indexOf("/video")&&(O.contextMenu&&O.contextMenu.isShow&&O.hideMenu(),this.dataset[W.linkDataAttr]||(this.dataset[W.linkDataAttr]=1,W.addDownloadBtn(this)))}},off:function(){for(var e,t=document.querySelectorAll(".sf-video-feed-container"),n=0;e=t[n];n++)e.parentNode.removeChild(e);var r=y()(W.linkDataAttr),i=document.querySelectorAll("*["+r+"]");for(n=0;e=i[n];n++)e.removeAttribute(r)}},Q={photoCache:{},getAlbumId:function(e){if(!/(\?|&|#)act=edit/i.test(e)){var t=[];t.push(e);var n=p()(e);n.w&&t.push(n.w),n.z&&t.push.apply(t,n.z.split("/")),/#/.test(e)&&(t.push(e.substr(e.indexOf("#")+1)),t.push(decodeURIComponent(e.substr(e.indexOf("#")+1)))),t.reverse();var r=null,i=null;return t.some((function(e){if(i=e.match(/(?:\/|#|=|^)(albums?|tag|photos|feed(?:\d+)?_|wall)(-?\d+)(?:_(\d+))?/i))return i[3]?r=/^(feed|wall)/.test(i[1])?i[1]+i[2]+"_"+i[3]:"album"+i[2]+"_"+i[3]:("albums"==i[1]&&(i[1]="photos"),r=i[1]+i[2]),!0})),r}},getModuleName:function(e){var t=P.a.create("script",{text:"("+'function(){if(window.cur&&window.cur.module&&typeof window.cur.module==="string"){document.body.dataset["{dataArg}"]=window.cur.module}}'.replace("{dataArg}","sfModule")+")();"});document.body.appendChild(t),setTimeout((function(){t.parentNode.removeChild(t),e(document.body.dataset.sfModule)}),0)},isReply:function(e){return S()(e,".replies "+e.tagName)||S()(e,".wl_replies "+e.tagName)},getWallPostContent:function(){var e=location.href.match(/wall(-?\d+_\d+)/);if(e=e&&e[1])return document.getElementById("post"+e)||document.getElementById("wpt"+e)},getPopup:function(e,t,r){var i,a=n.playlist.getInfoPopupTemplate();P.a.create(a.textContainer,{append:[P.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),i=P.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]});var s=n.popupDiv(a.body,"sf_progress_popup",void 0,void 0,r),l=function e(n){e.state!==n&&(e.state=n,a.buttonContainer.style.display="none",i.style.display="none",o.a.sendMessage({action:"getWarningIcon",type:t,color:"#77D1FA"},(function(e){a.icon.style.backgroundImage="url("+e+")"})),"progress"===n&&(i.style.display="block"),"error"===n&&(o.a.sendMessage({action:"getWarningIcon",type:t,color:"#AAAAAA"},(function(e){a.icon.style.backgroundImage="url("+e+")"})),i.style.display="block"))};return{onPrepare:function(e){l("progress"),i.textContent=e},onProgress:function(e,t){i.textContent=o.a.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+o.a.i18n.getMessage("vkFoundOf")+" "+t},onReady:function(){D.a.trigger(s,"kill")},onError:function(e){l("error"),i.textContent=e}}},getLayer:function(){var e=document.getElementById("layer_wrap");return null!==e&&"none"!==e.style.display&&0!==e.textContent.length||(e=null),null===e&&(null!==(e=document.getElementById("wk_layer_wrap"))&&"none"!==e.style.display&&0!==e.textContent.length||(e=null)),e},_getAlbumLinks:function(e,t){var n=this,r=n.photoCache,i="";/albums|tags|photos/.test(location.href)&&(i=F());var o={},a=[],s=0,l=0,u=0,c=0;return function d(){return function(i){if(t.abort)return Promise.reject(new Error("Abort"));var a={act:"show",al:1,list:e};return i&&(a.offset=i),j()({type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},url:"/al_photos.php",data:a,localXHR:!0,timeout:6e4}).then((function(e){var t=R(e.body),i=t[6],a=t[8];s||(s=a.length),l=i,u||(u=Math.ceil(i/s));var c=[],d="";return a.forEach((function(e){if(!o[e.id]){o[e.id]=1;var t=n.getMaxPhotoSize(e);t&&(!d&&e.album&&(d=z.a.decodeSpecialChars(g()(e.album.replace(/<[^>]+>/g,"")))),t.id=e.id,r[e.id]=t,c.push(t))}})),new Promise((function(e){setTimeout(e,250)})).then((function(){return{title:d,list:c}}))}))}(c*s).then((function(e){if(u--,c++,a.push.apply(a,e.list),t.onProgress&&t.onProgress(a.length,l),i||(i=e.title),u>0)return d()}))}().then((function(){if(Object.keys(r).slice(1e3).forEach((function(e){delete r[e]})),!a.length)throw new Error("Album is empty");return i||(i=F()),{title:i,list:a}}),(function(e){throw"Abort"!==e.message&&ke.debug("Get photo page error!",e),e}))},_getPhotoLinks:function(e,t,n){var r=this;return r._getModuleName().then((function(i){return function(i){if(n.abort)return Promise.reject(new Error("Abort"));var o={act:"show",al:1,list:t,module:i,photo:e};return j()({type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},url:"/al_photos.php",data:o,localXHR:!0,timeout:6e4}).then((function(t){var n=R(t.body)[8],i=null;if(n.some((function(t){if(t.id===e)return i=r.getMaxPhotoSize(t),!0})),!i)throw new Error("Photo is is not found!");return new Promise((function(e){setTimeout(e,250)})).then((function(){return i}))}))}(i)})).catch((function(e){throw"Abort"!==e.message&&ke.debug("Get photo error!",e),e}))},_getModuleName:function(){return new Promise((function(e,t){var n=P.a.create("script",{text:'(function(dataArg){if(window.cur&&window.cur.module&&typeof window.cur.module==="string"){document.body.dataset[dataArg]=window.cur.module}})('+JSON.stringify("sfModule")+");"});document.body.appendChild(n),setTimeout((function(){n.parentNode.removeChild(n),e(document.body.dataset.sfModule)}),0)}))},_getAlbumLinksViaDom:function(e,t){var n=this,r=n.photoCache;if(t.abort)return Promise.reject(new Error("Abort"));var i=/showPhoto\s*\(\s*["']([-\d_]+)["']\s*,\s*["']([\w\-]+)["']/i,o=/\{["']?temp["']?\s*:\s*(\{.+?\})/i,a=/(\{|,)\s*(\w+)\s*:/gi,s={},l=[],u=function(e){if(!Q.isReply(e)&&!U.elIsHidden(e)){var t=e.getAttribute("onclick"),r=i.exec(t);if(r){var u=r[1];if(!s[u]){s[u]=1;var c=r[2],d=null,f=o.exec(t);if(f){f=f[1].replace(a,'$1"$2":');var p=null;try{p=JSON.parse(f)}catch(e){}d=p&&n.getMaxPhotoSize(p)}d||(d={}),d.id=u,d.listId=c,l.push(d)}}}};if([].slice.call(e.querySelectorAll("a[onclick]")).forEach(u),0===l.length&&e!==document){var c=n.getWallPostContent();c&&[].slice.call(c.querySelectorAll("a[onclick]")).forEach(u)}return function(e){var i=Promise.resolve(),o=[],a=e.filter((function(e){var t=r[e.id];return!t||(o.push(t),!1)}));return t.onProgress&&t.onProgress(o.length,e.length),a.forEach((function(a){i=i.then((function(){return n._getPhotoLinks(a.id,a.listId,t).then((function(n){r[a.id]=n,o.push(n),t.onProgress&&t.onProgress(o.length,e.length)}),(function(n){if("Abort"===n.message)throw n;a.url&&(o.push(a),t.onProgress&&t.onProgress(o.length,e.length),ke.debug("Photo link from dom",n))}))}))})),i=i.then((function(){if(Object.keys(r).slice(1e3).forEach((function(e){delete r[e]})),!o.length)throw new Error("Photos is not found");return{list:o}}))}(l)},_getLinks:function(e,t){var r=this,i=Promise.resolve(),a={},s=r.getPopup(F(),"photo",(function(){a.abort=!0}));a.onProgress=function(e,t){s.onProgress(e,t)},s.onPrepare(o.a.i18n.getMessage("download")+" ...");var l=function(){if((e=e||document)===document){var t=r.getLayer();t&&(e=t)}return r._getAlbumLinksViaDom(e,a)};return(i=t?i.then((function(){return r._getAlbumLinks(t,a)})).catch((function(e){throw"Album is empty"!==e.message&&"Abort"!==e.message&&ke.debug("findAlbumLinks error",e),e})).catch((function(){return l()})):i.then(l)).then((function(e){var t=e.title,i=function(e){var t=[];e.forEach((function(e){var n=e.url,i=r.getFilenameFromUrl(n);i||(i="unknown.jpg"),t.push({filename:i,url:n})}));var n=String(t.length).length;return t.forEach((function(e,t){for(var r=String(t+1);r.length<n;)r="0"+r;e.filename=r+"-"+e.filename})),t}(e.list);s.onReady(),t||(t=F()),c?n.downloadList.showBeforeDownloadPopup(i,{count:i.length,folderName:t,type:"photo",onShowList:function(){r.showListOfLinks(t,i,!0)}}):r.showListOfLinks(t,i,!0)}),(function(e){"Abort"!==e.message&&ke.debug("_getLinks error",e),s.onError(o.a.i18n.getMessage("noLinksFound"))}))},rmPhotoAlbumDlBtn:function(){for(var e,t=document.querySelectorAll([".sf-dl-ablum-btn-divide",".sf-dl-ablum-btn"]),n=0;e=t[n];n++)e.parentNode.removeChild(e)},addNewPhotoAlbumDlBtn:function(e){var t=this,n=e.querySelector(".photos_album_intro_info"),r=e.querySelector(".page_block_header_extra"),i=n||r;if(i&&!i.querySelector(".sf-dl-ablum-btn")){var a=P.a.create("a",{text:o.a.i18n.getMessage("vkDownloadPhotoAlbum"),href:"#",class:"sf-dl-ablum-btn",on:["click",function(n){n.preventDefault();var r=Q.getAlbumId(location.href);t._getLinks(e,r)}]}),s=P.a.create("span",{append:a});n?(s.classList.add("photos_album_info"),s=P.a.create(document.createDocumentFragment(),{append:[P.a.create("span",{class:"divide sf-dl-ablum-btn-divide",text:"|"}),s]})):r&&(s.classList.add("photos_comments_link"),s.style.margin="0 15px"),i.appendChild(s)}},getContainer:function(){var e=document.getElementById("photos_albums_container");return e||(e=document.getElementById("photos_container")),e},getFilenameFromUrl:function(e){var t=/\/([\w\-]+\.[a-z0-9]{3,4})(?:\?|$)/i.exec(e);return t&&t[1]||""},rmCurrentPhotoBtn:function(e){for(var t,n=void 0,r=document.querySelectorAll(".sf-dl-current-photo-btn"),i=0;t=r[i];i++)e&&e.contains(t)?n=t:t.parentNode.removeChild(t);return n},style:null,injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=P.a.create("style",{text:x()({"div > .sf-dl-current-photo-btn":{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px",top:"20px",left:"30px",zIndex:10,cursor:"pointer"},"div > .sf-dl-current-photo-btn.sf-style-black":{border:0,background:"url("+n.svg.getSrc("download","#FFF")+") center no-repeat #000",backgroundSize:"14px",padding:"2px 4px",borderRadius:"2px",opacity:.4,transition:"opacity 100ms linear"},"div > .sf-dl-current-photo-btn:hover":{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px",opacity:.8},"div > .sf-dl-current-photo-btn.sf-style-black:hover":{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #000",backgroundSize:"14px"},"div > .sf-dl-current-photo-btn:active":{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"},"div:hover > .sf-dl-current-photo-btn":{display:"block"}})}),document.head.appendChild(this.style))},getMaxPhotoSize:function(e){var t,n,r=null,i=null;return["w","z","y","x"].some((function(t){return!!(r=e[t+"_"])||!!(i=e[t+"_src"])||void 0})),r||(r=[i]),r[0]?{url:(t=e.base,n=r[0],n.match(/https?:\/\//i)?((n=new URL(n)).pathname.match(/\.[a-z]{3}$/i)||(n+=".jpg"),n.toString()):(n.match(/\.[a-z]{3}$/i)||(n+=".jpg"),(t||"").replace(/\/[a-z0-9_:\.]*$/i,"")+"/"+n)),width:r[2]&&r[1],height:r[1]&&r[2]}:null},getNewCurrentPhotoLink:function(e,t){var n=this;return e?de()([e],(function(e){var t={};return"undefined"!=typeof cur&&cur.pvCurPhoto&&cur.pvCurPhoto.id===e&&(t=cur.pvCurPhoto),t})).then((function(e){if(!e||!e.id)return t("ID is not found");var r=n.getMaxPhotoSize(e);return r?t(null,r):t("URL is not found!")})):t("ID is empty!")},addNewDlCurrentPhotoBtn:function(e){var t=e;if(Object(ye.a)({category:"append",subcategory:"vk",event:"b"}),!this.rmCurrentPhotoBtn(t)){var r=this,i=e.closest(".pv_photo_wrap");if(i){var a=P.a.create("a",{class:["sf-dl-current-photo-btn","sf-style-black"],href:"#",title:o.a.i18n.getMessage("download"),on:[["click",function(e){if(e.stopPropagation(),e.preventDefault(),D.a.onRemoveEvent(this,O.hideMenu),!O.contextMenu||!O.contextMenu.isShow){var a=O.contextMenu=n.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+" ...","photoDlMenu",{parent:t}),s=i.querySelector(".like_wrap").classList,l=null;return s.forEach((function(e){var t=e.match(/photo(-?\d+_\d+)/);l=t&&t[1]})),r.getNewCurrentPhotoLink(l,(function(e,t){if(e)return a.update(o.a.i18n.getMessage("noLinksFound"));var n=z.a.modify(r.getFilenameFromUrl(t.url)),i=n.lastIndexOf("."),s=n.substr(i+1),l=n.substr(0,i),u=[];u.push({href:t.url,title:l,quality:o.a.i18n.getMessage("download"),format:" ",ext:s,forceDownload:!0,isOther:!0,isBlank:!0,func:function(){"undefined"!=typeof GM_info&&"Tampermonkey"===GM_info.scriptHandler?setTimeout((function(){return a.hide()}),2500):a.hide()}}),u.push({href:"#getAlbum",title:"",quality:o.a.i18n.getMessage("vkDownloadPhotoAlbum"),format:" ",ext:"",noSize:!0,isOther:!0,func:function(e){e.preventDefault(),Q.downloadPhoto(),a.hide()}}),a.update(u)}))}O.hideMenu()}],["mousedown",function(e){e.stopPropagation()}]]});new Y.a({queries:[{css:"#pv_photo img",is:"added",callback:function(){O.contextMenu&&O.contextMenu.isShow&&(O.hideMenu(),a.click())}}]}),t.appendChild(a)}}},downloadPhoto:function(){var e=this.getContainer(),t=this.getAlbumId(location.href);if(!t){var n=document.querySelector(".pv_album_name a");n&&!U.elIsHidden(n)&&(t=this.getAlbumId(n.href))}this._getLinks(e,t)},showListOfPhotosContent:function(e,t){var n;return"<!DOCTYPE html><html>"+P.a.create("html",{append:[P.a.create("head",{append:[P.a.create("meta",{attr:{charset:"utf-8"}}),P.a.create("style",{text:"a,img{display:block;margin-bottom:5px;}p{width: 640px}"})]}),P.a.create("body",{append:[e,P.a.create("p",{text:o.a.i18n.getMessage("vkListOfPhotosInstruction")}),P.a.create("br"),P.a.create("br"),(n=document.createDocumentFragment(),t.forEach((function(e){var t=e.url,r=e.filename||"",i=P.a.create("img",{src:t,alt:"photo"});r&&(i=P.a.create("a",{href:t,download:r,append:i})),n.appendChild(i)})),n)]})]}).innerHTML+"</html>"},showListOfLinks:function(e,t,r){var i;i=r?P.a.create(document.createDocumentFragment(),{append:[P.a.create("p",{append:[P.a.create("a",{text:o.a.i18n.getMessage("vkListOfPhotos"),href:"#",class:"sf__hidden",style:{fontWeight:"bolder",border:"none",textDecoration:"underline"},on:["click",function(n){n.preventDefault();var r=Q.showListOfPhotosContent(e,t),i="";o.a.isChrome||o.a.isTM?(i=E()(r,"text/html",!0),o.a.sendMessage({action:"openTab",url:i})):(i=E()(r,"text/html"),window.open(i,"_blank"))}]})]})]}):"";for(var a,s,l="",u=0;a=t[u];u++)l+=a.url+"\r\n";var c=P.a.create(document.createDocumentFragment(),{append:[P.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"5px"}}),P.a.create("p",{append:B()(o.a.i18n.getMessage("vkListOfLinksInstruction"))}),i,s=P.a.create("textarea",{text:l,cols:60,rows:10,style:{width:"100%"}}),o.a.isChrome||o.a.isFirefox?P.a.create("button",{text:o.a.i18n.getMessage("copy"),style:{height:"27px",backgroundColor:"#ffffff",border:"1px solid #9e9e9e",marginTop:"6px",paddingLeft:"10px",paddingRight:"10px",borderRadius:"5px",fontSize:"14px",cursor:"pointer",cssFloat:"right"},on:["click",function(e){var t=this;t.disabled=!0,o.a.isFirefox?(s.select(),document.execCommand("copy")):o.a.sendMessage({action:"addToClipboard",text:l}),setTimeout((function(){t.disabled=!1}),1e3)}],append:P.a.create("style",{text:x()({"#savefrom_popup_box button:hover:not(:disabled)":{backgroundColor:"#597A9E !important",borderColor:"#597A9E !important",color:"#fff"},"#savefrom_popup_box button:active":{opacity:.9}})})}):void 0]});n.popupDiv(c)}},Z={mobileMenu:null,observer:null,styleEl:null,run:function(){var e=this;if(Y.a.isAvailable())return e.observer?e.observer.start():(e.observer=new Y.a({queries:[{css:"div.audio_item",is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",e.insertAudioBtn(n))}},{css:"div.VideoPage",is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",e.insertVideoBtn(n))}},{css:"."+D.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)D.a.onRemoveListener(t)}}]}),void e.insertStyle())},hideMenu:function(){Z.mobileMenu&&(Z.mobileMenu.hide(),Z.mobileMenu=null)},insertStyle:function(){this.styleEl?this.styleEl.parentNode||document.head.appendChild(this.styleEl):(this.styleEl=P.a.create("style",{class:"sf-style",text:x()([{selector:".savefrom_vk_download.sf-audio",style:{display:"block",float:"right",borderRadius:"3px",width:"22px",height:"22px",marginTop:"1px",marginLeft:"3px",marginRight:"3px",background:"url("+n.svg.getSrc("download","#ffffff")+") center no-repeat",backgroundSize:"12px",backgroundColor:"#5E80AA"}},{selector:".audio_item .savefrom_vk_download.sf-audio",style:{position:"absolute",right:"32px",top:0,bottom:0,margin:"auto"}},{selector:".audio_item.ai_current .savefrom_vk_download.sf-audio",style:{bottom:"auto",top:"6px"}}])}),document.head.appendChild(this.styleEl))},getAudioUrlFromNode:(b=Object(i.a)(h.a.mark((function e(t){var n,r,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U.getNewNodeTrackInfo(t);case 2:if((n=e.sent).fullId&&n.actionHash&&n.urlHash){e.next=5;break}throw new Error("Track info not valid for fetch audio link");case 5:return r=U.requestReloadAudio(n.fullId,n.actionHash,n.urlHash),i=de()([],"function(){return vk.id}"),e.abrupt("return",Promise.all([r,i]).then((function(e){var t=Object(v.a)(e,2),n=t[0],r=t[1],i=ee.decodeUnavailableUrl(r,n.url);return ee.isUrlM3u8(i)?ee.m3u8ToMp3(i):i})));case 7:case"end":return e.stop()}}),e)}))),function(e){return b.apply(this,arguments)}),onAudioBtnClick:function(e){if(e.preventDefault(),e.stopPropagation(),e.target.href)return n.downloadOnClick(e);var t=e.target.closest(".audio_item");t&&this.getAudioUrlFromNode(t).then((function(t){e.target.href=t,n.downloadOnClick(e)})).catch((function(e){ke.error("getAudioUrlFromNode error: "+e.message)}))},getAudioDlBtnNode:function(e){return P.a.create("a",{class:["savefrom_vk_download","sf-audio"],download:z.a.modify(e),target:"_blank",on:["click",this.onAudioBtnClick.bind(this)],title:o.a.i18n.getMessage("download")})},insertAudioBtn:function(e){var t=null,n=e.querySelector(".ai_label");if(n){var r=n.textContent.trim(),i=n.querySelector(".ai_title"),o=n.querySelector(".ai_artist"),a=i&&i.textContent.trim(),s=o&&o.textContent.trim();t=a&&s?"".concat(s.trim()," – ").concat(a.trim()):r}t="".concat(t||"unknown",".mp3");var l=e.querySelector(".ai_dur");if(l){var u=l.parentNode,c=this.getAudioDlBtnNode(t),d=u.querySelector(".savefrom_vk_download");if(d)d.parentNode.replaceChild(c,d);else{var f=l.nextElementSibling;if(!f)return;u.insertBefore(c,f)}}},onVideoBtnClick:function(e,t){t.preventDefault(),t.stopPropagation(),Z.hideMenu();var r=Z.mobileMenu=n.mobileLightBox.show(o.a.i18n.getMessage("download")+" ..."),i=o.a.i18n.getMessage("noLinksFound");if(e.request){var a=function(t){if(t&&"getPladformVideo"===e.request.action)i=H.prepareLinks(H.preparePladformLinks(t));else{var o=n.embedDownloader.reMapHosting(t.action);o&&t&&t.links&&(i=n.popupMenu.prepareLinks[o](t.links,t.title))}if(!i.length){var a=Array.from(document.body.querySelectorAll('.vv_inline_video source[type="video/mp4"]'));i=a.map((function(e){var t=document.querySelector(".VideoPageInfoRow__title"),n=e.src.match(/.(\d+)\.mp4/);return{title:t?t.textContent:"video",href:e.src,forceDownload:!0,ext:"mp4",format:"MP4",quality:n?n[1]:""}}))}r.update(i)};try{o.a.sendMessage(e.request,a)}catch(t){a()}}else i=H.prepareLinks(e),r.update(i)},appendVideoBtn:function(e,t){var r=t.querySelector(".VideoPageInfoRow__title"),i=n.svg.getSvg("download","#4986cc","20px");i.style.marginLeft="17px",i.style.marginTop="6px",i.style.float="right",i.style.cursor="pointer",i.addEventListener("click",this.onVideoBtnClick.bind(this,e)),r&&r.appendChild(i),D.a.onRemoveEvent(i,Z.hideMenu)},insertVideoBtn:function(e){var t=this,n=e.querySelectorAll("iframe, video, a")[0],r=d()(e,"VideoPage"),i=function(){var e=/video(-?\d+)_(-?\d+)/.exec(location.href);return e&&{request:{hosting:"vk",action:"getVKLinks",extVideoId:"video"+e[1]+"_"+e[2]}}};n?H.getLinksFromPlayer(r,n,(function(e,n){e||(e=i()),e&&t.appendVideoBtn(e,n)})):e.querySelector(".vv_not_support")&&i()&&t.appendVideoBtn(i(),r)}}}))},48:function(e,t){e.exports=n(101)},53:function(e,t){e.exports=n(148)},58:function(e,t){e.exports=n(32)},85:function(e,t){e.exports=n(38)}})},function(e){!function(e){function t(t){for(var r,a,s=t[0],l=t[1],u=t[2],d=0,f=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(c&&c(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={10:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([102,0]),n()}({102:function(e,t,n){n.r(t);var o=n(0),l=n(11),u=n(10),c=n(26),d=n.n(c),f=n(24),p=n.n(f),m=n(18),g=n.n(m),b=n(37),y=n.n(b),A=n(9),w=n.n(A),k=n(20),x=n.n(k),C=n(14),S=n.n(C),M=n(38),_=n.n(M),I=n(3),O=n.n(I),E=n(2),L=n.n(E),N=n(16),T=n.n(N),j=n(5),F=n.n(j),D=n(6),R=n.n(D),P=n(54),V=n.n(P),B=n(13),U=n.n(B),z=n(8),q=n.n(z),H=n(30),W=n.n(H),Q=n(33),Z=n.n(Q),G=n(17),Y=n(86),J=n.n(Y),K=n(27),X=n(15),$=n.n(X),ee=n(4),te=n(22),ne=n.n(te),re=n(40),ie=n(7),oe=n(12),ae=n(43),se=R()("odnoklassniki_ru"),le=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");U.a.isSingle()&&Object(u.b)("odnoklassniki",(function(e,t){var u=Object(l.a)(t),c=t.preferences,f=c.moduleOdnoklassniki?1:0,m=o.a.isChrome||o.a.isFirefox||o.a.isGM&&o.a.isTM;o.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:f,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return b.changeState(t.state)}"updatePreferences"!==t.action?f&&("updateLinks"===t.action&&A(),"downloadMP3Files"===t.action&&(m?C.downloadMP3Files():C.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&C.showListOfAudioFiles(!0)):Object.assign(c,t.preferences)})),f&&setTimeout((function(){b.run()}));var b={linkCache:{},contextMenu:null,videoToken:null,run:function(){if(f=1,C.getJsSessionId(),I.injectStyle(),E.injectStyle(),q.a.isAvailable())return b.mutationMode.enable()},changeState:function(e){f=e,M.rmBtn(),C.disable(),E.rmCurrentPhotoBtn(),I.disable(),I.rmBtn(),b.hideMenu(),b.mutationMode.stop(),b.clearCache(),e&&b.run()},hideMenu:function(){b.contextMenu&&(b.contextMenu.hide(),b.contextMenu=null)},clearCache:function(){var e=b.linkCache;for(var t in e)delete e[t]},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=g()(e),r=document.querySelectorAll("["+n+"]"),i=0;t=r[i];i++)t.removeAttribute(n)}))},wrapOnPhotoOver:function(){f&&E.addCurrentDlBtn(this)},wrapVideoFeedOnImgOver:function(){f&&I.onImgOver.call(this)},wrapAudioOnMouseOver:function(){f&&C.onMouseOver.apply(this,arguments)},wrapAudioOnMouseOut:function(){f&&C.onMouseOut.apply(this,arguments)},wrapNewAudioOnMouseEnter:function(){if(f)try{C.onNewMouseEnter.apply(this,arguments)}catch(e){se.error("wrapNewAudioOnMouseEnter error",e)}},enable:function(){if(this.observer)return this.observer.start();var e,t=this,n=function(e){for(var n,r=0;n=e.added[r];r++)n.sfSkip>0||(n.sfSkip="1",O.a.on(n,"mouseenter",t.wrapAudioOnMouseOver),O.a.on(n,"mouseleave",t.wrapAudioOnMouseOut))},r=function(e){for(var n,r=0;n=e.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",O.a.one(n,"mouseenter",t.wrapVideoFeedOnImgOver))},a=[];"m.ok.ru"===location.host&&a.push({css:".music_track_i:not(.actionButton)",is:"added",callback:function(e){e.added.forEach((function(e){e.sfSkip||(e.sfSkip="1",C.appendDownloadMobileMusic(e))}))}},{css:"#mvplayer_cont, .feed-card_item .vdo.playb, .theme-comments-head [data-video]",is:"added",callback:function(e){e.added.forEach((function(e){if(!e.dataset.sfSkip){e.dataset.sfSkip="1";var t=e.closest(".section, .feed-card, .theme-comments-head");t&&M.appendDownloadMobileVideo(t)}}))}}),this.observer=new q.a({queries:[].concat(a,[{css:".track.js-track, .track-with-cover.h-mod",is:"added",callback:n},{css:".track-with-cover_cnt",is:"added",callback:(e=Object(i.a)(h.a.mark((function e(t){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.added.filter((function(e){return!e.dataset.sfReady})).map((function(e){return e.dataset.sfReady=1,e})).map((function(e){var t=document.createElement("a");Object(ie.a)({category:"append",subcategory:"ok",event:"b"}),t.classList.add("sf-audio","savefrom_ok_download"),e.style.position="relative",e.appendChild(t),t.style.position="absolute",t.style.top="10px",t.style.right="15px",t.style.width="16px",t.style.height="16px";var n=e.closest(".track-with-cover").dataset.trackId;t.addEventListener("click",(function(t){Object(ie.a)({category:"download",subcategory:"ok",event:"track"}),t.stopPropagation(),t.preventDefault();var n=e.closest(".track-with-cover"),r=n.querySelector('[data-l="t,artist"]').textContent,i=n.querySelector('[data-l="t,album"]').textContent,a=F.a.modify("".concat(r," - ").concat(i));o.a.sendMessage({action:"downloadFile",options:{filename:a+".mp3",url:t.target.href}})})),e.closest(".track-with-cover").addEventListener("mouseleave",(function(){return t.style.display="none"})),e.addEventListener("mouseenter",(function(){t.style.display="block",t.href||o.a.sendMessage({action:"getOdnoklassnikiAudioLinks",url:location.href,trackId:n,jsessionId:C.jsessionId},(function(e){var n=e.data;C.getClientHash(n.play).then((function(e){t.href=n.play+(e?"&clientHash="+e:"");var r=n.track,i=Math.floor(r.size/r.duration/125)+" "+o.a.i18n.getMessage("kbps"),a=u.sizeHuman(r.size,2);t.title="".concat(a," ~ ").concat(i)}))}))}))}));case 2:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},{css:".mus-tr_i",is:"added",callback:n},{css:"#photo-layer_photo",is:"added",callback:function(e){if(!o.a.isSafari)for(var n,r=0;n=e.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",O.a.one(n,"mouseenter",t.wrapOnPhotoOver))}},{css:".vp_video .vid-card_cnt",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=S()(t,".vp_video");if(!r)return;var i=M.getPlayerOptions(t);i&&M.appendLinkUnderVideo(r.parentNode,i)}}},{css:".vid-card_cnt .vid-card_cnt_w img",is:"added",callback:function(e){for(var n,r=0;n=e.added[r];r++)if(!(n.dataset.sfSkip>0)){if(n.dataset.sfSkip="1",(n=d()(n,"vid-card_cnt")).dataset.sfSkip)return;O.a.one(n,"mouseenter",t.wrapVideoFeedOnImgOver)}}},{css:".d_comment_text_w img",is:"added",callback:r},{css:".video-card .video-card_img-w img",is:"added",callback:r},{css:".vid-card_cnt img, .html5-vpl_vid",is:"added",callback:r},{css:".".concat(O.a.onRemoveClassName),is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)O.a.onRemoveListener(t)}},{css:".sf-video-feed-bind-on-insert",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.addEventListener("click",I.onBtnClick),Object(ie.a)({category:"append",subcategory:"ok",event:"b"})}},{css:["wm-track","wm-track2"],is:"added",callback:function(e){for(var n,r=0;n=e.added[r];r++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",O.a.one(n,"mouseenter",t.wrapNewAudioOnMouseEnter))}}])})}}},A=function(){b.clearCache(),k(),C.getJsSessionId(),M.catchPopup()},k=function(){for(var e=document.querySelectorAll(".savefrom_ok_download"),t=e.length-1;t>=0;t--)e[t].parentNode.removeChild(e[t])},C={downloadIdPrefix:"savefrom_ok_audio_download_",infoIdPrefix:"savefrom_ok_audio_info_",lastRow:null,lastRowCandidate:null,timer:0,jsessionId:"",clientHashV:"",scriptNode:null,cache:{payloadTracks:{}},ajaxTimer:{},trackIdPromise:{},appendDownloadMobileMusic:function(e){var t=L.a.create("a",{style:{position:"absolute",top:"-6px",left:"16px"},append:[u.svg.getSvg("download","#f1bc7f",14,14)],on:["click",function(){var t=Object(i.a)(h.a.mark((function t(n){var r,i,o=this;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),n.stopPropagation(),r=V()(e),t.next=4,T()([r],(function(e){var t=document.querySelector(e);if(t)return t.okData}));case 4:(i=t.sent)&&i.track?(se.log("track info",i),C.prepareTrackForDownload(i.track.id).then((function(e){u.download(e.filename,e.downloadUrl)}),(function(e){se.error("appendDownloadMobileMusic. click download error",e),o.style.opacity=.3}))):se.error("okData not found");case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()]}),n=e.querySelector(".music_track_aux");n&&n.appendChild(t)},prepareTrackForDownload:function(e){return Object(i.a)(h.a.mark((function t(){var n,r;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=C.jsessionId,t.t0){t.next=4;break}return t.next=4,C.getJsSessionId();case 4:return t.next=6,C.getTrackUrlById(e);case 6:if((n=t.sent).track){t.next=9;break}throw new Error("Track is not found");case 9:if(n.play){t.next=11;break}throw new Error("Track url is not found");case 11:return t.next=13,C.getClientHash(n.play);case 13:return r=t.sent,t.abrupt("return",{filename:F.a.modify("".concat(n.track.ensemble," – ").concat(n.track.name,".mp3")),downloadUrl:"".concat(n.play,"&").concat(ae.stringify({clientHash:r})),duration:n.track.duration,size:n.track.size||-1});case 15:case"end":return t.stop()}}),t)})))()},showRowElements:function(e,t,n){if(e){var r=e.querySelectorAll("div.savefrom_ok_download");r=e.querySelectorAll("div.savefrom_ok_download");for(var i=0;i<r.length;i++)r[i].style.display=t?"":"none"}},getNodeTrackId:function(e){var t=e.getAttribute("data-query");if(t)try{if((t=JSON.parse(t))&&t.trackId)return t.trackId}catch(e){return null}var n=e.querySelector("span.track_play[onclick]");if(n){var r=/(?:playMediatopic|playFeedTrack)\(['"]?(\d+)['"]?/.exec(n.getAttribute("onclick"));return r&&r[1]}return e.dataset.trackId?e.dataset.trackId:null},getTrackId:function(e){var t=C.getNodeTrackId(e);if(t)return(r={})[t]=e,r;var n=e.id;if(n){var r,i=n.indexOf("#");if(-1!==i&&(n=n.substr(i+1)),(t=u.getMatchFirst(n,/^\w+_(\d+)$/i))||-1!==n.indexOf("GROUP_FEED")&&(t=n.substr(n.lastIndexOf("_")+1)),t)return(r={})[t]=e,r}return null},showRowLinks:function(e){var t=C.getTrackId(e);for(var n in t)if(C.handleRow(n,t[n]))return!0;return!1},disable:function(){C.lastRowCandidate=null,C.lastRow=null;for(var e,t=document.querySelectorAll(".savefrom_ok_download"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},getJsSessionId:function(){return("m.ok.ru"===location.host?function(){for(var e=Array.from(document.querySelectorAll("script")),t=0;t<e.length;t++)if(e[t].textContent){var n=e[t].textContent.match(/"jsid":"(.*?)"/);if(n&&n[1])return Promise.resolve(n[1])}return Promise.resolve(void 0)}:function(){return new Promise((function(e,t){var n=location.protocol+"//"+location.host+"/web-api/music/conf";_()({type:"POST",url:n,data:"_",json:!0,localXHR:!0},(function(n,r,i){!n&&i&&i.sid?e(i.sid):t(new Error("Get jsSessionId error!"))}))}))})().then((function(e){C.jsessionId=e}),(function(e){se.debug("getJsSessionId error",e)}))},getLink:function(e){e&&C.jsessionId&&(C.ajaxTimer[e]=window.setTimeout((function(){delete C.ajaxTimer[e],C.deleteLink(e)}),3e4),o.a.sendMessage({action:"getOdnoklassnikiAudioLinks",url:location.href,trackId:e,jsessionId:C.jsessionId},(function(e){C.setLink(e.trackId,e.data)})))},onMouseOver:function(){if(C.jsessionId){var e=this;e&&(C.lastRowCandidate=e,clearTimeout(C.timer),C.lastRow!==e&&(C.timer=window.setTimeout((function(){C.showRowElements(C.lastRow,!1),C.lastRow=e,C.lastRowCandidate=null,C.showRowElements(C.lastRow,!0)}),250)))}},onMouseOut:function(){var e=this;(C.lastRow&&C.lastRow.contains(e)||C.lastRowCandidate&&C.lastRowCandidate.contains(e))&&(clearTimeout(C.timer),C.timer=window.setTimeout((function(){C.showRowElements(C.lastRow,!1),C.lastRow=null,C.lastRowCandidate=null}),1e3)),e=null},onNewMouseEnter:function(e){var t=this;if(!this.querySelector(".savefrom_ok_download")){var n=V()(this);if(document.querySelector(n)!==this)throw new Error("Node path is incorrect");return C.getNodeTrack(n).then((function(e){"WM-TRACK2"===t.tagName?C.insertButtonOnOver(t,e):C.insertButton(t,e)}))}},insertButtonOnOver:function(e,t){var n=this,r=new(Z()())((function(r){if(!f)return i();for(var o=null,a=null,s=0;o=r.shift();)if("childList"===o.type&&o.target===e)for(s=0,o.addedNodes;a=o.addedNodes[s];s++)if("SLOT"===a.tagName&&"controls"===a.name){e.querySelector(".savefrom_ok_download")||(n.insertButton(e,t),i());break}})),i=function(){r.disconnect()};r.observe(e,{childList:!0})},insertButton:function(e,t){var n=["sf-audio","savefrom_ok_download"],r=null;if("WM-TRACK"===e.tagName?r=e.querySelector(".wm-track_controls"):"WM-TRACK2"===e.tagName&&(n.push("sf-audio-2"),r=e.querySelector('slot[name="controls"]')),e.classList.contains("track-with-cover")&&(r=e.querySelector('[data-l="t,addTrack"]')),!r){var i=e.querySelector('slot[name="controls"], wm-duration');r=document.createElement("div"),e.insertBefore(r,i)}var o=L.a.create("a",{href:"#",data:{state:"idle",trackId:t.id},class:n,style:{display:"none",position:"relative",width:"16px",height:"16px",verticalAlign:"middle"},on:[["mouseenter",C.handlePreload],["click",C.handleClickNewButton],["mouseenter",function(){N.tooltip.textContent=C.getNewButtonTooltipLabel(this),N.show(this)}],["mouseleave",function(){N.hide()}],["sf-state-change",function(){N.tooltip.textContent=C.getNewButtonTooltipLabel(this),N.updatePos(this)}],["mouseover",function(e){if(le){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(oe.showTooltip)(o,{defaultWidth:400,defaultHeight:60});Object(oe.hideTooltip)(o,{defaultWidth:400,defaultHeight:60})}}]]});Object(ie.a)({category:"append",subcategory:"ok",event:"b"}),r.appendChild(o)},getNewButtonTooltipLabel:function(e){switch(e.dataset.state){case"pending":return"...";case"done":var t=JSON.parse(e.dataset.data),n=t.duration,r=t.size,i="";if(r){var a=u.sizeHuman(r,2);i=n?"".concat(a," ~ ").concat(Math.floor(r/n/125)+" "+o.a.i18n.getMessage("kbps")):"".concat(a)}else i=o.a.i18n.getMessage("getFileSizeFailTitle");return i;case"error":return o.a.i18n.getMessage("noLinksFound");default:return""}},handlePreload:function(e){var t=this,n=e.target.closest("wm-track")||e.target.closest("wm-track2"),r=V()(n);C.getNodeTrack(r).then((function(n){t.dispatchEvent(new CustomEvent("sf-state-change"));var r=t.dataset.trackId=n.id;return C.prepareTrackForDownload(r).then((function(n){t.href=n.downloadUrl,t.download=n.filename,t.dataset.data=JSON.stringify({duration:n.duration,size:n.size}),t.dataset.state="done",t.dispatchEvent(new CustomEvent("sf-state-change")),t.dataset.downloadOnReady>0&&C.handleClickNewButton.call(t,e)}),(function(e){se.error("handlePreload error",e),t.dataset.state="error",t.dispatchEvent(new CustomEvent("sf-state-change"))}))}))},handleClickNewButton:function(e){e.stopPropagation(),"done"!==this.dataset.state?(e.preventDefault(),"1"!==this.dataset.downloadOnReady&&(this.dataset.downloadOnReady="1")):u.downloadOnClick(e)},getTrackUrlById:function(e){var t=this;return Object(i.a)(h.a.mark((function n(){var i,o;return h.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.trackIdPromise[e]){n.next=2;break}return n.abrupt("return",t.trackIdPromise[e]);case 2:if(!C.cache.payloadTracks[e]){n.next=4;break}return n.abrupt("return",C.cache.payloadTracks[e]);case 4:return o="https://wmf.ok.ru/play;jsessionid=".concat(C.jsessionId,"?")+ae.stringify({tid:e}),n.abrupt("return",t.trackIdPromise[e]=(i=T()([o],"function(url){return fetch(url).then(function(response){return response.json()})}").then((function(t){var n=Object.keys(C.cache.payloadTracks);return n.length>20&&delete C.cache.payloadTracks[n[0]],C.cache.payloadTracks[e]=t,t}))).then.apply(i,Object(r.a)(W()((function(){delete t.trackIdPromise[e]})))));case 6:case"end":return n.stop()}}),n)})))()},getNodeTrack:function(e){return T()([e],'function(nodePath){var el=document.querySelector(nodePath);if(el&&el.props&&el.props.track){return el.props.track}if(el&&el.model&&el.model._data.get("track")){return el.model._data.get("track")}throw new Error("Track information not found")}')},getNodePath:function(e){for(var t=[];e.parentNode&&1===e.parentNode.nodeType;){var n="",r=[].slice.call(e.parentNode.childNodes);r.length>1&&(n=":nth-child(".concat(r.indexOf(e)+1,")")),t.unshift("".concat(e.tagName).concat(n)),e=e.parentNode}return t.join(">")},handleRow:function(e,t){if(!e||!t)return!1;var n=t;n.style.position="relative";var r=t.querySelector(".m_c_duration, .m_portal_duration"),i=document.createElement("div");i.className="savefrom_ok_download";var a=40,s=document.getElementById("mmpcw");s&&s.contains(t)&&(a=65),u.setStyle(i,{color:"#fff",background:"#46aa19",border:"1px solid #337d12",borderRadius:"3px",padding:"1px 5px",position:"absolute",right:a+"px",top:"50%",lineHeight:"15px",fontSize:"12px",opacity:0,zIndex:9999,cursor:"pointer"}),i.addEventListener("click",C.onBoxClick,!1),i.addEventListener("mousedown",(function(e){e.stopPropagation()}),!1);var l=C.getTitle(e,t),c=function(e,t,n){null==n&&(n=!0);var r=document.createElement("a");return r.href="#",r.className="savefrom_ok_download",r.textContent="...",n&&r.setAttribute("target","_blank"),r}();c.id=C.downloadIdPrefix+e,c.title=o.a.i18n.getMessage("downloadTitle"),r&&c.setAttribute("data-savefrom-helper-duration",C.secondsFromDurationNode(r)),l&&(l+=".mp3",c.setAttribute("download",F.a.modify(l))),u.setStyle(c,{color:"#fff",fontWeight:"normal"}),c.addEventListener("click",C.onDownloadLinkClick,!1),i.appendChild(c),n.appendChild(i),C.cache[e]?C.setLinkFromCache(e,c):C.getLink(e),i.style.marginTop="-"+i.offsetHeight/2+"px",i.style.opacity="1";var d=document.createElement("span");return d.textContent=String.fromCharCode(215),d.title=o.a.i18n.getMessage("close"),u.setStyle(d,{color:"#fff",fontFamily:"Tahoma,Helvetica,sans-serif",fontSize:"15px",marginLeft:"7px",opacity:".7",cursor:"pointer"}),d.addEventListener("click",C.onCloseBtnClick,!1),i.appendChild(d),!0},onBoxClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.querySelector("a.savefrom_ok_download");return t?(O.a.trigger(t,"click",{cancelable:!0}),!1):(this.style.display="none",!1)},onDownloadLinkClick:function(e){return 2!=e.button&&(e.stopPropagation(),"#"==this.href?(e.preventDefault(),!1):(u.downloadOnClick(e),!1))},onCloseBtnClick:function(e){if(2==e.button)return!0;e.preventDefault(),e.stopPropagation();var t=S()(this,".savefrom_ok_download");return t&&(t.style.display="none"),!1},deleteLink:function(e,t){if(!t&&e&&(t=document.getElementById(C.downloadIdPrefix+e)),t){var n=t.parentNode;n&&n.parentNode.removeChild(n)}},getHash:function(e,t){t||(t=[4,3,5,6,1,2,8,7,2,9,3,5,7,1,4,8,8,3,4,3,1,7,3,5,9,8,1,4,3,7,2,8]);for(var n=[],r=0;r<e.length;r++)n.push(parseInt("0x0"+e.charAt(r)));var i=[];(e=(e=n).slice(0))[32]=e[31];var o=0;for(r=32;r-- >0;)o+=e[r];for(var a=0;a<32;a++)i[a]=Math.abs(o-e[a+1]*e[a]*t[a]);return i.join("")},setLinkFromCache:function(e,t){if(!C.cache[e])return!1;if(t||(t=document.getElementById(C.downloadIdPrefix+e)),t){t.href=C.cache[e].url,t.textContent="",C.cache[e].downloadAttr&&t.setAttribute("download",C.cache[e].downloadAttr);var n=L.a.create(u.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",opacity:"0.9"}});t.appendChild(n);var r=document.createTextNode(C.cache[e].info);return t.nextSibling?t.parentNode.insertBefore(r,t.nextSibling):t.parentNode.appendChild(r),!0}},getClientHash:function(e){return Promise.resolve(function(){var t=n(103);return function(e,t){for(var n,r=[4,3,5,6,1,2,8,7,2,9,3,5,7,1,4,8,8,3,4,3,1,7,3,5,9,8,1,4,3,7,2,8],i=t(/md5=(\w*)/g.exec(e)[1]+"secret"),o=i.length,a="",s=0,l=0;l<o;l++)s+=parseInt(i[l],16);for(var u=0;u<o;u++){var c=parseInt(i[u],16);n=u===o-1?c:parseInt(i[u+1],16),a+=Math.abs(s-c*n*r[u])}return a}(e,(function(e){return t(e).toString()}))}())},setLink:function(e,t,n){if(e){clearTimeout(C.ajaxTimer[e]);var r=document.getElementById(C.downloadIdPrefix+e);if(r&&!C.setLinkFromCache(e,r)){if(!t||!t.play)return C.deleteLink(e,r),void(r.textContent="?");if(void 0===n)return this.getClientHash(t.play).then((function(n){C.setLink(e,t,n)}),(function(t){C.deleteLink(e,r)}));var i=t.track&&t.track.size||-1;C.cache[e]={},C.cache[e].url=t.play+(n?"&clientHash="+n:"");var a=" ("+u.sizeHuman(i,2),s=r.getAttribute("data-savefrom-helper-duration");if(t.track&&(t.track.duration&&(s=t.track.duration),t.track.ensemble&&t.track.name)){var l=t.track.ensemble+" - "+t.track.name;C.cache[e].title=l,C.cache[e].downloadAttr=F.a.modify(l+".mp3")}if(i&&i>0&&s){if(s=parseInt(s),isNaN(s))return void delete C.cache[e];a+=" ~ "+Math.floor(i/s/125)+" "+o.a.i18n.getMessage("kbps")}a+=")",C.cache[e].info=a,C.setLinkFromCache(e,r)}}},getTitle:function(e,t){if(!e||!t)return"";var n="",r=t.querySelector(".m_c_artist, .mus-tr_artist, .m_portal_c_artist"),i=t.querySelector(".m_track_source, .mus-tr_song, .m_portla_track_name");return r&&(r=r.textContent)&&(n+=r.trim()),i&&(i=i.textContent)&&(n&&(n+=" - "),n+=i.trim()),n?n.replace(/\<a\s+[^\>]+\>/gi,"").replace(/\<\/a\>/gi,""):""},secondsFromDurationNode:function(e){if(!e)return 0;var t=e.textContent;if(!t)return 0;var n=t.match(/^(?:\s*(\d+)\s*\:)?\s*(\d+)\s*\:\s*(\d+)/);return n&&n.length>3?(n[1]||(n[1]=0),3600*parseInt(n[1])+60*parseInt(n[2])+parseInt(n[3])):0},getPlaylistName:function(e){if(e!==document){var t=e.querySelector(".mus_h2_tx");return t&&F.a.modify(t.textContent)||void 0}},getNewPlaylistName:function(e){if(e!==document){var t=e.querySelector(".wm-list-description_header");return t&&F.a.modify(t.textContent)||void 0}},elIsHidden:function(e){return null===e.offsetParent},getLayer:function(){var e=document.querySelector("#mmpcw");if(e&&!e.classList.contains("__hidden")&&((e=e.querySelector('div.m_c_s[aria-hidden="false"]'))&&!C.elIsHidden(e)))return e},getNewLayer:function(){var e=document.querySelector("#music_layer wm-collection-section");if(e||(e=document.querySelector("#music_layer")),!e||!C.elIsHidden(e))return e},getPopup:function(e,t,n){var r,i=u.playlist.getInfoPopupTemplate();L.a.create(i.textContainer,{append:[e?L.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}):void 0,r=L.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]});var a=u.popupDiv(i.body,"sf_progress_popup",void 0,void 0,n),s=function e(n){e.state!==n&&(e.state=n,i.buttonContainer.style.display="none",r.style.display="none",o.a.sendMessage({action:"getWarningIcon",type:t,color:"#77D1FA"},(function(e){i.icon.style.backgroundImage="url("+e+")"})),"progress"===n&&(r.style.display="block"),"error"===n&&(o.a.sendMessage({action:"getWarningIcon",type:t,color:"#AAAAAA"},(function(e){i.icon.style.backgroundImage="url("+e+")"})),r.style.display="block"))};return{onPrepare:function(e){s("progress"),r.textContent=e},onProgress:function(e,t){r.textContent=o.a.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+o.a.i18n.getMessage("vkFoundOf")+" "+t},onReady:function(){O.a.trigger(a,"kill")},onError:function(e){s("error"),r.textContent=e}}},getAudioLinksViaAPI:function(e,t,n){var r=!1,i=[],a=e.length;return function s(){if(!r){var l=e.splice(0,10);if(0===l.length)return n(i);o.a.sendMessage({action:"getOkAudioListLinks",trackIdArr:l,jsessionId:C.jsessionId},(function(n){var r=Promise.resolve();Array.isArray(n)&&n.forEach((function(e){r=r.then((function(){if("string"==typeof e.play&&"object"==typeof e.track){var t,n=e.play;return e.track.name&&(t=e.track.name),e.track.ensemble&&(t=e.track.ensemble+(t?" - "+t:"")),t||(t="noname"),C.getClientHash(n).then((function(r){n+="&clientHash="+r,i.push({url:n,duration:e.track.duration||0,title:t,filename:F.a.modify(t)+".mp3"})}))}})).catch((function(t){se.debug("process item error",e,t)}))})),r.then((function(){t(a-e.length,a),s()}))}))}}(),{abort:function(){r=!0}}},getAudioListLinksPopup:function(e,t,n){var r,i=this.getPopup(t,"audio",(function(){r&&r.abort()}));i.onPrepare(o.a.i18n.getMessage("download")+" ..."),r=this.getAudioLinksViaAPI(e,i.onProgress,(function(e){0!==e.length?(i.onReady(),n(e)):i.onError(o.a.i18n.getMessage("vkMp3LinksNotFound"))}))},getAudioLinksIds:function(e){return Promise.resolve().then((function(){for(var t,n=e.querySelectorAll([".m_portal_track",".m_c_tr",".mus-tr_i"]),r=[],i=0;t=n[i];i++){var o=C.getTrackId(t);for(var a in o)r.push(a)}return r}))},getNewAudioLinksIds:function(e){var t=V()(e);if(!t||document.querySelector(t)===e)return T()([t],'function(nodePath){var result=null;try{var container=nodePath===""?document:document.querySelector(nodePath);var ids=[].slice.call(container.querySelectorAll(["wm-track","wm-track2"])).reduce(function(result,node){try{var getTrack=function getTrack(){if(node&&node.props&&node.props.track){return node.props.track}if(node&&node.model&&node.model._data.get("track")){return node.model._data.get("track")}throw new Error("getNewAudioLinksIds")};var track=getTrack();if(track){result.push(track.id)}}catch(err){// console.error(\'getNewAudioLinksIds error\', err);\n}return result},[]);result={result:ids}}catch(err){result={error:{message:err.message,stack:err.stack}}}if(result.error){throw new Error(result.error.message)}else{return result.result}}')},getAudioFromWall:function(e){return Object(i.a)(h.a.mark((function t(){var n,r;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.querySelector(".media-layer.__active"),r=(e=n||e).querySelectorAll(".track-with-cover_cnt"),t.abrupt("return",Array.from(r).map((function(e){return e.closest(".track-with-cover").dataset.trackId})));case 3:case"end":return t.stop()}}),t)})))()},getAudioLinks:function(e,t,n){var i=this;return Promise.all([this.getAudioLinksIds(e),this.getNewAudioLinksIds(e),this.getAudioFromWall(e)]).then((function(e){var t;return(t=[]).concat.apply(t,Object(r.a)(e)).filter((function(e,t,n){return n.indexOf(e)===t}))})).then((function(e){i.getAudioListLinksPopup(e,t,n)}))},downloadMP3Files:function(){var e=C.getLayer()||C.getNewLayer()||document,t=C.getPlaylistName(e)||C.getNewPlaylistName(e);C.getAudioLinks(e,t,(function(e){u.downloadList.showBeforeDownloadPopup(e,{type:"audio",folderName:t})}))},showListOfAudioFiles:function(e){var t=C.getLayer()||C.getNewLayer()||document,n=C.getPlaylistName(t)||C.getNewPlaylistName(t);C.getAudioLinks(t,n,(function(t){t.length?e?u.playlist.popupPlaylist(t,n,!0):u.playlist.popupFilelist(t):alert(o.a.i18n.getMessage("vkMp3LinksNotFound"))}))}},M={requestMobileToken:function(e,t){var n=null;e.links.some((function(e){var t=e.url.match(/\/\/([^/]+)/);if(t=t&&t[1])return n=t,!0}));var r=function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open("POST",location.protocol+"//"+e+"/usr_login",!1),n.withCredentials=!0,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.onreadystatechange=function(){try{var e=JSON.parse(n.responseText);if(!e.vtkn||!e.ttl)return t();t({ttl:e.ttl,vtkn:e.vtkn})}catch(e){}},n.send()}))};T()((function(){var e=document.cookie&&document.cookie.match(/vdsig=([^;]+);/);if(e&&e[1])return e[1]})).then((function(i){if(i)return e.vtkn=i,t(e);var a=function(n){var r=n.ttl,i=n.vtkn;r&&i&&(b.videoToken={ttl:Date.now()+1e3*r,vtkn:i},e.vtkn=i,t(e))};o.a.isChrome||o.a.isFirefox?T()([n],r).then(a):r(n).then(a)}))},getMobileToken:function(e,t){if(e.vtkn)return t(e);var n=b.videoToken;return n&&n.expire>Date.now()?(e.vtkn=n.vtkn,t(e)):M.requestMobileToken(e,t)},wrapMobileLinks:function(e,t){M.getMobileToken(e,(function(e){if(!e||!e.vtkn)return t();e.action="getOkViaMobileWrapped",e.links.forEach((function(t){var n=/\?/.test(t.url)?"&":"?";t.url+=n+"vdsig="+e.vtkn})),t(e)}))},prepareResponse:function(e,t){var n=function(){t(o.a.i18n.getMessage("noLinksFound"))};if(!e||!e.links)return n();if(!c.showUmmyItem&&"getRutubeLinks"===e.action)return n();if("getOkViaMobile"===e.action)return M.wrapMobileLinks(e,(function(e){if(!e)return n();M.prepareResponse(e,t)}));var r=null;"getYoutubeLinks"===e.action?r="youtube":"getVimeoLinks"===e.action?r="vimeo":"getDailymotionLinks"===e.action?r="dailymotion":"getRutubeLinks"===e.action&&(r="rutube");var i;return i=r?u.popupMenu.prepareLinks[r](e.links,e.title):I.prepareLinks(e.links,e.title),t(i)},matchOpenGraph:function(e){if(e&&e.movie&&e.movie.contentId){var t=e.movie.contentId;if(-1!==t.indexOf("rutube.")&&c.showUmmyItem)return{action:"getRutubeLinks",links:[t]};if(-1!==t.indexOf("pladform")){var n=p()(t);return{action:"getPladformVideo",extVideoId:{playerId:n.pl,videoId:n.videoid}}}var r=u.embedDownloader.checkUrl(t);if(r)return r;var i=e.movie.poster;if("string"==typeof i){var o=(p()(i).url||i).match(/ytimg\.com\/vi\/([^\/]+)\//);if(o=o&&o[1])return{action:"getYoutubeLinks",extVideoId:o}}}},switchMetadataProvider:function(e){if(e&&e.provider&&e.movie)switch(e.provider){case"USER_YOUTUBE":if(e.movie.contentId)return{request:{action:"getYoutubeLinks",extVideoId:e.movie.contentId}};break;case"OPEN_GRAPH":var t=this.matchOpenGraph(e);if(t)return{request:t};break;case"LIVE_TV_APP":case"SLIDE_SHOW":case"LIVE_TV_ODKL":case"UPLOADED_ODKL":case"UPLOADED_ATTACHMENT":case"UPLOADED":case"PARTNER":case"YKL":if(e.videos&&e.movie.title)return{request:{action:"wrapMobileLinks",title:e.movie.title,links:e.videos}}}},getPlayerMetadata:function(e,t,n,r){var i={cmd:"videoPlayerMetadata",mid:e,rnd:Date.now()};r&&(i.mtId=t),_()({method:"POST",url:location.protocol+"//"+location.host+"/dk?"+ae.stringify(i),json:!0,localXHR:!0},(function(i,o,a){return i?!r&&t?void M.getPlayerMetadata(e,t,n,1):n():n(a)}))},getEmbed:function(e,t){var n=p()(e);if(!n.id||!n.sig)return t();var r="http://cdn-ok.com/video/get/?"+ae.stringify({id:n.id,format:1,sig:n.sig,sig2:"oldRotator"});o.a.sendMessage({action:"getData",url:r},(function(e){return e&&y()(e,[/"sourceType":/,/"sourceId":/]).some((function(e){if("youtube"===e.sourceType&&e.sourceId)return t({request:{action:"getYoutubeLinks",extVideoId:e.sourceId}}),!0}))?void 0:t()}))},readMetadata:function(e,t,n){if(e.movie&&/cdn-ok\.com\/embed/.test(e.movie.contentId))return this.getEmbed(e.movie.contentId,(function(e){if(!e||!e.request)return t();o.a.sendMessage(e.request,(function(e){M.prepareResponse(e,t)}))}));if(!n&&e.movie&&e.movie.movieId){var r=e.movie.link&&p()(e.movie.link,{sep:"&amp;"})["st.vpl.sid"];return this.getPlayerMetadata(e.movie.movieId,r,(function(n){M.readMetadata(n||e,t,1)}))}var i=this.switchMetadataProvider(e);return i?i.links?t(i.links):void(i.request?"getRutubeLinks"===i.request.action?M.prepareResponse(i.request,t):"wrapMobileLinks"===i.request.action?M.wrapMobileLinks(i.request,(function(e){M.prepareResponse(e,(function(e){t(e,1)}))})):o.a.sendMessage(i.request,(function(e){M.prepareResponse(e,t)})):t()):t()},prepareVideoUrl:function(e,t){var n=e.split("?"),r=t.split("?"),i=Object(v.a)(r,2),o=i[0],a=i[1];if(!n[1]||!a)return t;if(n=new URLSearchParams(n[1]),a=new URLSearchParams(a),!n.has("type"))return t;var s=n.get("type");return a.has("st.mq")&&a.set("st.mq",s),a.has("st.hls")&&a.set("st.hls","off"),o+"?"+a.toString()},getMobileVideoSrc:function(e){return e&&e.dataMobile&&e.dataMobile.videoSrc?Promise.resolve(e.dataMobile.videoSrc):e&&e.movie&&e.movie.id?Object(G.a)({action:"getOkVideoUrlFromMobile",videoUrl:location.href,videoId:e.movie.id}):Promise.resolve(void 0)},prepareHlsLinks:function(e){var t=e.movie,n=t&&t.title?t.title:e.compilationTitle||document.title,r=new RegExp("RESOLUTION=\\d+x(\\d+)\\n(https.*?)\\n","g");return ne()(e.hlsManifestUrl).then((function(e){return Object(re.matchAll)(e.body,r)})).then((function(e){return e.map((function(e){return{title:n,ext:"mp4",format:"MP4",quality:parseInt(e[1]),href:"#mux",forceDownload:!1,noSize:!0,func:function(t){t.preventDefault(),$()(Object(ee.createElement)(K.a,{filename:F.a.modify(n)+".mp4",format:"mp4",sources:[{url:e[2],format:"mp4"}],convertType:"hls"}),"sf-muxer-parent")}}}))}))},loadLinks:function(e,t){var n=b.linkCache,r=JSON.stringify(e),i=n[r];if(i)return t.update(i);var a=function(e,i){var a=function(){t.update(o.a.i18n.getMessage("noLinksFound"))};return e?e.hlsManifestUrl?M.prepareHlsLinks(e).then((function(e){t.update(e)}),(function(e){a(),se.error("hls error",e)})):void M.readMetadata(e,(function(e,i){if(!e)return a();Array.isArray(e)&&!e.length&&(i=1),i||(n[r]=e),t.update(e)}),i):a()};e.metadata?a(e.metadata):e.request?"getOkMetadata"===e.request.action?o.a.sendMessage(e.request,a):"getPlayerMetadata"===e.request.action?this.getPlayerMetadata(e.request.extVideoId,e.request.sid,(function(e){a(e,1)})):"getRutubeLinks"===e.request.action?M.prepareResponse(e.request,(function(e){t.update(e)})):o.a.sendMessage(e.request,(function(e){M.prepareResponse(e,(function(e){t.update(e)}))})):t.update(o.a.i18n.getMessage("noLinksFound"))},appendLinkUnderVideo:function(e,t){Object(ie.a)({category:"append",subcategory:"ok",event:"b"});var n=e.querySelector(".vp-layer-info_cnt");if(n){var r=n.querySelector(".savefrom_ok_download"),i=L.a.create("span",{className:"savefrom_ok_download",style:{marginLeft:"12px"},on:[["click",function(e){e.stopPropagation()}],["mousedown",function(e){e.stopPropagation()}],["keydown",function(e){e.stopPropagation()}]],append:[L.a.create("a",{href:"#",text:o.a.i18n.getMessage("download"),on:["click",function(n){if(n.preventDefault(),O.a.onRemoveEvent(i,b.hideMenu),b.contextMenu&&b.contextMenu.isShow){if(b.contextMenu.button===this)return void b.hideMenu();b.hideMenu()}var r=b.contextMenu=u.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+"...","sf-single-video-menu",{parent:e});M.loadLinks(t,r)}]})]});r&&r.parentNode?(r.parentNode.replaceChild(i,r),r=null):n.appendChild(i)}},appendDownloadMobileVideo:function(e){var t={float:"right",display:"flex",alignItems:"center",width:"fit-content"},n=e.querySelector(".widget-list_infos"),r=e.querySelector("[data-video]");if(n&&r){n.querySelector(".widget-list_actors, .ic")||(t.position="absolute",t.top="-7px",t.right="0");var i=M.createMobileDownloadContainer(r,{containerStyle:t,menuClass:"sf-mobile-video-menu"});n.appendChild(i)}},createMobileDownloadContainer:function(e,t){var n=t.containerStyle,r=t.menuClass,i=L.a.create("div",{style:n||{},append:[u.svg.getSvg("download","#f1bc7f",14,14),L.a.create("a",{href:"#",text:o.a.i18n.getMessage("download"),style:{marginLeft:"4px"}})],on:["click",function(t){t.preventDefault(),t.stopPropagation(),b.contextMenu=u.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+" ...",r,{parent:i||t.target}),M.getMobilePlayerOptions(e).then((function(e){if(!e)return b.contextMenu.update(o.a.i18n.getMessage("noLinksFound"));M.loadLinks(e,b.contextMenu)}))}]});return i},getPlayerOptions:function(e){var t=S()(e,"[data-player-element-id][data-options]"),n=t&&t.dataset.options;if(n){try{n=JSON.parse(n)}catch(e){}var r=n.flashvars;if(r){if(r.metadata){var i=null;try{i=JSON.parse(r.metadata)}catch(e){}if(i)return{metadata:i}}if(r.metadataUrl)return{request:{action:"getOkMetadata",url:decodeURIComponent(r.metadataUrl)}};var o=n.url;if(o){var a=u.embedDownloader.checkUrl(o);if(a)return{request:a};if(-1!==o.indexOf("rutube."))return{request:{action:"getRutubeLinks",links:[o]}}}}}},getMobilePlayerOptions:function(e){return Object(i.a)(h.a.mark((function t(){var n,r,i,o,a;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{n=JSON.parse(e.dataset.video)}catch(e){}if(n&&n.movieId?(r=n.movieId).indexOf("_")&&(r=r.split("_")[0]):r=new URLSearchParams(location.search).get("st.discId"),r){t.next=4;break}return t.abrupt("return",void se.error("getMobilePlayerOptions. video id not found"));case 4:return t.next=6,Object(G.a)({action:"okRequestVideoPage",videoId:r});case 6:if(i=t.sent){t.next=9;break}return t.abrupt("return",void se.error("getMobilePlayerOptions. videoPage fetch failed"));case 9:if(o=J()(i,"").querySelector(".vp_video .vid-card_cnt")){t.next=12;break}return t.abrupt("return",void se.error("getMobilePlayerOptions. Video dataset not found"));case 12:return a=M.getPlayerOptions(o),t.abrupt("return",(a.metadata?a.metadata.dataMobile=n:a.metadata={dataMobile:n},a));case 14:case"end":return t.stop()}}),t)})))()},catchPopup:function(){var e=null;this.lastWaitEl&&this.lastWaitEl.abort(),this.lastWaitEl=this.waitEl((function(){if(e=document.querySelector(".vp_video .vid-card_cnt"))return e}),(function(){var t=S()(e,".vp_video");if(t){var n=M.getPlayerOptions(e);n&&M.appendLinkUnderVideo(t.parentNode,n)}}))},rmBtn:function(){for(var e,t=document.querySelectorAll(".savefrom_ok_download"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},lastWaitEl:null,waitEl:function(e,t,n){var r,i=Object.assign({abort:function(){clearInterval(i.timeout),i.isAborted=!0}},{delay:500,repeat:12,isAborted:!1,timeout:null},n);return(r=e())?(t(r),i):(function n(){i.repeat--,i.timeout=setTimeout((function(){if(!i.isAborted)return(r=e())?t(r):void(!i.isAborted&&i.repeat&&n())}),i.delay)}(),i)}},I={btnClassName:"sf-feed-dl-btn",style:void 0,thumbClassName:"vid-card_img",prepareLinks:function(e,t){if(!e||!e.length)return o.a.i18n.getMessage("noLinksFound");if("string"==typeof e)return e;t=t||"";for(var n,r,i,a,s=[],l=0,c=e.length;l<c;l++){var d=e[l];if("object"==typeof d&&d.url){a=d.url;var f=d.ext;f||(f="MP4",-1!==d.url.indexOf(".mp4")&&(f="MP4"),-1!==a.indexOf(".flv")&&(f="FLV"),-1!==d.url.indexOf(".mov")&&(f="MOV"),-1!==d.url.indexOf(".mpg")&&(f="MPG")),i=(f=f.toLowerCase()).toUpperCase(),r=d.subname||d.quality||d.name||f}else{f="MP4",-1!==(a=d).indexOf(".mp4")&&(f="MP4"),-1!==a.indexOf(".flv")&&(f="FLV"),-1!==a.indexOf(".mov")&&(f="MOV"),-1!==a.indexOf(".mpg")&&(f="MPG"),i=(f=f.toLowerCase()).toUpperCase(),r=f;var p=u.getMatchFirst(e[l],/\.(\d+)\.mp4/i);p&&(r=p)}var h=["mobile","lowest","low","sd","hd","full","quad","ultra"].indexOf(r);-1!==h&&(r=[144,240,360,480,720,1080,1440,"4K"][h]),n={href:a,title:d.title?d.title:t,ext:f,format:i,quality:r,forceDownload:!0},s.push(n)}return s},getPosterData:function(e){var t=S()(e,"[hrefattrs]"),n=t&&t.getAttribute("hrefattrs");if(n){var r=p()(n,{params:!0}),i=r["st.vpl.sid"],o=r["st.vpl.id"];if(!o){var a=S()(e,"[data-id]");if((o=a&&a.dataset.id)&&"c"===o[0])return}if(o&&"OK_"===o.substr(0,3)&&(o=u.getMatchFirst(o,/OK_\d+_(\d+)/)),o)return{request:{sid:i,action:"getPlayerMetadata",extVideoId:o}}}},onBtnClick:function(e){e.preventDefault(),e.stopPropagation();var t=JSON.parse(this.dataset.sfContext);if(O.a.onRemoveEvent(this,b.hideMenu),b.contextMenu&&b.contextMenu.isShow){if(b.contextMenu.button===this)return void b.hideMenu();b.hideMenu()}var n=document.querySelector("#mtLayer.__active #mtLayerMain > div");n||(n=document.getElementById("vv_content")),n||x()(this,".js-messages-list "+this.tagName)&&(n=d()(this,"js-messages-list"))&&!n.offsetParent&&(n=null),!n&&x()(this,"#mainContent "+this.tagName)&&(n=S()(this,"#mainContent"));var r=b.contextMenu=u.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+" ...","sf-popupMenu",{parent:n||void 0});Object(ie.a)({category:"download",subcategory:"ok",event:"video"}),M.loadLinks(t,r)},onImgOver:function(e){var t=x()(this,".mdialog_chat_window .d_comment_text_w "+this.tagName),n=null;if(t?n=d()(this,"d_comment_text_w"):x()(this,".video-card > .video-card_img-w "+this.tagName)?n=d()(this,"video-card_img-w"):this.classList.contains("vid-card_cnt")?n=this:x()(this,".vid-card_cnt "+this.tagName)&&(n=d()(this,"vid-card_cnt")),n&&!n.getElementsByClassName(I.btnClassName).length&&!n.querySelector(".vid-card_live.__active")){var r=x()(this,".vid-card_img__link "+this.tagName),i=M.getPlayerOptions(this);if(i||(i=I.getPosterData(this)),i){i.isChat=t;var a={};t&&Object.assign(a,{left:"15px",top:"15px"}),r&&Object.assign(a,{backgroundColor:"#454648",borderColor:"rgb(53, 53, 53)"});var s=L.a.create("i",{class:[I.btnClassName,"sf-video-feed-bind-on-insert"],style:a,data:{sfContext:JSON.stringify(i)},title:o.a.i18n.getMessage("download")});s.appendChild(L.a.create(u.svg.getSvg("download"),{style:{width:"12px",height:"12px",margin:"4px"}})),n.appendChild(s)}}},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=L.a.create("style",{text:w()({"div > .sf-feed-dl-btn":{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",top:0,left:0,zIndex:1,cursor:"pointer",backgroundColor:"#F8F8F8"},"div > .sf-feed-dl-btn svg path":{fill:"#eb722e"},"div > .sf-feed-dl-btn:hover svg path":{fill:"#00B75A"},"div > .sf-feed-dl-btn:active":{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"},"div:hover > .sf-feed-dl-btn":{display:"block"},".sf-audio.savefrom_ok_download":{display:"none",backgroundImage:"url("+u.svg.getSrc("download","#ee8208")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"16px",opacity:.5,marginLeft:"11px"},".sf-audio.sf-audio-2.savefrom_ok_download":{margin:"0 6px"},".sf-audio.savefrom_ok_download:hover":{opacity:1},"wm-track:hover .sf-audio":{display:"flex !important"},"wm-track2:hover .sf-audio":{display:"flex !important"},"#sf-mobile-video-menu":{left:"auto !important",right:"0"}})}),document.head.appendChild(this.style))},disable:function(){this.style&&this.style.parentNode&&this.style.parentNode.removeChild(this.style)},rmBtn:function(){for(var e,t=document.querySelectorAll(".sf-feed-dl-btn"),n=0;e=t[n];n++)e.parentNode.removeChild(e);var r=g()("sfSkip2"),i=document.querySelectorAll("["+r+"]");for(n=0;e=i[n];n++)e.removeAttribute(r)}},E={style:null,rmCurrentPhotoBtn:function(e){for(var t,n=void 0,r=document.querySelectorAll(".sf-dl-current-photo-btn"),i=0;t=r[i];i++)e&&e.contains(t)?n=t:t.parentNode.removeChild(t);return n},addDlCurrentPhotoBtn:function(e){if(!this.rmCurrentPhotoBtn(e)){var t=b;e.appendChild(L.a.create("a",{class:"sf-dl-current-photo-btn",href:"#",title:o.a.i18n.getMessage("download"),on:["click",function(n){if(n.stopPropagation(),n.preventDefault(),t.contextMenu&&t.contextMenu.isShow&&t.contextMenu.button===this){if(t.contextMenu.button===this)return void t.hideMenu();t.hideMenu()}var r=function e(t){18!==t.keyCode&&17!==t.keyCode&&(i.hide(),document.removeEventListener("keydown",e))},i=t.contextMenu=u.popupMenu.quickInsert(this,o.a.i18n.getMessage("download")+" ...","photoDlMenu",{parent:e,onShow:function(){document.addEventListener("keydown",r)},onHide:function(){document.removeEventListener("keydown",r)}}),a=[],s=e.querySelector("img.photo-layer_img");if(s){var l=s.dataset.fsSrc||s.dataset.nfsSrc||s.src;l&&a.push({href:l,title:"photo_"+parseInt(Date.now()/1e3),quality:o.a.i18n.getMessage("download"),format:" ",ext:"jpg",forceDownload:!0,isBlank:!0,func:function(){i.hide()}})}if(s||(s=e.querySelector("div.gif[data-gifsrc]")),s){var c={webmsrc:"webm",mp4src:"mp4",gifsrc:"gif"};Object.keys(c).forEach((function(e){var t=s.dataset[e];if(t){var n=c[e];a.push({href:t,title:"gif_"+parseInt(Date.now()/1e3),quality:o.a.i18n.getMessage("download"),format:n.toUpperCase(),ext:n,forceDownload:!0,isBlank:!0,func:function(){i.hide()}})}}))}0!==a.length?i.update(a):i.update(o.a.i18n.getMessage("noLinksFound"))}],append:[L.a.create(u.svg.getSvg("download"),{style:{width:"12px",height:"12px",margin:"4px"}})]}))}},injectStyle:function(){E.style?E.style.parentNode||document.head.appendChild(E.style):(E.style=L.a.create("style",{text:w()({"div > .sf-dl-current-photo-btn":{display:"none",border:"1px solid #F8F8F8",width:"20px",height:"20px",padding:0,position:"absolute",backgroundColor:"#F8F8F8",top:"73px",left:"90px",zIndex:100,cursor:"pointer"},"div > .sf-dl-current-photo-btn svg path":{fill:"#eb722e"},"div > .sf-dl-current-photo-btn:hover svg path":{fill:"#00B75A"},"div > .sf-dl-current-photo-btn:active":{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"},"div:hover > .sf-dl-current-photo-btn":{display:"block"}})}),document.head.appendChild(E.style))},addCurrentDlBtn:function(e){if("1"!==e.dataset.sfSkip2){e.dataset.sfSkip2="1";var t=e.querySelector("img.photo-layer_img");t&&(t.dataset.fsSrc||t.dataset.nfsSrc||t.src||(t=null)),t||(t=e.querySelector("div.gif[data-gifsrc]")),t&&this.addDlCurrentPhotoBtn(e)}}},N=new(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,e),this.options=t,this.tooltip=null,this.init()}return Object(s.a)(e,[{key:"init",value:function(){var e=this;this.tooltip=L.a.create("div",{class:"sf-tooltip",style:Object.assign({position:"absolute",display:"none",zIndex:9999,opacity:0,transition:"opacity 0.2s",whiteSpace:"nowrap",fontSize:"12px",color:"#111",fontFamily:"arial, verdana, sans-serif, Lucida Sans"},this.options.style),on:["mouseenter",function(t){e.hide()}]}),document.body.appendChild(this.tooltip)}},{key:"updatePos",value:function(e){var t=u.getPosition(e),n=u.getSize(this.tooltip);this.tooltip.style.top=t.top+this.options.top-n.height+"px";var r=t.left+parseInt(this.options.width/2,10)-parseInt(n.width/2,10),i=document.body.clientWidth+document.body.scrollLeft;i<r+n.width&&(r=i-n.width),this.tooltip.style.left=r+"px"}},{key:"show",value:function(e){var t=this;this.tooltip.style.display="block",setTimeout((function(){t.updatePos(e),t.tooltip.style.opacity=1}))}},{key:"hide",value:function(){this.tooltip.style.opacity=0,this.tooltip.style.display="none"}},{key:"destroy",value:function(){this.tooltip.parentNode&&(this.tooltip.parentNode.removeChild(this.tooltip),this.tooltip=null)}}]),e}())({top:-12,width:16,style:{backgroundColor:"#fff",border:"1px solid #ccc",color:"rgb(48, 48, 48)",fontSize:"12px",padding:"3px"}})}))},103:function(e,t){e.exports=n(102)},54:function(e,t){e.exports=n(104)},86:function(e,t){e.exports=n(33)}})},function(e){!function(e){function t(t){for(var r,a,s=t[0],l=t[1],u=t[2],d=0,f=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(c&&c(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={6:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([104,0]),n()}({104:function(e,t,n){n.r(t);var r=n(0),i=n(11),o=n(10),a=n(26),s=n.n(a),l=n(24),u=n.n(l),c=n(18),d=n.n(c),f=n(9),p=n.n(f),h=n(38),m=n.n(h),g=n(3),v=n.n(g),b=n(2),y=n.n(b),A=n(5),w=n.n(A),k=n(13),x=n.n(k),C=n(8),S=n.n(C),M=n(16),_=n.n(M),I=n(7),O=n(12),E={position:"absolute",top:"38px",right:"14px",background:"white",padding:"4px 9px",color:"#3F3F3F",fontWeight:"bold",textDecoration:"none",border:"1px solid #cecece"};x.a.isSingle()&&Object(o.b)("mailru",(function(e,t){var n=Object(i.a)(t),o=t.preferences,a=o.moduleMailru?1:0,l=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"),c=r.a.isChrome||r.a.isFirefox||r.a.isGM&&r.a.isTM;r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:a,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return f.changeState(t.state)}"updatePreferences"!==t.action?a&&("downloadMP3Files"===t.action&&(c?b.downloadMP3Files():b.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&b.showListOfAudioFiles(!0)):Object.assign(o,t.preferences)})),a&&setTimeout((function(){f.run()}));var f={contextMenu:null,run:function(){a=1,b.injectStyle(),S.a.isAvailable()&&this.mutationMode.enable()},changeState:function(e){a=e,b.rmBtn(),A.rmBtn(),this.mutationMode.stop(),this.hideMenu(),e&&this.run()},hideMenu:function(){f.contextMenu&&(f.contextMenu.hide(),f.contextMenu=null)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=d()(e),r=document.querySelectorAll("["+n+"]"),i=0;t=r[i];i++)t.removeAttribute(n)}))},wrapAudioOnMouseOver:function(){if(a&&!(this.dataset.sfSkip>0)){this.dataset.sfSkip="1";var e=JSON.parse(this.dataset.sfContext);b.onTrackOver(this,e.type)}},enable:function(){if(this.observer)return this.observer.start();var e=function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=A.getVideoId(t);if(r){var i=s()(t,"b-video__left");if(i){var o=i.querySelector(".b-video__info-time");o&&A.insertBtnInPopup(r,o)}}}},t=function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=A.getVideoId(t);if(r){var i=s()(t,"sp-video__item-page");if(i){var o=i.querySelector(".sp-video__item-page__info__additional");o&&A.insertBtnInPage(r,o,1)}}}},i=function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var r=s()(t,"sp-video__item-page-new__video-content"),i=r&&r.querySelector(".sp-video__item-page-new__actions"),o=r&&A.getVideoContentVideoId(r);i&&o&&A.insertBtnInPage(o,i,2)}};this.observer=new S.a({queries:[{css:".jp__track",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfContext=JSON.stringify({type:0}),v.a.one(t,"mouseenter",f.mutationMode.wrapAudioOnMouseOver)}},{css:".song-item",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfContext=JSON.stringify({type:1}),v.a.one(t,"mouseenter",f.mutationMode.wrapAudioOnMouseOver)}},{css:".b-video__left .b-video__container object",is:"added",callback:e},{css:".b-video__left .b-video__container video",is:"added",callback:e},{css:".sp-video__item-page .sp-video__item-page__video-wrapper object",is:"added",callback:t},{css:".sp-video__item-page .sp-video__item-page__video-wrapper video",is:"added",callback:t},{css:".sp-video__item-page-new .sp-video__item-page-new__video-content video",is:"added",callback:i},{css:".sp-video__item-page-new .sp-video__item-page-new__video-content object",is:"added",callback:i},{css:".b-photo",is:"added",callback:function(e){e.added.forEach((function(e){var t=e.querySelector(".b-photo__container"),i=document.createElement("a");for(var o in E)i.style[o]=E[o];var a=n.svg.getSvg("download","#2665a9","13");a.style.float="left",a.style.margin="2px 5px 0 0";var s=document.createElement("span");s.innerText=r.a.i18n.getMessage("download"),i.appendChild(a),i.appendChild(s),t.appendChild(i),i.addEventListener("click",(function(e){e.preventDefault();var r=t.querySelector(".b-photo__image");if(r&&r.src){var i=w.a.modify(r.src.split("/").pop());n.download(i,r.src)}}))}))}},{css:"."+v.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)v.a.onRemoveListener(t)}}]})}}},h={tooltip:void 0,updatePos:function(e,t){var r=n.getPosition(e),i=n.getSize(this.tooltip);this.tooltip.style.top=r.top+t.top-i.height+"px";var o=r.left+parseInt(t.width/2)-parseInt(i.width/2),a=document.body.clientWidth+document.body.scrollLeft;a<o+i.width&&(o=a-i.width),this.tooltip.style.left=o+"px"},show:function(e,t){var n=this;return void 0!==this.tooltip?this.hide():(this.tooltip=y.a.create("div",{class:"sf-tooltip",style:Object.assign({position:"absolute",display:"none",zIndex:9999,opacity:0,transition:"opacity 0.2s",whiteSpace:"nowrap",fontSize:"12px",color:"#111",fontFamily:"arial, verdana, sans-serif, Lucida Sans"},t.style),on:["mouseenter",function(e){n.hide()}]}),document.body.appendChild(this.tooltip)),this.tooltip.style.display="block",setTimeout((function(){n.updatePos(e,t),n.tooltip.style.opacity=1})),this.tooltip},hide:function(){this.tooltip.style.opacity=0,this.tooltip.style.display="none"}},g=function(){var e=document.title,t=e.indexOf("-");return-1!==t&&(e=e.substr(0,t-1)),w.a.modify(e)},b={className:"sf-audio-panel",lastRow:null,style:void 0,secondsFromDuration:function(e){var t=e.split(":").map((function(e){return parseInt(e)}));return 60*t[0]+t[1]},getTitle:function(e){var t=e.querySelector(".jp__track-fullname"),n=e.querySelector(".jp__track-performer");if(null===n&&null!==(n=e.querySelector(".jp__track-name-text"))&&null!==(n=n.querySelector("a:not(.jp__track-fullname)"))){var r=t;t=n,n=r}if(null!==n?(n=n.textContent.trim())||(n="noname"):n="",n?n+=" - ":n="",null!==t){var i=n+(t=t.textContent);return i.replace(/[\r\n\t\s]+/gim," ").replace(/\s+/g," ").trim()}},getTitle2:function(e){var t=e.querySelector(".title"),n=e.querySelector(".name")||e.querySelector(".b-music__songs__row__body__inner__title__name__link"),r=e.querySelector(".author")||e.querySelector(".b-music__songs__row__body__inner__title__author");return n&&((n=n.textContent).length||(n="noname")),r&&(r=r.textContent),(n&&r?r+" - "+n:t?t.textContent:"unknown").replace(/[\r\n\t\s]+/gim," ").replace(/\s+/g," ").trim()},getMp3UrlList:function(e){var t=1,n=document.querySelectorAll(".b-music__section__content__playlist-songs .song-item");0===n.length&&(n=document.querySelectorAll(".jp__track"),t=0);for(var r,i=[],o={},a=function(e){s=s.then((function(){return new Promise((function(n){b.getUrl(e,t,n)}))})).then((function(n){if(n&&!o[n]){o[n]=1;var r="",a="";if(0===t?(r=e.querySelector(".jp__track-duration-total"),a=b.getTitle(e)):(r=e.querySelector(".time"),a=b.getTitle2(e)),a){var s=w.a.modify(a)+".mp3",l=r&&b.secondsFromDuration(r.textContent);i.push({url:n,filename:s,title:a,duration:l})}}})).catch((function(e){}))},s=Promise.resolve(),l=0;r=n[l];l++)a(r);s.then((function(){e(i)}))},showListOfAudioFiles:function(e){b.getMp3UrlList((function(t){0!==t.length&&(e?n.playlist.popupPlaylist(t,g(),!0):n.playlist.popupFilelist(t))}))},downloadMP3Files:function(){b.getMp3UrlList((function(e){0!==e.length&&n.downloadList.showBeforeDownloadPopup(e,{type:"audio",folderName:g()})}))},onDlBtnOver:function(e){if(!r.a.isSafari){var t=this.dataset.duration;if("mouseenter"===e.type){var i,o=this,a=h.show(o,i={top:-14,width:16,style:{backgroundColor:"#fff",border:"1px solid #ccc",color:"rgb(48, 48, 48)"}});return o.dataset.bitrate?(a.style.padding="2px 5px 3px",void(a.textContent=" ("+o.dataset.size+" ~ "+o.dataset.bitrate+")")):o.dataset.size?(a.style.padding="2px 5px 3px",void(a.textContent=" ("+o.dataset.size+")")):(a.style.padding="2px 2px 0 2px",a.textContent="",a.appendChild(y.a.create("img",{src:"//my9.imgsmail.ru/r/my/preloader_circle_16.gif",height:16,width:16})),void fetch(o.href,{method:"GET",credentials:"include"}).then((function(e){return e.headers.get("content-length")})).then((function(e){if(a.style.padding="2px 5px 3px",!e)return a.textContent=r.a.i18n.getMessage("getFileSizeFailTitle"),void h.updatePos(o,i);var s=n.sizeHuman(e,2);if(t){var l=Math.floor(e/t/125)+" "+r.a.i18n.getMessage("kbps");o.dataset.bitrate=l,o.dataset.size=s,a.textContent=" ("+s+" ~ "+l+")"}else o.dataset.size=s,a.textContent=" ("+s+")";h.updatePos(o,i)})))}h.hide()}},getUrlViaBridge:function(e,t){void 0===b.getUrlViaBridge.index&&(b.getUrlViaBridge.index=0);var n="sf-bridge-item-"+b.getUrlViaBridge.index;b.getUrlViaBridge.index++,e.classList.add(n);var r={className:n};_()([r],(function(e){var t=e.className,n=document.getElementsByClassName(t)[0];n.classList.remove(t);var r=jQuery(n).data();if(r&&r.item)return r.item.url})).then((function(e){return t(e)}))},getUrlById:function(e){return _()([e],'function(id){var url="";var findUrl=function findUrl(items,id){var url="";items.some(function(item){if(item._attr&&item._attr.file===id){url=item._attr.url;return true}});return url};try{url=findUrl(APP.activePage.collection.items,id)}catch(err){}try{if(!url){url=findUrl(APP.player.collection.items,id)}}catch(err){}return url}').then((function(e){if(!e)throw new Error("Url is not found");return/^\/\//.test(e)&&(e="https:"+e),e}))},getUrl:function(e,t,n){var r=e.dataset.url;if(r)return n(r);if(0===t){var i=e.querySelector("a.jp__track-fullname-link");if(null===i)return n();i=i.href;var o=u()(i);return o.file&&o.uid?n("https://music.my.mail.ru/file/"+o.file+".mp3?u="+encodeURIComponent(o.uid)):b.getUrlViaBridge(e,(function(t){t&&(e.dataset.url=t),n(t)}))}if(1===t){var a=e.dataset.file;return b.getUrlById(a).then((function(e){n(e)}),(function(){n("https://music.my.mail.ru/file/"+a+".mp3")}))}},onDlBtnClick:function(e){e.stopPropagation(),n.downloadOnClick(e)},getDlLink:function(e,t,n){return y.a.create("a",{data:{duration:t||""},href:e,style:{position:"relative",display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"},download:w.a.modify(n+".mp3"),on:[["mouseenter",b.onDlBtnOver],["mouseleave",b.onDlBtnOver],["click",this.onDlBtnClick]]})},addDownloadPanelNew:function(e,t){if(Object(I.a)({category:"append",subcategory:"ma",event:"b"}),t){var n=b.getTitle2(e);if(n){var r=e.querySelector(".time"),i=r&&b.secondsFromDuration(r.textContent),o=this.getDlLink(t,i,n),a=y.a.create("div",{class:[b.className,"type-2"],append:[o],on:[["mouseover",function(e){if(l){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(O.showTooltip)(a,{defaultWidth:400,defaultHeight:60},{});Object(O.hideTooltip)(a,{defaultWidth:400,defaultHeight:60},{})}}]]}),s=e.querySelector(".icons");if(s)s.appendChild(a);else{var u=e.querySelector(".b-music__songs__row__body__inner__controls");u&&(o.classList.add(this.className+"-btn"),y.a.create(a,{class:[this.className,"type-3"],style:{background:"none",verticalAlign:"top"},append:[o]}),u.appendChild(a))}}}},addDownloadPanel:function(e,t){var n=e.querySelector(".jp__track-duration-total");if(null!==n&&void 0!==t){var r=b.getTitle(e);if(r){n=b.secondsFromDuration(n.textContent);var i=y.a.create("div",{class:[b.className,"type-0"],append:[this.getDlLink(t,n,r)]}),o=e.querySelector(".jp__track-management");o&&(o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i))}}},onTrackOver:function(e,t){0===e.getElementsByClassName(b.className).length&&b.getUrl(e,t,(function(n){1===t?b.addDownloadPanelNew(e,n):b.addDownloadPanel(e,n)}))},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=y.a.create("style",{text:p()([{selector:"."+this.className,style:{display:"none",left:"22px",backgroundImage:"url("+n.svg.getSrc("download","#168DE2")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"16px"}},{selector:"."+this.className+"-btn",style:{backgroundImage:"url("+n.svg.getSrc("download","#168DE2")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"16px"}},{selector:".jp__track:hover ."+this.className,style:{display:"block",opacity:.5}},{selector:".jp__track:hover ."+this.className+".type-0",style:{display:"inline-block",marginLeft:"-16px",position:"relative",left:"-2px"}},{selector:".jp__track.jp__track-plays ."+this.className,style:{left:"-18px"}},{selector:"."+this.className+":hover",style:{opacity:"1 !important"}},{selector:"."+this.className+".type-2",style:{marginRight:"5px",marginLeft:"5px"}},{selector:".song-item:hover ."+this.className+".type-2",style:{display:"inline-block",opacity:.5}},{selector:".b-music__section__content--songs ."+this.className+".type-3",style:{marginTop:"18px"}},{selector:".b-music__section__content--songs .b-music__songs--inline ."+this.className+".type-3",style:{marginTop:"9px"}}])}),document.head.appendChild(this.style))},rmBtn:function(){b.style&&(b.style.parentNode.removeChild(b.style),b.style=void 0);for(var e,t=document.querySelectorAll("."+b.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)}},A={btnIndex:0,domCache:{},className:"sf-video-btn",prepareLinks:function(e){for(var t,n=[],r=0;t=e[r];r++){var i=t.url,o="FLV";-1!==i.indexOf(".mp4")&&(o="MP4"),-1!==i.indexOf(".mov")&&(o="MOV"),-1!==i.indexOf(".mpg")&&(o="MPG"),t.quality||(t.quality="-?-");var a=t.quality.toUpperCase(),s=["1080P","720P","480P","360P","272P"].indexOf(a);-1!==s&&(a=["1080","720","480","360","272"][s]);var l=o.toLowerCase(),u={href:i,title:t.title,ext:l,format:o,quality:a,forceDownload:!0};n.push(u)}if(0!==n.length)return n},showLinkList:function(e,t,i){if(e||(e=r.a.i18n.getMessage("noLinksFound")),i){if(!f.contextMenu)return;return e.map((function(e){return e.noSize=r.a.isFirefox,e})),void f.contextMenu.update(e)}f.contextMenu&&f.contextMenu.isShow?f.hideMenu():f.contextMenu=n.popupMenu.quickInsert(t,e,"video-links-popup",{parent:s()(t,"b-video__main")})},appendPageBtn:function(e,t,i){if(null===e.querySelector("."+A.className)){Object(I.a)({category:"append",subcategory:"ma",event:"b"});var o=null,a=y.a.create("span",{class:A.className,append:[o=y.a.create("a",{data:{index:t},href:"#",on:["click",function(e){e.preventDefault(),v.a.onRemoveEvent(this,f.hideMenu),A.readDomCache(this.dataset.index,this)}]})]});if(1===i?(o.style.marginLeft="15px",o.textContent=r.a.i18n.getMessage("download")):2===i&&(y.a.create(o,{style:{fontSize:0,lineHeight:0,padding:"6px",boxShadow:"inset 0 0 0 1px #ccc",borderRadius:"3px",display:"inline-block"}}),o.appendChild(n.svg.getSvg("download","#666",18,18))),2===i)e.appendChild(a);else if(1===i){var s=e.lastChild;e.insertBefore(a,s),s=null}}},appendBtn:function(e,t){if(null===e.querySelector("."+A.className)){var n=void 0,i={};e.childNodes.length>1?n=e.childNodes[1]:(n=e.lastChild,i.marginRight="5px");var o=y.a.create("span",{class:e.lastChild.getAttribute("class")+" "+A.className,append:[y.a.create("a",{data:{index:t},text:r.a.i18n.getMessage("download"),href:"#",on:["click",function(e){e.preventDefault(),v.a.onRemoveEvent(this,f.hideMenu),A.readDomCache(this.dataset.index,this)}],style:i})]});e.insertBefore(o,n),n=null}},readDomCache:function(e,t){A.showLinkList(r.a.i18n.getMessage("download"),t);var i=function(){A.showLinkList(void 0,t,1)},a=function(e){if("getRutubeLinks"===e.action){if(!o.showUmmyItem)return i();A.showLinkList(n.popupMenu.prepareLinks.rutube(e.links),t,1)}else"getMailruLinks"===e.action?A.showLinkList(n.popupMenu.prepareLinks.mailru(e.links,e.title),t,1):A.showLinkList(A.prepareLinks(e.links),t,1)},s=A.domCache[parseInt(e)];if(s.links)a(s);else if(s.metadataUrl){var l=s.metadataUrl;/^\/\//.test(l)&&(l="http:"+l),m()({url:l,withCredentials:!0,json:!0,localXHR:!0},(function(e,t){var n;(n=e?null:t.body)&&"object"==typeof n?A.readMeta(n,(function(e){e.links?(s.links=e.links,s.action=e.action,a(s)):i()})):i()}))}else s.url?r.a.sendMessage({action:"getMailruLinks",extVideoId:s.url},(function(e){e.links?(s.title=e.title,s.links=e.links,s.action=e.action,a(s)):i()})):i()},readMeta:function(e,t){var n,i=[];if("UPLOADED"===e.provider){if(n=e.movie?e.movie.title:void 0,!e.videos)return t();e.videos.forEach((function(e){i.push({quality:e.name,url:e.url,title:n})}))}if("ugc"===e.provider){if(n=e.meta?e.meta.title:void 0,!e.videos)return t();e.videos.forEach((function(e){i.push({quality:e.key,url:e.url,title:n})}))}return"pladform"===e.provider?(n=e.meta?e.meta.title:void 0,void r.a.sendMessage({action:"getPladformVideo",extVideoId:{playerId:e.meta.playerId,videoId:e.meta.videoId}},(function(e){if(!e)return t();var r=e.links;if(!r)return t();r.forEach((function(e){"object"==typeof e&&void 0===e.title&&(e.title=n)})),t(e)}))):0===i.length?t():t({links:i})},getFlashVars:function(e){if(e){var t=e.querySelector('param[name="flashvars"]');if(t){var n=t.value,r=u()(n,{params:!0});return r.metadataUrl?{metadataUrl:r.metadataUrl}:void 0}}},matchUrl:function(e){var t=e.match(/\/([^\/]+)\/([^\/]+)\/video\/(.+).html/);return t||(t=e.match(/embed\/([^\/]+)\/([^\/]+)\/(.+).html/)),t},getVideoId:function(e){"OBJECT"!==e.tagName&&(e=e.querySelector('object[name="b-video-player"]'));var t=this.getFlashVars(e);if(t)return t;var n=document.querySelector('[data-type="album-json"]');if(n)try{if((n=JSON.parse(n.textContent)).signVideoUrl)return{metadataUrl:n.signVideoUrl}}catch(e){}var r=this.matchUrl(location.pathname);return r?{metadataUrl:"http://api.video.mail.ru/videos/"+r[1]+"/"+r[2]+"/"+r[3]+".json"}:void 0},getVideoContentVideoId:function(e){var t=null,n=e.querySelector(".sp-video__item-page-new__share__item[data-share-type][data-location]");return n&&(t={url:n.dataset.location}),t},insertBtnInPage:function(e,t,n){e.metadataUrl?(e.metadataUrl=decodeURIComponent(e.metadataUrl),A.domCache[A.btnIndex]={metadataUrl:e.metadataUrl}):A.domCache[A.btnIndex]=Object.assign({},e),A.appendPageBtn(t,A.btnIndex,n),A.btnIndex++},insertBtnInPopup:function(e,t){e.metadataUrl&&(e.metadataUrl=decodeURIComponent(e.metadataUrl),A.domCache[A.btnIndex]={metadataUrl:e.metadataUrl}),A.appendBtn(t,A.btnIndex),A.btnIndex++},rmBtn:function(){for(var e,t=document.querySelectorAll("."+A.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)}}}))}})},function(e){!function(e){function t(t){for(var r,a,s=t[0],l=t[1],u=t[2],d=0,f=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(c&&c(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={3:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([120,0]),n()}({105:function(e,t,n){n.r(t);var r=n(21),i=n.n(r)()(!1);i.push([e.i,"._3uxxj--container{display:flex;font-family:inherit;margin-right:10px;font-weight:600;color:#65676b;line-height:1.6;border-radius:4px;padding:5px 4px;cursor:pointer}._3uxxj--container:hover{background-color:rgba(0,0,0,.05)}.RBRWW--text{margin-left:4px}._3n3GJ--circle-container{padding:0;border-radius:100%;width:40px;height:40px;background:#e4e6eb}._3n3GJ--circle-container:hover{background-color:#fff}._3n3GJ--circle-container ._2M1Yu--logo{margin:0 auto;max-width:20px}",""]),i.locals={container:"_3uxxj--container",text:"RBRWW--text","circle-container":"_3n3GJ--circle-container",circleContainer:"_3n3GJ--circle-container",logo:"_2M1Yu--logo"},t.default=i},106:function(e,t){e.exports=n(105)},120:function(e,t,n){n.r(t);var i=n(0),o=n(11),a=n(10),s=n(26),l=n.n(s),u=n(24),c=n.n(u),d=n(18),f=n.n(d),p=n(9),h=n.n(p),m=n(20),g=n.n(m),v=n(14),b=n.n(v),y=n(3),A=n.n(y),w=n(2),k=n.n(w),x=n(16),C=n.n(x),S=n(5),_=n.n(S),I=n(6),O=n.n(I),E=n(13),L=n.n(E),N=n(8),T=n.n(N),j=n(15),F=n.n(j),D=n(1),R=n.n(D),P=n(87),V=n.n(P),B=n(23),U=n.n(B),z=n(19),q=n.n(z),H=Object(o.a)().svg.getSrc("download","#84bd07"),W=R.a.memo((function(e){var t=e.classes,n=void 0===t?[]:t,o=e.isIcon,a=void 0===o||o,s=e.isText,l=void 0===s||s,u=e.isCircle,c=void 0!==u&&u,d=e.onClick,f=U()(V.a);return R.a.createElement("div",{className:q().apply(void 0,Object(r.a)(n).concat([f.container,c&&f.circleContainer])),onClick:d},a&&R.a.createElement("img",{src:H,className:f.logo}),l&&R.a.createElement("span",{className:f.text},i.a.i18n.getMessage("download")))})),Q=n(4),Z=n(7),G=n(12);n(106);var Y,J=n(43),K=O()("facebook_com"),X=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome");L.a.isSingle()&&Object(a.b)("facebook",(function(e,t){var n=Object(o.a)(t),r=t.preferences,a=r.moduleFacebook?1:0;i.a.onMessage.addListener((function(t,n,i){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return i({state:a,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return s.changeState(t.state)}"updatePreferences"!==t.action?a&&"updateLinks"===t.action&&(s.changeState(0),s.changeState(1)):Object.assign(r,t.preferences)})),a&&setTimeout((function(){s.run()}));var s={contextMenu:null,className:"savefrom_fb_download",isMutation:!1,run:function(){if(a=1,v.addStyle(),m.injectStyle(),T.a.isAvailable())return this.isMutation=!0,this.initEmbedDownloader(),void this.mutationMode.enable()},changeState:function(e){s.hideMenu(),a=e,u.disable(),m.rmCurrentPhotoBtn(),m.rmDataAttrs(),v.rmBtn(),p.rmBtn(),s.mutationMode.stop(),e&&s.run()},initEmbedDownloader:function(){n.addStyleRules("."+n.embedDownloader.linkClass+" img",{opacity:".5"}),n.embedDownloader.init()},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=f()(e),r=document.querySelectorAll("["+n+"]"),i=0;t=r[i];i++)t.removeAttribute(n)}))},wrapVideoGetLinks:function(e){switch(e.tagName){case"EMBED":p.getLinksFromEmbed(e,(function(e){p.appendLinks(e&&e.links)}));break;case"VIDEO":p.getLinksFromVideo(e,(function(e){p.appendLinks(e&&e.links)}))}},wrapVideoFeedOnLinkHover:function(){a&&v.onLinkHover.apply(this)},wrapPhotoOnHover:function(e){a&&m.addCurrentDlBtn(this)},wrapExternalMediaMouseEnter:function(){a&&(this.dataset[u.linkDataAttr]?clearTimeout(u.timer):u.handle(this)?(u.lastLink&&u.lastLink!==this&&u.removeBtn(u.lastLink),n.embedDownloader.hidePanel(),u.lastLink=this):(A.a.off(this,"mouseenter",s.mutationMode.wrapExternalMediaMouseEnter),A.a.off(this,"mouseleave",s.mutationMode.wrapExternalMediaMouseLeave)))},wrapExternalMediaMouseLeave:function(){if(a){var e=this;e.dataset[u.linkDataAttr]&&(clearTimeout(u.timer),u.timer=setTimeout((function(){u.removeBtn(e)}),1500))}},wrapExternalMedia:function(e){A.a.on(e,"mouseenter",s.mutationMode.wrapExternalMediaMouseEnter),A.a.on(e,"mouseleave",s.mutationMode.wrapExternalMediaMouseLeave)},enable:function(){var e=this;if(this.observer)return this.observer.start();var t=function(e,t){if(!window.location.href.includes("/watch?")||!e.ariaLabel){if(e.dataset.sfReady&&e.closest(".cwj9ozl2.j83agx80.datstx6m")&&window.location.href.includes("/watch?")&&!e.dataset.waRep&&(!1,e.removeAttribute("data-sf-ready")),!e.dataset.sfReady)return e.dataset.sfReady="1",t(e);!0}};this.observer=new T.a({queries:[{css:"video",is:"added",callback:function(e){var n=e.added,r=/\/watch/.test(location.href);n.forEach((function(e){return t(e,(function(){return r?v.addButtonForWatchPage(e):e.closest('[role="article"]')?v.addButtonForFeedPage(e):void 0}))}))}},{css:'[role="article"] a[href*="/videos/"], ._6x84 a[href*="/videos/"]',is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){v.addHoverButtonForArticleVideo(e)}))}))}},{css:'[role="article"] a[role="link"] div[style] img[alt], [role="article"] div[role="button"] div[style] img[alt]',is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){m.addButtonForArticleImage(e)}))}))}},{css:'[data-pagelet="TahoeVideo"]',is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){v.addButtonForShowPageVideo(e)}))}))}},{css:'[data-pagelet="TahoeRightRail"] a[href*="/videos/"]',is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){var t=d.createButton((function(){var n=p.getVideoIdFromLink(e.href);n&&p.showDownloadMenuByVideoId(t,n)}),{preset:"hover"});e.appendChild(t)}))}))}},{css:'[data-pagelet="MediaViewerPhoto"]',is:"added",callback:function(e){e.added.forEach((function(e){return t(e,(function(){m.addButtonForShowPageImage(e)}))}))}},{css:["embed","video._ox1"],is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++){var i=!1;g()(n,"#fbxPhotoContentContainer .videoStage ".concat(n.tagName))&&(i=!0),i?e.wrapVideoGetLinks(n):A.a.one(n,"mouseenter",e.wrapVideoFeedOnLinkHover)}}},{css:[".fbPhotoSnowliftContainer .stageWrapper .stage img.spotlight",".fbPhotoSnowliftContainer .stageWrapper .stage .videoStage video"],is:"added",callback:function(t){for(var r,i=0;r=t.added[i];i++)if(s.hideMenu(),!(r.dataset.sfSkip>0)){r.dataset.sfSkip="1";var o=n.getParentByClass(r,"stageWrapper");A.a.one(o,"mouseenter",e.wrapPhotoOnHover)}}},{css:"a",is:"added",callback:function(t){for(var n,r=0;n=t.added[r];r++)n.sfSkip>0||(n.sfSkip="1",e.wrapExternalMedia(n))}},{css:".".concat(A.a.onRemoveClassName),is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)A.a.onRemoveListener(t)}}]})}},hideMenu:function(){s.contextMenu&&(s.contextMenu.hide(),s.contextMenu=null)}},u={linkDataAttr:"savefromEd",timer:0,lastLink:null,re:[/https?:\/\/(?:[a-z]+\.)?youtube\.com\/(?:#!?\/)?watch\?[^\s\"\'\<\>]*v=([\w\-]+)/i,/https?:\/\/(?:[a-z0-9]+\.)?youtube\.com\/(?:embed|v)\/([\w\-]+)/i,/https?:\/\/(?:[a-z]+\.)?youtu\.be\/([\w\-]+)/i,/https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/(\d+)(?:\?|$)/i],thumbnail:{youtube:{re:[/ytimg\.com(?:\/|%2F)vi(?:\/|%2F)([\w\-]+)(?:\/|%2F)/i],url:"http://www.youtube.com/watch?v={vid}"}},disable:function(){var e=n.embedDownloader.panel;e&&(e.style.display="none")},removeBtn:function(e){if(e&&"object"==typeof e){var t=e.querySelector("."+s.className);t&&(t.parentNode.removeAttribute(f()(u.linkDataAttr)),t.parentNode.removeChild(t)),e.removeAttribute(f()(u.linkDataAttr)),e==this.lastLink&&(this.lastLink=null)}},checkUrl:function(e,t){if(!t&&e.search(/https?:\/\/([\w\-]+\.)?facebook\.com\/l\.php/i)>-1)return this.checkUrl(decodeURIComponent(e),!0);for(var n=0,r=this.re.length;n<r;n++){var i=e.match(this.re[n]);if(i&&i.length>0)return i[0]}},handle:function(e){var t=e.querySelector("img");if(t){var r=t.parentNode;if(t.src&&"relative"==n.getStyle(r,"position")){var i=e.getAttribute("ajaxify");if(i&&i.search(/\/flash\/expand_inline/i)>-1){var o=this.getThumbnailUrl(t.src);if(o)return this.createButton(o,r,e,{display:"block",position:"absolute",bottom:"3px",right:"3px",zIndex:9999,margin:0,width:"16px",height:"16px"},{display:"block"})}else if(this.checkUrl(e.href))return this.createButton(e.href,r,e,{display:"block",position:"absolute",bottom:"3px",right:"3px",zIndex:9999,margin:0,width:"16px",height:"16px"},{display:"block"})}return!1}return this.createButton(e.href,e,e)},getThumbnailUrl:function(e){for(var t in this.thumbnail)for(var r=0;r<this.thumbnail[t].re.length;r++){var i=n.getMatchFirst(e,this.thumbnail[t].re[r]);if(i)return this.thumbnail[t].url.replace(/\{vid\}/gi,i)}return""},createButton:function(e,t,r,o,a){if(!(e=this.checkUrl(e)))return!1;var l=document.createElement("a");l.className=s.className,l.href="http://savefrom.net/?url="+encodeURIComponent(e),l.setAttribute(n.embedDownloader.dataAttr,e),l.title=i.a.i18n.getMessage("download"),n.setStyle(l,{marginLeft:"7px",verticalAlign:"middle"}),o&&n.setStyle(l,o);var u=document.createElement("img");return u.className="icon",u.src=n.svg.getSrc("download","#a2db16"),n.setStyle(u,{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",cursor:"pointer"}),a&&n.setStyle(u,a),l.appendChild(u),r.dataset[this.linkDataAttr]=1,t.appendChild(l),!0}},d={createButton:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={default:{props:{},style:{}},circle:{props:{isText:!1,isCircle:!0},style:{}},withoutText:{props:{isText:!1},style:{}},hover:{className:"sf-hover-container",props:{isText:!1},style:{position:"absolute",top:"8px",left:"8px"}}},r=t&&t.preset?t.preset:"default",i=n[r]?n[r]:n.default,o=i.props,a=i.style;t&&t.style&&(a=Object.assign(a,t.style));var s=k.a.create("div",{class:i.className||"sf-download-container",style:a});return F()(Object(Q.createElement)(W,M(M({},o),{},{onClick:function(t){t.preventDefault(),t.stopPropagation(),e(t)}})),s),s}},p={getLinksFromEmbed:function(e,t){if(!e)return t(null);var n=e.getAttribute("flashvars");if(null===n)return t(null);var r=c()(n).params;if(!r)return t(null);var i=null;try{i=JSON.parse(r).video_data}catch(e){}if(!i)return t(null);i.progressive&&(i=i.progressive);var o={},a={sd_src:"SD",hd_src:"HD"};Array.isArray(i)||(i=[i]);for(var s,l=0;s=i[l];l++)["sd_src","hd_src"].forEach((function(e){s[e]&&(o[s[e]]=a[e])}));return t({links:o})},getVideoIdFromLink:function(e){var t=-1!==e.indexOf("&")?e.indexOf("&"):e.length,n=e.match(/videos\/(\d+)/);return n||(n=e.match(/pcb\.\w+\/(.*?)\?/)),!n&&e.includes("/watch/?")?n=e.substring(34,t):!n&&e.includes("/watch?")?n=e.substring(33,50):n&&n[1]},requestLocalVideoLinks:function(e){return new Promise((function(e,t){n.bridge({func:'function(cb){var err=null;var token=null;try{token=window.require("DTSGInitialData").token}catch(_err){err=_err.message}cb([err,token])}',cb:function(n){var r=null,i=null;!n||n[0]?r=new Error("Get token timeout"):i=n[1],r?t(r):e(i)}})})).then((function(t){var n="https://www.facebook.com/video/tahoe/async/".concat(e,"/?").concat(J.stringify({payloadtype:"primary"})),r=J.stringify({__a:1,fb_dtsg:t});return C()([n,r],'function(url,data){return fetch(url,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:data}).then(function(response){return response.text()})}')})).then((function(t){return new Promise((function(n,r){i.a.sendMessage({action:"getFacebookLinksFromData",extVideoId:e,data:t},(function(e){e&&e.links?n(e):r(new Error("Get links from data error"))}))}))})).catch((function(e){throw K.error("get local links error",e),Object(Z.a)({category:"mistake",subcategory:"fa",event:"l"}),e}))},requestBgVideoLinks:function(e){return new Promise((function(t,n){i.a.sendMessage({action:"getFacebookLinks",extVideoId:e},(function(e){e&&e.links?t(e):n(new Error("Get links error"))}))})).catch((function(e){throw K.error("get links error",e),e}))},requestVideoLinksById:function(e){return Promise.resolve().then((function(){return p.requestLocalVideoLinks(e)})).catch((function(){return p.requestBgVideoLinks(e)}))},requestVideoLinks:function(e,t){return p.requestVideoLinksById(e).then((function(e){t(e.links,e.title)}),(function(e){t()}))},getLinksFromVideo:function(e,t){if(!e)return t(null);var r,i={},o={},a=null;if(!a){var s=b()(e,"div[data-ft]");if(s&&g()(s,".userContentWrapper[data-ft] "+s.tagName)&&(s=b()(s,".userContentWrapper[data-ft]")),s&&(Array.from(s.querySelectorAll("a[href]")).some((function(e){var t=/\/videos\/(\d+)/.exec(e.href);if(t)return a=t[1],i.popup_1=!0,!0})),!a)){var u=null;try{u=JSON.parse(s.dataset.ft)}catch(e){}if(u){var c=u.mf_story_key,d=u.story_attachment_style;c&&"video_inline"===d&&(a=c,i.popup_1=!0)}}}if(!a&&b()(e,"div._5-yb")){var f=/\/videos\/(\d+)/.exec(location.href);if(f)return t({links:{id:f[1]},popup_1:!0})}if(!a){var h=b()(e,".uiStreamStory[data-story-id]"),m=/:(\d+)$/.exec(h&&h.dataset.storyId);(m=m&&m[1])&&(a=m)}if(!a&&(r=l()(e,"fbUserContent"))){var v=r.querySelector("a[data-video-id]");v&&(k=v&&v.dataset.videoId)&&(a=k)}if(!a&&(r=b()(e,".userContentWrapper"))){var y=r.querySelector('div[id^="feed_subtitle_"] a[data-video-channel-id]');if(y){var A=/\/videos\/(\d+)/.exec(y.href);(k=A&&A[1])&&(a=k)}else{var w=r.querySelectorAll('a.profileLink, a[rel="theater"], #fbPhotoSnowliftTimestamp > a[href]'),k=null;[].slice.call(w).some((function(e){var t=/\/videos\/(\d+)/.exec(e.href);return k=t&&t[1]})),k&&(a=k)}}if(!a){var x=!1,C=!1,S=document.getElementById("stream_pagelet"),M=S&&S.previousElementSibling;if(M&&M.contains(e)&&(x=!0),!x){var _=document.querySelector(".uiStreamStory"),I=_&&_.parentNode;(I=I&&I.parentNode)&&I.contains(e)&&(C=!0)}(x||C)&&(k=p.getVideoIdFromUrl())&&(a=k)}if(!a&&b()(e,"#pagelet_group_permalink")&&(A=/video_id:"?([^,"]+)/.exec(document.body.innerHTML),(k=A&&A[1])&&(a=k)),a&&(o.id=a),e.src&&/^https?:/.test(e.src)){var O=n.getFileExtension(e.src,"mp4");o[e.src]=O.toUpperCase()}var E=e.querySelectorAll("source");if(E&&E.length>0)for(var L=0;L<E.length;L++)O=n.getFileExtension(E[L].src,"mp4"),o[E[L].src]=O.toUpperCase();return Object.keys(o).length?(i.links=o,t(i)):t(null)},getVideoIdFromUrl:function(){var e=null;return n.embedDownloader.hostings.facebook.re.some((function(t){var n=t.exec(location.href);if(n)return e=n[1],!0})),e||(e=(e=document.location.href.match(/(\d+).$/))&&e[1]?e[1]:null),e},getFileName:function(e){var t=n.getFileName(e);if(t)return t;var r=n.dateToObj();return"facebook_"+r.year+"-"+r.month+"-"+r.day+"_"+r.hour+"-"+r.min+"."+n.getFileExtension(e,"mp4")},prepareLinks:function(e,t){var n=[];for(var r in e){var o=this.getFileName(r),a=o.lastIndexOf("."),s=o.substr(a+1),l={href:r,title:o=t||o.substr(0,a),format:s.toUpperCase(),quality:e[r],forceDownload:!0};n.push(l)}return 0===n.length&&(n=i.a.i18n.getMessage("noLinksFound")),n},appendLinks:function(e){if(e){var t=document.getElementById("fbPhotoPageMediaInfo");if(null!==t){var r=document.querySelector("h2.uiHeaderTitle");if(r&&(r=r.textContent),t&&!t.querySelector("."+s.className)){var o=document.createElement("div");o.className=s.className;var a=k.a.create("div",{title:i.a.i18n.getMessage("download"),style:{display:"inline-block",width:"16px",height:"16px",backgroundImage:"url("+n.svg.getSrc("download","#a2db16")+")",backgroundRepeat:"no-repeat",backgroundPosition:"center center",verticalAlign:"middle",cursor:"pointer"}});o.appendChild(a);var l=null;a.addEventListener("click",(function(){if(s.contextMenu&&s.contextMenu.isShow)s.hideMenu();else{var t=s.contextMenu=n.popupMenu.quickInsert(this,i.a.i18n.getMessage("download")+" ...",s.className+"_popup");if(l)t.update(l);else if(e.id){var o=e.id;delete e.id,p.requestVideoLinks(o,(function(r,i){l=r?n.popupMenu.prepareLinks.facebook(r,i):p.prepareLinks(e),t.update(l)}))}else l=p.prepareLinks(e,r),t.update(l)}})),t.appendChild(o),t=null,o=null,a=null}}}},rmBtn:function(){for(var e,t=document.querySelectorAll("."+s.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)},showDownloadMenuByVideoId:function(e,t){if(s.contextMenu&&s.contextMenu.isShow)s.hideMenu();else try{var r=s.contextMenu=n.popupMenu.quickInsert(e,i.a.i18n.getMessage("download")+" ...",s.className+"_popup");p.requestVideoLinks(t,(function(e,t){var i;i=e?n.popupMenu.prepareLinks.facebook(e,t):p.prepareLinks(links),r.update(i)}))}catch(e){Object(Z.a)({category:"mistake",subcategory:"fa",event:"l"})}}},m={style:null,getFilenameFromUrl:function(e){return n.getMatchFirst(e,/\/([^\/]+\.[a-z0-9]{3,4})(?:\?|$)/i)},getPhotoIdFromUrl:function(){var e=null,t=c()(location.href);return t.fbid&&(e=t.fbid),e},prepPhotoUrl:function(e){return e&&(/[?&]dl=1/.test(e)||(e+=(/\?/.test(e)?"&":"?")+"dl=1")),e},rmCurrentPhotoBtn:function(e){for(var t,n=void 0,r=document.querySelectorAll(".sf-dl-current-photo-btn"),i=0;t=r[i];i++)e&&e.contains(t)?n=t:t.parentNode.removeChild(t);return n},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=k.a.create("style",{text:h()({"div > .sf-dl-current-photo-btn":{display:"none",position:"absolute",top:"10px",left:"10px",width:"28px",height:"24px",border:0,zIndex:100,cursor:"pointer",backgroundColor:"#000",padding:0,borderRadius:"2px",opacity:.4,transition:"opacity 100ms linear",lineHeight:0},"div > .sf-dl-current-photo-btn svg":{margin:"4px"},"div > .sf-dl-current-photo-btn:hover":{opacity:.8},"div > .sf-dl-current-photo-btn:hover svg path":{fill:"#00B75A"},"body:not(.fullScreen) div:hover > .sf-dl-current-photo-btn":{display:"block"}})}),document.head.appendChild(this.style))},getPhotoUrlFromCtr:function(e){var t=[],n=e.querySelector("img.spotlight")||e.querySelector("img.fbPhotoImage");return n&&t.push(n.src),t},getVideoUrlFromPhotoCtr:function(e){var t=null,n=e.querySelector(".stage .videoStage video");if(n){var r=b()(n,".fbPhotoSnowliftPopup");if(r){var i=r.querySelector('div[id^="feed_subtitle_"] a[data-video-channel-id]');if(i){var o=/\/videos\/(\d+)/.exec(i.href);o&&(t=o[1])}}}return t},getLinksFromPhotoCtr:function(e){return g()(e,".stageWrapper.showVideo")?Promise.resolve().then((function(){var t=p.getVideoIdFromUrl();if(t||(t=m.getVideoUrlFromPhotoCtr(e)),t)return p.requestVideoLinksById(t)})).then((function(e){return n.popupMenu.prepareLinks.facebook(e.links,e.title)})):Promise.resolve().then((function(){var e=m.getPhotoIdFromUrl();if(e)return new Promise((function(t,n){i.a.sendMessage({action:"getFacebookPhotoUrl",fbid:e},(function(e){e&&e.length?t(e):n(new Error("getFacebookPhotoUrl can't get url"))}))}));throw new Error("Can't get photo id from url")})).catch((function(t){return m.getPhotoUrlFromCtr(e)})).then((function(e){if(!e||!e.length)throw new Error("Photo url not found");return e.map((function(e){var t=m.prepPhotoUrl(e),n=_.a.modify(m.getFilenameFromUrl(t)),r=/(.+)\.([^.]+)$/.exec(n),o="jpg",a=n;return r&&(o=r[1],a=r[2]),{href:t,title:a,quality:i.a.i18n.getMessage("download"),format:" ",ext:o,isBlank:!0}}))}))},addDlCurrentPhotoBtn:function(e){if(!this.rmCurrentPhotoBtn(e)){var t=k.a.create("a",{class:"sf-dl-current-photo-btn",href:"#",title:i.a.i18n.getMessage("download"),append:[n.svg.getSvg("download","#FFF",16)],on:[["click",function(t){if(t.stopPropagation(),t.preventDefault(),s.contextMenu&&s.contextMenu.isShow)s.hideMenu();else{var r=function e(t){18!==t.keyCode&&17!==t.keyCode&&(o.hide(),document.removeEventListener("keydown",e))},o=s.contextMenu=n.popupMenu.quickInsert(this,i.a.i18n.getMessage("download")+" ...","photoDlMenu",{parent:e,onShow:function(){s.isMutation||document.addEventListener("keydown",r)},onHide:function(){s.isMutation||document.removeEventListener("keydown",r)}});m.getLinksFromPhotoCtr(e).then((function(e){e.forEach((function(e){e.func=function(t){t.preventDefault(),n.download(null,e.href),o.hide()}})),o.update(e)})).catch((function(e){K.debug("Get photo links error",e),o.update(i.a.i18n.getMessage("noLinksFound"))}))}}],["mouseover",function(e){if(X){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(G.showTooltip)(t,{defaultWidth:400,defaultHeight:60},{});Object(G.hideTooltip)(t,{defaultWidth:400,defaultHeight:60})}}]]});e.appendChild(t)}},addButtonForArticleImage:function(e){var t=e.closest("a");if(t){var r=m.getFilenameFromUrl(e.src);r&&!/\.php$/.test(r)||(r=_.a.modify(document.title+".jpg"));var i=k.a.create("a",{class:"sf-hover-container",href:e.src,download:r,style:{position:"absolute",top:"8px",left:"8px"},on:[["click",function(e){e.stopPropagation(),n.downloadOnClick(e)}],["mouseover",function(e){if(X){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(G.showTooltip)(i,{defaultWidth:400,defaultHeight:60},{});Object(G.hideTooltip)(i,{defaultWidth:400,defaultHeight:60})}}]]});Object(Z.a)({category:"append",subcategory:"fa",event:"b"}),F()(Object(Q.createElement)(W,{isText:!1}),i),t.appendChild(i)}},addButtonForShowPageImage:function(e){var t={position:"absolute",zIndex:9999};t=document.querySelector('[role="banner"] [hidden]')?Object.assign(t,{top:"9px",left:"115px"}):Object.assign(t,{top:"7px",left:"15px"});var r=e.closest('div:not([data-pagelet="MediaViewerPhoto"])');if(r){var i=e.querySelector("img");if(i){var o=m.getFilenameFromUrl(i.src);o&&!/\.php$/.test(o)||(o=document.title+".jpg");var a=k.a.create("a",{style:t,href:i.src,download:o,on:[["click",function(e){e.stopPropagation(),n.downloadOnClick(e)}],["mouseover",function(e){if(X){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(G.showTooltip)(a,{defaultWidth:400,defaultHeight:60},{});Object(G.hideTooltip)(a,{defaultWidth:400,defaultHeight:60})}}]]});Object(Z.a)({category:"append",subcategory:"fa",event:"b"}),F()(Object(Q.createElement)(W,{isText:!1,isCircle:!0}),a),r.appendChild(a)}}},addCurrentDlBtn:function(e){e.dataset.sfSkip>0||(e.dataset.sfSkip="1",this.addDlCurrentPhotoBtn(e))},rmDataAttrs:function(){for(var e,t=f()("sfSkip"),n=document.querySelectorAll("*["+t+"]"),r=0;e=n[r];r++)e.removeAttribute(t)}},v={style:null,addStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=k.a.create("style",{class:"sfFeedStyle",text:h()([{selector:"."+s.className+"-feed.sf-feed",style:{display:"none",width:"20px",height:"20px",padding:0,position:"absolute",background:"url("+n.svg.getSrc("download","#a2db16")+") center no-repeat transparent",backgroundSize:"16px",top:"5px",left:"5px",zIndex:1,cursor:"pointer"}},{selector:'div[role="dialog"] .'+s.className+"-feed.sf-feed",style:{top:"40px"}},{selector:"body:not(.fullScreen) div:hover > ."+s.className+"-feed.sf-feed",style:{display:"block"}},{selector:"."+s.className+"-feed.sf-feed:active",style:{outline:0}},{selector:".sf-hover-container",style:{display:"none"}},{selector:'div[role="presentation"]:hover .sf-hover-container, a[role="link"]:hover .sf-hover-container, div[style*="bottom:calc"]:hover .sf-hover-container',style:{display:"block"}}])}),document.head.appendChild(this.style))},onDlBtnClick:function(e){if(e.preventDefault(),e.stopPropagation(),s.contextMenu&&s.contextMenu.isShow)s.hideMenu();else{try{var t=JSON.parse(this.dataset.sfDlLinks)}catch(e){return}var r=s.contextMenu=n.popupMenu.quickInsert(this,i.a.i18n.getMessage("download")+" ...",s.className+"_popup");if(t.id){var o=t.id;delete t.id,p.requestVideoLinks(o,(function(e,i){var o;o=e?n.popupMenu.prepareLinks.facebook(e,i):p.prepareLinks(t),r.update(o)}))}else{var a=p.prepareLinks(t);r.update(a)}}},addDownloadBtn:function(e,t){var n=e.querySelector("."+s.className+"-feed");n&&n.parentNode.removeChild(n),e.appendChild(k.a.create("a",{data:{sfDlLinks:JSON.stringify(t)},title:i.a.i18n.getMessage("download"),class:[s.className+"-feed","sf-feed"],href:"#",on:["click",v.onDlBtnClick]}))},addButtonForWatchPage:function(e){var t=e.closest(".bgqhc3kc"),n=t.querySelector('a[href*="/videos/"]');if(n||(n={href:window.location.href}),n&&n.href){var r=p.getVideoIdFromLink(n.href);if(r){var i=d.createButton((function(){p.showDownloadMenuByVideoId(i,r)}));Object(Z.a)({category:"append",subcategory:"fa",event:"b"}),t.closest(".cwj9ozl2.j83agx80.datstx6m")&&(e.dataset.waRep="1",n.href===window.location.href&&setTimeout((function(){var e=t.querySelector(".fer614ym");e.firstChild,e.querySelector(".sf-download-container")&&Y!==n.href&&e.querySelector(".sf-download-container").remove(),e.prepend(i),Y=n.href}),1500))}}},addButtonForFeedPage:function(e){var t=e.closest('[role="article"]'),n=t.querySelector('a[href*="/videos/"]'),r=!0;if(n||(n=t.querySelector('a[href*="/watch/"]'),r=!1),n){var i=n.href;r||(i=n.href);var o=p.getVideoIdFromLink(i);if(o){var a=t.querySelector('[role="article"] > div > div > div > div > div > div:nth-child(2) > div > div:last-child > div > div > div > div > div > div > div');if(a){var s=d.createButton((function(){p.showDownloadMenuByVideoId(s,o)}),{preset:"withoutText",style:{alignItems:"center",display:"flex"}});Object(Z.a)({category:"append",subcategory:"fa",event:"b"}),a.parentElement.insertBefore(s,a)}}}},addButtonForShowPageVideo:function(e){var t=d.createButton((function(e){var t=p.getVideoIdFromLink(location.href);t&&p.showDownloadMenuByVideoId(e.target,t)}),{preset:"circle",style:{position:"absolute",top:"8px",left:"114px"}});Object(Z.a)({category:"append",subcategory:"fa",event:"b"}),e.appendChild(t)},addHoverButtonForArticleVideo:function(e){var t=p.getVideoIdFromLink(e.href);if(t){var n=e.closest('[role="article"], ._6x84');if(n){var r=n.querySelector('div[role="presentation"]');if(r||(r=e.parentNode)){var i=d.createButton((function(e){p.showDownloadMenuByVideoId(e.target,t)}),{preset:"hover"});r.appendChild(i)}}}},onLinkHover:function(){var e=this;if(!(this.dataset.hasSfFeedBtn>1)){this.dataset.hasSfFeedBtn="1";var t=this;return"VIDEO"===t.tagName&&(t=t.querySelector("embed")||this),new Promise((function(e){"EMBED"===t.tagName?p.getLinksFromEmbed(t,e):"VIDEO"===t.tagName&&p.getLinksFromVideo(t,e)})).catch((function(e){return K("getLinks error",e),null})).then((function(t){var n=t&&t.links;if(n)if(t&&t.popup_1)v.addDownloadBtn(e.parentNode,n);else if(g()(e,".uiStreamStory "+e.tagName)||g()(e,".fbPhotoSnowliftContainer "+e.tagName))b()(e,".fbPhotoSnowliftPopup .stageWrapper")||v.addDownloadBtn(e.parentNode,n);else{var r=document.getElementById("pagelet_timeline_main_column")||document.getElementById("stream_pagelet")||document.getElementById("mainContainer");if(r&&r.contains(e))v.addDownloadBtn(e.parentNode,n);else{var i=document.getElementById("stream_pagelet"),o=i&&i.previousElementSibling;if(o&&o.contains(e))v.addDownloadBtn(e.parentNode,n);else{var a=document.querySelector(".uiStreamStory"),s=a&&a.parentNode;(s=s&&s.parentNode)&&s.contains(e)&&v.addDownloadBtn(e.parentNode,n)}}}else e.dataset.hasSfFeedBtn=0}))}},rmBtn:function(){var e=[f()("hasSfFeedBtn"),f()("sfReady")],t=e.map((function(e){return"[".concat(e,"]")})).join(",");document.querySelectorAll(t).forEach((function(t){e.forEach((function(e){return t.removeAttribute(e)}))}));var n=[".sf-hover-container",".sf-download-container","."+s.className+"-feed"].join(",");document.querySelectorAll(n).forEach((function(e){e.parentNode.removeChild(e)}))}}}))},87:function(e,t,n){var r=n(32),i=n(105);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o,a=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},l={};l.locals=i.locals||{},l.use=function(){return a++||(o=r(i,s)),l},l.unuse=function(){a>0&&!--a&&(o(),o=null)},e.exports=l}})},function(e){!function(e){function t(t){for(var r,a,s=t[0],l=t[1],u=t[2],d=0,f=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(c&&c(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={12:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([121,0]),n()}({107:function(e,t,n){n.r(t);var r=n(21),i=n.n(r)()(!1);i.push([e.i,".zE0yy--overlay{position:fixed;z-index:50001;background:#000;opacity:.9;width:100%;height:100%;top:0}._2fR_A--sf-result-container{position:relative;height:178px}._1qv8K--sf-result{z-index:50002;position:fixed;background:#fff;left:0;right:0;bottom:260px}._1Q_Aw--sf-modal-hide{display:none}._36xEQ--notice{position:fixed;bottom:370px;right:60px;color:#fff;z-index:50001}._1YyKz--notice-header{display:flex}._1YyKz--notice-header img{margin-right:10px}._3F9WE--notice-header_title{font-weight:600;font-size:16px;width:190px}.y-XT5--notice-message{width:202px;margin-left:41px}.wueu4--notice-button{margin-left:41px;font-weight:600;font-size:16px;color:#77cb35}.a_HEX--arrow-image{position:absolute;right:210px;top:0;z-index:1000}@media (max-width:1520px){.a_HEX--arrow-image{display:none}._36xEQ--notice{right:45px;bottom:470px}}@media (min-width:1520px){._36xEQ--notice{right:100px}}",""]),i.locals={overlay:"zE0yy--overlay","sf-result-container":"_2fR_A--sf-result-container",sfResultContainer:"_2fR_A--sf-result-container","sf-result":"_1qv8K--sf-result",sfResult:"_1qv8K--sf-result","sf-modal-hide":"_1Q_Aw--sf-modal-hide",sfModalHide:"_1Q_Aw--sf-modal-hide",notice:"_36xEQ--notice","notice-header":"_1YyKz--notice-header",noticeHeader:"_1YyKz--notice-header","notice-header_title":"_3F9WE--notice-header_title",noticeHeaderTitle:"_3F9WE--notice-header_title","notice-message":"y-XT5--notice-message",noticeMessage:"y-XT5--notice-message","notice-button":"wueu4--notice-button",noticeButton:"wueu4--notice-button","arrow-image":"a_HEX--arrow-image",arrowImage:"a_HEX--arrow-image"},t.default=i},121:function(e,t,n){n.r(t);var r=n(0),i=n(11),o=n(10),a=n(25),s=n.n(a),l=n(3),u=n.n(l),c=n(2),d=n.n(c),f=n(5),p=n.n(f),h=n(13),g=n.n(h),b=n(8),y=n.n(b),A=n(29),w=n.n(A),k=n(16),x=n.n(k),C=n(15),S=n.n(C),M=n(4),_=n(1),I=n.n(_),O=n(27),E=n(23),L=n.n(E),N=n(88),T=n.n(N);function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var F=I.a.memo((function(e){var t=m({},e),n=L()(T.a),i=I.a.useState(!0),o=Object(v.a)(i,2),a=o[0],s=o[1],l=r.a.i18n.getMessage,u=I.a.useCallback((function(e){e.preventDefault(),s(!1)}),[]);return I.a.createElement("div",null,a&&I.a.createElement("div",null,I.a.createElement(D,{styles:n}),I.a.createElement("div",{className:n.notice},I.a.createElement("div",null,I.a.createElement("div",{className:n.noticeHeader},I.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CjxyZWN0IHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0idXJsKCNwYXR0ZXJuMCkiLz4KPGRlZnM+CjxwYXR0ZXJuIGlkPSJwYXR0ZXJuMCIgcGF0dGVybkNvbnRlbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIHdpZHRoPSIxIiBoZWlnaHQ9IjEiPgo8dXNlIHhsaW5rOmhyZWY9IiNpbWFnZTAiIHRyYW5zZm9ybT0ic2NhbGUoMC4wMDYyNSkiLz4KPC9wYXR0ZXJuPgo8aW1hZ2UgaWQ9ImltYWdlMCIgd2lkdGg9IjE2MCIgaGVpZ2h0PSIxNjAiIHhsaW5rOmhyZWY9ImRhdGE6aW1hZ2UvcG5nO2Jhc2U2NCxpVkJPUncwS0dnb0FBQUFOU1VoRVVnQUFBS0FBQUFDZ0NBWUFBQUNMejJjdEFBQWdBRWxFUVZSNEFlMmRUV3hkeDNtR3Rld3l5NjZLYmdwMDBhQmV0SUEzYlZ3Z0Fid29FQy9USWlnY29JdHVqQ3BJMDhxSWJWMG5zVTBrYmtJZ3FrM2JTVXpaRXNDMFFzMjJka29nYmtJRENVd2pza1FsYnNLb3NrTUhja0xabEhTVlVQS1ZSSEdLOS92bW5mbG16cHh6N3lVcDU0SWNBWU01T3ZmODNUa1AzKzluZnU2QkEvVmZiWUhhQXJVRmFndlVGcWd0VUZ0Z01sdGc0Mzk3di92dTZVZnV1SHo2c2JzdW5lcDk0dEtwM3Q5ZE92WGdvWXNuSC9nOENyWjFYKzhUT0FiSDRwekovRGIxcVNhK0JRQVBRTHA4dW5jdkFIdHY2YlBQcjU5NjhIOHV2UGFQSzJ0TEIzK3g5dXBuK2hlV0R0NndCZnZ3R1k3QnNUZ0g1K0lhdUZZRmN1SmYrMi92QVJXNDNqMEN6S21IVGdoSVN3ZHY5SmNPT2luTEIxMS8rZENZeForN2ROQUJWRnp6OHFtSFRuZ283NmxBL3ZiZTkwVGNHUURBbkVLcEFFY0p0Q3NyUFljeXlFcC9aY29Oc3BJZngzTlJKL0I2cUhGUDNCc0tXV0djQ0NRK21JZUFmd1lWZ3FsTW9GczUxSUJ0WStWUmgvTCt1Yys3alRlbnhpLytmQUxjaEZKVkVzK0NaN3I0K2hmdi9HQmFvZDdsQTI4QnZGeFJ1MWMvMCsvVHBHYlFFVGpDTmxpZGNyRk11OEhxT0NXZXkrc0JaQlFBU1JqN0s5NjBMeDEwOENQRmQ2d2dmdUI4M0xZYlhqNzkyTysvOTlyOU0vRERDQjVmUGtBZ2RJTnpYM0pTQkxvU2FETnVzRHBPS1YwalZWSEF5R2RCcmFaYWZVWThNNTc5dGpWTXZmRHRiWUh2ZmEvM081ZGZmL0NnK0hkZThmQ1NhUTdod3dHK3NzTGxvTTI2d2FvdmE3TnUwRlo0VEtqejYxZ29JNHhGRUtHSUNGeGVmL0FndnN2dGJhMTY5VjF0Z2ZVZlBmcUhTSVVFSDIvbGtBR3YxNkowaEtVRnNQUEgzV0J0Ym9SeXpBM2tXSE9kQUNRZzVuMVNHT1VQNHMwcGh3QkgxRkJNcy9xSStDNzRUcnZhU1BWaXQ2Y0ZFRlVHMVV0OHZLa0NlSVRCcXRzUXlDN011d0hLMm9sWVk3dngvL3c2SHN3T0dIL3oxbGREb0JOQWxQU1BxaUdpOXR2VGF2V3F1OUlDRXQzUzE3T3FCLzh1OGUwTWVNR2NXbUFNVUFUTzFtc3Z1a0VvQzNIYkhzTnR3bW5WRXdxSkVtRGs4eHlSUUNlQXVQSm9vb2J3WS9FZGQ2V3g2a1YycndVdW4rNTlDRTU3dytTR3dJTG16ci9vQU4weFkxSzlvZ1Z3UEdUckw3bkIra0t4WEwvNHNrTnArMXozdjZSS0dhN3I0YlpBNG5rRVJvSTQ3UUFoUVdTZ0lrSEswa0duQVVydlE3dlhndlZLMjI0QndJY2VCb1hQNVBJUzFjdkJvOXBsMEJWZ0U4RDZMN3RCZjFITHVxLzUvMUs5dmloZ051RXN3Y2huUVYwR0VXbWN4Q1F2SFhUNHp2anUyMjY0ZXVMT1cwQ1ViK216end0OHdkK2pyL2U0ejl2Tm1LaVZMNXYrRzFVdUtweENrMFAyZlRmb3N5eTVRWDlZNGJIeE9pbU1VRlVEbzVocFB0c3hWY1B6VC91QUpacGxCQ29oWFFNbDFKNlVDdUhPVVJyL0NraE40QVdVNFRNbTl6eWlVYjVjRDU0b1hUU3RxbktFaGZDVUlidlovNkZEMmJ4eU1oVHVzM1VLS2ErSmUrUm11d1ZFOFJObjNTQ0FPSzFCbEhRQjlwd2tzRDJFTlUwelBqODdQZ1BPZU5uc0FyNWM5U3g0bWRvRkV3cElJblNFYk5CZmRwdFh6a2pSN1RmYzVwVzJvc2Z4ZU5TRU1sNGI5MUhZRzZvSVB6RUpXaEE1ZDBDSUNIbnBvS3VCeVk1eEd1OENTTTRTdnNISy9acmpFNTl2V2hWRGdneXZldkpTWDFTVHQ3N2dydmNYUklVVUFpcVRncWZRV1lnQTJrb290elpXM0NnbG5rTlE5WnE0ZmdsRXFHSUlaQkJkQnhEOWR5Q0Vvb1pIVWlWY1BpU2piZEFtNDdWaVBYcGJMWER4ekJmdVJwOHBJc0lBWDBpeFVQbDhkSXNYNlFPTEpuZ0tYVFNsQks4SjNlYkdPUmZLMWJmZFpsY3h4eEpXQlJMWDVUMU9paklxakZFUkV4RHg3QW1JVmczVkw5UmVuZnVsQ3c5dGdyYlpWcVBXazBackFmU05YanI1MEducDAyV2Vyd2hmWm5KdEZDdkJoSVdQVUNoNGdDYkFCcGc2WUxzMWVNZlowbnJzeHJtZ25HcStlYytUQlVWOFdWVWFxWitHR25vSXBUY2xRc2dCRFdpYjJuODhHa3ZiT2tweWZlalg3WVJ2VHBXallHNDMrMHRPaWdRUWdJQW1VazJyZ0pjQkZ3Qzd2dVp1aGZLdTJiYjdzUjAvMnh6OG9nbXdoMUZWOFl4VHY5S0NtUHVIUGtnSmtiSlZRdmk3R0p0b2dwTFg3cC9aVnVQV2s3cGJBTjFRaWQrMzJzdlNMREM3Sjl5Z1A1LzVlWXR1cy8vOUREekFGLzA1Qzk2dHdXcFV0UUNjQjJ1dzdtNk5XcEp6MStTYVFTRzltUmExRlI4VHoyTWhwRmt1K1lid0M2MFNHZ2k5UDFpNzdMcFpHdnRUR2Iwc3BqZjMrK2p6elhyVjg2a1ZiM0lEZUZDK1JQV2FpaGZBUzhCNVY0RGJ2TG51VUFKOE42NjRXMjFsa0IwTFlPMDFCKzlFVmFTL0tCRFNSeVNJT1lRdkdaUHNJUXk5SjlOK3NJWDZnekRGZFpUMTJKaTFueUFwRjZRY2N0TzdSZ0NqMlJWSHZsOVF2WTNsNklmQkRBN2VEQ0NJbWJXUXdJeDZwUXZ3dFFBbllONjRvb0FXamtuQU5UQUdOWVRKRDJZNWh4QytxdVlPbTFGeURtRnFpbXRxcHAybnNUN1JrY3lmdTVCR3ZUYlhOeGZNN3EzK29rTkJyNFgxOVc1dHZCSGh1M2JPYlY0RGdEQzEzdHdHK040VmtOek5pd3BnQnBUYi9MVW8zK2JtMVZCajJ4WW9JeiszS2hsQXBnbjM5d3dnQmdpUjl0RWdKYVpzdkYrSUZCS0RFL3FFU05GSVVJSTJ3WGhIVmNIM2xqNTNvUTd4SHd1MThzSFMyMUZLdVREWEo2bVdCUUVQOEFXejYwMHU0Uk9WR2J6WkFsN0J4N3R4eFczZDdBdG9XNXNiTGkzWDNOYm10UVM4L1A4NWxJUXhBWkhnMHl3bkVLb2FSZ2k5U2ViQWlKQ21nUklTUWxWQkNVcVdEMGxYWGJsVjY5NlJXZ0Ivd1VuT2o0R0hnUS81UFNwZkYzeFI5WHpxeEwvOHJldS9jbEE4Rm9JQytGTG9BT0UxNTI0TkN1VkdzZy9IbFlEa3RWRTNRQ1NFM2lUYjNHR0VzRTBKZmYreHpGbnhwbmo1a013eHFTbzRFbXJsZzZMNjlYUXlqK1Q4ak4vbkk5NWh5aWZ3WFd0R3R6bDhBcDFYUFNxWVFxaEFKZkJ0WFhldVZHNEJ4aFJJWElzd1cvTk1DRkdIUUdXd3FyNHBBaFFibklSdXdzd25sR1IxVmNFeVFUdllpK21UOEdPQzc5ZWhma09WcndBZjhuVlVQZFNFRDM0ZVlhR1NCZkJLd0kyeXo2dW1Yay9OT2YzSlJBMExmbUdFOEtUNnRRS2loWkI1d2prL3BqQk55NkFOMFpZN2VCWDc4MVJHdnZCblpDb2plenhnZmk5b3JpK2FYaWFZejdoTkUrMUtrRkdBYit2R0xzQUhxTGJlOTZhWHFtZnFyWnVwUWhyVGJVR2tXYVlhV2lYRTgwdU8wdVFLRVZ6cDBEQURZZkFIVTE4UVE3ZldseDZvZ3hYRy9SUENPRC90Y3ZPVGlZTDZ3ZnltVVcraWZnWSttbDFFbVVpendOemk1UTZIYjRpNURlYjFobk5ibTFxQzJUVUFjbCt1a0FVMXRCQksraWNFSnhxcDV4Q21mY2crV1oyWTRsUUZ0WXV1RGw0ZG1jUExwM3Yzd1BUaUw3aEwvWnJ3YWJwRklsNG9uMWMvd2dlenU3VzU3clkyTDRuNXRXYlgzZHB3emdjUFVLaUcyU1ZRcUFFZTYzeGJvTHp1L1VBTEpCVFQrNDBaaExrNWJrTDRwcVNSWWo4eWs5VWFsQ0ExSTRNdEJFS29vQUxJNlo1UXdkbzdNakorQnc3MHp6enlqUHArQmtCSk9tdkNtWkZ2QUhCak9acmVxMmNseWN3Y243dCtJYWlmK0hxYjY4SDNBNEI0K1ZKdWFaU2J3Q2RtbHNFR1RDcUtWNzJ0VzJZYisvQi9GaDVENEF5SWhCRDFyWUh4TnpkQzc0b0VKVXhheTRBSE5jWGFkWmVuWjlRVVJ3RGhDMklLUXFxQzZFY2Y0eFhzMzBQUmhTVHJ0cnh4dUtsK2EzTytuemZMOTRucE5lckhCRE5lSHRNdDN1K0QraVhLQndDTitnWGw2NFNQZ0JHNHR0b2ZSL1VVdFN3cFljd3pNaWpCSDBzWTJNQVVEZk9FK0lORG50UDRnenFxR3dOYUdSRmJBSHNPYlZxNzUwYjR1eXFhWDNhNW1lQkRlanJReDJ2VVQzeWwwTXVoZmgvTUwvMCtOYjJYaXdCcVlHQk03MUFBMjZBcjdmY21tMlpiYXFvalZCQitwNGZRcDRFRVFLb2cvb2g4UUtKakRIMlhYWkthV2N6TXNLcWdOY05vMnhGZXdmNCs1TDNYSC9rS3phOTBMY0dVMFB6MjU2VnZOSmhlcUlBSlBOQy9LeTlxOElzUWVBQSs5ZnZvK3hrQVJmbFVBWnNBd3RlajJiV21kMVQxSzRCSUpiUUEra2lhRUVJQm9kQWhLaWFFdVNuMkttZ0Rrc1FNbzgxeU0vejZJMS9aMzNRTitmYVlYQ05MYWl6N05WeHM2aVV4djB5N25IVHNhaE5sTVAyN1ZENEIwRVBvYmw1MktFM2ZyK0QvaWErMnl3QXlZQWtnZW5NY2dwSlVCUk5ma0NxSXFGNm1Cc1NCQzJxS2pTK1ltK0ZWTEh6VWMyamJPb0dwQTBLc2Y5SS8wMXZyaW40eE9zU2FYd0lZdTlwV05kM2lUVythY0c2cVg3R25Jd1FLdXcyZ1Y4VUFJRlMyYklxVDFBd0h1YmFvb0xhSDloVkhGV1JPY0ZwOGFiUXBrdEoxalprT0FEdjl2eTd6bTBXK29uNGVRSnBmK0ZSUi9YejBLNUV2QXdEai94R0t4QVRuWnJoZ1lrTVUzUFdaOFFldEtRNHFxUDVnQW1CdWhqdFVVQUJFVzRVQkNocU1BRUM0TnRVUDdBQVFxODNEVk1oa20yQitZL0k1VnovNmY2M0JoK1Q4b3U4WEFiU3BGelcvNWVpM0xRVURQN0FMc3E3UDhzaVk5MkJhWmhpQWZrQnJSMFNNVWVFYURlZCtZTStoalR0ZXdmNzlTRlk1d1BvdURRQjFZcm4rWmJlWVg3d01SSWsyK1BDalhLSUNHdk03Y3U2UGNOQVVNd0M1L1FEbWd4WnNTc1pHeEpJRndQaEJtNUxCdU1FV1A3Q3VLOVB5TnhiVzlDdmwvOEk4RHc5Z1MvVExMamNHSUduaXVSMUE5SUFrQ3Bpa1lBQWhBZHdOTTl5aWdKa0p6Z0dVZ01SMDBVbHZENE9SaldVL3U4NzRnUUZBcUNDV0M0NkJTUFVEQ3hES2o4Q2NmT2gwR29ENG9WZERBSXdCU0pyN2cvcXA3MWZ3LzN3Q0drRklBNzRHZ0JaQ3E0TGpLcUU5OTZicHJvdGpESm1Pd1hNMS9VQS80ODRQMlFyUmNKS1k5dm5BQk1Eb0IvcXBtM2NWWHNIKzNpVUJpSStBMC96ZnJBeTUxN2tSTWYweTFQOExxUmNPTnMzU0wySFlWVUg5T2dITVZYQlVDQzE4MkNhQUVUNzhJYlFCcUFwSUFOVVBWQUF4ajluMmpKUVQwbEJCQ1VUTzlOWnFJRkw0VzhOUFhmV1hEL2U3QTVBNDF5T2tYekJ3TSt2OVFQOHZCeDQwRmJBUWdDQVpISVpXR1NCQ05OemxDeEtzRVFLUDBJODhQb0E2UUNFRmtHYllBb2doYWtra2JCTFNHZ2tmN3FPdEM2OWdmKytTQ1BoTWI5QU5ZRlJBQ3lDY2NpMXFnZ2xnaE0rYTRCekFqVEo4WTZzZ1FSeWw5ajZsOS92RUJkaDYzNnRmN0pacjlJcGsrY0NTQWc0RjhFeHZVQ1Bod3QvYWFBQjZCZHlJUFNDaUFsa0VyQkZqKzZEVE9QcEZjNEJGOVNNY0RSWHM4Z2ZIZ0U5TXNGZGIzQ09ZMzlFQjdGVEFNRDR3UzhWVUFBdjBIVGh3UUVaQU54VFFyKzJYSjZFTEFGb0ZSQlNjOW9Da1ErNkxBSlpNY0ZFRmFZNHRpUFFMdmJLMVJzM1o1L2I2QlFEeG5GREIwQytjS1dBQ29GOTJKRlZBakl4cEFsam5EQmNZMUNINGVSSTZCUkNOSzkxT0cyWVFRa3N2U080RE5vWmdoU0RFbTJENmdheXBnQmFTVGpYTTRFb2dMSDFtUVBiMzRvQUlqb3daQm1CaWdnVkFrNGJwU0VaWEFBc0FsazF3QkJDT2RSRkE1TUxDZk45bUdvYWpueHU5SU9NQU9CVENYQTFMd0hHZkFjK2IzcEw1Qlh6NG95a3JJSHhlSFNVTlgxaUNFQTlnbHdMNktMajZnQVgrRHNpaWt4MVJjQVR3KzI0ektLQmY4YUFOd0dUeUVkTXdjUlIwVUJxcW5xMnRBdHB0cTRKMmY5ZzJvNSt4THpuZURENFlFVDVSN2syLzNveEpSSmNBQkh4REFWdyszSytMV1JZSXhBL01kS1ZoeWdENlJZWjhHc1oyeGNsUS9GRUI5Q09pUTQ4SWVrWkt2U01CTXBPcUdXbGZBVXAvWGpTN01maXc2a2NBTmJEU1ZiYlUzN1VLcUtPam13RENna1Fma0drWXRIWGhGZXp2WFdraUdsMUg2VURVTW9DNUF1cmtjd1FoRFFBMys4MlIwTjRNYzBpK1FFZjQ4am9IVGRReU02ZFc3YnEyY1MwN0FVcGdSNDhNSmtacDRNRmVFSmxDc0ltSjZ6RUhhQUVVOHd1TDBGOFM5Wk5GME5FWHpBbEtPWUExRVYzK1E4TVNFdWdtd2w5cCtGVWpOQjY2bFBJVkVISVRMSDVnbWd0a2Z6QVN1REVmcUFOUzNXWTB3M2poQkRCVkl5aFNlMkh1VGxJNDFuUjNiU2VScnIwMmg0UkZBRlg1THNsbzdyUWZHRXVMckxwYlYzK3FNK1ZNTDBpaWdPeUt5d0JFRzlmbE9nb01ZbWxaL1BoS0UwRHRpa3NVTUpzTEl0Rmdsb3d1QTNqUktYd0FNRUtvL2NHcVFQUUwwOXJDRXJjRndsd1pPLzZmQWgyaDQ3M2tqOEVyb0FXd3FYNnJjVlEwQUd3TlFPS2dWUHhSWTZTUi9zQk4vUm5ZQm9MeXV4OHlIOFFvSUg5dXdVeEd3bDk1SXhXVFJjTEpxQmprQkFjWUU2aEtLQzhXQ3cvNXdwZHVJUlJGTkg0aEFZbDFoREJDbFFPVkg1Ti9IditQWitEejVMMGZlUjh3MUkvNVA0bUEvVkFzekpOcEJpQk5BREhucGc3TGIrQ25PN1EvdUFDZ044TVlrQkFBTEM2LzFod1RLRWxwYjRhWmt1SExaazBJcGVaRUpUTm1NQUNKejdJU29WU2dFai9TajdqT3o3SDNJM0I4RnFrM0w1bmtzMW1EdW1OSWZtSitRdzR3VGxLbkF0Wis0QmI0c0J1K2lVYkMvTGw3QkNLbFhDQUhKWndKazVLMFM0N3IvMmsra0V0eFlHSVNWVkNjZXFPQWZQRUJpaHhBZ3NpNkFHQURzT3lZNUhOL0hkNDNxVEZuV1lwZkRwaUJoMHhJOHI0ZlVrNUl2bU0xLzZCK0dvQ1VGVEFPeFVMYlZ2K3ZBMEJNbk80dlAzdzI4UVBGRE1kQVJJZmxFOEQySHBGZ2hqRXN5eGF6TkFlUzAweFFFd1RyR3dZb0Jacm9NOXI5WXJvSloxYnptbTExb240R3ZzVHNKcm0vc3ZubFlrWHdrK053L05UOG9rM3JHakVkOFBFakxNdlJCRENxWUN1QVVJUkNQdENtWkFBaUltS2FZbzJPNDBqcE5sQjJhMzhDbkZWaER4K2o5UkIwQlBoVS9lVDdtVkhRY1hVRU15VXpERUpJQVVRQWdyWmxPOWU2cFFVMElkM3VCOFpvMkEvTmFpekxRVE1jYzRKbENHTjZCb0FKbUJhS2x1MVdpRnFPeDdWeFR2RThEeDRIRzdEbWNpSlFjUlJaUnhwclcvdUpTR253RVJjeUZ3VWtnTEtDUHN6djR3Ni9zaWtSY0UxQXQxQm5kbk51Y0hOY1lMb3VZRndkSVYwVFVGWHd6YkF5VmpERlBqa3RZd1ZEVUtJejV0VHZVditMS2tUenpGcnppVDZQNkUwM1A4dHJLbWE2WDBkbWwrNFZ3ZlBKWnFOOHlTTG05UDE4N3EreEtrSVNmR1E5SUdkNmEzVXVpQUd0YTFOK2dCcXo0emcxayttWXRtallxS0E0Nk93YkxpeE9LWUZKTmx3cnBHZ3lVNWdDcFBCRkVEblVQOVlXTG12bVMvczVXNi9vNy9tZ1E5WTJ2T2I5dnF0bi9ZL3J4SFZoa0k3U3FRcCtqY0FXQUpuLzYycnorcGxwQWZsVnBBVEE0ZEV3SWtJN1NscVUwS3dSS09ZTUMxUml3cnJwcWdzQmlnOU9jbGcwZXNaNmdnRFFqNndPQVFPajFyWTY1aCtqc2lxd0JFOXJrMm94OENYcVYvVDk0dkNyYUg3aCt6SDk4cmo4MGpvQXJPc0RHc0NHYlNJYWJuVExVUVY5VXJvUmpCZ0FvWUlBa0JDS2tuaC9LamZKY1BpcFJqa2srSDhLcEFMRjQ5dHFleDBDTHZlNW9iOUQwZ2d5ak1rVm44Lyt4bHp3KzVCMmlldkJxUG5WNEVOK080UytYMkZGQkxSbFhacHRHSFhaNTJHQWFvc1oxcFFEZWtWTVNxWUZRaXFKcUNCQTVBc1BkVXpWUVBIVXpFYlRhb0hpTnNFYXRWYm9NaDh2M0oralhONlJ5Zlh5dlB3OU9lLzNoY0FqV3hkUTRJUHBKWUJHL1poOHJnTlFNN2hHK1M4Y1ppeW1NeXdsay9hTW1Md2dUQmFVRUM4U2E2a1V6TEVGa2FOblJnVnFsT1BzOVZ1M2pUTExjREx2ODhXSU4xVSs5ZnZVOUtZalg3Z3daUTArUnVGcnBHTjByY0NXWU1UMEQ3ZXFvSVVRSnRuL0ZHdWJFbzRDRlk4QnNHMmxGYmFDNG9WbndXQUtDeDhqM3JCQ3ZpNi9jVU4rNzlnRGlGOU5zdW9uNWhlcGwybTM4YWFtWHRDR0l6VjJQYWpaQXZ5dEVGVkJiVmhaLzloMHo4RVhEQ3FJVVNHMmo5Z1BXYkpLMklDd2FKTDlUM2NaWUNSNFlZK0tEMlFZMEtEZURuUWNRRXVGRnJVMlBoK0dYRm0vTDFlL1liNGZscnFydnhIUzVHcXNQVVVWaEorRGxFd2hJTG5aLzJFS29VU1B4aHlqdHdSSzQzKytJU3BReVRlTTBhbUZiZGgyY2sxallybGZ3Zk9yK0h2WFFJSW13RWVmVC81NFl0QUIrRlQ5MmdJUFJyN2E5NHZJdDZyZldLaVZEOFk0UVN5dzNlb0xGa3l4aFJBS3d0bGpRUW54b2cyRVZDSUNNZ3l3cnM5NURWdmoraXc2bXJrRlB2Nnh5RUNERkQ2NEdhSFA5K0xMYnJER1VjOHR2dC95dzJmUmR1VldyWHZIYW9Fd1RHdkZEOVZmUGFLNUxwaGlSSC93Zy95UFZPTWwzUWltK0tTTUdHRitrQ0RtZ1ltWVpiKzBtd1VIMjRBdDM4ZjlGc1RTTVlTTzlhMzMzM1pTUFB6QjVGTDFCRUNDcDcraWp1OEM1ZXRXUHdZZVNkNnZMcjh4Rm1VZEJ5ZHJSNWZTTXNFVXY5eGN4Tno2aEZRWVJzZmVISWNJR1dDMGdGZ0NMTi9IY3h2QUFUeU8yTVk5ZklvRmRUQzU4cHZHVGZpczN5Yy94WkQ4WHZBeE4waCtMMWdEajdvV2RBZE0yLzBJeTdmRnRFd2hJREVRTm9NU280UjVZT0xOY1lEUXF4UWhJbFNBelc3SC8zTXVTcUhHdGF5UDV3Y1VwT0JoWmgvY2hCUStnS2Z3d2VjemZ0KzYrWEhDSk9rODdYczlEdmZSVnR0dDUzcGVSd3MwazlNQUVRSEpzV1R5a3I0d1AzUy9aSTRsdXZTQmllOHhFU2lZSzJRTjFhSjZlVENwWkNHYTVyR3NmVHFGeDJIK0xnT01KbmdLWHg3cEtuZ0EwSGUxd2VlVEg2cHVoNDlwbDVwMDdnQm9weDloR2Qvd013NDB4ZWVmanFPbUcvNmdnVkJBaEYvbCs0eXBoRERMTk1sYzZvMHdvU1o0M0xhZmNadkhFRllaRE9IQmc1bUhqNWY0ZWJnblpyV1ZWWS9nNFE4SlpqZVlYdloybkQvdUJ2amU2SjcwdndXQ3FCZHRnemJhYVR2WDh6dGFBSG10dGFYZTZyQ29tRUdKSnFsOVlCTFVFQ0NxMldOZ1FraWdVbExZbDB6ZmpjcEc2R3dkanNGWVJDMmhMN29WdkJRK2lkekY3T3JrSXNLbnlzZUk5NFJaKzVud01mQjQrR3pOK1hXQXM1c2ZwVkh4NDE0Ri9ISytQaitvZmFRMktQRjl4Z21FVFRVTUFHWWdFcWhSYXNJYzRHYndRMTlQeHZOcGxJdkV1WVVQNE1HSERkMXNTZEF4bHdVZGNiQnBuV3kwbTRTTmNDMzlSVTEyMHdIQ0kycVcyRXNDY3lWZFZRb2hYcXlxNFpLK2NCOGR5OFNlWEEyOVdTWklRNkVqckl4cTIxUVA0R1h3TWRqSXpXNVF2clVYNDBBRGZEY3h2VWhEeFlSekhXby9BakM3ZlFpSGJNSDNTUWF1aWsvb2d4SURJZndvalk3VDBUTUtZT29iYmw3Uk5XY1NCYU1mWi8xRkQxN0R2d3VLcDc1ZURES2k2bkUrQndFTXFnZWZENU9MRU8wbUVTOVNMcG5mdHpJbEU0M3FVS3ZkcG12RTZ5SGRnUDdPdmlTb2MxTjhUSlVqZ3hCS2lHUTFYeno3amdsaVRJbkFSOHRBTkJCU0hRT2tDQ3BZQ0dBajBJZ0F3dXhLd3R4SHVnQlF3V3VEejZvZi9iNmFjaGtSbGR0M21DN3JSaFZzTThWUWt3V05KZ1ZBUUlnZUJneHA1d0FHelJYU0pLdHFsU0RVTlZtSzRCSEFBSjROTkJRKytudXRQUnlKOHBtZ28yQjY2ekpydDQrcnNhNWNuRU5pODRPU3ZuZ3g4d21oZ3FxRUFvWDRoQlpDQUFPQXRBVGd4RDlzZ2RBSEdXbDZCZGZ4eWlkUnJvTFA2RndWdVdSMk0vZ0VRTy8zclV6SkdpOWpOVkk5K1BhMWdNeWtDeFBhalNsR041VWtxVStvT1paa0xzYlFwZEd4bWtLcmhFMFFhWnFadnd2L045QnhIODE1ckcya3F3bG1BSGo5MGl2NkxFd3lCNStQOFBtdXRnQWZUZS9EWitzTXQ5dkgwN2F1bkU1a01xWllJTlNoVzhHeFQ2TGpxSVR3Qzl2VlVKV01rTEdtUW1wTnRXTU5rQ044OVBsaXhHdVN6Q1g0V3FMZU9zRm9XNGpjL3BPS3F5cEFQZGhWWjB5eHppbEpsWkNCU1FwaHJvYUVxNnRXOEN4OHVMYU8xRkhsUzNvNEd2RDVJVlo0OXFCK1U5clhXMWMzdVAwZ2JmY09OTVdOcUpncXVPWk5NWEpyUGlnUkVDNjlJc09kb0V3YUhPaEFnUEZCak9BMTRWTUE0ZlBCOUlidU5hZ3gvakRrajZPYTN1MisrNGs1TDEzYW8yQ0t1eUM4OUFNLzlrNEJwQ0pxcWlhRmErZytFM0J3QlFPTTZVdmdleGMvcThwRWN3bStOT0ZjMTNhZUdNeTZId1JSOGNiS296RkJMYWFNQVFuTUc1VVFPVGVmbmxuM3lnUTFOQ0F5UUdtcVlSbElPYzdBaDJ1SjZiMzBBdzA2Y0IrT2JnbWptZ2tmdXRvdzBNQXVMUFM0dzNmQmQrcisxdlhUaVdrQlNWRExUejVnQkhWSkJYMVFBdldCQ2hrSVlTSUpJRWRYVzdQTVFBV2cyUkxVMHVRWDVUb2VRSWw0Q1IvdU9aYjYxWVR6eE1BMTZvTklYekY2U001OUtRNVdzTG5Cb0lJcGhLcE9xb1lNR2xURk5HbE5HTnRxTmJmMDkzUWVSd0lmZkQ2Qkx4L2gwcTUrdGE5MzFMYytRY2RoYUJLNjZjUVVXd2hEYnRDYVlnL2h1OUVjRDd4SkJvUzJXQmgxZndxYlBWYjhQZVQ2cUh3V1B1djdpZG4xcGxlaVh2WDlaSkJwblZvNVFWU04rU2d5cFROWFFmRUhqL3R4ZGZRRlg5Umd3SnRHaVl6RlQxc1VlQUFRKzVBVndCUktDNTE4anVOTkNkZWo4aFhoeTN5L2MxOFMzNjlPclJ6enBVL1M0VllGZi9QV1Y2TXBoZ3BTZGF3cHBrL1lBU0pWcmF2TzRSdGM4Tk1vRVhUZ0hnVHcvSW40SENId21IRjQxcXArazBUU0RwNkZ5V204VUIxRE42TlJwb2Z3NnZsdm1hallLS0hBb2lhWmZxRUZhOWkybkFQd0N2QmRQVC92QmpsOEFjQWo0cmZDZGFpKzN3NWUvS1NjZXZITUYrN3VuK2tOTkRudFo5TXhMZU5WVUNBOGY4SUpHRlFvRDZCTUFKZDBpWWVKVUkxU20ydGNXM3ZKb2VBZUtCc1dRQVJITXI4alViOEJubjFTMnJFK3h6WmJnSE9LRzNOSURJUUFjQ1FJUndYUmdLY0F2eWp3RVVDb0grNjNzZm90VWVPTjFhTnVZL1ZKS1dKK1Z4NlZDVWIxQjJXMitkSW43YlF3blRPc3JBQXpqSDVXNHd1S0dxb0tRcUdvV0VFQkcxREJueHRlZUIzQ3A4cDN3c04zWEthVi92cXRyd2Y0QUNEVXVrNnZuRFNLZHZBOGZ1VDBnS3RzUVcxbzhtUmU4Zm5qQW9Tb2tqZkZZaVovcGNvVkFvY1JnQU9VRmpwc2IvenF4V0IyQVNDVVR3dVU3Nml6QUFJK3VBeDFjdmtPWHZpa25ZcTVzbHp5bDc1Z2hIRFdYWDM3dUJSQWtVTm8xVEFIcS9SL3dHWUx6aGVZQVo0eHZiaW5tdDdVL09MNTZnL0tUQnBCdS9BOE1tcjZqY05pM21RQlIrOXpxZm9jYlFBb1NtWFVrSXBvNFNLQWRoKzJDUjFyWG92cUY0R1A2b2MvaVA3S3RJTksxMzdmWFhqaGszWUo4UVBmT0N3dldCejlBb0NxU2xFRkxUaUVhWnphbnQ4RjM1V3pUMHJ1RCtvSEFLdi9OMm4wN01MejZEQ3RRL0tDa1JPMEVOSVVVcGtJb2pYSkRaaThTZTNjSDN3OTlmbDRmZDRQNmd2NHFIN2kvNzF4Mk5WaFY3dnd3aWZ0RXN3SFFtSHdvZ0VnWHo3Tk1NQ0lrREJROFBVb3dQR1lERHdCMmZ1WkNyZWFYdHlmQmVaWEFEelRxL20vU1lObk41NUh1dVdXRC9kekFBRUFBQ1NFQkpDMVJxc1pqQURNd29idEFuVGNoMnY5K3VmUFN3SGtzdTNWRC9kbjZxVVBIN1grcE9wdXZPN0p1NFlNMThja2R2eHFKRklkY1BpOStRc1Evdng1RTVsMnFHRUhiQlk2UXB6QWQyNVdZTWM5STN4UVB3MUFNSUtuem5pYlBINTIvRVJZTHhtL1JXd0JKSVFCUU1CeGJqWkFDSEFJMFRnMWdVdHFmMjJxTFFGVTArdk5yeWhnWGR0NXh5OTdFaStBOVZPNkFPei83Qm1IQWdCRDhXWXpBV25JUGpHeDlocDIrNjJ2eXowSUgrb0VRS2p6OHNObjYxb3ZrMGpRRHA4Skx4V3I3VWNGakdhWVFBaUE4QWN0Tk5nR2ROelhCbUIrSEk5SDdjSEQ5UVU2d0M1Qmg1cmUvbysrNUtSVUFIZjRsaWY0ZFBhR0NJQjg0UVlDZ2tFVEdZQWpTRG1FM045UlUxVUpIdThSNE9OenNQWUExbFZPSnhpa25UemFlNi9kUHlNQW1rQ0VNRkFGQ1FrQUZFWHNBS3dCcVQrVzRPWFhsR3NiNk9YZUNYeTFGMlFuNzNmaXowVjArZDdTWjU5ZmUvVXovZldsQitSbjdOc1VVZUR3ZmlIQTBaeDhENThBQUFrSFNVUkJWRFROazJLTzlmZDRNWVl2Rm42ZVFKZkRKditmVW5NTDhFVHhlZzdQSXM5ejVwRm42by9MVER4R08zdkFpNjkvOGM3NW93ZFh2M3Y4dmkyV1UvT2ZkaXpMQ3djZHk4cmkvVnVqbHRWWGVsdHRCZGRZL3ZZRFc3eHV1QmYyK1lKOW1QOVJ4d0R1N1AxTy9OblBQZnZFa2Z2LzZlL2RWTzhmM1B6Y3MrNkhpL1B1OU5LQys5RnJMOGoyMHVJeGg0TDkyR2NMUDF0YytPYVdMZHh2ajhYMjJlWHZTdUYrWGhQMzQyZW92ejAvNjc3MmxjTnU5c2xIM2NKL3puMTg0aHV4UHVEMlcrQS8vblgyS2J6c3FhbWVtNTJkRnRBQXdlcFBsOXpxeXJLNzhQYUt1M0xoYmRlLy9FdjNmditDMVBqLzViWC9rLzNZWnNFeExEaldsdEorN0ZzLy96TzVCKzZIK3dKS2dJZG5Rdm5PZngzNzYrMS91M3JteExjQUFhVGlRSDJvZ3N0THJ3Z1VxMi85T0VDNHNmNk9iQU5Bd0VtQThIOUNDYkFzZkRpSGhTQUNXcHhQOEtDQ3VDL3VUd0JSVndBbkhxR2RQU0FBbko2ZUNpWXZCM0JsK2FRamdJQUlBQUVlZ2dlSUNDTDJFVUlMSExkUlV5MHJnRHQ3YjN2bTdKRUFYRmtPQ2tpQVJnV1E4T0c4WVFBdUxTNmtDamd6WFJWd3o1RFc4a1VTQUdlbTNjTDhuRnY4emtzT01NQUVpd0lhQUVkVlFCeEgrRmdUWHRhdEpuaG0yczFNVDduWkNtRExXOXREdXdFZ1hqYk1NRjc0cUFEUzlPWTFUWEFKUUt1QU9JNEFubGwrUlNMdjRBTldBUGNRWVVPK0NoV1FBTUlIWEZ5WUZ3VjhiV25SQVE1RXcxQXRxaCsyQWMvYnExb0lJY3d5Q2o2bjZ0bWF5a2NRNFZzaUNLa0FEbmxKZS9sakFYQXFLdUQ4L0xjU0U3eThyT2tZQWtoNDJnQWtaSXlDY2J4VlEyN2pPRkhBbGVVQUlNdytGQmhLaktoOHBwcmd2WXllZmpla09XYW1wOFVFd3hUUEhaMXhnSEJoZmo0b0lmeEF3RUs0VUsrZFgyMG9JSldReHdHMnZOQkVReW1ock1qOUFUejRuVkJlSk1NQm9QaUFUeC81U2YzRnk3M1A0SUhudnY3a0h6MzNqWC81THBMUktGQ2V1Ym1qRXBGQ2tjUXZYSmgzcnk0dU9waGwxSUNHZ1FxQ0ZSYVlVMjZ6NXJFQWpOZURxY2M5QUR4S1VEMzRvclBURHNwODlLbnAzOXNIelYrL0lscGdidlliTDZBNzduT0hEbWxBTWdzd1ptT1pPeXJxQklWU2hWUXdjd2d0Z0FFOEtOeUNLdXFDcjNNWUFaME5ocXJ5N1NNdW4zdjJpU044K1ZBL3FKRXQzNXlaY2JNQzVJeEFTRVVFUklBTXFraTFZOXFHSnR1YVlKaG1CQjQ0QnFEaVhGeEQxQkFxQ0FobnBoM1V1QTVDMkNjQS92ZS9ILzgwSXVEcHFTa3hpUVFJL2hrTGZUdldpSDdsczdkKzNQQUQ0UnZTQjhRMnpzR3hBSFRSQnhsUVVacGZRQ2Mrbi9oOVVNRnA5OElMejA3dmsrYXZYek1BT0QwbEx4OXFwMzZaK21qQjVOSjBJbGlBY3ZsaUZkQXFJZnhFQWM3N2ZWQTVtRzViMUIvMHBubCtUdTZMUDRhbm4vemErVG9LWnArd0NWTUhDUEhTRVlBODluQlBmRUFGTWZjQjU5ejhITXF6U1FrbXVSQ1lpRSs0dkNSbUYrcWFGNlI1b0k3d0RhR0VBQkFxQ0ZPTTU5b25yNkYrVFNnT0FFUVFnaG8rbjRJMkY5TXlWdjJvaUtoTjF4MkFXakhtRytZWDBBRXlLS1FvcDZoaWpJZ0JINVNSUGlYTU0xeUM2Z3Z1RXk2UmhwRW9lS3JuZWoydmdsTmVpYndhU1ZDQ1FNUkd3MUJEYjFhWk40VHBCV3hVUGhzVlk3OEFDaVcwa0tKSEJHVmxXUUlUcUI5VXNDcmdQZ0FRdWJiWnA0LzhCSW9Ec3d1ZkRwQ1V3QkZ6bVp2VERDVGJQY2NnQklHSUJDNGVNbEhFNWFVUUJRTmlwSHdBSG5wQXFnKzREOERqVjRUNjRZVURRQUFBSHkvazZyeFBSMVVUQmZPbWxBbHBmTWFBZzRGSlVzUGNlcE1yb0VueWVkYW5kYUtQQ1pNUC93OCs2Qk5QL1BNeW5vdlBXT3M5M2dMdy82Q0M4UDBPOTlRSGhBbUVJcUlBanRsWlFNUENmYkZXMHh6OVJZSFkrNHdBVkhKK0pucUd5VWJ3SWlaODdsbUJIL2RtSXJ5cTRCNkhMdjk2enovN3pGMVFRUVloSVFxbXo0ZitZUjl3YUMrR0JnN1dCeFNvZUl5QnpRWWVrZ1AwNWxhaVhmaVkwNW9MeEdlNGg2Z2g4cEt6MzNnaGY4NzYvejNZQWpZSUFZQlVRUUFwU1dxVEdsRTFWR1dVWUFFQmd5bFdNYVVyRHlaWElEWUJDeUROQnJ3eXlRMHpqK3ZodmpVSTJZT3c1Vi9KQmlHSWRBa0dRS0IvWjJ1YmJLWlBLRFh5ZVF4UWZHQmlBeElDeGw0VVJNRTRIdGVHNmtIOXFId3d2M1V5VXY2bTl1ai9HWVRBLzRNcGhFbUZ2d1l3QW1BRXl5ZVNKUm8yd1VneElQSERxd0NYQU9iVE5WQkRxNkpVVE53YkFRalVGMEZJSFFtelI0RXJmUzJvalVUQ3ZrOFlwaGRBVGswOUprVk1NY3l4TWNsaG56OEh4d01nNUJGeG52aVFNTDErYktFR0hhbmZxSWx1N1JjR2dERC9Na2wrcWllcEdQaWxwZWV0Ky9aZ0MwQng0UFJQWTNDcUFQaVlBQVdvV0FDWExkaXZvUFk4bkJvNWk4L0hvTVdyS1V3N2xSQUtDT0RFdjV6U0thRzRKNkdGRDRqcllwVE9IbXpxK3BYYVdrQzc0eFE4cUpnR0lCcWxBZ3FBRS9LRUpzcWx1VWFDR1Q0ZS9EdnNnL29oRU5IMGpVblpISjBOMTRINXhubm9CWUdmQ0xPUFB3SUErTlJUMDdVdnVPMWw3Y1g5TUhsUU5VYkJDcDJPaW9GNkFRNUF3dmtlL2N1L2xLSDVlWThIZ3c4R0hJQUwyemlYeDlweGdWQkh3Q3BCeVBTMG1GL0FWOGNFN2tYS09yNFRBSVNKaFM4R0VBa2dWVS9VeWtlNGpHSUJKZFFPRU1tOERnUWZkdERDZDE0UzB3c2ZFTmRSUlVTdkIxUU9QcWIxSGF2djEvRjY5djVIOEFON3ZkN3FmZmZkRnlDMHBoalFxTzhHLzAxOU9JVklneFgxQnhVcWJGdC9zYlJOMzVJMWpxbCszOTduclBNYnd2UkJBUUVoSWxKc2wrREJQb0pqSWVRK1crTnpxQ2tLQXc4TmRLTDY0WHExRDdqejFleWZEd0VobFJBZ1doZ0JKSHhFbERZd3UvYnpYTlM0RmdILzhwZS8vRzgxOTdkL0dCdjZUUUVEb0FBZ2hORFdVRWRiQ0ZPcExoMW4xSFcxQmh4RFg4ZitQUUNCQ1VDRVloSEFlejkxcnh1bDRIZ2N4L05ZZTlVVDhLcnE3VisyeHZybTk5NzdpZGsvL1pNNzNGMGYrZk5RN3Y3WVg0VHQvTFA4T0J4cnk5OSs2bTgrT2RZRDFJUDNkd3NBbUE5LytBOGNDbUd6UUJIR2ZCLzNBMGljaC9QdnZQUE8xYXA4KzV1bnNiODlnUG5ZM1I4N1JRanZ1T09QSFF2QXN0djRmMTd3T2MrOTk1Ti9WZWY5anYwRzZnbXloZ3doQkZBNVpLWC84emdDQ2xOZWV6Z3FUTnR1QVF6ZkFvUUVxZ1FkOXhFK0tCKzJLM3piYnZaNm9tMEJRSGozUFhjdkF5cWFWUUpwYS9zWnpHNVZQdHVLZFh0SExRQ2ZFSUhKeHovK2wwYysrdEc3NWo3eWtUOTdLUy9Zajg5eFhJVnZSODFkVDY0dFVGdWd0a0J0Z2RvQ3RRVnVid3Y4UDQ4NGpoNW5NM3hMQUFBQUFFbEZUa1N1UW1DQyIvPgo8L2RlZnM+Cjwvc3ZnPgo="}),I.a.createElement("div",{className:n.noticeHeaderTitle},l("video_coming_soon"))),I.a.createElement("div",{className:n.noticeMessage,dangerouslySetInnerHTML:l("dont_close_page")}),I.a.createElement("a",{className:n.noticeButton,onClick:u,href:"#"},l("video_coming_ok"))),I.a.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjMwIiBoZWlnaHQ9IjIzMCIgdmlld0JveD0iMCAwIDIzMCAyMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiPgo8cGF0aCBkPSJNMTA2LjkyNSA3MC4xMDYxQzg3LjE4NDYgNTguOTk0NSA2OC41MTcxIDU2LjUxNDIgNjguMjM1NCA1Ni40NzkyQzY3LjMxMzEgNTYuMzYzOSA2Ni40NzM2IDU3LjAxNzcgNjYuMzU3NSA1Ny45NDE1QzY2LjI0MDYgNTguODYyOSA2Ni44OTkgNTkuNzAxMSA2Ny44MTg5IDU5LjgyMDlDNjguMjI4NyA1OS44NzE5IDEwOS4wMTUgNjUuMzI0NiAxMzIuODA1IDk2LjQ3MDRDMTQ3LjUyIDExNS43MzEgMTUyLjgxNyAxNDAuNzM5IDE0OC41NTEgMTcwLjgwM0MxNDguNDE5IDE3MS43MjMgMTQ5LjA2IDE3Mi41NzUgMTQ5Ljk4MiAxNzIuNzA1QzE1MC45MDMgMTcyLjgzNiAxNTEuNzU0IDE3Mi4xOTYgMTUxLjg4NSAxNzEuMjc1QzE1Ni4yODUgMTQwLjI3MiAxNTAuNzU5IDExNC40MDcgMTM1LjQ2MiA5NC4zOTk3QzEyNy4xNzIgODMuNTYwNSAxMTYuOTEgNzUuNzI2NyAxMDYuOTI1IDcwLjEwNjFaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMTY5Ljk2MiAxNTIuNTE3QzE2OS4zMzkgMTUyLjE2NiAxNjguNTM1IDE1Mi4yNDEgMTY3Ljk4NCAxNTIuNzU4TDE1MC4wMzggMTY5LjU5OUwxNDAuMDU2IDE0NC4yMTNDMTM5LjcxNiAxNDMuMzQ5IDEzOC43MzkgMTQyLjkyMiAxMzcuODczIDE0My4yNjJDMTM3LjAwOCAxNDMuNjAyIDEzNi41ODMgMTQ0LjU4IDEzNi45MjIgMTQ1LjQ0NUwxNDcuODEzIDE3My4xNEMxNDguMDIgMTczLjY1OCAxNDguNDY4IDE3NC4wNDYgMTQ5LjAwOSAxNzQuMTY3QzE0OS41NTQgMTc0LjI5IDE1MC4xMjMgMTc0LjEzMyAxNTAuNTMxIDE3My43NTJMMTcwLjI4NyAxNTUuMjExQzE3MC45NjYgMTU0LjU3NSAxNzAuOTk5IDE1My41MSAxNzAuMzYzIDE1Mi44MzFDMTcwLjI0NCAxNTIuNzA0IDE3MC4xMDggMTUyLjU5OSAxNjkuOTYyIDE1Mi41MTdaIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwIj4KPHJlY3Qgd2lkdGg9IjE2OC4zNTkiIGhlaWdodD0iMTY4LjM1OSIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0ibWF0cml4KDAuODcxNDMxIDAuNDkwNTE5IDAuNDkwNTE5IC0wLjg3MTQzMSAwIDE0Ni43MTMpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",className:n.arrowImage}))),I.a.createElement(O.a,j({},t,{showConfirmOnClose:!0})))})),D=I.a.memo((function(e){var t=e.styles;return I.a.useEffect((function(){var e=document.querySelector(".media-result"),n=document.querySelector(".result-box.video");e&&n&&(e.classList.add(t.sfResultContainer),n.classList.add(t.sfResult));var r=document.querySelector("#modal-container");return r&&(r.style.display="none"),function(){e&&n&&(e.classList.remove(t.sfResultContainer),n.classList.remove(t.sfResult));var i=document.querySelector(".modal-text-cont-for-js");i&&i.children.length&&r&&(r.style.display="block",r.classList.add("open"),window.dispatchEvent(new Event("resize")))}}),[]),I.a.createElement("div",{className:t.overlay})})),R=F;g.a.isSingle()&&Object(o.b)("savefrom",(function(e,t){var n=Object(i.a)(t),o=t.preferences;r.a.onMessage.addListener((function(e,t,n){"updatePreferences"!==e.action||Object.assign(o,e.preferences)})),setTimeout((function(){return a.run()}));var a={name:e,scriptId:"savefrom__ext_script",dataAttr:"data-extension-disabled",attrObservers:[],run:function(){if(a.setExtParams(),location.href.search(/\/(update-helper|userjs-setup)\.php/i)>-1){var e=document.getElementById("js-not-remind");e&&e.addEventListener("click",(function(e){0===e.button&&r.a.sendMessage({action:"hideUserjsMigrationInfo"})}))}else y.a.isAvailable()&&this.mutationMode.enable()},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop()},enable:function(){if(this.observer)return this.observer.start();this.observer=new y.a({queries:[{css:"form",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)a.waitFormId(t),a.mutationMode.stop()}},{css:'[href="#muxer"][data-sources]',is:"added",callback:function(e){e.added.forEach((function(e){e.removeAttribute("download"),e.dataset.watched||(e.dataset.watched="1",e.addEventListener("click",(function(t){t.preventDefault();var n=JSON.parse(e.dataset.sources);S()(Object(M.createElement)(R,n),document.body)})))}))}}]})}},waitFormId:function(e){var t=this,n=new w.a({attrs:[{name:"id",callback:function(n){"sf_form"===n.value&&(a.bindForm(e),t.attrObservers.splice(0).forEach((function(e){return e.stop()})))}}],target:e});this.attrObservers.push(n)},bindForm:function(e){e.addEventListener("submit",(function(t){var i=e.sf_url.value;if(i&&"1"!=e.getAttribute(a.dataAttr)){var o={getVKLinks:[/^https?:\/\/(?:[a-z]+\.)?(?:vk\.com|vkontakte\.ru)\/(video-?\d+_-?\d+)/i,/^https?:\/\/(?:[a-z]+\.)?(?:vk\.com|vkontakte\.ru)\/video_ext.php\?(.*oid=-?\d+.*)$/i,/^https?:\/\/(?:[a-z]+\.)?(?:vk\.com|vkontakte\.ru)\/[\w\-\.]+\?.*z=(video-?\d+_-?\d+)/i],getYoutubeLinks:[/^https?:\/\/(?:[a-z]+\.)?youtube\.com\/(?:#!?\/)?watch\?.*v=([\w\-]+)/i,/^https?:\/\/(?:[a-z0-9]+\.)?youtube\.com\/(?:embed|v)\/([\w\-]+)/i,/^https?:\/\/(?:[a-z]+\.)?youtu\.be\/([\w\-]+)/i],getVimeoLinks:[/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/(?:\w+\#)?(\d+)/i,/^https?:\/\/player\.vimeo\.com\/video\/(\d+)/i,/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/channels\/(?:[^\/]+)\/(\d+)$/i,/^https?:\/\/(?:[\w\-]+\.)?vimeo\.com\/[^\/]+\/review\/(\d+)\/(?:\d+)/i],getDailymotionLinks:[/^http:\/\/(?:www\.)?dai\.ly\/([a-z0-9]+)_?/i,/^https?:\/\/(?:[\w]+\.)?dailymotion\.com(?:\/embed|\/swf)?\/video\/([a-z0-9]+)_?/i],getFacebookLinks:[/^https?:\/\/(?:[\w]+\.)?facebook\.com(?:\/video)?\/video.php.*[?&]{1}v=([0-9]+).*/i,/^https?:\/\/(?:[\w]+\.)?facebook\.com\/.+\/videos(?:\/\w[^\/]+)?\/(\d+)/i],getMailruLinks:[/^https?:\/\/my\.mail\.ru\/([^\/]+\/[^\/]+\/[^\/]+\/[^\/]+\/[^\/]+\.html).*/i,/^https?:\/\/videoapi\.my\.mail\.ru\/videos\/(embed\/[^\/]+\/[^\/]+\/[^\/]+\/[^\/]+\.html).*/i]};for(var s in o)for(var l=0;l<o[s].length;l++){var u=i.match(o[s][l]);if(u&&u.length>1){u=u[1];var c=n.getMatchFirst(i,/list=([\w\-]+)/i);t.preventDefault(),t.stopPropagation();var d={extVideoId:u,action:s,checkSubtitles:!0,checkLinks:!0};return"getVimeoLinks"===s&&(d.url=i),r.a.sendMessage(d,(function(e){a.setLinks(e.action,e.extVideoId,e.links,e.title,null,e.subtitles,c,e.duration,e.thumb,e.checkLinks)})),!1}}}}),!1),document.body.addEventListener("click",(function(e){var t=e.target;if("I"===t.tagName&&t.classList.contains("file-info-btn"))a.onInfoBtnClick.call(t,e);else{if("A"!=t.tagName){if("A"!=t.parentNode.tagName)return;t=t.parentNode}if((r.a.isChrome||r.a.isFirefox||r.a.isGM)&&t.classList.contains("link-download")&&!t.classList.contains("disabled")&&t.getAttribute("download"))return t.classList.contains("ga_track_events")&&t.getAttribute("data-ga-event")&&u.a.trigger(t,"sendstats",{bubbles:!0,cancelable:!1}),n.downloadOnClick(e,null,{withoutPropagation:!0});var i=t.getAttribute("data-video-id");if(i&&"1"!=t.getAttribute(a.dataAttr)){var o={vk:"getVKLinks",yt:"getYoutubeLinks"};if(2==(i=i.split(":",2)).length&&o[i[0]]){e.preventDefault(),e.stopPropagation(),t.style.display="none",t.id||(t.id=i[0]+"_"+i[1]+"_"+1e3*Math.random()+"_"+(new Date).getTime());var s={extVideoId:i[1],action:o[i[0]],checkSubtitles:!0,checkLinks:!0};return r.a.sendMessage(s,(function(e){a.setLinks(e.action,e.extVideoId,e.links,e.title,t,e.subtitles,null,e.duration,e.thumb,e.checkLinks)})),!1}}}}),!0)},onInfoBtnClick:function(e){if(e.preventDefault(),e.stopPropagation(),!this.classList.contains("sf-clicked")){this.classList.add("sf-clicked");var t="sf-btn"+function(){for(var e=Date.now(),t=e;e===t;)t=Date.now();return t}();this.classList.add(t);var i=function(){var e=document.getElementsByClassName("sf-script")[0];void 0!==e&&e.parentNode.removeChild(e)};i(),document.body.appendChild(d.a.create("script",{class:"sf-script",text:'(function(btnClassName){try{var btn=document.getElementsByClassName(btnClassName);var $btn=$(btn);$btn.unbind("click").removeAttr("onclick").addClass("active");if(btn.onclick){btn.onclick=null}var parent=$btn.closest(".result-box").find(".meta")[0];if(!parent){return}var boxId="file_info"+btnClassName;var box=sf.append(parent,"div",{"id":boxId,"class":"media-info"});sf.append(box,"span",{id:boxId+"_busy"});sf.busy(boxId+"_busy",true)}catch(err){}})('+JSON.stringify(t)+")"}));var o=this.nextElementSibling.href,a=this.nextElementSibling.textContent;r.a.sendMessage({action:"getFileSize",url:o},(function(e){var o=e.fileSize,s={size:{name:{trans:r.a.i18n.getMessage("size")},value:n.sizeHuman(o)}};i(),document.body.appendChild(d.a.create("script",{class:"sf-script",text:'(function(btnClassName,title,json){try{var busy=document.getElementById("file_info"+btnClassName+"_busy");$(busy).slideUp();var btn=document.getElementsByClassName(btnClassName);sf.fileInfo.show(json,title,btn,busy.parentNode)}catch(err){}})('+[JSON.stringify(t),JSON.stringify(a),JSON.stringify(s)].join(",")+")"}))}))}},setExtParams:function(){var e=d.a.create("script",{id:"savefrom__ext_params",type:"text/javascript"}),t={id:o.sfHelperName,version:o.version,enable:1};e.textContent='(function(json){try{if(window.setBrowserExtension&&typeof setBrowserExtension=="function"){setBrowserExtension(json)}}catch(err){}})('+JSON.stringify(t)+")",document.body.appendChild(e)},setLinks:function(e,t,n,r,i,o,s,l,u,c){if(!1!==c)switch(e){case"getYoutubeLinks":a.setYoutubeLinks(t,n,r,i,o,s,l,u);break;case"getVKLinks":a.setVKLinks(t,n,r,i,l,u);break;case"getVimeoLinks":a.setVimeoLinks(t,n,r,i,l,u);break;case"getDailymotionLinks":a.setDailymotionLinks(t,n,r,i,l,u);break;case"getFacebookLinks":a.setFacebookLinks(t,n,r,i,l,u);break;case"getMailruLinks":a.setMailruLinks(t,n,r,i,l,u)}else a.handleError(i)},handleError:function(e){if(e)e&&(e.style.display="",e.setAttribute(a.dataAttr,"1"),e.click());else{var t=document.getElementById("sf_form");t&&(t.setAttribute(a.dataAttr,"1"),t.submit(),t.removeAttribute(a.dataAttr))}},showVideoResult:function(e,t){e&&e.url&&e.url.length?x()([t&&t.id,e],(function(e,t){if(e){var n=document.getElementById(e);sf.result.replaceAjaxResult(t,!0,!0,n)}else sf.finishRequest(!0),sf.videoResult.show(t)})):a.handleError(t)},setVKLinks:function(e,t,r,i,o,s){if(e&&t){var l={id:e,url:t,hosting:"vk.com (h)",meta:{title:r?p.a.modify(r):"download",source:"http://vk.com/"+e,duration:n.secondsToDuration(o)}};s&&(l.thumb=s);for(var u=0;u<l.url.length;u++)l.url[u].info_url="#",!l.url[u].ext&&l.url[u].type&&(l.url[u].ext=l.url[u].type),l.sd||l.url[u].subname?!l.hd&&l.url[u].subname&&parseInt(l.url[u].subname)>=720&&(l.hd={url:l.url[u].url}):l.sd={url:l.url[u].url};a.showVideoResult(l,i)}else a.handleError(i)},setYoutubeLinks:function(e,t,i,o,s,l,u){if(!e||!t)return a.handleError(o);var c={id:e,url:[],hosting:"101 (h)",meta:{title:i?p.a.modify(i):"download",source:e?"http://youtube.com/watch?v="+e:"",duration:n.secondsToDuration(u)},thumb:e?"http://i.ytimg.com/vi/"+e+"/hqdefault.jpg":""},d=!1;n.video.yt.init();var f=t.meta||{},h=n.video.yt.format;for(var m in h){var g=h[m];for(var v in g){var b=f[v]||{};if(t[v]){!d&&t[v].search(/(\?|&)sig(nature)?=/i)>-1&&(d=!0);var y=g[v].quality;b.quality&&(y=b.quality);var A={url:t[v],name:m,subname:y,info_url:"#",type:m,quality:y,attr:{}};g[v].sFps&&(A.subname+=" "+(b.fps||60)),["Audio AAC","Audio Vorbis","Audio Opus"].includes(m)&&(A.attr.style="white-space: nowrap;");var w={"Audio AAC":{type:"AAC",ext:"aac"},"Audio Vorbis":{type:"Vorbis",ext:"webm"},"Audio Opus":{type:"Opus",ext:"webm"}};g[v]["3d"]?(A.name="3D "+A.name,A["3d"]=!0):g[v].noAudio?(A.group="MP4 ",A.attr.class="no-audio"):w[m]?A=Object.assign({},A,w[m]):("flv"!==m.toLowerCase()||c.sd||(c.sd={url:t[v]}),parseInt(y)>=720&&c.sd&&!c.hd&&(c.hd={url:t[v]})),void 0===A.ext&&A.type&&(A.ext=A.type.toLowerCase()),c.url.push(A),delete t[v]}}}if(d){if(s&&s.length>0){var k=e.replace(/[^\w]/,"_"),x="yt_subs_btn_"+k;k="yt_subs_"+k;var C=c.meta.title?btoa(n.utf8Encode(c.meta.title)):"";c.action=[],c.action.push({name:r.a.i18n.getMessage("subtitles"),attr:{id:x,href:"#"},bind:{click:{fn:'sf.youtubeSubtitles("{vid}","{subsId}","{btnId}","{subtToken}","{subsTitle}")'.replace("{vid}",e).replace("{subsId}",k).replace("{btnId}","#"+x).replace("{subtToken}","extension").replace("{subsTitle}",C)}}})}if(!c.url.find((function(e){var t="MP4"===e.type.toLowerCase()&&parseInt(e.quality)>=720;return(!e.attr||"no-audio"!==e.attr.class)&&t}))&&t.meta&&t.meta.muxer){var S=t.meta.muxer;c.url.push({ext:S.mmProps.format,type:S.mmProps.format.toUpperCase(),url:"#muxer",name:"MP4",subname:S.quality,info_url:"#",quality:S.quality,attr:{"data-sources":JSON.stringify(S.mmProps)}})}a.showVideoResult(c,o)}else a.handleError(o)},setVimeoLinks:function(e,t,r,i,o,s){if(e&&t){t&&Array.isArray(t)&&(t=t.sort((function(e,t){var n=parseInt(e.height),r=parseInt(t.height);return isNaN(n)&&isNaN(r)?0:isNaN(n)?-1:isNaN(r)?1:n>r?-1:n===r?0:1})));var l={id:e,url:t,hosting:"vimeo.com (h)",meta:{title:r?p.a.modify(r):"download",source:"http://vimeo.com/"+e,duration:n.secondsToDuration(o)}};s&&(l.thumb=s);for(var u=0;u<l.url.length;u++)l.url[u].info_url="#",!l.url[u].ext&&l.url[u].type&&(l.url[u].ext=l.url[u].type),l.sd||"SD"!=l.url[u].name?l.hd||"HD"!=l.url[u].name||(l.hd={url:l.url[u].url}):l.sd={url:l.url[u].url};a.showVideoResult(l,i)}else a.handleError(i)},setDailymotionLinks:function(e,t,r,i,o,s){if(e&&t){var l=t.filter((function(e){if(!e.extra)return!0})),u={id:e,url:l=l.map((function(e){if(e.ext&&e.name){var t=e.name.match(/\d+x(\d+)/);t&&t[1]&&(e.name=e.ext.toUpperCase()+" "+(t&&t[1]))}return e})),hosting:"dailymotion.com (h)",meta:{title:r?p.a.modify(r):"download",source:"http://dai.ly/"+e,duration:n.secondsToDuration(o)}};s&&(u.thumb=s);for(var c,d=0,f=0,h=0;c=l[h];h++)c.info_url="#",c.height>=720?d<c.height&&(u.hd={url:c.url},d=c.height):f<c.height&&(u.sd={url:c.url},f=c.height),delete c.height;a.showVideoResult(u,i)}else a.handleError(i)},setFacebookLinks:function(e,t,r,i,o,s){if(e&&t){var l={id:e,url:t,hosting:"facebook.com (h)",meta:{title:r?p.a.modify(r):"download",source:"https://facebook.com/video.php?v="+e,duration:n.secondsToDuration(o)}};s&&(l.thumb=s);for(var u,c=0;u=t[c];c++)u.info_url="#","SD"===u.name?l.sd={url:u.url}:"HD"===u.name&&(l.hd={url:u.url}),u.subname=u.name,u.name=u.ext;a.showVideoResult(l,i)}else a.handleError(i)},setMailruLinks:function(e,t,r,i,o,s){if(e&&t){var l={id:e,url:t,hosting:"mail.ru (h)",meta:{title:r?p.a.modify(r):"download",source:"http://my.mail.ru/"+e,duration:n.secondsToDuration(o)}};s&&(l.thumb=s);for(var u,c=0,d=0;u=l.url[d];d++)u.info_url="#",isNaN(parseInt(u.subname))?"sd"===u.subname.toLowerCase()?l.sd={url:u.url}:"hd"===u.subname.toLowerCase()&&(l.hd={url:u.url}):(c<u.subname&&u.subname<720&&(l.sd={url:u.url},c=u.subname),!l.hd&&u.subname>="720"&&(l.hd={url:u.url}));a.showVideoResult(l,i)}else a.handleError(i)}}}),(function(){return s()()?r.a.isGM&&-1!==location.href.indexOf("/tools/helper-check.html"):["/faq.php","/advertising.php","/EULA.html","/terms.html","/privacy-policy.html","/apk","/webmaster.php"].every((function(e){return-1===location.href.indexOf(e)}))}))},88:function(e,t,n){var r=n(32),i=n(107);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o,a=0,s={injectType:"lazyStyleTag",insert:"head",singleton:!1},l={};l.locals=i.locals||{},l.use=function(){return a++||(o=r(i,s)),l},l.unuse=function(){a>0&&!--a&&(o(),o=null)},e.exports=l}})},function(e){!function(e){function t(t){for(var r,a,s=t[0],l=t[1],u=t[2],d=0,f=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&f.push(i[a][0]),i[a]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(c&&c(t);f.length;)f.shift()();return o.push.apply(o,u||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],r=!0,s=1;s<n.length;s++){var l=n[s];0!==i[l]&&(r=!1)}r&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var r={},i={4:0},o=[];function a(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var s=window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var c=l;o.push([108,0]),n()}({108:function(e,t,n){n.r(t);var r=n(0),o=n(2),a=n.n(o),s=n(25),l=n.n(s),u=n(51),c=n.n(u),d=n(3),f=n.n(d),p=n(9),m=n.n(p),g=n(13),v=n.n(g),b=n(8),y=n.n(b),A=n(11),w=n(18),k=n.n(w),x=n(29),C=n.n(x),S=n(10),M=n(5),_=n.n(M),I=n(14),O=n.n(I),E=n(6),L=n.n(E),N=n(22),T=n.n(N),j=n(17),F=n(7),D=n(12),R=L()("instagram");v.a.isSingle()&&Object(S.b)("instagram",(function(e,t){var n=Object(A.a)(t),o=t.preferences,s=o.moduleInstagram?1:0;r.a.onMessage.addListener((function(t,n,r){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return r({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return d.changeState(t.state)}if("updatePreferences"!==t.action){if(s)return"updateLinks"===t.action?d.updateLinks():void 0}else Object.assign(o,t.preferences)})),s&&setTimeout((function(){d.run()}));var l,u,d={urlR:/\/\/[^\/]+\.[^\/]+\/p\//,lastWaitEl:null,dlBtnClassName:"savefrom-helper--btn",styleEl:null,queryHash:window.localStorage.getItem("_sf_query_hash")||"a9441f24ac73000fa17fe6e6da11d59d",run:function(){s=1,this.insertStyle(),y.a.isAvailable()&&this.mutationMode.enable()},rmStyle:function(){this.styleEl&&this.styleEl.parentNode&&this.styleEl.parentNode.removeChild(this.styleEl)},insertStyle:function(){this.styleEl?this.styleEl.parentNode||document.head.appendChild(this.styleEl):(this.styleEl=a.a.create("style",{text:m()([{selector:"."+this.dlBtnClassName,style:{display:"none&