SaveText.Ru

Untitled
  1. // ==UserScript==
  2. // @name        SaveFrom.net helper
  3. // @namespace   http://savefrom.net/
  4. // @version     8.76.2
  5. // @date        2020-03-06
  6. // @author      Magicbit, Inc
  7. // @description Youtube Downloader: all in one script to get Vimeo, Facebook, Dailymotion videos for free
  8. // @homepage    https://savefrom.net/user.php?helper=userjs
  9. // @icon        https://sf-helper.com/img/icon_16.png
  10. // @icon64      https://sf-helper.com/img/icon_64.png
  11. // @updateURL   https://download.sf-helper.com/chrome/helper.meta.js
  12. // @downloadURL https://download.sf-helper.com/chrome/helper.user.js
  13. // @include     http://*
  14. // @include     https://*
  15. // @run-at      document-end
  16. // @grant       GM_listValues
  17. // @grant       GM_setValue
  18. // @grant       GM_getValue
  19. // @grant       GM_deleteValue
  20. // @grant       GM_xmlhttpRequest
  21. // @grant       GM_info
  22. // @grant       GM_openInTab
  23. // @grant       GM_setClipboard
  24. // @grant       GM_registerMenuCommand
  25. // @grant       GM_unregisterMenuCommand
  26. // @grant       GM_notification
  27. // @grant       GM_download
  28. // @grant       GM.info
  29. // @grant       GM.listValues
  30. // @grant       GM.setValue
  31. // @grant       GM.getValue
  32. // @grant       GM.deleteValue
  33. // @grant       GM.openInTab
  34. // @grant       GM.setClipboard
  35. // @grant       GM.xmlHttpRequest
  36. // @connect     vk.com
  37. // @connect     vk.me
  38. // @connect     userapi.com
  39. // @connect     vkuseraudio.net
  40. // @connect     vkuservideo.net
  41. // @connect     vk-cdn.net
  42. // @connect     youtube.com
  43. // @connect     youtube-nocookie.com
  44. // @connect     ytimg.com
  45. // @connect     googlevideo.com
  46. // @connect     video.google.com
  47. // @connect     google-analytics.com
  48. // @connect     api.amplitude.com
  49. // @connect     dailymotion.com
  50. // @connect     vimeo.com
  51. // @connect     vimeocdn.com
  52. // @connect     akamaized.net
  53. // @connect     odnoklassniki.ru
  54. // @connect     ok.ru
  55. // @connect     cdn-ok.com
  56. // @connect     mycdn.me
  57. // @connect     pladform.ru
  58. // @connect     clipyou.ru
  59. // @connect     soundcloud.com
  60. // @connect     sndcdn.com
  61. // @connect     mail.ru
  62. // @connect     176.9.38.116
  63. // @connect     cdninstagram.com
  64. // @connect     fbcdn.net
  65. // @connect     facebook.com
  66. // @connect     sf-helper.com
  67. // @connect     savefr.com
  68. // @connect     travelbar.tools
  69. // @connect     promobar.tools
  70. // @connect     savefrom.net
  71. // @connect     self
  72. // @connect     *
  73. // ==/UserScript==
  74. !function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=618)}([function(e,t,n){var i=n(14),o=n(36),r=n(44),a=n(45),s=n(50),l=function(e,t,n){var c,u,d,p,f=e&l.F,m=e&l.G,h=e&l.S,g=e&l.P,v=e&l.B,b=m?i:h?i[t]||(i[t]={}):(i[t]||{}).prototype,y=m?o:o[t]||(o[t]={}),x=y.prototype||(y.prototype={});for(c in m&&(n=t),n)d=((u=!f&&b&&void 0!==b[c])?b:n)[c],p=v&&u?s(d,i):g&&"function"==typeof d?s(Function.call,d):d,b&&a(b,c,d,e&l.U),y[c]!=d&&r(y,c,p),g&&x[c]!=d&&(x[c]=d)};i.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){e.exports=n(305)},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return i}))},function(e,t,n){e.exports=n(315)},function(e,t,n){e.exports=n(310)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(1),o=n.n(i);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),o()(e,i.key,i)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},function(e,t,n){e.exports=n(276)},function(e,t,n){e.exports=n(313)},function(e,t,n){e.exports=n(307)},function(e,t,n){e.exports=n(325)},function(e,t,n){e.exports=n(326)},function(e,t,n){e.exports=n(308)},function(e,t,n){var i=n(17);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=n(323)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){e.exports=n(227)},function(e,t){var n=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.r(t);var i=n(7),o=n.n(i),r=n(11),a=n.n(r),s=(n(4),n(20)),l=(Object(s.default)("webRequest"),!1),c=n(109),u=function(e){e=e.split(/r?n/);var t={};return e.forEach((function(e){var n=e.indexOf(":");if(-1!==n){var i=e.substr(0,n).trim().toLowerCase(),o=e.substr(n+1).trim();t[i]=o}})),t},d=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),e._responseHeaders=n.responseHeaders,e.onreadystatechange&&e.onreadystatechange(),e[t]&&e[t]()},i={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){i.method=e,i.url=t},this.overrideMimeType=function(e){i.overrideMimeType=e},this.setRequestHeader=function(e,t){"cookie"===e.toLowerCase()&&""===t&&(i.anonymous=!0),i.headers[e]=t},this.getResponseHeader=function(e){return this._responseHeaders?(e=e.toLowerCase(),this.headers||(this.headers=u(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){i.data=e,t="function"==typeof GM_xmlhttpRequest?GM_xmlhttpRequest(i):GM.xmlHttpRequest(i)},this.onabort=null,this.onerror=null,this.onload=null,this.onreadystatechange=null,this.ontimeout=null};t.default=function(e,t){var n={},i=function(e,n){i=null,m.timeoutTimer&&clearTimeout(m.timeoutTimer);var o=null;e&&(o=String(e.message||e)||"ERROR"),t&&t(o,r(n),n)},r=function(e){var t={};t.statusCode=g.status,t.statusText=g.statusText;var n=null,i=g.getAllResponseHeaders();return"string"==typeof i&&(n=u(i)),t.headers=n||{},t.body=e,t};"object"!=typeof e&&(e={url:e});var s=e.url,p=e.method||e.type||"GET";p=p.toUpperCase();var f=e.data;"string"!=typeof f&&(f=c.stringify(f)),f&&"GET"===p&&(s+=(/?/.test(s)?"&":"?")+f,f=void 0),!1===e.cache&&-1!==["GET","HEAD"].indexOf(p)&&(s+=(/?/.test(s)?"&":"?")+"_="+a()()),e.headers=e.headers||{},f&&(e.headers["Content-Type"]=e.contentType||e.headers["Content-Type"]||"application/x-www-form-urlencoded; charset=UTF-8");var m={};m.url=s,m.method=p,f&&(m.data=f),e.json&&(m.json=!0),e.xml&&(m.xml=!0),e.timeout&&(m.timeout=e.timeout),e.mimeType&&(m.mimeType=e.mimeType),e.withCredentials&&(m.withCredentials=!0),o()(e.headers).length&&(m.headers=e.headers),m.timeout>0&&(m.timeoutTimer=setTimeout((function(){i&&i(new Error("ETIMEDOUT")),g.abort()}),m.timeout));var h={0:200,1223:204},g=e.localXHR?new XMLHttpRequest:new d;g.open(m.method,m.url,!0),m.mimeType&&g.overrideMimeType(m.mimeType),m.withCredentials&&(g.withCredentials=!0);var v=[];for(var b in m.headers)l&&l.isSpecialHeader(b)&&v.push({key:b,value:m.headers[b]}),g.setRequestHeader(b,m.headers[b]);g.onload=function(){var e=h[g.status]||g.status;try{if(e>=200&&e<300||304===e){var t=g.responseText;if(m.json)t=JSON.parse(t);else if(m.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 i&&i(null,t)}throw new Error(g.status+" "+g.statusText)}catch(e){return i&&i(e)}};var y=g.onerror=function(){i&&i(new Error(g.status+" "+g.statusText))},x=null;void 0!==g.onabort?g.onabort=y:x=function(){4===g.readyState&&i&&setTimeout((function(){return y()}))},x&&(g.onreadystatechange=x);var k=function(){try{g.send(m.data||null)}catch(e){setTimeout((function(){i&&i(e)}))}};if(l&&v.length){l.requestPermission((function(e){e&&function(){for(var e,t=0;e=v[t];t++)g.setRequestHeader(l.wrapHeaderKey(e.key,e.value),e.value)}(),i&&k()}))}else k();return n.abort=function(){i=null,g.abort()},n}},function(e,t,n){"use strict";n.r(t);t.default=function(e){var t=null;return(t=function(){}).log=t.info=t.warn=t.error=t.debug=t,t}},function(e,t,n){var i=n(110)("wks"),o=n(83),r=n(14).Symbol,a="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=a&&r[e]||(a?r:o)("Symbol."+e))}).store=i},function(e,t,n){e.exports=n(291)},function(e,t,n){var i=n(27),o=n(16),r=n(70),a=n(71),s=n(63),l=function(e,t,n){var c,u,d,p=e&l.F,f=e&l.G,m=e&l.S,h=e&l.P,g=e&l.B,v=e&l.W,b=f?o:o[t]||(o[t]={}),y=b.prototype,x=f?i:m?i[t]:(i[t]||{}).prototype;for(c in f&&(n=t),n)(u=!p&&x&&void 0!==x[c])&&s(b,c)||(d=u?x[c]:n[c],b[c]=f&&"function"!=typeof x[c]?n[c]:g&&u?r(d,i):v&&x[c]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):h&&"function"==typeof d?r(Function.call,d):d,h&&((b.virtual||(b.virtual={}))[c]=d,e&l.R&&y&&!y[c]&&a(y,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){e.exports=!n(18)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(53),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},function(e,t,n){var i=n(12),o=n(236),r=n(56),a=Object.defineProperty;t.f=n(24)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var i=n(57);e.exports=function(e){return Object(i(e))}},function(e,t){function n(e,t,n,i,o,r,a){try{var s=e[r](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,o)}e.exports=function(e){return function(){var t=this,i=arguments;return new Promise((function(o,r){var a=e.apply(t,i);function s(e){n(a,o,r,s,l,"next",e)}function l(e){n(a,o,r,s,l,"throw",e)}s(void 0)}))}}},function(e,t,n){e.exports=n(299)},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(159)("wks"),o=n(122),r=n(27).Symbol,a="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=a&&r[e]||(a?r:o)("Symbol."+e))}).store=i},function(e,t,n){"use strict";var i=n(6),o=n.n(i);var r=n(34),a=n.n(r),s=n(145),l=n.n(s);function c(e){return function(e){if(o()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(l()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return a()(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",(function(){return c}))},function(e,t,n){e.exports=n(278)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(111),o=n(57);e.exports=function(e){return i(o(e))}},function(e,t,n){"use strict";n.r(t);var i=n(3),o=n.n(i),r=n(19);t.default=function(e){return new o.a((function(t,n){Object(r.default)(e,(function(e,i){e?n(e):t(i)}))}))}},function(e,t,n){e.exports=n(296)},function(e,t,n){e.exports=n(301)},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){var i=n(35);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(26),o=n(73);e.exports=n(24)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(14),o=n(44),r=n(43),a=n(83)("src"),s=n(410),l=(""+s).split("toString");n(36).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(r(n,"name")||o(n,"name",t)),e[t]!==n&&(c&&(r(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(e,t,n){var i=n(112),o=n(73),r=n(37),a=n(56),s=n(43),l=n(236),c=Object.getOwnPropertyDescriptor;t.f=n(24)?c:function(e,t){if(e=r(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){var i=n(43),o=n(28),r=n(176)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var i=n(0),o=n(18),r=n(57),a=/"/g,s=function(e,t,n,i){var o=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(a,"&quot;")+'"'),s+">"+o+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),i(i.P+i.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t,n){e.exports=!n(72)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(31);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var i=n(42),o=n(210),r=n(152),a=Object.defineProperty;t.f=n(49)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){"use strict";var i=n(18);e.exports=function(e,t){return!!e&&i((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){"use strict";n.r(t);var i=n(6),o=n.n(i);t.default=function(e,t){t&&!o()(t)&&(t=[t]);for(var n,i=[],r={"{":0,"[":0},a={"}":"{","]":"["},s=/[{}][":0-9.,-]/,l=/[rnst]/,c="",u=0;n=e[u];u++)if('"'!==n)s.test(n)?(c+=n,"{"===n||"["===n?(r["{"]||r["["]||(c=n),r[n]++):"}"!==n&&"]"!==n||(r[a[n]]--,r["{"]||r["["]||i.push(c))):"t"===n&&"true"===e.substr(u,4)?(c+="true",u+=3):"f"===n&&"false"===e.substr(u,5)?(c+="false",u+=4):"n"===n&&"null"===e.substr(u,4)?(c+="null",u+=3):l.test(n)||(r["{"]=0,r["["]=0,c="");else{for(var d=u;-1!==d&&(d===u||"\"===e[d-1]);)d=e.indexOf('"',d+1);-1===d&&(d=e.length-1),c+=e.substr(u,d-u+1),u=d}for(var p,f=[],m=function(e,n){if("{}"===e||"[]"===e)return"continue";try{t?t.every((function(t){return t.test(e)}))&&f.push(JSON.parse(e)):f.push(JSON.parse(e))}catch(e){}},h=0;p=i[h];h++)m(p);return f}},function(e,t,n){var i=n(17);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var i=n(0),o=n(36),r=n(18);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*r((function(){n(1)})),"Object",a)}},function(e,t,n){var i=n(50),o=n(111),r=n(28),a=n(25),s=n(191);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,f=t||s;return function(t,s,m){for(var h,g,v=r(t),b=o(v),y=i(s,m,3),x=a(b.length),k=0,w=n?f(t,x):l?f(t,0):void 0;x>k;k++)if((p||k in b)&&(g=y(h=b[k],k,v),e))if(n)w[k]=g;else if(g)switch(e){case 3:return!0;case 5:return h;case 6:return k;case 2:w.push(h)}else if(u)return!1;return d?-1:c||u?u:w}}},function(e,t,n){"use strict";n.r(t);var i=n(6),o=n.n(i),r=n(69),a={create:function(e,t){var n,i;for(var o in n="object"!=typeof e?document.createElement(e):e,t){var r=t[o];(i=s[o])?i(n,r):n[o]=r}return n}},s={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(o()(t))for(var n=0,i=t.length;n<i;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 i=n;"float"===i&&(i="cssFloat");var r=t[n];if(o()(r))for(var a=0,s=r.length;a<s;a++)e.style[i]=r[a];else e.style[i]=r}else e.setAttribute("style",t)},append:function(e,t){o()(t)||(t=[t]);for(var n=0,i=t.length;n<i;n++){var r=t[n];(r||0===r)&&("object"!=typeof r&&(r=document.createTextNode(r)),e.appendChild(r))}},on:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,i=t.length;n<i;n++){var a=t[n];o()(a)&&r.default.on.apply(r.default,[e].concat(a))}},one:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,i=t.length;n<i;n++){var a=t[n];o()(a)&&r.default.one.apply(r.default,[e].concat(a))}},onCreate:function(e,t){t.call(e,e)},attr:function(e,t){var n,i;for(n in t)i=t[n],e.setAttribute(n,i)}};t.default=a},function(e,t,n){e.exports=n(294)},function(e,t,n){e.exports=n(377)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(157),o=n(120);e.exports=function(e){return i(o(e))}},function(e,t,n){var i=n(238),o=n(177);e.exports=Object.keys||function(e){return i(e,o)}},function(e,t,n){var i=n(12),o=n(239),r=n(177),a=n(176)("IE_PROTO"),s=function(){},l=function(){var e,t=n(174)("iframe"),i=r.length;for(t.style.display="none",n(178).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object</script>"),e.close(),l=e.F;i--;)delete l.prototype[r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){"use strict";if(n(24)){var i=n(74),o=n(14),r=n(18),a=n(0),s=n(141),l=n(200),c=n(50),u=n(88),d=n(73),p=n(44),f=n(89),m=n(53),h=n(25),g=n(261),v=n(84),b=n(56),y=n(43),x=n(76),k=n(17),w=n(28),A=n(189),S=n(66),C=n(47),L=n(85).f,I=n(113),_=n(83),M=n(21),E=n(59),O=n(129),T=n(115),P=n(193),F=n(86),D=n(136),B=n(87),N=n(192),R=n(251),j=n(26),z=n(46),U=j.f,q=z.f,H=o.RangeError,V=o.TypeError,W=o.Uint8Array,G=Array.prototype,K=l.ArrayBuffer,Q=l.DataView,Y=E(0),J=E(2),Z=E(3),$=E(4),X=E(5),ee=E(6),te=O(!0),ne=O(!1),ie=P.values,oe=P.keys,re=P.entries,ae=G.lastIndexOf,se=G.reduce,le=G.reduceRight,ce=G.join,ue=G.sort,de=G.slice,pe=G.toString,fe=G.toLocaleString,me=M("iterator"),he=M("toStringTag"),ge=_("typed_constructor"),ve=_("def_constructor"),be=s.CONSTR,ye=s.TYPED,xe=s.VIEW,ke=E(1,(function(e,t){return Le(T(e,e[ve]),t)})),we=r((function(){return 1===new W(new Uint16Array([1]).buffer)[0]})),Ae=!!W&&!!W.prototype.set&&r((function(){new W(1).set({})})),Se=function(e,t){var n=m(e);if(n<0||n%t)throw H("Wrong offset!");return n},Ce=function(e){if(k(e)&&ye in e)return e;throw V(e+" is not a typed array!")},Le=function(e,t){if(!(k(e)&&ge in e))throw V("It is not a typed array constructor!");return new e(t)},Ie=function(e,t){return _e(T(e,e[ve]),t)},_e=function(e,t){for(var n=0,i=t.length,o=Le(e,i);i>n;)o[n]=t[n++];return o},Me=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Ee=function(e){var t,n,i,o,r,a,s=w(e),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,p=I(s);if(null!=p&&!A(p)){for(a=p.call(s),i=[],t=0;!(r=a.next()).done;t++)i.push(r.value);s=i}for(d&&l>2&&(u=c(u,arguments[2],2)),t=0,n=h(s.length),o=Le(this,n);n>t;t++)o[t]=d?u(s[t],t):s[t];return o},Oe=function(){for(var e=0,t=arguments.length,n=Le(this,t);t>e;)n[e]=arguments[e++];return n},Te=!!W&&r((function(){fe.call(new W(1))})),Pe=function(){return fe.apply(Te?de.call(Ce(this)):Ce(this),arguments)},Fe={copyWithin:function(e,t){return R.call(Ce(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return $(Ce(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return N.apply(Ce(this),arguments)},filter:function(e){return Ie(this,J(Ce(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return X(Ce(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ce(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Y(Ce(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Ce(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ce(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(Ce(this),arguments)},lastIndexOf:function(e){return ae.apply(Ce(this),arguments)},map:function(e){return ke(Ce(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Ce(this),arguments)},reduceRight:function(e){return le.apply(Ce(this),arguments)},reverse:function(){for(var e,t=Ce(this).length,n=Math.floor(t/2),i=0;i<n;)e=this[i],this[i++]=this[--t],this[t]=e;return this},some:function(e){return Z(Ce(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ue.call(Ce(this),e)},subarray:function(e,t){var n=Ce(this),i=n.length,o=v(e,i);return new(T(n,n[ve]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,h((void 0===t?i:v(t,i))-o))}},De=function(e,t){return Ie(this,de.call(Ce(this),e,t))},Be=function(e){Ce(this);var t=Se(arguments[1],1),n=this.length,i=w(e),o=h(i.length),r=0;if(o+t>n)throw H("Wrong length!");for(;r<o;)this[t+r]=i[r++]},Ne={entries:function(){return re.call(Ce(this))},keys:function(){return oe.call(Ce(this))},values:function(){return ie.call(Ce(this))}},Re=function(e,t){return k(e)&&e[ye]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},je=function(e,t){return Re(e,t=b(t,!0))?d(2,e[t]):q(e,t)},ze=function(e,t,n){return!(Re(e,t=b(t,!0))&&k(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};be||(z.f=je,j.f=ze),a(a.S+a.F*!be,"Object",{getOwnPropertyDescriptor:je,defineProperty:ze}),r((function(){pe.call({})}))&&(pe=fe=function(){return ce.call(this)});var Ue=f({},Fe);f(Ue,Ne),p(Ue,me,Ne.values),f(Ue,{slice:De,set:Be,constructor:function(){},toString:pe,toLocaleString:Pe}),Me(Ue,"buffer","b"),Me(Ue,"byteOffset","o"),Me(Ue,"byteLength","l"),Me(Ue,"length","e"),U(Ue,he,{get:function(){return this[ye]}}),e.exports=function(e,t,n,l){var c=e+((l=!!l)?"Clamped":"")+"Array",d="get"+e,f="set"+e,m=o[c],v=m||{},b=m&&C(m),y=!m||!s.ABV,w={},A=m&&m.prototype,I=function(e,n){U(e,n,{get:function(){return function(e,n){var i=e._d;return i.v[d](n*t+i.o,we)}(this,n)},set:function(e){return function(e,n,i){var o=e._d;l&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),o.v[f](n*t+o.o,i,we)}(this,n,e)},enumerable:!0})};y?(m=n((function(e,n,i,o){u(e,m,c,"_d");var r,a,s,l,d=0,f=0;if(k(n)){if(!(n instanceof K||"ArrayBuffer"==(l=x(n))||"SharedArrayBuffer"==l))return ye in n?_e(m,n):Ee.call(m,n);r=n,f=Se(i,t);var v=n.byteLength;if(void 0===o){if(v%t)throw H("Wrong length!");if((a=v-f)<0)throw H("Wrong length!")}else if((a=h(o)*t)+f>v)throw H("Wrong length!");s=a/t}else s=g(n),r=new K(a=s*t);for(p(e,"_d",{b:r,o:f,l:a,e:s,v:new Q(r)});d<s;)I(e,d++)})),A=m.prototype=S(Ue),p(A,"constructor",m)):r((function(){m(1)}))&&r((function(){new m(-1)}))&&D((function(e){new m,new m(null),new m(1.5),new m(e)}),!0)||(m=n((function(e,n,i,o){var r;return u(e,m,c),k(n)?n instanceof K||"ArrayBuffer"==(r=x(n))||"SharedArrayBuffer"==r?void 0!==o?new v(n,Se(i,t),o):void 0!==i?new v(n,Se(i,t)):new v(n):ye in n?_e(m,n):Ee.call(m,n):new v(g(n))})),Y(b!==Function.prototype?L(v).concat(L(b)):L(v),(function(e){e in m||p(m,e,v[e])})),m.prototype=A,i||(A.constructor=m));var _=A[me],M=!!_&&("values"==_.name||null==_.name),E=Ne.values;p(m,ge,!0),p(A,ye,c),p(A,xe,!0),p(A,ve,m),(l?new m(1)[he]==c:he in A)||U(A,he,{get:function(){return c}}),w[c]=m,a(a.G+a.W+a.F*(m!=v),w),a(a.S,c,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*r((function(){v.of.call(m,1)})),c,{from:Ee,of:Oe}),"BYTES_PER_ELEMENT"in A||p(A,"BYTES_PER_ELEMENT",t),a(a.P,c,Fe),B(c),a(a.P+a.F*Ae,c,{set:Be}),a(a.P+a.F*!M,c,Ne),i||A.toString==pe||(A.toString=pe),a(a.P+a.F*r((function(){new m(1).slice()})),c,{slice:De}),a(a.P+a.F*(r((function(){return[1,2].toLocaleString()!=new m([1,2]).toLocaleString()}))||!r((function(){A.toLocaleString.call([1,2])}))),c,{toLocaleString:Pe}),F[c]=M?_:E,i||M||p(A,me,E)}}else e.exports=function(){}},function(e,t,n){var i=n(256),o=n(0),r=n(110)("metadata"),a=r.store||(r.store=new(n(259))),s=function(e,t,n){var o=a.get(e);if(!o){if(!n)return;a.set(e,o=new i)}var r=o.get(t);if(!r){if(!n)return;o.set(t,r=new i)}return r};e.exports={store:a,map:s,has:function(e,t,n){var i=s(t,n,!1);return void 0!==i&&i.has(e)},get:function(e,t,n){var i=s(t,n,!1);return void 0===i?void 0:i.get(e)},set:function(e,t,n,i){s(n,i,!0).set(e,t)},keys:function(e,t){var n=s(e,t,!1),i=[];return n&&n.forEach((function(e,t){i.push(t)})),i},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){o(o.S,"Reflect",e)}}},function(e,t,n){"use strict";n.r(t);var i={on:function(e,t,n,i){e.addEventListener(t,n,i)},off:function(e,t,n,i){e.removeEventListener(t,n,i)},one:function(e,t,n,o){var r=["oneFn",t,!!o].join("_"),a=n[r];a||(n[r]=a=function(e){i.off(this,t,a,o),n.apply(this,arguments)}),i.on(e,t,a,o),e=null}},o="sf-removed-"+Math.floor(1e6*Math.random()),r="sf-notify-on-remove-"+Math.floor(1e6*Math.random());i.onRemoveEventName=o,i.onRemoveClassName=r,i.onRemoveListener=function(e){i.trigger(e,o,{cancelable:!0,bubbles:!1})},i.onRemoveEvent=function(e,t){e.classList.add(r),e.addEventListener(o,t)},i.offRemoveEvent=function(e,t){e.removeEventListener(i.onRemoveEventName,t)},i.trigger=function(e,t,n){void 0===n&&(n={}),void 0===n.bubbles&&(n.bubbles=!1),void 0===n.cancelable&&(n.cancelable=!1);var i=null;i="function"==typeof MouseEvent&&-1!==["click"].indexOf(t)?new MouseEvent(t,n):new CustomEvent(t,n),e.dispatchEvent(i)},t.default=i},function(e,t,n){var i=n(100);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var i=n(51),o=n(101);e.exports=n(49)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=!1},function(e,t,n){var i=n(83)("meta"),o=n(17),r=n(43),a=n(26).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(18)((function(){return l(Object.preventExtensions({}))})),u=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},getWeak:function(e,t){if(!r(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!r(e,i)&&u(e),e}}},function(e,t,n){var i=n(52),o=n(21)("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var i=n(21)("unscopables"),o=Array.prototype;null==o[i]&&n(44)(o,i,{}),e.exports=function(e){o[i][e]=!0}},function(e,t,n){var i=n(50),o=n(249),r=n(189),a=n(12),s=n(25),l=n(113),c={},u={};(t=e.exports=function(e,t,n,d,p){var f,m,h,g,v=p?function(){return e}:l(e),b=i(n,d,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(r(v)){for(f=s(e.length);f>y;y++)if((g=t?b(a(m=e[y])[0],m[1]):b(e[y]))===c||g===u)return g}else for(h=v.call(e);!(m=h.next()).done;)if((g=o(h,b,m.value,t))===c||g===u)return g}).BREAK=c,t.RETURN=u},function(e,t,n){"use strict";n.r(t);var i=n(6),o=n.n(i);t.default=function(e,t){t&&!o()(t)&&(t=[t]);var n=[];return e.replace(/<script(?:s*|s[^>]+[^/])>/g,(function(i,o){o+=i.length;var r=e.indexOf("</script>",o);if(-1!==r){var a=e.substr(o,r-o);t?t.every((function(e){return e.test(a)}))&&n.push(a):n.push(a)}})),n}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports=n(341)},function(e,t,n){var i=n(120);e.exports=function(e){return Object(i(e))}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(53),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},function(e,t,n){var i=n(238),o=n(177).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},function(e,t){e.exports={}},function(e,t,n){"use strict";var i=n(14),o=n(26),r=n(24),a=n(21)("species");e.exports=function(e){var t=i[e];r&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var i=n(45);e.exports=function(e,t,n){for(var o in t)i(e,o,t[o],n);return e}},function(e,t,n){var i=n(17);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},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(344).default}},function(e,t){e.exports={}},function(e,t,n){var i=n(213),o=n(160);e.exports=Object.keys||function(e){return i(e,o)}},function(e,t,n){t.f=n(32)},function(e,t,n){var i=n(26).f,o=n(43),r=n(21)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t,n){var i=n(0),o=n(57),r=n(18),a=n(182),s="["+a+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(e,t,n){var o={},s=r((function(){return!!a[e]()||"​…"!="​…"[e]()})),l=o[e]=s?t(d):a[e];n&&(o[n]=l),i(i.P+i.F*s,"String",o)},d=u.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=u},function(e,t,n){"use strict";n.r(t);var i=n(4),o=n.n(i),r=n(116),a={maxLength:80,rtrim:/^[suFEFFxA0]+|[suFEFFxA0]+$/g,illegalRe:/[/?<>\:*|"~u202B]/g,controlRe:/[x00-x1fx80-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 i=null;if("#"===n[0])return i=o()(n.substr(1)),isNaN(i)?"":String.fromCharCode(i);var r=t.specialCharsList[0].indexOf(n);return-1!==r?(i=t.specialCharsList[1][r],String.fromCharCode(i)):-1!==(r=t.specialChars.indexOf(n))?(i=r+160,String.fromCharCode(i)):""}))},decodeHexChars:function(e){return e.replace(/(\x[a-zA-Z0-9]{2})/g,(function(e,t){var n=t;try{n=String.fromCharCode(o()("0x"+n.substr(2),16))}catch(e){}return n}))},rnRe:/r?n/g,re1:/[*?"]/g,re2:/</g,re3:/>/g,spaceRe:/[stuFEFFxA0]+/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=a},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 i=t.sep||"&",o=n.split(i),r={},a=0,s=o.length;a<s;a++){var l=o[a].split("="),c=l[0],u=l[1]||"";if(t.noDecode)r[c]=u;else{try{c=decodeURIComponent(c)}catch(e){c=unescape(c)}try{r[c]=decodeURIComponent(u)}catch(e){r[c]=unescape(u)}}}return r}},function(e,t,n){e.exports=n(303)},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){"use strict";var i=n(279)(!0);n(211)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t){e.exports=!0},function(e,t,n){var i=n(51).f,o=n(63),r=n(32)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t,n){n(285);for(var i=n(27),o=n(71),r=n(92),a=n(32)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=i[c],d=u&&u.prototype;d&&!d[a]&&o(d,a,c),r[c]=r.Array}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(107),o=n(101),r=n(64),a=n(152),s=n(63),l=n(210),c=Object.getOwnPropertyDescriptor;t.f=n(49)?c:function(e,t){if(e=r(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){"use strict";t.decode=t.parse=n(350),t.encode=t.stringify=n(351)},function(e,t,n){var i=n(36),o=n(14),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(74)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var i=n(52);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(76),o=n(21)("iterator"),r=n(86);e.exports=n(36).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||r[i(e)]}},function(e,t,n){"use strict";var i=n(12);e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var i=n(12),o=n(31),r=n(21)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||null==(n=i(a)[r])?t:o(n)}},function(e,t,n){"use strict";n.r(t);var i=n(8),o=n.n(i),r=/\(\u[0-9a-f]{4})/g;t.default=function(e){try{return JSON.parse(o()(e).replace(r,"$1"))}catch(t){return e}}},function(e,t,n){"use strict";n.r(t);var i=n(8),o=n.n(i);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 i="";try{i='"'===t?JSON.parse('"'+e.substr(1,n-1)+'"'):JSON.parse('"'+e.substr(1,n-1).replace(/\'/g,"'").replace(/"/g,'\"')+'"')}catch(e){}return{data:i,i:n}},n={"[":function(e){var t,i,r,a,s,l=[],c="";for(a=1;r=e[a];a++)if(i=n[r])t=i(e.substr(a)),c=o()(t.data),a+=t.i;else{if("]"===r)break;","===r?(c&&l.push(c),c=""):c+=r}c&&l.push(c);try{s=JSON.parse("["+l.join(",")+"]")}catch(e){}return{data:s||[],i:a}},"{":function(e){var t,i,r,a,s,l=[],c=["",""],u=0;for(a=1;r=e[a];a++)if(i=n[r])t=i(e.substr(a)),c[u]=0===u?t.data:o()(t.data),a+=t.i;else{if("}"===r)break;":"===r?u=1:","===r?(l.push(o()(c[0])+":"+c[1]),c=["",""],u=0):c[u]=(c[u]+r).trim()}c[1]&&l.push(o()(c[0])+":"+c[1]);try{s=JSON.parse("{"+l.join(",")+"}")}catch(e){}return{data:s||{},i:a}},'"':t,"'":t};return{some:function(t){return function(e,t){for(var i,o,r=0;o=e[r];r++)if(("["===o||"{"===o)&&(r+=(i=n[o](e.substr(r))).i,t(i.data)))return!0}(e,t)}}}},function(e,t,n){e.exports=n(329)},function(e,t,n){"use strict";n.r(t);var i=function(e,t){var n=document.createElement("div");return i="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,i(e,t)};t.default=function(e,t){return i(e,t)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var i=n(154),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(63),o=n(82),r=n(158)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(23),o=n(16),r=n(72);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*r((function(){n(1)})),"Object",a)}},function(e,t,n){var i=n(122)("meta"),o=n(35),r=n(63),a=n(51).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(72)((function(){return l(Object.preventExtensions({}))})),u=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},getWeak:function(e,t){if(!r(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!r(e,i)&&u(e),e}}},function(e,t){},function(e,t,n){var i=n(70),o=n(215),r=n(216),a=n(42),s=n(121),l=n(161),c={},u={};(t=e.exports=function(e,t,n,d,p){var f,m,h,g,v=p?function(){return e}:l(e),b=i(n,d,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(r(v)){for(f=s(e.length);f>y;y++)if((g=t?b(a(m=e[y])[0],m[1]):b(e[y]))===c||g===u)return g}else for(h=v.call(e);!(m=h.next()).done;)if((g=o(h,b,m.value,t))===c||g===u)return g}).BREAK=c,t.RETURN=u},function(e,t,n){var i=n(37),o=n(25),r=n(84);e.exports=function(e){return function(t,n,a){var s,l=i(t),c=o(l.length),u=r(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(52);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(53),o=n(57);e.exports=function(e){return function(t,n){var r,a,s=String(o(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(r=s.charCodeAt(l))<55296||r>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):r:e?s.slice(l,l+2):a-56320+(r-55296<<10)+65536}}},function(e,t,n){"use strict";var i=n(74),o=n(0),r=n(45),a=n(44),s=n(86),l=n(134),c=n(95),u=n(47),d=n(21)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,m,h,g,v){l(n,t,m);var b,y,x,k=function(e){if(!p&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",A="values"==h,S=!1,C=e.prototype,L=C[d]||C["@@iterator"]||h&&C[h],I=L||k(h),_=h?A?k("entries"):I:void 0,M="Array"==t&&C.entries||L;if(M&&(x=u(M.call(new e)))!==Object.prototype&&x.next&&(c(x,w,!0),i||"function"==typeof x[d]||a(x,d,f)),A&&L&&"values"!==L.name&&(S=!0,I=function(){return L.call(this)}),i&&!v||!p&&!S&&C[d]||a(C,d,I),s[t]=I,s[w]=f,h)if(b={values:A?I:k("values"),keys:g?I:k("keys"),entries:_},v)for(y in b)y in C||r(C,y,b[y]);else o(o.P+o.F*(p||S),t,b);return b}},function(e,t,n){"use strict";var i=n(66),o=n(73),r=n(95),a={};n(44)(a,n(21)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(a,{next:o(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var i=n(17),o=n(52),r=n(21)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==o(e))}},function(e,t,n){var i=n(21)("iterator"),o=!1;try{var r=[7][i]();r.return=function(){o=!0},Array.from(r,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r=[7],a=r[i]();a.next=function(){return{done:n=!0}},r[i]=function(){return a},e(r)}catch(e){}return n}},function(e,t,n){"use strict";var i=n(76),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw new TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";n(252);var i=n(45),o=n(44),r=n(18),a=n(57),s=n(21),l=n(195),c=s("species"),u=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var p=s(e),f=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=f?!r((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[p](""),!t})):void 0;if(!f||!m||"replace"===e&&!u||"split"===e&&!d){var h=/./[p],g=n(a,p,""[e],(function(e,t,n,i,o){return t.exec===l?f&&!o?{done:!0,value:h.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),v=g[0],b=g[1];i(String.prototype,e,v),o(RegExp.prototype,p,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},function(e,t,n){var i=n(14).navigator;e.exports=i&&i.userAgent||""},function(e,t,n){"use strict";var i=n(14),o=n(0),r=n(45),a=n(89),s=n(75),l=n(78),c=n(88),u=n(17),d=n(18),p=n(136),f=n(95),m=n(183);e.exports=function(e,t,n,h,g,v){var b=i[e],y=b,x=g?"set":"add",k=y&&y.prototype,w={},A=function(e){var t=k[e];r(k,e,"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(v||k.forEach&&!d((function(){(new y).entries().next()})))){var S=new y,C=S[x](v?{}:-0,1)!=S,L=d((function(){S.has(1)})),I=p((function(e){new y(e)})),_=!v&&d((function(){for(var e=new y,t=5;t--;)e[x](t,t);return!e.has(-0)}));I||((y=t((function(t,n){c(t,y,e);var i=m(new b,t,y);return null!=n&&l(n,g,i[x],i),i}))).prototype=k,k.constructor=y),(L||_)&&(A("delete"),A("has"),g&&A("get")),(_||C)&&A(x),v&&k.clear&&delete k.clear}else y=h.getConstructor(t,e,g,x),a(y.prototype,n),s.NEED=!0;return f(y,e),w[e]=y,o(o.G+o.W+o.F*(y!=b),w),v||h.setStrong(y,e,g),y}},function(e,t,n){for(var i,o=n(14),r=n(44),a=n(83),s=a("typed_array"),l=a("view"),c=!(!o.ArrayBuffer||!o.DataView),u=c,d=0,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(i=o[p[d++]])?(r(i.prototype,s,!0),r(i.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(e,t,n){"use strict";e.exports=n(74)||!n(18)((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete n(14)[e]}))},function(e,t,n){"use strict";var i=n(0);e.exports=function(e){i(i.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){"use strict";var i=n(0),o=n(31),r=n(50),a=n(78);e.exports=function(e){i(i.S,e,{from:function(e){var t,n,i,s,l=arguments[1];return o(this),(t=void 0!==l)&&o(l),null==e?new this:(n=[],t?(i=0,s=r(l,arguments[2],2),a(e,!1,(function(e){n.push(s(e,i++))}))):a(e,!1,n.push,n),new this(n))}})}},function(e,t,n){e.exports=n(284)},function(e,t,n){e.exports=n(332)},function(e,t,n){"use strict";n.r(t);var i=null;t.default=function(e,t){if(!i){var n=document.createElement("div");"function"==typeof n.matches?i=function(e,t){return e.matches(t)}:"function"==typeof n.matchesSelector?i=function(e,t){return e.matchesSelector(t)}:"function"==typeof n.webkitMatchesSelector?i=function(e,t){return e.webkitMatchesSelector(t)}:"function"==typeof n.mozMatchesSelector&&(i=function(e,t){return e.mozMatchesSelector(t)}),n=null}return i(e,t)}},function(e,t,n){e.exports=n(379)},function(e,t,n){var i=n(172);e.exports=function(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&&i(e,t)}},function(e,t,n){var i=n(173),o=n(172),r=n(392),a=n(393);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!r(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,i(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},s(t)}e.exports=s},function(e,t,n){var i=n(35),o=n(27).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},function(e,t,n){var i=n(35);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(102);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){e.exports=n(71)},function(e,t,n){var i=n(42),o=n(212),r=n(160),a=n(158)("IE_PROTO"),s=function(){},l=function(){var e,t=n(151)("iframe"),i=r.length;for(t.style.display="none",n(214).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object</script>"),e.close(),l=e.F;i--;)delete l.prototype[r[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[a]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){var i=n(102);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(159)("keys"),o=n(122);e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var i=n(16),o=n(27),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(104)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(162),o=n(32)("iterator"),r=n(92);e.exports=n(16).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||r[i(e)]}},function(e,t,n){var i=n(102),o=n(32)("toStringTag"),r="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t){e.exports="tnvfr   ᠎              u2028u2029ufeff"},function(e,t,n){var i=n(213),o=n(160).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},function(e,t,n){var i=n(27),o=n(16),r=n(104),a=n(94),s=n(51).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=r?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var i=n(100);function o(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){var i=n(71);e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:i(e,o,t[o]);return e}},function(e,t,n){"use strict";n.r(t);t.default=function(){return window.top!==window.self}},function(e,t,n){var i=n(70),o=n(157),r=n(82),a=n(121),s=n(381);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,f=t||s;return function(t,s,m){for(var h,g,v=r(t),b=o(v),y=i(s,m,3),x=a(b.length),k=0,w=n?f(t,x):l?f(t,0):void 0;x>k;k++)if((p||k in b)&&(g=y(h=b[k],k,v),e))if(n)w[k]=g;else if(g)switch(e){case 3:return!0;case 5:return h;case 6:return k;case 2:w.push(h)}else if(u)return!1;return d?-1:c||u?u:w}}},function(e,t,n){var i=n(35);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,i)}e.exports=n},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var i=n(17),o=n(14).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},function(e,t,n){var i=n(14),o=n(36),r=n(74),a=n(237),s=n(26).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=r?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var i=n(110)("keys"),o=n(83);e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(14).document;e.exports=i&&i.documentElement},function(e,t,n){"use strict";var i=n(24),o=n(65),r=n(130),a=n(112),s=n(28),l=n(111),c=Object.assign;e.exports=!c||n(18)((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=r.f,p=a.f;c>u;)for(var f,m=l(arguments[u++]),h=d?o(m).concat(d(m)):o(m),g=h.length,v=0;g>v;)f=h[v++],i&&!p.call(m,f)||(n[f]=m[f]);return n}:c},function(e,t,n){var i=n(17),o=n(12),r=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=n(50)(Function.call,n(46).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return r(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:r}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t){e.exports="tnvfr   ᠎              u2028u2029ufeff"},function(e,t,n){var i=n(17),o=n(180).set;e.exports=function(e,t,n){var r,a=t.constructor;return a!==n&&"function"==typeof a&&(r=a.prototype)!==n.prototype&&i(r)&&o&&o(e,r),e}},function(e,t,n){"use strict";var i=n(53),o=n(57);e.exports=function(e){var t=String(o(this)),n="",r=i(e);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var i=n(135),o=n(57);e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var i=n(21)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var i=n(86),o=n(21)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[o]===e)}},function(e,t,n){"use strict";var i=n(26),o=n(73);e.exports=function(e,t,n){t in e?i.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var i=n(499);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){"use strict";var i=n(28),o=n(84),r=n(25);e.exports=function(e){for(var t=i(this),n=r(t.length),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:o(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var i=n(77),o=n(194),r=n(86),a=n(37);e.exports=n(133)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var i,o,r=n(114),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,c=(i=/a/,o=/b*/g,a.call(i,"a"),a.call(o,"a"),0!==i.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(e){var t,n,i,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\s)",r.call(l))),c&&(t=l.lastIndex),i=a.call(l,e),c&&i&&(l.lastIndex=l.global?i.index+i[0].length:t),u&&i&&i.length>1&&s.call(i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i}),e.exports=l},function(e,t,n){"use strict";var i=n(132)(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},function(e,t,n){var i,o,r,a=n(50),s=n(181),l=n(178),c=n(174),u=n(14),d=u.process,p=u.setImmediate,f=u.clearImmediate,m=u.MessageChannel,h=u.Dispatch,g=0,v={},b=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},y=function(e){b.call(e.data)};p&&f||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},i(g),g},f=function(e){delete v[e]},"process"==n(52)(d)?i=function(e){d.nextTick(a(b,e,1))}:h&&h.now?i=function(e){h.now(a(b,e,1))}:m?(r=(o=new m).port2,o.port1.onmessage=y,i=a(r.postMessage,r,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(e){u.postMessage(e+"","*")},u.addEventListener("message",y,!1)):i="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:p,clear:f}},function(e,t,n){var i=n(14),o=n(197).set,r=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==n(52)(a);e.exports=function(){var e,t,n,c=function(){var i,o;for(l&&(i=a.domain)&&i.exit();e;){o=e.fn,e=e.next;try{o()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(c)};else if(!r||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(i,c)};else{var d=!0,p=document.createTextNode("");new r(c).observe(p,{characterData:!0}),n=function(){p.data=d=!d}}return function(i){var o={fn:i,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){"use strict";var i=n(31);function o(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var i=n(14),o=n(24),r=n(74),a=n(141),s=n(44),l=n(89),c=n(18),u=n(88),d=n(53),p=n(25),f=n(261),m=n(85).f,h=n(26).f,g=n(192),v=n(95),b="prototype",y="Wrong index!",x=i.ArrayBuffer,k=i.DataView,w=i.Math,A=i.RangeError,S=i.Infinity,C=x,L=w.abs,I=w.pow,_=w.floor,M=w.log,E=w.LN2,O=o?"_b":"buffer",T=o?"_l":"byteLength",P=o?"_o":"byteOffset";function F(e,t,n){var i,o,r,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,c=l>>1,u=23===t?I(2,-24)-I(2,-77):0,d=0,p=e<0||0===e&&1/e<0?1:0;for((e=L(e))!=e||e===S?(o=e!=e?1:0,i=l):(i=_(M(e)/E),e*(r=I(2,-i))<1&&(i--,r*=2),(e+=i+c>=1?u/r:u*I(2,1-c))*r>=2&&(i++,r/=2),i+c>=l?(o=0,i=l):i+c>=1?(o=(e*r-1)*I(2,t),i+=c):(o=e*I(2,c-1)*I(2,t),i=0));t>=8;a[d++]=255&o,o/=256,t-=8);for(i=i<<t|o,s+=t;s>0;a[d++]=255&i,i/=256,s-=8);return a[--d]|=128*p,a}function D(e,t,n){var i,o=8*n-t-1,r=(1<<o)-1,a=r>>1,s=o-7,l=n-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=t;s>0;i=256*i+e[l],l--,s-=8);if(0===u)u=1-a;else{if(u===r)return i?NaN:c?-S:S;i+=I(2,t),u-=a}return(c?-1:1)*i*I(2,u-t)}function B(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function N(e){return[255&e]}function R(e){return[255&e,e>>8&255]}function j(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function z(e){return F(e,52,8)}function U(e){return F(e,23,4)}function q(e,t,n){h(e[b],t,{get:function(){return this[n]}})}function H(e,t,n,i){var o=f(+n);if(o+t>e[T])throw A(y);var r=e[O]._b,a=o+e[P],s=r.slice(a,a+t);return i?s:s.reverse()}function V(e,t,n,i,o,r){var a=f(+n);if(a+t>e[T])throw A(y);for(var s=e[O]._b,l=a+e[P],c=i(+o),u=0;u<t;u++)s[l+u]=c[r?u:t-u-1]}if(a.ABV){if(!c((function(){x(1)}))||!c((function(){new x(-1)}))||c((function(){return new x,new x(1.5),new x(NaN),"ArrayBuffer"!=x.name}))){for(var W,G=(x=function(e){return u(this,x),new C(f(e))})[b]=C[b],K=m(C),Q=0;K.length>Q;)(W=K[Q++])in x||s(x,W,C[W]);r||(G.constructor=x)}var Y=new k(new x(2)),J=k[b].setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||l(k[b],{setInt8:function(e,t){J.call(this,e,t<<24>>24)},setUint8:function(e,t){J.call(this,e,t<<24>>24)}},!0)}else x=function(e){u(this,x,"ArrayBuffer");var t=f(e);this._b=g.call(new Array(t),0),this[T]=t},k=function(e,t,n){u(this,k,"DataView"),u(e,x,"DataView");var i=e[T],o=d(t);if(o<0||o>i)throw A("Wrong offset!");if(o+(n=void 0===n?i-o:p(n))>i)throw A("Wrong length!");this[O]=e,this[P]=o,this[T]=n},o&&(q(x,"byteLength","_l"),q(k,"buffer","_b"),q(k,"byteLength","_l"),q(k,"byteOffset","_o")),l(k[b],{getInt8:function(e){return H(this,1,e)[0]<<24>>24},getUint8:function(e){return H(this,1,e)[0]},getInt16:function(e){var t=H(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=H(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return B(H(this,4,e,arguments[1]))},getUint32:function(e){return B(H(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return D(H(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return D(H(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){V(this,1,e,N,t)},setUint8:function(e,t){V(this,1,e,N,t)},setInt16:function(e,t){V(this,2,e,R,t,arguments[2])},setUint16:function(e,t){V(this,2,e,R,t,arguments[2])},setInt32:function(e,t){V(this,4,e,j,t,arguments[2])},setUint32:function(e,t){V(this,4,e,j,t,arguments[2])},setFloat32:function(e,t){V(this,4,e,U,t,arguments[2])},setFloat64:function(e,t){V(this,8,e,z,t,arguments[2])}});v(x,"ArrayBuffer"),v(k,"DataView"),s(k[b],a.VIEW,!0),t.ArrayBuffer=x,t.DataView=k},function(e,t,n){var i=n(85),o=n(130),r=n(12),a=n(14).Reflect;e.exports=a&&a.ownKeys||function(e){var t=i.f(r(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t,n){"use strict";n.r(t);var i=n(6),o=n.n(i);t.default=function(){var e=[];return o()(navigator.languages)?e=navigator.languages:navigator.language&&(e=[navigator.language]),e}},function(e,t,n){"use strict";n.r(t);var i=n(6),o=n.n(i);t.default=function e(t,n){var i=[];o()(t)||(t=[t]),n&&!o()(n)&&(n=[n]);var r=function(e,t){var n=[];for(var i in t){var o=t[i];"cssFloat"===i&&(i="float");var r=i.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()}));n.push(r+":"+o)}return n.length?[e.join(","),"{",n.join(";"),"}"].join(""):""},a=function(e,t){if(o()(t)||(t=[t]),n){var i=[],r=e.join||""===e.join?e.join:" ";n.forEach((function(e){t.forEach((function(t){i.push(e+r+t)}))})),t=i}return t};return t.forEach((function(t){var o=null,s=t.media,l=t.selector,c=t.style,u=t.append;if(s&&u)i.push([s,"{",e(u,n),"}"].join(""));else if(l||c)o=a(t,l),i.push(r(o,c)),u&&i.push(e(u,o));else for(var d in t)-1===["append","join"].indexOf(d)&&(l=d,(u=(c=t[d]).append)&&delete c.append,o=a(t,l),i.push(r(o,c)),u&&i.push(e(u,o)))})),i.join("")}},function(e,t,n){"use strict";n.r(t);var i=n(20),o=Object(i.default)("extensionMarker"),r="savefrom-helper-extension",a={getItem:function(e){var t=null;try{t=window.sessionStorage.getItem(e)}catch(t){o.error("getItem error",e,t)}return t},setItem:function(e,t){try{window.sessionStorage.setItem(e,t)}catch(n){o.error("setMarker error",e,t,n)}},hash:function(e){var t=e.length,n=0,i=0;if(t>0)for(;i<t;)n=(n<<5)-n+e.charCodeAt(i++)|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(r)},setMarker:function(e){return this.setItem(r,e)},getFallbackMarker:function(){return this.getItem("".concat(r,"-fallback"))},setFallbackMarker:function(){return this.setItem("".concat(r,"-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){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,n){e.exports=n(330)},function(e,t,n){e.exports=n(335)},function(e,t,n){e.exports=n(339)},function(e,t,n){e.exports=!n(49)&&!n(72)((function(){return 7!=Object.defineProperty(n(151)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var i=n(104),o=n(23),r=n(155),a=n(71),s=n(92),l=n(280),c=n(105),u=n(123),d=n(32)("iterator"),p=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,m,h,g,v){l(n,t,m);var b,y,x,k=function(e){if(!p&&e in C)return C[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",A="values"==h,S=!1,C=e.prototype,L=C[d]||C["@@iterator"]||h&&C[h],I=L||k(h),_=h?A?k("entries"):I:void 0,M="Array"==t&&C.entries||L;if(M&&(x=u(M.call(new e)))!==Object.prototype&&x.next&&(c(x,w,!0),i||"function"==typeof x[d]||a(x,d,f)),A&&L&&"values"!==L.name&&(S=!0,I=function(){return L.call(this)}),i&&!v||!p&&!S&&C[d]||a(C,d,I),s[t]=I,s[w]=f,h)if(b={values:A?I:k("values"),keys:g?I:k("keys"),entries:_},v)for(y in b)y in C||r(C,y,b[y]);else o(o.P+o.F*(p||S),t,b);return b}},function(e,t,n){var i=n(51),o=n(42),r=n(93);e.exports=n(49)?Object.defineProperties:function(e,t){o(e);for(var n,a=r(t),s=a.length,l=0;s>l;)i.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var i=n(63),o=n(64),r=n(281)(!1),a=n(158)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var i=n(27).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(42);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&i(r.call(e)),t}}},function(e,t,n){var i=n(92),o=n(32)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[o]===e)}},function(e,t,n){"use strict";var i=n(51),o=n(101);e.exports=function(e,t,n){t in e?i.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var i=n(32)("iterator"),o=!1;try{var r=[7][i]();r.return=function(){o=!0},Array.from(r,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r=[7],a=r[i]();a.next=function(){return{done:n=!0}},r[i]=function(){return a},e(r)}catch(e){}return n}},function(e,t,n){var i=n(49),o=n(93),r=n(64),a=n(107).f;e.exports=function(e){return function(t){for(var n,s=r(t),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],i&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},function(e,t,n){var i=n(23),o=n(120),r=n(72),a=n(163),s="["+a+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(e,t,n){var o={},s=r((function(){return!!a[e]()||"​…"!="​…"[e]()})),l=o[e]=s?t(d):a[e];n&&(o[n]=l),i(i.P+i.F*s,"String",o)},d=u.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=u},function(e,t,n){"use strict";var i=n(27),o=n(63),r=n(49),a=n(23),s=n(155),l=n(126).KEY,c=n(72),u=n(159),d=n(105),p=n(122),f=n(32),m=n(94),h=n(165),g=n(302),v=n(153),b=n(42),y=n(35),x=n(82),k=n(64),w=n(152),A=n(101),S=n(156),C=n(222),L=n(108),I=n(124),_=n(51),M=n(93),E=L.f,O=_.f,T=C.f,P=i.Symbol,F=i.JSON,D=F&&F.stringify,B=f("_hidden"),N=f("toPrimitive"),R={}.propertyIsEnumerable,j=u("symbol-registry"),z=u("symbols"),U=u("op-symbols"),q=Object.prototype,H="function"==typeof P&&!!I.f,V=i.QObject,W=!V||!V.prototype||!V.prototype.findChild,G=r&&c((function(){return 7!=S(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=E(q,t);i&&delete q[t],O(e,t,n),i&&e!==q&&O(q,t,i)}:O,K=function(e){var t=z[e]=S(P.prototype);return t._k=e,t},Q=H&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===q&&Y(U,t,n),b(e),t=w(t,!0),b(n),o(z,t)?(n.enumerable?(o(e,B)&&e[B][t]&&(e[B][t]=!1),n=S(n,{enumerable:A(0,!1)})):(o(e,B)||O(e,B,A(1,{})),e[B][t]=!0),G(e,t,n)):O(e,t,n)},J=function(e,t){b(e);for(var n,i=g(t=k(t)),o=0,r=i.length;r>o;)Y(e,n=i[o++],t[n]);return e},Z=function(e){var t=R.call(this,e=w(e,!0));return!(this===q&&o(z,e)&&!o(U,e))&&(!(t||!o(this,e)||!o(z,e)||o(this,B)&&this[B][e])||t)},$=function(e,t){if(e=k(e),t=w(t,!0),e!==q||!o(z,t)||o(U,t)){var n=E(e,t);return!n||!o(z,t)||o(e,B)&&e[B][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=T(k(e)),i=[],r=0;n.length>r;)o(z,t=n[r++])||t==B||t==l||i.push(t);return i},ee=function(e){for(var t,n=e===q,i=T(n?U:k(e)),r=[],a=0;i.length>a;)!o(z,t=i[a++])||n&&!o(q,t)||r.push(z[t]);return r};H||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(U,n),o(this,B)&&o(this[B],e)&&(this[B][e]=!1),G(this,e,A(1,n))};return r&&W&&G(q,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",(function(){return this._k})),L.f=$,_.f=Y,n(164).f=C.f=X,n(107).f=Z,I.f=ee,r&&!n(104)&&s(q,"propertyIsEnumerable",Z,!0),m.f=function(e){return K(f(e))}),a(a.G+a.W+a.F*!H,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var ie=M(f.store),oe=0;ie.length>oe;)h(ie[oe++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return o(j,e+="")?j[e]:j[e]=P(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!H,"Object",{create:function(e,t){return void 0===t?S(e):J(S(e),t)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:X,getOwnPropertySymbols:ee});var re=c((function(){I.f(1)}));a(a.S+a.F*re,"Object",{getOwnPropertySymbols:function(e){return I.f(x(e))}}),F&&a(a.S+a.F*(!H||c((function(){var e=P();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=t=i[1],(y(t)||void 0!==e)&&!Q(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),i[1]=t,D.apply(F,i)}}),P.prototype[N]||n(71)(P.prototype,N,P.prototype.valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){var i=n(64),o=n(164).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==r.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(i(e))}},function(e,t,n){var i=n(42),o=n(100),r=n(32)("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||null==(n=i(a)[r])?t:o(n)}},function(e,t,n){var i,o,r,a=n(70),s=n(317),l=n(214),c=n(151),u=n(27),d=u.process,p=u.setImmediate,f=u.clearImmediate,m=u.MessageChannel,h=u.Dispatch,g=0,v={},b=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},y=function(e){b.call(e.data)};p&&f||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},i(g),g},f=function(e){delete v[e]},"process"==n(102)(d)?i=function(e){d.nextTick(a(b,e,1))}:h&&h.now?i=function(e){h.now(a(b,e,1))}:m?(r=(o=new m).port2,o.port1.onmessage=y,i=a(r.postMessage,r,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(e){u.postMessage(e+"","*")},u.addEventListener("message",y,!1)):i="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:p,clear:f}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(42),o=n(35),r=n(167);e.exports=function(e,t){if(i(e),o(t)&&t.constructor===e)return t;var n=r.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var i=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n,i){var o=t&&t.prototype instanceof h?t:h,r=Object.create(o.prototype),a=new I(i||[]);return r._invoke=function(e,t,n){var i=u;return function(o,r){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===o)throw r;return M()}for(n.method=o,n.arg=r;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=c(e,t,n);if("normal"===l.type){if(i=n.done?f:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=f,n.method="throw",n.arg=l.arg)}}}(e,n,a),r}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u="suspendedStart",d="suspendedYield",p="executing",f="completed",m={};function h(){}function g(){}function v(){}var b={};b[r]=function(){return this};var y=Object.getPrototypeOf,x=y&&y(y(_([])));x&&x!==n&&i.call(x,r)&&(b=x);var k=v.prototype=h.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function A(e){var t;this._invoke=function(n,o){function r(){return new Promise((function(t,r){!function t(n,o,r,a){var s=c(e[n],e,o);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,r,a)}),(function(e){t("throw",e,r,a)})):Promise.resolve(u).then((function(e){l.value=e,r(l)}),(function(e){return t("throw",e,r,a)}))}a(s.arg)}(n,o,t,r)}))}return t=t?t.then(r,r):r()}}function S(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=c(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var r=o.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function C(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function _(e){if(e){var n=e[r];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:M}}function M(){return{value:t,done:!0}}return g.prototype=k.constructor=v,v.constructor=g,v[s]=g.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},w(A.prototype),A.prototype[a]=function(){return this},e.AsyncIterator=A,e.async=function(t,n,i,o){var r=new A(l(t,n,i,o));return e.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},w(k),k[s]="Generator",k[r]=function(){return this},k.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 i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=_,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},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 n=this;function o(i,o){return s.type="throw",s.arg=e,n.next=i,o&&(n.method="next",n.arg=t),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,m):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),m},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),L(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:_(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=i}catch(e){Function("r","regeneratorRuntime = r")(i)}},function(e,t,n){"use strict";e.exports=a,e.exports.preferredLanguages=a;var i=/^s*([^s-;]+)(?:-([^s;]+))?s*(?:;(.*))?$/;function o(e,t){var n=i.exec(e);if(!n)return null;var o=n[1],r=n[2],a=o;r&&(a+="-"+r);var s=1;if(n[3])for(var l=n[3].split(";"),c=0;c<l.length;c++){var u=l[c].split("=");"q"===u[0]&&(s=parseFloat(u[1]))}return{prefix:o,suffix:r,q:s,i:t,full:a}}function r(e,t,n){var i=o(e);if(!i)return null;var r=0;if(t.full.toLowerCase()===i.full.toLowerCase())r|=4;else if(t.prefix.toLowerCase()===i.full.toLowerCase())r|=2;else if(t.full.toLowerCase()===i.prefix.toLowerCase())r|=1;else if("*"!==t.full)return null;return{i:n,o:t.i,q:t.q,s:r}}function a(e,t){var n=function(e){for(var t=e.split(","),n=0,i=0;n<t.length;n++){var r=o(t[n].trim(),n);r&&(t[i++]=r)}return t.length=i,t}(void 0===e?"*":e||"");if(!t)return n.filter(c).sort(s).map(l);var i=t.map((function(e,t){return function(e,t,n){for(var i={o:-1,q:0,s:0},o=0;o<t.length;o++){var a=r(e,t[o],n);a&&(i.s-a.s||i.q-a.q||i.o-a.o)<0&&(i=a)}return i}(e,n,t)}));return i.filter(c).sort(s).map((function(e){return t[i.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 c(e){return e.q>0}},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=null;return function(){var i=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(i,o)}),t)}}},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";n.r(t);var i=n(11),o=n.n(i),r=n(4),a=n.n(r);t.default=function(){return a()(o()()/1e3,10)}},function(e,t,n){"use strict";n.r(t);var i=n(206),o=Object(i.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 o(e)}},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]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(a=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),r=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[n].concat(r).concat([o]).join("n")}var a;return[n].join("n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];null!=r&&(i[r]=!0)}for(o=0;o<e.length;o++){var a=e[o];null!=a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var i,o,r={},a=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=i.apply(this,arguments)),o}),s=function(e,t){return t?t.querySelector(e):document.querySelector(e)},l=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var i=s.call(this,e,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}}(),c=null,u=0,d=[],p=n(369);function f(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=r[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(y(i.parts[a],t))}else{var s=[];for(a=0;a<i.parts.length;a++)s.push(y(i.parts[a],t));r[i.id]={id:i.id,refs:1,parts:s}}}}function m(e,t){for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],a=t.base?r[0]+t.base:r[0],s={css:r[1],media:r[2],sourceMap:r[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}function h(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=d[d.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]nn Invalid value for parameter 'insertAt' ('options.insertAt') found.n Must be 'top', 'bottom', or Object.n (https://github.com/webpack-contrib/style-loader#insertat)n");var o=l(e.insertAt.before,n);n.insertBefore(t,o)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var i=function(){0;return n.nc}();i&&(e.attrs.nonce=i)}return b(t,e.attrs),h(e,t),t}function b(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(e,t){var n,i,o,r;if(t.transform&&e.css){if(!(r="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=r}if(t.singleton){var a=u++;n=c||(c=v(t)),i=w.bind(null,n,a,!1),o=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",b(t,e.attrs),h(e,t),t}(t),i=S.bind(null,n,t),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),i=A.bind(null,n),o=function(){g(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=m(e,t);return f(n,t),function(e){for(var i=[],o=0;o<n.length;o++){var a=n[o];(s=r[a.id]).refs--,i.push(s)}e&&f(m(e,t),t);for(o=0;o<i.length;o++){var s;if(0===(s=i[o]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete r[s.id]}}}};var x,k=(x=[],function(e,t){return x[e]=t,x.filter(Boolean).join("n")});function w(e,t,n,i){var o=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=k(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function A(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function S(e,t,n){var i=n.css,o=n.sourceMap,r=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||r)&&(i=p(i)),o&&(i+="n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([i],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},function(e,t,n){var i=n(390),o=n(391);e.exports=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){e.exports=!n(24)&&!n(18)((function(){return 7!=Object.defineProperty(n(174)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){t.f=n(21)},function(e,t,n){var i=n(43),o=n(37),r=n(129)(!1),a=n(176)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~r(c,n)||c.push(n));return c}},function(e,t,n){var i=n(26),o=n(12),r=n(65);e.exports=n(24)?Object.defineProperties:function(e,t){o(e);for(var n,a=r(t),s=a.length,l=0;s>l;)i.f(e,n=a[l++],t[n]);return e}},function(e,t,n){var i=n(37),o=n(85).f,r={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==r.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(i(e))}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var i=n(31),o=n(17),r=n(181),a=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var i=[],o=0;o<t;o++)i[o]="a["+o+"]";s[t]=Function("F,a","return new F("+i.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),s=function(){var i=n.concat(a.call(arguments));return this instanceof s?l(t,i.length,i):r(t,i,e)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){var i=n(14).parseInt,o=n(96).trim,r=n(182),a=/^[-+]?0[xX]/;e.exports=8!==i(r+"08")||22!==i(r+"0x16")?function(e,t){var n=o(String(e),3);return i(n,t>>>0||(a.test(n)?16:10))}:i},function(e,t,n){var i=n(14).parseFloat,o=n(96).trim;e.exports=1/i(n(182)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},function(e,t,n){var i=n(52);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=i(e))throw TypeError(t);return+e}},function(e,t,n){var i=n(17),o=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&o(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var i=n(185),o=Math.pow,r=o(2,-52),a=o(2,-23),s=o(2,127)*(2-a),l=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),c=i(e);return o<l?c*(o/l/a+1/r-1/r)*l*a:(n=(t=(1+a/r)*o)-(t-o))>s||n!=n?c*(1/0):c*n}},function(e,t,n){var i=n(12);e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&i(r.call(e)),t}}},function(e,t,n){var i=n(31),o=n(28),r=n(111),a=n(25);e.exports=function(e,t,n,s,l){i(t);var c=o(e),u=r(c),d=a(c.length),p=l?d-1:0,f=l?-1:1;if(n<2)for(;;){if(p in u){s=u[p],p+=f;break}if(p+=f,l?p<0:d<=p)throw TypeError("Reduce of empty array with no initial value")}for(;l?p>=0:d>p;p+=f)p in u&&(s=t(s,u[p],p,c));return s}},function(e,t,n){"use strict";var i=n(28),o=n(84),r=n(25);e.exports=[].copyWithin||function(e,t){var n=i(this),a=r(n.length),s=o(e,a),l=o(t,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:o(c,a))-l,a-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(e,t,n){"use strict";var i=n(195);n(0)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(e,t,n){n(24)&&"g"!=/./g.flags&&n(26).f(RegExp.prototype,"flags",{configurable:!0,get:n(114)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(12),o=n(17),r=n(199);e.exports=function(e,t){if(i(e),o(t)&&t.constructor===e)return t;var n=r.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var i=n(257),o=n(90);e.exports=n(140)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=i.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return i.def(o(this,"Map"),0===e?0:e,t)}},i,!0)},function(e,t,n){"use strict";var i=n(26).f,o=n(66),r=n(89),a=n(50),s=n(88),l=n(78),c=n(133),u=n(194),d=n(87),p=n(24),f=n(75).fastKey,m=n(90),h=p?"_s":"size",g=function(e,t){var n,i=f(t);if("F"!==i)return e._i[i];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,i){s(e,u,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[h]=0,null!=i&&l(i,n,e[c],e)}));return r(u.prototype,{clear:function(){for(var e=m(this,t),n=e._i,i=e._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];e._f=e._l=void 0,e[h]=0},delete:function(e){var n=m(this,t),i=g(n,e);if(i){var o=i.n,r=i.p;delete n._i[i.i],i.r=!0,r&&(r.n=o),o&&(o.p=r),n._f==i&&(n._f=o),n._l==i&&(n._l=r),n[h]--}return!!i},forEach:function(e){m(this,t);for(var n,i=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(m(this,t),e)}}),p&&i(u.prototype,"size",{get:function(){return m(this,t)[h]}}),u},def:function(e,t,n){var i,o,r=g(e,t);return r?r.v=n:(e._l=r={i:o=f(t,!0),k:t,v:n,p:i=e._l,n:void 0,r:!1},e._f||(e._f=r),i&&(i.n=r),e[h]++,"F"!==o&&(e._i[o]=r)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=m(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var i=n(257),o=n(90);e.exports=n(140)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return i.def(o(this,"Set"),e=0===e?0:e,e)}},i)},function(e,t,n){"use strict";var i,o=n(14),r=n(59)(0),a=n(45),s=n(75),l=n(179),c=n(260),u=n(17),d=n(90),p=n(90),f=!o.ActiveXObject&&"ActiveXObject"in o,m=s.getWeak,h=Object.isExtensible,g=c.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(u(e)){var t=m(e);return!0===t?g(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(d(this,"WeakMap"),e,t)}},y=e.exports=n(140)("WeakMap",v,b,c,!0,!0);p&&f&&(l((i=c.getConstructor(v,"WeakMap")).prototype,b),s.NEED=!0,r(["delete","has","get","set"],(function(e){var t=y.prototype,n=t[e];a(t,e,(function(t,o){if(u(t)&&!h(t)){this._f||(this._f=new i);var r=this._f[e](t,o);return"set"==e?this:r}return n.call(this,t,o)}))})))},function(e,t,n){"use strict";var i=n(89),o=n(75).getWeak,r=n(12),a=n(17),s=n(88),l=n(78),c=n(59),u=n(43),d=n(90),p=c(5),f=c(6),m=0,h=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return p(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var c=e((function(e,i){s(e,c,t,"_i"),e._t=t,e._i=m++,e._l=void 0,null!=i&&l(i,n,e[r],e)}));return i(c.prototype,{delete:function(e){if(!a(e))return!1;var n=o(e);return!0===n?h(d(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return!0===n?h(d(this,t)).has(e):n&&u(n,this._i)}}),c},def:function(e,t,n){var i=o(r(t),!0);return!0===i?h(e).set(t,n):i[e._i]=n,e},ufstore:h}},function(e,t,n){var i=n(53),o=n(25);e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){"use strict";var i=n(131),o=n(17),r=n(25),a=n(50),s=n(21)("isConcatSpreadable");e.exports=function e(t,n,l,c,u,d,p,f){for(var m,h,g=u,v=0,b=!!p&&a(p,f,3);v<c;){if(v in l){if(m=b?b(l[v],v,n):l[v],h=!1,o(m)&&(h=void 0!==(h=m[s])?!!h:i(m)),h&&d>0)g=e(t,n,m,r(m.length),g,d-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=m}g++}v++}return g}},function(e,t,n){var i=n(25),o=n(184),r=n(57);e.exports=function(e,t,n,a){var s=String(r(e)),l=s.length,c=void 0===n?" ":String(n),u=i(t);if(u<=l||""==c)return s;var d=u-l,p=o.call(c,Math.ceil(d/c.length));return p.length>d&&(p=p.slice(0,d)),a?p+s:s+p}},function(e,t,n){var i=n(24),o=n(65),r=n(37),a=n(112).f;e.exports=function(e){return function(t){for(var n,s=r(t),l=o(s),c=l.length,u=0,d=[];c>u;)n=l[u++],i&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},function(e,t,n){var i=n(76),o=n(266);e.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},function(e,t,n){var i=n(78);e.exports=function(e,t){var n=[];return i(e,!1,n.push,n,t),n}},function(e,t){e.exports=Math.scale||function(e,t,n,i,o){return 0===arguments.length||e!=e||t!=t||n!=n||i!=i||o!=o?NaN:e===1/0||e===-1/0?e:(e-t)*(o-i)/(n-t)+i}},function(e,t,n){var i=n(76),o=n(21)("iterator"),r=n(86);e.exports=n(36).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||r.hasOwnProperty(i(t))}},function(e,t,n){"use strict";var i=n(270),o=n(181),r=n(31);e.exports=function(){for(var e=r(this),t=arguments.length,n=new Array(t),a=0,s=i._,l=!1;t>a;)(n[a]=arguments[a++])===s&&(l=!0);return function(){var i,r=this,a=arguments.length,c=0,u=0;if(!l&&!a)return o(e,n,r);if(i=n.slice(),l)for(;t>c;c++)i[c]===s&&(i[c]=arguments[u++]);for(;a>u;)i.push(arguments[u++]);return o(e,i,r)}}},function(e,t,n){e.exports=n(14)},function(e,t,n){var i=n(26),o=n(46),r=n(201),a=n(37);e.exports=function(e,t){for(var n,s=r(a(t)),l=s.length,c=0;l>c;)i.f(e,n=s[c++],o.f(t,n));return e}},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n(5),r=function(){function e(t,n){if(Object(i.a)(this,e),this.browser=t.toLowerCase(),!(n="")){var o=navigator.language;n=o.indexOf("-")?o.split("-").shift():o}this.country=n.toLowerCase(),this.platform=navigator?navigator.platform.toLowerCase():null}return Object(o.a)(e,[{key:"getLanguage",value:function(){return window.navigator?window.navigator.language:""}}]),e}(),a="userjs",s="chrome",l="firefox",c="opera";function u(e){return window.navigator.userAgent.indexOf("OPR")>-1||window.navigator.userAgent.indexOf("Opera")>-1?c:e.isGM?a:e.isFirefox?l:e.isChrome?s:void 0}n.d(t,"UserEnvironment",(function(){return r})),n.d(t,"getBrowser",(function(){return u}))},function(e,t,n){e.exports=n(289)},function(e,t,n){e.exports=n(337)},function(e,t,n){e.exports=n(394)},function(e,t,n){n(277),e.exports=n(16).Array.isArray},function(e,t,n){var i=n(23);i(i.S,"Array",{isArray:n(153)})},function(e,t,n){n(103),n(283),e.exports=n(16).Array.from},function(e,t,n){var i=n(154),o=n(120);e.exports=function(e){return function(t,n){var r,a,s=String(o(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(r=s.charCodeAt(l))<55296||r>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):r:e?s.slice(l,l+2):a-56320+(r-55296<<10)+65536}}},function(e,t,n){"use strict";var i=n(156),o=n(101),r=n(105),a={};n(71)(a,n(32)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(a,{next:o(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var i=n(64),o=n(121),r=n(282);e.exports=function(e){return function(t,n,a){var s,l=i(t),c=o(l.length),u=r(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var i=n(154),o=Math.max,r=Math.min;e.exports=function(e,t){return(e=i(e))<0?o(e+t,0):r(e,t)}},function(e,t,n){"use strict";var i=n(70),o=n(23),r=n(82),a=n(215),s=n(216),l=n(121),c=n(217),u=n(161);o(o.S+o.F*!n(218)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,d,p=r(e),f="function"==typeof this?this:Array,m=arguments.length,h=m>1?arguments[1]:void 0,g=void 0!==h,v=0,b=u(p);if(g&&(h=i(h,m>2?arguments[2]:void 0,2)),null==b||f==Array&&s(b))for(n=new f(t=l(p.length));t>v;v++)c(n,v,g?h(p[v],v):p[v]);else for(d=b.call(p),n=new f;!(o=d.next()).done;v++)c(n,v,g?a(d,h,[o.value,v],!0):o.value);return n.length=v,n}})},function(e,t,n){n(106),n(103),e.exports=n(288)},function(e,t,n){"use strict";var i=n(286),o=n(287),r=n(92),a=n(64);e.exports=n(211)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var i=n(162),o=n(32)("iterator"),r=n(92);e.exports=n(16).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||r.hasOwnProperty(i(t))}},function(e,t,n){n(290),e.exports=n(16).Object.values},function(e,t,n){var i=n(23),o=n(219)(!1);i(i.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){n(292),e.exports=n(16).parseFloat},function(e,t,n){var i=n(23),o=n(293);i(i.G+i.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){var i=n(27).parseFloat,o=n(220).trim;e.exports=1/i(n(163)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},function(e,t,n){n(295);var i=n(16).Object;e.exports=function(e,t){return i.defineProperties(e,t)}},function(e,t,n){var i=n(23);i(i.S+i.F*!n(49),"Object",{defineProperties:n(212)})},function(e,t,n){n(297),e.exports=n(16).Object.getOwnPropertyDescriptors},function(e,t,n){var i=n(23),o=n(298),r=n(64),a=n(108),s=n(217);i(i.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,i=r(e),l=a.f,c=o(i),u={},d=0;c.length>d;)void 0!==(n=l(i,t=c[d++]))&&s(u,t,n);return u}})},function(e,t,n){var i=n(164),o=n(124),r=n(42),a=n(27).Reflect;e.exports=a&&a.ownKeys||function(e){var t=i.f(r(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){n(300);var i=n(16).Object;e.exports=function(e,t){return i.getOwnPropertyDescriptor(e,t)}},function(e,t,n){var i=n(64),o=n(108).f;n(125)("getOwnPropertyDescriptor",(function(){return function(e,t){return o(i(e),t)}}))},function(e,t,n){n(221),e.exports=n(16).Object.getOwnPropertySymbols},function(e,t,n){var i=n(93),o=n(124),r=n(107);e.exports=function(e){var t=i(e),n=o.f;if(n)for(var a,s=n(e),l=r.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){n(304),e.exports=n(16).Object.entries},function(e,t,n){var i=n(23),o=n(219)(!0);i(i.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){n(306);var i=n(16).Object;e.exports=function(e,t,n){return i.defineProperty(e,t,n)}},function(e,t,n){var i=n(23);i(i.S+i.F*!n(49),"Object",{defineProperty:n(51).f})},function(e,t,n){var i=n(16),o=i.JSON||(i.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},function(e,t,n){n(309),e.exports=n(16).Date.now},function(e,t,n){var i=n(23);i(i.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){n(311),e.exports=n(16).parseInt},function(e,t,n){var i=n(23),o=n(312);i(i.G+i.F*(parseInt!=o),{parseInt:o})},function(e,t,n){var i=n(27).parseInt,o=n(220).trim,r=n(163),a=/^[-+]?0[xX]/;e.exports=8!==i(r+"08")||22!==i(r+"0x16")?function(e,t){var n=o(String(e),3);return i(n,t>>>0||(a.test(n)?16:10))}:i},function(e,t,n){n(314),e.exports=n(16).Object.keys},function(e,t,n){var i=n(82),o=n(93);n(125)("keys",(function(){return function(e){return o(i(e))}}))},function(e,t,n){n(127),n(103),n(106),n(316),n(321),n(322),e.exports=n(16).Promise},function(e,t,n){"use strict";var i,o,r,a,s=n(104),l=n(27),c=n(70),u=n(162),d=n(23),p=n(35),f=n(100),m=n(166),h=n(128),g=n(223),v=n(224).set,b=n(318)(),y=n(167),x=n(225),k=n(319),w=n(226),A=l.TypeError,S=l.process,C=S&&S.versions,L=C&&C.v8||"",I=l.Promise,_="process"==u(S),M=function(){},E=o=y.f,O=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[n(32)("species")]=function(e){e(M,M)};return(_||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==L.indexOf("6.6")&&-1===k.indexOf("Chrome/66")}catch(e){}}(),T=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;b((function(){for(var i=e._v,o=1==e._s,r=0,a=function(t){var n,r,a,s=o?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(o||(2==e._h&&B(e),e._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===t.promise?c(A("Promise-chain cycle")):(r=T(n))?r.call(n,l,c):l(n)):c(i)}catch(e){u&&!a&&u.exit(),c(e)}};n.length>r;)a(n[r++]);e._c=[],e._n=!1,t&&!e._h&&F(e)}))}},F=function(e){v.call(l,(function(){var t,n,i,o=e._v,r=D(e);if(r&&(t=x((function(){_?S.emit("unhandledRejection",o,e):(n=l.onunhandledrejection)?n({promise:e,reason:o}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",o)})),e._h=_||D(e)?2:1),e._a=void 0,r&&t.e)throw t.v}))},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},B=function(e){v.call(l,(function(){var t;_?S.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},N=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},R=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw A("Promise can't be resolved itself");(t=T(e))?b((function(){var i={_w:n,_d:!1};try{t.call(e,c(R,i,1),c(N,i,1))}catch(e){N.call(i,e)}})):(n._v=e,n._s=1,P(n,!1))}catch(e){N.call({_w:n,_d:!1},e)}}};O||(I=function(e){m(this,I,"Promise","_h"),f(e),i.call(this);try{e(c(R,this,1),c(N,this,1))}catch(e){N.call(this,e)}},(i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(168)(I.prototype,{then:function(e,t){var n=E(g(this,I));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=_?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i;this.promise=e,this.resolve=c(R,e,1),this.reject=c(N,e,1)},y.f=E=function(e){return e===I||e===a?new r(e):o(e)}),d(d.G+d.W+d.F*!O,{Promise:I}),n(105)(I,"Promise"),n(320)("Promise"),a=n(16).Promise,d(d.S+d.F*!O,"Promise",{reject:function(e){var t=E(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!O),"Promise",{resolve:function(e){return w(s&&this===a?I:this,e)}}),d(d.S+d.F*!(O&&n(218)((function(e){I.all(e).catch(M)}))),"Promise",{all:function(e){var t=this,n=E(t),i=n.resolve,o=n.reject,r=x((function(){var n=[],r=0,a=1;h(e,!1,(function(e){var s=r++,l=!1;n.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--a||i(n))}),o)})),--a||i(n)}));return r.e&&o(r.v),n.promise},race:function(e){var t=this,n=E(t),i=n.reject,o=x((function(){h(e,!1,(function(e){t.resolve(e).then(n.resolve,i)}))}));return o.e&&i(o.v),n.promise}})},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var i=n(27),o=n(224).set,r=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==n(102)(a);e.exports=function(){var e,t,n,c=function(){var i,o;for(l&&(i=a.domain)&&i.exit();e;){o=e.fn,e=e.next;try{o()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(c)};else if(!r||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){o.call(i,c)};else{var d=!0,p=document.createTextNode("");new r(c).observe(p,{characterData:!0}),n=function(){p.data=d=!d}}return function(i){var o={fn:i,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){var i=n(27).navigator;e.exports=i&&i.userAgent||""},function(e,t,n){"use strict";var i=n(27),o=n(16),r=n(51),a=n(49),s=n(32)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:i[e];a&&t&&!t[s]&&r.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var i=n(23),o=n(16),r=n(27),a=n(223),s=n(226);i(i.P+i.R,"Promise",{finally:function(e){var t=a(this,o.Promise||r.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){"use strict";var i=n(23),o=n(167),r=n(225);i(i.S,"Promise",{try:function(e){var t=o.f(this),n=r(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){n(324);var i=n(16).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){var i=n(23);i(i.S,"Object",{create:n(156)})},function(e,t,n){n(127),e.exports=n(94).f("toStringTag")},function(e,t,n){n(221),n(127),n(327),n(328),e.exports=n(16).Symbol},function(e,t,n){n(165)("asyncIterator")},function(e,t,n){n(165)("observable")},function(e,t,n){n(103),n(106),e.exports=n(94).f("iterator")},function(e,t,n){n(331),e.exports=n(16).Object.getPrototypeOf},function(e,t,n){var i=n(82),o=n(123);n(125)("getPrototypeOf",(function(){return function(e){return o(i(e))}}))},function(e,t,n){n(333),e.exports=n(16).Object.setPrototypeOf},function(e,t,n){var i=n(23);i(i.S,"Object",{setPrototypeOf:n(334).set})},function(e,t,n){var i=n(35),o=n(42),r=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=n(70)(Function.call,n(108).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return r(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:r}},function(e,t,n){n(336),e.exports=n(16).Reflect.get},function(e,t,n){var i=n(108),o=n(123),r=n(63),a=n(23),s=n(35),l=n(42);a(a.S,"Reflect",{get:function e(t,n){var a,c,u=arguments.length<3?t:arguments[2];return l(t)===u?t[n]:(a=i.f(t,n))?r(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:s(c=o(t))?e(c,n,u):void 0}})},function(e,t,n){n(338);var i=n(16).Object;e.exports=function(e){return i.getOwnPropertyNames(e)}},function(e,t,n){n(125)("getOwnPropertyNames",(function(){return n(222).f}))},function(e,t,n){n(340),e.exports=n(94).f("hasInstance")},function(e,t,n){"use strict";var i=n(35),o=n(123),r=n(32)("hasInstance"),a=Function.prototype;r in a||n(51).f(a,r,{value:function(e){if("function"!=typeof this||!i(e))return!1;if(!i(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){n(106),n(103),e.exports=n(342)},function(e,t,n){var i=n(42),o=n(161);e.exports=n(16).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n(5),r=n(7),a=n.n(r),s=n(91),l=n(147),c={addedNodes:"added",removedNodes:"removed"},u=a()(c),d=function(){function e(t){Object(i.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(o.a)(e,[{key:"init",value:function(){var e=this,t=Object(s.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,i=0;t=n[i];i++){for(var o,r={target:e.target,added:[],removed:[]},a=0;o=u[a];a++){var s=c[o];if(void 0===t.is||t.is===s)for(var d,p=r[s],f=e[o],m=0;d=f[m];m++)1===d.nodeType&&(Object(l.default)(d,t.css)?p.push(d):p.push.apply(p,d.querySelectorAll(t.css)))}(r.added.length||r.removed.length)&&t.callback(r)}}},{key:"_isAvailableTarget",value:function(e){for(var t,n=this.filterTarget,i=0;t=n[i];i++)if(Object(l.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(s.default)()}}]),e}();t.default=d},function(e,t,n){"use strict";n.r(t);var i,o,r=n(11),a=n.n(r),s=n(1),l=void 0!==l?l:void 0;void 0===l&&(i=n.n(s).a,o=a()()%1e9,(l=function(){this.name="__st"+(1e9*Math.random()>>>0)+o+++"__"}).prototype={set:function(e,t){var n=e[this.name];return n&&n[0]===e?n[1]=t:i(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 c=void 0!==c?c:void 0;!function(){if(void 0===c){var e,t=new l;if("undefined"!=typeof navigator&&/Trident|Edge/.test(navigator.userAgent))e=setTimeout;else if(window.setImmediate)e=window.setImmediate;else{var n=[],i=String(Math.random());window.addEventListener("message",(function(e){if(e.data===i){var t=n;n=[],t.forEach((function(e){e()}))}})),e=function(e){n.push(e),window.postMessage(i,"*")}}var o,r,a=!1,s=[],u=0;(c=function(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++u}).prototype={observe:function(e,n){var i;if(i=e,e=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(i)||i,!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 o,r=t.get(e);r||t.set(e,r=[]);for(var a=0;a<r.length;a++)if(r[a].observer===this){(o=r[a]).removeListeners(),o.options=n;break}o||(o=new v(this,e,n),r.push(o),this.nodes_.push(e)),o.addListeners()},disconnect:function(){this.nodes_.forEach((function(e){for(var n=t.get(e),i=0;i<n.length;i++){var o=n[i];if(o.observer===this){o.removeListeners(),n.splice(i,1);break}}}),this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},v.prototype={enqueue:function(t){var n,i=this.observer.records_,o=i.length;if(i.length>0){var r=g(i[o-1],t);if(r)return void(i[o-1]=r)}else n=this.observer,s.push(n),a||(a=!0,e(d));i[o]=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),i=0;i<n.length;i++)if(n[i]===this){n.splice(i,1);break}}),this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,i=e.target;(s=new m("attributes",i)).attributeName=t,s.attributeNamespace=n;var a=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;p(i,(function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(n)))return e.attributeOldValue?h(a):s}));break;case"DOMCharacterDataModified":var s=m("characterData",i=e.target);a=e.prevValue;p(i,(function(e){if(e.characterData)return e.characterDataOldValue?h(a):s}));break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var l,c,u=e.target;"DOMNodeInserted"===e.type?(l=[u],c=[]):(l=[],c=[u]);var d=u.previousSibling,f=u.nextSibling;(s=m("childList",e.target.parentNode)).addedNodes=l,s.removedNodes=c,s.previousSibling=d,s.nextSibling=f,p(e.relatedNode,(function(e){if(e.childList)return s}))}o=r=void 0}}}function d(){a=!1;var e=s;s=[],e.sort((function(e,t){return e.uid_-t.uid_}));var n=!1;e.forEach((function(e){var i=e.takeRecords();!function(e){e.nodes_.forEach((function(n){var i=t.get(n);i&&i.forEach((function(t){t.observer===e&&t.removeTransientObservers()}))}))}(e),i.length&&(e.callback_(i,e),n=!0)})),n&&d()}function p(e,n){for(var i=e;i;i=i.parentNode){var o=t.get(i);if(o)for(var r=0;r<o.length;r++){var a=o[r],s=a.options;if(i===e||s.subtree){var l=n(s);l&&a.enqueue(l)}}}}function f(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 m(e,t){return o=new f(e,t)}function h(e){return r||((n=new f((t=o).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,(r=n).oldValue=e,r);var t,n}function g(e,t){return e===t?e:r&&((n=e)===r||n===o)?r:null;var n}function v(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}}(),t.default=c},function(e,t,n){"use strict";n.r(t);var i=n(119);t.default=function(e,t){if(!e||1!==e.nodeType)return null;if(Object(i.default)(e,t))return e;if(!Object(i.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(i.default)(n,t))return n}return null}},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";n.r(t);var i=n(8),o=n.n(i),r=n(3),a=n.n(r),s=n(11),l=n.n(s),c=n(4),u=n.n(c),d=n(41),p=n.n(d);t.default=function(e,t){t||(t=e,e=[]);var n="sf-bridge-"+u()(1e3*Math.random(),10)+"-"+l()();return new a.a((function(i){window.addEventListener(n,(function e(t){window.removeEventListener(n,e),i(t.detail)}));var r="(function(fn,args,id){var scriptNode=document.getElementById(id);if(scriptNode){scriptNode.parentNode.removeChild(scriptNode)}var onDone=function onDone(result){var e=new CustomEvent(id,{detail:JSON.stringify(result)});window.dispatchEvent(e)};var onSuccess=function onSuccess(result){onDone({result:result})};var onError=function onError(err){onDone({err:{name:err.name,message:err.message,code:err.code}})};try{Promise.resolve(fn.apply(null,args)).then(onSuccess,onError)}catch(err){onError(err)}})("+[t].concat([e,n].map((function(e){return o()(e)}))).join(",")+")",a=document.createElement("script");a.id=n,a.textContent=r,document.body.appendChild(a)})).then((function(e){var t=JSON.parse(e),n=t.err,i=t.result;if(n)throw p()(new Error,n);return i}))}},function(e,t,n){"use strict";n.r(t);var i=n(6),o=n.n(i);t.default=function(e,t){o()(t)||(t=[t]);for(var n=e;n;n=n.parentNode){if(1!==n.nodeType)return null;for(var i,r=0;i=t[r];r++)if(n.classList.contains(i))return n}return null}},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n(5),r=n(91),a=function(){function e(t){Object(i.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(o.a)(e,[{key:"init",value:function(){var e=this;this.attrs.forEach((function(t){e.options.attributeFilter.push(t.name)}));var t=Object(r.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 i=this.target.getAttribute(e.name);null!==i&&e.callback({value:i,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,i=0;t=n[i];i++)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(r.default)()}}]),e}();t.default=a},function(e,t,n){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,r){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;r&&"number"==typeof r.maxKeys&&(l=r.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,p,f,m,h=e[u].replace(s,"%20"),g=h.indexOf(n);g>=0?(d=h.substr(0,g),p=h.substr(g+1)):(d=h,p=""),f=decodeURIComponent(d),m=decodeURIComponent(p),i(a,f)?o(a[f])?a[f].push(m):a[f]=[a[f],m]:a[f]=m}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var i=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?r(a(e),(function(a){var s=encodeURIComponent(i(a))+n;return o(e[a])?r(e[a],(function(e){return s+encodeURIComponent(i(e))})).join(t):s+encodeURIComponent(i(e[a]))})).join(t):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],i=0;i<e.length;i++)n.push(t(e[i],i));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);var i=n(6),o=n.n(i),r=n(60);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(!o()(t))return document.createTextNode(t);for(var i=n.fragment||document.createDocumentFragment(),a=0,s=t.length;a<s;a++){var l=t[a];if("object"==typeof l)for(var c in l){var u=l[c],d=u.append;delete u.append;var p;i.appendChild(p=r.default.create(c,u)),void 0!==d&&e(d,{fragment:p})}else i.appendChild(document.createTextNode(l))}return i}},function(e,t,n){"use strict";n.r(t);var i=/^[^{]+{s*[native w/,o=function(e,t){return(o=i.test(document.compareDocumentPosition)||i.test(document.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}: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 o(e,t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"showTooltip",(function(){return d})),n.d(t,"hideTooltip",(function(){return p}));var i=n(2),o=n(5),r=n(41),a=n.n(r),s=n(60),l=n(69),c=n(204),u=function(){function e(t){Object(i.a)(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.target=t,this.options=a()({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(){if(this.isVisible)this.startHideTimeout();else{this.node||(this.node=this.createTooltip()),this.isVisible=!0;var e=document.body;e&&(this.node.classList.add("hidden"),e.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(){return s.default.create("div",{class:["sf-paper-tooltip-ctr"],append:[s.default.create("div",{class:"sf-paper-tooltip",text:this.options.content}),s.default.create("style",{text:Object(c.default)({".sf-paper-tooltip-ctr":{display:"block",outline:"none",userSelect:"none",cursor:"default",position:"absolute",zIndex:1e4,transition:"opacity 0.25s",maxWidth:"400px"},".sf-paper-tooltip-ctr.hidden":{opacity:0},".sf-paper-tooltip":{display:"block",outline:"none",fontFamily:"Arial",fontSize:"12px",backgroundColor:"#616161",opacity:.9,color:"white",padding:"8px",borderRadius:"2px",margin:"8px"}})})]})}},{key:"setPos",value:function(){var e=window,t=e.pageXOffset,n=e.pageYOffset,i=e.innerWidth,o=e.innerHeight,r=o+n,a=i+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={},u=["top","bottom","left","right"].map((function(e){var u=null,d=null,p=0;if(-1!==["left","right"].indexOf(e)){var f=(l.height-s.height)/2;if(u=Math.round(l.top+n+f),s.height<o){var m=u+s.height;m>r&&(u-=m-r,p=1),u<0&&(u=0,p=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 h=(l.width-s.width)/2;if(d=Math.round(l.left+t+h),s.width<i){var g=d+s.width;g>a&&(d-=g-a,p=1),d<0&&(d=0,p=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,x=s.height,k=y;u<0&&(x-=-1*u),b>r&&(x-=b-r),d<0&&(k-=-1*d),v>a&&(k-=v-a);var w=100/(s.width*s.height)*(k*x)-p;return c[e]={top:u,left:d,quality:w}}));u.sort((function(e,t){var n=e.quality,i=t.quality;return n===i?0:n>i?-1:1}));var d=u[0];this.node.style.top=d.top+"px",this.node.style.left=d.left+"px"}}]),e}(),d=function(e,t){if(!(e.dataset.sfTitleTooltip>0)){e.dataset.sfTitleTooltip=1;var n=new u(e,t);e.addEventListener("show_tooltip",(function(){n.show()})),e.addEventListener("hide_tooltip",(function(){n.hide()}))}l.default.trigger(e,"show_tooltip")},p=function(e){e.dataset.sfTitleTooltip>0&&l.default.trigger(e,"hide_tooltip")}},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 i=arguments[t];for(var o in i)void 0!==i[o]&&(delete e[o],e[o]=i[o])}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),t.default=function(e){for(var t=[];e.parentElement&&1===e.parentElement.nodeType;){var n="",i=[].slice.call(e.parentElement.children);i.length>1&&(n=":nth-child(".concat(i.indexOf(e)+1,")")),t.unshift("".concat(e.tagName).concat(n)),e=e.parentElement}return t.join(">")}},function(e,t,n){"use strict";n.r(t);var i=n(3),o=n.n(i);t.default=function(e){return[function(t){return o.a.resolve(e()).then((function(){return t}))},function(t){return o.a.resolve(e()).then((function(){throw t}))}]}},function(e,t,n){var i;e.exports=(i=n(360),function(e){var t=i,n=t.lib,o=n.WordArray,r=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=r.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,o=e[i];e[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var r=this._hash.words,a=e[t+0],l=e[t+1],f=e[t+2],m=e[t+3],h=e[t+4],g=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],x=e[t+9],k=e[t+10],w=e[t+11],A=e[t+12],S=e[t+13],C=e[t+14],L=e[t+15],I=r[0],_=r[1],M=r[2],E=r[3];I=c(I,_,M,E,a,7,s[0]),E=c(E,I,_,M,l,12,s[1]),M=c(M,E,I,_,f,17,s[2]),_=c(_,M,E,I,m,22,s[3]),I=c(I,_,M,E,h,7,s[4]),E=c(E,I,_,M,g,12,s[5]),M=c(M,E,I,_,v,17,s[6]),_=c(_,M,E,I,b,22,s[7]),I=c(I,_,M,E,y,7,s[8]),E=c(E,I,_,M,x,12,s[9]),M=c(M,E,I,_,k,17,s[10]),_=c(_,M,E,I,w,22,s[11]),I=c(I,_,M,E,A,7,s[12]),E=c(E,I,_,M,S,12,s[13]),M=c(M,E,I,_,C,17,s[14]),I=u(I,_=c(_,M,E,I,L,22,s[15]),M,E,l,5,s[16]),E=u(E,I,_,M,v,9,s[17]),M=u(M,E,I,_,w,14,s[18]),_=u(_,M,E,I,a,20,s[19]),I=u(I,_,M,E,g,5,s[20]),E=u(E,I,_,M,k,9,s[21]),M=u(M,E,I,_,L,14,s[22]),_=u(_,M,E,I,h,20,s[23]),I=u(I,_,M,E,x,5,s[24]),E=u(E,I,_,M,C,9,s[25]),M=u(M,E,I,_,m,14,s[26]),_=u(_,M,E,I,y,20,s[27]),I=u(I,_,M,E,S,5,s[28]),E=u(E,I,_,M,f,9,s[29]),M=u(M,E,I,_,b,14,s[30]),I=d(I,_=u(_,M,E,I,A,20,s[31]),M,E,g,4,s[32]),E=d(E,I,_,M,y,11,s[33]),M=d(M,E,I,_,w,16,s[34]),_=d(_,M,E,I,C,23,s[35]),I=d(I,_,M,E,l,4,s[36]),E=d(E,I,_,M,h,11,s[37]),M=d(M,E,I,_,b,16,s[38]),_=d(_,M,E,I,k,23,s[39]),I=d(I,_,M,E,S,4,s[40]),E=d(E,I,_,M,a,11,s[41]),M=d(M,E,I,_,m,16,s[42]),_=d(_,M,E,I,v,23,s[43]),I=d(I,_,M,E,x,4,s[44]),E=d(E,I,_,M,A,11,s[45]),M=d(M,E,I,_,L,16,s[46]),I=p(I,_=d(_,M,E,I,f,23,s[47]),M,E,a,6,s[48]),E=p(E,I,_,M,b,10,s[49]),M=p(M,E,I,_,C,15,s[50]),_=p(_,M,E,I,g,21,s[51]),I=p(I,_,M,E,A,6,s[52]),E=p(E,I,_,M,m,10,s[53]),M=p(M,E,I,_,k,15,s[54]),_=p(_,M,E,I,l,21,s[55]),I=p(I,_,M,E,y,6,s[56]),E=p(E,I,_,M,L,10,s[57]),M=p(M,E,I,_,v,15,s[58]),_=p(_,M,E,I,S,21,s[59]),I=p(I,_,M,E,h,6,s[60]),E=p(E,I,_,M,w,10,s[61]),M=p(M,E,I,_,f,15,s[62]),_=p(_,M,E,I,x,21,s[63]),r[0]=r[0]+I|0,r[1]=r[1]+_|0,r[2]=r[2]+M|0,r[3]=r[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var r=e.floor(i/4294967296),a=i;n[15+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(o+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,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,o,r,a){var s=e+(t&n|~t&i)+o+a;return(s<<r|s>>>32-r)+t}function u(e,t,n,i,o,r,a){var s=e+(t&i|n&~i)+o+a;return(s<<r|s>>>32-r)+t}function d(e,t,n,i,o,r,a){var s=e+(t^n^i)+o+a;return(s<<r|s>>>32-r)+t}function p(e,t,n,i,o,r,a){var s=e+(n^(t|~i))+o+a;return(s<<r|s>>>32-r)+t}t.MD5=r._createHelper(l),t.HmacMD5=r._createHmacHelper(l)}(Math),i.MD5)},function(e,t,n){var i;e.exports=(i=i||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},o=i.lib={},r=o.Base={extend:function(e){var t=n(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)}},a=o.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,o=e.sigBytes;if(this.clamp(),i%4)for(var r=0;r<o;r++){var a=n[r>>>2]>>>24-r%4*8&255;t[i+r>>>2]|=a<<24-(i+r)%4*8}else for(r=0;r<o;r+=4)t[i+r>>>2]=n[r>>>2];return this.sigBytes+=o,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=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],o=function(t){t=t;var n=987654321,i=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},r=0;r<t;r+=4){var s=o(4294967296*(n||e.random()));n=987654071*s(),i.push(4294967296*s()|0)}return new a.init(i,t)}}),s=i.enc={},l=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;i.push((r>>>4).toString(16)),i.push((15&r).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o++){var r=t[o>>>2]>>>24-o%4*8&255;i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,o=n.sigBytes,r=this.blockSize,s=o/(4*r),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,c=e.min(4*l,o);if(l){for(var u=0;u<l;u+=r)this._doProcessBlock(i,u);var d=i.splice(0,l);n.sigBytes-=c}return new a.init(d,c)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=(o.Hasher=d.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.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 p.HMAC.init(e,n).finalize(t)}}}),i.algo={});return i}(Math),i)},function(e,t,n){"use strict";n.r(t),n.d(t,"DOWNLOAD_ICON",(function(){return i})),n.d(t,"STYLE",(function(){return o}));var i='<svg enable-background="new 0 0 512 512" height="18px" id="Layer_1" version="1.1" viewBox="0 0 512 512" width="18px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M473.843,204.112H373.625V50.018C373.625,22.505,351.121,0,323.608,0H189.576  c-27.512,0-50.017,22.505-50.017,50.018v154.095H38.155c-27.512,0-35.851,17.492-18.536,38.867l204.893,252.982  c17.317,21.384,45.647,21.384,62.962,0l204.907-252.982C509.696,221.604,501.355,204.112,473.843,204.112z" fill="#747474"/></svg>',o="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            position: absolute;n            margin-left: 0;n            right: 141px;n            padding-right: 10px;n            padding-left: 10px;n      }n      n      .sf-download-in-control {n            margin: 12px;n            width: 11px;n            height: 22px;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){var i=n(363),o=n(364),r=n(365);e.exports=function(e,t){return i(e)||o(e,t)||r()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){o=!0,r=e}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";n.r(t),n.d(t,"ContentScript",(function(){return c}));var i=n(11),o=n.n(i),r=n(8),a=n.n(r),s=n(2),l=n(5),c=function(){function e(){Object(s.a)(this,e),this.cache=u}return Object(l.a)(e,[{key:"appendStyle",value:function(e){var t=document.createElement("style");t.innerHTML=e,document.body.appendChild(t)}}]),e}(),u=function(){function e(){Object(s.a)(this,e)}return Object(l.a)(e,null,[{key:"set",value:function(e,t,n){localStorage.setItem(e,a()({val:t,expires:n?o()()+60*n*1e3:-1}))}},{key:"get",value:function(e){var t=localStorage.getItem(e);if(!t)return null;var n=JSON.parse(t),i=n.val,r=n.expires;return i&&-1===r||r>o()()?i:null}}]),e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"YandexAPI",(function(){return O}));var i=n(33),o=n(2),r=n(5),a=n(11),s=n.n(a),l=n(1),c=n.n(l),u=n(61),d=n.n(u),p=n(39),f=n.n(p),m=n(30),h=n.n(m),g=n(40),v=n.n(g),b=n(7),y=n.n(b),x=n(15),k=n.n(x),w=n(80),A=n.n(w),S=n(29),C=n.n(S),L=n(38);function I(e,t){var n=y()(e);if(v.a){var i=v()(e);t&&(i=i.filter((function(t){return h()(e,t).enumerable}))),n.push.apply(n,i)}return n}function _(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){A()(e,t,n[t])})):f.a?d()(e,f()(n)):I(Object(n)).forEach((function(t){c()(e,t,h()(n,t))}))}return e}var M=function(e,t){return"https://music.yandex.ru/api/v2.1/handlers/track/".concat(e,":").concat(t,"/web-home_new-chart-track-saved/download/m?hq=0&external-domain=music.yandex.ru&overembed=no&__t=").concat(s()())},E=function(e,t,n,i,o){return"https://".concat(e,"/get-mp3/").concat(t,"/").concat(n,"/").concat(i,"?track-id=").concat(o,"&play=false")},O=function(){function e(t){Object(o.a)(this,e),this.uid=t}return Object(r.a)(e,[{key:"fetchTrack",value:function(e,t){var n=this;return C()(k.a.mark((function o(){var r,a,s,l,c,u,d,p,f,m,h,g,v;return k.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return r={headers:{accept:"application/json","X-Current-UID":n.uid,"X-Retpath-Y":document.URL},json:!0,withCredentials:!0},o.next=3,Object(L.default)(_({url:M(t,e)},r));case 3:return a=o.sent,s=a.body,l=s.src,c=s.codec,u=s.bitrate,d=new URL(l),[["track_id",t],["format","json"]].forEach((function(e){var t;return(t=d.searchParams).append.apply(t,Object(i.a)(e))})),o.next=9,Object(L.default)(_({url:d.toString()},r));case 9:return p=o.sent,f=p.body,m=f.host,h=f.ts,g=f.path,v=f.s,o.abrupt("return",{bitrate:u,codec:c,downloadURL:E(m,v,h,g,t)});case 12:case"end":return o.stop()}}),o)})))()}}]),e}()},function(e,t,n){"use strict";n.r(t);t.default=function(e,t){for(var n;-1!==(n=e.indexOf("."));){if(-1!==t.indexOf(e))return!0;e=e.substr(n+1)}return!1}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(//[^/]*$/,"/");return e.replace(/urls*(((?:[^)(]|((?:[^)(]+|([^)(]*))*))*))/gi,(function(e,t){var o,r=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http://|https://|file:///|s*$)/i.test(r)?e:(o=0===r.indexOf("//")?r:0===r.indexOf("/")?n+r:i+r.replace(/^.//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e?function e(t,n){var i;i=Array.isArray(t)?[]:{};n.push(t);Object.keys(t).forEach((function(o){var r=t[o];"function"!=typeof r&&(r&&"object"==typeof r?-1!==n.indexOf(t[o])?i[o]="[Circular]":i[o]=e(t[o],n.slice(0)):i[o]=r)}));"string"==typeof t.name&&(i.name=t.name);"string"==typeof t.message&&(i.message=t.message);"string"==typeof t.stack&&(i.stack=t.stack);return i}(e,[]):"function"==typeof e?"[Function: "+(e.name||"anonymous")+"]":e}},function(e,t,n){var i=n(372).default;e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="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 o(e){return e&&"object"===(void 0===e?"undefined":i(e))&&"string"==typeof e.name&&"string"==typeof e.message}t.default=function(e){return o(e)?Object.assign(new Error,{stack:void 0},e):e},t.isSerializedError=o},function(e,t,n){"use strict";var i,o="object"==typeof Reflect?Reflect:null,r=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=o&&"function"==typeof o.ownKeys?o.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,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,n,i){var o,r,a,s;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),a=r[t]),void 0===a)a=r[t]=n,++e._eventsCount;else if("function"==typeof a?a=r[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!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 d(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,r(this.listener,this.target,e))}function p(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d.bind(i);return o.listener=n,i.wrapFn=o,o}function f(e,t,n){var i=e._events;if(void 0===i)return[];var o=i[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]: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}(o):h(o,o.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 h(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];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 i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){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=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=h(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,i,o,r,a;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,r=n.length-1;r>=0;r--)if(n[r]===t||n[r].listener===t){a=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,i;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 o,r=Object.keys(n);for(i=0;i<r.length;++i)"removeListener"!==(o=r[i])&&this.removeAllListeners(o);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(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},s.prototype.listeners=function(e){return f(this,e,!0)},s.prototype.rawListeners=function(e){return f(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?i(this._events):[]}},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={youtube:"moduleYoutube",dailymotion:"moduleDailymotion",vimeo:"moduleVimeo",facebook:"moduleFacebook",soundcloud:"moduleSoundcloud",vk:"moduleVkontakte",odnoklassniki:"moduleOdnoklassniki",mailru:"moduleMailru",instagram:"moduleInstagram",rutube:"moduleRutube",tiktok:"moduleTiktok",yandexMusic:"moduleYandexMusic"}},function(e,t,n){"use strict";n.r(t);var i=n(6),o=n.n(i),r=n(3),a=n.n(r),s=n(2),l=n(5),c=n(79),u=n(55),d=n(19),p=n(20),f=Object(p.default)("VimeoComEmbed"),m=function(){function e(t){Object(s.a)(this,e),this.engine=t}return Object(l.a)(e,[{key:"getVimeoLinks",value:function(e,t){return this._getVimeoLinks(e.extVideoId,e.url,(function(n,i,o){var r={action:e.action,extVideoId:e.extVideoId,links:n,title:i,thumb:o};t(r)})),!0}},{key:"_getVimeoLinks",value:function(e,t,n){var i=this;this.getVimeoNoEmbedLinks(e,t,(function(t,o,r){if(t)return n(t,o,r);i.getVimeoEmbedLinks(e,n)}))}},{key:"getVimeoEmbedLinks",value:function(e,t){var n=this,i=function(){return t(null,"","")};if(!e)return i();Object(d.default)({url:"https://player.vimeo.com/video/"+e},(function(e,o,r){if(e||!r)return i();var a=Object(u.default)(r,[/"files":/]),s=null;return a.some((function(e){if(e.video&&e.request&&e.request.files)return s=e,!0})),(r=n.getLinksFromConfig(s))?t(r.links,r.title,r.thumb):i()}))}},{key:"getVimeoConfig",value:function(e,t){var n=this,i=function(){return t(null,"","")};Object(d.default)({url:e},(function(e,o,r){return e||!r?i():(r=n.getVimeoDataFromConfig(r))?t(r.links,r.title,r.thumb):i()}))}},{key:"getVimeoLinksFromConfigAction",value:function(e,t){var n=this;return new a.a((function(t,i){var o=n.getLinksFromConfig(e.config);o?t(o):i(new Error("Get links from config error"))})).then(t,(function(e){f.error("getVimeoLinksFromConfigAction error",e),t(null)})),!0}},{key:"getClipPageConfig",value:function(e,t){var n=null;return Object(c.default)(e,/['"]config_url['"]s*:s*/).some((function(e){return Object(u.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 i=this;if(e&&t){var o=/vimeo.com/[^/]+/review/d+/i.test(t),r=/vimeo.com/d+/w+/i.test(t);o||r||(t=null)}Object(d.default)({url:t||"https://vimeo.com/"+e},(function(e,t,o){if(e||!o)return n(null,"","");var r=o.match(/data-config-url=["']([^s"'<>]+)/i);return(r=r&&r[1].replace(/&amp;/gi,"&"))?i.getVimeoConfig(r,n):i.getClipPageConfig(o,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,i={};i.title=t.title||"";var r=null;for(var a in t.thumbs)(null===r||r<a)&&(r=a,i.thumb=t.thumbs[a]);for(var s in i.links=[],n)o()(n[s])&&n[s].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(),o=e.quality;/^d+p$/.test(o)&&(o=o.replace(/p$/,""));var r=n+" "+o;i.links.push({url:e.url,name:r,height:o,type:n,format:n,ext:t})}}));return i.links.length||(i=null),i}},{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=m},function(e,t,n){n(378),e.exports=n(94).f("replace")},function(e,t){},function(e,t,n){n(127),n(106),n(380),n(386),n(388),e.exports=n(16).WeakMap},function(e,t,n){"use strict";var i,o=n(27),r=n(170)(0),a=n(155),s=n(126),l=n(383),c=n(384),u=n(35),d=n(171),p=n(171),f=!o.ActiveXObject&&"ActiveXObject"in o,m=s.getWeak,h=Object.isExtensible,g=c.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(u(e)){var t=m(e);return!0===t?g(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(d(this,"WeakMap"),e,t)}},y=e.exports=n(385)("WeakMap",v,b,c,!0,!0);p&&f&&(l((i=c.getConstructor(v,"WeakMap")).prototype,b),s.NEED=!0,r(["delete","has","get","set"],(function(e){var t=y.prototype,n=t[e];a(t,e,(function(t,o){if(u(t)&&!h(t)){this._f||(this._f=new i);var r=this._f[e](t,o);return"set"==e?this:r}return n.call(this,t,o)}))})))},function(e,t,n){var i=n(382);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){var i=n(35),o=n(153),r=n(32)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var i=n(49),o=n(93),r=n(124),a=n(107),s=n(82),l=n(157),c=Object.assign;e.exports=!c||n(72)((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=r.f,p=a.f;c>u;)for(var f,m=l(arguments[u++]),h=d?o(m).concat(d(m)):o(m),g=h.length,v=0;g>v;)f=h[v++],i&&!p.call(m,f)||(n[f]=m[f]);return n}:c},function(e,t,n){"use strict";var i=n(168),o=n(126).getWeak,r=n(42),a=n(35),s=n(166),l=n(128),c=n(170),u=n(63),d=n(171),p=c(5),f=c(6),m=0,h=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return p(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var c=e((function(e,i){s(e,c,t,"_i"),e._t=t,e._i=m++,e._l=void 0,null!=i&&l(i,n,e[r],e)}));return i(c.prototype,{delete:function(e){if(!a(e))return!1;var n=o(e);return!0===n?h(d(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return!0===n?h(d(this,t)).has(e):n&&u(n,this._i)}}),c},def:function(e,t,n){var i=o(r(t),!0);return!0===i?h(e).set(t,n):i[e._i]=n,e},ufstore:h}},function(e,t,n){"use strict";var i=n(27),o=n(23),r=n(126),a=n(72),s=n(71),l=n(168),c=n(128),u=n(166),d=n(35),p=n(105),f=n(51).f,m=n(170)(0),h=n(49);e.exports=function(e,t,n,g,v,b){var y=i[e],x=y,k=v?"set":"add",w=x&&x.prototype,A={};return h&&"function"==typeof x&&(b||w.forEach&&!a((function(){(new x).entries().next()})))?(x=t((function(t,n){u(t,x,e,"_c"),t._c=new y,null!=n&&c(n,v,t[k],t)})),m("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var t="add"==e||"set"==e;e in w&&(!b||"clear"!=e)&&s(x.prototype,e,(function(n,i){if(u(this,x,e),!t&&b&&!d(n))return"get"==e&&void 0;var o=this._c[e](0===n?0:n,i);return t?this:o}))})),b||f(x.prototype,"size",{get:function(){return this._c.size}})):(x=g.getConstructor(t,e,v,k),l(x.prototype,n),r.NEED=!0),p(x,e),A[e]=x,o(o.G+o.W+o.F,A),b||g.setStrong(x,e,v),x}},function(e,t,n){n(387)("WeakMap")},function(e,t,n){"use strict";var i=n(23);e.exports=function(e){i(i.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(389)("WeakMap")},function(e,t,n){"use strict";var i=n(23),o=n(100),r=n(70),a=n(128);e.exports=function(e){i(i.S,e,{from:function(e){var t,n,i,s,l=arguments[1];return o(this),(t=void 0!==l)&&o(l),null==e?new this:(n=[],t?(i=0,s=r(l,arguments[2],2),a(e,!1,(function(e){n.push(s(e,i++))}))):a(e,!1,n.push,n),new this(n))}})}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},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}},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var i=n(172);function o(t,n,r){return!function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?e.exports=o=function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&i(r,n.prototype),r}:e.exports=o=Reflect.construct,o.apply(null,arguments)}e.exports=o},function(e,t,n){n(395),e.exports=n(16).Number.isFinite},function(e,t,n){var i=n(23),o=n(27).isFinite;i(i.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){"use strict";n.r(t);var i=n(6),o=n.n(i),r=n(2),a=n(5),s=n(98),l=n(19),c=n(97),u=n(109),d=function(){function e(t){Object(r.a)(this,e),this.engine=t}return Object(a.a)(e,[{key:"getOdnoklassnikiLinks",value:function(e,t){return this._getOdnoklassnikiLinks(e.extVideoId,(function(n){var i={action:e.action,extVideoId:e.extVideoId,links:n,title:e.title};t(i)})),!0}},{key:"getOdnoklassnikiAudioLinks",value:function(e,t){return this._getOdnoklassnikiAudioLinks(e.url,e.trackId,e.jsessionId,(function(n){var i={action:e.action,trackId:e.trackId,jsessionId:e.jsessionId,data:n};t(i)})),!0}},{key:"_getOdnoklassnikiLinks",value:function(e,t){if(e){var n="http://in.video.mail.ru/cgi-bin/video/oklite?eid="+e;Object(l.default)({url:n},(function(n,i,o){if(n||!o)return t(null);var r="http://www.okcontent.video.mail.ru/media/",a=o.match(/$vcontentHost=([^s"'<>]+)/i);a&&a.length>1&&(r="http://"+a[1]+"/media/"),r+=e;var s=[],l="",c=o.match(/$height=([0-9]+)/);c&&c.length>1&&(l=c[1]),s.push({url:r+"-v.mp4",name:"SD",ext:"FLV",subname:l}),o.search(/$HDexist=1/i)>-1&&(l="",(c=o.match(/$HDheight=([0-9]+)/))&&c.length>1&&(l=c[1]),s.push({url:r+"-hv.mp4",name:"HD",ext:"MP4",subname:l})),s&&t(s)}))}else t(null)}},{key:"_getOdnoklassnikiAudioLinks",value:function(e,t,n,i){if(!t||!n)return i(null);Object(l.default)({url:"http://wmf1.ok.ru/play;jsessionid="+n+"?tid="+t,json:!0},(function(e,t,n){if(e||!n)return i(null);i(n)}))}},{key:"getOkAudioListLinks",value:function(e,t){var n=[],i=e.trackIdArr,r=e.jsessionId;if(!o()(i)||"string"!=typeof r||!i.length)return t(n);for(var a,s=i.length,l=0,c=function(e){e&&n.push(e),function(){if(++l===s)t(n)}()},u=0;a=i[u];u++)this._getOdnoklassnikiAudioLinks(void 0,a,r,c);return!0}},{key:"getClipyouLinks",value:function(e,t,n,i,r){Object(l.default)({url:"http://media.clipyou.ru/api/player/secure_link?record_id="+e+"&type=mp4&resource_hash="+t,json:!0},(function(e,t,a){if(e||!a||!o()(a.data)||!a.data.length)return r();var s=[];a.data.forEach((function(e){s.push({quality:n,url:e,title:i})})),r(s)}))}},{key:"getClipyouHash",value:function(e,t){Object(l.default)({url:"http://media.clipyou.ru/api/player_data.json?id="+e},(function(e,n,i){if(e||!i)return t();if(!(i=i.match('resource_hash".?:.?"([^"]*)"'))||i.length<2)return t();var o=i[1];t(o)}))}},{key:"getPladformVideo",value:function(e,t){var n=this,i={action:e.action,extVideoId:e.extVideoId,links:[],title:e.title},o=function(){t(i)},r=e.extVideoId.playerId,a=e.extVideoId.videoId;return Object(l.default)({url:"http://out.pladform.ru/getVideo?pl="+r+"&videoid="+a,xml:!0},(function(e,t,r){if(e||!r)return o();var a=r.querySelectorAll("src");if(0===a.length)return o();var s=r.querySelector("cover")||void 0;s&&(s=s.textContent)&&"//"===s.substr(0,2)&&(s="http:"+s);var l=r.querySelector("time")||void 0;l=l&&l.textContent;var c=r.querySelector("title");(c=c&&c.textContent)&&(i.title=c);var u=a[0],d=u.getAttribute("type"),p=u.textContent||"",f=u.getAttribute("quality");if(u){if("clipyou"===d)return n.getClipyouHash(p,(function(e){if(!e)return o();n.getClipyouLinks(p,e,f,c,(function(e){i.links=e,o()}))}));if("rutube"===d){var m=r.querySelector("external_embed");return(m=m&&m.textContent)&&(i.action="getRutubeLinks",i.links=[m]),o()}}for(var h,g=["ld","sd"],v=["360","720"],b=0;h=a[b];b++){p=h.textContent||"",f=h.getAttribute("quality"),/^d+p$/.test(f)&&(f=f.match(/^(d+)p$/)[1]);var y=g.indexOf(f);-1!==y&&(f=v[y]),"video"===(d=h.getAttribute("type"))&&i.links.push({url:p,quality:f,title:c,cover:s,duration:l})}return o()})),!0}},{key:"getOkMetadata",value:function(e,t){var n=e.url;return n?(Object(l.default)({method:"POST",url:n,json:!0},(function(e,n,i){if(e||!i)return t();t(i)})),!0):t()}},{key:"getOkViaMobile",value:function(e,t){var n=e.metadata,i={"st.cmd":"movieLayer","st.mvId":e.mvId},o="http://m.ok.ru/dk?"+u.stringify(i),r={action:e.action,links:null,title:n.movie.title};return Object(l.default)({url:o},(function(i,o,a){if(i||!a)return t();var l=new RegExp('href="([^"]+st\.cmd=moviePlaybackRedirect[^"]+st\.mvid='+e.mvId+'[^"]+)"'),u=a.match(l);if(!(u=u&&u[1]))return t();if(u=c.default.decodeSpecialChars(u),r.links=[{url:u}],!/st.mq=d+/.test(u))return t(r);var d=n.videos;if(!d||!d.length)return t(r);d.forEach((function(e){if(e.url){var t=Object(s.default)(e.url);t.type&&(e.url=u.replace(/(st.mq=)d+/,"$1"+t.type))}})),r.links=d,t(r)})),!0}},{key:"okDirectOrMobile",value:function(e,t){var n=this,i=e.metadata,o=null;i.videos&&i.videos.some((function(e){if(e.url)return o=e.url,!0}));var r=function(){e.action="getOkViaMobile",n.getOkViaMobile(e,t)};return o?(Object(l.default)({url:o,type:"HEAD"},(function(n){return n?r():(e.action="getOkViaMobileNoWrap",e.links=i.videos,t(e))})),!0):(r(),!0)}}]),e}();t.default=d},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n(5),r=n(19),a=n(117),s=function(){function e(t){Object(i.a)(this,e),this.engine=t}return Object(o.a)(e,[{key:"getInstagramPostInfo",value:function(e,t){var n=e.url;return Object(r.default)({url:n,headers:{Referer:n}},(function(e,i){if(e)return t();var o=/window._sharedDatas=s({.+)/.exec(i.body),r=null;o&&Object(a.default)(o[1]).some((function(e){if(e.entry_data)return r=e,!0})),t({url:n,sharedData:r})})),!0}}]),e}();t.default=s},function(e,t,n){"use strict";n.r(t);var i=n(6),o=n.n(i),r=n(2),a=n(5),s=n(79),l=n(117),c=n(19),u=function(){function e(t){Object(r.a)(this,e),this.engine=t}return Object(a.a)(e,[{key:"getFacebookLinks",value:function(e,t){return this._getFacebookLinks(e.extVideoId,(function(n,i,o,r){var a={action:e.action,extVideoId:e.extVideoId,links:n||null,title:i||"",thumb:o||"",duration:r||""};t(a)})),!0}},{key:"getFacebookLinksFromData",value:function(e,t){var n=e.data,i=e.extVideoId;return this.getLinksFromData2(n,i,!0,(function(n,i,o,r){var a={action:"getFacebookLinksFromData",extVideoId:e.extVideoId,links:n||null,title:i||"",thumb:o||"",duration:r||""};t(a)}))}},{key:"_getFacebookLinks",value:function(e,t){var n=this;Object(c.default)({type:"GET",url:"https://www.facebook.com/video.php?v="+e,headers:{Cookie:""}},(function(i,o,r){if(i||!r)return t();n.getLinksFromData(r,e,t)}))}},{key:"getLinksFromData",value:function(e,t,n){var i=this,r=e.match(/["params","([^"]*)"]/im);if(!r)return this.getLinksFromData2(e,t,!1,n);var a=null;try{if((a=JSON.parse(decodeURIComponent(JSON.parse('"'+r[1]+'"'))).video_data).progressive&&(a=a.progressive),!a)return n()}catch(e){return n()}var s=null,l=null,c=[],u={sd_src:"SD",hd_src:"HD"};o()(a)||(a=[a]);for(var d,p=0;d=a[p];p++)["sd_src","hd_src"].forEach((function(e){if(d.thumbnail_src&&(s=d.thumbnail_src),d.video_duration&&(l=d.video_duration),d[e]){var t=i.getFileExtension(d[e],"mp4");c.push({url:d[e],name:u[e],type:t,ext:t.toUpperCase()})}}));n(c,"",s,l)}},{key:"getLinksFromData2",value:function(e,t,n,i){var o=null,r=function(e){return e.split(/"?videoData"?:[/).some((function(e){return Object(l.default)(e).some((function(e){if((e.sd_src||e.hd_src)&&String(e.video_id)===String(t))return o=e,!0}))}))};if(n?r(e):Object(s.default)(e,[/"?videoData"?:[/]).some(r),!o)return i();var a,c=[];return o.sd_src&&(a=this.getFileExtension(o.sd_src,"mp4"),c.push({url:o.sd_src,name:"SD",type:a,ext:a.toUpperCase()})),o.hd_src&&(a=this.getFileExtension(o.hd_src,"mp4"),c.push({url:o.hd_src,name:"HD",type:a,ext:a.toUpperCase()})),i(c,"",o.thumbnail_src,o.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(c.default)({url:"https://www.facebook.com/photo.php?fbid="+e.fbid},(function(e,n,i){if(e||!i)return t();if(r=i.match(/<a[^>]+fbPhotosPhotoActionsItem[^>]+href="([^">]+dl=1)"[^>]+>/i)){var o=r[1].replace(/&amp;/g,"&");return t([o])}var r,a=[],s={};return(r=i.match(/(<a[^>]+rel="theater"[^>]+>)/gi))&&r.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),i=e.substr(t+1);i=i.substr(1,i.length-2).replace(/&amp;/g,"&"),s[n]=i,a.push(i)}}))})),s["data-ploi"]?t([s["data-ploi"]]):t(a)})),!0):t()}}]),e}();t.default=u},function(e,t,n){"use strict";n.r(t);var i=n(2),o=n(5),r=n(79),a=n(55),s=n(19),l=function(){function e(t){Object(i.a)(this,e),this.engine=t}return Object(o.a)(e,[{key:"getMailruLinks",value:function(e,t){return this._getMailruLinks(e.extVideoId,(function(n,i,o,r,a){var s={action:e.action,extVideoId:r||e.extVideoId,links:n,title:i,thumb:o,duration:a};t(s)})),!0}},{key:"_getMailruLinks",value:function(e,t){var n,i=this,o=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",o=l[1]+"/"+l[2]+"/video/"+l[3]+".html"),n)return this.onGetMailruMetadataUrl(n,o,t);Object(s.default)({url:"http://my.mail.ru/"+e},(function(e,s,l){if(e||!l)return t();var c=/"metaUrl":/,u=null;if(Object(r.default)(l,c).some((function(e){return Object(a.default)(e,c).some((function(e){if(e.metaUrl)return u=e,!0}))})),u)return n=u.metaUrl,void i.onGetMailruMetadataUrl(n,o,t);if(!(l=l.match(/<metas+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",i.onGetMailruMetadataUrl(n,o,t)}))}},{key:"onGetMailruMetadataUrl",value:function(e,t,n){var i=this;this.getMailruMetadata(e,(function(e){if(!e||"string"==typeof e)return n();i.readMailruMetadata(e,(function(e,o,r,a){n(i.prepMailruLinks(e),o,r,t,a)}))}))}},{key:"prepMailruLinks",value:function(e){if(e){for(var t,n=[],i=0;t=e[i];i++){var o=t.url,r="FLV";-1!==o.indexOf(".mp4")&&(r="MP4"),-1!==o.indexOf(".mov")&&(r="MOV"),-1!==o.indexOf(".mpg")&&(r="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=r.toLowerCase();n.push({url:o,subname:a,name:r,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,i){if(e||!i)return t();t(i)}))}},{key:"readMailruMetadata",value:function(e,t){var n,i=[],o=void 0,r=void 0;if(e.meta&&(r=e.meta.poster,o=e.meta.duration),"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})}))}else 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})}))}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 i=e.links;if(!i)return t();i.forEach((function(e){void 0===e.title&&(e.title=n)})),t(i,n,r,o)}))}return 0===i.length?t():t(i,n,r,o)}}]),e}();t.default=l},function(e,t,n){"use strict";n.r(t);var i=n(401);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 o=t[2],r=["^",n,":\/\/",o="*"===o?".+":(o=(o=i(o)).replace(/^\*\./,"(?:[^/]+\.)?")).replace(/\.\*$/g,"\.[a-z\.]{2,}")],a=t[3];return a?"*"===a?(a="(?:|/.*)",r.push(a),r.push("$")):a&&(a=(a=i(a="/"+a)).replace(/\*/g,".*"),r.push(a),r.push("$")):r.push("$"),r.join("")}},function(e,t,n){"use strict";var i=/[|\{}()[]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(i,"\$&")}},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);var i=n(4),o=n.n(i);t.default=function(e,t){var n=/^[d.]+$/;if(!n.test(e)||!n.test(t))throw new Error("Incorrect version");for(var i=function(e,t){for(;e.length<t;)e="0"+e;return e},r=e.split("."),a=t.split("."),s=0;s<a.length;s++){var l=r[s]||"",c=a[s]||"",u=Math.max(l.length,c.length);if(l=o()(i(l,u)),(c=o()(i(c,u)))!==l)return c>l}return!1}},function(e,t,n){"use strict";n.r(t);var i=n(8),o=n.n(i),r=n(38),a=n(20),s=n(109),l=Object(a.default)("amplitude");t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bc3c8ed7b305f692ec048b0425b002df";return l.debug("send",e),Object(r.default)({url:"https://api.amplitude.com/httpapi",method:"POST",contentType:"application/x-www-form-urlencoded",data:s.stringify({api_key:t,event:o()(e)})}).catch((function(e){l.error("amplitude error",e)}))}},function(e,t,n){"use strict";n.r(t),n.d(t,"isAllowedExperiment",(function(){return y}));var i=n(1),o=n.n(i),r=n(61),a=n.n(r),s=n(39),l=n.n(s),c=n(30),u=n.n(c),d=n(40),p=n.n(d),f=n(7),m=n.n(f),h=n(80),g=n.n(h);n(272);function v(e,t){var n=m()(e);if(p.a){var i=p()(e);t&&(i=i.filter((function(t){return u()(e,t).enumerable}))),n.push.apply(n,i)}return n}var b={enabled:!1,percent:10,countries:[],browsers:[],languages:["all"]};function y(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){g()(e,t,n[t])})):l.a?a()(e,l()(n)):v(Object(n)).forEach((function(t){o()(e,t,u()(n,t))}))}return e}({},b,{},e),i=n.browsers,r=void 0===i?[]:i,s=n.countries,c=void 0===s?[]:s,d=n.languages,p=void 0===d?[]:d,f=n.percent,m=function(e){return e.toLowerCase()},h=r.map(m).includes(t.browser)||r.includes("all"),y=c.map(m).includes(t.country)||c.includes("all"),x=p.map(m).find((function(e){return-1!==t.getLanguage().indexOf(e)}))||p.includes("all");return!!(n.enabled&&h&&y&&x)&&function(e){return 100*Math.random()<=e}(f)}},function(e,t,n){"use strict";function i(){return"f".concat((+new Date).toString(16)).concat((~~(1e8*Math.random())).toString(16))}n.r(t),n.d(t,"generateUUID",(function(){return i}))},function(e,t,n){n(408),n(605),n(113),n(607),n(268),n(608),n(609),n(610),n(611),n(612),n(613),n(614),n(615),n(616),n(617),e.exports=n(36)},function(e,t,n){n(409),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(489),n(490),n(492),n(493),n(494),n(495),n(496),n(497),n(498),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(193),n(513),n(252),n(514),n(253),n(515),n(516),n(517),n(518),n(519),n(256),n(258),n(259),n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(527),n(528),n(529),n(530),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(585),n(586),n(587),n(588),n(589),n(590),n(591),n(592),n(593),n(594),n(595),n(596),n(597),n(598),n(599),n(600),n(601),n(602),n(603),n(604),e.exports=n(36)},function(e,t,n){"use strict";var i=n(14),o=n(43),r=n(24),a=n(0),s=n(45),l=n(75).KEY,c=n(18),u=n(110),d=n(95),p=n(83),f=n(21),m=n(237),h=n(175),g=n(411),v=n(131),b=n(12),y=n(17),x=n(28),k=n(37),w=n(56),A=n(73),S=n(66),C=n(240),L=n(46),I=n(130),_=n(26),M=n(65),E=L.f,O=_.f,T=C.f,P=i.Symbol,F=i.JSON,D=F&&F.stringify,B=f("_hidden"),N=f("toPrimitive"),R={}.propertyIsEnumerable,j=u("symbol-registry"),z=u("symbols"),U=u("op-symbols"),q=Object.prototype,H="function"==typeof P&&!!I.f,V=i.QObject,W=!V||!V.prototype||!V.prototype.findChild,G=r&&c((function(){return 7!=S(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=E(q,t);i&&delete q[t],O(e,t,n),i&&e!==q&&O(q,t,i)}:O,K=function(e){var t=z[e]=S(P.prototype);return t._k=e,t},Q=H&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},Y=function(e,t,n){return e===q&&Y(U,t,n),b(e),t=w(t,!0),b(n),o(z,t)?(n.enumerable?(o(e,B)&&e[B][t]&&(e[B][t]=!1),n=S(n,{enumerable:A(0,!1)})):(o(e,B)||O(e,B,A(1,{})),e[B][t]=!0),G(e,t,n)):O(e,t,n)},J=function(e,t){b(e);for(var n,i=g(t=k(t)),o=0,r=i.length;r>o;)Y(e,n=i[o++],t[n]);return e},Z=function(e){var t=R.call(this,e=w(e,!0));return!(this===q&&o(z,e)&&!o(U,e))&&(!(t||!o(this,e)||!o(z,e)||o(this,B)&&this[B][e])||t)},$=function(e,t){if(e=k(e),t=w(t,!0),e!==q||!o(z,t)||o(U,t)){var n=E(e,t);return!n||!o(z,t)||o(e,B)&&e[B][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=T(k(e)),i=[],r=0;n.length>r;)o(z,t=n[r++])||t==B||t==l||i.push(t);return i},ee=function(e){for(var t,n=e===q,i=T(n?U:k(e)),r=[],a=0;i.length>a;)!o(z,t=i[a++])||n&&!o(q,t)||r.push(z[t]);return r};H||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===q&&t.call(U,n),o(this,B)&&o(this[B],e)&&(this[B][e]=!1),G(this,e,A(1,n))};return r&&W&&G(q,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",(function(){return this._k})),L.f=$,_.f=Y,n(85).f=C.f=X,n(112).f=Z,I.f=ee,r&&!n(74)&&s(q,"propertyIsEnumerable",Z,!0),m.f=function(e){return K(f(e))}),a(a.G+a.W+a.F*!H,{Symbol:P});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var ie=M(f.store),oe=0;ie.length>oe;)h(ie[oe++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return o(j,e+="")?j[e]:j[e]=P(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!H,"Object",{create:function(e,t){return void 0===t?S(e):J(S(e),t)},defineProperty:Y,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:X,getOwnPropertySymbols:ee});var re=c((function(){I.f(1)}));a(a.S+a.F*re,"Object",{getOwnPropertySymbols:function(e){return I.f(x(e))}}),F&&a(a.S+a.F*(!H||c((function(){var e=P();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=t=i[1],(y(t)||void 0!==e)&&!Q(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),i[1]=t,D.apply(F,i)}}),P.prototype[N]||n(44)(P.prototype,N,P.prototype.valueOf),d(P,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){e.exports=n(110)("native-function-to-string",Function.toString)},function(e,t,n){var i=n(65),o=n(130),r=n(112);e.exports=function(e){var t=i(e),n=o.f;if(n)for(var a,s=n(e),l=r.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var i=n(0);i(i.S,"Object",{create:n(66)})},function(e,t,n){var i=n(0);i(i.S+i.F*!n(24),"Object",{defineProperty:n(26).f})},function(e,t,n){var i=n(0);i(i.S+i.F*!n(24),"Object",{defineProperties:n(239)})},function(e,t,n){var i=n(37),o=n(46).f;n(58)("getOwnPropertyDescriptor",(function(){return function(e,t){return o(i(e),t)}}))},function(e,t,n){var i=n(28),o=n(47);n(58)("getPrototypeOf",(function(){return function(e){return o(i(e))}}))},function(e,t,n){var i=n(28),o=n(65);n(58)("keys",(function(){return function(e){return o(i(e))}}))},function(e,t,n){n(58)("getOwnPropertyNames",(function(){return n(240).f}))},function(e,t,n){var i=n(17),o=n(75).onFreeze;n(58)("freeze",(function(e){return function(t){return e&&i(t)?e(o(t)):t}}))},function(e,t,n){var i=n(17),o=n(75).onFreeze;n(58)("seal",(function(e){return function(t){return e&&i(t)?e(o(t)):t}}))},function(e,t,n){var i=n(17),o=n(75).onFreeze;n(58)("preventExtensions",(function(e){return function(t){return e&&i(t)?e(o(t)):t}}))},function(e,t,n){var i=n(17);n(58)("isFrozen",(function(e){return function(t){return!i(t)||!!e&&e(t)}}))},function(e,t,n){var i=n(17);n(58)("isSealed",(function(e){return function(t){return!i(t)||!!e&&e(t)}}))},function(e,t,n){var i=n(17);n(58)("isExtensible",(function(e){return function(t){return!!i(t)&&(!e||e(t))}}))},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{assign:n(179)})},function(e,t,n){var i=n(0);i(i.S,"Object",{is:n(241)})},function(e,t,n){var i=n(0);i(i.S,"Object",{setPrototypeOf:n(180).set})},function(e,t,n){"use strict";var i=n(76),o={};o[n(21)("toStringTag")]="z",o+""!="[object z]"&&n(45)(Object.prototype,"toString",(function(){return"[object "+i(this)+"]"}),!0)},function(e,t,n){var i=n(0);i(i.P,"Function",{bind:n(242)})},function(e,t,n){var i=n(26).f,o=Function.prototype,r=/^s*function ([^ (]*)/;"name"in o||n(24)&&i(o,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var i=n(17),o=n(47),r=n(21)("hasInstance"),a=Function.prototype;r in a||n(26).f(a,r,{value:function(e){if("function"!=typeof this||!i(e))return!1;if(!i(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var i=n(0),o=n(243);i(i.G+i.F*(parseInt!=o),{parseInt:o})},function(e,t,n){var i=n(0),o=n(244);i(i.G+i.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){"use strict";var i=n(14),o=n(43),r=n(52),a=n(183),s=n(56),l=n(18),c=n(85).f,u=n(46).f,d=n(26).f,p=n(96).trim,f=i.Number,m=f,h=f.prototype,g="Number"==r(n(66)(h)),v="trim"in String.prototype,b=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,i,o,r=(t=v?t.trim():p(t,3)).charCodeAt(0);if(43===r||45===r){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===r){switch(t.charCodeAt(1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+t}for(var a,l=t.slice(2),c=0,u=l.length;c<u;c++)if((a=l.charCodeAt(c))<48||a>o)return NaN;return parseInt(l,i)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(g?l((function(){h.valueOf.call(n)})):"Number"!=r(n))?a(new m(b(t)),n,f):b(t)};for(var y,x=n(24)?c(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;x.length>k;k++)o(m,y=x[k])&&!o(f,y)&&d(f,y,u(m,y));f.prototype=h,h.constructor=f,n(45)(i,"Number",f)}},function(e,t,n){"use strict";var i=n(0),o=n(53),r=n(245),a=n(184),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(e,t){for(var n=-1,i=t;++n<6;)i+=e*c[n],c[n]=i%1e7,i=l(i/1e7)},p=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=l(n/e),n=n%e*1e7},f=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},m=function(e,t,n){return 0===t?n:t%2==1?m(e,t-1,n*e):m(e*e,t/2,n)};i(i.P+i.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(18)((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,i,s,l=r(this,u),c=o(e),h="",g="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*m(2,69,1))-69)<0?l*m(2,-t,1):l/m(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(0,n),i=c;i>=7;)d(1e7,0),i-=7;for(d(m(10,i,1),0),i=t-1;i>=23;)p(1<<23),i-=23;p(1<<i),d(1,1),p(2),g=f()}else d(0,n),d(1<<-t,0),g=f()+a.call("0",c);return g=c>0?h+((s=g.length)<=c?"0."+a.call("0",c-s)+g:g.slice(0,s-c)+"."+g.slice(s-c)):h+g}})},function(e,t,n){"use strict";var i=n(0),o=n(18),r=n(245),a=1..toPrecision;i(i.P+i.F*(o((function(){return"1"!==a.call(1,void 0)}))||!o((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=r(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var i=n(0);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var i=n(0),o=n(14).isFinite;i(i.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var i=n(0);i(i.S,"Number",{isInteger:n(246)})},function(e,t,n){var i=n(0);i(i.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var i=n(0),o=n(246),r=Math.abs;i(i.S,"Number",{isSafeInteger:function(e){return o(e)&&r(e)<=9007199254740991}})},function(e,t,n){var i=n(0);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var i=n(0);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var i=n(0),o=n(244);i(i.S+i.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var i=n(0),o=n(243);i(i.S+i.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){var i=n(0),o=n(247),r=Math.sqrt,a=Math.acosh;i(i.S+i.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+r(e-1)*r(e+1))}})},function(e,t,n){var i=n(0),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var i=n(0),o=Math.atanh;i(i.S+i.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var i=n(0),o=n(185);i(i.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var i=n(0);i(i.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var i=n(0),o=Math.exp;i(i.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var i=n(0),o=n(186);i(i.S+i.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var i=n(0);i(i.S,"Math",{fround:n(248)})},function(e,t,n){var i=n(0),o=Math.abs;i(i.S,"Math",{hypot:function(e,t){for(var n,i,r=0,a=0,s=arguments.length,l=0;a<s;)l<(n=o(arguments[a++]))?(r=r*(i=l/n)*i+1,l=n):r+=n>0?(i=n/l)*i:n;return l===1/0?1/0:l*Math.sqrt(r)}})},function(e,t,n){var i=n(0),o=Math.imul;i(i.S+i.F*n(18)((function(){return-5!=o(4294967295,5)||2!=o.length})),"Math",{imul:function(e,t){var n=+e,i=+t,o=65535&n,r=65535&i;return 0|o*r+((65535&n>>>16)*r+o*(65535&i>>>16)<<16>>>0)}})},function(e,t,n){var i=n(0);i(i.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var i=n(0);i(i.S,"Math",{log1p:n(247)})},function(e,t,n){var i=n(0);i(i.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var i=n(0);i(i.S,"Math",{sign:n(185)})},function(e,t,n){var i=n(0),o=n(186),r=Math.exp;i(i.S+i.F*n(18)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(r(e-1)-r(-e-1))*(Math.E/2)}})},function(e,t,n){var i=n(0),o=n(186),r=Math.exp;i(i.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(r(e)+r(-e))}})},function(e,t,n){var i=n(0);i(i.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var i=n(0),o=n(84),r=String.fromCharCode,a=String.fromCodePoint;i(i.S+i.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,a=0;i>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?r(t):r(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var i=n(0),o=n(37),r=n(25);i(i.S,"String",{raw:function(e){for(var t=o(e.raw),n=r(t.length),i=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<i&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){"use strict";n(96)("trim",(function(e){return function(){return e(this,3)}}))},function(e,t,n){"use strict";var i=n(132)(!0);n(133)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var i=n(0),o=n(132)(!1);i(i.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var i=n(0),o=n(25),r=n(187),a="".endsWith;i(i.P+i.F*n(188)("endsWith"),"String",{endsWith:function(e){var t=r(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,i=o(t.length),s=void 0===n?i:Math.min(o(n),i),l=String(e);return a?a.call(t,l,s):t.slice(s-l.length,s)===l}})},function(e,t,n){"use strict";var i=n(0),o=n(187);i(i.P+i.F*n(188)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(0);i(i.P,"String",{repeat:n(184)})},function(e,t,n){"use strict";var i=n(0),o=n(25),r=n(187),a="".startsWith;i(i.P+i.F*n(188)("startsWith"),"String",{startsWith:function(e){var t=r(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return a?a.call(t,i,n):t.slice(n,n+i.length)===i}})},function(e,t,n){"use strict";n(48)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},function(e,t,n){"use strict";n(48)("big",(function(e){return function(){return e(this,"big","","")}}))},function(e,t,n){"use strict";n(48)("blink",(function(e){return function(){return e(this,"blink","","")}}))},function(e,t,n){"use strict";n(48)("bold",(function(e){return function(){return e(this,"b","","")}}))},function(e,t,n){"use strict";n(48)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},function(e,t,n){"use strict";n(48)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},function(e,t,n){"use strict";n(48)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},function(e,t,n){"use strict";n(48)("italics",(function(e){return function(){return e(this,"i","","")}}))},function(e,t,n){"use strict";n(48)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,n){"use strict";n(48)("small",(function(e){return function(){return e(this,"small","","")}}))},function(e,t,n){"use strict";n(48)("strike",(function(e){return function(){return e(this,"strike","","")}}))},function(e,t,n){"use strict";n(48)("sub",(function(e){return function(){return e(this,"sub","","")}}))},function(e,t,n){"use strict";n(48)("sup",(function(e){return function(){return e(this,"sup","","")}}))},function(e,t,n){var i=n(0);i(i.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var i=n(0),o=n(28),r=n(56);i(i.P+i.F*n(18)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=o(this),n=r(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var i=n(0),o=n(488);i(i.P+i.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(e,t,n){"use strict";var i=n(18),o=Date.prototype.getTime,r=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=r.call(new Date(-5e13-1))}))||!i((function(){r.call(new Date(NaN))}))?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+("00000"+Math.abs(t)).slice(i?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:r},function(e,t,n){var i=Date.prototype,o=i.toString,r=i.getTime;new Date(NaN)+""!="Invalid Date"&&n(45)(i,"toString",(function(){var e=r.call(this);return e==e?o.call(this):"Invalid Date"}))},function(e,t,n){var i=n(21)("toPrimitive"),o=Date.prototype;i in o||n(44)(o,i,n(491))},function(e,t,n){"use strict";var i=n(12),o=n(56);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(i(this),"number"!=e)}},function(e,t,n){var i=n(0);i(i.S,"Array",{isArray:n(131)})},function(e,t,n){"use strict";var i=n(50),o=n(0),r=n(28),a=n(249),s=n(189),l=n(25),c=n(190),u=n(113);o(o.S+o.F*!n(136)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,d,p=r(e),f="function"==typeof this?this:Array,m=arguments.length,h=m>1?arguments[1]:void 0,g=void 0!==h,v=0,b=u(p);if(g&&(h=i(h,m>2?arguments[2]:void 0,2)),null==b||f==Array&&s(b))for(n=new f(t=l(p.length));t>v;v++)c(n,v,g?h(p[v],v):p[v]);else for(d=b.call(p),n=new f;!(o=d.next()).done;v++)c(n,v,g?a(d,h,[o.value,v],!0):o.value);return n.length=v,n}})},function(e,t,n){"use strict";var i=n(0),o=n(190);i(i.S+i.F*n(18)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var i=n(0),o=n(37),r=[].join;i(i.P+i.F*(n(111)!=Object||!n(54)(r)),"Array",{join:function(e){return r.call(o(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var i=n(0),o=n(178),r=n(52),a=n(84),s=n(25),l=[].slice;i(i.P+i.F*n(18)((function(){o&&l.call(o)})),"Array",{slice:function(e,t){var n=s(this.length),i=r(this);if(t=void 0===t?n:t,"Array"==i)return l.call(this,e,t);for(var o=a(e,n),c=a(t,n),u=s(c-o),d=new Array(u),p=0;p<u;p++)d[p]="String"==i?this.charAt(o+p):this[o+p];return d}})},function(e,t,n){"use strict";var i=n(0),o=n(31),r=n(28),a=n(18),s=[].sort,l=[1,2,3];i(i.P+i.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!n(54)(s)),"Array",{sort:function(e){return void 0===e?s.call(r(this)):s.call(r(this),o(e))}})},function(e,t,n){"use strict";var i=n(0),o=n(59)(0),r=n(54)([].forEach,!0);i(i.P+i.F*!r,"Array",{forEach:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var i=n(17),o=n(131),r=n(21)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),i(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var i=n(0),o=n(59)(1);i(i.P+i.F*!n(54)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(0),o=n(59)(2);i(i.P+i.F*!n(54)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(0),o=n(59)(3);i(i.P+i.F*!n(54)([].some,!0),"Array",{some:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(0),o=n(59)(4);i(i.P+i.F*!n(54)([].every,!0),"Array",{every:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(0),o=n(250);i(i.P+i.F*!n(54)([].reduce,!0),"Array",{reduce:function(e){return o(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var i=n(0),o=n(250);i(i.P+i.F*!n(54)([].reduceRight,!0),"Array",{reduceRight:function(e){return o(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var i=n(0),o=n(129)(!1),r=[].indexOf,a=!!r&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(a||!n(54)(r)),"Array",{indexOf:function(e){return a?r.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(0),o=n(37),r=n(53),a=n(25),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(l||!n(54)(s)),"Array",{lastIndexOf:function(e){if(l)return s.apply(this,arguments)||0;var t=o(this),n=a(t.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,r(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}})},function(e,t,n){var i=n(0);i(i.P,"Array",{copyWithin:n(251)}),n(77)("copyWithin")},function(e,t,n){var i=n(0);i(i.P,"Array",{fill:n(192)}),n(77)("fill")},function(e,t,n){"use strict";var i=n(0),o=n(59)(5),r=!0;"find"in[]&&Array(1).find((function(){r=!1})),i(i.P+i.F*r,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(77)("find")},function(e,t,n){"use strict";var i=n(0),o=n(59)(6),r="findIndex",a=!0;r in[]&&Array(1)[r]((function(){a=!1})),i(i.P+i.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(77)(r)},function(e,t,n){n(87)("Array")},function(e,t,n){var i=n(14),o=n(183),r=n(26).f,a=n(85).f,s=n(135),l=n(114),c=i.RegExp,u=c,d=c.prototype,p=/a/g,f=/a/g,m=new c(p)!==p;if(n(24)&&(!m||n(18)((function(){return f[n(21)("match")]=!1,c(p)!=p||c(f)==f||"/a/i"!=c(p,"i")})))){c=function(e,t){var n=this instanceof c,i=s(e),r=void 0===t;return!n&&i&&e.constructor===c&&r?e:o(m?new u(i&&!r?e.source:e,t):u((i=e instanceof c)?e.source:e,i&&r?l.call(e):t),n?this:d,c)};for(var h=function(e){e in c||r(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},g=a(u),v=0;g.length>v;)h(g[v++]);d.constructor=c,c.prototype=d,n(45)(i,"RegExp",c)}n(87)("RegExp")},function(e,t,n){"use strict";n(253);var i=n(12),o=n(114),r=n(24),a=/./.toString,s=function(e){n(45)(RegExp.prototype,"toString",e,!0)};n(18)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?o.call(e):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},function(e,t,n){"use strict";var i=n(12),o=n(25),r=n(196),a=n(137);
  75. // @@match logic
  76. n(138)("match",1,(function(e,t,n,s){return[function(n){var i=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=i(e),c=String(this);if(!l.global)return a(l,c);var u=l.unicode;l.lastIndex=0;for(var d,p=[],f=0;null!==(d=a(l,c));){var m=String(d[0]);p[f]=m,""===m&&(l.lastIndex=r(c,o(l.lastIndex),u)),f++}return 0===f?null:p}]}))},function(e,t,n){"use strict";var i=n(12),o=n(28),r=n(25),a=n(53),s=n(196),l=n(137),c=Math.max,u=Math.min,d=Math.floor,p=/$([$&`']|dd?|<[^>]*>)/g,f=/$([$&`']|dd?)/g;
  77. // @@replace logic
  78. n(138)("replace",2,(function(e,t,n,m){return[function(i,o){var r=e(this),a=null==i?void 0:i[t];return void 0!==a?a.call(i,r,o):n.call(String(r),i,o)},function(e,t){var o=m(n,e,this,t);if(o.done)return o.value;var d=i(e),p=String(this),f="function"==typeof t;f||(t=String(t));var g=d.global;if(g){var v=d.unicode;d.lastIndex=0}for(var b=[];;){var y=l(d,p);if(null===y)break;if(b.push(y),!g)break;""===String(y[0])&&(d.lastIndex=s(p,r(d.lastIndex),v))}for(var x,k="",w=0,A=0;A<b.length;A++){y=b[A];for(var S=String(y[0]),C=c(u(a(y.index),p.length),0),L=[],I=1;I<y.length;I++)L.push(void 0===(x=y[I])?x:String(x));var _=y.groups;if(f){var M=[S].concat(L,C,p);void 0!==_&&M.push(_);var E=String(t.apply(void 0,M))}else E=h(S,p,C,L,_,t);C>=w&&(k+=p.slice(w,C)+E,w=C+S.length)}return k+p.slice(w)}];function h(e,t,i,r,a,s){var l=i+e.length,c=r.length,u=f;return void 0!==a&&(a=o(a),u=p),n.call(s,u,(function(n,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return n;if(u>c){var p=d(u/10);return 0===p?n:p<=c?void 0===r[p-1]?o.charAt(1):r[p-1]+o.charAt(1):n}s=r[u-1]}return void 0===s?"":s}))}}))},function(e,t,n){"use strict";var i=n(12),o=n(241),r=n(137);
  79. // @@search logic
  80. n(138)("search",1,(function(e,t,n,a){return[function(n){var i=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=i(e),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=r(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(e,t,n){"use strict";var i=n(135),o=n(12),r=n(115),a=n(196),s=n(25),l=n(137),c=n(195),u=n(18),d=Math.min,p=[].push,f=!u((function(){RegExp(4294967295,"y")}));
  81. // @@split logic
  82. n(138)("split",2,(function(e,t,n,u){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!i(e))return n.call(o,e,t);for(var r,a,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?4294967295:t>>>0,m=new RegExp(e.source,u+"g");(r=c.call(m,o))&&!((a=m.lastIndex)>d&&(l.push(o.slice(d,r.index)),r.length>1&&r.index<o.length&&p.apply(l,r.slice(1)),s=r[0].length,d=a,l.length>=f));)m.lastIndex===r.index&&m.lastIndex++;return d===o.length?!s&&m.test("")||l.push(""):l.push(o.slice(d)),l.length>f?l.slice(0,f):l}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,i){var o=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,o,i):m.call(String(o),n,i)},function(e,t){var i=u(m,e,this,t,m!==n);if(i.done)return i.value;var c=o(e),p=String(this),h=r(c,RegExp),g=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(f?"y":"g"),b=new h(f?c:"^(?:"+c.source+")",v),y=void 0===t?4294967295:t>>>0;if(0===y)return[];if(0===p.length)return null===l(b,p)?[p]:[];for(var x=0,k=0,w=[];k<p.length;){b.lastIndex=f?k:0;var A,S=l(b,f?p:p.slice(k));if(null===S||(A=d(s(b.lastIndex+(f?0:k)),p.length))===x)k=a(p,k,g);else{if(w.push(p.slice(x,k)),w.length===y)return w;for(var C=1;C<=S.length-1;C++)if(w.push(S[C]),w.length===y)return w;k=x=A}}return w.push(p.slice(x)),w}]}))},function(e,t,n){"use strict";var i,o,r,a,s=n(74),l=n(14),c=n(50),u=n(76),d=n(0),p=n(17),f=n(31),m=n(88),h=n(78),g=n(115),v=n(197).set,b=n(198)(),y=n(199),x=n(254),k=n(139),w=n(255),A=l.TypeError,S=l.process,C=S&&S.versions,L=C&&C.v8||"",I=l.Promise,_="process"==u(S),M=function(){},E=o=y.f,O=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[n(21)("species")]=function(e){e(M,M)};return(_||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==L.indexOf("6.6")&&-1===k.indexOf("Chrome/66")}catch(e){}}(),T=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;b((function(){for(var i=e._v,o=1==e._s,r=0,a=function(t){var n,r,a,s=o?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(o||(2==e._h&&B(e),e._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===t.promise?c(A("Promise-chain cycle")):(r=T(n))?r.call(n,l,c):l(n)):c(i)}catch(e){u&&!a&&u.exit(),c(e)}};n.length>r;)a(n[r++]);e._c=[],e._n=!1,t&&!e._h&&F(e)}))}},F=function(e){v.call(l,(function(){var t,n,i,o=e._v,r=D(e);if(r&&(t=x((function(){_?S.emit("unhandledRejection",o,e):(n=l.onunhandledrejection)?n({promise:e,reason:o}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",o)})),e._h=_||D(e)?2:1),e._a=void 0,r&&t.e)throw t.v}))},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},B=function(e){v.call(l,(function(){var t;_?S.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},N=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},R=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw A("Promise can't be resolved itself");(t=T(e))?b((function(){var i={_w:n,_d:!1};try{t.call(e,c(R,i,1),c(N,i,1))}catch(e){N.call(i,e)}})):(n._v=e,n._s=1,P(n,!1))}catch(e){N.call({_w:n,_d:!1},e)}}};O||(I=function(e){m(this,I,"Promise","_h"),f(e),i.call(this);try{e(c(R,this,1),c(N,this,1))}catch(e){N.call(this,e)}},(i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(89)(I.prototype,{then:function(e,t){var n=E(g(this,I));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=_?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i;this.promise=e,this.resolve=c(R,e,1),this.reject=c(N,e,1)},y.f=E=function(e){return e===I||e===a?new r(e):o(e)}),d(d.G+d.W+d.F*!O,{Promise:I}),n(95)(I,"Promise"),n(87)("Promise"),a=n(36).Promise,d(d.S+d.F*!O,"Promise",{reject:function(e){var t=E(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!O),"Promise",{resolve:function(e){return w(s&&this===a?I:this,e)}}),d(d.S+d.F*!(O&&n(136)((function(e){I.all(e).catch(M)}))),"Promise",{all:function(e){var t=this,n=E(t),i=n.resolve,o=n.reject,r=x((function(){var n=[],r=0,a=1;h(e,!1,(function(e){var s=r++,l=!1;n.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--a||i(n))}),o)})),--a||i(n)}));return r.e&&o(r.v),n.promise},race:function(e){var t=this,n=E(t),i=n.reject,o=x((function(){h(e,!1,(function(e){t.resolve(e).then(n.resolve,i)}))}));return o.e&&i(o.v),n.promise}})},function(e,t,n){"use strict";var i=n(260),o=n(90);n(140)("WeakSet",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return i.def(o(this,"WeakSet"),e,!0)}},i,!1,!0)},function(e,t,n){"use strict";var i=n(0),o=n(141),r=n(200),a=n(12),s=n(84),l=n(25),c=n(17),u=n(14).ArrayBuffer,d=n(115),p=r.ArrayBuffer,f=r.DataView,m=o.ABV&&u.isView,h=p.prototype.slice,g=o.VIEW;i(i.G+i.W+i.F*(u!==p),{ArrayBuffer:p}),i(i.S+i.F*!o.CONSTR,"ArrayBuffer",{isView:function(e){return m&&m(e)||c(e)&&g in e}}),i(i.P+i.U+i.F*n(18)((function(){return!new p(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(e,t){if(void 0!==h&&void 0===t)return h.call(a(this),e);for(var n=a(this).byteLength,i=s(e,n),o=s(void 0===t?n:t,n),r=new(d(this,p))(l(o-i)),c=new f(this),u=new f(r),m=0;i<o;)u.setUint8(m++,c.getUint8(i++));return r}}),n(87)("ArrayBuffer")},function(e,t,n){var i=n(0);i(i.G+i.W+i.F*!n(141).ABV,{DataView:n(200).DataView})},function(e,t,n){n(67)("Int8",1,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(67)("Uint8",1,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(67)("Uint8",1,(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},function(e,t,n){n(67)("Int16",2,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(67)("Uint16",2,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(67)("Int32",4,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(67)("Uint32",4,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(67)("Float32",4,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(67)("Float64",8,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){var i=n(0),o=n(31),r=n(12),a=(n(14).Reflect||{}).apply,s=Function.apply;i(i.S+i.F*!n(18)((function(){a((function(){}))})),"Reflect",{apply:function(e,t,n){var i=o(e),l=r(n);return a?a(i,t,l):s.call(i,t,l)}})},function(e,t,n){var i=n(0),o=n(66),r=n(31),a=n(12),s=n(17),l=n(18),c=n(242),u=(n(14).Reflect||{}).construct,d=l((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),p=!l((function(){u((function(){}))}));i(i.S+i.F*(d||p),"Reflect",{construct:function(e,t){r(e),a(t);var n=arguments.length<3?e:r(arguments[2]);if(p&&!d)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(c.apply(e,i))}var l=n.prototype,f=o(s(l)?l:Object.prototype),m=Function.apply.call(e,f,t);return s(m)?m:f}})},function(e,t,n){var i=n(26),o=n(0),r=n(12),a=n(56);o(o.S+o.F*n(18)((function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){r(e),t=a(t,!0),r(n);try{return i.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var i=n(0),o=n(46).f,r=n(12);i(i.S,"Reflect",{deleteProperty:function(e,t){var n=o(r(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var i=n(0),o=n(12),r=function(e){this._t=o(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(134)(r,"Object",(function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}})),i(i.S,"Reflect",{enumerate:function(e){return new r(e)}})},function(e,t,n){var i=n(46),o=n(47),r=n(43),a=n(0),s=n(17),l=n(12);a(a.S,"Reflect",{get:function e(t,n){var a,c,u=arguments.length<3?t:arguments[2];return l(t)===u?t[n]:(a=i.f(t,n))?r(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:s(c=o(t))?e(c,n,u):void 0}})},function(e,t,n){var i=n(46),o=n(0),r=n(12);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return i.f(r(e),t)}})},function(e,t,n){var i=n(0),o=n(47),r=n(12);i(i.S,"Reflect",{getPrototypeOf:function(e){return o(r(e))}})},function(e,t,n){var i=n(0);i(i.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var i=n(0),o=n(12),r=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(e){return o(e),!r||r(e)}})},function(e,t,n){var i=n(0);i(i.S,"Reflect",{ownKeys:n(201)})},function(e,t,n){var i=n(0),o=n(12),r=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(e){o(e);try{return r&&r(e),!0}catch(e){return!1}}})},function(e,t,n){var i=n(26),o=n(46),r=n(47),a=n(43),s=n(0),l=n(73),c=n(12),u=n(17);s(s.S,"Reflect",{set:function e(t,n,s){var d,p,f=arguments.length<4?t:arguments[3],m=o.f(c(t),n);if(!m){if(u(p=r(t)))return e(p,n,s,f);m=l(0)}if(a(m,"value")){if(!1===m.writable||!u(f))return!1;if(d=o.f(f,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,i.f(f,n,d)}else i.f(f,n,l(0,s));return!0}return void 0!==m.set&&(m.set.call(f,s),!0)}})},function(e,t,n){var i=n(0),o=n(180);o&&i(i.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var i=n(0),o=n(129)(!0);i(i.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(77)("includes")},function(e,t,n){"use strict";var i=n(0),o=n(262),r=n(28),a=n(25),s=n(31),l=n(191);i(i.P,"Array",{flatMap:function(e){var t,n,i=r(this);return s(e),t=a(i.length),n=l(i,0),o(n,i,i,t,0,1,e,arguments[1]),n}}),n(77)("flatMap")},function(e,t,n){"use strict";var i=n(0),o=n(262),r=n(28),a=n(25),s=n(53),l=n(191);i(i.P,"Array",{flatten:function(){var e=arguments[0],t=r(this),n=a(t.length),i=l(t,0);return o(i,t,t,n,0,void 0===e?1:s(e)),i}}),n(77)("flatten")},function(e,t,n){"use strict";var i=n(0),o=n(132)(!0);i(i.P,"String",{at:function(e){return o(this,e)}})},function(e,t,n){"use strict";var i=n(0),o=n(263),r=n(139),a=/Version/10.d+(.d+)?( Mobile/w+)? Safari//.test(r);i(i.P+i.F*a,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){"use strict";var i=n(0),o=n(263),r=n(139),a=/Version/10.d+(.d+)?( Mobile/w+)? Safari//.test(r);i(i.P+i.F*a,"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";n(96)("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},function(e,t,n){"use strict";n(96)("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},function(e,t,n){"use strict";var i=n(0),o=n(57),r=n(25),a=n(135),s=n(114),l=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n(134)(c,"RegExp String",(function(){var e=this._r.exec(this._s);return{value:e,done:null===e}})),i(i.P,"String",{matchAll:function(e){if(o(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in l?String(e.flags):s.call(e),i=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return i.lastIndex=r(e.lastIndex),new c(i,t)}})},function(e,t,n){n(175)("asyncIterator")},function(e,t,n){n(175)("observable")},function(e,t,n){var i=n(0),o=n(201),r=n(37),a=n(46),s=n(190);i(i.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,i=r(e),l=a.f,c=o(i),u={},d=0;c.length>d;)void 0!==(n=l(i,t=c[d++]))&&s(u,t,n);return u}})},function(e,t,n){var i=n(0),o=n(264)(!1);i(i.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){var i=n(0),o=n(264)(!0);i(i.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){"use strict";var i=n(0),o=n(28),r=n(31),a=n(26);n(24)&&i(i.P+n(142),"Object",{__defineGetter__:function(e,t){a.f(o(this),e,{get:r(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var i=n(0),o=n(28),r=n(31),a=n(26);n(24)&&i(i.P+n(142),"Object",{__defineSetter__:function(e,t){a.f(o(this),e,{set:r(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var i=n(0),o=n(28),r=n(56),a=n(47),s=n(46).f;n(24)&&i(i.P+n(142),"Object",{__lookupGetter__:function(e){var t,n=o(this),i=r(e,!0);do{if(t=s(n,i))return t.get}while(n=a(n))}})},function(e,t,n){"use strict";var i=n(0),o=n(28),r=n(56),a=n(47),s=n(46).f;n(24)&&i(i.P+n(142),"Object",{__lookupSetter__:function(e){var t,n=o(this),i=r(e,!0);do{if(t=s(n,i))return t.set}while(n=a(n))}})},function(e,t,n){var i=n(0);i(i.P+i.R,"Map",{toJSON:n(265)("Map")})},function(e,t,n){var i=n(0);i(i.P+i.R,"Set",{toJSON:n(265)("Set")})},function(e,t,n){n(143)("Map")},function(e,t,n){n(143)("Set")},function(e,t,n){n(143)("WeakMap")},function(e,t,n){n(143)("WeakSet")},function(e,t,n){n(144)("Map")},function(e,t,n){n(144)("Set")},function(e,t,n){n(144)("WeakMap")},function(e,t,n){n(144)("WeakSet")},function(e,t,n){var i=n(0);i(i.G,{global:n(14)})},function(e,t,n){var i=n(0);i(i.S,"System",{global:n(14)})},function(e,t,n){var i=n(0),o=n(52);i(i.S,"Error",{isError:function(e){return"Error"===o(e)}})},function(e,t,n){var i=n(0);i(i.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var i=n(0);i(i.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var i=n(0),o=180/Math.PI;i(i.S,"Math",{degrees:function(e){return e*o}})},function(e,t,n){var i=n(0),o=n(267),r=n(248);i(i.S,"Math",{fscale:function(e,t,n,i,a){return r(o(e,t,n,i,a))}})},function(e,t,n){var i=n(0);i(i.S,"Math",{iaddh:function(e,t,n,i){var o=e>>>0,r=n>>>0;return(t>>>0)+(i>>>0)+((o&r|(o|r)&~(o+r>>>0))>>>31)|0}})},function(e,t,n){var i=n(0);i(i.S,"Math",{isubh:function(e,t,n,i){var o=e>>>0,r=n>>>0;return(t>>>0)-(i>>>0)-((~o&r|~(o^r)&o-r>>>0)>>>31)|0}})},function(e,t,n){var i=n(0);i(i.S,"Math",{imulh:function(e,t){var n=+e,i=+t,o=65535&n,r=65535&i,a=n>>16,s=i>>16,l=(a*r>>>0)+(o*r>>>16);return a*s+(l>>16)+((o*s>>>0)+(65535&l)>>16)}})},function(e,t,n){var i=n(0);i(i.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var i=n(0),o=Math.PI/180;i(i.S,"Math",{radians:function(e){return e*o}})},function(e,t,n){var i=n(0);i(i.S,"Math",{scale:n(267)})},function(e,t,n){var i=n(0);i(i.S,"Math",{umulh:function(e,t){var n=+e,i=+t,o=65535&n,r=65535&i,a=n>>>16,s=i>>>16,l=(a*r>>>0)+(o*r>>>16);return a*s+(l>>>16)+((o*s>>>0)+(65535&l)>>>16)}})},function(e,t,n){var i=n(0);i(i.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){"use strict";var i=n(0),o=n(36),r=n(14),a=n(115),s=n(255);i(i.P+i.R,"Promise",{finally:function(e){var t=a(this,o.Promise||r.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){"use strict";var i=n(0),o=n(199),r=n(254);i(i.S,"Promise",{try:function(e){var t=o.f(this),n=r(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var i=n(68),o=n(12),r=i.key,a=i.set;i.exp({defineMetadata:function(e,t,n,i){a(e,t,o(n),r(i))}})},function(e,t,n){var i=n(68),o=n(12),r=i.key,a=i.map,s=i.store;i.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:r(arguments[2]),i=a(o(t),n,!1);if(void 0===i||!i.delete(e))return!1;if(i.size)return!0;var l=s.get(t);return l.delete(n),!!l.size||s.delete(t)}})},function(e,t,n){var i=n(68),o=n(12),r=n(47),a=i.has,s=i.get,l=i.key,c=function(e,t,n){if(a(e,t,n))return s(e,t,n);var i=r(t);return null!==i?c(e,i,n):void 0};i.exp({getMetadata:function(e,t){return c(e,o(t),arguments.length<3?void 0:l(arguments[2]))}})},function(e,t,n){var i=n(258),o=n(266),r=n(68),a=n(12),s=n(47),l=r.keys,c=r.key,u=function(e,t){var n=l(e,t),r=s(e);if(null===r)return n;var a=u(r,t);return a.length?n.length?o(new i(n.concat(a))):a:n};r.exp({getMetadataKeys:function(e){return u(a(e),arguments.length<2?void 0:c(arguments[1]))}})},function(e,t,n){var i=n(68),o=n(12),r=i.get,a=i.key;i.exp({getOwnMetadata:function(e,t){return r(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var i=n(68),o=n(12),r=i.keys,a=i.key;i.exp({getOwnMetadataKeys:function(e){return r(o(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,n){var i=n(68),o=n(12),r=n(47),a=i.has,s=i.key,l=function(e,t,n){if(a(e,t,n))return!0;var i=r(t);return null!==i&&l(e,i,n)};i.exp({hasMetadata:function(e,t){return l(e,o(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var i=n(68),o=n(12),r=i.has,a=i.key;i.exp({hasOwnMetadata:function(e,t){return r(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var i=n(68),o=n(12),r=n(31),a=i.key,s=i.set;i.exp({metadata:function(e,t){return function(n,i){s(e,t,(void 0!==i?o:r)(n),a(i))}}})},function(e,t,n){var i=n(0),o=n(198)(),r=n(14).process,a="process"==n(52)(r);i(i.G,{asap:function(e){var t=a&&r.domain;o(t?t.bind(e):e)}})},function(e,t,n){"use strict";var i=n(0),o=n(14),r=n(36),a=n(198)(),s=n(21)("observable"),l=n(31),c=n(12),u=n(88),d=n(89),p=n(44),f=n(78),m=f.RETURN,h=function(e){return null==e?void 0:l(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},v=function(e){return void 0===e._o},b=function(e){v(e)||(e._o=void 0,g(e))},y=function(e,t){c(e),this._c=void 0,this._o=e,e=new x(this);try{var n=t(e),i=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){i.unsubscribe()}:l(n),this._c=n)}catch(t){return void e.error(t)}v(this)&&g(this)};y.prototype=d({},{unsubscribe:function(){b(this)}});var x=function(e){this._s=e};x.prototype=d({},{next:function(e){var t=this._s;if(!v(t)){var n=t._o;try{var i=h(n.next);if(i)return i.call(n,e)}catch(e){try{b(t)}finally{throw e}}}},error:function(e){var t=this._s;if(v(t))throw e;var n=t._o;t._o=void 0;try{var i=h(n.error);if(!i)throw e;e=i.call(n,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!v(t)){var n=t._o;t._o=void 0;try{var i=h(n.complete);e=i?i.call(n,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var k=function(e){u(this,k,"Observable","_f")._f=l(e)};d(k.prototype,{subscribe:function(e){return new y(e,this._f)},forEach:function(e){var t=this;return new(r.Promise||o.Promise)((function(n,i){l(e);var o=t.subscribe({next:function(t){try{return e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:n})}))}}),d(k,{from:function(e){var t="function"==typeof this?this:k,n=h(c(e)[s]);if(n){var i=c(n.call(e));return i.constructor===t?i:new t((function(e){return i.subscribe(e)}))}return new t((function(t){var n=!1;return a((function(){if(!n){try{if(f(e,!1,(function(e){if(t.next(e),n)return m}))===m)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}})),function(){n=!0}}))},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:k)((function(e){var t=!1;return a((function(){if(!t){for(var i=0;i<n.length;++i)if(e.next(n[i]),t)return;e.complete()}})),function(){t=!0}}))}}),p(k.prototype,s,(function(){return this})),i(i.G,{Observable:k}),n(87)("Observable")},function(e,t,n){var i=n(14),o=n(0),r=n(139),a=[].slice,s=/MSIE ../.test(r),l=function(e){return function(t,n){var i=arguments.length>2,o=!!i&&a.call(arguments,2);return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};o(o.G+o.B+o.F*s,{setTimeout:l(i.setTimeout),setInterval:l(i.setInterval)})},function(e,t,n){var i=n(0),o=n(197);i(i.G+i.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){for(var i=n(193),o=n(65),r=n(45),a=n(14),s=n(44),l=n(86),c=n(21),u=c("iterator"),d=c("toStringTag"),p=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=o(f),h=0;h<m.length;h++){var g,v=m[h],b=f[v],y=a[v],x=y&&y.prototype;if(x&&(x[u]||s(x,u,p),x[d]||s(x,d,v),l[v]=p,b))for(g in i)x[g]||r(x,g,i[g],!0)}},function(e,t,n){"use strict";var i=n(50),o=n(0),r=n(73),a=n(179),s=n(66),l=n(47),c=n(65),u=n(26),d=n(606),p=n(31),f=n(78),m=n(268),h=n(134),g=n(194),v=n(17),b=n(37),y=n(24),x=n(43),k=function(e){var t=1==e,n=4==e;return function(o,r,a){var s,l,c,u=i(r,a,3),d=b(o),p=t||7==e||2==e?new("function"==typeof this?this:C):void 0;for(s in d)if(x(d,s)&&(c=u(l=d[s],s,o),e))if(t)p[s]=c;else if(c)switch(e){case 2:p[s]=l;break;case 3:return!0;case 5:return l;case 6:return s;case 7:p[c[0]]=c[1]}else if(n)return!1;return 3==e||n?n:p}},w=k(6),A=function(e){return function(t){return new S(t,e)}},S=function(e,t){this._t=b(e),this._a=c(e),this._i=0,this._k=t};function C(e){var t=s(null);return null!=e&&(m(e)?f(e,!0,(function(e,n){t[e]=n})):a(t,e)),t}h(S,"Dict",(function(){var e,t=this._t,n=this._a,i=this._k;do{if(this._i>=n.length)return this._t=void 0,g(1)}while(!x(t,e=n[this._i++]));return g(0,"keys"==i?e:"values"==i?t[e]:[e,t[e]])})),C.prototype=null,o(o.G+o.F,{Dict:C}),o(o.S,"Dict",{keys:A("keys"),values:A("values"),entries:A("entries"),forEach:k(0),map:k(1),filter:k(2),some:k(3),every:k(4),find:k(5),findKey:w,mapPairs:k(7),reduce:function(e,t,n){p(t);var i,o,r=b(e),a=c(r),s=a.length,l=0;if(arguments.length<3){if(!s)throw TypeError("Reduce of empty object with no initial value");i=r[a[l++]]}else i=Object(n);for(;s>l;)x(r,o=a[l++])&&(i=t(i,r[o],o,e));return i},keyOf:d,includes:function(e,t){return void 0!==(t==t?d(e,t):w(e,(function(e){return e!=e})))},has:x,get:function(e,t){if(x(e,t))return e[t]},set:function(e,t,n){return y&&t in Object?u.f(e,t,r(0,n)):e[t]=n,e},isDict:function(e){return v(e)&&l(e)===C.prototype}})},function(e,t,n){var i=n(65),o=n(37);e.exports=function(e,t){for(var n,r=o(e),a=i(r),s=a.length,l=0;s>l;)if(r[n=a[l++]]===t)return n}},function(e,t,n){var i=n(12),o=n(113);e.exports=n(36).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},function(e,t,n){var i=n(14),o=n(36),r=n(0),a=n(269);r(r.G+r.F,{delay:function(e){return new(o.Promise||i.Promise)((function(t){setTimeout(a.call(t,!0),e)}))}})},function(e,t,n){var i=n(270),o=n(0);n(36)._=i._=i._||{},o(o.P+o.F,"Function",{part:n(269)})},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{isObject:n(17)})},function(e,t,n){var i=n(0);i(i.S+i.F,"Object",{classof:n(76)})},function(e,t,n){var i=n(0),o=n(271);i(i.S+i.F,"Object",{define:o})},function(e,t,n){var i=n(0),o=n(271),r=n(66);i(i.S+i.F,"Object",{make:function(e,t){return o(r(e),t)}})},function(e,t,n){"use strict";n(133)(Number,"Number",(function(e){this._l=+e,this._i=0}),(function(){var e=this._i++,t=!(e<this._l);return{done:t,value:t?void 0:e}}))},function(e,t,n){var i=n(0),o=n(202)(/[\^$*+?.()|[]{}]/g,"\$&");i(i.S,"RegExp",{escape:function(e){return o(e)}})},function(e,t,n){"use strict";var i=n(0),o=n(202)(/[&<>"']/g,{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"});i(i.P+i.F,"String",{escapeHTML:function(){return o(this)}})},function(e,t,n){"use strict";var i=n(0),o=n(202)(/&(?:amp|lt|gt|quot|apos);/g,{"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'"});i(i.P+i.F,"String",{unescapeHTML:function(){return o(this)}})},function(e,t,n){"use strict";n.r(t);var i=n(33),o=n(273),r=n.n(o),s=n(22),l=n.n(s),c=n(61),u=n.n(c),d=n(39),p=n.n(d),f=n(30),m=n.n(f),h=n(40),g=n.n(h),v=n(99),b=n.n(v),y=n(1),x=n.n(y);function k(e,t,n){return t in e?x()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=n(8),A=n.n(w),S=n(11),C=n.n(S),L=n(4),I=n.n(L),_=n(6),M=n.n(_),E=n(7),O=n.n(E),T=n(3),P=n.n(T),F=n(13),D=n.n(F),B=n(9),N=n.n(B),R=n(10),j=n.n(R),z=n(2),U=n(5),q=n(118),H=n.n(q);function V(e){return(V="function"==typeof j.a&&"symbol"==typeof H.a?function(e){return typeof e}:function(e){return e&&"function"==typeof j.a&&e.constructor===j.a&&e!==j.a.prototype?"symbol":typeof e})(e)}function W(e){return(W="function"==typeof j.a&&"symbol"===V(H.a)?function(e){return V(e)}:function(e){return e&&"function"==typeof j.a&&e.constructor===j.a&&e!==j.a.prototype?"symbol":V(e)})(e)}function G(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K(e,t){return!t||"object"!==W(t)&&"function"!=typeof t?G(e):t}var Q=n(207),Y=n.n(Q),J=n(146),Z=n.n(J);function $(e){return($=Z.a?Y.a:function(e){return e.__proto__||Y()(e)})(e)}var X=n(208),ee=n.n(X);function te(e,t,n){return(te="undefined"!=typeof Reflect&&ee.a?ee.a:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$(e)););return e}(e,t);if(i){var o=m()(i,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ne(e,t){return(ne=Z.a||function(e,t){return e.__proto__=t,e})(e,t)}function ie(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=D()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ne(e,t)}var oe=n(274),re=n.n(oe),ae=n(209),se=n.n(ae),le=n(145),ce=n.n(le),ue=n(34),de=n.n(ue),pe=n(81),fe=n.n(pe),me=n(41),he=n.n(me),ge=n(15),ve=n.n(ge),be=n(29),ye=n.n(be),xe=n(203),ke=n(228).preferredLanguages,we=function(e){return function(e){function t(){var e;return Object(z.a)(this,t),(e=K(this,$(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:"Klicken 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 klicken, 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:'#'}},' klicken']}}]"},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:"Klicken 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 due 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 klicken auf "Herunterladen"'},tutorialS3History:{message:"Historie"},tutorialS3Main:{message:"['Du möchtest ein Video aus Historie herunterladen? Klicken 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:"['Klicken 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"},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"},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"}},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:"Не удалось найти ссылки"},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:"Введите ваш емейл"}},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 ie(t,e),Object(U.a)(t,[{key:"getLocale",value:function(){var e=Object(xe.default)(),t=ke(e.join(","),O()(this.localeMap)),n=this.localeMap[this.defaultLocale];return t&&(n=he()({},n,this.localeMap[t[0]])),n}}]),t}(e)},Ae=n(20),Se=Object(Ae.default)("mono:router"),Ce=function(e){function t(){var e;return Object(z.a)(this,t),(e=K(this,$(t).call(this))).monoInstances=[],e.contentScripts=[{matches:"^(?:https?|file|ftp)://[^\/]*\.aliexpress\.com/.*$|^(?:https?|file|ftp)://aliexpress\.com/.*$|^(?:https?|file|ftp)://tmall\.ru/.*$",run_at:"document_end",all_frames:!0,js:[0]},{matches:"^(?:https?|file|ftp)://[^\/]*\.vimeo\.com/.*$|^(?:https?|file|ftp)://vimeo\.com/.*$",run_at:"document_end",all_frames:!0,js:[1,2]},{matches:"^(?:https?|file|ftp)://[^\/]*/.*$",include_globs:"^http://dailymotion\.[^\/]*/.*$|^http://[^\/]*\.dailymotion\.[^\/]*/.*$|^https://dailymotion\.[^\/]*/.*$|^https://[^\/]*\.dailymotion\.[^\/]*/.*$",run_at:"document_end",all_frames:!0,js:[1,3]},{matches:"^(?:https?|file|ftp)://[^\/]*\.youtube\.com/.*$|^(?:https?|file|ftp)://youtube\.com/.*$",run_at:"document_end",all_frames:!0,js:[1,4]},{matches:"^(?:https?|file|ftp)://[^\/]*\.soundcloud\.com/.*$|^(?:https?|file|ftp)://soundcloud\.com/.*$",run_at:"document_end",js:[1,5]},{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:[1,6]},{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:[1,7]},{matches:"^(?:https?|file|ftp)://my\.mail\.ru/.*$",run_at:"document_end",js:[1,8]},{matches:"^(?:https?|file|ftp)://[^\/]*\.facebook\.com/.*$|^(?:https?|file|ftp)://facebook\.com/.*$",run_at:"document_end",js:[1,9]},{matches:"^(?:https?|file|ftp)://[^\/]*\.savefrom\.net/.*$|^(?:https?|file|ftp)://savefrom\.net/.*$",run_at:"document_end",js:[1,10]},{matches:"^(?:https?|file|ftp)://[^\/]*\.instagram\.com/.*$|^(?:https?|file|ftp)://instagram\.com/.*$",run_at:"document_end",all_frames:!0,js:[1,11]},{matches:"^(?:https?|file|ftp)://[^\/]*\.rutube\.ru/.*$|^(?:https?|file|ftp)://rutube\.ru/.*$",run_at:"document_end",all_frames:!0,js:[1,12]},{matches:"^(?:https?|file|ftp)://[^\/]*\.tiktok\.com/.*$|^(?:https?|file|ftp)://tiktok\.com/.*$",run_at:"document_end",all_frames:!0,js:[1,13]},{matches:"^(?:https?|file|ftp)://music\.yandex\.ru/.*$",run_at:"document_end",all_frames:!0,js:[1,14]},{matches:"^(?:https?|file|ftp)://[^\/]*/.*$",run_at:"document_end",js:[15]}],e.contentScriptMap={"includes/alitest-cookie.js":0,"includes/commons.js":1,"includes/vimeo_com.js":2,"includes/dailymotion_com.js":3,"includes/youtube_com.js":4,"includes/soundcloud_com.js":5,"includes/vkontakte_ru.js":6,"includes/odnoklassniki_ru.js":7,"includes/mail_ru.js":8,"includes/facebook_com.js":9,"includes/savefrom_net.js":10,"includes/instagram_com.js":11,"includes/rutube_ru.js":12,"includes/tiktok_com.js":13,"includes/yandex_music.js":14,"includes/tab.js":15,"includes/aliradar.js":16,"includes/alitest-stat.js":17,"includes/aliwiz.js":18,"includes/aviaBar.js":19,"includes/link_modifier.js":20,"includes/promoBar.js":21,"includes/sovetnik-sf.js":22,"includes/swStat.js":23},e.contentScriptIndex=[function(e){!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||x()(e,t,{enumerable:!0,get:i})},n.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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 i=D()(null);if(n.r(i),x()(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=73)}({73:function(e,t){if(window!=window.top&&"https://cdp.aliexpress.com/60.htm"==location.href){var n=function(e){var t=RegExp("aeu_cid[^;]+").exec(document.cookie);return decodeURIComponent(t?t.toString().replace(/^[^=]+./,""):"").split("-").pop()}();window.parent.postMessage(n,"https://aliexpress.ru"),window.parent.postMessage(n,"https://tmall.ru")}}})},function(e){!window.savefromContentScriptWebpackJsonp&&(window.savefromContentScriptWebpackJsonp=window.savefromContentScriptWebpackJsonp||[]).push([[0],[function(t,n,i){var o=e;n.a=o},function(e,t){e.exports=n(60)},function(e,t){e.exports=n(69)},function(e,t){e.exports=n(41)},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(97)},function(e,t){e.exports=n(343)},function(e,t){e.exports=n(204)},function(e,t,n){n.d(t,"b",(function(){return a}));var i=n(0),o=[],r=function(e,t,n){return P.a.resolve().then((function(){return!n||n()})).then((function(n){n&&(-1===o.indexOf(e)&&o.push(e),t())}))},a=function(e,t,n){return r(e,(function(){return i.a.callFn("getPreferences").then((function(n){t(e,{preferences:n})}))}),n)};t.a=r},function(e,t){e.exports=n(345)},function(e,t){e.exports=n(346)},function(e,t){e.exports=n(347)},function(e,t){e.exports=n(29)},function(e,t,n){var i=n(3),o=n.n(i),r=n(0),a=n(43),s=n.n(a),l=n(44),c=n.n(l),u=n(7),d=n.n(u),p=n(15),f=n.n(p),m=n(9),h=n.n(m),g=n(29),v=n.n(g),b=n(2),y=n.n(b),x=n(45),k=n.n(x),w=n(1),S=n.n(w),L=n(26),_=n.n(L),E=n(5),T=n.n(E),F=n(20),D=n(18),B=n.n(D),N=n(41),R=n(23),j=n.n(R),z=n(30),U=n.n(z),q=n(33),H=n(27),V=B()("components"),W=null,G={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 i=n?document.querySelector("#savefrom-styles."+n):document.getElementById("savefrom-styles");if(!i){(i=document.createElement("style")).id="savefrom-styles",n&&i.classList.add(n);var o=document.querySelector("head style");o?o.parentNode.insertBefore(i,o):document.querySelector("head").appendChild(i)}if("object"==typeof t){var r=[];for(var a in t)r.push(a+":"+t[a]);t=r.join(";")}i.textContent+=e+"{"+t+"}"},getPosition:function(e,t){var n=e.getBoundingClientRect();if(t){var i=t.getBoundingClientRect();return{top:Math.round(n.top-i.top),left:Math.round(n.left-i.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 i=0;i<t.length;i++)if(n.classList.contains(t[i]))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,i=0;n=e.childNodes[i];i++)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,i){if(!t)return!1;if(!(e=e||this.getFileName(t)))return!1;if(!W.preferences.downloads)return!1;var o=n||{};return o.url=t,o.filename=e.trim(),i=i||void 0,r.a.sendMessage({action:"downloadFile",options:o},i),!0},downloadList:{showDownloadWarningPopup:function(e,t){var n=G.playlist.getInfoPopupTemplate();r.a.sendMessage({action:"getWarningIcon",type:t},(function(e){n.icon.style.backgroundImage="url("+e+")"})),S.a.create(n.textContainer,{append:[S.a.create("p",{text:r.a.i18n.getMessage("warningPopupTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),S.a.create("p",{text:r.a.i18n.getMessage("warningPopupDesc")+" ",style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"},append:S.a.create("a",{href:"ru"===r.a.i18n.getMessage("lang")||"uk"===r.a.i18n.getMessage("lang")?"http://vk.com/page-55689929_49003549":"http://vk.com/page-55689929_49004259",text:r.a.i18n.getMessage("readMore"),target:"_blank",style:{color:"#4A90E2"}})}),S.a.create("p",{style:{marginBottom:"13px"},append:[S.a.create("label",{style:{color:"#868686",cursor:"pointer",fontSize:"14px",lineHeight:"19px"},append:[S.a.create("input",{type:"checkbox",style:{cssFloat:"left",marginLeft:"0px"},on:["click",function(){r.a.sendMessage({action:"hideDownloadWarning",set:this.checked?1:0})}]}),r.a.i18n.getMessage("noWarning")]})]})]});var i=void 0,o=void 0;S.a.create(n.buttonContainer,{append:[i=S.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"}}),o=S.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"}})]}),i.addEventListener("click",(function(e){var t=n.body.parentNode;y.a.trigger(t.lastChild,"click")})),o.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),e(),y.a.trigger(i,"click")})),G.popupDiv(n.body,"dl_warning_box_popup")},startChromeDownloadList:function(e){var t=e.folderName,n=e.list;return t&&(t+="/"),r.a.sendMessage({action:"downloadList",fileList:n,folder:t})},startOldChromeDownloadList:function(e,t){var n=e.folderName,i=e.list,o=e.type;n&&(n+="/");var a=0,s=!1,l=500,c=document.body;c.focus(),t||(c.onblur=function(){s=!0}),function e(){var t=i[a];if(a++,void 0!==t)if(W.preferences.downloads?G.download(n+t.filename,t.url):y.a.trigger(S.a.create("a",{download:t.filename,href:t.url,on:["click",function(e){G.downloadOnClick(e)}]}),"click",{cancelable:!0,altKey:!0}),s)G.downloadList.showDownloadWarningPopup((function(){s=!1,c.focus(),e()}),o);else{if(a>5&&l&&(l=void 0,c.onblur=void 0,s=!1,W.preferences.downloads))return void r.a.sendMessage({action:"downloadList",fileList:i.slice(a),folder:n});setTimeout((function(){e()}),l)}}()},startDownload:function(e){return e.list.forEach((function(e){e.filename=T.a.modify(e.filename)})),e.folderName=T.a.modify(e.folderName),r.a.isChrome&&W.preferences.downloads||r.a.isFirefox?G.downloadList.startChromeDownloadList(e):r.a.isGM||r.a.isSafari?r.a.sendMessage({action:"hideDownloadWarning"},(function(t){G.downloadList.startOldChromeDownloadList(e,t)})):void 0},showBeforeDownloadPopup:function(e,t){t.list=e;var n=t.type,i=t.folderName,o=t.onContinue||G.downloadList.startDownload,a=t.onShowList||G.playlist.popupFilelist,s=t.count||e.length,l=G.playlist.getInfoPopupTemplate();r.a.sendMessage({action:"getWarningIcon",color:"#00CCFF",type:n},(function(e){l.icon.style.backgroundImage="url("+e+")"}));var c=[];a&&(c=[" (",S.a.create("a",{href:"#",text:r.a.i18n.getMessage("vkListOfLinks").toLowerCase()}),")"])[1].addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),a(t.list),y.a.trigger(u,"click")})),S.a.create(l.textContainer,{append:[S.a.create("p",{text:i||r.a.i18n.getMessage("playlistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),S.a.create("p",{text:r.a.i18n.getMessage("vkFoundFiles").replace("%d",s),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"},append:c}),S.a.create("p",{text:r.a.i18n.getMessage("beforeDownloadPopupWarn"),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}})]});var u=void 0,d=void 0;S.a.create(l.buttonContainer,{append:[u=S.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"}}),d=S.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"}})]}),u.addEventListener("click",(function(e){var t=l.body.parentNode;y.a.trigger(t.lastChild,"click")})),d.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),o(t),y.a.trigger(u,"click")})),G.popupDiv(l.body,"dl_confirm_box_popup")}},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 i=G,o=(n=n||{}).el||e.target;if("A"!==o.tagName&&(o=h()(o,"A")),o){if(r.a.isSafari){if(!e.altKey&&!e.ctrlKey)return e.preventDefault(),void Object(N.showTooltip)(o,{content:r.a.i18n.getMessage("downloadTitle"),defaultWidth:400,defaultHeight:60});Object(N.hideTooltip)(o)}if(r.a.isSafari)return i.safariDlLink.call(o,e);W.preferences.downloads&&((r.a.isFirefox||r.a.isGM)&&/^blob:|^data:/.test(o.href)||2!==e.button&&(e.preventDefault(),e.stopPropagation(),i.downloadLink(o,t)))}},getQueryString:function(e,t,n){if(!e||"object"!=typeof e)return"";void 0===t&&(t=""),void 0===n&&(n="");var i="";for(var o in e)i.length&&(i+="&"),e[o]instanceof Object?(t||(t=""),n||(n=""),i+=G.getQueryString(e[o],t+o+"[","]"+n)):i+=t+escape(o)+n+"="+escape(e[o]);return i},decodeUnicodeEscapeSequence:function(e){return e.replace(/\u([0-9a-f]{4})/g,(function(e,t){if(t=I()(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-zd]{2,6})(?:?|#|$)/i);return t?T.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 i={year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate(),hour:n.getHours(),min:n.getMinutes(),sec:n.getSeconds()};if(t)for(var o in i)1==i[o].toString().length&&(i[o]="0"+i[o]);return i},utf8Encode:function(e){e=e.replace(/rn/g,"n");for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},sizeHuman:function(e,t){null!=t&&null!=t||(t=2);var n=e,i=0,o="",a=[r.a.i18n.getMessage("vkFileSizeByte"),r.a.i18n.getMessage("vkFileSizeKByte"),r.a.i18n.getMessage("vkFileSizeMByte"),r.a.i18n.getMessage("vkFileSizeGByte"),r.a.i18n.getMessage("vkFileSizeTByte")];for(n<0&&(o="-",n=Math.abs(n));n>=1e3;)i++,n/=1024;if(t>=0){var s=10*t;n=Math.round(n*s)/s}return i<a.length?o+n+" "+a[i]: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 i=Math.floor(e/60);return e%=60,n>0?n+":"+t(i)+":"+t(e):i+":"+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"},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,i){var o=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=o.namespaceURI;o.setAttribute("width",n||"16"),o.setAttribute("height",i||n||"16"),o.setAttribute("viewBox","0 0 16 16");var a=document.createElementNS(r,"path");return o.appendChild(a),a.setAttribute("d",this.icon[e]),t&&a.setAttribute("fill",t),o}},appendDownloadInfo:function(e,t,n,i){t||(t="#a0a0a0");var o=document.createElement("span");o.appendChild(document.createTextNode(r.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"}),i&&this.setStyle(a,i),a.addEventListener("click",(function(){o.parentNode.removeChild(o),r.a.sendMessage({action:"updateOption",key:"moduleShowDownloadInfo",value:0})}),!1),o.appendChild(a),e.appendChild(o)},getFileSizeIcon:function(e,t,n,i){var o=this;i=i||{},e=e||{},t=t||{},n=n||{};var a=function(e){return S.a.create("div",{style:t,append:[S.a.create(G.svg.getSvg("info",e),{style:n})]})},s=S.a.create("div",{style:e,append:[S.a.create(a("#333333"),{title:r.a.i18n.getMessage("getFileSizeTitle"),on:["click",function e(t){t.stopPropagation(),t.preventDefault(),s.textContent="...";var n=i.url;n||(n=i.link&&i.link.href),Object(F.a)({action:"getFileSize",url:n}).then((function(e){if(e.error||!e.fileSize)throw new Error(A()(e));var t=e.fileType||"",n=o.sizeHuman(e.fileSize,2),a="";if(i.link&&/^audio//i.test(t)){var l=I()(i.link.dataset.savefromHelperDuration);l>0&&(a+=Math.floor(e.fileSize/l/125),a+=" "+r.a.i18n.getMessage("kbps"))}var c="";c+=a?n+" ~ "+a:n,i.brackets&&(c="("+c+")"),s.textContent=c,s.title=t})).catch((function(t){var n;V.error(t),"ZERO"===t.message?(n=a("#ffac00")).title=r.a.i18n.getMessage("getFileSizeTitle"):(n=a("#ff0000")).title=r.a.i18n.getMessage("getFileSizeFailTitle"),n.addEventListener("click",e),s.textContent="",s.appendChild(n)}))}]})]});return{node:s}},appendFileSizeIcon:function(e,t,n,i,a,s){t=t||{},n=n||{};var l="#333333";"0"===i?l="#ffac00":i?l="#ff0000":t.color&&(l=t.color);var c={width:"14px",height:"14px",marginLeft:"3px",verticalAlign:"middle",position:"relative",top:"-1px",cursor:"pointer"};o()(c,t);var u={fontSize:"75%",fontWeight:"normal",marginLeft:"3px",whiteSpace:"nowrap"};o()(u,n);var d=S.a.create("img",{src:G.svg.getSrc("info",l),title:i?r.a.i18n.getMessage("getFileSizeFailTitle"):r.a.i18n.getMessage("getFileSizeTitle"),style:c}),p=this;return s?s.appendChild(d):e.nextSibling?e.parentNode.insertBefore(d,e.nextSibling):e.parentNode.appendChild(d),d.addEventListener("click",(function(i){i.preventDefault(),i.stopPropagation();var o=S.a.create("span",{text:"...",style:u});return d.parentNode.replaceChild(o,d),r.a.sendMessage({action:"getFileSize",url:e.href},(function(i){if(i.fileSize>0){var s=i.fileType||"",l=p.sizeHuman(i.fileSize,2),c="";if(/^audio//i.test(s)){var u=e.getAttribute("data-savefrom-helper-duration");(u=u&&I()(u))>0&&(c=Math.floor(i.fileSize/u/125),c+=" "+r.a.i18n.getMessage("kbps"))}var d="";d=c?l+" ~ "+c:l,a||(d="("+d+")"),o.textContent=d,o.title=s}else if(i.error){var f=p.appendFileSizeIcon(e,t,n,!0,a,document.createDocumentFragment());o.parentNode.replaceChild(f,o)}else{var m=p.appendFileSizeIcon(e,t,n,"0",a,document.createDocumentFragment());o.parentNode.replaceChild(m,o)}}))}),!1),d},appendNoSoundIcon:function(e,t){var n="#ff0000";(t=t||{}).color&&(n=t.color);var i={width:"14px",height:"14px",marginLeft:"3px",verticalAlign:"middle",position:"relative",top:"-1px",cursor:"pointer"};o()(i,t);var a=S.a.create("img",{src:G.svg.getSrc("noSound",n),title:r.a.i18n.getMessage("withoutAudio"),style:i});e.nextSibling?e.parentNode.insertBefore(a,e.nextSibling):e.parentNode?e.parentNode.appendChild(a):e.appendChild(a)},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(!G.video.yt.inited){["Audio AAC","Audio Vorbis","Audio Opus"].forEach((function(e){var t=G.video.yt.format[e];for(var n in t)t[n].quality+=" "+r.a.i18n.getMessage("kbps")})),G.video.yt.show3D="0"==W.preferences.ytHide3D,G.video.yt.showMP4NoAudio="0"==W.preferences.ytHideMP4NoAudio;var e=!1,t=!1;for(var n in G.video.yt.showFormat){var i="ytHide"+n.replace(" ","_");"ytHideAudio_AAC"===i&&(i="ytHideAudio_MP4");var o="0"==W.preferences[i];"Audio AAC"===n&&(t=o),G.video.yt.showFormat[n]=o,o&&(e=!0)}G.video.yt.showFormat["Audio Vorbis"]=t,G.video.yt.showFormat["Audio Opus"]=t,e||(G.video.yt.showFormat.FLV=!0),G.video.yt.inited=!0}},show:function(e,t,n,i,o){i=i||{};var a=document.createElement("div");G.setStyle(a,{display:"inline-block",margin:"0 auto"}),t.appendChild(a);var s=document.createElement("div");G.setStyle(s,{display:"inline-block",padding:"0 90px 0 0",position:"relative"}),a.appendChild(s);var l=document.createElement("table");G.setStyle(l,{emptyCells:"show",borderCollapse:"collapse",margin:"0 auto",padding:"0",width:"auto"}),s.appendChild(l);var c=!1;for(var u in G.video.yt.format)G.video.yt.append(e,u,G.video.yt.format[u],l,i,o)&&(c=!0);for(var u in e)if("ummy"!==u&&"ummyAudio"!==u&&"meta"!==u){G.video.yt.append(e,"",null,l,i,o)&&(c=!0);break}if(l.firstChild){if(c){var d=document.createElement("span");d.textContent=r.a.i18n.getMessage("more")+" "+String.fromCharCode(187),G.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"}),i.btn&&"object"==typeof i.btn&&G.setStyle(d,i.btn),s.appendChild(d),d.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();for(var n=t.querySelectorAll("*["+G.video.dataAttr+"]"),i=0;i<n.length;i++){var o=n[i].getAttribute(G.video.dataAttr),a="none",s=String.fromCharCode(187);"0"==o?(o="1",a="",s=String.fromCharCode(171)):o="0",n[i].style.display=a,n[i].setAttribute(G.video.dataAttr,o),this.textContent=r.a.i18n.getMessage("more")+" "+s}return!1}),!1),1===n&&(l.querySelector("td a"),a.appendChild(document.createElement("br")),G.appendDownloadInfo(a,"#a0a0a0",null,{width:"16px",height:"16px",fontSize:"16px",lineHeight:"16px"}))}}else t.textContent=r.a.i18n.getMessage("noLinksFound")},append:function(e,t,n,i,o,a){var s=!1,l={whiteSpace:"nowrap"},c={fontSize:"75%",fontWeight:"normal",marginLeft:"3px",whiteSpace:"nowrap"},u=document.createElement("tr"),d=document.createElement("td");d.appendChild(document.createTextNode(t||"???")),t&&G.video.yt.showFormat[t]||(u.setAttribute(G.video.dataAttr,"0"),u.style.display="none",s=!0),G.setStyle(d,{border:"none",padding:"3px 15px 3px 0",textAlign:"left",verticalAlign:"middle"}),u.appendChild(d),d=document.createElement("td"),G.setStyle(d,{border:"none",padding:"3px 0",textAlign:"left",verticalAlign:"middle",lineHeight:"17px"}),u.appendChild(d);var p=e.meta||{},f=!1;if(n){for(var m in n)if(e[m]){var h=n[m].quality;f&&(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[m],v.title=r.a.i18n.getMessage("downloadTitle"),p[m]&&(p[m].quality&&(h=p[m].quality),n[m].sFps&&(h+=" "+(p[m].fps||60))),n[m]["3d"]?v.textContent="3D":v.textContent=h,a){var b=n[m].ext;b||(b=t.toLowerCase()),v.setAttribute("download",T.a.modify(a+"."+b)),v.addEventListener("click",(function(e){G.downloadOnClick(e)}),!1)}if(G.setStyle(v,l),o.link&&"object"==typeof o.link&&G.setStyle(v,o.link),g.appendChild(v),G.appendFileSizeIcon(v,o.fsIcon,o.fsText),n[m]["3d"]){G.video.yt.show3D||(s=!0,g.setAttribute(G.video.dataAttr,"0"),g.style.display="none");var y=document.createElement("span");y.textContent=h,G.setStyle(y,c),o.text&&"object"==typeof o.text&&G.setStyle(y,o.text),v.appendChild(y)}n[m].noAudio&&(G.video.yt.showMP4NoAudio||(s=!0,g.setAttribute(G.video.dataAttr,"0"),g.style.display="none"),G.appendNoSoundIcon(v,!!o&&o.noSoundIcon)),d.appendChild(g),f=!0,delete e[m]}}else for(var m in e){f&&(d.lastChild.style.marginRight="15px",d.appendChild(document.createTextNode(" ")));var x=document.createElement("span");x.style.whiteSpace="nowrap";var k=document.createElement("a");k.href=e[m],k.title=r.a.i18n.getMessage("downloadTitle"),k.textContent=m,G.setStyle(k,l),o.link&&"object"==typeof o.link&&G.setStyle(k,o.link),x.appendChild(k),G.appendFileSizeIcon(k,o.fsIcon,o.fsText),d.appendChild(x),f=!0,delete e[m]}if(!1!==f)return i.appendChild(u),s}}},playlist:{btnStyle:{display:"block",fontWeight:"bold",border:"none",textDecoration:"underline"},getFilelistHtml:function(e){if(e&&0!=e.length){for(var t,n=0,i="",o=0;o<e.length;o++)e[o].url&&(i+=e[o].url+"rn",n++);if(i)return n<5?n=5:n>14&&(n=14),S.a.create(document.createDocumentFragment(),{append:[S.a.create("p",{text:r.a.i18n.getMessage("filelistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"5px"}}),S.a.create("p",{style:{marginBottom:"11px"},append:_()(r.a.i18n.getMessage("filelistInstruction"))}),S.a.create("p",{text:r.a.i18n.getMessage("vkFoundFiles").replace("%d",e.length),style:{color:"#000",marginBottom:"11px"},append:S.a.create("a",{text:r.a.i18n.getMessage("playlist"),href:"#",class:"sf__playlist",style:{display:"none",cssFloat:"right"}})}),t=S.a.create("textarea",{text:i,rows:n,cols:60,style:{width:"100%",whiteSpace:r.a.isFirefox||r.a.isGM&&!r.a.isTM?"normal":"nowrap"}}),r.a.isChrome||r.a.isFirefox?S.a.create("button",{text:r.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,r.a.isFirefox?(t.select(),document.execCommand("copy")):r.a.sendMessage({action:"addToClipboard",text:i}),setTimeout((function(){n.disabled=!1}),1e3)}],append:S.a.create("style",{text:d()({"#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,i){var o=G.playlist.getFilelistHtml(e);if(o){var r=G.popupDiv(o,i);if(n){var a=r.querySelector("a.sf__playlist");a&&(a.addEventListener("click",(function(n){return setTimeout((function(){G.playlist.popupPlaylist(e,t,!0,i)}),100),n.preventDefault(),!1}),!1),G.setStyle(a,G.playlist.btnStyle))}}},getInfoPopupTemplate:function(){var e=S.a.create("div",{class:"sf-infoPopupTemplate",style:{width:"400px",minHeight:"40px"}}),t=S.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=S.a.create("div",{style:{display:"inline-block",width:"330px"}}),i=S.a.create("div",{style:{textAlign:"right"},append:S.a.create("style",{text:d()({".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(i),{icon:t,buttonContainer:i,textContainer:n,body:e}},getM3U:function(e){for(var t="#EXTM3Urn",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+"rn"),t+=e[n].url+"rn";return t},getPlaylistHtml:function(e,t){if(e&&0!=e.length){var n=e.length,i=G.dateToObj(),o=i.year+"-"+i.month+"-"+i.day+" "+i.hour+"-"+i.min,a=G.playlist.getM3U(e);a=a.replace(/rn/g,"n");var s=v()(a,"audio/x-mpegurl"),l=G.playlist.getInfoPopupTemplate();return r.a.sendMessage({action:"getWarningIcon",color:"#00CCFF",type:"playlist"},(function(e){l.icon.style.backgroundImage="url("+e+")"})),S.a.create(l.textContainer,{append:[S.a.create("p",{text:t||r.a.i18n.getMessage("playlistTitle"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),S.a.create("p",{text:r.a.i18n.getMessage("playlistInstruction"),style:{color:"#868686",fontSize:"14px",marginBottom:"13px",lineHeight:"24px",marginTop:"0px"}}),S.a.create("a",{text:r.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,S.a.create(l.buttonContainer,{append:[S.a.create("a",{text:r.a.i18n.getMessage("download"),href:s,download:T.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,i){var o=G.playlist.getPlaylistHtml(e,t);if(o){var r=G.popupDiv(o,i);if(n){var a=r.querySelector("a.sf__playlist");a&&(a.addEventListener("click",(function(n){return setTimeout((function(){G.playlist.popupFilelist(e,t,!0,i)}),100),n.preventDefault(),!1}),!1),a.style.display="inline",a=null)}for(var s,l=r.querySelectorAll("a[download]"),c=0;s=l[c];c++)s.addEventListener("click",G.downloadOnClick,!1)}}},popupCloseBtn:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAWUlEQVQ4y2NgGHHAH4j1sYjrQ+WIAvFA/B+I36MZpg8V+w9VQ9Al/5EwzDBkQ2AYr8uwaXiPQ0yfkKuwGUayIYQMI8kQqhlEFa9RLbCpFv1US5BUzSLDBAAARN9OlWGGF8kAAAAASUVORK5CYII=",popupDiv:function(e,t,n,i,o){t||(t="savefrom_popup_box"),n||(n=580),i||(i=520);var r=document.getElementById(t);r&&r.parentNode.removeChild(r),r=S.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 a=S.a.create("div",{style:{display:"block",cssFloat:"none",position:"relative",overflow:"auto",margin:"0",padding:"10px 15px"}});"function"==typeof e?e(a):a.appendChild(e);var s=S.a.create("img",{src:G.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 r.parentNode&&r.parentNode.removeChild(r),o&&o(),!1}]]});a.appendChild(s),r.appendChild(a),document.body.appendChild(r),r.offsetWidth>n&&(r.style.width=n+"px"),r.offsetHeight>i&&(r.style.height=i+"px",r.style.width=n+20+"px"),setTimeout((function(){var e=Math.floor((window.innerWidth-r.offsetWidth)/2),t=Math.floor((window.innerHeight-r.offsetHeight)/2);t<0&&(t=0),-1!==location.host.indexOf("youtu")&&t<92&&(t=92,r.style.height=r.offsetHeight-t-10+"px"),e<0&&(e=0),G.setStyle(r,{top:t+"px",left:e+"px",visibility:"visible"})}));var l=function e(t){var n=t.target;n===r||G.isParent(n,r)||(r.parentNode&&r.parentNode.removeChild(r),document.removeEventListener("click",e,!1),o&&o())};return setTimeout((function(){document.addEventListener("click",l,!1)}),100),r.addEventListener("close",(function(){r.parentNode&&r.parentNode.removeChild(r),document.removeEventListener("click",l,!1),o&&o()})),r.addEventListener("kill",(function(){r.parentNode&&r.parentNode.removeChild(r),document.removeEventListener("click",l,!1)})),r},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()}};o()(t,e);var n=t.container=S.a.create("div",{id:t.id,style:{zIndex:9999,display:"block",position:"fixed",background:"#fff",border:"3px solid #c0cad5",borderRadius:"7px"},append:[S.a.create("style",{text:d()({selector:"#"+t.id,style:k.a})})],on:[["click",function(e){e.stopPropagation()}]]}),i=S.a.create("img",{src:G.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(i);var r=t.body=S.a.create("div",{style:s()({display:"block",position:"relative",padding:"10px 15px",overflow:"auto"},t.bodyStyle)});return"function"==typeof t.content?t.content(r):r.appendChild(t.content),n.appendChild(r),document.body.appendChild(n),document.addEventListener("click",t._onClose),t},showTooltip:function(e,t,n,i){if(e){var o=document.querySelector(".savefrom-tooltip");o||((o=document.createElement("div")).className="savefrom-tooltip",G.setStyle(o,{position:"absolute",opacity:0,zIndex:-1}),i&&G.setStyle(o,i)),o.textContent=t,o.lastNode&&o.lastNode===e?r():(o.lastNode&&(y.a.off(o.lastNode,"mouseleave",a),y.a.off(o.lastNode,"mousemove",r),o.lastRow&&y.a.off(o.lastRow,"mouseleave",a)),o.lastNode=e,n&&(o.lastRow=n),y.a.on(e,"mouseleave",a),y.a.on(e,"mousemove",r,!1),n&&y.a.on(n,"mouseleave",a),document.body.appendChild(o),r())}function r(t){void 0!==t&&t.stopPropagation();var n=G.getPosition(e),i=G.getSize(o);0==n.top&&0==n.left||(n.top=n.top-i.height-10,n.left=n.left-i.width/2+G.getSize(e).width/2,n.left=Math.min(n.left,document.body.clientWidth+document.body.scrollLeft-i.width),n.top<document.body.scrollTop&&(n.top=n.top+i.height+G.getSize(e).height+20),n.top+="px",n.left+="px",n.zIndex=9999,n.opacity=1,G.setStyle(o,n))}function a(){o.parentNode&&document.body.removeChild(o),o.lastNode=null,o.lastRow=null,G.setStyle(o,{zIndex:-1,opacity:0}),y.a.off(e,"mouseleave",a),y.a.off(e,"mousemove",r),n&&y.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=G.video.yt.format,i=e.meta||{};for(var o in n)for(var r in n[o]){var a=i[r]||{};if(e[r]){var s=o;n[o][r].ext&&(s=n[o][r].ext);var l=n[o][r].quality;a.quality&&(l=a.quality),n[o][r].sFps&&(l+=" "+(a.fps||60)),n[o][r]["3d"]&&(l+=" (3d)"),t.push({name:o+" "+l,type:s,url:e[r],noSound:n[o][r].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&&G.popupMenu.removePanel(),this.panel=null,this.lastLink=null;var t,n=document.querySelectorAll("a["+this.dataAttr+"]"),i=n.length;for(t=0;t<i;t++)["savefrom.net","sf-addon.com"].indexOf(G.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],i=0,o=n.re.length;i<o;i++){var r=e.match(n.re[i]);if(r)return{hosting:t,action:n.action,extVideoId:r[1]}}return null},reMapHosting:function(e){return{getYoutubeLinks:"youtube",getVimeoLinks:"vimeo",getDailymotionLinks:"dailymotion",getFacebookLinks:"facebook",getVKLinks:"vk"}[e]},onClick:function(e,t){var n=G.embedDownloader;if(!t){for(t=e.target;t.parentNode&&"A"!==t.nodeName;)t=t.parentNode;if(!t)return}var i=t.getAttribute("data-savefrom-get-links");if(i&&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(i);if(o){e.preventDefault(),e.stopPropagation();var a={action:o.action,extVideoId:o.extVideoId};return n.showLinks(r.a.i18n.getMessage("download")+" ...",null,t),r.a.sendMessage(a,(function(e){var i=o.hosting;e.action!=a.action&&(i=n.reMapHosting(e.action)),e.links?n.showLinks(e.links,e.title,t,i,!0):n.showLinks(r.a.i18n.getMessage("noLinksFound"),null,t,void 0,!0)})),!1}}},onBodyClick:function(e){var t=G.embedDownloader,n=e.target;if(!t.panel||"none"==t.panel.style.display){if("A"!==n.tagName&&f()(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(G.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,i,o){var a=r.a.i18n.getMessage("noLinksFound");"string"==typeof e?a=e:void 0!==G.popupMenu.prepareLinks[i]&&e&&(a=G.popupMenu.prepareLinks[i](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?G.popupMenu.update(this.panel,s):this.panel=G.popupMenu.create(s)},showLinks:function(e,t,n,i,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){i&&this.hostings[i]&&this.hostings[i].prepareLinks&&(e=this.hostings[i].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=r.a.i18n.getMessage("downloadTitle"),n.appendChild(document.createTextNode(e[l].name));var c=document.createElement("span");c.className=this.linkClass,c.appendChild(n),a.appendChild(c),G.appendFileSizeIcon(n),e[l].noSound&&G.appendNoSoundIcon(n),t&&!e[l].noTitle&&e[l].type&&(n.setAttribute("download",T.a.modify(t+"."+e[l].type.toLowerCase())),n.addEventListener("click",G.downloadOnClick,!1))}}else a.textContent=r.a.i18n.getMessage("noLinksFound");else this.createMenu(e,t,n,i,o)}},createUmmyInfo:function(e,t){e=e||{};var n,i,a,s,l,c,u,p,f=o()({vid:111,utm_source:"savefrom-helper",utm_medium:"youtube-helper"},e.params);f.utm_campaign||("hd"===e.itemType?f.utm_campaign="youtube-helper-hd":"mp3"===e.itemType&&(f.utm_campaign="youtube-helper-mp3")),n=/^Mac/.test(navigator.platform)&&/^yt-/.test(f.video)?"http://videodownloader.ummy.net/save-from-youtube.html?"+H.stringify({vid:f.vid,video:f.video,utm_source:"savefrom-helper",utm_medium:"youtube-helper",utm_campaign:"ummy",utm_content:"ummy_integration_h"}):"http://videodownloader.ummy.net/?"+H.stringify(f),e.posLeft?(c={border:"8px solid transparent",borderLeft:"10px solid rgb(192, 187, 187)",borderRight:0,top:"8px",right:"11px"},u=o()({},c,{right:"12px",borderLeft:"10px solid #fff"}),p={right:"21px"},e.darkTheme&&(i={borderLeftColor:"rgba(255, 255, 255, 0.4)"},a={borderLeftColor:"rgba(28,28,28, 0.6)"})):(c={border:"8px solid transparent",borderRight:"10px solid rgb(192, 187, 187)",borderLeft:0,top:"8px",left:"11px"},u=o()({},c,{left:"12px",borderRight:"10px solid #fff"}),p={left:"21px"},e.darkTheme&&(i={borderRightColor:"#fff"},a={borderRightColor:"#000"})),l=e.darkTheme?{a:{color:"#eee"}}:{},s=e.darkTheme?{backgroundColor:"rgba(28,28,28,0.8)",border:"1px solid rgba(255, 255, 255, 0.4)",color:"#fff"}:{backgroundColor:"#fff",border:"1px solid #ccc"};var m=S.a.create(document.createDocumentFragment(),{append:[S.a.create("span",{style:o()({display:"inline-block",width:0,position:"absolute"},c,i)}),S.a.create("span",{style:o()({display:"inline-block",width:0,position:"absolute",zIndex:1},u,a)})]}),h=null,g=null,v=S.a.create("div",{class:"sf-ummy-info-popup-container",style:{position:"absolute",zIndex:9999},append:[m,g=S.a.create("div",{class:"sf-ummy-info-popup",style:o()({position:"relative",backgroundColor:"#fff",border:"1px solid #ccc",padding:"6px 5px",textAlign:"center",maxWidth:"240px",lineHeight:"16px",fontSize:"12px",fontFamily:"arial, sans-serif",cursor:"default"},p,s),append:[_()(r.a.i18n.getMessage("ummyMenuInfo").replace("{url}",n)),S.a.create("label",{style:{verticalAlign:"middle",display:"block"},append:[h=S.a.create("input",{type:"checkbox",name:"showUmmyInfo",style:{verticalAlign:"middle"}}),r.a.i18n.getMessage("tooltipHide")]}),S.a.create("style",{text:d()({".sf-ummy-info-popup":{append:o()({"> p":{margin:"0 0 .8em 0"},"> p.center":{textAlign:"center"},"> p > .green-btn-2.arrow":{color:"#fff",background:"#84bd07",borderRadius:"5px",display:"inline-block",position:"relative",lineHeight:1,padding:"8px 34px 8px 10px",textDecoration:"none",fontSize:"12px"},"> p > .green-btn-2.arrow:hover":{color:"#fff",opacity:.8},"> p > .green-btn-2.arrow:after":{background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAAAjklEQVQoke3RsRGCQBCF4YuJsQDoQMpjKMImtAjth9xMEj4DF4c5QDH3n7lk773b3XsJNzTpR9DglrwYcUG9w1iHdoTpgYkBJ5QrxkPcDXNDQm/JHR2KOF3UcvoUgnZL8KFBi2I+Yrk2YsZjsaIsBVQ4i08KxqhVu1OYBLji+E/hzTKFlV13pfAVGynkPAFtrlNTMRczMgAAAABJRU5ErkJggg==) 0 0 no-repeat",content:'""',display:"block",position:"absolute",width:"16px",height:"14px",top:"50%",right:"10px",marginTop:"-7px"},input:{display:"inline-block"}},l)}})})]})],on:[["mouseclick",function(e){e.stopPropagation()}],["mousedown",function(e){e.stopPropagation()}]]});return r.a.sendMessage({action:"getUmmyIcon"},(function(e){var t=g.querySelector("img");t&&(t.src=e,t.style.verticalAlign="text-bottom")})),h.checked=!W.preferences.showUmmyInfo,h.addEventListener("change",(function(e){e.preventDefault(),e.stopPropagation(),this.checked?(y.a.trigger(t,"sfRmInfoPopup"),W.preferences.showUmmyInfo=0):(y.a.trigger(t,"sfAddInfoPopup"),W.preferences.showUmmyInfo=1),r.a.sendMessage({action:"updateOption",key:"showUmmyInfo",value:W.preferences.showUmmyInfo})})),e.onCreateUmmyInfo&&e.onCreateUmmyInfo(v),v},bindUmmyInfo:function(e,t){if(((t=t||{}).noUmmy||W.preferences.showUmmyInfo)&&!(t.widthLimit&&document.documentElement.offsetWidth<t.widthLimit)){t.leftOffset=t.leftOffset||21;var n=null,i=null,o=null,r=8,a=null,s=null,l=null,c=function(){clearTimeout(i),i=setTimeout((function(){n&&(n.style.display="none")}),50)},u=function(){if(t.noUmmy||W.preferences.showUmmyInfo){clearTimeout(i);var u=G.getPosition(e);n?o=u.top-4:(n=t.expUmmyInfo?t.expUmmyInfo(t.createUmmyInfoDetails,e):G.createUmmyInfo(t.createUmmyInfoDetails,e),a=n.firstChild,s=a.nextElementSibling,o=u.top-4,y.a.on(n,"mouseenter",(function(){clearTimeout(i)})),y.a.on(n,"mouseleave",c)),n.style.top=o+"px","1"!==n.dataset.hide&&(function(e){var i=G.getPosition(e);if(t.posLeft)n.style.right=document.documentElement.clientWidth-i.left-t.leftOffset+"px";else{var o=G.getSize(e);n.style.left=o.width+i.left-t.leftOffset+"px"}}(e),n.parentNode||(n.style.display="none",(t.container||document.body).appendChild(n)),"block"!==n.style.display&&(n.style.display="block",y.a.trigger(n,"sfShowInfoPopup")),setTimeout((function(){var e=window.innerHeight,t=n.clientHeight,i=window.scrollY;if(t+o>e+i){var l=e-t+i;if(l<0)return;if(o===l)return;n.style.top=l+"px";var c=8-(e-(t+o)+i);r!==c&&(r=c,a.style.top=r+"px",s.style.top=r+"px")}else 8!==r&&(r=8,a.style.top=r+"px",s.style.top=r+"px")})),function e(){clearTimeout(l),l=setTimeout((function(){if(n&&n.parentNode){if("none"!==n.style.display)return e();n.parentNode.removeChild(n)}}),3e4)}())}};y.a.on(e,"mouseenter",u),y.a.on(e,"mouseleave",c),y.a.on(e,"sfRmInfoPopup",(function(){y.a.off(e,"mouseenter",u)})),y.a.on(e,"sfAddInfoPopup",(function(){y.a.on(e,"mouseenter",u)}))}},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"],createBadge:function(e,t){var n=this;t=t||{};var i={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 o in t.containerStyle)i[o]=t.containerStyle[o];var a=S.a.create("div",{style:i});return"1080"===e||"2160"===e||"1440"===e||"720"===e?(a.textContent="HD",a.style.backgroundColor="#505050",a.style.paddingRight="1px"):"8K"===e||"4K"===e?(a.textContent="HD",a.style.paddingRight="1px",a.style.backgroundColor="rgb(247, 180, 6)"):"mp3"===e||"MP3"===e?(a.textContent="MP3",a.style.width="26px",a.style.paddingRight="1px",a.style.backgroundColor="#505050"):"ummy"===e&&(this.ummyIcon?a.style.background="url("+this.ummyIcon+") center center no-repeat":r.a.sendMessage({action:"getUmmyIcon"},(function(e){a.style.background="url("+(n.ummyIcon=e)+") center center no-repeat"}))),a},getTitleNode:function(e){var t=G.popupMenu,n=S.a.create("span",{style:{cssFloat:"left"}});if("converter"===e.extra){var i=document.createDocumentFragment();-1!==["MP3","8K","4K","1440","1080","720"].indexOf(e.format)?i.appendChild(t.createBadge(e.format,{containerStyle:{marginLeft:0}})):i.appendChild(document.createTextNode(e.format)),S.a.create(n,{append:[i," ",e.quality]}),i=null}else if("ummy"===e.quality)i=document.createDocumentFragment(),null!==e.uQuality&&(-1!==["8K","4K","1440","1080","720"].indexOf(e.uQuality)?i.appendChild(document.createTextNode(e.uQuality)):i.appendChild(t.createBadge(e.uQuality,{containerStyle:{marginLeft:0}}))),S.a.create(n,{append:[i," ","Ummy"]}),i=null;else if(e.itemText)n.textContent=e.itemText;else{var o=e.quality?" "+e.quality:"",r=e.format?e.format:"???",a=e["3d"]?"3D ":"",s="";e.sFps&&(s+=" "+(e.fps||60)),n.textContent=a+r+o+s}return-1!==t.badgeQualityList.indexOf(String(e.quality))&&n.appendChild(t.createBadge(String(e.quality))),n},createPopupItem:function(e,t){var n,i=G.popupMenu;if("-"===(n="string"==typeof e?e:e.href))return{el:S.a.create("div",{style:{display:"block",margin:"1px 0",borderTop:"1px solid rgb(214, 214, 214)"}})};var a=document.createElement("-text-"===n?"div":"a");t.linkClass&&a.classList.add(t.linkClass);var s={display:"block",padding:"0 5px",textDecoration:"none",whiteSpace:"nowrap",overflow:"hidden"};if(e.isHidden&&(a.setAttribute(i.dataArrtVisible,"0"),s.display="none"),G.setStyle(a,s),"-text-"===n)return a.style.lineHeight="22px",{el:a};if(a.href=n,"#"===n)return{el:a};if((r.a.isGM||r.a.isSafari)&&("ummy"===e.quality||e.extra||(a.title=r.a.i18n.getMessage("downloadTitle"))),e.forceDownload&&!e.forceConverter){var l="";if(e.title){var c=(e.ext||e.format||"").toLowerCase();c&&(c="."+c),l=e.title+c}a.setAttribute("download",T.a.modify(l)),a.addEventListener("click",(function(e){G.downloadOnClick(e,null,{el:this})}),!1)}var u=[];e.func&&(M()(e.func)?u.push.apply(u,e.func):u.push(e.func)),t.onItemClick&&-1===u.indexOf(t.onItemClick)&&u.push(t.onItemClick),u.length&&a.addEventListener("click",(function(t){var n=this;u.forEach((function(i){return i.call(n,t,e)}))}),!1),e.isBlank&&a.setAttribute("target","_blank"),a.appendChild(i.getTitleNode(e));var d=S.a.create("span",{style:{cssFloat:"right",lineHeight:"22px",height:"22px"}}),p={top:"5px",verticalAlign:"top"};for(var f in t.sizeIconStyle)p[f]=t.sizeIconStyle[f];e.noAudio&&G.appendNoSoundIcon(d,p);var m=null;if(e.noSize||(d.addEventListener("click",(function e(t){"IMG"===d.firstChild.tagName&&(t.preventDefault(),t.stopPropagation(),y.a.trigger(d.firstChild,"click",{cancelable:!0})),this.removeEventListener("click",e)})),m=G.appendFileSizeIcon(a,p,{marginLeft:0},void 0,!0,d,e)),a.appendChild(d),"ummy"===e.quality){var h=o()({},t.bindUmmyInfoDetails),g=h.createUmmyInfoDetails=o()({itemType:e.uIsAudio?"mp3":"hd"},h.createUmmyInfoDetails);g.params=o()({video:e.videoId,vid:e.vid},g.params),G.bindUmmyInfo(a,h)}return{el:a,sizeIcon:m,prop:e}},sortMenuItems:function(e,t){void 0===t&&(t={});var n=["ummy","Audio Opus","Audio Vorbis","Audio AAC","3GP","WebM","FLV","MP4"],i={Mobile:280,LD:280,SD:360,HD:720,ummy:1};t.strQualityExtend&&o()(i,t.strQualityExtend);var r={},a=[],s=[],l=[],c=[],u=[],d=[],p=[],f=[];e.forEach((function(e){var n=e.prop;t.noProp&&(n=e);var o=n.sort||{};if(!n.format)return f.push(e),1;if(n.isOther)f.push(e);else if(n.isSubtitle)c.push(e);else if(n.noVideo)a[n.quality]=I()(n.quality),l.push(e);else{var m=o.size||i[n.quality]||-1;if(-1===m&&(m="K"===String(n.quality).substr(-1)?1e3*I()(n.quality):I()(n.quality)),t.maxSize&&m>t.maxSize)return 1;if(t.minSize&&m<t.minSize)return 1;r[n.quality]=m,n.noAudio?n.sFps?u.push(e):d.push(e):n["3d"]?p.push(e):s.push(e)}}));var m=function(e,t){return e.noVideo&&t.noVideo?function(e,t){return a[e.quality]>a[t.quality]?-1:a[e.quality]===a[t.quality]?0:1}(e,t):e.noVideo?1:t.noVideo?-1:n.indexOf(e.format)>n.indexOf(t.format)?-1:n.indexOf(e.format)===n.indexOf(t.format)?0:1},h=function(e,n){var i=e.prop,o=n.prop;t.noProp&&(i=e,o=n);var a=function(e,t){return r[e.quality]>r[t.quality]?-1:r[e.quality]===r[t.quality]?0:1}(i,o);return 0!==a?a:m(i,o)};s.sort(h),p.sort(h),l.sort(h),u.sort(h),d.sort(h);var g=null;return t.typeList?(g=[],-1!==t.typeList.indexOf("video")&&(g=g.concat(s)),-1!==t.typeList.indexOf("3d")&&(g=g.concat(p)),-1!==t.typeList.indexOf("audio")&&(g=g.concat(l)),-1!==t.typeList.indexOf("mute")&&(g=g.concat(d)),-1!==t.typeList.indexOf("mute60")&&(g=g.concat(u)),-1!==t.typeList.indexOf("subtitles")&&(g=g.concat(c)),-1!==t.typeList.indexOf("other")&&(g=g.concat(f))):g=s.concat(p,l,c,u,d,f),t.groupCompare&&g.sort(h),g},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},getHiddenList:function(e,t){var n,i=this,o=document.createDocumentFragment();if(e.length<8)S.a.create(o,{append:e});else{var a=S.a.create("div",{style:{maxHeight:"192px",overflowY:"scroll",display:"none"},on:[["wheel",function(e){e.wheelDeltaY>0&&0===this.scrollTop?e.preventDefault():e.wheelDeltaY<0&&this.scrollHeight-(this.offsetHeight+this.scrollTop)<=0&&e.preventDefault()}],(n=!1,["scroll",function(){if(0!==this.scrollTop){if(n)return;n=!0,this.style.boxShadow="rgba(0, 0, 0, 0.40) -2px 1px 2px 0px inset"}else{if(!n)return;n=!1,this.style.boxShadow=""}}])],append:e});a.setAttribute(i.dataArrtVisible,"0"),o.appendChild(a)}var s=i.createPopupItem("-",t).el;o.appendChild(s);var l=i.createPopupItem("#",t).el;return S.a.create(l,{text:r.a.i18n.getMessage("more")+" "+String.fromCharCode(187),data:{visible:"0"},on:["click",function(e){e.preventDefault();var t,n=this.dataset.visible;n>0?(n--,t=187):(n++,t=171),this.textContent=r.a.i18n.getMessage("more")+" "+String.fromCharCode(t),this.dataset.visible=n;for(var o,a=this.parentNode.querySelectorAll("*["+i.dataArrtVisible+"]"),s=0;o=a[s];s++)o.style.display=1===n?"block":"none",o.setAttribute(i.dataArrtVisible,n)}]}),o.appendChild(l),0===t.visibleCount&&y.a.trigger(l,"click",{cancelable:!0}),o},getContent:function(e){var t=this,n=e.links,i=document.createDocumentFragment(),o=[];if("string"==typeof n){var a=t.createPopupItem("-text-",e).el;a.textContent=n,i.appendChild(a)}else if(0===n.length){var s=t.createPopupItem("-text-",e).el;s.textContent=r.a.i18n.getMessage("noLinksFound"),i.appendChild(s)}else{var l=[];n.forEach((function(n){l.push(t.createPopupItem(n,e))})),l=t.sortMenuItems(l,e.sortDetails);var c=[];l.forEach((function(t){if(t.prop.isHidden)return c.push(t.el),1;i.appendChild(t.el),e.showFileSize&&t.sizeIcon&&o.push(t.sizeIcon)})),e.visibleCount=l.length-c.length,c.length>0&&(e.getHiddenListFunc?i.appendChild(e.getHiddenListFunc(c,e)):i.appendChild(t.getHiddenList(c,e)))}return{sizeIconList:o,content:i}},create:function(e){var t=e.button,n=G.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 i=n.popup=document.createElement("div"),o="#"+n.popupId;e.popupId?(o="#"+e.popupId,i.id=e.popupId):e.containerClass?(o="."+e.containerClass,i.classList.add(e.containerClass)):i.id=n.popupId;var r={display:"block",position:"absolute",minHeight:"24px",cursor:"default",textAlign:"left",whiteSpace:"nowrap",fontFamily:"arial, sans-serif"};e.extStyle&&delete r.display;var a=G.getPosition(t,e.parent),s=G.getSize(t);r.top=a.top+e.offsetTop+s.height+"px",r.left=a.left+e.offsetRight+"px",G.setStyle(i,r);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 c in e.style.popup){var u=e.style.popup[c];l[c]=u}G.addStyleRules(o,l);var p={"line-height":"24px",color:"#3D3D3D"};if(e.style&&e.style.item)for(var c in e.style.item)u=e.style.item[c],p[c]=u;G.addStyleRules(o+" ."+e.linkClass,p);var f=function(e){e.stopPropagation()};for(S.a.create(i,{on:[["click",f],["mouseover",f],["mouseup",f],["mousedown",f],["mouseout",f]]});null!==i.firstChild;)i.removeChild(i.firstChild);var m=n.getContent.call(n,e),h=m.sizeIconList;m=m.content,i.appendChild(m);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=d()({selector:o,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(i),e.extStyle){void 0!==G.popupMenu.extStyleCache&&null!==G.popupMenu.extStyleCache.parentNode&&G.popupMenu.extStyleCache.parentNode.removeChild(G.popupMenu.extStyleCache);var x="sf-extElStyle_"+o.substr(1),k="sf-extBodyStyle_"+o.substr(1);null===document.querySelector("style."+k)&&document.body.appendChild(S.a.create("style",{class:k,text:d()({selector:o,style:{display:"none"}})})),G.popupMenu.extStyleCache=e.extStyle.appendChild(S.a.create("style",{class:x,text:d()({selector:"body "+o,style:{display:"block"}})}))}return setTimeout((function(){h.forEach((function(e){y.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))})),i}},update:function(e,t){for(var n=G.popupMenu;null!==e.firstChild;)e.removeChild(e.firstChild);var i=n.getContent.call(n,t),o=i.sizeIconList;i=i.content,e.appendChild(i),setTimeout((function(){o.forEach((function(e){y.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))}))},preprocessItem:{srt2url:function(e,t){var n=e.srt,i=v()(n,"text/plain");t.ext="srt",t.format="SRT",t.href=i,t.noSize=!0}},prepareLinks:{youtube:function(e,t,n,i){i=i||{},n=n||[],e=o()({},e);var a=G.video.yt;a.init();var s=[],l=null,c=e.meta||{};return O()(a.format).forEach((function(n){var i=a.format[n];return O()(i).forEach((function(r){var u=e[r];if(u){var d=!1;a.showFormat[n]||(d=!0);var p=i[r];p["3d"]&&!a.show3D&&(d=!0),p.noAudio&&!a.showMP4NoAudio&&(d=!0),l={href:u,isHidden:d,title:t,format:n,itag:r,forceDownload:!0},o()(l,p);var f=c[r];f&&(f.quality&&(l.quality=f.quality),f.fps&&(l.fps=f.fps)),s.push(l),delete e[r]}}))})),(e.ummy||e.ummyAudio)&&function(){var t=null,n=-1,o=G.popupMenu.badgeQualityList;s.forEach((function(e){var t=o.indexOf(e.quality);-1!==t&&(-1===n||t<n)&&(n=t)})),-1!==n&&(t=o[n]);var r=c.videoId;r&&["ummy","ummyAudio"].forEach((function(n){var o=e[n];o&&(l={href:o,quality:"ummy",noSize:!0,format:"ummy",videoId:"yt-"+r},"ummy"===n?(l.itag="ummy",l.uQuality=t):"ummyAudio"===n&&(l.itag="ummyAudio",l.uQuality="mp3",l.uIsAudio=!0),i.ummyVid&&(l.vid=i.ummyVid),s.push(l),delete e[n])}))}(),O()(e).forEach((function(n){"meta"!==n&&(l={href:e[n],isHidden:!0,title:t,quality:n,itag:n,forceDownload:!0},s.push(l),delete e[n])})),n.forEach((function(e){l={href:e.url,isHidden:!0,quality:"SRT"+(e.isAuto?"A":""),itemText:r.a.i18n.getMessage("subtitles")+" ("+e.lang+")",title:t+"-"+e.langCode,ext:"vtt",format:"VTT",isSubtitle:!0,langCode:e.langCode,forceDownload:!0},"srt2url"===e.preprocess&&G.popupMenu.preprocessItem.srt2url(e,l),s.push(l)})),c.extra&&c.extra.forEach((function(e){l={href:"#"+e.extra,noSize:!0,isHidden:!1},o()(l,e),e.itag&&O()(a.format).some((function(t){var n=a.format[t][e.itag];if(n)return o()(l,n),!0})),e.request&&(l.func=function(t){return t.preventDefault(),r.a.sendMessage(e.request)}),l.noAudio=!1,s.push(l)})),s},vimeo:function(e,t){var n,i=[];return e.forEach((function(e){var o=e.ext;o||(o="mp4",-1!=e.url.search(/.flv($|?)/i)&&(o="flv"));var r=e.height||"",a=e.type;n={href:e.url,title:t,ext:o,format:a,quality:r,forceDownload:!0},i.push(n)})),i},vk:function(e,t){var n,i=[];return e.forEach((function(e){var o=e.name||e.ext;o&&(o=o.toLowerCase());var r=o&&o.toUpperCase()||"",a=e.subname||"";n={href:e.url,title:t,ext:o,format:r,quality:a,forceDownload:!0},i.push(n)})),i},dailymotion:function(e,t){var n=[];return e.forEach((function(e){var i=null;"ummy"===e.extra?(i={href:e.url,quality:"ummy",noSize:!0,format:"ummy",videoId:e.videoId,sort:{size:480}},"ummyAudio"===e.type&&(i.uQuality="mp3",i.uIsAudio=!0)):i={href:e.url,title:t,ext:e.ext,format:e.ext,quality:e.height||"",forceDownload:!0},n.push(i)})),n},facebook:function(e,t){var n,i=[];return e.forEach((function(e){var o=e.ext,r=o?o.toUpperCase():"",a=e.name;n={href:e.url,title:t,ext:o,format:r,quality:a,forceDownload:!0},i.push(n)})),i},rutube:function(e){if(M()(e)&&(e=e[0]),"string"==typeof e){var t=[],n=e.match(//embed/(d+)/);(n=n&&n[1]||void 0)||(n=(n=e.match(//video/([0-9a-z]+)/))&&n[1]||void 0),///video./.test(e)&&(e=e.replace(///video./,"//"),n||(n=(n=e.match(//(d+)$/))&&n[1]||void 0)),n&&(n="rt-"+n);var i=e.replace(/^.*(//.*)$/,"ummy:$1"),o={href:i,quality:"ummy",noSize:!0,format:"ummy",itag:"ummy",uQuality:"720",vid:114,videoId:n},r="?";-1!==i.indexOf(r)&&(r="&");var a={href:i+=r+"sf_type=audio",quality:"ummy",noSize:!0,format:"ummy",itag:"ummyAudio",uQuality:"mp3",uIsAudio:!0,vid:114,videoId:n};return t.push(o),t.push(a),t}},mailru:function(e,t){var n,i=[];return e.forEach((function(e){var o=e.ext,r=e.name,a=e.subname;n={href:e.url,title:t,ext:o,format:r,quality:a,forceDownload:!0},i.push(n)})),i}},quickInsert:function(e,t,n,i){i=i||{};var r={},a=function t(n){n&&(n.target===e||e.contains(n.target))||r.isShow&&(l.style.display="none",y.a.off(document,"mousedown",t),r.isShow=!1,i.onHide&&i.onHide(l))},s={links:t,button:e,popupId:n,showFileSize:!0};o()(s,i);var l=G.popupMenu.create(s);return i.onShow&&i.onShow(l),y.a.off(document,"mousedown",a),y.a.on(document,"mousedown",a),o()(r,{button:e,isShow:!0,el:l,hide:a,update:function(e){P.a.all(e.map((function(e){return e.title||(e.title=document.title||"youtube-video"),new P.a((function(t,n){return 22==e.itag?Object(q.a)(e.href).then((function(n){n||(e.forceConverter=!0),t(e)})):t(e)}))}))).then((function(e){s.links=e,G.popupMenu.update(l,s)}))}})}},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 i=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 i.borderTopRightRadius,delete i.borderBottomRightRadius);var o={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)o[n]=e.selectBtnStyle[n];var r,a=e.quickBtnIcon||S.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundImage:"url("+G.svg.getSrc("download","#ffffff")+")",backgroundSize:"12px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}}),s=e.selectBtnIcon||S.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #FFF",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}}),l=S.a.create("div",{id:e.btnId,style:t,on:e.on,append:[r=S.a.create("a",{class:"sf-quick-btn",style:i,href:"#",append:[a]}),S.a.create("style",{text:d()({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"}}]})})]}),c=null,u=null;return e.singleBtn||(u=function(e){var t="object"==typeof e?e:document.createTextNode(e),n=c.firstChild;n===s?c.insertBefore(t,n):c.replaceChild(t,n)},c=S.a.create("button",{class:"sf-select-btn",style:o,on:e.onSelectBtn,append:[s]}),l.appendChild(c)),{node:l,setQuality:u,setLoadingState:function(){u(S.a.create("img",{src:G.svg.getSrc("info","#ffffff"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:"-1px",position:"relative"}}))},selectBtn:c,quickBtn:r}},getHiddenList:function(e,t){var n=G.popupMenu,i=n.createPopupItem("-text-",t).el;S.a.create(i,{text:r.a.i18n.getMessage("more")+" "+String.fromCharCode(187),style:{cursor:"pointer"},on:["click",function(){for(var e,t=this.parentNode.querySelectorAll("*["+n.dataArrtVisible+"]"),i=0;e=t[i];i++)e.style.display="block",e.setAttribute(n.dataArrtVisible,1);this.parentNode.removeChild(this)}]});var o=document.createDocumentFragment();return o.appendChild(i),S.a.create(o,{append:e}),0===t.visibleCount&&y.a.trigger(i,"click",{cancelable:!0}),o},getMenuContainer:function(e){var t=G.popupMenu,n=e.button,i=e.popupId,o=S.a.create("div",{style:{position:"absolute",minHeight:"24px",cursor:"default",textAlign:"left",whiteSpace:"nowrap",overflow:"auto"}});"#"===i[0]?o.id=i.substr(1):o.classList.add(i);var r=t.getContent(e);o.appendChild(r.content),setTimeout((function(){r.sizeIconList.forEach((function(e){y.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))}));var a=G.getPosition(n,e.parent),s=G.getSize(n),l=function(e){e.stopPropagation()},c=a.top+s.height,u={top:c+"px",maxHeight:document.body.offsetHeight-c-40+"px"};return e.leftMenuPos?u.left=a.left+"px":u.right=document.body.offsetWidth-a.left-s.width+"px",S.a.create(o,{style:u,on:[["click",l],["mouseover",l],["mouseup",l],["mousedown",l],["mouseout",l],["wheel",function(e){e.wheelDeltaY>0&&0===this.scrollTop?e.preventDefault():e.wheelDeltaY<0&&this.scrollHeight-(this.offsetHeight+this.scrollTop)<=0&&e.preventDefault()}]],append:[S.a.create("style",{text:d()({selector:("#"===i[0]?"":".")+i,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"}}]})})]}),o},getMenu:function(e,t,n,i){var o={links:t,button:e,popupId:n||"#sf-frame-menu",showFileSize:!0,sizeIconStyle:{color:"#fff"},linkClass:"sf-menu-item",bindUmmyInfoDetails:{posLeft:!0,widthLimit:480,container:i.container,createUmmyInfoDetails:{posLeft:!0,darkTheme:!0}},getHiddenListFunc:this.getHiddenList.bind(this)};for(var r in i)o[r]=i[r];var a=this.getMenuContainer(o);(o.container||document.body).appendChild(a);var s=function(){a.parentNode&&a.parentNode.removeChild(a),l.isShow=!1,o.onHide&&o.onHide()};o.onShow&&o.onShow(a),y.a.off(document,"mousedown",s),y.a.on(document,"mousedown",s);var l={isShow:!0,el:a,hide:s,update:function(e){var t=G.popupMenu,n=a.lastChild;a.textContent="",o.links=e;var i=t.getContent(o);setTimeout((function(){i.sizeIconList.forEach((function(e){y.a.trigger(e,"click",{bubbles:!1,cancelable:!0})}))})),a.appendChild(i.content),a.appendChild(n)}};return l}},mobileLightBox:{id:"sf-lightbox",clear:function(){var e=document.getElementById(G.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(r.a.i18n.getMessage("withoutAudio")),t.join(" ")},createItem:function(e){var t=G.mobileLightBox,n=S.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"}}),i="";if(e.title){var o=(e.ext||e.format||"").toLowerCase();o&&(o="."+o),i=T.a.modify(e.title+o)}if("string"==typeof e)return n.textContent=e,n;n.href=e.href,n.download=i,n.textContent=t.getTitle(e),e.forceDownload&&n.addEventListener("click",(function(e){G.downloadOnClick(e,null,{el:this})})),e.isHidden&&(n.classList.add("isOptional"),n.style.display="none");var r=G.getFileSizeIcon({cssFloat:"right",lineHeight:"36px",fontSize:"75%",marginRight:"10px"},{padding:"10px",verticalAlign:"middle",lineHeight:0},{width:"16px",height:"16px"},{url:e.href});return n.appendChild(r.node),n},getItems:function(e){var t=G.mobileLightBox;if("string"==typeof e)return{list:[t.createItem(e)],hiddenCount:0};for(var n,i=[],o=0;n=e[o];o++)"ummy"!==n.quality&&(n.extra||i.push({el:t.createItem(n),prop:n}));i=G.popupMenu.sortMenuItems(i);var r=[],a=[];for(o=0;n=i[o];o++)n.prop.isHidden?a.push(n.el):r.push(n.el);return{list:r.concat(a),hiddenCount:a.length}},show:function(e){var t,n=G.mobileLightBox,i=window.pageYOffset,a=window.innerHeight,s=I()(a/100*15),l=void 0,c=function(e){return a-46*(e?2:1)-2*s},u=function(e){e.hiddenCount>0?(l.style.height=c(1)+"px",t.style.display="block"):(t.style.display="none",l.style.height=c(0)+"px"),e.hiddenCount===e.list.length&&d(t)},d=function(e){var t="none",n=e.parentNode.querySelectorAll(".isOptional");"open"!==e.dataset.state?(e.dataset.state="open",e.textContent=r.a.i18n.getMessage("more")+" "+String.fromCharCode(171),t="block"):(e.dataset.state="close",e.textContent=r.a.i18n.getMessage("more")+" "+String.fromCharCode(187));for(var i,o=0;i=n[o];o++)i.style.display=t},p=document.getElementById(n.id);null!==p&&p.parentNode.removeChild(p);var f=window.innerWidth;f=f<=250?"90%":"70%",e&&0!==e.length||(e=r.a.i18n.getMessage("noLinksFound"));var m=n.getItems(e),h=S.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(),b()}]],append:S.a.create("div",{style:{display:"inline-block",width:f,backgroundColor:"#eee",height:a-2*s+"px",marginTop:s+i+"px",borderRadius:"4px",padding:"8px",position:"relative",boxSizing:"content-box"},append:[l=S.a.create("div",{style:{overflowY:"auto",marginBottom:"6px"},append:m.list,on:["touchmove",function(e){e.stopPropagation()}]}),t=S.a.create(n.createItem(r.a.i18n.getMessage("more")+" "+String.fromCharCode(187)),{href:"#",on:["click",function(e){e.preventDefault(),d(this)}]}),S.a.create(n.createItem(r.a.i18n.getMessage("close")),{style:{marginBottom:0},on:["click",function(e){e.preventDefault(),b()}]})],on:["click",function(e){e.stopPropagation()}]})});u(m),document.body.appendChild(h);var g=document.body.scrollTop,v={},b=function(){v.isShow&&(document.body.scrollTop=g,v.hide())};return o()(v,{isShow:!0,el:h,hide:function(){h.parentNode&&h.parentNode.removeChild(h),v.isShow=!1},close:b,update:function(e){if(null!==h.parentNode){e&&0!==e.length||(e=r.a.i18n.getMessage("noLinksFound")),l.textContent="";var t=n.getItems(e);S.a.create(l,{append:t.list}),u(t)}}})}},bridge:function(e){e.args=e.args||[],void 0===e.timeout&&(e.timeout=300);var t="sf-bridge-"+I()(1e3*Math.random())+"-"+C()();window.addEventListener("sf-bridge-"+t,(function n(i){var o;window.removeEventListener("sf-bridge-"+t,n),o=i.detail?JSON.parse(i.detail):void 0,e.cb(o)}));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(),A()(e.args),A()(t),I()(e.timeout)].join(",")+");";r.a.isSafari&&(n=n.replace("/* fix */",'(function(){"undefined"==typeof CustomEvent&&(CustomEvent=function CustomEvent(e,t){t=t||{bubbles:!1,cancelable:!1};var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o},CustomEvent.prototype=window.Event.prototype)})();'));var i=S.a.create("script",{id:t,text:n});document.body.appendChild(i)},openMediaOnSaveFrom:function(e){window.open("https://ru.savefrom.net/#url="+e,"_blank")},TutorialTooltip:function(e){var t=this;this.details={btnTopOffset:-3,btnLeftOffset:0},o()(this.details,e),this.onResize=this.onResize.bind(this),this.onResizeDebouce=c()(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(y.a.onRemoveEventName,(function(){t.onClose&&t.onClose(1)})),window.addEventListener("resize",this.onResizeDebouce),this.onResize(),(e.parent||document.body).appendChild(this.tooltipNode))}};G.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=I()(n.getPropertyValue("z-index"))+1),e}();return S.a.create("div",{class:"sf-tooltip",on:["mouseup",function(e){e.stopPropagation()}],append:[S.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"}}),S.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:[S.a.create("p",{style:{margin:0},append:_()(r.a.i18n.getMessage("tutorialTooltipText"))}),S.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()}]}),S.a.create("style",{text:d()({".sf-tooltip":{position:"absolute",zIndex:t+2,append:{".sf-button:hover":{backgroundColor:"#126db3 !important"},".sf-button:active":{opacity:.9}}}})})]})]})},G.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()},G.TutorialTooltip.prototype.onResize=function(){var e=this.target;if(!e.offsetParent||!e.parentNode)return this.onClose&&this.onClose(1);var t=G.getPosition(e,this.details.parent),n=t.top+this.details.btnTopOffset,i=t.left+t.width+this.details.btnLeftOffset;this.tooltipNode.style.top=n+"px",this.tooltipNode.style.left=i+"px"},G.mutationWatcher={getMutationObserver:function(){return j()()},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,i,o,r,a,s=[],l=[],c={};i=e.shift();){for(-1===(a=l.indexOf(i.target))&&(c[a=l.push(i.target)-1]={target:i.target,added:[],removed:[]}),t=c[a],n=void 0,o=0;r=i.addedNodes[o];o++)1===r.nodeType&&(t.added.push(r),n=!0);for(o=0;r=i.removedNodes[o];o++)1===r.nodeType&&(t.removed.push(r),n=!0);void 0!==n&&void 0===t.inList&&(t.inList=!0,s.push(t))}return s},isMatched:U.a,match:function(e,t,n){var i,o,r,a,s=this,l=e.queries,c=!1;return["added","removed"].forEach((function(e){var u=n[e];for(a=0;i=u[a];a++)for(o=0;r=l[o];o++)if(void 0===r.is||r.is===e){var d=t[o][e];!0===s.isMatched(i,r.css)?d.push(i):d.push.apply(d,i.querySelectorAll(r.css)),!1===c&&(c=void 0!==d[0])}})),c},filterTarget:function(e,t){var n,i;for(n=0;i=e[n];n++)if(!0===this.isMatched(t,i.css))return!0;return!1},run:function(e){var t=this,n={config:{childList:!0,subtree:!0},target:document.body,filterTarget:[]};o()(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 i=[],r=0;r<n.queries.length;r++)i.push({added:[],removed:[]});i=A()(i);var a=this.getMutationObserver();return n.observer=new a((function(e){var o=t.joinMutations(e);if(0!==o.length){for(var r,a=!1,s=JSON.parse(i);r=o.shift();)!1===t.filterTarget(n.filterTarget,r.target)&&!0===n._match(s,r)&&(a=!0);!0===a&&n.callback(s)}})),n.trigger=function(e){var t=!1,o=JSON.parse(i),r={added:[e],removed:[]};n._match(o,r)&&(t=!0),!0===t&&n.callback(o)},n.start=function(){n._disconnect(),n._connect(),n.trigger(n.target)},n.stop=function(){n._disconnect()},n.start(),n}},G.mutationAttrWatcher={isAvailable:function(){return!!G.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};o()(t,e),M()(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=[],i=0;i<t.attr.length;i++)n.push({});n=A()(n);var r=G.mutationWatcher.getMutationObserver();return t.observer=new r((function(e){for(var i,o=!1,r=JSON.parse(n);i=e.shift();){var a=t.attr.indexOf(i.attributeName);if(-1!==a){var s=i.target.getAttribute(i.attributeName);s!==i.oldValue&&(r[a]={value:s,oldValue:i.oldValue},o=!0)}}!0===o&&t.callback(r)})),t.start=function(){t._disconnect(),t._connect();for(var e,i=!1,o=JSON.parse(n),r=0;e=t.attr[r];r++){var a=t.target.getAttribute(e);null!==a&&(o[r]={value:a,oldValue:null},i=!0)}!0===i&&t.callback(o)},t.stop=function(){t._disconnect()},setTimeout((function(){t.start()})),t}},G.waitNodesBySelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1,i=null,o=P.a.resolve().then((function(){var o=t.target||document.body,r=G.mutationWatcher.getMutationObserver(),a=null,s=null,l=new P.a((function(e,t){a=e,s=t})),c=null;t.timeout>0&&(c=setTimeout((function(){i&&i()}),t.timeout));var u=[],d=new r((function(t){var n,i;for(n=0;n<t.length;n++){var o=t[n];for(i=0;i<o.addedNodes.length;i++){var r=o.addedNodes[i];1===r.nodeType&&(U()(r,e)?u.push(r):u.push.apply(u,r.querySelectorAll(e)))}}u.length&&a(u)}));return d.observe(o,{childList:!0,subtree:!0}),i=function(){i=null,s(new Error("ABORTED"))},u.push.apply(u,o.querySelectorAll(e)),u.length&&a(u),n&&i&&i(),l.then((function(e){return d.disconnect(),clearTimeout(c),e}),(function(e){throw d.disconnect(),clearTimeout(c),e}))}));return o.abort=function(){n=!0,i&&i()},o},t.a=function(e){return W=e,G}},function(e,t){e.exports=n(205)},function(e,t){e.exports=n(119)},function(e,t){e.exports=n(169)},function(e,t){e.exports=n(348)},function(e,t){e.exports=n(20)},function(e,t){e.exports=n(98)},function(e,t,n){var i=n(0);t.a=function(e){return new P.a((function(t){i.a.sendMessage(e,t)}))}},function(e,t){e.exports=n(349)},function(e,t){e.exports=n(38)},function(e,t){e.exports=n(91)},function(e,t){e.exports=n(19)},function(e,t){e.exports=n(55)},function(e,t){e.exports=n(352)},function(e,t){e.exports=n(109)},,function(e,t){e.exports=n(623)},function(e,t){e.exports=n(147)},,,function(e,t,n){n.d(t,"a",(function(){return a}));var i=n(0),o=n(18),r=n.n(o)()("tools/youtube");function a(e){return new P.a((function(t,n){i.a.sendMessage({action:"getFileSize",url:e},(function(n){var o=n.fileSize;i.a.sendMessage({action:"getFileSize",url:e,requestOptions:{type:"GET",headers:{Range:"bytes=".concat(o-8,"-").concat(o)}}},(function(n){var i=n.error;i?r.debug("Link ".concat(e," don't have content")):r.debug("Link ".concat(e," have content")),t(!i)}))}))}))}},function(e,t){e.exports=n(79)},function(e,t){e.exports=n(353)},,,,,,function(e,t){e.exports=n(354)},,function(e,t){e.exports=n(355)},function(e,t){e.exports=n(229)},function(e,t){e.exports=n(356)}]])},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={19:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([52,0]),n()}({52:function(e,t,n){n.r(t);var i=n(3),o=n.n(i),r=n(0),a=n(13),s=n(8),l=n(16),c=n.n(l),u=n(17),d=n.n(u),p=n(10),f=n.n(p),m=n(34),h=n.n(m),g=n(25),v=n.n(g),b=n(7),y=n.n(b),x=n(15),k=n.n(x),w=n(9),S=n.n(w),C=n(2),L=n.n(C),_=n(1),M=n.n(_),E=n(20),O=n(18),T=n.n(O),F=n(14),D=n.n(F),B=n(6),N=n.n(B),R=n(21),j=n.n(R),z=n(22),U=n.n(z),q=n(11),H=n.n(q),V=T()("vimeo_com");D.a.isSingle()&&Object(s.b)("vimeo",(function(e,t){var n=Object(a.a)(t),i=t.preferences,s=i.moduleVimeo?1:0,l=c()();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 u.changeState(t.state)}"updatePreferences"!==t.action||o()(i,t.preferences)})),s&&setTimeout((function(){u.run()}));var u={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(s=1,l){if(u.clipId=u.getFrameClipId(),u.clipId)return u.appendIframeButtons();l=!1}this.videoFeed.injectStyle(),N.a.isAvailable()&&this.mutationMode.enable()},changeState:function(e){l||(s=e,u.videoFeed.disable(),u.rmAllBtn(),u.mutationMode.stop(),e&&u.run())},hideMenu:function(){u.currentMenu&&(u.currentMenu.hide(),u.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 i=e.querySelector("a.js-title")||e.querySelector("a");if(!i)return;var o=i.getAttribute("href");if(!o)return;t=(t=o.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 i=t.dataset.fallbackUrl||"";if(i=i.match(/video/([0-9]+)//))return i[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=S()(e.parent,e.playerContainer)),i=u.getVideoId(o)}if(u.currentMenu&&u.currentMenu.isShow)u.hideMenu();else{var a=r.a.i18n.getMessage("download")+" ...",s={};4===e.style&&(s.offsetTop=20);var l,c=this.dataset.sfMobile>0;l=u.currentMenu=c?n.mobileLightBox.show(a):n.popupMenu.quickInsert(this,a,"sf-popupMenu",s);var d=function(e){if(e&&e.links){u.linkCache[i]=e;var t=n.popupMenu.prepareLinks.vimeo(e.links,e.title);l.update(t)}else l.update(r.a.i18n.getMessage("noLinksFound"))},p=u.linkCache[i];if(!p)return u.getLinksFromPage2(i).catch((function(e){return V.error("getLinksFromPage error",e),Object(E.a)({action:"getVimeoLinks",extVideoId:i,url:location.href}).catch((function(e){throw V.error("getVimeoLinks error",e),e}))})).then((function(e){d(e)}),(function(e){d()}));d(p)}},getPlayerConfig:function(){return H()('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=I()(e,10),this.getPlayerConfig().then((function(t){var n=t.clipId,i=t.url,o=t.clip;if(n!==e)throw new Error("Clip id is change");var r=function(e){return Object(E.a)({action:"getVimeoLinksFromConfigAction",config:e}).then((function(e){if(e)return e;throw new Error("getLinksFromConfig result is empty")}))};return P.a.resolve().then((function(){if(o)return r(o);throw new Error("Clip is not exists!")})).catch((function(e){return V.error("Get links from config error",e),U()({url:i,localXHR:!0,json:!0,withCredentials:!0}).then((function(e){var t=e.body;return r(t)}))}))}))},rmAllBtn:function(){["sfSkip"].forEach((function(e){for(var t,n=f()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}));for(var e,t=document.querySelectorAll("."+u.dlBtnClassName),n=0;e=t[n];n++)"1"!==e.dataset.sfType&&"3"!==e.dataset.sfType||(e=e.parentNode),e.parentNode.removeChild(e);u.videoFeed.rmBtn(),u.hideMenu()},appendBtn:function(e){var t,i=e.parent,o=i.querySelector("."+u.dlBtnClassName);if(o){if(!o.dataset.sfId&&6!==e.style)return;o.parentNode.removeChild(o),o=null}if(1===e.style?t=M.a.create("a",{text:r.a.i18n.getMessage("download"),class:[u.dlBtnClassName,"sf-style-1"],style:{display:"inline"},data:{sfId:e.id,sfType:e.style},href:"#"+e.id}):2===e.style?t=M.a.create("button",{text:r.a.i18n.getMessage("download"),class:[u.dlBtnClassName,"btn","iconify_down_b"],data:{sfId:e.id,sfType:e.style}}):5===e.style?t=M.a.create("button",{class:[u.dlBtnClassName,"sf-type-5"],data:{sfId:e.id,sfType:e.style},append:[M.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),M.a.create("span",{style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]}):7===e.style?t=M.a.create("button",{class:[u.dlBtnClassName,"sf-type-7"],data:{sfId:e.id,sfType:e.style},append:[M.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),M.a.create("span",{style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]}):3===e.style?t=M.a.create("button",{class:[u.dlBtnClassName,"iris_btn","iris_btn-switch"],data:{sfId:e.id,sfType:e.style},append:[M.a.create(n.svg.getSvg("download","#00adef"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"text-bottom",marginRight:".625rem"}}),M.a.create("span",{class:"iris_btn-content",style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]}):4===e.style?t=M.a.create("i",{class:[u.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:M.a.create("style",{text:y()([{selector:"."+u.dlBtnClassName+".sf-style-4",style:{background:"url("+n.svg.getSrc("download","#777777")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:"."+u.dlBtnClassName+".sf-style-4:hover",style:{background:"url("+n.svg.getSrc("download","#00B75A")+") center no-repeat #F8F8F8",backgroundSize:"12px"}},{selector:"."+u.dlBtnClassName+".sf-style-4:active",style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}}])})}):6===e.style&&(t=M.a.create("button",{class:[u.dlBtnClassName,"btn","btn_sm","btn_blue_o"],data:{sfId:e.id,sfType:e.style,sfMobile:1},style:{marginLeft:"8px"},append:[M.a.create(n.svg.getSvg("download","#00adef"),{style:{display:"inline-block",width:"12px",height:"12px",verticalAlign:"text-bottom",marginRight:"4px"}}),M.a.create("span",{class:"btn_text",style:{marginLeft:0},text:r.a.i18n.getMessage("download")})]})),t.addEventListener("click",u.onBtnClick.bind(t,e)),1===e.style&&(t=M.a.create("span",{append:[t," | "]})),3===e.style&&(t=M.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)},playerStateChangeObserver:null,observeVideoUi:function(e,t){var n=t;if(n){var i=null,o=/(s|^)with-controls(s|$)/;this.playerStateChangeObserver&&this.playerStateChangeObserver.stop(),this.playerStateChangeObserver=new j.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: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:M.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=M.a.create("div",{class:"sf-btn-ctr",append:t.node}),L.a.on(t.container,"mouseenter",(function(){t.lockHide=!0})),L.a.on(t.container,"mouseleave",(function(){t.lockHide=!1})),t.node.appendChild(M.a.create("style",{text:y()([{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 o=n.added[0];o&&(e.observeVideoUi(t,o),setTimeout((function(){i.stop(),i=null}),0))}}]})},getLinksFromPage:function(e){var t=[/"video":{/,/"request":{/,/"files":/],n=h()(document.body.innerHTML,t),i=null;n.some((function(e){return v()(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:u.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,u.currentMenu&&u.currentMenu.isShow)u.hideMenu();else{var i=u.linkCache[t],o=r.a.i18n.getMessage("download")+" ...";i&&(o=n.popupMenu.prepareLinks.vimeo(i.links,i.title));var a=u.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?(u.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 M.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,i=this.parentNode;if("A"===i.tagName){var o=i.getAttribute("href");if(o&&(n=(n=o.match(/^/(d+)$/))&&n[1])&&(t=i.parentNode)&&t.classList.contains("contextclip-img")&&!(t.dataset.sfBtn>0)){t.dataset.sfBtn="1";var r=[u.videoFeed.btnClassName,"sf-type1-btn"];i.appendChild(u.videoFeed.getBtn({id:n,classList:r})),i=null,t=null}}},onImgOver:function(e){var t,n,i=this.parentNode;if(k()(this,"a.contextclip-img-thumb")){t=this,i=this;var o=//([0-9]+)/.exec(this.href);o&&(n=o[1])}if(!n&&(k()(this,"div.iris_video-vital")||k()(this,"li.clip_thumbnail"))){i=this.querySelector(".iris_thumbnail"),t=this;var r=this.querySelector("a.iris_link-box");if(r){var a=r.href;!(n=(n=a.match(//([0-9]+)/))&&n[1])&&a&&(n=A()({url:a}))}}if(!n&&"LI"==i.tagName){if(!(n=i.dataset.resultId)||"clip_"!==n.substr(0,5))return;n=n.substr(5),t=i,i=this.querySelector(".thumbnail_wrapper")}if(!n){if("A"!==i.tagName)return;if(n=i.dataset.clipId,!(t=i.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=i.getAttribute("href")),!n)return;(n=n.match(/([0-9]+)$/))&&(n=n[1])}if(!t.dataset.sfBtn){t.dataset.sfBtn="1";var l=[u.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 c=t.parentNode;c&&"clips"===c.id&&l.push("sf-type1-btn"),c=null,s&&l.push("sf-type1-btn"),t.classList.contains("promo_clip")&&1===l.length&&l.push("sf-type1-btn"),i.appendChild(u.videoFeed.getBtn({id:n,classList:l,isCouchMode:s})),i=null,t=null}},injectStyle:function(){this.style?!this.style.parentNode&&document.head.appendChild(this.style):(this.style=M.a.create("style",{text:y()([{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 i=f()("sfBtn"),o=document.querySelectorAll("["+i+"]");for(n=0;e=o[n];n++)e.removeAttribute(i)}},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop()},wrapOnImgOver:function(){s&&u.videoFeed.onImgOver.apply(this,arguments)},wrapOnImgOver2:function(){s&&u.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++)u.hideMenu(),t.dataset.sfSkip>0||(t.dataset.sfSkip="1",u.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(u.hideMenu(),!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var i=t.querySelector(".stats")||t.querySelector(".time");i&&u.appendBtn({id:"",parent:i,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 i=u.getBrowserVideoData(t,t.id);i&&u.appendBtn(i)}}},{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",L.a.one(t,"mouseenter",u.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 i=d()(t,"clip_thumbnail");L.a.one(i,"mouseenter",u.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 i=d()(t,"iris_video-vital");L.a.one(i,"mouseenter",u.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 i=d()(t,"contextclip-img-thumb");L.a.one(i,"mouseenter",u.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",u.hideMenu();var i=S()(t,".clip_info-wrapper");if(i){var o=i.querySelector(".clip_info-actions");o&&u.appendBtn({id:"",parent:o,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",u.hideMenu(),S()(t,".clip_main-content")&&u.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",L.a.one(t,"mouseenter",u.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",u.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++)u.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++)u.appendBtn({id:"",parent:t,style:7,playerContainer:"#main"})}}]})}}}}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={5:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([54,0]),n()}({54:function(e,t,n){n.r(t);var i=n(3),o=n.n(i),r=n(0),a=n(13),s=n(8),l=n(16),c=n.n(l),u=n(10),d=n.n(u),p=n(34),f=n.n(p),m=n(25),h=n.n(m),g=n(7),v=n.n(g),b=n(2),y=n.n(b),x=n(1),k=n.n(x),w=n(20),A=n(18),S=n.n(A),C=n(14),L=n.n(C),I=n(6),_=n.n(I),M=S()("dailymotion_com");L.a.isSingle()&&Object(s.b)("dailymotion",(function(e,t){var n=Object(a.a)(t),i=t.preferences,s=i.moduleDailymotion?1:0,l=c()()&&//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:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return u.changeState(t.state)}"updatePreferences"!==t.action?s&&"updateLinks"===t.action&&u.updateLinks():o()(i,t.preferences)})),s&&setTimeout((function(){u.run()}));var u={contextMenu:null,linkCache:{},embed:null,title:"",styleIndex:0,btnId:"sf__download_btn",result:null,popupIsShow:!1,run:function(){if(s=1,!l)return _.a.isAvailable()?u.mutationMode.enable():void 0;u.appendIframeButtons()},changeState:function(e){l||(s=e,u.rmBtn(),u.mutationMode.stop(),e&&u.run())},hideMenu:function(){u.contextMenu&&u.contextMenu.isShow&&(u.contextMenu.hide(),u.contextMenu=null)},updateLinks:function(){u.changeState(0),u.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:k.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&&(y.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=k.a.create("div",{class:"sf-btn-ctr",append:t.node}),y.a.on(t.container,"mouseenter",(function(){t.lockHide=!0})),y.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)};y.a.on(document.body,"mousemove",s),t.node.appendChild(k.a.create("style",{text:v()([{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 f()(document.body.innerHTML,/playerV5/).some((function(n){return h()(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(["#"+u.btnId,".sf-wrapper"]),n=0;e=t[n];n++)e.parentNode.removeChild(e);u.result=null,u.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=k.a.create("button",{id:u.btnId,class:["sf-dl-btn"],title:r.a.i18n.getMessage("download"),append:[k.a.create("span",{append:[n.svg.getSvg("download","#000")]}),k.a.create("style",{text:v()({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(),u.contextMenu&&u.contextMenu.isShow)u.hideMenu();else{var t=r.a.i18n.getMessage("download")+" ...",i=u.contextMenu=n.popupMenu.quickInsert(this,t,"sf-popupMenu");P.a.resolve().then((function(){var e=u.newGetVideoId();if(!e)throw new Error("Video is not found");return u.linkCache[e]||Object(w.a)({action:"getDailymotionLinks",extVideoId:e}).then((function(t){if(!t||!t.links)throw new Error("Links is not found");return u.linkCache[e]=t}))})).then((function(e){var t=n.popupMenu.prepareLinks.dailymotion(e.links,e.title);i.update(t)})).catch((function(e){M.debug("Load links error",e),i.update(r.a.i18n.getMessage("noLinksFound"))}))}}]});y.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=d()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))},enable:function(){if(this.observer)return this.observer.start();this.observer=new _.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",u.insertBtn(t))}},{css:".".concat(y.a.onRemoveClassName),is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)y.a.onRemoveListener(t)}}]})}}}}),(function(){if(!c()())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 i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={22:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([55,0]),n()}({46:function(e,t){e.exports=n(230)},55:function(e,t,n){n.r(t);var i=n(4),o=n.n(i),r=n(12),a=n.n(r),s=n(3),l=n.n(s),c=n(0),u=n(13),d=n(8),p=n(16),f=n.n(p),m=n(46),h=n.n(m),g=n(19),v=n.n(g),b=n(10),y=n.n(b),x=n(7),k=n.n(x),w=n(15),S=n.n(w),C=n(9),L=n.n(C),_=n(2),M=n.n(_),E=n(1),T=n.n(E),F=n(26),D=n.n(F),B=n(5),N=n.n(B),R=n(18),j=n.n(R),z=n(14),U=n.n(z),q=n(6),H=n.n(q),V=n(21),W=n.n(V),G=n(35),K=n.n(G),Q=n(33),Y=n(11),J=n.n(Y),Z=n(27),$=j()("youtube_com");U.a.isSingle()&&Object(d.b)("youtube",(function(e,t){var n=Object(u.a)(t),i=t.preferences,r=i.moduleYoutube?1:0,s=c.a.isChrome||c.a.isFirefox||c.a.isGM&&c.a.isTM,d=f()();c.a.onMessage.addListener((function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:r,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return g.changeState(t.state)}if("updatePreferences"!==t.action){if(r){if("updateLinks"===t.action){var a=g.getIdFromLocation();a&&x((function(e){if(e&&e.args&&e.args.video_id===a){var t=document.getElementById(g.buttonId);null!==t&&t.parentNode.removeChild(t),C.rmBtn(),g.responseCache={},g.video_id=e.args.video_id;var n=document.getElementById("watch7-subscription-container");g.appendDownloadButton(n)}}))}"downloadPlaylist"===t.action&&g.downloadPlaylist()}}else l()(i,t.preferences)})),r&&setTimeout((function(){g.run()}));var p,m,g={swfargs:null,video_id:"",buttonId:"savefrom__yt_btn",responseCache:{},isMobile:!1,mobileMenu:null,currentMenu:null,currentTutorial:null,run:function(){if(r=1,d){var e=location.href.match(//embed/([w-]+)/i);(e=e&&e[1])||(d=!1)}return 0===location.host.indexOf("m.")?(g.isMobile=!0,void(H.a.isAvailable()&&g.mobileMutationMode.enable())):d?(g.video_id=e,void g.appendFrameButton()):void(H.a.isAvailable()&&(g.videoFeed.injectStyle(),g.mutationMode.enable()))},changeState:function(e){if(r=e,!d&&!g.isMobile){g.tutorial.hide(),g.hideCurrentMenu(),g.videoFeed.rmBtn(),g.mutationMode.stop();var t=document.getElementById(g.buttonId);t&&t.parentNode.removeChild(t),C.rmBtn(),e&&g.run()}},hideCurrentMenu:function(){g.currentMenu&&(g.currentMenu.hide(),g.currentMenu=null)},hideMobileMenu:function(){g.mobileMenu&&(g.mobileMenu.hide(),g.mobileMenu=null)},mutationMode:{observer:null,stop:function(){g.mutationMode.observer&&g.mutationMode.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=y()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))},wrapVideoFeedOnImgHover:function(){if(r&&g.videoFeed.testUrl(location.href)&&!(this.dataset.sfBtn>0)){this.dataset.sfBtn="1";var e=JSON.parse(this.dataset.sfContext);this.appendChild(g.videoFeed.getBtnNode(e.id,e.styleIndex))}},wrapNewVideoFeedOnThumbnailHover:function(){if(r&&g.videoFeed.testUrl(location.href)){var e=g.mutationMode,t=this,n=t.href,i=n&&n.match(g.videoFeed.hrefIdPattern),o=i&&i[1];if(o&&!t.querySelector(".sf-feed-btn")){var a=g.videoFeed.getBtnNode(o,2);M.a.onRemoveEvent(a,(function(){this.parentNode||M.a.one(t,"mouseenter",e.wrapNewVideoFeedOnThumbnailHover)})),t.appendChild(a)}n=null,i=null,o=null,a=null}},enable:function(){var e=this;if(e.observer)return e.observer.start();var t=function(t){if(g.videoFeed.testUrl(location.href))for(var n,i=0;n=t.added[i];i++)if(!(n.dataset.sfSkip>0)){n.dataset.sfSkip="1";var o=n.dataset.videoIds;if(o){var r=n.parentNode,a={};a.id=o,a.styleIndex=1,r.dataset.sfContext=A()(a),M.a.one(r,"mouseenter",e.wrapVideoFeedOnImgHover)}}};e.observer=new H.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",g.appendDownloadButton(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(g.videoFeed.testUrl(location.href))for(var n,i=0;n=t.added[i];i++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",M.a.one(L()(n,"a"),"mouseenter",e.wrapNewVideoFeedOnThumbnailHover))}},{css:".ytd-page-manager #info #top-level-buttons",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",g.appendNewDownloadButton(t))}},{css:"."+M.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)M.a.onRemoveListener(t)}}]})}},mobileMutationMode:{observer:null,stop:function(){g.mutationMode.observer&&g.mutationMode.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=y()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))},enable:function(){if(this.observer)return this.observer.start();this.observer=new H.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 i=0;i<4&&t;)t=t.parentNode,i++;if(t&&4===i){var o=1,r=t.querySelector("div:nth-child(1)>h1:nth-child(1)");if(r||(r=null),!r&&S()(t,'div > div > div[id^="koya_child_"]:last-child > div')){for(r=t,i=0;i<3&&r;)r=r.parentNode,i++;r&&r.querySelector("div:nth-child(1)>h2:nth-child(1)")?(t=t.parentNode,o=2):r=null}r&&(t.dataset.sfSkip>0||(t.dataset.sfSkip="1",g.appendMobileButton("",t,o)))}}}},{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",g.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",g.appendMobileButton("",t,4))}},{css:"#app .slim-video-metadata-actions",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",g.appendNewMobileButton(t,5))}},{css:"."+M.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)M.a.onRemoveListener(t)}}]})}},_onSelectBtnClick:function(e,t){if(!(t.button>0))if(t.stopPropagation(),t.preventDefault(),g.currentMenu&&g.currentMenu.isShow)g.hideCurrentMenu();else{var i=e.btnObj,r=i.videoId,s=g.currentMenu=n.popupMenu.quickInsert(i.node,c.a.i18n.getMessage("download")+" ...","sf-popupMenu",{onShow:function(){M.a.onRemoveEvent(i.node,g.hideCurrentMenu)},onHide:function(){M.a.offRemoveEvent(i.node,g.hideCurrentMenu)},onItemClick:function(e,t){var n=t.itag;"ummyAudio"===n&&(n="ummy"),i.lastItag!==n&&c.a.storage.set({ytLastITag:n},(function(){g.quickBtn.setValue(i)})),g.onMenuItemClick(t,{isPageItem:1,videoId:r})},offsetTop:i.popupMenu&&i.popupMenu.offsetTop,offsetRight:i.popupMenu&&i.popupMenu.offsetRight,parent:i.popupMenu&&i.popupMenu.parent}),l=function(){s.update(c.a.i18n.getMessage("noLinksFound"))};if(!r)return l();var u=function(e){if(e.links){var t=n.popupMenu.prepareLinks.youtube(e.links,e.title,e.subtitles);if(!t.length)return void l();!function(){var e=a()(o.a.mark((function e(){var n,i,r,a,l,c,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=[],i=!0,r=!1,a=void 0,e.prev=4,l=fe()(t);case 6:if(i=(c=l.next()).done){e.next=18;break}if(u=c.value,e.t0="ummy"===u.quality,e.t0){e.next=13;break}return e.next=12,Object(Q.a)(u.href);case 12:e.t0=e.sent;case 13:e.t0&&n.push(u);case 15:i=!0,e.next=6;break;case 18:e.next=24;break;case 20:e.prev=20,e.t1=e.catch(4),r=!0,a=e.t1;case 24:e.prev=24,e.prev=25,i||null==l.return||l.return();case 27:if(e.prev=27,!r){e.next=30;break}throw a;case 30:return e.finish(27);case 31:return e.finish(24);case 32:s.update(n);case 33:case"end":return e.stop()}}),e,null,[[4,20,24,32],[25,,27,31]])})));return function(){return e.apply(this,arguments)}}()()}},d=g.responseCache[r];if(d)return u(d);c.a.sendMessage({action:"getYoutubeLinks",extVideoId:r,url:location.href,checkSubtitles:!0},(function(e){e.links&&(g.responseCache[r]=e),u(e)})),i.isFirstMenuShow&&(i.isFirstMenuShow=!1)}},appendDownloadButton:function(e){var t=e.querySelector("#"+g.buttonId);t&&(t.parentNode&&t.parentNode.removeChild(t),t=null);var o=this,r={},a=o.getButtonUnderVideo(g._onSelectBtnClick.bind(null,r));return r.btnObj=a,a.isFirstMenuShow=!0,a.setLoadingState(),e.appendChild(a.node),x((function(t){var r=null;if(t&&t.args&&t.args.video_id&&(r=t.args.video_id),r){a.node.dataset.sfVideoId=r,a.ytConfig=t,a.videoId=r,a.isPage=1;var s=[],l=function(){l=null,g.tutorial.show({target:a.node})};s.push((function(){return l&&l()}));var c=C(null,i,r);c&&(s.push((function(e){var t=e.slice(0);if(0!==(t=n.popupMenu.sortMenuItems(t,{typeList:["video","3d","mute","mute60"],groupCompare:!0})).length){var i=t[0],o=i.prop&&i.prop.quality;-1!==["8K","4K","1440","1080"].indexOf(o)&&M.a.trigger(c,"changeValue",{detail:A()(i.prop&&i.prop.quality)})}})),e.appendChild(c)),a.onGetLinksArr=s,o.quickBtn.setValue(a)}}))},appendNewDownloadButton:function(e,t){var i=this,o=e.querySelector("#"+g.buttonId);if(o){if(t)return;o.classList.remove(M.a.onRemoveClassName),o.parentNode&&o.parentNode.removeChild(o),o=null}var r=new this.getNewButtonUnderVideo(g._onSelectBtnClick);r.isFirstMenuShow=!0,r.setLoadingState();var a=e.childNodes[2];a||(a=e.firstChild),a?e.insertBefore(r.node,a):e.appendChild(r.node);var s=null,l=null;return M.a.onRemoveEvent(r.node,(function(){s&&(s.abort(),s=null),l&&(l.destroy(),l=null),e.parentNode&&g.appendNewDownloadButton(e,!0)})),r.popupMenu={offsetTop:-6,offsetRight:-1,parent:r.menuContainer},(s=n.waitNodesBySelector("#movie_player")).then((function(){if(K()(document.body,r.node))return w().then((function(e){var t=e&&e.args&&e.args.video_id;if(t){r.node.dataset.sfVideoId=t,r.ytConfig=e,r.videoId=t,r.isPage=1;var n=[];r.onGetLinksArr=n,n.push((function(){g.tutorial.show({target:r.selectBtn,parent:r.menuContainer,btnLeftOffset:12,btnTopOffset:-6})})),i.quickBtn.setValue(r)}else $.debug("videoId is not found!")}));$.debug("Btn not exists")})).catch((function(e){"ABORTED"!==e.message&&$.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},appendNewMobileButton:function(e,t){var i=T.a.create("div",{id:g.buttonId,style:{flex:"1 1",minWidth:0,overflow:"hidden",margin:"-0.7em -0.57em",marginLeft:"0.7em",marginRight:0,display:"flex"},append:[T.a.create("button",{style:{padding:".7em .57em"},append:[T.a.create("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},append:[T.a.create("div",{style:{display:"block",height:"24px",width:"24px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",backgroundSize:"20px"}}),T.a.create("div",{style:{marginTop:"7px",alignSelf:"center",minHeight:"1em",lineHeight:"1em"},text:c.a.i18n.getMessage("download")})]})],on:["click",function(e){e.preventDefault(),g.hideMobileMenu();var t=g.getIdFromLocation(),i=g.mobileMenu=n.mobileLightBox.show(c.a.i18n.getMessage("download")+" ...");return P.a.resolve().then((function(){return g.responseCache[t]||new P.a((function(e,n){c.a.sendMessage({action:"getYoutubeLinks",extVideoId:t,url:location.href},(function(t){var i=c.a.lastError;i?n(i):e(t)}))}))})).then((function(e){if(!e||!e.links)throw new Error("Empty response");return g.responseCache[t]=e,n.popupMenu.prepareLinks.youtube(e.links,e.title||g.getTitleModify())})).catch((function(e){return $.error("getYoutubeLinks error",e),null})).then((function(e){i.update(e)}))}]})]});M.a.onRemoveEvent(i,(function(){g.hideMobileMenu(),document.body.contains(e)&&(e.dataset.sfSkip="0",g.mobileMutationMode.observer.trigger(e))})),e.appendChild(i)},appendMobileButton:function(e,t,i){var o={};3===i?l()(o,{display:"flex",height:"24px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",padding:".7em .57em",marginLeft:".7em"}):4===i?l()(o,{display:"flex",width:"24px",background:"url("+n.svg.getSrc("download","#eee")+") center no-repeat",padding:".7em .57em",marginLeft:".7em"}):1===i?l()(o,{display:"inline-block",height:"28px",width:"18px",marginRight:"20px",background:"url("+n.svg.getSrc("download","#757575")+") center no-repeat",cssFloat:"right"}):2===i&&l()(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 r=T.a.create("div",{data:{id:e},style:o,on:["click",function(){var e=this.dataset.id||g.getIdFromLocation();g.hideMobileMenu();var t=g.mobileMenu=n.mobileLightBox.show(c.a.i18n.getMessage("download")+" ..."),i=function(e){var i=null;e&&e.links&&(i=n.popupMenu.prepareLinks.youtube(e.links,e.title||g.getTitleModify())),t.update(i)},o=g.responseCache[e];if(o)return i(o);c.a.sendMessage({action:"getYoutubeLinks",extVideoId:e,url:location.href},(function(t){t.links&&(g.responseCache[e]=t),i(t)}))}]});M.a.onRemoveEvent(r,(function(){g.hideMobileMenu(),3!==i&&4!==i||document.body.contains(t)&&(t.dataset.sfSkip="0",g.mobileMutationMode.observer.trigger(t))}));var a='div[id^="koya_child_"]:nth-child(1) > a[href="#"] > span[id^="koya_elem_"]',s=t.lastElementChild;s.querySelector(a)||(s=s.previousElementSibling).querySelector(a)||(s=null),s&&(s=s.nextElementSibling),s?s.parentNode.insertBefore(r,s):t.appendChild(r)},getNewButtonUnderVideo:function(e){var t=this;this.node=T.a.create("div",{id:g.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=T.a.create("div",{style:{position:"relative"}}),this.quickBtn=T.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:[T.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"}}),T.a.create("span",{class:"sf-btn-name",style:{paddingRight:"12px"},text:c.a.i18n.getMessage("download")})]}),this.quickBtnStyle=T.a.create("style",{text:k()({selector:"#"+g.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=T.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:c.a.isSafari?"21px":"22px"},on:["mousedown",function(n){return e.call(this,{btnObj:t},n)}],append:[this.selectBtnIcon=T.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(M.a.onRemoveClassName);var i=function(e){var n="object"==typeof e?e:document.createTextNode(e);n.style.marginLeft=0;var i=t.selectBtn.firstChild;i===t.selectBtnIcon?t.selectBtn.insertBefore(n,i):t.selectBtn.replaceChild(n,i)};this.setQuality=i,this.setLoadingState=function(){i(T.a.create("img",{src:n.svg.getSrc("info","#333333"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:c.a.isSafari?"-3px":"-1px",position:"relative"}}))}},getButtonUnderVideo:function(e){var t,i,o=null,r=T.a.create("div",{id:g.buttonId,style:{display:"inline-block",marginLeft:"10px",verticalAlign:"middle"},append:[i=T.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:[T.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"}}),T.a.create("span",{class:"sf-btn-name",style:{paddingRight:"12px"},text:c.a.i18n.getMessage("download")})]}),T.a.create("style",{text:k()({selector:"#"+g.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=T.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=T.a.create("i",{style:{position:"absolute",display:"inline-block",top:"9px",right:"6px",border:"5px solid #868282",borderBottomColor:"transparent",borderLeftColor:"transparent",borderRightColor:"transparent"}})]})]});r.classList.add(M.a.onRemoveClassName);var a=function(e){var n="object"==typeof e?e:document.createTextNode(e),i=o.firstChild;i===t?o.insertBefore(n,i):o.replaceChild(n,i)};return{node:r,selectBtn:o,quickBtn:i,setQuality:a,setLoadingState:function(){a(T.a.create("img",{src:n.svg.getSrc("info","#333333"),style:{width:"14px",height:"14px",marginLeft:"6px",verticalAlign:"middle",top:"-1px",position:"relative"}}))}}},titleChangeObserver:null,playerStateChangeObserver:null,observeFrameVideoChange:function(e){var t=this;if(H.a.isAvailable()){var n=document.querySelector(".ytp-title-link");n&&(this.titleChangeObserver&&this.titleChangeObserver.stop(),this.titleChangeObserver=new W.a({attrs:[{name:"href",callback:function(n){var i=n.oldValue&&g.getIdFromLocation(n.oldValue),o=n.value&&g.getIdFromLocation(n.value);i!==o&&g.video_id!==o&&(g.video_id=o,g.frameQualityDetected&&(e.link=null,e.setLoadingState(),t.quickBtn.setValue(e)))}}],target:n}));var i=document.querySelector(".html5-video-player");if(i){var o=null,r=/(s|^)ytp-autohide(s|$)/;this.playerStateChangeObserver&&this.playerStateChangeObserver.stop(),this.playerStateChangeObserver=new W.a({attrs:[{name:"class",callback:function(t){var n=r.test(t.oldValue),i=r.test(t.value);!n&&i?(clearTimeout(o),o=setTimeout((function(){e.lockHide||e.container.classList.add("sf-hide-ui")}),100)):n&&!i&&(clearTimeout(o),e.container.classList.remove("sf-hide-ui"))}}],target:i})}}},appendFrameButton:function(){if(!(document.body.clientWidth<220||document.body.clientHeight<150)){var e=g,t=!0,i=n.frameMenu.getBtn({btnId:"sfYtFrameBtn",containerStyle:{top:"40px",right:"20px"},on:[["mousedown",function(t){t.stopPropagation(),2===t.button&&(e.onFrameMouseEnterBind&&(M.a.off(document.body,"mouseenter",e.onFrameMouseEnterBind),M.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 r=e.video_id;if(e.currentMenu)g.hideCurrentMenu();else{var a=e.currentMenu=n.frameMenu.getMenu(this.parentNode,c.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;"ummyAudio"===o&&(o="ummy"),i.lastItag!==o&&c.a.storage.set({ytLastITag:o},(function(){e.quickBtn.setValue(i)})),g.onMenuItemClick(n,{isFrameItem:1,videoId:r})}}),s=function(e){var t=n.popupMenu.prepareLinks.youtube(e.links,e.title,e.subtitles,{ummyVid:136});a.update(t)},l=e.responseCache[r];if(l)return s(l);c.a.sendMessage({action:"getYoutubeLinks",extVideoId:r,url:location.href,checkSubtitles:!0},(function(t){if(t.links)return e.responseCache[r]=t,s(t);a.update(c.a.i18n.getMessage("noLinksFound"))}))}}}]});i.setLoadingState(),i.container=T.a.create("div",{class:"sf-btn-ctr",append:i.node}),document.body.appendChild(i.container),M.a.on(i.node,"mouseenter",(function t(){M.a.off(i.node,"mouseenter",t),e.frameQualityDetected||(e.frameQualityDetected=!0,e.quickBtn.setValue(i))})),M.a.one(document,"mouseenter",(function(){e.onFrameMouseEnter(i)})),M.a.on(i.container,"mouseenter",(function(){i.lockHide=!0})),M.a.on(i.container,"mouseleave",(function(){i.lockHide=!1})),i.node.appendChild(T.a.create("style",{text:k()([{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&&(M.a.off(document.body,"mouseenter",this.onFrameMouseEnterBind),M.a.off(document.body,"mouseleave",this.onFrameMouseLeaveBind)),this.onFrameMouseEnterBind=this.onFrameMouseEnter.bind(this,i),this.onFrameMouseLeaveBind=this.onFrameMouseLeave.bind(this,i),M.a.on(document.body,"mouseenter",this.onFrameMouseEnterBind),M.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 i=t[n].getAttribute("name");if(i&&"title"==i.toLowerCase())return t[n].getAttribute("content")}return d||g.isMobile?document.title.replace(/ - YouTube$/,""):""},getTitleModify:function(){var e=g.getTitle();return e&&(e=b(e)),e},onMenuItemClick:function(e,t){t=t||{},e.format||c.a.sendMessage({action:"track",t:"event",ec:"youtube",ea:"new_format",el:e.itag+" "+t.videoId})},onDlBtnClick:function(e,t,i){if(i=i||{},!t)return e.preventDefault(),e.stopPropagation(),void M.a.trigger(this.parentNode.lastChild,"mousedown");g.onMenuItemClick(t,i),"ummy"!==t.quality&&t.forceDownload&&n.downloadOnClick(e)},quickBtn:{prepMenuLinks:function(e,t){for(var i,o=n.popupMenu.prepareLinks.youtube(e,t),r={},a=[],s=0;i=o[s];s++)"ummy"===i.quality&&(r[i.itag]=i),a.push({prop:i});return{menuLinks:o=n.popupMenu.sortMenuItems(a),ummyLinks:r}},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){for(var t,n=[],i=0;t=e[i];i++)t.prop.noAudio||t.prop.noVideo||"ummy"!==t.prop.format&&(t.prop.extra||t.prop.isHidden||n.push(t.prop));if(n.length)return n[0]},bindDlBtn:function(e){var t=e.quickBtn;e.quickBtnEvent&&t.removeEventListener("click",e.quickBtnEvent),t.addEventListener("click",e.quickBtnEvent=function(t){t.stopPropagation(),e.link&&g.currentMenu&&g.hideCurrentMenu();var n={videoId:e.videoId||g.video_id,links:e.links};e.isPage?n.isPage=1:n.isFrame=1,g.onDlBtnClick.call(this,t,e.link,n)})},setBestValue:function(e,t){var n=e.quickBtn;e.link=t;var i=t.quality;t.noVideo||(i=I()(i)),t["3d"]&&(i="3D "+i),t.sFps&&(i+=" "+(t.fps||60));var o=T.a.create("span",{text:i,style:{marginLeft:"6px",verticalAlign:"bottom"}});e.setQuality?e.setQuality(o):this.setValueInSelectBtn(e,o);var r=[t.format,i];if(t.noAudio&&r.push(c.a.i18n.getMessage("withoutAudio")),r=r.join(" "),n.title=r,n.href=t.href,t.title&&t.format){var a=(t.ext||t.format||"").toLowerCase();a&&(a="."+a),n.setAttribute("download",N.a.modify(t.title+a))}},setUmmyBadge:function(e,t){var n=this,i=e.quickBtn;e.link=t,c.a.sendMessage({action:"getUmmyIcon"},(function(t){var i=T.a.create("span",{style:{width:"16px",height:"20px",backgroundImage:"url("+t+")",backgroundRepeat:"no-repeat",backgroundPosition:"center",marginLeft:"6px",display:"inline-block",verticalAlign:"top"}});n.setValueInSelectBtn(e,i)})),i.title=h()(t.quality),i.href=t.href,i.removeAttribute("download")},onGetLinks:function(e,t,n){var i=this;if(t){var o=O()(t).length;t.meta&&o--}if(!t||!o)return this.setValueInSelectBtn(e,"");c.a.storage.get("ytLastITag",(function(o){var r=o.ytLastITag;"ummyAudio"===r&&(r="ummy"),e.lastItag=r;var a=i.prepMenuLinks(t,n||g.getTitleModify());if(e.onGetLinksArr&&e.onGetLinksArr.forEach((function(e){return e(a.menuLinks)})),"ummy"===r&&a.ummyLinks[r])i.setUmmyBadge(e,a.ummyLinks[r]);else{var s=i.getBestItem(a.menuLinks);s?i.setBestValue(e,s):i.setValueInSelectBtn(e,"")}}))},setValue:function(e){var t=this;this.bindDlBtn(e);var n=e.videoId||g.video_id;if(!n)return this.onGetLinks(e);var i=g.responseCache[n];if(i)return this.onGetLinks(e,i.links,i.title),void(i=null);var o={action:"getYoutubeLinks",extVideoId:n,url:location.href,noDash:!0};e.ytConfig&&(o.action="getYoutubeLinksFromConfig",o.config=e.ytConfig),c.a.sendMessage(o,(function(n){return(n=n||{}).isQuick&&(e.quickBtn.dataset.isQuick="1"),e.links=n.links,t.onGetLinks(e,n.links,n.title)}))}},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=T.a.create("style",{class:"sf-feed-style",text:k()([{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(i){var o=y()(i);for(t=document.querySelectorAll("["+o+"]"),n=0;e=t[n];n++)e.removeAttribute(o)}))},getBtnNode:function(e,t){var i=["sf-feed-btn"];return t&&i.push("style-"+t),T.a.create("i",{class:i,on:["click",function(t){t.preventDefault(),t.stopPropagation();var i=this;if(g.currentMenu&&g.currentMenu.isShow)g.hideCurrentMenu();else{var o=e,r=i.parentNode;if(r&&"A"===r.tagName&&"thumbnail"===r.id){var a=g.videoFeed.hrefIdPattern.exec(r.href);a&&(o=a[1])}var s=document.querySelector("#home-page-skeleton.hidden"),l=g.currentMenu=n.popupMenu.quickInsert(i,c.a.i18n.getMessage("download")+" ...","sf-popupMenu",{offsetTop:s?54:0,onShow:function(){M.a.onRemoveEvent(i,g.hideCurrentMenu)},onHide:function(){M.a.offRemoveEvent(i,g.hideCurrentMenu)},onItemClick:function(e,t){g.onMenuItemClick(t,{isFeedItem:1,videoId:o})}});c.a.sendMessage({action:"getYoutubeLinks",extVideoId:o,url:location.href,checkSubtitles:!0},(function(e){if(e.links){var t=n.popupMenu.prepareLinks.youtube(e.links,e.title,e.subtitles);l.update(t)}else l.update(c.a.i18n.getMessage("noLinksFound"))}))}}]})}},downloadPlaylist:(p=function(e){for(var t,n=[],i=e.querySelectorAll("img[src]"),o=g.videoFeed.imgIdPattern,r=0;t=i[r];r++){var a=t.src.match(o);a&&-1===n.indexOf(a[1])&&n.push(a[1])}var s=e.querySelectorAll("*[data-video-id]");for(r=0;t=s[r];r++){var l=t.dataset.videoId;-1===n.indexOf(l)&&n.push(l)}return n},m=function(e,t,i,o){var r=!1,a={},s=0,l=0,u=e.length,d=void 0;"audio"===t?(d=["audio"],t=void 0):(d=["video"],t=I()(t)||void 0);var p=function p(){if(!r){var f=e[s];if(void 0===f)return 0===l?o(a):void 0;s++,l++,function(e,t,i,o){var r=-1!==i.indexOf("audio");c.a.sendMessage({action:"getYoutubeLinks",extVideoId:e,noDash:r},(function(e){var r=void 0;e.links&&(r=n.popupMenu.prepareLinks.youtube(e.links,e.title),r=n.popupMenu.sortMenuItems(r,{noProp:!0,maxSize:t,minSize:2,typeList:i})),o(r)}))}(f,t,d,(function(e){var t=e?e[0]:void 0;if(t){var n=(t.ext||t.format||"").toLowerCase();n&&(n="."+n);var o=N.a.modify(t.title+n);a[f]={url:t.href,title:t.title,filename:o}}i(s,u),l--,p()}))}};return p(),p(),{abort:function(){r=!0}}},function(){var e=!1,t=void 0,i=function(e){var t,i,o,r,a,l=n.playlist.getInfoPopupTemplate();c.a.sendMessage({action:"getWarningIcon",type:"playlist",color:"#77D1FA"},(function(e){l.icon.style.backgroundImage="url("+e+")"})),T.a.create(l.textContainer,{append:[T.a.create("p",{text:c.a.i18n.getMessage("playlist"),style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),i=T.a.create("div",{append:[T.a.create("p",{text:c.a.i18n.getMessage("quality")+":",style:{color:"#000000",fontSize:"14px",marginBottom:"13px",lineHeight:"24px"},append:[o=T.a.create("select",{style:{width:"75px",marginLeft:"5px"},append:[T.a.create("option",{text:"720",value:"720"}),T.a.create("option",{text:"480",value:"480"}),T.a.create("option",{text:"360",value:"360"}),T.a.create("option",{text:"240",value:"240"}),T.a.create("option",{text:"Audio",value:"audio"})]})]}),T.a.create("p",{text:c.a.i18n.getMessage("qualityNote"),style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]}),t=T.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]}),T.a.create(l.buttonContainer,{append:[a=T.a.create("button",{text:c.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"}}),r=T.a.create("button",{text:c.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 u=n.popupDiv(l.body,"pl_progress_popup",void 0,void 0,e);return{qualitySelect:function(e){t.style.display="none",l.buttonContainer.style.display="block",i.style.display="block",r.addEventListener("click",(function(){e(o.value)})),a.addEventListener("click",(function(){M.a.trigger(u,"kill")}))},onPrepare:function(e){t.style.display="block",l.buttonContainer.style.display="none",i.style.display="none",t.textContent=e},onProgress:function(e,n){t.textContent=c.a.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+c.a.i18n.getMessage("vkFoundOf")+" "+n},onReady:function(e,t){M.a.trigger(u,"kill"),s?n.downloadList.showBeforeDownloadPopup(e,{type:"playlist",folderName:t}):n.playlist.popupPlaylist(e,t,!0,void 0,"video")},onError:function(e){c.a.sendMessage({action:"getWarningIcon",type:"playlist",color:"#AAAAAA"},(function(e){l.icon.style.backgroundImage="url("+e+")"})),t.style.display="block",l.buttonContainer.style.display="none",i.style.display="none",t.textContent=e}}}((function(){e=!0,t&&t.abort()}));i.qualitySelect((function(n){i.onPrepare(c.a.i18n.getMessage("download")+" ..."),function(e){var t=document,n=v()(location.href);if(n.list)c.a.sendMessage({action:"getYoutubeIdListFromPlaylist",listId:n.list,baseUrl:location.protocol+"//"+location.host},(function(t){if(!t)return e();if(!t.idList||0===t.idList.length){var n=document.querySelector(".playlist-videos-container > .playlist-videos-list");if(null!==n&&(t.idList=p(n)),!t.title){var i=document.querySelector(".playlist-info > .playlist-title");null!==i&&(t.title=i.textContent.replace(/r?n/g," ").trim())}}e(t.idList,t.title)}));else{var i=p(t);e(i,g.getTitle())}}((function(o,r){e||(o&&0!==o.length?t=m(o,n,i.onProgress,(function(e){var t=[];for(var n in e)t.push(e[n]);var o=N.a.modify(r);i.onReady(t,o)})):i.onError(c.a.i18n.getMessage("noLinksFound")))}))}))})};g.tutorial={show:function(e){if(this.hide(),i.onceShowYtTooltip){e.onClose=function(){t&&t.stop(),c.a.sendMessage({action:"updateOption",key:"onceShowYtTooltip",value:i.onceShowYtTooltip=0})},g.currentTutorial=new n.TutorialTooltip(e);var t=null,o=document.querySelector("#page.watch");o&&(t=g.currentTutorial.attrWatcher=new W.a({attrs:[{name:"class",callback:function(){var e=g.currentTutorial;e&&e.tooltipNode.parentNode?e.onResize():t.stop()}}],target:o}))}},hide:function(){var e=g.currentTutorial;e&&(e.onClose&&e.onClose(1),e.attrWatcher&&e.attrWatcher.stop(),g.currentTutorial=null)}};var b=function(e){return(e=(e=(e=(e=(e=e.replace(/[x2Fx5Cx3Ax7C]/g,"-")).replace(/[x2Ax3F]/g,"")).replace(/x22/g,"'")).replace(/x3C/g,"(")).replace(/x3E/g,")")).replace(/(?:^s+)|(?:s+$)/g,"")},x=function(e){return J()("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"]'),i=n&&n.getAttribute("content");i&&((t=t||{}).args=t.args||{},t.args.video_id=i)}return e(t)}))},w=function(){return J()('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.getUpdatedConfigurationData){(function(fn){if(fn&&!fn.sf_apply){fn.sf_apply=fn.apply;fn.apply=function(self,args){var playerArgs=args[0];if(playerArgs&&playerArgs.video_id){var vars=JSON.parse(JSON.stringify(playerArgs));player.getSfPlayerVars=function(){return vars}}return fn.sf_apply(self,args)}}})(player.loadVideoByPlayerVars)}var ytConfig=window.ytplayer&&window.ytplayer.config;var sts=ytConfig&&ytConfig.sts;var updatedConfig=player.getUpdatedConfigurationData&&player.getUpdatedConfigurationData();var assets=updatedConfig&&updatedConfig.assets;if(!assets||!assets.js){assets=ytConfig&&ytConfig.assets}var args=updatedConfig&&updatedConfig.args;if(!args){args=ytConfig&&ytConfig.args}var videoData=player.getVideoData()||{};var sfConfig=player.getSfPlayerVars&&player.getSfPlayerVars();return{result:{config:{sts:sts,assets:assets},video_id:videoData.video_id,sfConfig:sfConfig,ytConfig:args}}}catch(err){return{error:{message:err.message,stack:err.stack}}}}').then((function(e){var t=null;if(e?e.error&&(t=l()(new Error("UNKNOWN_ERROR"),e.error)):t=new Error("EMPTY_RESPONSE"),t)throw t;return e.result})).then((function(e){var t=e.ytConfig||{},n=e.sfConfig||{},i=e.config,o=e.video_id;return o||(o=g.getIdFromLocation()),!n.video_id||o&&o!==n.video_id?t.video_id&&o===t.video_id?(i.args=t,i):o?{args:{video_id:o}}:null:(i.args=n,i)}))},C=function e(t,n,i){if(e.rmBtn(),n.showUmmyItem&&n.showUmmyBtn){var o="ummy://www.youtube.com/watch?v="+i,r=T.a.create("span",{class:"sf-btn-name",text:c.a.i18n.getMessage("download")+" "}),a=T.a.create("span",{text:"HD"}),s=T.a.create("i",{style:{position:"absolute",display:"inline-block",left:"6px",top:"3px",backgroundSize:"16px",backgroundRepeat:"no-repeat",backgroundPosition:"center",width:"16px",height:"16px"}});c.a.sendMessage({action:"getUmmyIcon"},(function(e){s.style.backgroundImage="url("+e+")"}));var l=T.a.create("div",{id:e.id,style:{display:"inline-block",marginLeft:"10px",verticalAlign:"middle"},on:["changeValue",function(e){var t=JSON.parse(e.detail),n=T.a.create("span",{text:t});a.parentNode.replaceChild(n,a),a=n}],append:[T.a.create("a",{class:"sf-quick-dl-btn",style:{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid #CCCCCC",borderRadius:"3px",paddingRight:"8px",paddingLeft:"28px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",zIndex:1,color:"#575757"},href:o,append:[s,r,a],on:["click",function(){/^ummy/.test(this.href)&&c.a.sendMessage({action:"track",t:"event",ec:"youtube",ea:"download",el:"ummy hd"})}]}),T.a.create("style",{text:k()([{selector:"#"+e.id,append:[{".sf-quick-dl-btn":{backgroundColor:"#F8F8F8"},".sf-quick-dl-btn:hover":{backgroundColor:"#EDEDED"},".sf-quick-dl-btn:active":{backgroundColor:"#F8F8F8"}},{media:"@media screen and (max-width: 1293px)",append:{".sf-quick-dl-btn .sf-btn-name":{display:"none"}}}]}])})]});return _.bindUmmyBtn(l,{video:"yt-"+i,vid:130}),l}};C.id="sf-ummy-btn",C.rmBtn=function(){for(var e,t=document.querySelectorAll("#"+C.id),n=0;e=t[n];n++)e.parentNode.removeChild(e)};var _={createInfoPopup:function(e,t){var n=T.a.create("div",{class:"sf-ummy-info-confirm-popup-container",style:{position:"absolute",zIndex:9999},append:[T.a.create("span",{style:{display:"inline-block",border:"8px solid transparent",borderRight:"10px solid rgb(192, 187, 187)",borderLeft:0,width:0,top:"8px",left:"11px",position:"absolute"}}),T.a.create("span",{style:{display:"inline-block",border:"8px solid transparent",borderRight:"10px solid #fff",borderLeft:0,width:0,top:"8px",left:"12px",position:"absolute"}}),T.a.create("div",{class:"sf-ummy-confirm-info-popup",style:{backgroundColor:"#fff",border:"1px solid #ccc",marginLeft:"21px",padding:"6px 5px",textAlign:"center",maxWidth:"240px",lineHeight:"16px",fontSize:"12px",fontFamily:"arial, sans-serif",cursor:"default"},append:[T.a.create("p",{append:D()(c.a.i18n.getMessage("ummyTooltipConfirm")),onCreate:function(e){var t=e.querySelector("img");t.style.verticalAlign="text-bottom",c.a.sendMessage({action:"getUmmyIcon"},(function(e){t.src=e}))}}),T.a.create("p",{style:{textAlign:"right"},append:[T.a.create("a",{class:"sf-btn",style:{cssFloat:"left"},text:c.a.i18n.getMessage("yes"),href:e,on:["click",function(e){setTimeout((function(){c.a.storage.get({onceUmmyLandingHide:0},(function(e){e.onceUmmyLandingHide||(e.onceUmmyLandingHide=0),c.a.storage.set({onceUmmyLandingHide:++e.onceUmmyLandingHide}),n.parentNode.removeChild(n),n.dataset.hide="1"}))}),250)}]}),T.a.create("a",{class:"sf-btn",text:c.a.i18n.getMessage("no"),href:t,target:"_blank"})]}),T.a.create("p",{append:[T.a.create("label",{append:[T.a.create("input",{type:"checkbox",on:["change",function(){c.a.storage.set({onceUmmyLandingHide:3}),n.parentNode.removeChild(n),n.dataset.hide="1"}]}),T.a.create("span",{text:c.a.i18n.getMessage("tooltipHide")})]})]}),T.a.create("style",{text:k()({".sf-ummy-confirm-info-popup > p":{margin:"5px 0"},".sf-ummy-confirm-info-popup label > *":{verticalAlign:"middle"},".sf-ummy-confirm-info-popup .sf-btn":{display:"inline-block",fontSize:"inherit",height:"22px",border:"1px solid rgb(204, 204, 204)",borderRadius:"3px",cursor:"pointer",verticalAlign:"middle",position:"relative",lineHeight:"22px",textDecoration:"none",color:"rgb(87, 87, 87)",textAlign:"center",margin:"0 10px",width:"80px"},".sf-ummy-confirm-info-popup .sf-btn:hover":{backgroundColor:"#ededed"}})})]})],on:[["mouseclick",function(e){e.stopPropagation()}],["mousedown",function(e){e.stopPropagation()}]]});return n},bindUmmyBtn:function(e,t){if(i.showUmmyLanding){var o,r=this;o=/^Mac/.test(navigator.platform)?"http://videodownloader.ummy.net/save-from-youtube.html?"+Z.stringify({vid:t.vid,video:t.video,utm_source:"savefrom-helper",utm_medium:"youtube-helper",utm_campaign:"ummy",utm_content:"ummy_integration_h"}):"http://videodownloader.ummy.net/?"+Z.stringify({vid:111,utm_source:"savefrom-helper",utm_medium:"youtube-helper",utm_campaign:"youtube-helper-hd"}),c.a.storage.get({onceUmmyLandingOpened:0,onceUmmyLandingHide:0},(function(t){if(!(t.onceUmmyLandingHide>2)){t.onceUmmyLandingHide||(t.onceUmmyLandingHide=0);var i=e.querySelector("a"),a=i.href;if(t.onceUmmyLandingOpened)return n.bindUmmyInfo(e,{expUmmyInfo:r.createInfoPopup.bind(r,a,o),noUmmy:!0});i.target="_blank",i.href=o,i.addEventListener("click",(function t(){setTimeout((function(){i.removeEventListener("click",t),c.a.storage.set({onceUmmyLandingOpened:1}),i.target="_self",i.href=a,n.bindUmmyInfo(e,{expUmmyInfo:r.createInfoPopup.bind(r,a,o),noUmmy:!0})}),250)}))}}))}}}}),(function(){return!///gaming.youtube/.test(location.href)}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={14:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([56,0]),n()}({42:function(e,t){e.exports=n(231)},56:function(e,t,n){n.r(t);var i=n(3),o=n.n(i),r=n(0),s=n(11),l=n.n(s),c=n(42),u=n.n(c),d=n(2),p=n.n(d),f=n(5),m=n.n(f),h=n(18),g=n.n(h),v=n(14),b=n.n(v),y=n(6),x=n.n(y),k=n(13),w=n(17),A=n.n(w),S=n(10),L=n.n(S),I=n(20),_=n(8),M=g()("soundcloud_com"),E="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=",O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAMUlEQVR42mL8//8/A7mAiYECwILC82Uk7IzN/xmpYjPjqJ9H/UxTP1OkGQAAAP//AwDcahUV6UvyJwAAAABJRU5ErkJggg==",T="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAPklEQVR42mNgGHTgvw/DfxgexJqBiuYja8CD55NrwHxyXTCfWP/OJ0sjFgPmkxvXCWRFDy6MT3MDITw40j8Ak46HYQ4gDfUAAAAASUVORK5CYII=",P="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAVklEQVQoz2P4//8/A7mYgSqa0UF9ff1/GEaXG0SagYrmI2vAg+djtZkIA+bjdTYeA+YT5WcsBswnNcDmY9NIlGaoAQnYxHEFGMHQxqe5gRDGqpnuGQMALmDKhkjc9oYAAAAASUVORK5CYII=",F=function(e,t){var n="IMG"!==e.tagName?e.querySelector("img"):e;n&&(n.src=t)},D=function(e){try{var t=!!e.title&&e.title.replace(/[^A-Za-zА-Яа-яЁё ]/g,"").trim(),n=!(!e.url||-1!==e.url.indexOf("blob:"))&&new URL(e.url).pathname.replace("/",""),i=t||n||e.id;return-1!==i.lastIndexOf(".mp3")?i:i+".mp3"}catch(e){return C()()+"_track.mp3"}};b.a.isSingle()&&Object(_.b)("soundcloud",(function(e,t){var n=Object(k.a)(t),i=t.preferences,s=i.moduleSoundcloud?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 c.changeState(t.state)}"updatePreferences"!==t.action||o()(i,t.preferences)})),s&&setTimeout((function(){c.run()}));var c={client_id:"9EUcKCN69MtmVKuO6hJmtNDRM1HMSfao",lastRow:null,timer:0,btnClass:"savefrom-helper--btn",nodeId:0,tracks:{},audioElClassList:["soundList__item","searchList__item","trackList__item","compactTrackList__item","soundBadgeList__item"],refreshClientId:function(){l()('function(){if(typeof webpackJsonp==="undefined"){return}var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=webpackJsonp.filter(function(v,k){return k!=="push"})[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var section=_step.value;for(var _i=0,_Object$keys=Object.keys(section[1]);_i<_Object$keys.length;_i++){var fnIdx=_Object$keys[_i];var _result=section[1][fnIdx].toString().match(/client_id:"(.+?)"/);if(_result&&_result[1]){return{client_id:_result[1]}}}}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}').then((function(e){e&&e.client_id&&(r.a.storage.set({scClientId:e.client_id,scClientId_expiresAt:u()()+21600}),c.client_id=e.client_id)}))},loadClientId:function(e){var t=this;r.a.storage.get(["scClientId","scClientId_expiresAt"],(function(n){return n.scClientId&&(c.client_id=n.scClientId),(!n.scClientId_expiresAt||n.scClientId_expiresAt<u()())&&t.refreshClientId(),e()}))},run:function(){s=1;var e=this;return this.loadClientId((function(){x.a.isAvailable()&&e.mutationMode.enable()}))},changeState:function(e){s=e,c.mutationMode.stop(),c.rmBtn(),e&&c.run()},rmBtn:function(){["sfSkip","sfId","sfSingle"].forEach((function(e){for(var t,n=L()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}));for(var e,t=document.querySelectorAll("."+c.btnClass),n=0;e=t[n];n++)e.parentNode.removeChild(e)},handleRow:function(e,t){var n=e.querySelector(".soundActions .sc-button-group");if(n){var i=function(t){t&&c.appendButton(n,e,t)};if(t)0===n.getElementsByClassName(c.btnClass).length&&c.getTrackInfo(window.location.href,e,i);else{var o=e.querySelector("a.sound__coverArt[href], a.soundTitle__title[href], a.trackItemWithEdit__trackTitle[href], a.trackItem__trackTitle[href], .chartTrack__title>a[href]");null!==o&&c.getTrackInfo(o.href,e,i)}}else M("no parent!",e)},getTrackInfo:function(e,t,n){(e=e.replace(/#.*$/i,"")).search(/^//(?:[w-]+.)?soundcloud.com(?:d+)?//i)>-1?e=window.location.protocol+e:-1==e.search(/https?:///i)&&("/"!=e.charAt(0)&&(e="/"+e),e=window.location.protocol+"//"+window.location.host+e);var i=c.tracks,o=i[e];if(!o){o=i[e]={cbList:[n]};var r={action:"getSoundcloudTrackInfo",trackUrl:e,client_id:c.client_id};return Object(I.a)(r).then((function(t){i[e]=c.setTrackInfo(t)}),(function(t){M.error("getSoundcloudTrackInfo",t),i[e]=null})).then((function(){for(var t;t=o.cbList.shift();)t(i[e])}))}o.cbList?o.cbList.push(n):n(o)},getTracksLink:function(e,t){return Object(I.a)({action:"soundcloudGetLinks",clientId:this.client_id,trackIds:t})},setTrackInfo:function(e){var t=e.trackUrl,n=e.data;if(t&&n){var i={};if("track"!=n.kind&&n.tracks&&1==n.tracks.length&&(n=n.tracks[0]),"track"==n.kind&&n.stream_url)return c.setSingleTrackParams(i,n),i.checkLinks=e.checkLinks,i;if(n.tracks){for(var o=[],r=0,a=n.tracks.length;r<a;r++){var s={};c.setSingleTrackParams(s,n.tracks[r]),o.push(s)}if(o.length>0)return n.title&&(i.title=n.title),i.playlist=o,i.checkLinks=e.checkLinks,i}}},setSingleTrackParams:function(e,t){var n=t.stream_url;n+=-1==n.indexOf("?")?"?":"&",n+="client_id="+c.client_id,e.url=n;for(var i=["id","title","duration"],o=0;o<i.length;o++)t[i[o]]&&(e[i[o]]=t[i[o]]);e.title&&t.user&&t.user.username&&(e.title=t.user.username+" - "+e.title)},onDlBtnClick:function(e){n.downloadOnClick(e)},appendButton:function(e,t,i){var o=i;if(document.body.contains(t)&&(document.body.contains(e)||(e=t.querySelector(".soundActions .sc-button-group")))&&!(t.dataset.sfSkip>1)){t.dataset.sfSkip="2";for(var a=["sc-button-small","sc-button-medium","sc-button-large"],s=0;s<a.length;s++)e.querySelector("."+a[s])&&(a=[a[s]]);var l=document.createElement("a");t.dataset.sfId&&(l.dataset.sfParentId=t.dataset.sfId),l.className=c.btnClass+" sc-button sc-button-responsive "+a[0],l.style.position="relative";var u=document.createElement("img");o.playlist?(l.href="#",l.title=r.a.i18n.getMessage("playlist"),u.alt=r.a.i18n.getMessage("playlist"),F(u,O),c.downloadPlaylistListener(l,o)):(l.href="#",l.title=r.a.i18n.getMessage("download"),u.alt=r.a.i18n.getMessage("download"),F(u,T),c.downloadSingleListener(l,o)),n.setStyle(u,{width:"15px",height:"15px",position:"absolute",top:"50%",left:"50%",margin:"-7px 0 0 -7px"}),l.appendChild(u),e.appendChild(l),u=null,l=null,e=null}},downloadSingleListener:function(e,t){!1===t.checkLinks?e.addEventListener("click",(function(i){i.preventDefault(),F(e,E),c.getTracksLink(c.client_id,[t.id]).then((function(t){if(t[0]){var i=D(t[0]);n.download(i,t[0].url)}F(e,t[0]?T:P)})).catch((function(){return F(e,P)}))})):(a.setAttribute("download",m.a.modify(t.title.trim()+".mp3")),a.addEventListener("click",this.onDlBtnClick,!1))},downloadPlaylistListener:function(e,t){var i=t.title?m.a.modify(t.title):"soundcloud";e.addEventListener("click",(function(e){if(e.preventDefault(),F(e.target,E),!1===t.checkLinks){var o=t.playlist.map((function(e){return e.id}));c.getTracksLink(c.client_id,o).then((function(e){e.forEach((function(e){return n.download(D(e),e.url)}))})).then((function(){return F(e.target,O)})).catch((function(){return F(e.target,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAJElEQVQoz2P4//8/A7mYgWqa6+vr/xPCtNE86udRP9PWz6RiANU4hUYGNDpOAAAAAElFTkSuQmCC")}))}else setTimeout((function(){n.playlist.popupPlaylist(t.playlist,i,!0),F(e.target,O)}),100)}))},mutationMode:{observer:null,stop:function(){c.mutationMode.observer&&c.mutationMode.observer.stop()},enable:function(){if(c.mutationMode.observer)return c.mutationMode.observer.start();var e,t=(e=null,function(){var n=this;clearTimeout(e),e=setTimeout((function(){p.a.off(n,"mouseenter",t),s&&c.handleRow.call(c,n)}),250)});this.observer=new x.a({queries:[{css:["li.trackList__item","li.compactTrackList__item","li.searchList__item","li.soundList__item","li.soundBadgeList__item","li.chartTracks__item"],is:"added",callback:function(e){for(var n,i=0;n=e.added[i];i++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",n.dataset.sfId="".concat(c.nodeId++),p.a.on(n,"mouseenter",t))}},{css:["div.listenEngagement .soundActions .sc-button-group","div.visualSound .soundActions .sc-button-group"],is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++){var i=A()(t,"listenEngagement")||A()(t,"visualSound");if(!(i.dataset.sfSingle>0)){if(i.dataset.sfSkip="1",i.classList.contains("streamContext"))return;i.dataset.sfSingle="1",c.handleRow(i,1)}}}},{css:".".concat(c.btnClass),is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++){if(!(t=document.querySelector("["+L()("sfId")+'="'+t.dataset.sfParentId+'"]')))return;if(t.dataset.sfSingle)return;t.dataset.sfSkip="1",document.body.contains(t)&&c.handleRow(t)}}}],filterTarget:[{css:"div.waveform__layer"},{css:"a.commentPopover__username"},{css:".commentPopover"},{css:"div.playbackTimeline__timePassed"},{css:"div.commentsList"},{css:"div.commentsList__item"},{css:"div.commentsList__body"}]})}}}}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={20:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([57,0]),n()}({31:function(e,t){e.exports=n(622)},38:function(e,t){e.exports=n(116)},57:function(e,t,n){n.r(t);var i=n(4),o=n.n(i),r=n(12),a=n.n(r),s=n(3),c=n.n(s),u=n(0),d=n(13),p=n(8),f=n(16),m=n.n(f),h=n(17),g=n.n(h),v=n(19),b=n.n(v),y=n(38),x=n.n(y),k=n(10),w=n.n(k),S=n(25),C=n.n(S),L=n(7),_=n.n(L),E=n(15),T=n.n(E),F=n(9),D=n.n(F),B=n(29),N=n.n(B),R=n(24),j=n.n(R),z=n(22),U=n.n(z),q=n(2),H=n.n(q),V=n(1),W=n.n(V),G=n(26),K=n.n(G),Q=n(5),Y=n.n(Q),J=n(20),Z=n(18),$=n.n(Z),X=n(14),ee=n.n(X),te=n(6),ne=n.n(te),ie=n(23),oe=n.n(ie),re=n(21),ae=n.n(re),se=n(31),le=n(11),ce=n.n(le),ue=n(27),de=$()("vkontakte_ru");ee.a.isSingle()&&Object(p.b)("vk",(function(e,t){var n=Object(d.a)(t),i=t.preferences,r=i.moduleVkontakte?1:0,s=u.a.isChrome||u.a.isFirefox||u.a.isGM&&u.a.isTM,p=m()(),f=!1;if(p)if(//video_ext.php?.+/.test(location.href))f=!0;else{if(!//widget_comments.php?.+/.test(location.href))return;p=!1}u.a.onMessage.addListener((function(t,n,o){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return o({state:r,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return L.changeState(t.state)}"updatePreferences"!==t.action?r&&("updateLinks"===t.action&&E(),"downloadMP3Files"===t.action&&(s?q.downloadMP3Files():q.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&q.showListOfAudioFiles(!0),"downloadPhotos"===t.action&&Q.downloadPhoto()):c()(i,t.preferences)})),r&&setTimeout((function(){L.run()}));var h,v,y,k=[],S={},L={contextMenu:null,isMutation:!1,run:function(){if(r=1,/m.vk.com/.test(location.hostname))return Z.run();f?V.addFrameBtn():(Q.injectStyle(),ne.a.isAvailable()&&(L.isMutation=!0,q.addCustomStyle(),L.mutationMode.enable()))},changeState:function(e){p||(r=e,F(),q.hideLinks(),G.off(),L.hideMenu(),Q.rmCurrentPhotoBtn(),q.rmBitrate(),Q.rmPhotoAlbumDlBtn(),L.mutationMode.stop(),e&&L.run())},hideMenu:function(){L.contextMenu&&(L.contextMenu.hide(),L.contextMenu=null)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=w()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))},wrapNewAudioOnMouseOver:function(){r&&q.onNewMouseOver.apply(this,arguments)},wrapNewVoiceOnMouseOver:function(){var e=D()(this,".im-mess");if(!(e&&e.querySelector(".sf-voice-btn")||!r)){var t=W.a.create("a",{href:this.getAttribute("data-mp3")||"#sf-preload",class:[q.className,"sf-audio-btn","sf-voice-btn"],download:Y.a.modify(this.getAttribute("data-mp3"))||"",style:{width:"3px",height:"3px",padding:"0px 9px 9px"},on:[["click",n.downloadOnClick]]});e.querySelector(".im-mess--actions").appendChild(t),e.addEventListener("mouseleave",(function(){return t.style.display="none"})),e.addEventListener("mouseenter",(function(){return t.style.display="inline"})),n.addStyleRules(".".concat(q.className,".sf-voice-btn"),{"background-size":"12px !important"})}},wrapVideoFeedOnMouseOver:function(){r&&G.onLinkHover.apply(this,arguments)},onVideoInsert:function(e){var t=n.getParentById(e,"mv_box"),i=V.getPlayerNode(t);i?V.getLinksFromPlayer(t,i,V.newAppendButton.bind(V)):e.dataset.sfSkip=0},onVideoChange:function(e){var t=this;if(/video_box_wrap-?d+_-?d+/.test(e.id))if(e.sfWatch)t.onVideoInsert(e);else{e.sfWatch=!0;var n=new ae.a({attrs:[{name:"id",callback:function(){t.onVideoInsert(e)}}],target:e});n.trigger(),H.a.onRemoveEvent(e,(function(){n.stop(),e.sfWatch=!1,e.dataset.sfSkip=0}))}else t.onVideoInsert(e)},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++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",H.a.one(t,"mouseenter",L.mutationMode.wrapNewAudioOnMouseOver))};this.observer=new ne.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",H.a.one(t,"mouseenter",L.mutationMode.wrapVideoFeedOnMouseOver))}},{css:"#mv_box #mv_player_box > .video_box_wrap",is:"added",callback:function(t){for(var n,i=0;n=t.added[i];i++)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,i=0;n=t.added[i];i++)(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",H.a.one(t,"mouseenter",L.mutationMode.wrapNewVoiceOnMouseOver))}},{css:"."+H.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)H.a.onRemoveListener(t)}}]})}}},E=function(){L.changeState(0),L.changeState(1)},F=function(){q.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--)q.elIsHidden(e[t])&&e[t].parentNode.removeChild(e[t])},B=function(){var e=document.title,t=e.indexOf("|");return-1!==t&&(e=e.substr(0,t-1)),Y.a.modify(e)},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:I()(e)||0},i=function(e){return!0===e?1:l()(e)||0},o=e.split("<!>"),r=o.length-1;r>=0;--r){var a=o[r];if("<!"==a.substr(0,2)){var s=a.indexOf(">"),c=a.substr(2,s-2);switch(a=a.substr(s+1),c){case"json":var u=null;try{u=JSON.parse(a)}catch(e){}o[r]=u;break;case"int":o[r]=n(a);break;case"float":o[r]=i(a);break;case"bool":o[r]=!!n(a);break;case"null":o[r]=null;break;case"pageview_candidate":o.pop();break;case"debug":o.pop()}}}return o},z=function(e){return/<em>.*</em>/.test(e)&&(e=e.replace(/</?em>/g,"")),e},q={audioElClassList:["audio","audioRow","audioRowWall"],lastRow:null,className:"savefrom_vk_download",cache:{},lastValidRequest:null,waitUntilUnblock:function(e){var t=this,n=10;return t.lastValidRequest?function i(){return new P.a((function(e){setTimeout(e,15e3)})).then((function(){if(e.abort)throw new Error("Abort");return U()(t.lastValidRequest).then((function(e){if(n--,!R(e.body)[5]){if(n>0)return i();throw new Error("Can't request data")}}))}))}().then((function(){return new P.a((function(e){setTimeout(e,250)}))})):P.a.reject(new Error("Last valid request is empty!"))},needUnmask:function(e){var t=/audio_api_unavailable/;return e.some((function(e){if(t.test(e[2]))return!0}))},unmaskUrlViaPlayer:(h=null,v=function(e){return ce()([e],'function(modulesStr){var modules=new Function([],"return "+modulesStr)();modulesStr=null;var unmaskFnId=null;if(unmaskFnId===null){for(var index in modules){var fn=modules[index];if(/\.audioUnmaskSource=/.test(fn)){unmaskFnId=index;break}}}if(unmaskFnId===null){for(var index in modules){var fn=modules[index];if(/"audioUnmaskSource"/.test(fn)){unmaskFnId=index;break}}}if(unmaskFnId===null){throw new Error("Unmask fn is no found!")}var installed={};var loadModule=function loadModule(id){if(installed[id])return installed[id].exports;var module=installed[id]={exports:{},id:id,loaded:false};var fn=modules[id];fn.call(module.exports,module,module.exports,loadModule);module.loaded=true;return module.exports};loadModule.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})};loadModule.d=function(t,i,o){loadModule.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:o})};loadModule.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var result=loadModule(unmaskFnId);if(result.audioUnmaskSource){window.sfUnmaskUrl=result.audioUnmaskSource}if(!window.sfUnmaskUrl){throw new Error("Unmask fn is no exists!")}return true}')},y=function(e){return U()({url:e,localXHR:!0}).then((function(e){var t=e.body,n="",i=t.indexOf("([function");if(-1===i&&(i=t.indexOf("([,function")),-1!==i&&(n=t.substr(i)),-1===i){if(-1===(i=t.indexOf("({0:function"))){var o=/(({d+:function)/.exec(t);o&&(i=t.indexOf(o[1]))}if(-1===i){var r=/(({"[^"]+":function)/.exec(t);r&&(i=t.indexOf(r[1]))}-1!==i&&(n=t.substr(i))}if(!n)throw new Error("Modules is not found!");return n}))},function(e){return q.needUnmask(e)?(null===h&&(h=P.a.resolve().then((function(){return/m.vk.com/.test(location.hostname)?function(){var e=[//js/cmodules/mobile/common.*.js/,//js/s_c.js/],t=[].slice.call(document.querySelectorAll("script[src]")).find((function(t){return e.some((function(e){return e.test(t.src)}))}));return t&&t.src?P.a.resolve(t.src):P.a.reject(new Error("Player url is not found!"))}().then(y).then(v):ce()('function(){var setUrl=null;var setAudioNodeUrl=null;try{setAudioNodeUrl=window.ap._impl._setAudioNodeUrl;if(!setAudioNodeUrl){setUrl=window.ap._impl.setUrl;if(!/\._player\.loadAudio/.test(setUrl)){setUrl=null}if(!setUrl){throw new Error("_setAudioNodeUrl and setUrl is empty")}}}catch(err){throw new Error("Can't find set url function")}window.sfUnmaskUrl=function(url){if(setAudioNodeUrl){var _result=null;var vNode={};var vThis={_isHlsUrl:function _isHlsUrl(url){_result=url;return false}};setAudioNodeUrl.call(vThis,vNode,url);return vNode.src||_result}else if(setUrl){var _vThis={};setUrl.call(_vThis,url);return _vThis._url}}}')})).then((function(){h=!0}),(function(e){de.error("Unmask via player error!",e),h=!1}))),"boolean"==typeof h?q.unmaskUrl(e):h.then((function(){return q.unmaskUrl(e)}))):P.a.resolve(e)}),unmaskUrl:function(e){return q.needUnmask(e)?ce()([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})):P.a.resolve(e)},_getNewTrackListByIdsWithActionHash:function(e){for(var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=0,o={},r=this.cache,a=e.filter((function(e){var t=e.fullId;return!r[t]||(o[t]=r[t],i++,!1)})),s=[];a.length;)s.push(a.splice(0,9));var l=e.length,c=P.a.resolve();return s.forEach((function(e){c=c.then((function(){var a=function(){if(n.abort)throw new Error("Abort");var a=e.map((function(e){return e.fullId+"_"+e.actionHash+"_"+e.urlHash}));a.push(e[0].fullId);var s={type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},data:ue.stringify({act:"reload_audio",al:1,ids:a.join(",")}),url:"/al_audio.php",localXHR:!0};return U()(s).then((function(e){var a=R(e.body)[5];if(!a)throw new Error("Track list is not found!");return t.lastValidRequest=s,a.forEach((function(e){var t=e[1]+"_"+e[0];r[t]=e,o[t]=e,i++})),n.onProgress&&n.onProgress(i,l),new P.a((function(e){setTimeout(e,250)}))}))},s=2;return function e(){return a().catch((function(i){if("Track list is not found!"===i.message&&!n.withoutUnblock){if(t.lastValidRequest)return t.waitUntilUnblock(n).then(a);if(s-- >0)return new P.a((function(e){return setTimeout(e,15e3)})).then((function(){return e()}))}throw i}))}().catch((function(e){"Abort"!==e.message&&de.debug("requestIds error!",e)}))}))})),c=(c=c.then((function(){O()(r).slice(1e3).forEach((function(e){delete r[e]}));var t=[];return e.forEach((function(e){var n=e.fullId,i=o[n];i&&t.push(i)})),t}))).then((function(e){return q.unmaskUrlViaPlayer(e)})).then((function(e){return e.forEach((function(e){var t=e[2];if(/.m3u8?/.test(t)){var n=(t=t.replace("/index.m3u8",".mp3")).split("/"),i=-1!==t.indexOf("audios")?1:0;n.splice(n.length-(2+i),1),t=n.join("/"),e[2]=t}})),e}))},_getAlbumIdFromUrl:function(e){var t=this,n=[e],i=b()(e);i.z&&n.unshift(i.z);var o=null;return n.some((function(e){if(o=t._getAlbumId(e))return!0})),o},_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 i=/audios(-?d+)/.exec(e);if(i){var o=/[?&]section=(w+)/.exec(e),r=o&&o[1];if(r&&-1===["playlists","all"].indexOf(r))return null;t.data.access_hash="",t.data.act="load_section",t.data.al=1,t.data.claim=0,t.data.owner_id=i[1],t.data.playlist_id=-1,t.data.type="playlist",t.data.offset=0}}return t.data.act?t:null},getNewNodeTrackInfo:function(e,t){var n=this.readNewDataAudio(e.dataset.audio),i=this.getNewTrackInfo(n);return i?i.url?q.unmaskUrlViaPlayer([[null,null,i.url]]).then((function(e){i.url=e[0][2],t(null,i)})):i.fullId?t(null,i):t(new Error("Track info is not found!")):t(new Error("Track info is not found!"))},_getAlbumTrackViaApi:function(e,t){if(!e.url)throw de.debug("Page is not exists!",e),new Error("Page is not exists!");var n=JSON.parse(A()(e.data)),i=function(){return t.abort?P.a.reject(new Error("Abort")):U()({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 P.a((function(e){setTimeout(e,250)})).then((function(){return t}))}))};return i().then((function(e){var t=20;return e.hasMore?function o(r){return!r||t<0?e:(t--,n.offset=r,i().then((function(t){return t.list.length?(e.list.push.apply(e.list,t.list),t.hasMore?o(t.nextOffset):e):e}),(function(t){return"Abort"!==t.message&&de.debug("getOffset error!",t),e})))}(e.nextOffset):e}))},_getAllTrackViaDom:function(e,t){var n=this;t=t||{};var i=[];return[].slice.call(e.querySelectorAll(".audio_row")).forEach((function(e){if((!t.fromPage||!n.elIsHidden(e))&&(t.grabReply||!Q.isReply(e))){var o=null;try{o=JSON.parse(e.dataset.audio)}catch(e){}o&&i.push(o)}})),{list:i}},_getNewAudioLinks:function(e,t){var n=this;t=t||{};var i=(e=e||document)===document,r=Q.getPopup("","audio",(function(){t.abort=!0}));r.onPrepare(u.a.i18n.getMessage("download")+" ...");var s=function(){return P.a.resolve().then((function(){return n._getAllTrackViaDom(e,{fromPage:i,grabReply:!1})}))};t.onProgress=function(e,t){r.onProgress(e,t)};var l=function(){var e=a()(o.a.mark((function e(i){var r,a,s,l;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],a="","string"==typeof i.title&&(a=Y.a.modify(i.title)),s=[],i.list.forEach((function(e){var t=e[1]+"_"+e[0],n=q.getTrackActionHash(e),i=q.getTrackUrlHash(e);-1===s.indexOf(t)&&(s.push(t),r.push({fullId:t,actionHash:n,urlHash:i}))})),e.next=7,ce()("function(){return vk.id}");case 7:return l=e.sent,e.abrupt("return",n._getNewTrackListByIdsWithActionHash(r,t).then((function(e){var t={},i=[];return e.forEach((function(e){var o=n.getNewTrackInfo(e);if(o&&o.url){-1!==o.url.indexOf("unavailable")&&(o.url=se.decodeUnavailableUrl(l,o.url));var r=n.getNewAudioFilename(o),a=n.getNewAudioFullTitle(o);t[o.fullId]=o.url,i.push({url:o.url,title:a,filename:r})}})),{linkList:t,trackList:i,title:a}})));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=P.a.resolve();return(c=(c=(c=i?c.then((function(){return P.a.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&&de.debug("findAlbumLinks error!",e),e})).catch((function(){return s()})):c.then(s)).then((function(e){var t=e.list;if(!t.length)throw new Error("Audio is not found");return r.onProgress(0,t.length),e}))).then(l)).then((function(e){return r.onReady(),e}),(function(e){throw r.onReady(),e}))},tooltip:{tooltip:void 0,updatePos:function(e,t){var i=n.getPosition(e),o=n.getSize(this.tooltip);this.tooltip.style.top=i.top+t.top-o.height+"px";var r=i.left+I()(t.width/2)-I()(o.width/2),a=document.body.clientWidth+document.body.scrollLeft;a<r+o.width&&(r=a-o.width),this.tooltip.style.left=r+"px"},show:function(e,t){var n=this;return void 0!==this.tooltip?this.hide():(this.tooltip=W.a.create("div",{class:"sf-tooltip",style:c()({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===q.rmBitrate.style&&document.body.appendChild(q.rmBitrate.style=W.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!==q.rmBitrate.style&&(q.rmBitrate.style.parentNode.removeChild(q.rmBitrate.style),q.rmBitrate.style=void 0),!n.querySelector(".sf-bitrate-value"))){var i=W.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(i)}}},onDlBtnLeave:function(){q.tooltip.hide()},onDlBtnOver:function(){var e=q,t=e.tooltip,n=this,i=n.dataset.fullId,o=n.parentNode&&n.parentNode.parentNode,r=-6;n.dataset.bitrateOffsetTop&&(r=I()(n.dataset.bitrateOffsetTop));var a={top:r,width:24,style:{backgroundColor:"#fff",border:"1px solid #ccc",color:"rgb(48, 48, 48)"}},s=t.show(n,a);s.dataset.fullId=i;var l=function(){var t=n.dataset.bitrate,i=n.dataset.size,r="";e.isHlsLink(n.href)?r=u.a.i18n.getMessage("download"):i?t?(e.insertNewBitrate(t,o),r=i+" ~ "+t):r=i:r=u.a.i18n.getMessage("getFileSizeFailTitle"),s.style.padding="2px 5px 3px",s.textContent=r};n.dataset.size||e.isHlsLink(n.href)?l():(s.style.padding="2px 2px 0 2px",s.textContent="",s.appendChild(W.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(r){if(n.dataset.preloadOver=2,n.href=r,!e.isHlsLink(r))return e._onOverInsertBitrate(n,o).then((function(){s.dataset.fullId===i&&(l(),t.updatePos(n,a))}));l(),t.updatePos(n,a)})).catch((function(e){de.error("_preloadNewTrackUrl error",e),n.dataset.preloadOver="",s.dataset.fullId===i&&(l(),t.updatePos(n,a))}))))},preloadIdPromiseMap:{},_preloadNewTrackUrl:function(e){var t=this,n=t.preloadIdPromiseMap,i=e.dataset.fullId,r=e.dataset.actionHash,s=e.dataset.urlHash,l=n[i];return l||(l=n[i]=t._getNewTrackListByIdsWithActionHash([{fullId:i,actionHash:r,urlHash:s}],{withoutUnblock:!0}).then(function(){var e=a()(o.a.mark((function e(r){var a,s,l;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(delete n[i],a=null,r.some((function(e){if(e[1]+"_"+e[0]===i)return a=e,!0})),-1===(s=a&&t.getNewTrackInfo(a)).url.indexOf("unavailable")){e.next=9;break}return e.next=7,ce()("function(){return vk.id}");case 7:l=e.sent,s.url=se.decodeUnavailableUrl(l,s.url);case 9:if(s&&s.url){e.next=11;break}throw new Error("Track is not found");case 11:return e.abrupt("return",s.url);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){throw delete n[i],e}))),l},isHlsLink:function(e){return!1},onNewDlBtnClick:function(e){q.isHlsLink(this.href)?(e.preventDefault(),q.downloadBar||(q.downloadBar=new null),q.hlsToMp3(this.href,this.download)):n.downloadOnClick(e);for(var t,i=document.querySelectorAll("._audio_row_"+this.dataset.fullId),o=0;t=i[o];o++)t.style.backgroundColor="#f4f7fc"},hlsToMp3:function(e,t){var n,i=new null;i.onProgress=function(e){n.updateProgress(e)},i.init().then((function(){return(n=q.downloadBar.inQueue({url:e,filename:t,stopConverter:function(){i.destroy()}})).waitQueue().then((function(){return i.playlist(e,t)})).then((function(e){de.log("hlsToMp3 result",e),i.download()}),(function(e){de.error("hlsToMp3 error",e)})).then((function(){de("complete",t),setTimeout((function(){n.complete()}),250)}))})).catch((function(e){de.error("hlsToMp3 catch error",e)}))},_onNewDlBtnClickWrapper:function(e){var t=q,n=this;e.stopPropagation(),(n.dataset.preloadOver>1||n.dataset.preloadBitrate>1)&&(n.dataset.preloadDl=2),n.dataset.preloadDl?n.dataset.preloadDl>1?q.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,q.onNewDlBtnClick.call(n,e)}),(function(e){de.error("_preloadNewTrackUrl error",e),n.dataset.preloadDl=""})))},getNewDlBtn:function(e,t){var n={href:e.url||"#sf-preload",class:[q.className,"sf-audio-btn"],download:Y.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(u.a.isGM||u.a.isSafari)&&(n.title=u.a.i18n.getMessage("downloadTitle")),W.a.create("a",n)},preloadSizePromiseMap:{},_onOverInsertBitrate:function(e,t){var i=this,o=i.preloadSizePromiseMap,r=e.dataset.fullId,a=o[r];return a||(a=o[r]=function(e){var t=S[e];if(t){var n=k.indexOf(e);-1!==n&&(k.splice(n,1),k.unshift(e))}else if(t=S[e]=Object(J.a)({action:"getFileSize",url:e}).then((function(t){return t&&!t.error||delete S[e],t})).catch((function(t){throw delete S[e],t})),k.unshift(e),k.length>100){var i=k.pop();delete S[i]}return t}(e.href).then((function(a){if(delete o[r],!a)throw new Error("Response is empty");if(!a.fileSize)throw delete i.cache[r],new Error("File size is empty");var s=n.sizeHuman(a.fileSize,2),l="";e.dataset.duration&&(l=Math.floor(a.fileSize/e.dataset.duration/125)+" "+u.a.i18n.getMessage("kbps")),e.dataset.bitrate=l,e.dataset.size=s,q.insertNewBitrate(l,t)}),(function(e){throw delete o[r],e}))),a},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,i){if(!e.querySelector("."+q.className)){var o=this.getNewAudioFilename(t),r=this.getNewDlBtn(t,o),a="#6C8CAC";1===i&&(a="#C4D1DE"),r.classList.remove("sf-audio-btn"),W.a.create(r,{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:"1px",marginBottom:"-2px"}});var s=null;if(H.a.onRemoveEvent(r,(function(){H.a.one(e,"mouseenter",L.mutationMode.wrapNewAudioOnMouseOver),s&&s.stop()})),2===i){var l=D()(e,".audio_page_player");l&&(s=new ae.a({target:l,attrs:[{name:"data-full-id",callback:function(){r.parentNode&&r.parentNode.removeChild(r),s&&s.stop()}}]})).trigger()}1===i&&(r.dataset.bitrateOffsetTop=1),e.insertBefore(r,e.firstChild)}},handleNewAudioRow:function(e,t,n){if(!e.querySelector("."+q.className)){var o=this,r=this.getNewAudioFilename(n),a=this.getNewDlBtn(n,r),s=t.parentNode;W.a.create(a,{class:["audio_row__action"],style:{width:"24px",height:"24px",cssFloat:"left"}});var l=t.firstChild;l?t.insertBefore(a,l):t.appendChild(a),1===i.vkShowBitrate&&(a.dataset.preloadBitrate||(a.dataset.preloadBitrate=1,o._preloadNewTrackUrl(a).then((function(e){return a.dataset.preloadBitrate=2,a.href=e,o._onOverInsertBitrate(a,s)})).catch((function(e){de.error("_preloadNewTrackUrl error",e)}))))}},addNewDlTrackBtn:function(e){var t=this,n=function(){a.disconnect()},i=null,o=function(o){i||(i=new P.a((function(n,i){t.getNewNodeTrackInfo(e,(function(e,t){e?i(e):n(t)}))})).catch((function(e){n()}))),i.then((function(n){n&&function(n,i){t.handleNewAudioRow(e,n,i)}(o,n)}))},a=new(oe()())((function(e){if(r){for(var t=null,i=null,a=0;t=e.shift();)if("childList"===t.type&&t.addedNodes.length&&t.target.classList.contains("audio_row__info"))for(a=0,t.addedNodes;i=t.addedNodes[a];a++)if(i.classList.contains("audio_row__actions"))return void o(i)}else n()}));a.observe(e,{childList:!0,subtree:!0});var s=e.querySelector(".audio_row__actions");s&&(o(s),s=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=Y.a.decodeSpecialChars(z(t.title))),t.performer=e[4],t.performer&&(t.performer=Y.a.decodeSpecialChars(z(t.performer))),t.duration=I()(e[5]),t.actionHash=q.getTrackActionHash(e),t.urlHash=q.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 ce()((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(i){if(!i){var o=document.querySelector(".audio_page_player[data-audio]");i=o&&_this.readNewDataAudio(o.dataset.audio)}var r=i&&n.getNewTrackInfo(i);r&&(r.url?n.handleNewCurrentAudioRow(e,r,t):r.fullId&&n.handleNewCurrentAudioRow(e,r,t))}))},onNewMouseOver:function(e){var t=q;if(this&&!this.querySelector("."+q.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")}q.tooltip.tooltip&&(q.tooltip.tooltip.parentNode.removeChild(q.tooltip.tooltip),q.tooltip.tooltip=void 0),q.cache={}},elIsHidden:function(e){return null===e.offsetParent},downloadMP3Files:function(){var e=Q.getLayer()||document;q._getNewAudioLinks(e).then((function(e){e.linkList;var t=e.trackList,i=e.title||B(),o=t;if(0===o.length)return alert(u.a.i18n.getMessage("vkMp3LinksNotFound"));n.downloadList.showBeforeDownloadPopup(o,{type:"audio",folderName:i})}),(function(e){"Abort"!==e.message&&(de.debug("_getNewAudioLinks error!",e),alert(u.a.i18n.getMessage("vkMp3LinksNotFound")))}))},showListOfAudioFiles:function(e){var t=Q.getLayer()||document;q._getNewAudioLinks(t).then((function(t){var i=t.linkList,o=t.trackList,r=t.title||B(),a=null;if(e){if(0!==(a=o).length)return n.playlist.popupPlaylist(a,r,!0)}else{for(var s in a=[],i)a.push({url:i[s]});if(0!==a.length)return n.playlist.popupFilelist(a)}alert(u.a.i18n.getMessage("vkMp3LinksNotFound"))}),(function(e){"Abort"!==e.message&&(de.debug("_getNewAudioLinks error!",e),alert(u.a.i18n.getMessage("vkMp3LinksNotFound")))}))}},V={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),i.showUmmyItem&&this.isRutubeLink(e))return V.getRutubeLinks(e);if(this.isPladformLink(e))return V.getPladformLinks(e);var t,o=n.embedDownloader.hostings;for(var r in o){for(var a,s=o[r],l=0;a=s.re[l];l++){var c=e.match(a);if(c){t={hosting:r,action:s.action,extVideoId:c[1]};break}}if(t)break}if(t)return{request:t}}},getLinksFromFlashVars:function(e){var t=b()(e,{params:!0});return V.getLinksFromHtml5MetaData(t)},getLinksFromHtml5MetaData:function(e){if(e){var t=e.md_title;if(void 0!==t){var n=/url([0-9]+)/,i={},o=!1;for(var r in e){var a=null;if("extra_data"!==r||"52"!==e.extra){if(null!==(a=r.match(n))){var s=e[r],l=s.indexOf("?");-1!==l&&(s=s.substr(0,l)),o=!0,i[a[1]]=s}}else i[a=e.hd?"HD":"SD"]=e[r],o=!0}if(o)return{title:t,links:i}}}},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=b()(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 i,o,r={},a=e.querySelectorAll("source"),s=0;o=a[s];s++){var l=o.src||"",c=l.indexOf("?");-1!==c&&(l=l.substr(0,c));var u=l.match(/.(d+).[^/]+$/);null!==u&&(r[u[1]]=l,i=!0)}return i?{title:n,links:r}: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 ce()([t,e],(function(e,t){var i=window.mvcur;if(i&&i.player&&i.player.vars){var o=i.player.vars;return o.vid!==e||o.oid!==t?n():{vars:i.player.vars}}})).then((function(e){if(!e)return n();var t=V.getLinksFromHtml5MetaData(e.vars);return n(t)}))},getLinksFromFrame:function(e){var t=document.body.innerHTML,n=b()(location.href),i=I()(n.oid),o=I()(n.id);if(i&&o){var r=null;if(C()(t,[/"vid":/,/"oid":/,/"md_title":/]).some((function(e){return r=e,!0})),r&&r.vid===o&&r.oid===i)return e(null,{request:{hosting:"vk",action:"getVkLinksFromJsonMsg",json:r}});var a=document.body,s=V.getPlayerNode(a);if(s)return V.getLinksFromPlayer(a,s,(function(t){t&&e(null,t)}))}return e("ERROR")},getLinksFromPlayer:function(e,t,i){if(t){var o,r;if("OBJECT"===t.tagName)(r=t.querySelector('param[name="flashvars"]'))&&(r=r.getAttribute("value"),o=V.getLinksFromFlashVars(r));else if("IFRAME"===t.tagName){var a=t.getAttribute("src");o||(o=V.getLinksFormUrl(a))}else if("EMBED"===t.tagName){var s=t.getAttribute("src");o||(r=t.getAttribute("flashvars"))&&(o=V.getLinksFromFlashVars(r)),o||(o=V.getLinksFormUrl(s))}if(o)return i(o,e);if("DIV"===t.tagName&&"video_player"===t.id){var l=t.parentNode.id,c=l&&l.match(/video_box_wrap(-?d+)_(-?d+)/);if(c)return c.shift(),c=c.map((function(e){return I()(e)})),ce()(c,(function(e,t){var n=window.mvcur;if(!n)return i();var o="video"+e+"_"+t;return n.listId&&(o+="?list="+n.listId),{path:o}})).then((function(t){if(t)return i({request:{hosting:"vk",action:"getVKLinks",extVideoId:t.path,oidVid:c}},e)}))}if("html5_player"===t.id)return ce()((function(){return window.html5video&&window.html5video.vars?window.html5video.vars:i()})).then((function(t){var n=V.getLinksFromHtml5MetaData(t);if(n)return i(n,e)}));if("A"===t.tagName){var u=t.href,d=b()(u);if(d.to)return o=n.embedDownloader.checkUrl(d.to),i(o?{request:o}:null,e)}return i(null,e)}},preparePladformLinks:function(e){e&&"getRutubeLinks"===e.action&&(e.links=null);var t=e&&e.links,n="noname",i={};if(t)for(var o,r=0;o=t[r];r++)n=o.title,i[o.quality]&&(o.quality=0),i[o.quality.toUpperCase()]=o.url;return{title:n,links:i}},prepareLinks:function(e){var t=e.title,n=[];for(var i in e.links){var o=e.links[i],r=o.match(/[w]+.(mp4|flv)(?:?|$)/i),a=(r=r?r[1]:"flv").toUpperCase();n.push({href:o,quality:i,title:t,ext:r,format:a,forceDownload:!0})}return n},getVideoLinksAsAjax:function(e){var t=/video(-?d+_-?d+)/.exec(e);t=t&&t[1];var n=b()(e).list;return Q._getModuleName().then((function(e){return new P.a((function(i){G.getLinkAsAjax([t,n],(function(e,t){i({hosting:t,response:e})}),e)}))}))},newAppendButton:function(e,t){var o=this;if(e){var r=t.querySelector("#mv_info"),a=r&&r.querySelector(".mv_actions_block .like_cont .like_btns");r=null;var s=t.querySelector("#mv_top_controls");if(a&&q.elIsHidden(a)&&(a=null),a||s){for(var l,c=!(a||!s),d=t.querySelectorAll(".savefrom_vk_download"),p=0;l=d[p];p++)l.parentNode.removeChild(l);l=null,d=null;var f=W.a.create("div",{class:["savefrom_vk_download","sf-under-video"],style:{cursor:"pointer"},on:[["click",function(r){if(r.stopPropagation(),H.a.onRemoveEvent(this,L.hideMenu),L.contextMenu&&L.contextMenu.isShow)L.hideMenu();else{var a=L.contextMenu=n.popupMenu.quickInsert(this,u.a.i18n.getMessage("download")+"...","sf-single-video-menu",{parent:t});if(e.isUmmy)a.update(e.links);else if(e.request){var s=function(t){var r=u.a.i18n.getMessage("noLinksFound");if(t)if("getPladformVideo"===e.request.action)r=i.showUmmyItem&&"getRutubeLinks"===t.action?n.popupMenu.prepareLinks.rutube(t.links):V.prepareLinks(V.preparePladformLinks(t));else if(t.links){var s=n.embedDownloader.reMapHosting(t.action);s&&(r=n.popupMenu.prepareLinks[s](t.links,t.title))}if("getVKLinks"===e.request.action&&"string"==typeof e.request.extVideoId&&("string"==typeof r||0===r.length))return o.getVideoLinksAsAjax(e.request.extVideoId).then((function(e){var t=e.hosting,i=e.response,o=u.a.i18n.getMessage("noLinksFound");i&&i.links&&(o=i.isUmmy?i.links:n.popupMenu.prepareLinks[t](i.links,i.title)),a.update(o)}));a.update(r)},l=function(){try{u.a.sendMessage(e.request,s)}catch(e){s()}};e.request.oidVid?V.getLinksFromMv(e.request.oidVid[0],e.request.oidVid[1],(function(e){if(e){var t=V.prepareLinks(e);a.update(t)}else l()})):l()}else{var c=V.prepareLinks(e);a.update(c)}}}],["mousedown",function(e){e.stopPropagation()}],["keydown",function(e){e.stopPropagation()}]]});if(a){W.a.create(f,{class:["like_btn"],append:[W.a.create("div",{class:["like_button_icon"],append:[W.a.create("img",{src:n.svg.getSrc("download","#828a99"),width:16,height:16,style:{margin:"4px"}})]}),W.a.create("div",{class:["like_button_label"],text:u.a.i18n.getMessage("download")})]});var m=a.querySelector(".ui_actions_menu_wrap");m?m.parentNode.insertBefore(f,m):a.appendChild(f)}else if(c){W.a.create(f,{class:["mv_top_button"],style:{textAlign:"center"},append:[W.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 h=s.firstChild;if(h)if(q.elIsHidden(s.lastChild)){for(;h.nextElementSibling&&!q.elIsHidden(h.nextElementSibling);)h=h.nextElementSibling;h.parentNode.insertBefore(f,h)}else s.appendChild(f);else s.appendChild(f)}}}},appendNewFrameBtn:function(e,t){var o=this;if(!t.querySelector(".savefrom_vk_download")){var r=n.frameMenu.getBtn({singleBtn:!0,btnId:o.btnBoxId,containerStyle:{top:"10px",right:"10px"},on:[["click",function(t){if(t.preventDefault(),t.stopPropagation(),L.contextMenu&&L.contextMenu.isShow)L.hideMenu();else{var a=L.contextMenu=n.frameMenu.getMenu(this,u.a.i18n.getMessage("download")+"...","sf-frame-menu",{container:r.container,onShow:function(){r.node.classList.add("sf-over")},onHide:function(){L.contextMenu=null,r.node.classList.remove("sf-over")}});if(e.request){var s=function(t){var r=u.a.i18n.getMessage("noLinksFound");if(t&&"getPladformVideo"===e.request.action)r=i.showUmmyItem&&"getRutubeLinks"===t.action?n.popupMenu.prepareLinks.rutube(t.links):o.prepareLinks(o.preparePladformLinks(t));else if(t&&t.links){var s=n.embedDownloader.reMapHosting(t.action);s&&(r=n.popupMenu.prepareLinks[s](t.links,t.title))}a.update(r)};try{u.a.sendMessage(e.request,s)}catch(t){s()}}else a.update(o.prepareLinks(e))}}],["mousedown",function(e){e.stopPropagation(),2===e.button&&(L.hideMenu(),r.container.parentNode&&r.container.parentNode.removeChild(r.container))}]]});r.container=W.a.create("div",{class:"sf-btn-ctr",append:r.node}),r.node.appendChild(W.a.create("style",{text:_()([{selector:["body:hover .sf-btn-ctr #"+o.btnBoxId,"body:hover .sf-btn-ctr .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(r.container)}},addFrameBtn:function(){var e=document.getElementById("page_wrap");e&&V.getLinksFromFrame((function(t,n){t||V.appendNewFrameBtn(n,e)}))}},G={linkDataAttr:"savefromHasBtn",getLinkAsAjaxRequest:function(e,t){t=t||0;var n=c()({},e),i=function(){if(t<1)return G.getLinkAsAjaxRequest(e,++t);e.error&&e.error()},o=n.data;0===t?o.act="show_inline":1===t&&(o.act="show"),j()(n,(function(t,n,o){return t||!o?i():-1!==o.indexOf('href="/join"')?i():void e.success(o)}))},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,o){G.getLinkAsAjaxRequest({localXHR:1,type:"POST",url:"/al_video.php",data:{list:e[1],video:e[0],act:"show_inline",module:o,al:1},success:function(e){if(!e)return t();var o=e.match(/<iframe[^>]+src=['"]{1}([^'">]+)['"]{1}[^>]+>/i);if(o||(o=e.match(/vars+optss+=s+({[^}]*})/im))&&(o=o[1].match(/url:s+['"]{1}([^'"]+)['"]{1}/i))&&0!==o[1].indexOf("//")&&0!==o[1].indexOf("http")&&(o=null),o){var r=o[1];if(i.showUmmyItem&&V.isRutubeLink(r))return t(V.getRutubeLinks(r));if(0===r.indexOf("//")&&(r="http:"+r),0!==r.indexOf("http"))return t();var a=n.embedDownloader.checkUrl(r);if(!a)return t();var s={action:a.action,extVideoId:a.extVideoId};u.a.sendMessage(s,(function(e){var i=a.hosting;return e.action!==s.action&&(i=n.embedDownloader.reMapHosting(e.action)),t(e,i)}))}else Object(J.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,i={display:"inline-block",width:"16px",height:"16px",marginLeft:"5px",backgroundImage:"url("+n.svg.getSrc("download","#78A2CC")+")",backgroundRepeat:"no-repeat",marginBottom:"-4px"},o=W.a.create("a",{href:"http://savefrom.net/?url="+encodeURIComponent(t),style:i,on:["click",function(e){if(u.a.isFirefox){e.preventDefault();var t=this.closest(".lnk").dataset,i=t.video,a=t.list;ce()([i,a],(function(e,t){showVideo(e,t,{autoplay:0,queue:1}),setTimeout((function(){document.querySelector(".savefrom_vk_download.sf-under-video").click(),document.querySelector("#sf-single-video-menu").scrollIntoView()}),500)}))}else{var s=this;if(e.preventDefault(),H.a.onRemoveEvent(r,L.hideMenu),L.contextMenu&&L.contextMenu.isShow)L.hideMenu();else{var l=document.querySelector("#wk_box");l&&l.contains(this)||(l=null);var c={parent:l},d=this.getAttribute(n.embedDownloader.dataAttr),p=n.embedDownloader.checkUrl(d);if(p){var f={action:p.action,extVideoId:p.extVideoId},m=L.contextMenu=n.popupMenu.quickInsert(o,u.a.i18n.getMessage("download")+" ...","sf-popupMenu",c),h=function(e){var t=p.hosting;if(e.action!=f.action&&(t=n.embedDownloader.reMapHosting(e.action)),M()(e.links)&&0===e.links.length&&(e.links=void 0),e.links){var i=n.popupMenu.prepareLinks[t](e.links,e.title);m.update(i)}else{var o=n.getParentByTagName(s.parentNode,"A"),r=G.getVideoDataFromLink(o);Q.getModuleName(G.getLinkAsAjax.bind(G,r,(function(e,t){var i;if(e&&e.links)return i=e.isUmmy?e.links:n.popupMenu.prepareLinks[t](e.links,e.title),void m.update(i);m.update(u.a.i18n.getMessage("noLinksFound"))})))}};try{u.a.sendMessage(f,h)}catch(e){h({})}}else L.contextMenu=n.popupMenu.quickInsert(o,u.a.i18n.getMessage("noLinksFound"),"sf-popupMenu",c)}}}]});o.setAttribute(n.embedDownloader.dataAttr,t);var r=W.a.create("span",{class:"sf-video-feed-container",on:["click",function(e){e.stopPropagation()}],append:[o]}),a=e.querySelector(".post_video_title");a?a.appendChild(r):e.appendChild(r)},onLinkHover:function(){if("A"===this.tagName){var e=this.href||"";0===this.id.indexOf("post_media_lnk")&&-1!==e.indexOf("/video")&&(L.contextMenu&&L.contextMenu.isShow&&L.hideMenu(),this.dataset[G.linkDataAttr]||(this.dataset[G.linkDataAttr]=1,G.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 i=w()(G.linkDataAttr),o=document.querySelectorAll("*["+i+"]");for(n=0;e=o[n];n++)e.removeAttribute(i)}},Q={photoCache:{},getAlbumId:function(e){if(!/(?|&|#)act=edit/i.test(e)){var t=[];t.push(e);var n=b()(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 i=null,o=null;return t.some((function(e){if(o=e.match(/(?:/|#|=|^)(albums?|tag|photos|feed(?:d+)?_|wall)(-?d+)(?:_(d+))?/i))return o[3]?i=/^(feed|wall)/.test(o[1])?o[1]+o[2]+"_"+o[3]:"album"+o[2]+"_"+o[3]:("albums"==o[1]&&(o[1]="photos"),i=o[1]+o[2]),!0})),i}},getModuleName:function(e){var t=W.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 T()(e,".replies "+e.tagName)||T()(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,i){var o,r=n.playlist.getInfoPopupTemplate();W.a.create(r.textContainer,{append:[W.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}),o=W.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]});var a=n.popupDiv(r.body,"sf_progress_popup",void 0,void 0,i),s=function e(n){e.state!==n&&(e.state=n,r.buttonContainer.style.display="none",o.style.display="none",u.a.sendMessage({action:"getWarningIcon",type:t,color:"#77D1FA"},(function(e){r.icon.style.backgroundImage="url("+e+")"})),"progress"===n&&(o.style.display="block"),"error"===n&&(u.a.sendMessage({action:"getWarningIcon",type:t,color:"#AAAAAA"},(function(e){r.icon.style.backgroundImage="url("+e+")"})),o.style.display="block"))};return{onPrepare:function(e){s("progress"),o.textContent=e},onProgress:function(e,t){o.textContent=u.a.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+u.a.i18n.getMessage("vkFoundOf")+" "+t},onReady:function(){H.a.trigger(a,"kill")},onError:function(e){s("error"),o.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,i=n.photoCache,o="";/albums|tags|photos/.test(location.href)&&(o=B());var r={},a=[],s=0,l=0,c=0,u=0;return function d(){return function(o){if(t.abort)return P.a.reject(new Error("Abort"));var a={act:"show",al:1,list:e};return o&&(a.offset=o),U()({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),o=t[6],a=t[8];s||(s=a.length),l=o,c||(c=Math.ceil(o/s));var u=[],d="";return a.forEach((function(e){if(!r[e.id]){r[e.id]=1;var t=n.getMaxPhotoSize(e);t&&(!d&&e.album&&(d=Y.a.decodeSpecialChars(x()(e.album.replace(/<[^>]+>/g,"")))),t.id=e.id,i[e.id]=t,u.push(t))}})),new P.a((function(e){setTimeout(e,250)})).then((function(){return{title:d,list:u}}))}))}(u*s).then((function(e){if(c--,u++,a.push.apply(a,e.list),t.onProgress&&t.onProgress(a.length,l),o||(o=e.title),c>0)return d()}))}().then((function(){if(O()(i).slice(1e3).forEach((function(e){delete i[e]})),!a.length)throw new Error("Album is empty");return o||(o=B()),{title:o,list:a}}),(function(e){throw"Abort"!==e.message&&de.debug("Get photo page error!",e),e}))},_getPhotoLinks:function(e,t,n){var i=this;return i._getModuleName().then((function(o){return function(o){if(n.abort)return P.a.reject(new Error("Abort"));var r={act:"show",al:1,list:t,module:o,photo:e};return U()({type:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},url:"/al_photos.php",data:r,localXHR:!0,timeout:6e4}).then((function(t){var n=R(t.body)[8],o=null;if(n.some((function(t){if(t.id===e)return o=i.getMaxPhotoSize(t),!0})),!o)throw new Error("Photo is is not found!");return new P.a((function(e){setTimeout(e,250)})).then((function(){return o}))}))}(o)})).catch((function(e){throw"Abort"!==e.message&&de.debug("Get photo error!",e),e}))},_getModuleName:function(){return new P.a((function(e,t){var n=W.a.create("script",{text:'(function(dataArg){if(window.cur&&window.cur.module&&typeof window.cur.module==="string"){document.body.dataset[dataArg]=window.cur.module}})('+A()("sfModule")+");"});document.body.appendChild(n),setTimeout((function(){n.parentNode.removeChild(n),e(document.body.dataset.sfModule)}),0)}))},_getAlbumLinksViaDom:function(e,t){var n=this,i=n.photoCache;if(t.abort)return P.a.reject(new Error("Abort"));var o=/showPhotos*(s*["']([-d_]+)["']s*,s*["']([w-]+)["']/i,r=/{["']?temp["']?s*:s*({.+?})/i,a=/({|,)s*(w+)s*:/gi,s={},l=[],c=function(e){if(!Q.isReply(e)&&!q.elIsHidden(e)){var t=e.getAttribute("onclick"),i=o.exec(t);if(i){var c=i[1];if(!s[c]){s[c]=1;var u=i[2],d=null,p=r.exec(t);if(p){p=p[1].replace(a,'$1"$2":');var f=null;try{f=JSON.parse(p)}catch(e){}d=f&&n.getMaxPhotoSize(f)}d||(d={}),d.id=c,d.listId=u,l.push(d)}}}};if([].slice.call(e.querySelectorAll("a[onclick]")).forEach(c),0===l.length&&e!==document){var u=n.getWallPostContent();u&&[].slice.call(u.querySelectorAll("a[onclick]")).forEach(c)}return function(e){var o=P.a.resolve(),r=[],a=e.filter((function(e){var t=i[e.id];return!t||(r.push(t),!1)}));return t.onProgress&&t.onProgress(r.length,e.length),a.forEach((function(a){o=o.then((function(){return n._getPhotoLinks(a.id,a.listId,t).then((function(n){i[a.id]=n,r.push(n),t.onProgress&&t.onProgress(r.length,e.length)}),(function(n){if("Abort"===n.message)throw n;a.url&&(r.push(a),t.onProgress&&t.onProgress(r.length,e.length),de.debug("Photo link from dom",n))}))}))})),o=o.then((function(){if(O()(i).slice(1e3).forEach((function(e){delete i[e]})),!r.length)throw new Error("Photos is not found");return{list:r}}))}(l)},_getLinks:function(e,t){var i=this,o=P.a.resolve(),r={},a=i.getPopup(B(),"photo",(function(){r.abort=!0}));r.onProgress=function(e,t){a.onProgress(e,t)},a.onPrepare(u.a.i18n.getMessage("download")+" ...");var l=function(){if((e=e||document)===document){var t=i.getLayer();t&&(e=t)}return i._getAlbumLinksViaDom(e,r)};return(o=t?o.then((function(){return i._getAlbumLinks(t,r)})).catch((function(e){throw"Album is empty"!==e.message&&"Abort"!==e.message&&de.debug("findAlbumLinks error",e),e})).catch((function(){return l()})):o.then(l)).then((function(e){var t=e.title,o=function(e){var t=[];e.forEach((function(e){var n=e.url,o=i.getFilenameFromUrl(n);o||(o="unknown.jpg"),t.push({filename:o,url:n})}));var n=String(t.length).length;return t.forEach((function(e,t){for(var i=String(t+1);i.length<n;)i="0"+i;e.filename=i+"-"+e.filename})),t}(e.list);a.onReady(),t||(t=B()),s?n.downloadList.showBeforeDownloadPopup(o,{count:o.length,folderName:t,type:"photo",onShowList:function(){i.showListOfLinks(t,o,!0)}}):i.showListOfLinks(t,o,!0)}),(function(e){"Abort"!==e.message&&de.debug("_getLinks error",e),a.onError(u.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"),i=e.querySelector(".page_block_header_extra"),o=n||i;if(o&&!o.querySelector(".sf-dl-ablum-btn")){var r=W.a.create("a",{text:u.a.i18n.getMessage("vkDownloadPhotoAlbum"),href:"#",class:"sf-dl-ablum-btn",on:["click",function(n){n.preventDefault();var i=Q.getAlbumId(location.href);t._getLinks(e,i)}]}),a=W.a.create("span",{append:r});n?(a.classList.add("photos_album_info"),a=W.a.create(document.createDocumentFragment(),{append:[W.a.create("span",{class:"divide sf-dl-ablum-btn-divide",text:"|"}),a]})):i&&(a.classList.add("photos_comments_link"),a.style.margin="0 15px"),o.appendChild(a)}},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,i=document.querySelectorAll(".sf-dl-current-photo-btn"),o=0;t=i[o];o++)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=W.a.create("style",{text:_()({"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,i=null,o=null;return["w","z","y","x"].some((function(t){return!!(i=e[t+"_"])||!!(o=e[t+"_src"])||void 0})),i||(i=[o]),i[0]?{url:(t=e.base,n=i[0],n.match(/.[a-z]{3}$/i)||(n+=".jpg"),n.match(/https?:///i)?n:(t||"").replace(//[a-z0-9_:.]*$/i,"")+"/"+n),width:i[2]&&i[1],height:i[1]&&i[2]}:null},getNewCurrentPhotoLink:function(e,t){var n=this;return e?ce()([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 i=n.getMaxPhotoSize(e);return i?t(null,i):t("URL is not found!")})):t("ID is empty!")},addNewDlCurrentPhotoBtn:function(e){var t=e;if(!this.rmCurrentPhotoBtn(t)){var i=this,o=e.closest(".pv_photo_wrap");if(o){var r=W.a.create("a",{class:["sf-dl-current-photo-btn","sf-style-black"],href:"#",title:u.a.i18n.getMessage("download"),on:[["click",function(e){if(e.stopPropagation(),e.preventDefault(),H.a.onRemoveEvent(this,L.hideMenu),!L.contextMenu||!L.contextMenu.isShow){var r=L.contextMenu=n.popupMenu.quickInsert(this,u.a.i18n.getMessage("download")+" ...","photoDlMenu",{parent:t}),a=o.querySelector(".like_wrap").classList,s=null;return a.forEach((function(e){var t=e.match(/photo(-?d+_d+)/);s=t&&t[1]})),i.getNewCurrentPhotoLink(s,(function(e,t){if(e)return r.update(u.a.i18n.getMessage("noLinksFound"));var n=Y.a.modify(i.getFilenameFromUrl(t.url)),o=n.lastIndexOf("."),a=n.substr(o+1),s=n.substr(0,o),l=[];l.push({href:t.url,title:s,quality:u.a.i18n.getMessage("download"),format:" ",ext:a,forceDownload:!0,isOther:!0,isBlank:!0,func:function(){r.hide()}}),l.push({href:"#getAlbum",title:"",quality:u.a.i18n.getMessage("vkDownloadPhotoAlbum"),format:" ",ext:"",noSize:!0,isOther:!0,func:function(e){e.preventDefault(),Q.downloadPhoto(),r.hide()}}),r.update(l)}))}L.hideMenu()}],["mousedown",function(e){e.stopPropagation()}]]});new ne.a({queries:[{css:"#pv_photo img",is:"added",callback:function(){L.contextMenu&&L.contextMenu.isShow&&(L.hideMenu(),r.click())}}]}),t.appendChild(r)}}},downloadPhoto:function(){var e=this.getContainer(),t=this.getAlbumId(location.href);if(!t){var n=document.querySelector(".pv_album_name a");n&&!q.elIsHidden(n)&&(t=this.getAlbumId(n.href))}this._getLinks(e,t)},showListOfPhotosContent:function(e,t){var n;return"<!DOCTYPE html><html>"+W.a.create("html",{append:[W.a.create("head",{append:[W.a.create("meta",{attr:{charset:"utf-8"}}),W.a.create("style",{text:"a,img{display:block;margin-bottom:5px;}p{width: 640px}"})]}),W.a.create("body",{append:[e,W.a.create("p",{text:u.a.i18n.getMessage("vkListOfPhotosInstruction")}),W.a.create("br"),W.a.create("br"),(n=document.createDocumentFragment(),t.forEach((function(e){var t=e.url,i=e.filename||"",o=W.a.create("img",{src:t,alt:"photo"});i&&(o=W.a.create("a",{href:t,download:i,append:o})),n.appendChild(o)})),n)]})]}).innerHTML+"</html>"},showListOfLinks:function(e,t,i){var o;o=i?W.a.create(document.createDocumentFragment(),{append:[W.a.create("p",{append:[W.a.create("a",{text:u.a.i18n.getMessage("vkListOfPhotos"),href:"#",class:"sf__hidden",style:{fontWeight:"bolder",border:"none",textDecoration:"underline"},on:["click",function(n){n.preventDefault();var i=Q.showListOfPhotosContent(e,t),o="";u.a.isChrome||u.a.isTM?(o=N()(i,"text/html",!0),u.a.sendMessage({action:"openTab",url:o})):(o=N()(i,"text/html"),window.open(o,"_blank"))}]})]})]}):"";for(var r,a,s="",l=0;r=t[l];l++)s+=r.url+"rn";var c=W.a.create(document.createDocumentFragment(),{append:[W.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"5px"}}),W.a.create("p",{append:K()(u.a.i18n.getMessage("vkListOfLinksInstruction"))}),o,a=W.a.create("textarea",{text:s,cols:60,rows:10,style:{width:"100%"}}),u.a.isChrome||u.a.isFirefox?W.a.create("button",{text:u.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,u.a.isFirefox?(a.select(),document.execCommand("copy")):u.a.sendMessage({action:"addToClipboard",text:s}),setTimeout((function(){t.disabled=!1}),1e3)}],append:W.a.create("style",{text:_()({"#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(ne.a.isAvailable()){if(e.observer)return e.observer.start();e.observer=new ne.a({queries:[{css:"div.audio_item",is:"added",callback:function(t){for(var n,i=0;n=t.added[i];i++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",e.insertAudioBtn(n))}},{css:"div.vv_body",is:"added",callback:function(t){for(var n,i=0;n=t.added[i];i++)n.parentNode.classList.contains("video_view")&&(n.dataset.sfSkip>0||(n.dataset.sfSkip="1",e.insertVideoBtn(n)))}},{css:"."+H.a.onRemoveClassName,is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)H.a.onRemoveListener(t)}}]}),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=W.a.create("style",{class:"sf-style",text:_()([{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))},onAudioBtnClick:function(e){e.stopPropagation(),n.downloadOnClick(e)},getAudioDlBtnNode:function(e,t){return W.a.create("a",{class:["savefrom_vk_download","sf-audio"],href:t,download:Y.a.modify(e),target:"_blank",on:["click",this.onAudioBtnClick],title:u.a.i18n.getMessage("download")})},insertAudioBtn:function(e){var t=this,i=null,r=e.querySelector(".ai_label");if(r){var s=r.textContent.trim(),l=r.querySelector(".ai_title"),c=r.querySelector(".ai_artist"),u=l&&l.textContent.trim(),d=c&&c.textContent.trim();i=u&&d?"".concat(d.trim()," – ").concat(u.trim()):s}i="".concat(i||"unknown",".mp3");var p=e.querySelector("input");p=p&&p.value;var f=e.querySelector(".ai_dur");if(f){var m=f.parentNode,h=function(e){var n=t.getAudioDlBtnNode(i,e),o=m.querySelector(".savefrom_vk_download");if(o)o.parentNode.replaceChild(n,o);else{var r=f.nextElementSibling;if(!r)return;m.insertBefore(n,r)}return n},g=function(){var e=a()(o.a.mark((function e(t){var n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||-1===t.indexOf("unavailable")){e.next=5;break}return e.next=3,ce()("function(){return vk.id}");case 3:return n=e.sent,e.abrupt("return",se.decodeUnavailableUrl(n,t));case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();if(p)g(p).then((function(e){return h(e)}));else{if(!p){var v=h("#"),b=v.getAttribute("download");return v.removeAttribute("download"),void v.addEventListener("click",function(){var e=a()(o.a.mark((function e(t){var i,r,a,s,l,c,u,d,p,f,m;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),t.stopPropagation(),i=t.target.closest("[data-id]"),r=i.dataset.id,a=i.dataset.audio.split(","),!(s=JSON.parse(a[2]))){e.next=12;break}return e.next=9,g(s);case 9:return s=e.sent,n.download(b,s),e.abrupt("return");case 12:return l=q.getTrackActionHash(a).replace("\",""),c=q.getTrackUrlHash(a).replace("\",""),u={act:"reload_audio",ids:"".concat(r,"_").concat(l,"_").concat(c)},e.next=17,U()({type:"POST",url:"/audio",json:!0,data:u});case 17:if(d=e.sent,p=d.body,!(f=p.data&&p.data.length?p.data[0][0]:[])||!f.length){e.next=25;break}return e.next=23,g(f[2]);case 23:m=e.sent,n.download(b,m);case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}q.unmaskUrlViaPlayer([[null,null,p]]).then((function(e){p=e[0][2],se.isUrlM3u8(p)&&(p=se.m3u8ToMp3(p)),h(p)}))}}},onVideoBtnClick:function(e,t){t.preventDefault(),t.stopPropagation(),Z.hideMenu();var i=Z.mobileMenu=n.mobileLightBox.show(u.a.i18n.getMessage("download")+" ..."),o=u.a.i18n.getMessage("noLinksFound");if(e.request){var r=function(t){if(t&&"getPladformVideo"===e.request.action)o=V.prepareLinks(V.preparePladformLinks(t));else{var r=n.embedDownloader.reMapHosting(t.action);r&&t&&t.links&&(o=n.popupMenu.prepareLinks[r](t.links,t.title))}i.update(o)};try{u.a.sendMessage(e.request,r)}catch(t){r()}}else o=V.prepareLinks(e),i.update(o)},appendVideoBtn:function(e,t){var n=t.querySelector(".mv_actions"),i=W.a.create("li",{class:["savefrom_vk_download","sf-video-ctr"],append:W.a.create("a",{class:["savefrom_vk_download","mva_item"],text:u.a.i18n.getMessage("download"),on:["click",this.onVideoBtnClick.bind(this,e)]})});n&&n.appendChild(i),H.a.onRemoveEvent(i,Z.hideMenu)},insertVideoBtn:function(e){var t=this,n=e.querySelectorAll("iframe, video, a")[0],i=g()(e,"video_view"),o=function(){var e=/video(-?d+)_(-?d+)/.exec(location.href);return e&&{request:{hosting:"vk",action:"getVKLinks",extVideoId:"video"+e[1]+"_"+e[2]}}};n?V.getLinksFromPlayer(i,n,(function(e,n){e||(e=o()),e&&t.appendVideoBtn(e,n)})):e.querySelector(".vv_not_support")&&o()&&t.appendVideoBtn(o(),i)}}}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={10:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([58,0]),n()}({39:function(e,t){e.exports=n(357)},49:function(e,t){e.exports=n(358)},58:function(e,t,n){n.r(t);var o=n(3),r=n.n(o),a=n(0),s=n(13),l=n(8),c=n(17),u=n.n(c),d=n(19),p=n.n(d),f=n(10),m=n.n(f),h=n(25),g=n.n(h),v=n(7),b=n.n(v),y=n(15),x=n.n(y),k=n(9),w=n.n(k),S=n(24),L=n.n(S),_=n(2),E=n.n(_),T=n(1),F=n.n(T),D=n(11),B=n.n(D),N=n(5),R=n.n(N),j=n(18),q=n.n(j),H=n(39),V=n.n(H),W=n(14),G=n.n(W),K=n(6),Q=n.n(K),Y=n(49),J=n.n(Y),Z=n(23),$=n.n(Z),X=n(27),ee=q()("odnoklassniki_ru");G.a.isSingle()&&Object(l.b)("odnoklassniki",(function(e,t){var o=Object(s.a)(t),l=t.preferences,c=l.moduleOdnoklassniki?1:0,d=a.a.isChrome||a.a.isFirefox||a.a.isGM&&a.a.isTM;a.a.onMessage.addListener((function(t,n,i){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return i({state:c,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return f.changeState(t.state)}"updatePreferences"!==t.action?c&&("updateLinks"===t.action&&h(),"downloadMP3Files"===t.action&&(d?y.downloadMP3Files():y.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&y.showListOfAudioFiles(!0)):r()(l,t.preferences)})),c&&setTimeout((function(){f.run()}));var f={linkCache:{},contextMenu:null,videoToken:null,run:function(){if(c=1,y.getJsSessionId(),S.injectStyle(),_.injectStyle(),Q.a.isAvailable())return f.mutationMode.enable()},changeState:function(e){c=e,k.rmBtn(),y.disable(),_.rmCurrentPhotoBtn(),S.disable(),S.rmBtn(),f.hideMenu(),f.mutationMode.stop(),f.clearCache(),e&&f.run()},hideMenu:function(){f.contextMenu&&(f.contextMenu.hide(),f.contextMenu=null)},clearCache:function(){var e=f.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=m()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))},wrapOnPhotoOver:function(){c&&_.addCurrentDlBtn(this)},wrapVideoFeedOnImgOver:function(){c&&S.onImgOver.call(this)},wrapAudioOnMouseOver:function(){c&&y.onMouseOver.apply(this,arguments)},wrapAudioOnMouseOut:function(){c&&y.onMouseOut.apply(this,arguments)},wrapNewAudioOnMouseEnter:function(){if(c)try{y.onNewMouseEnter.apply(this,arguments)}catch(e){ee.error("wrapNewAudioOnMouseEnter error",e)}},enable:function(){if(this.observer)return this.observer.start();var e=this,t=function(t){for(var n,i=0;n=t.added[i];i++)n.sfSkip>0||(n.sfSkip="1",E.a.on(n,"mouseenter",e.wrapAudioOnMouseOver),E.a.on(n,"mouseleave",e.wrapAudioOnMouseOut))},n=function(t){for(var n,i=0;n=t.added[i];i++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",E.a.one(n,"mouseenter",e.wrapVideoFeedOnImgOver))};this.observer=new Q.a({queries:[{css:".track.js-track",is:"added",callback:t},{css:".mus-tr_i",is:"added",callback:t},{css:"#photo-layer_photo",is:"added",callback:function(t){if(!a.a.isSafari)for(var n,i=0;n=t.added[i];i++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",E.a.one(n,"mouseenter",e.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 i=w()(t,".vp_video");if(!i)return;var o=k.getPlayerOptions(t);o&&k.appendLinkUnderVideo(i.parentNode,o)}}},{css:".vid-card_cnt .vid-card_cnt_w img",is:"added",callback:function(t){for(var n,i=0;n=t.added[i];i++)if(!(n.dataset.sfSkip>0)){if(n.dataset.sfSkip="1",(n=u()(n,"vid-card_cnt")).dataset.sfSkip)return;E.a.one(n,"mouseenter",e.wrapVideoFeedOnImgOver)}}},{css:".d_comment_text_w img",is:"added",callback:n},{css:".video-card .video-card_img-w img",is:"added",callback:n},{css:".vid-card_cnt img",is:"added",callback:n},{css:".".concat(E.a.onRemoveClassName),is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)E.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",S.onBtnClick)}},{css:["wm-track","wm-track2"],is:"added",callback:function(t){for(var n,i=0;n=t.added[i];i++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",E.a.one(n,"mouseenter",e.wrapNewAudioOnMouseEnter))}}]})}}},h=function(){f.clearCache(),v(),y.getJsSessionId(),k.catchPopup()},v=function(){for(var e=document.querySelectorAll(".savefrom_ok_download"),t=e.length-1;t>=0;t--)e[t].parentNode.removeChild(e[t])},y={downloadIdPrefix:"savefrom_ok_audio_download_",infoIdPrefix:"savefrom_ok_audio_info_",lastRow:null,lastRowCandidate:null,timer:0,jsessionId:"",clientHashV:"",scriptNode:null,cache:{payloadTracks:{}},ajaxTimer:{},trackIdPromise:{},showRowElements:function(e,t,n){if(e){var i=e.querySelectorAll("div.savefrom_ok_download");t&&!i.length&&y.showRowLinks(e),i=e.querySelectorAll("div.savefrom_ok_download");for(var o=0;o<i.length;o++)i[o].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 i=/(?:playMediatopic|playFeedTrack)(['"]?(d+)['"]?/.exec(n.getAttribute("onclick"));return i&&i[1]}return e.dataset.trackId?e.dataset.trackId:null},getTrackId:function(e){var t=y.getNodeTrackId(e);if(t)return(i={})[t]=e,i;var n=e.id;if(n){var i,r=n.indexOf("#");if(-1!==r&&(n=n.substr(r+1)),(t=o.getMatchFirst(n,/^w+_(d+)$/i))||-1!==n.indexOf("GROUP_FEED")&&(t=n.substr(n.lastIndexOf("_")+1)),t)return(i={})[t]=e,i}return null},showRowLinks:function(e){var t=y.getTrackId(e);for(var n in t)if(y.handleRow(n,t[n]))return!0;return!1},disable:function(){y.lastRowCandidate=null,y.lastRow=null;for(var e,t=document.querySelectorAll(".savefrom_ok_download"),n=0;e=t[n];n++)e.parentNode.removeChild(e)},getJsSessionId:function(){return B()(function(){return new P.a((function(e,t){window.require(["OK/music/sid"],(function(n){n.get().then((function(e){return[null,e]}),(function(e){return[e.message]})).then((function(n){var i=n[0],o=n[1];i&&t(new Error("Get sid error")),e(o)}))}))}))}.toString()).catch((function(e){return new P.a((function(e,t){var n=location.protocol+"//"+location.host+"/web-api/music/conf";L()({type:"POST",url:n,data:"_",json:!0,localXHR:!0},(function(n,i,o){!n&&o&&o.sid?e(o.sid):t(new Error("Get jsSessionId error!"))}))}))})).then((function(e){y.jsessionId=e}),(function(e){ee.debug("getJsSessionId error",e)}))},getLink:function(e){e&&y.jsessionId&&(y.ajaxTimer[e]=window.setTimeout((function(){delete y.ajaxTimer[e],y.deleteLink(e)}),3e4),a.a.sendMessage({action:"getOdnoklassnikiAudioLinks",url:location.href,trackId:e,jsessionId:y.jsessionId},(function(e){y.setLink(e.trackId,e.data)})))},onMouseOver:function(){if(y.jsessionId){var e=this;e&&(y.lastRowCandidate=e,clearTimeout(y.timer),y.lastRow!==e&&(y.timer=window.setTimeout((function(){y.showRowElements(y.lastRow,!1),y.lastRow=e,y.lastRowCandidate=null,y.showRowElements(y.lastRow,!0)}),250)))}},onMouseOut:function(){var e=this;(y.lastRow&&y.lastRow.contains(e)||y.lastRowCandidate&&y.lastRowCandidate.contains(e))&&(clearTimeout(y.timer),y.timer=window.setTimeout((function(){y.showRowElements(y.lastRow,!1),y.lastRow=null,y.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 y.getNodeTrack(n).then((function(e){"WM-TRACK2"===t.tagName?y.insertButtonOnOver(t,e):y.insertButton(t,e)}))}},insertButtonOnOver:function(e,t){var n=this,i=new($()())((function(i){if(!c)return o();for(var r=null,a=null,s=0;r=i.shift();)if("childList"===r.type&&r.target===e)for(s=0,r.addedNodes;a=r.addedNodes[s];s++)if("SLOT"===a.tagName&&"controls"===a.name){e.querySelector(".savefrom_ok_download")||(n.insertButton(e,t),o());break}})),o=function(){i.disconnect()};i.observe(e,{childList:!0})},insertButton:function(e,t){var n=["sf-audio","savefrom_ok_download"],i=null;if("WM-TRACK"===e.tagName?i=e.querySelector(".wm-track_controls"):"WM-TRACK2"===e.tagName&&(n.push("sf-audio-2"),i=e.querySelector('slot[name="controls"]')),i){var o=F.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",y.handlePreload],["click",y.handleClickNewButton],["mouseenter",function(){T.tooltip.textContent=y.getNewButtonTooltipLabel(this),T.show(this)}],["mouseleave",function(){T.hide()}],["sf-state-change",function(){T.tooltip.textContent=y.getNewButtonTooltipLabel(this),T.updatePos(this)}]]});i.appendChild(o)}else ee.warn("Container is not found")},getNewButtonTooltipLabel:function(e){switch(e.dataset.state){case"pending":return"...";case"done":var t=JSON.parse(e.dataset.data),n=t.duration,i=t.size,r="";if(i){var s=o.sizeHuman(i,2);r=n?"".concat(s," ~ ").concat(Math.floor(i/n/125)+" "+a.a.i18n.getMessage("kbps")):"".concat(s)}else r=a.a.i18n.getMessage("getFileSizeFailTitle");return r;case"error":return a.a.i18n.getMessage("noLinksFound");default:return""}},handlePreload:function(e){var t=this,n=e.target.closest("wm-track")||e.target.closest("wm-track2"),i=V()(n);y.getNodeTrack(i).then((function(n){t.dispatchEvent(new CustomEvent("sf-state-change"));var i=t.dataset.trackId=n.id;return y.getTrackUrlById(i).then((function(e){if(!e.track)throw new Error("Track is not found");if(!e.play)throw new Error("Track url is not found");return y.getClientHash(e.play).then((function(t){return{result:e,clientHash:t}}))})).then((function(n){var i=n.result,o=n.clientHash,r=i.track,a="".concat(r.ensemble," – ").concat(r.name),s=i.play+"&"+X.stringify({clientHash:o}),l=r.duration,c=r.size||-1;t.href=s,t.download="".concat(R.a.modify(a),".mp3"),t.dataset.data=A()({duration:l,size:c}),t.dataset.state="done",t.dispatchEvent(new CustomEvent("sf-state-change")),t.dataset.downloadOnReady>0&&y.handleClickNewButton.call(t,e)}),(function(e){ee.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")):o.downloadOnClick(e)},getTrackUrlById:function(e){var t,n=this;if(this.trackIdPromise[e])return this.trackIdPromise[e];if(y.cache.payloadTracks[e])return y.cache.payloadTracks[e];var o="https://wmf.ok.ru/play;jsessionid=".concat(y.jsessionId,"?")+X.stringify({tid:e});return this.trackIdPromise[e]=(t=B()([o],"function(url){return fetch(url).then(function(response){return response.json()})}").then((function(t){var n=O()(y.cache.payloadTracks);return n.length>20&&delete y.cache.payloadTracks[n[0]],y.cache.payloadTracks[e]=t,t}))).then.apply(t,Object(i.a)(J()((function(){delete n.trackIdPromise[e]}))))},getNodeTrack:function(e){return B()([e],'function(nodePath){try{var track=document.querySelector(nodePath).model._data.get("track");return{result:track}}catch(err){return{error:{message:err.message,stack:err.stack}}}}').then((function(e){if(e.error)throw new Error(e.error);return e.result}))},getNodePath:function(e){for(var t=[];e.parentNode&&1===e.parentNode.nodeType;){var n="",i=[].slice.call(e.parentNode.childNodes);i.length>1&&(n=":nth-child(".concat(i.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 i=t.querySelector(".m_c_duration, .m_portal_duration"),r=document.createElement("div");r.className="savefrom_ok_download";var s=40,l=document.getElementById("mmpcw");l&&l.contains(t)&&(s=65),o.setStyle(r,{color:"#fff",background:"#46aa19",border:"1px solid #337d12",borderRadius:"3px",padding:"1px 5px",position:"absolute",right:s+"px",top:"50%",lineHeight:"15px",fontSize:"12px",opacity:0,zIndex:9999,cursor:"pointer"}),r.addEventListener("click",y.onBoxClick,!1),r.addEventListener("mousedown",(function(e){e.stopPropagation()}),!1);var c=y.getTitle(e,t),u=function(e,t,n){null==n&&(n=!0);var i=document.createElement("a");return i.href="#",i.className="savefrom_ok_download",i.textContent="...",n&&i.setAttribute("target","_blank"),i}();u.id=y.downloadIdPrefix+e,u.title=a.a.i18n.getMessage("downloadTitle"),i&&u.setAttribute("data-savefrom-helper-duration",y.secondsFromDurationNode(i)),c&&(c+=".mp3",u.setAttribute("download",R.a.modify(c))),o.setStyle(u,{color:"#fff",fontWeight:"normal"}),u.addEventListener("click",y.onDownloadLinkClick,!1),r.appendChild(u),n.appendChild(r),y.cache[e]?y.setLinkFromCache(e,u):y.getLink(e),r.style.marginTop="-"+r.offsetHeight/2+"px",r.style.opacity="1";var d=document.createElement("span");return d.textContent=String.fromCharCode(215),d.title=a.a.i18n.getMessage("close"),o.setStyle(d,{color:"#fff",fontFamily:"Tahoma,Helvetica,sans-serif",fontSize:"15px",marginLeft:"7px",opacity:".7",cursor:"pointer"}),d.addEventListener("click",y.onCloseBtnClick,!1),r.appendChild(d),!0},onBoxClick:function(e){e.preventDefault(),e.stopPropagation();var t=this.querySelector("a.savefrom_ok_download");return t?(E.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):(o.downloadOnClick(e),!1))},onCloseBtnClick:function(e){if(2==e.button)return!0;e.preventDefault(),e.stopPropagation();var t=w()(this,".savefrom_ok_download");return t&&(t.style.display="none"),!1},deleteLink:function(e,t){if(!t&&e&&(t=document.getElementById(y.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=[],i=0;i<e.length;i++)n.push(I()("0x0"+e.charAt(i)));var o=[];(e=(e=n).slice(0))[32]=e[31];var r=0;for(i=32;i-- >0;)r+=e[i];for(var a=0;a<32;a++)o[a]=Math.abs(r-e[a+1]*e[a]*t[a]);return o.join("")},setLinkFromCache:function(e,t){if(!y.cache[e])return!1;if(t||(t=document.getElementById(y.downloadIdPrefix+e)),t){t.href=y.cache[e].url,t.textContent="",y.cache[e].downloadAttr&&t.setAttribute("download",y.cache[e].downloadAttr);var n=F.a.create(o.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",opacity:"0.9"}});t.appendChild(n);var i=document.createTextNode(y.cache[e].info);return t.nextSibling?t.parentNode.insertBefore(i,t.nextSibling):t.parentNode.appendChild(i),!0}},getClientHash:function(e){var t=function(){return(y.clientHashV?P.a.resolve(y.clientHashV):B()((function(){var e=null;try{e=[null,window.require.s.contexts._.config.config["OK/music/garbage"].v]}catch(t){e=[t.message]}if(!e)throw new Error("getClientHash timeout");var t=e[0],n=e[1];if(t)throw new Error("getClientHash error");return n})).then((function(e){return y.clientHashV=e}))).then((function(t){var i=n(59);return function(e,t,n){var i,o,r,a=t(/md5=(w*)/g.exec(e)[1]+"secret"),s=a.length,l=0,c="";for(i=0;i<s;i+=1)l+=I()(a[i],16);for(i=0;i<s;i+=1)o=I()(a[i],16),r=i===s-1?o:I()(a[i+1],16),c+=Math.abs(l-o*r*n[i]);return c}(e,(function(e){return i(e).toString()}),t)}))};return(y.getClientHash.getViaApiError?P.a.reject(y.getClientHash.getViaApiError):B()([e],'function(url){return new Promise(function(resolve){window.require(["OK/music/garbage"],function(m){try{resolve([null,/clientHash=([^&]+)/.exec(m.calc(url))[1]])}catch(err){resolve([err.message])}})})}').then((function(e){if(e){var t=e[0],n=e[1];if(t)throw new Error("getClientHash error");return n}throw new Error("getClientHash timeout")}))).catch((function(e){return ee.warn("getClientHash via api error",e),t()}))},setLink:function(e,t,n){if(e){clearTimeout(y.ajaxTimer[e]);var i=document.getElementById(y.downloadIdPrefix+e);if(i&&!y.setLinkFromCache(e,i)){if(!t||!t.play)return y.deleteLink(e,i),void(i.textContent="?");if(void 0===n)return this.getClientHash(t.play).then((function(n){y.setLink(e,t,n)}),(function(t){y.deleteLink(e,i)}));var r=t.track&&t.track.size||-1;y.cache[e]={},y.cache[e].url=t.play+(n?"&clientHash="+n:"");var s=" ("+o.sizeHuman(r,2),l=i.getAttribute("data-savefrom-helper-duration");if(t.track&&(t.track.duration&&(l=t.track.duration),t.track.ensemble&&t.track.name)){var c=t.track.ensemble+" - "+t.track.name;y.cache[e].title=c,y.cache[e].downloadAttr=R.a.modify(c+".mp3")}if(r&&r>0&&l){if(l=I()(l),isNaN(l))return void delete y.cache[e];s+=" ~ "+Math.floor(r/l/125)+" "+a.a.i18n.getMessage("kbps")}s+=")",y.cache[e].info=s,y.setLinkFromCache(e,i)}}},getTitle:function(e,t){if(!e||!t)return"";var n="",i=t.querySelector(".m_c_artist, .mus-tr_artist, .m_portal_c_artist"),o=t.querySelector(".m_track_source, .mus-tr_song, .m_portla_track_name");return i&&(i=i.textContent)&&(n+=i.trim()),o&&(o=o.textContent)&&(n&&(n+=" - "),n+=o.trim()),n?n.replace(/<as+[^>]+>/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*I()(n[1])+60*I()(n[2])+I()(n[3])):0},getPlaylistName:function(e){if(e!==document){var t=e.querySelector(".mus_h2_tx");if(t)return R.a.modify(t.textContent)||void 0}},getNewPlaylistName:function(e){if(e!==document){var t=e.querySelector(".wm-list-description_header");if(t)return R.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"]'))&&!y.elIsHidden(e))return e},getNewLayer:function(){var e=document.querySelector("#music_layer wm-collection-section");if(e||(e=document.querySelector("#music_layer")),!e||!y.elIsHidden(e))return e},getPopup:function(e,t,n){var i,r=o.playlist.getInfoPopupTemplate();F.a.create(r.textContainer,{append:[e?F.a.create("p",{text:e,style:{color:"#0D0D0D",fontSize:"20px",marginBottom:"11px",marginTop:"13px"}}):void 0,i=F.a.create("p",{text:"",style:{color:"#868686",fontSize:"14px",lineHeight:"24px"}})]});var s=o.popupDiv(r.body,"sf_progress_popup",void 0,void 0,n),l=function e(n){e.state!==n&&(e.state=n,r.buttonContainer.style.display="none",i.style.display="none",a.a.sendMessage({action:"getWarningIcon",type:t,color:"#77D1FA"},(function(e){r.icon.style.backgroundImage="url("+e+")"})),"progress"===n&&(i.style.display="block"),"error"===n&&(a.a.sendMessage({action:"getWarningIcon",type:t,color:"#AAAAAA"},(function(e){r.icon.style.backgroundImage="url("+e+")"})),i.style.display="block"))};return{onPrepare:function(e){l("progress"),i.textContent=e},onProgress:function(e,t){i.textContent=a.a.i18n.getMessage("vkFoundFiles").replace("%d",e)+" "+a.a.i18n.getMessage("vkFoundOf")+" "+t},onReady:function(){E.a.trigger(s,"kill")},onError:function(e){l("error"),i.textContent=e}}},getAudioLinksViaAPI:function(e,t,n){var i=!1,o=[],r=e.length;return function s(){if(!i){var l=e.splice(0,10);if(0===l.length)return n(o);a.a.sendMessage({action:"getOkAudioListLinks",trackIdArr:l,jsessionId:y.jsessionId},(function(n){var i=P.a.resolve();M()(n)&&n.forEach((function(e){i=i.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"),y.getClientHash(n).then((function(i){n+="&clientHash="+i,o.push({url:n,duration:e.track.duration||0,title:t,filename:R.a.modify(t)+".mp3"})}))}})).catch((function(t){ee.debug("process item error",e,t)}))})),i.then((function(){t(r-e.length,r),s()}))}))}}(),{abort:function(){i=!0}}},getAudioListLinksPopup:function(e,t,n){var i,o=this.getPopup(t,"audio",(function(){i&&i.abort()}));o.onPrepare(a.a.i18n.getMessage("download")+" ..."),i=this.getAudioLinksViaAPI(e,o.onProgress,(function(e){0!==e.length?(o.onReady(),n(e)):o.onError(a.a.i18n.getMessage("vkMp3LinksNotFound"))}))},getAudioLinksIds:function(e){return P.a.resolve().then((function(){for(var t,n=e.querySelectorAll([".m_portal_track",".m_c_tr",".mus-tr_i"]),i=[],o=0;t=n[o];o++){var r=y.getTrackId(t);for(var a in r)i.push(a)}return i}))},getNewAudioLinksIds:function(e){var t=V()(e);if(!t||document.querySelector(t)===e)return B()([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 track=node.model._data.get("track");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}}')},getAudioLinks:function(e,t,n){var o=this;return P.a.all([this.getAudioLinksIds(e),this.getNewAudioLinksIds(e)]).then((function(e){var t;return(t=[]).concat.apply(t,Object(i.a)(e)).filter((function(e,t,n){return n.indexOf(e)===t}))})).then((function(e){o.getAudioListLinksPopup(e,t,n)}))},downloadMP3Files:function(){var e=y.getLayer()||y.getNewLayer()||document,t=y.getPlaylistName(e)||y.getNewPlaylistName(e);y.getAudioLinks(e,t,(function(e){o.downloadList.showBeforeDownloadPopup(e,{type:"audio",folderName:t})}))},showListOfAudioFiles:function(e){var t=y.getLayer()||y.getNewLayer()||document,n=y.getPlaylistName(t)||y.getNewPlaylistName(t);y.getAudioLinks(t,n,(function(t){t.length?e?o.playlist.popupPlaylist(t,n,!0):o.playlist.popupFilelist(t):alert(a.a.i18n.getMessage("vkMp3LinksNotFound"))}))}},k={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 i=function(e){return new P.a((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()}))};B()((function(){var e=document.cookie&&document.cookie.match(/vdsig=([^;]+);/);if(e&&e[1])return e[1]})).then((function(o){if(o)return e.vtkn=o,t(e);var r=function(n){var i=n.ttl,o=n.vtkn;i&&o&&(f.videoToken={ttl:C()()+1e3*i,vtkn:o},e.vtkn=o,t(e))};a.a.isChrome||a.a.isFirefox?B()([n],i).then(r):i(n).then(r)}))},getMobileToken:function(e,t){if(e.vtkn)return t(e);var n=f.videoToken;return n&&n.expire>C()()?(e.vtkn=n.vtkn,t(e)):k.requestMobileToken(e,t)},wrapMobileLinks:function(e,t){k.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(a.a.i18n.getMessage("noLinksFound"))};if(!e||!e.links)return n();if(!l.showUmmyItem&&"getRutubeLinks"===e.action)return n();if("getOkViaMobile"===e.action)return k.wrapMobileLinks(e,(function(e){if(!e)return n();k.prepareResponse(e,t)}));var i=null;"getYoutubeLinks"===e.action?i="youtube":"getVimeoLinks"===e.action?i="vimeo":"getDailymotionLinks"===e.action?i="dailymotion":"getRutubeLinks"===e.action&&(i="rutube");var r;return r=i?o.popupMenu.prepareLinks[i](e.links,e.title):S.prepareLinks(e.links,e.title),t(r)},matchOpenGraph:function(e){if(e&&e.movie&&e.movie.contentId){var t=e.movie.contentId;if(-1!==t.indexOf("rutube.")&&l.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 i=o.embedDownloader.checkUrl(t);if(i)return i;var r=e.movie.poster;if("string"==typeof r){var a=(p()(r).url||r).match(/ytimg.com/vi/([^/]+)//);if(a=a&&a[1])return{action:"getYoutubeLinks",extVideoId:a}}}},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"LIVE_TV_ODKL":case"UPLOADED_ODKL":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,i){var o={cmd:"videoPlayerMetadata",mid:e,rnd:C()()};i&&(o.mtId=t),L()({method:"POST",url:location.protocol+"//"+location.host+"/dk?"+X.stringify(o),json:!0,localXHR:!0},(function(o,r,a){return o?!i&&t?void k.getPlayerMetadata(e,t,n,1):n():n(a)}))},getEmbed:function(e,t){var n=p()(e);if(!n.id||!n.sig)return t();var i="http://cdn-ok.com/video/get/?"+X.stringify({id:n.id,format:1,sig:n.sig,sig2:"oldRotator"});a.a.sendMessage({action:"getData",url:i},(function(e){return e&&g()(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();a.a.sendMessage(e.request,(function(e){k.prepareResponse(e,t)}))}));if(!n&&e.movie&&e.movie.movieId){var i=e.movie.link&&p()(e.movie.link,{sep:"&amp;"})["st.vpl.sid"];return this.getPlayerMetadata(e.movie.movieId,i,(function(n){k.readMetadata(n||e,t,1)}))}var o=this.switchMetadataProvider(e);return o?o.links?t(o.links):void(o.request?"getRutubeLinks"===o.request.action?k.prepareResponse(o.request,t):"wrapMobileLinks"===o.request.action?k.wrapMobileLinks(o.request,(function(e){k.prepareResponse(e,(function(e){t(e,1)}))})):a.a.sendMessage(o.request,(function(e){k.prepareResponse(e,t)})):t()):t()},loadLinks:function(e,t){var n=f.linkCache,i=A()(e),o=n[i];if(o)return t.update(o);var r=function(e,o){var r=function(){t.update(a.a.i18n.getMessage("noLinksFound"))};if(!e)return r();k.readMetadata(e,(function(e,o){if(!e)return r();M()(e)&&!e.length&&(o=1),o||(n[i]=e),t.update(e)}),o)};e.metadata?r(e.metadata):e.request?"getOkMetadata"===e.request.action?a.a.sendMessage(e.request,r):"getPlayerMetadata"===e.request.action?this.getPlayerMetadata(e.request.extVideoId,e.request.sid,(function(e){r(e,1)})):"getRutubeLinks"===e.request.action?k.prepareResponse(e.request,(function(e){t.update(e)})):a.a.sendMessage(e.request,(function(e){k.prepareResponse(e,(function(e){t.update(e)}))})):t.update(a.a.i18n.getMessage("noLinksFound"))},appendLinkUnderVideo:function(e,t){var n=e.querySelector(".vp-layer-info_cnt");if(n){var i=n.querySelector(".savefrom_ok_download"),r=F.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:[F.a.create("a",{href:"#",text:a.a.i18n.getMessage("download"),on:["click",function(n){if(n.preventDefault(),E.a.onRemoveEvent(r,f.hideMenu),f.contextMenu&&f.contextMenu.isShow){if(f.contextMenu.button===this)return void f.hideMenu();f.hideMenu()}var i=f.contextMenu=o.popupMenu.quickInsert(this,a.a.i18n.getMessage("download")+"...","sf-single-video-menu",{parent:e});k.loadLinks(t,i)}]})]});i&&i.parentNode?(i.parentNode.replaceChild(r,i),i=null):n.appendChild(r)}},getPlayerOptions:function(e){var t=w()(e,"[data-player-element-id][data-options]"),n=t&&t.dataset.options;if(n){try{n=JSON.parse(n)}catch(e){}var i=n.flashvars;if(i){if(i.metadata){var r=null;try{r=JSON.parse(i.metadata)}catch(e){}if(r)return{metadata:r}}if(i.metadataUrl)return{request:{action:"getOkMetadata",url:decodeURIComponent(i.metadataUrl)}};var a=n.url;if(a){var s=o.embedDownloader.checkUrl(a);if(s)return{request:s};if(-1!==a.indexOf("rutube."))return{request:{action:"getRutubeLinks",links:[a]}}}}}},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=w()(e,".vp_video");if(t){var n=k.getPlayerOptions(e);n&&k.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 i,o=r()({abort:function(){clearInterval(o.timeout),o.isAborted=!0}},{delay:500,repeat:12,isAborted:!1,timeout:null},n);return(i=e())?(t(i),o):(function n(){o.repeat--,o.timeout=setTimeout((function(){if(!o.isAborted)return(i=e())?t(i):void(!o.isAborted&&o.repeat&&n())}),o.delay)}(),o)}},S={btnClassName:"sf-feed-dl-btn",style:void 0,thumbClassName:"vid-card_img",prepareLinks:function(e,t){if(!e||!e.length)return a.a.i18n.getMessage("noLinksFound");if("string"==typeof e)return e;t=t||"";for(var n,i,r,s,l=[],c=0,u=e.length;c<u;c++){var d=e[c];if("object"==typeof d&&d.url){s=d.url;var p=d.ext;p||(p="MP4",-1!==d.url.indexOf(".mp4")&&(p="MP4"),-1!==s.indexOf(".flv")&&(p="FLV"),-1!==d.url.indexOf(".mov")&&(p="MOV"),-1!==d.url.indexOf(".mpg")&&(p="MPG")),r=(p=p.toLowerCase()).toUpperCase(),i=d.subname||d.quality||d.name||p}else{p="MP4",-1!==(s=d).indexOf(".mp4")&&(p="MP4"),-1!==s.indexOf(".flv")&&(p="FLV"),-1!==s.indexOf(".mov")&&(p="MOV"),-1!==s.indexOf(".mpg")&&(p="MPG"),r=(p=p.toLowerCase()).toUpperCase(),i=p;var f=o.getMatchFirst(e[c],/.(d+).mp4/i);f&&(i=f)}var m=["mobile","lowest","low","sd","hd","full","quad","ultra"].indexOf(i);-1!==m&&(i=[144,240,360,480,720,1080,1440,"4K"][m]),n={href:s,title:d.title?d.title:t,ext:p,format:r,quality:i,forceDownload:!0},l.push(n)}return l},getPosterData:function(e){var t=w()(e,"[hrefattrs]"),n=t&&t.getAttribute("hrefattrs");if(n){var i=p()(n,{params:!0}),r=i["st.vpl.sid"],a=i["st.vpl.id"];if(!a){var s=w()(e,"[data-id]");if((a=s&&s.dataset.id)&&"c"===a[0])return}if(a&&"OK_"===a.substr(0,3)&&(a=o.getMatchFirst(a,/OK_d+_(d+)/)),a)return{request:{sid:r,action:"getPlayerMetadata",extVideoId:a}}}},onBtnClick:function(e){e.preventDefault(),e.stopPropagation();var t=JSON.parse(this.dataset.sfContext);if(E.a.onRemoveEvent(this,f.hideMenu),f.contextMenu&&f.contextMenu.isShow){if(f.contextMenu.button===this)return void f.hideMenu();f.hideMenu()}var n=document.querySelector("#mtLayer.__active #mtLayerMain > div");n||(n=document.getElementById("vv_content")),n||x()(this,".js-messages-list "+this.tagName)&&(n=u()(this,"js-messages-list"))&&!n.offsetParent&&(n=null),!n&&x()(this,"#mainContent "+this.tagName)&&(n=w()(this,"#mainContent"));var i=f.contextMenu=o.popupMenu.quickInsert(this,a.a.i18n.getMessage("download")+" ...","sf-popupMenu",{parent:n||void 0});k.loadLinks(t,i)},onImgOver:function(e){var t=x()(this,".mdialog_chat_window .d_comment_text_w "+this.tagName),n=null;if(t?n=u()(this,"d_comment_text_w"):x()(this,".video-card > .video-card_img-w "+this.tagName)?n=u()(this,"video-card_img-w"):this.classList.contains("vid-card_cnt")?n=this:x()(this,".vid-card_cnt "+this.tagName)&&(n=u()(this,"vid-card_cnt")),n&&!n.getElementsByClassName(S.btnClassName).length&&!n.querySelector(".vid-card_live.__active")){var i=x()(this,".vid-card_img__link "+this.tagName),s=k.getPlayerOptions(this);if(s||(s=S.getPosterData(this)),s){s.isChat=t;var l={};t&&r()(l,{left:"15px",top:"15px"}),i&&r()(l,{backgroundColor:"#454648",borderColor:"rgb(53, 53, 53)"});var c=F.a.create("i",{class:[S.btnClassName,"sf-video-feed-bind-on-insert"],style:l,data:{sfContext:A()(s)},title:a.a.i18n.getMessage("download")});c.appendChild(F.a.create(o.svg.getSvg("download"),{style:{width:"12px",height:"12px",margin:"4px"}})),n.appendChild(c)}}},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=F.a.create("style",{text:b()({"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("+o.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"}})}),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 i=m()("sfSkip2"),o=document.querySelectorAll("["+i+"]");for(n=0;e=o[n];n++)e.removeAttribute(i)}},_={style:null,rmCurrentPhotoBtn:function(e){for(var t,n=void 0,i=document.querySelectorAll(".sf-dl-current-photo-btn"),o=0;t=i[o];o++)e&&e.contains(t)?n=t:t.parentNode.removeChild(t);return n},addDlCurrentPhotoBtn:function(e){if(!this.rmCurrentPhotoBtn(e)){var t=f;e.appendChild(F.a.create("a",{class:"sf-dl-current-photo-btn",href:"#",title:a.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 i=function e(t){18!==t.keyCode&&17!==t.keyCode&&(r.hide(),document.removeEventListener("keydown",e))},r=t.contextMenu=o.popupMenu.quickInsert(this,a.a.i18n.getMessage("download")+" ...","photoDlMenu",{parent:e,onShow:function(){document.addEventListener("keydown",i)},onHide:function(){document.removeEventListener("keydown",i)}}),s=[],l=e.querySelector("img.photo-layer_img");if(l){var c=l.dataset.fsSrc||l.dataset.nfsSrc||l.src;c&&s.push({href:c,title:"photo_"+I()(C()()/1e3),quality:a.a.i18n.getMessage("download"),format:" ",ext:"jpg",forceDownload:!0,isBlank:!0,func:function(){r.hide()}})}if(l||(l=e.querySelector("div.gif[data-gifsrc]")),l){var u={webmsrc:"webm",mp4src:"mp4",gifsrc:"gif"};O()(u).forEach((function(e){var t=l.dataset[e];if(t){var n=u[e];s.push({href:t,title:"gif_"+I()(C()()/1e3),quality:a.a.i18n.getMessage("download"),format:n.toUpperCase(),ext:n,forceDownload:!0,isBlank:!0,func:function(){r.hide()}})}}))}0!==s.length?r.update(s):r.update(a.a.i18n.getMessage("noLinksFound"))}],append:[F.a.create(o.svg.getSvg("download"),{style:{width:"12px",height:"12px",margin:"4px"}})]}))}},injectStyle:function(){_.style?_.style.parentNode||document.head.appendChild(_.style):(_.style=F.a.create("style",{text:b()({"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(_.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)}}},T=new(function(){function e(){Object(z.a)(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t,this.tooltip=null,this.init()}return Object(U.a)(e,[{key:"init",value:function(){var e=this;this.tooltip=F.a.create("div",{class:"sf-tooltip",style:r()({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=o.getPosition(e),n=o.getSize(this.tooltip);this.tooltip.style.top=t.top+this.options.top-n.height+"px";var i=t.left+I()(this.options.width/2,10)-I()(n.width/2,10),r=document.body.clientWidth+document.body.scrollLeft;r<i+n.width&&(i=r-n.width),this.tooltip.style.left=i+"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"}})}))},59:function(e,t){e.exports=n(359)}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={9:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([60,0]),n()}({60:function(e,t,n){n.r(t);var i=n(3),o=n.n(i),r=n(0),a=n(13),s=n(8),l=n(17),c=n.n(l),u=n(19),d=n.n(u),p=n(10),f=n.n(p),m=n(7),h=n.n(m),g=n(24),v=n.n(g),b=n(2),y=n.n(b),x=n(1),k=n.n(x),w=n(5),S=n.n(w),C=n(14),L=n.n(C),_=n(6),M=n.n(_),E=n(11),O=n.n(E);L.a.isSingle()&&Object(s.b)("mailru",(function(e,t){var n=Object(a.a)(t),i=t.preferences,s=i.moduleMailru?1:0,l=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:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return u.changeState(t.state)}"updatePreferences"!==t.action?s&&("downloadMP3Files"===t.action&&(l?g.downloadMP3Files():g.showListOfAudioFiles(!1)),"downloadPlaylist"===t.action&&g.showListOfAudioFiles(!0)):o()(i,t.preferences)})),s&&setTimeout((function(){u.run()}));var u={contextMenu:null,run:function(){s=1,g.injectStyle(),M.a.isAvailable()&&this.mutationMode.enable()},changeState:function(e){s=e,g.rmBtn(),b.rmBtn(),this.mutationMode.stop(),this.hideMenu(),e&&this.run()},hideMenu:function(){u.contextMenu&&(u.contextMenu.hide(),u.contextMenu=null)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=f()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))},wrapAudioOnMouseOver:function(){if(s&&!(this.dataset.sfSkip>0)){this.dataset.sfSkip="1";var e=JSON.parse(this.dataset.sfContext);g.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 i=b.getVideoId(t);if(i){var o=c()(t,"b-video__left");if(o){var r=o.querySelector(".b-video__info-time");r&&b.insertBtnInPopup(i,r)}}}},t=function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var i=b.getVideoId(t);if(i){var o=c()(t,"sp-video__item-page");if(o){var r=o.querySelector(".sp-video__item-page__info__additional");r&&b.insertBtnInPage(i,r,1)}}}},n=function(e){for(var t,n=0;t=e.added[n];n++)if(!(t.dataset.sfSkip>0)){t.dataset.sfSkip="1";var i=c()(t,"sp-video__item-page-new__video-content"),o=i&&i.querySelector(".sp-video__item-page-new__actions"),r=i&&b.getVideoContentVideoId(i);o&&r&&b.insertBtnInPage(r,o,2)}};this.observer=new M.a({queries:[{css:".jp__track",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfContext=A()({type:0}),y.a.one(t,"mouseenter",u.mutationMode.wrapAudioOnMouseOver)}},{css:".song-item",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfContext=A()({type:1}),y.a.one(t,"mouseenter",u.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:n},{css:".sp-video__item-page-new .sp-video__item-page-new__video-content object",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)}}]})}}},p={tooltip:void 0,updatePos:function(e,t){var i=n.getPosition(e),o=n.getSize(this.tooltip);this.tooltip.style.top=i.top+t.top-o.height+"px";var r=i.left+I()(t.width/2)-I()(o.width/2),a=document.body.clientWidth+document.body.scrollLeft;a<r+o.width&&(r=a-o.width),this.tooltip.style.left=r+"px"},show:function(e,t){var n=this;return void 0!==this.tooltip?this.hide():(this.tooltip=k.a.create("div",{class:"sf-tooltip",style:o()({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"}},m=function(){var e=document.title,t=e.indexOf("-");return-1!==t&&(e=e.substr(0,t-1)),S.a.modify(e)},g={className:"sf-audio-panel",lastRow:null,style:void 0,secondsFromDuration:function(e){var t=e.split(":").map((function(e){return I()(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 i=t;t=n,n=i}if(null!==n?(n=n.textContent.trim())||(n="noname"):n="",n?n+=" - ":n="",null!==t){var o=n+(t=t.textContent);return o.replace(/[rnts]+/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"),i=e.querySelector(".author")||e.querySelector(".b-music__songs__row__body__inner__title__author");return n&&((n=n.textContent).length||(n="noname")),i&&(i=i.textContent),(n&&i?i+" - "+n:t?t.textContent:"unknown").replace(/[rnts]+/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 i,o=[],r={},a=function(e){s=s.then((function(){return new P.a((function(n){g.getUrl(e,t,n)}))})).then((function(n){if(n&&!r[n]){r[n]=1;var i="",a="";if(0===t?(i=e.querySelector(".jp__track-duration-total"),a=g.getTitle(e)):(i=e.querySelector(".time"),a=g.getTitle2(e)),a){var s=S.a.modify(a)+".mp3",l=i&&g.secondsFromDuration(i.textContent);o.push({url:n,filename:s,title:a,duration:l})}}})).catch((function(e){}))},s=P.a.resolve(),l=0;i=n[l];l++)a(i);s.then((function(){e(o)}))},showListOfAudioFiles:function(e){g.getMp3UrlList((function(t){0!==t.length&&(e?n.playlist.popupPlaylist(t,m(),!0):n.playlist.popupFilelist(t))}))},downloadMP3Files:function(){g.getMp3UrlList((function(e){0!==e.length&&n.downloadList.showBeforeDownloadPopup(e,{type:"audio",folderName:m()})}))},onDlBtnOver:function(e){if(!r.a.isSafari){var t=this.dataset.duration;if("mouseenter"===e.type){var i,o=this,a=p.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(k.a.create("img",{src:"//my9.imgsmail.ru/r/my/preloader_circle_16.gif",height:16,width:16})),void r.a.sendMessage({action:"getFileSize",url:o.href,requestOptions:{type:"GET"}},(function(e){if(a.style.padding="2px 5px 3px",!e.fileSize)return a.textContent=r.a.i18n.getMessage("getFileSizeFailTitle"),void p.updatePos(o,i);var s=n.sizeHuman(e.fileSize,2);if(t){var l=Math.floor(e.fileSize/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+")";p.updatePos(o,i)})))}p.hide()}},getUrlViaBridge:function(e,t){void 0===g.getUrlViaBridge.index&&(g.getUrlViaBridge.index=0);var n="sf-bridge-item-"+g.getUrlViaBridge.index;g.getUrlViaBridge.index++,e.classList.add(n);var i={className:n};O()([i],(function(e){var t=e.className,n=document.getElementsByClassName(t)[0];n.classList.remove(t);var i=jQuery(n).data();if(i&&i.item)return i.item.url})).then((function(e){return t(e)}))},getUrlById:function(e){return O()([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 i=e.dataset.url;if(i)return n(i);if(0===t){var o=e.querySelector("a.jp__track-fullname-link");if(null===o)return n();o=o.href;var r=d()(o);return r.file&&r.uid?n("https://music.my.mail.ru/file/"+r.file+".mp3?u="+encodeURIComponent(r.uid)):g.getUrlViaBridge(e,(function(t){t&&(e.dataset.url=t),n(t)}))}if(1===t){var a=e.dataset.file;return g.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 k.a.create("a",{data:{duration:t||""},href:e,style:{position:"relative",display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"},download:S.a.modify(n+".mp3"),on:[["mouseenter",g.onDlBtnOver],["mouseleave",g.onDlBtnOver],["click",this.onDlBtnClick]]})},addDownloadPanelNew:function(e,t){if(t){var n=g.getTitle2(e);if(n){var i=e.querySelector(".time"),o=i&&g.secondsFromDuration(i.textContent),r=this.getDlLink(t,o,n),a=k.a.create("div",{class:[g.className,"type-2"],append:[r]}),s=e.querySelector(".icons");if(s)s.appendChild(a);else{var l=e.querySelector(".b-music__songs__row__body__inner__controls");l&&(r.classList.add(this.className+"-btn"),k.a.create(a,{class:[this.className,"type-3"],style:{background:"none",verticalAlign:"top"},append:[r]}),l.appendChild(a))}}}},addDownloadPanel:function(e,t){var n=e.querySelector(".jp__track-duration-total");if(null!==n&&void 0!==t){var i=g.getTitle(e);if(i){n=g.secondsFromDuration(n.textContent);var o=k.a.create("div",{class:[g.className,"type-0"],append:[this.getDlLink(t,n,i)]}),r=e.querySelector(".jp__track-management");r&&(r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o))}}},onTrackOver:function(e,t){0===e.getElementsByClassName(g.className).length&&g.getUrl(e,t,(function(n){1===t?g.addDownloadPanelNew(e,n):g.addDownloadPanel(e,n)}))},injectStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=k.a.create("style",{text:h()([{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(){g.style&&(g.style.parentNode.removeChild(g.style),g.style=void 0);for(var e,t=document.querySelectorAll("."+g.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)}},b={btnIndex:0,domCache:{},className:"sf-video-btn",prepareLinks:function(e){for(var t,n=[],i=0;t=e[i];i++){var o=t.url,r="FLV";-1!==o.indexOf(".mp4")&&(r="MP4"),-1!==o.indexOf(".mov")&&(r="MOV"),-1!==o.indexOf(".mpg")&&(r="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=r.toLowerCase(),c={href:o,title:t.title,ext:l,format:r,quality:a,forceDownload:!0};n.push(c)}if(0!==n.length)return n},showLinkList:function(e,t,i){if(e||(e=r.a.i18n.getMessage("noLinksFound")),i){if(!u.contextMenu)return;u.contextMenu.update(e)}else u.contextMenu&&u.contextMenu.isShow?u.hideMenu():u.contextMenu=n.popupMenu.quickInsert(t,e,"video-links-popup",{parent:c()(t,"b-video__main")})},appendPageBtn:function(e,t,i){if(null===e.querySelector("."+b.className)){var o=null,a=k.a.create("span",{class:b.className,append:[o=k.a.create("a",{data:{index:t},href:"#",on:["click",function(e){e.preventDefault(),y.a.onRemoveEvent(this,u.hideMenu),b.readDomCache(this.dataset.index,this)}]})]});if(1===i?(o.style.marginLeft="15px",o.textContent=r.a.i18n.getMessage("download")):2===i&&(k.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("."+b.className)){var n=void 0,i={};e.childNodes.length>1?n=e.childNodes[1]:(n=e.lastChild,i.marginRight="5px");var o=k.a.create("span",{class:e.lastChild.getAttribute("class")+" "+b.className,append:[k.a.create("a",{data:{index:t},text:r.a.i18n.getMessage("download"),href:"#",on:["click",function(e){e.preventDefault(),y.a.onRemoveEvent(this,u.hideMenu),b.readDomCache(this.dataset.index,this)}],style:i})]});e.insertBefore(o,n),n=null}},readDomCache:function(e,t){b.showLinkList(r.a.i18n.getMessage("download"),t);var o=function(){b.showLinkList(void 0,t,1)},a=function(e){if("getRutubeLinks"===e.action){if(!i.showUmmyItem)return o();b.showLinkList(n.popupMenu.prepareLinks.rutube(e.links),t,1)}else"getMailruLinks"===e.action?b.showLinkList(n.popupMenu.prepareLinks.mailru(e.links,e.title),t,1):b.showLinkList(b.prepareLinks(e.links),t,1)},s=b.domCache[I()(e)];if(s.links)a(s);else if(s.metadataUrl){var l=s.metadataUrl;/^///.test(l)&&(l="http:"+l),v()({url:l,withCredentials:!0,json:!0,localXHR:!0},(function(e,t){var n;(n=e?null:t.body)&&"object"==typeof n?b.readMeta(n,(function(e){e.links?(s.links=e.links,s.action=e.action,a(s)):o()})):o()}))}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)):o()})):o()},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 i=e.links;if(!i)return t();i.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,i=d()(n,{params:!0});return i.metadataUrl?{metadataUrl:i.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 i=this.matchUrl(location.pathname);return i?{metadataUrl:"http://api.video.mail.ru/videos/"+i[1]+"/"+i[2]+"/"+i[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),b.domCache[b.btnIndex]={metadataUrl:e.metadataUrl}):b.domCache[b.btnIndex]=o()({},e),b.appendPageBtn(t,b.btnIndex,n),b.btnIndex++},insertBtnInPopup:function(e,t){e.metadataUrl&&(e.metadataUrl=decodeURIComponent(e.metadataUrl),b.domCache[b.btnIndex]={metadataUrl:e.metadataUrl}),b.appendBtn(t,b.btnIndex),b.btnIndex++},rmBtn:function(){for(var e,t=document.querySelectorAll("."+b.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)}}}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={6:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([61,0]),n()}({61:function(e,t,n){n.r(t);var i=n(3),o=n.n(i),r=n(0),a=n(13),s=n(8),l=n(17),c=n.n(l),u=n(19),d=n.n(u),p=n(10),f=n.n(p),m=n(7),h=n.n(m),g=n(15),v=n.n(g),b=n(9),y=n.n(b),x=n(2),k=n.n(x),w=n(1),S=n.n(w),C=n(11),L=n.n(C),I=n(5),_=n.n(I),E=n(18),T=n.n(E),F=n(14),D=n.n(F),B=n(6),N=n.n(B),R=n(27),j=T()("facebook_com");D.a.isSingle()&&Object(s.b)("facebook",(function(e,t){var n=Object(a.a)(t),i=t.preferences,s=i.moduleFacebook?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 l.changeState(t.state)}"updatePreferences"!==t.action?s&&"updateLinks"===t.action&&(l.changeState(0),l.changeState(1)):o()(i,t.preferences)})),s&&setTimeout((function(){l.run()}));var l={contextMenu:null,className:"savefrom_fb_download",isMutation:!1,run:function(){if(s=1,g.addStyle(),m.injectStyle(),N.a.isAvailable())return this.isMutation=!0,this.initEmbedDownloader(),void this.mutationMode.enable()},changeState:function(e){l.hideMenu(),s=e,u.disable(),m.rmCurrentPhotoBtn(),m.rmDataAttrs(),g.rmBtn(),p.rmBtn(),l.mutationMode.stop(),e&&l.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),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)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(){s&&g.onLinkHover.apply(this)},wrapPhotoOnHover:function(e){s&&m.addCurrentDlBtn(this)},wrapExternalMediaMouseEnter:function(){s&&(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):(k.a.off(this,"mouseenter",l.mutationMode.wrapExternalMediaMouseEnter),k.a.off(this,"mouseleave",l.mutationMode.wrapExternalMediaMouseLeave)))},wrapExternalMediaMouseLeave:function(){if(s){var e=this;e.dataset[u.linkDataAttr]&&(clearTimeout(u.timer),u.timer=setTimeout((function(){u.removeBtn(e)}),1500))}},wrapExternalMedia:function(e){k.a.on(e,"mouseenter",l.mutationMode.wrapExternalMediaMouseEnter),k.a.on(e,"mouseleave",l.mutationMode.wrapExternalMediaMouseLeave)},enable:function(){var e=this;if(this.observer)return this.observer.start();this.observer=new N.a({queries:[{css:["embed","video"],is:"added",callback:function(t){for(var n,i=0;n=t.added[i];i++){var o=!1;v()(n,"#fbxPhotoContentContainer .videoStage ".concat(n.tagName))&&(o=!0),o?e.wrapVideoGetLinks(n):k.a.one(n,"mouseenter",e.wrapVideoFeedOnLinkHover)}}},{css:[".fbPhotoSnowliftContainer .stageWrapper .stage img.spotlight",".fbPhotoSnowliftContainer .stageWrapper .stage .videoStage video"],is:"added",callback:function(t){for(var i,o=0;i=t.added[o];o++)if(l.hideMenu(),!(i.dataset.sfSkip>0)){i.dataset.sfSkip="1";var r=n.getParentByClass(i,"stageWrapper");k.a.one(r,"mouseenter",e.wrapPhotoOnHover)}}},{css:"a",is:"added",callback:function(t){for(var n,i=0;n=t.added[i];i++)n.sfSkip>0||(n.sfSkip="1",e.wrapExternalMedia(n))}},{css:".".concat(k.a.onRemoveClassName),is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)k.a.onRemoveListener(t)}}]})}},hideMenu:function(){l.contextMenu&&(l.contextMenu.hide(),l.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("."+l.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,i=this.re.length;n<i;n++){var o=e.match(this.re[n]);if(o&&o.length>0)return o[0]}},handle:function(e){var t=e.querySelector("img");if(t){var i=t.parentNode;if(t.src&&"relative"==n.getStyle(i,"position")){var o=e.getAttribute("ajaxify");if(o&&o.search(//flash/expand_inline/i)>-1){var r=this.getThumbnailUrl(t.src);if(r)return this.createButton(r,i,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,i,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 i=0;i<this.thumbnail[t].re.length;i++){var o=n.getMatchFirst(e,this.thumbnail[t].re[i]);if(o)return this.thumbnail[t].url.replace(/{vid}/gi,o)}return""},createButton:function(e,t,i,o,a){if(!(e=this.checkUrl(e)))return!1;var s=document.createElement("a");s.className=l.className,s.href="http://savefrom.net/?url="+encodeURIComponent(e),s.setAttribute(n.embedDownloader.dataAttr,e),s.title=r.a.i18n.getMessage("download"),n.setStyle(s,{marginLeft:"7px",verticalAlign:"middle"}),o&&n.setStyle(s,o);var c=document.createElement("img");return c.className="icon",c.src=n.svg.getSrc("download","#a2db16"),n.setStyle(c,{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle",cursor:"pointer"}),a&&n.setStyle(c,a),s.appendChild(c),i.dataset[this.linkDataAttr]=1,t.appendChild(s),!0}},p={getLinksFromEmbed:function(e,t){if(!e)return t(null);var n=e.getAttribute("flashvars");if(null===n)return t(null);var i=d()(n).params;if(!i)return t(null);var o=null;try{o=JSON.parse(i).video_data}catch(e){}if(!o)return t(null);o.progressive&&(o=o.progressive);var r={},a={sd_src:"SD",hd_src:"HD"};M()(o)||(o=[o]);for(var s,l=0;s=o[l];l++)["sd_src","hd_src"].forEach((function(e){s[e]&&(r[s[e]]=a[e])}));return t({links:r})},requestLocalVideoLinks:function(e){return new P.a((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 i=null,o=null;!n||n[0]?i=new Error("Get token timeout"):o=n[1],i?t(i):e(o)}})})).then((function(t){var n="https://www.facebook.com/video/tahoe/async/".concat(e,"/?").concat(R.stringify({payloadtype:"primary"})),i=R.stringify({__a:1,fb_dtsg:t});return L()([n,i],'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 P.a((function(n,i){r.a.sendMessage({action:"getFacebookLinksFromData",extVideoId:e,data:t},(function(e){e&&e.links?n(e):i(new Error("Get links from data error"))}))}))})).catch((function(e){throw j.error("get local links error",e),e}))},requestBgVideoLinks:function(e){return new P.a((function(t,n){r.a.sendMessage({action:"getFacebookLinks",extVideoId:e},(function(e){e&&e.links?t(e):n(new Error("Get links error"))}))})).catch((function(e){throw j.error("get links error",e),e}))},requestVideoLinksById:function(e){return P.a.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 i,o={},r={},a=null;if(!a){var s=y()(e,"div[data-ft]");if(s&&v()(s,".userContentWrapper[data-ft] "+s.tagName)&&(s=y()(s,".userContentWrapper[data-ft]")),s&&(de()(s.querySelectorAll("a[href]")).some((function(e){var t=//videos/(d+)/.exec(e.href);if(t)return a=t[1],o.popup_1=!0,!0})),!a)){var l=null;try{l=JSON.parse(s.dataset.ft)}catch(e){}if(l){var u=l.mf_story_key,d=l.story_attachment_style;u&&"video_inline"===d&&(a=u,o.popup_1=!0)}}}if(!a&&y()(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 m=y()(e,".uiStreamStory[data-story-id]"),h=/:(d+)$/.exec(m&&m.dataset.storyId);(h=h&&h[1])&&(a=h)}if(!a&&(i=c()(e,"fbUserContent"))){var g=i.querySelector("a[data-video-id]");g&&(w=g&&g.dataset.videoId)&&(a=w)}if(!a&&(i=y()(e,".userContentWrapper"))){var b=i.querySelector('div[id^="feed_subtitle_"] a[data-video-channel-id]');if(b){var x=//videos/(d+)/.exec(b.href);(w=x&&x[1])&&(a=w)}else{var k=i.querySelectorAll('a.profileLink, a[rel="theater"], #fbPhotoSnowliftTimestamp > a[href]'),w=null;[].slice.call(k).some((function(e){var t=//videos/(d+)/.exec(e.href);return w=t&&t[1]})),w&&(a=w)}}if(!a){var A=!1,S=!1,C=document.getElementById("stream_pagelet"),L=C&&C.previousElementSibling;if(L&&L.contains(e)&&(A=!0),!A){var I=document.querySelector(".uiStreamStory"),_=I&&I.parentNode;(_=_&&_.parentNode)&&_.contains(e)&&(S=!0)}(A||S)&&(w=p.getVideoIdFromUrl())&&(a=w)}if(!a&&y()(e,"#pagelet_group_permalink")&&(x=/video_id:"?([^,"]+)/.exec(document.body.innerHTML),(w=x&&x[1])&&(a=w)),a&&(r.id=a),e.src&&/^https?:/.test(e.src)){var M=n.getFileExtension(e.src,"mp4");r[e.src]=M.toUpperCase()}var E=e.querySelectorAll("source");if(E&&E.length>0)for(var T=0;T<E.length;T++)M=n.getFileExtension(E[T].src,"mp4"),r[E[T].src]=M.toUpperCase();return O()(r).length?(o.links=r,t(o)):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},getFileName:function(e){var t=n.getFileName(e);if(t)return t;var i=n.dateToObj();return"facebook_"+i.year+"-"+i.month+"-"+i.day+"_"+i.hour+"-"+i.min+"."+n.getFileExtension(e,"mp4")},prepareLinks:function(e,t){var n=[];for(var i in e){var o=this.getFileName(i),a=o.lastIndexOf("."),s=o.substr(a+1),l={href:i,title:o=t||o.substr(0,a),format:s.toUpperCase(),quality:e[i],forceDownload:!0};n.push(l)}return 0===n.length&&(n=r.a.i18n.getMessage("noLinksFound")),n},appendLinks:function(e){if(e){var t=document.getElementById("fbPhotoPageMediaInfo");if(null!==t){var i=document.querySelector("h2.uiHeaderTitle");if(i&&(i=i.textContent),t&&!t.querySelector("."+l.className)){var o=document.createElement("div");o.className=l.className;var a=S.a.create("div",{title:r.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 s=null;a.addEventListener("click",(function(){if(l.contextMenu&&l.contextMenu.isShow)l.hideMenu();else{var t=l.contextMenu=n.popupMenu.quickInsert(this,r.a.i18n.getMessage("download")+" ...",l.className+"_popup");if(s)t.update(s);else if(e.id){var o=e.id;delete e.id,p.requestVideoLinks(o,(function(i,o){s=i?n.popupMenu.prepareLinks.facebook(i,o):p.prepareLinks(e),t.update(s)}))}else s=p.prepareLinks(e,i),t.update(s)}})),t.appendChild(o),t=null,o=null,a=null}}}},rmBtn:function(){for(var e,t=document.querySelectorAll("."+l.className),n=0;e=t[n];n++)e.parentNode.removeChild(e)}},m={style:null,getFilenameFromUrl:function(e){return n.getMatchFirst(e,//([^/]+.[a-z0-9]{3,4})(?:?|$)/i)},getPhotoIdFromUrl:function(){var e=null,t=d()(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,i=document.querySelectorAll(".sf-dl-current-photo-btn"),o=0;t=i[o];o++)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=S.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 i=y()(n,".fbPhotoSnowliftPopup");if(i){var o=i.querySelector('div[id^="feed_subtitle_"] a[data-video-channel-id]');if(o){var r=//videos/(d+)/.exec(o.href);r&&(t=r[1])}}}return t},getLinksFromPhotoCtr:function(e){return v()(e,".stageWrapper.showVideo")?P.a.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)})):P.a.resolve().then((function(){var e=m.getPhotoIdFromUrl();if(e)return new P.a((function(t,n){r.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)),i=/(.+).([^.]+)$/.exec(n),o="jpg",a=n;return i&&(o=i[1],a=i[2]),{href:t,title:a,quality:r.a.i18n.getMessage("download"),format:" ",ext:o,isBlank:!0}}))}))},addDlCurrentPhotoBtn:function(e){if(!this.rmCurrentPhotoBtn(e)){var t=S.a.create("a",{class:"sf-dl-current-photo-btn",href:"#",title:r.a.i18n.getMessage("download"),append:[n.svg.getSvg("download","#FFF",16)],on:["click",function(t){if(t.stopPropagation(),t.preventDefault(),l.contextMenu&&l.contextMenu.isShow)l.hideMenu();else{var i=function e(t){18!==t.keyCode&&17!==t.keyCode&&(o.hide(),document.removeEventListener("keydown",e))},o=l.contextMenu=n.popupMenu.quickInsert(this,r.a.i18n.getMessage("download")+" ...","photoDlMenu",{parent:e,onShow:function(){l.isMutation||document.addEventListener("keydown",i)},onHide:function(){l.isMutation||document.removeEventListener("keydown",i)}});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){j.debug("Get photo links error",e),o.update(r.a.i18n.getMessage("noLinksFound"))}))}}]});e.appendChild(t)}},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+"]"),i=0;e=n[i];i++)e.removeAttribute(t)}},g={style:null,addStyle:function(){this.style?this.style.parentNode||document.head.appendChild(this.style):(this.style=S.a.create("style",{class:"sfFeedStyle",text:h()([{selector:"."+l.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"] .'+l.className+"-feed.sf-feed",style:{top:"40px"}},{selector:"body:not(.fullScreen) div:hover > ."+l.className+"-feed.sf-feed",style:{display:"block"}},{selector:"."+l.className+"-feed.sf-feed:active",style:{outline:0}}])}),document.head.appendChild(this.style))},onDlBtnClick:function(e){if(e.preventDefault(),e.stopPropagation(),l.contextMenu&&l.contextMenu.isShow)l.hideMenu();else{try{var t=JSON.parse(this.dataset.sfDlLinks)}catch(e){return}var i=l.contextMenu=n.popupMenu.quickInsert(this,r.a.i18n.getMessage("download")+" ...",l.className+"_popup");if(t.id){var o=t.id;delete t.id,p.requestVideoLinks(o,(function(e,o){var r;r=e?n.popupMenu.prepareLinks.facebook(e,o):p.prepareLinks(t),i.update(r)}))}else{var a=p.prepareLinks(t);i.update(a)}}},addDownloadBtn:function(e,t){var n=e.querySelector("."+l.className+"-feed");n&&n.parentNode.removeChild(n),e.appendChild(S.a.create("a",{data:{sfDlLinks:A()(t)},title:r.a.i18n.getMessage("download"),class:[l.className+"-feed","sf-feed"],href:"#",on:["click",g.onDlBtnClick]}))},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 P.a((function(e){"EMBED"===t.tagName?p.getLinksFromEmbed(t,e):"VIDEO"===t.tagName&&p.getLinksFromVideo(t,e)})).catch((function(e){return j("getLinks error",e),null})).then((function(t){var n=t&&t.links;if(n)if(t&&t.popup_1)g.addDownloadBtn(e.parentNode,n);else if(v()(e,".uiStreamStory "+e.tagName)||v()(e,".fbPhotoSnowliftContainer "+e.tagName))y()(e,".fbPhotoSnowliftPopup .stageWrapper")||g.addDownloadBtn(e.parentNode,n);else{var i=document.getElementById("pagelet_timeline_main_column")||document.getElementById("stream_pagelet")||document.getElementById("mainContainer");if(i&&i.contains(e))g.addDownloadBtn(e.parentNode,n);else{var o=document.getElementById("stream_pagelet"),r=o&&o.previousElementSibling;if(r&&r.contains(e))g.addDownloadBtn(e.parentNode,n);else{var a=document.querySelector(".uiStreamStory"),s=a&&a.parentNode;(s=s&&s.parentNode)&&s.contains(e)&&g.addDownloadBtn(e.parentNode,n)}}}else e.dataset.hasSfFeedBtn=0}))}},rmBtn:function(){for(var e=f()("hasSfFeedBtn"),t=document.querySelectorAll("*["+e+"]"),n=0;i=t[n];n++)i.removeAttribute(e);var i,o=document.querySelectorAll("."+l.className+"-feed");for(n=0;i=o[n];n++)i.parentNode.removeChild(i)}}}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={13:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([62,0]),n()}({62:function(e,t,n){n.r(t);var i=n(3),o=n.n(i),r=n(0),a=n(13),s=n(8),l=n(16),c=n.n(l),u=n(2),d=n.n(u),p=n(1),f=n.n(p),m=n(5),h=n.n(m),g=n(14),v=n.n(g),b=n(6),y=n.n(b),x=n(21),k=n.n(x);v.a.isSingle()&&Object(s.b)("savefrom",(function(e,t){var n=Object(a.a)(t),i=t.preferences;r.a.onMessage.addListener((function(e,t,n){"updatePreferences"!==e.action||o()(i,e.preferences)})),setTimeout((function(){s.run()}));var s={name:e,scriptId:"savefrom__ext_script",dataAttr:"data-extension-disabled",attrObservers:[],run:function(){if(s.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++)s.waitFormId(t),s.mutationMode.stop()}}]})}},waitFormId:function(e){var t=this,n=new k.a({attrs:[{name:"id",callback:function(n){console.log("summary:",n),"sf_form"===n.value&&(s.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(s.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 a in o)for(var l=0;l<o[a].length;l++){var c=i.match(o[a][l]);if(c&&c.length>1){c=c[1];var u=n.getMatchFirst(i,/list=([w-]+)/i);t.preventDefault(),t.stopPropagation();var d={extVideoId:c,action:a,checkSubtitles:!0,checkLinks:!0};return"getVimeoLinks"===a&&(d.url=i),r.a.sendMessage(d,(function(e){s.setLinks(e.action,e.extVideoId,e.links,e.title,null,e.subtitles,u,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"))s.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)&&t.classList.contains("link-download")&&!t.classList.contains("disabled")&&t.getAttribute("download"))return t.classList.contains("ga_track_events")&&t.getAttribute("data-ga-event")&&d.a.trigger(t,"sendstats",{bubbles:!0,cancelable:!1}),n.downloadOnClick(e,null);var i=t.getAttribute("data-video-id");if(i&&"1"!=t.getAttribute(s.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 a={extVideoId:i[1],action:o[i[0]],checkSubtitles:!0,checkLinks:!0};return r.a.sendMessage(a,(function(e){s.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=C()(),t=e;e===t;)t=C()();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(f.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){}})('+A()(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(f.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){}})('+[A()(t),A()(a),A()(s)].join(",")+")"}))}))}},setExtParams:function(){var e=f.a.create("script",{id:"savefrom__ext_params",type:"text/javascript"}),t={id:i.sfHelperName,version:i.version,enable:1};e.textContent='(function(json){try{if(window.setBrowserExtension&&typeof setBrowserExtension=="function"){setBrowserExtension(json)}}catch(err){}})('+A()(t)+")",document.body.appendChild(e)},setLinks:function(e,t,n,i,o,r,a,l,c,u){if(!1!==u)switch(e){case"getYoutubeLinks":s.setYoutubeLinks(t,n,i,o,r,a,l,c);break;case"getVKLinks":s.setVKLinks(t,n,i,o,l,c);break;case"getVimeoLinks":s.setVimeoLinks(t,n,i,o,l,c);break;case"getDailymotionLinks":s.setDailymotionLinks(t,n,i,o,l,c);break;case"getFacebookLinks":s.setFacebookLinks(t,n,i,o,l,c);break;case"getMailruLinks":s.setMailruLinks(t,n,i,o,l,c)}else s.handleError(o)},handleError:function(e){if(e)e&&(e.style.display="",e.setAttribute(s.dataAttr,"1"),e.click());else{var t=document.getElementById("sf_form");t&&(t.setAttribute(s.dataAttr,"1"),t.submit(),t.removeAttribute(s.dataAttr))}},showVideoResult:function(e,t){if(e&&e.url&&e.url.length){var n,i=document.getElementById(s.scriptId);i&&i.parentNode.removeChild(i),i=f.a.create("script",{id:s.scriptId,type:"text/javascript"}),n=t?'(function(btnId,json){try{var btn=document.getElementById(btnId);sf.result.replaceAjaxResult(json,true,true,btn)}catch(err){}})("'+t.id+'",'+A()(e)+")":"(function(json){try{sf.finishRequest(true);sf.videoResult.show(json)}catch(err){}})("+A()(e)+")",i.textContent=n,document.body.appendChild(i)}else s.handleError(t)},setVKLinks:function(e,t,i,o,r,a){if(e&&t){var l={id:e,url:t,hosting:"vk.com (h)",meta:{title:i?h.a.modify(i):"download",source:"http://vk.com/"+e,duration:n.secondsToDuration(r)}};a&&(l.thumb=a);for(var c=0;c<l.url.length;c++)l.url[c].info_url="#",!l.url[c].ext&&l.url[c].type&&(l.url[c].ext=l.url[c].type),l.sd||l.url[c].subname?!l.hd&&l.url[c].subname&&I()(l.url[c].subname)>=720&&(l.hd={url:l.url[c].url}):l.sd={url:l.url[c].url};s.showVideoResult(l,o)}else s.handleError(o)},setYoutubeLinks:function(e,t,o,a,l,c,u,d){if(e&&t){var p={id:e,url:[],hosting:"101 (h)",meta:{title:o?h.a.modify(o):"download",source:e?"http://youtube.com/watch?v="+e:"",duration:n.secondsToDuration(u)},thumb:e?"http://i.ytimg.com/vi/"+e+"/hqdefault.jpg":""},f=!1;n.video.yt.init();var m=t.meta||{};for(var g in n.video.yt.format){var v=n.video.yt.format[g];for(var b in v){var y=m[b]||{};if(t[b]){!f&&t[b].search(/(?|&)sig(nature)?=/i)>-1&&(f=!0);var x=v[b].quality;y.quality&&(x=y.quality);var k={url:t[b],name:g,subname:x,info_url:"#",type:g,quality:x,attr:{}};v[b].sFps&&(k.subname+=" "+(y.fps||60)),v[b]["3d"]?(k.name="3D "+k.name,k.group="3d",k["3d"]=!0):v[b].noAudio?(k.group="MP4 ",k.attr.class="no-audio"):"Audio AAC"==g?(k.type="AAC",k.ext="aac",k.attr.style="white-space: nowrap;"):"Audio Vorbis"==g?(k.type="Vorbis",k.ext="webm",k.attr.style="white-space: nowrap;"):"Audio Opus"==g?(k.type="Opus",k.ext="opus",k.attr.style="white-space: nowrap;"):("flv"!=g.toLowerCase()||p.sd||(p.sd={url:t[b]}),I()(x)>=720&&p.sd&&!p.hd&&(p.hd={url:t[b]})),void 0===k.ext&&k.type&&(k.ext=k.type.toLowerCase()),void 0===v[b].noVideo&&void 0===v[b].noAudio&&(k.no_download=!0),p.url.push(k),delete t[b]}}}if(f){if(l&&l.length>0){var w=e.replace(/[^w]/,"_"),A="yt_subs_btn_"+w;w="yt_subs_"+w;var S=p.meta.title?btoa(n.utf8Encode(p.meta.title)):"";p.action=[],p.action.push({name:r.a.i18n.getMessage("subtitles"),attr:{id:A,href:"#"},bind:{click:{fn:'sf.youtubeSubtitles("{vid}","{subsId}","{btnId}","{subtToken}","{subsTitle}")'.replace("{vid}",e).replace("{subsId}",w).replace("{btnId}","#"+A).replace("{subtToken}","extension").replace("{subsTitle}",S)}}})}i.showUmmyItem&&(p.action=p.action||[],p.action.push({name:"HD / MP3",group:"ummy","second-btn":!0,attr:{href:"ummy://www.youtube.com/watch?v="+e,class:"ummy-link ga_track_events",target:"_blank","data-ga-event":"send;event;vidacha-helper;youtube;ummy-helper-button-click"}}),p.fn=p.fn||[],p.fn.push("if(window.ga){ga('send','event','vidacha-helper','youtube','ummy-helper-button-show');}")),s.showVideoResult(p,a)}else s.handleError(a)}else s.handleError(a)},setVimeoLinks:function(e,t,i,o,r,a){if(e&&t){var l={id:e,url:t,hosting:"vimeo.com (h)",meta:{title:i?h.a.modify(i):"download",source:"http://vimeo.com/"+e,duration:n.secondsToDuration(r)}};a&&(l.thumb=a);for(var c=0;c<l.url.length;c++)l.url[c].info_url="#",!l.url[c].ext&&l.url[c].type&&(l.url[c].ext=l.url[c].type),l.sd||"SD"!=l.url[c].name?l.hd||"HD"!=l.url[c].name||(l.hd={url:l.url[c].url}):l.sd={url:l.url[c].url};s.showVideoResult(l,o)}else s.handleError(o)},setDailymotionLinks:function(e,t,i,o,r,a){if(e&&t){var l=t.filter((function(e){if(!e.extra)return!0})),c={id:e,url:l,hosting:"dailymotion.com (h)",meta:{title:i?h.a.modify(i):"download",source:"http://dai.ly/"+e,duration:n.secondsToDuration(r)}};a&&(c.thumb=a);for(var u,d=0,p=0,f=0;u=l[f];f++)u.info_url="#",u.height>=720?d<u.height&&(c.hd={url:u.url},d=u.height):p<u.height&&(c.sd={url:u.url},p=u.height),delete u.height;s.showVideoResult(c,o)}else s.handleError(o)},setFacebookLinks:function(e,t,i,o,r,a){if(e&&t){var l={id:e,url:t,hosting:"facebook.com (h)",meta:{title:i?h.a.modify(i):"download",source:"https://facebook.com/video.php?v="+e,duration:n.secondsToDuration(r)}};a&&(l.thumb=a);for(var c,u=0;c=t[u];u++)c.info_url="#","SD"===c.name?l.sd={url:c.url}:"HD"===c.name&&(l.hd={url:c.url}),c.subname=c.name,c.name=c.ext;s.showVideoResult(l,o)}else s.handleError(o)},setMailruLinks:function(e,t,i,o,r,a){if(e&&t){var l={id:e,url:t,hosting:"mail.ru (h)",meta:{title:i?h.a.modify(i):"download",source:"http://my.mail.ru/"+e,duration:n.secondsToDuration(r)}};a&&(l.thumb=a);for(var c,u=0,d=0;c=l.url[d];d++)c.info_url="#",isNaN(I()(c.subname))?"sd"===c.subname.toLowerCase()?l.sd={url:c.url}:"hd"===c.subname.toLowerCase()&&(l.hd={url:c.url}):(u<c.subname&&c.subname<720&&(l.sd={url:c.url},u=c.subname),!l.hd&&c.subname>="720"&&(l.hd={url:c.url}));s.showVideoResult(l,o)}else s.handleError(o)}}}),(function(){return c()()?!(!r.a.isGM||-1===location.href.indexOf("/tools/helper-check.html")):-1!==location.href.search(/savefrom.net/(indexd?.php|user.php|update-helper.php|userjs-setup.php|d+-[^/]+/|articles/.+)?(?|#|$)/i)}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={7:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([63,0]),n()}({63:function(e,t,n){n.r(t);var o=n(3),r=n.n(o),a=n(0),s=n(1),l=n.n(s),c=n(16),u=n.n(c),d=n(35),p=n.n(d),f=n(2),m=n.n(f),h=n(9),g=n.n(h),v=n(7),b=n.n(v),y=n(14),x=n.n(y),k=n(6),w=n.n(k),A=n(13),S=n(10),C=n.n(S),L=n(20),I=n(21),_=n.n(I),M=n(8);x.a.isSingle()&&Object(M.b)("instagram",(function(e,t){var n=Object(A.a)(t),o=t.preferences,s=o.moduleInstagram?1:0;a.a.onMessage.addListener((function(t,n,i){if("getModuleInfo"===t.action){if(t.url!==location.href)return;return i({state:s,moduleName:e})}if("changeState"===t.action){if(e!==t.moduleName)return;return c.changeState(t.state)}if("updatePreferences"!==t.action){if(s)return"updateLinks"===t.action?c.updateLinks():void 0}else r()(o,t.preferences)})),s&&setTimeout((function(){c.run()}));var c={urlR:///[^/]+.[^/]+/p//,lastWaitEl:null,dlBtnClassName:"savefrom-helper--btn",styleEl:null,run:function(){s=1,this.insertStyle(),w.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=l.a.create("style",{text:b()([{selector:"."+this.dlBtnClassName,style:{display:"none",border:"1px solid #F8F8F8",top:"8px",right:"8px",padding:0,position:"absolute",backgroundColor:"#F8F8F8",cursor:"pointer",lineHeight:0}},{selector:"."+this.dlBtnClassName+" svg",style:{margin:"2px"}},{selector:"."+this.dlBtnClassName+" svg path",style:{fill:"#777777"}},{selector:".Embed ."+this.dlBtnClassName,style:{border:"1px solid #B5B5B5",borderRadius:"4px",padding:"3px"}},{selector:"."+this.dlBtnClassName+":hover svg path",style:{fill:"#3f729b"}},{selector:"."+this.dlBtnClassName+":active",style:{outline:0,boxShadow:"inset 0 3px 5px rgba(0, 0, 0, 0.125)"}},{selector:["*:hover > ."+this.dlBtnClassName,"*.sf-touch-show > ."+this.dlBtnClassName],style:{display:"block"}},{selector:"*.sf-touch-hide > ."+this.dlBtnClassName,style:{display:"none"}}])}),document.head.appendChild(this.styleEl))},updateLinks:function(){this.changeState(0),this.changeState(1)},changeState:function(e){s=e,this.rmDlBtn(),this.rmStyle(),this.mutationMode.stop(),e&&this.run()},rmDlBtn:function(){for(var e,t=document.querySelectorAll("."+this.dlBtnClassName),n=0;e=t[n];n++)e.parentNode.removeChild(e)},getVideoInfo:function(e){var t=e.getAttribute("src");if("string"==typeof t){var n="mp4";-1!==t.indexOf(".flv")&&(n="flv");var i=t.match(//([^/?]+)(?:$|?)/);return(i=i&&i[1])||(i="noname."+n),{filename:i,url:t}}},getImageInfo:function(e){var t=null,n=e.getAttribute("srcset");if("string"==typeof n){var i=[];n.split(",").map((function(e){var t=e.split(" ");i.push({url:t[0],size:t[1]})})),i.sort((function(e,t){return e.size>t.size?-1:1}));var o=i.pop();o&&(t=o.url)}if(t||(t=e.getAttribute("src")),"string"==typeof t){var r="jpg";-1!==t.indexOf(".png")&&(r="png");var a=t.match(//([^/?]+)(?:$|?)/);return(a=a&&a[1])||(a="noname."+r),{filename:a,url:t}}},getDbBtnEl:function(e){return l.a.create("a",{class:[this.dlBtnClassName],href:e.url,download:e.filename,title:a.a.i18n.getMessage("download"),style:{position:"absolute",zIndex:100},on:["click",function(e){e.stopPropagation(),n.downloadOnClick(e,void 0,{el:this})}],append:[n.svg.getSvg("download",null,16,16)]})},showOnTouch:function(e,t){if(!(e.dataset.sfTouch>0)){var n=!1,i=null,o=function(){n&&(clearTimeout(i),i=setTimeout((function(){n&&(n=!1,e.classList.remove("sf-touch-show"),e.classList.add("sf-touch-hide"))}),3e3))};l.a.create(e,{data:{sfTouch:"1"},on:[["touchstart",function(t){n||(n=!0,e.classList.remove("sf-touch-hide"),e.classList.add("sf-touch-show"))}],["touchend",function(e){o()}]]})}},addDlBtn:function(e,t,n){var o=this,r=this,a="embed"===t,s=!1;e.querySelector(".EmbedSidecar")&&(s=!0);var u=e.querySelector("."+this.dlBtnClassName);u&&(u.classList.remove(m.a.onRemoveClassName),u.parentNode.removeChild(u),u=null);var d,f=e,h=null,v=e.querySelector(["div > div > video"]);if(v&&(h=this.getVideoInfo(v)),!h)if(a&&!s)(d=f.querySelector(".EmbedFrame img.EmbeddedMediaImage"))&&(h=this.getImageInfo(d));else if(d=f.querySelectorAll(["div > img[src]"])[0])h=this.getImageInfo(d);else if((d=f.querySelectorAll(["div > img"])[0])&&("hidden"===d.style.visibility||!d.src))var b=new _.a({target:d,attrs:[{name:"src",callback:function(i){i.value&&(r.addDlBtn(e,t,n),b.stop())}}]});if(h){var y=this.getDbBtnEl(h),x="",k=null;v?(x="video",k=v):(x="image",k=d);var w=new _.a({target:k,attrs:[{name:"src",callback:function(e){e.value!==h.url&&(h=null,(h="image"===x?r.getImageInfo(k):r.getVideoInfo(k))&&y.parentNode?(y.href=h.url,y.download=h.filename):w.stop())}}]});if(m.a.onRemoveEvent(k,(function(){p()(document.body,n)&&(n.dataset.sfSkip=0,c.mutationMode.observer.trigger(n))})),s)l.a.create(y,{style:{top:"62px"}});else if(a){var A=document.querySelector(".Header");A&&(f=A,l.a.create(y,{style:{position:"relative",zIndex:100,display:"block",left:"auto",top:"auto",marginLeft:"10px"}}))}if("video"===x){var S=e.parentElement,C=-1;if("li"===S.tagName.toLocaleLowerCase()){var I=S.parentElement;C=Object(i.a)(I.childNodes).reduce((function(e,t,n){return t===S?n:e}),C)}var M=g()(e,"article").querySelector("a > time").parentNode.href;Object(L.a)({action:"getInstagramPostInfo",url:M}).then((function(e){var t=e.sharedData.entry_data.PostPage[0].graphql.shortcode_media,n=(-1===C?t:t.edge_sidecar_to_children.edges[C].node).video_url;y.href=n,y.download=o.getVideoInfo({getAttribute:function(){return n}}).filename}))}f.appendChild(y),this.showOnTouch(f,y)}},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=C()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))},enable:function(){if(this.observer)return this.observer.start();this.observer=new w.a({queries:[{css:"div > div > article > header + div > div > div:nth-child(1) ul > li > div:nth-child(1) > div:nth-child(1)",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",c.addDlBtn(t.parentNode,"",t))}},{css:"div > div > article > header + div > div > div:nth-child(1)",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.querySelector("ul > li")||t.dataset.sfSkip>0||(t.dataset.sfSkip="1",c.addDlBtn(t.parentNode,"",t))}},{css:".Embed",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",c.addDlBtn(t,"embed",t))}},{css:".".concat(m.a.onRemoveClassName),is:"removed",callback:function(e){for(var t,n=0;t=e.removed[n];n++)m.a.onRemoveListener(t)}}]})}}}}),(function(){return!u()()||!!///[^/]+.[^/]+/p//.test(location.href)}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={12:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([64,0]),n()}({64:function(e,t,n){n.r(t);var i=n(3),o=n.n(i),r=n(0),a=n(13),s=n(8),l=n(16),c=n.n(l),u=(n(17),n(10)),d=n.n(u),p=n(7),f=n.n(p),m=n(9),h=n.n(m),g=n(2),v=n.n(g),b=n(1),y=n.n(b),x=n(14),k=n.n(x),w=n(6),A=n.n(w);k.a.isSingle()&&Object(s.b)("rutube",(function(e,t){var n=Object(a.a)(t),i=t.preferences,s=i.moduleRutube?1:0,l=c()();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 u.changeState(t.state)}if("updatePreferences"!==t.action){if(s)return"updateLinks"===t.action?u.updateLinks():void 0}else o()(i,t.preferences)})),s&&setTimeout((function(){u.run()}));var u={buttonClassName:"sf-button",contextMenu:null,run:function(){if(s=1,l)return u.frame();A.a.isAvailable()&&u.mutationMode.enable()},changeState:function(e){s=e,this.hideMenu(),this.rmDlLinks(),this.mutationMode.stop(),e&&this.run()},hideMenu:function(){u.contextMenu&&(u.contextMenu.hide(),u.contextMenu=null)},updateLinks:function(){this.changeState(0),this.changeState(1)},rmDlLinks:function(){for(var e,t=document.querySelectorAll(".".concat(this.buttonClassName)),n=0;e=t[n];n++)e.parentNode.removeChild(e)},insertDownloadLink:function(e){for(var t,i=e.querySelectorAll(".".concat(this.buttonClassName)),o=0;t=i[o];o++)t.parentNode.removeChild(t);i=null;var a=function(){var e=location.href;return"ummy"+e.substr(e.indexOf("://"))},s=a(),l=y.a.create("a",{href:s,className:"".concat(this.buttonClassName," video-tools__tools-button"),target:"_blank",on:[["click",function(t){var i;if(t.preventDefault(),t.stopPropagation(),i=a(),s!==i&&(s=i,l.href=i),u.contextMenu&&u.contextMenu.isShow)u.hideMenu();else{var o=n.popupMenu.prepareLinks.rutube(a());u.contextMenu=n.popupMenu.quickInsert(this,o,"sf-popupMenu",{parent:h()(e,".b-video__description")})}}]],append:[n.svg.getSvg("download","#6c9b01",20,20),y.a.create("span",{text:r.a.i18n.getMessage("download"),style:{color:"#6c9b01"}})]});v.a.onRemoveEvent(l,u.hideMenu),e.insertAdjacentElement("afterbegin",l)},frame:function(){var e=this,t=n.frameMenu.getBtn({singleBtn:!0,btnId:"sfDlBtn",containerStyle:{right:"50px",top:"6px"},quickBtnStyleObj:{display:"inline-block",border:0,borderRadius:".3em",cursor:"pointer",position:"relative",padding:"4px 6px"},quickBtnCssStyle:{backgroundColor:"transparent"},quickBtnIcon:y.a.create(n.svg.getSvg("download","#ffffff"),{style:{display:"inline-block",width:"16px",height:"16px",verticalAlign:"middle"}}),nodeCssStyle:{display:"none"},on:[["click",function(i){if(i.preventDefault(),i.stopPropagation(),e.contextMenu&&e.contextMenu.isShow)e.hideMenu();else{var o=n.popupMenu.prepareLinks.rutube(location.href);e.contextMenu=n.frameMenu.getMenu(this,o,"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")}})}}],["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:f()([{selector:["body:hover .sf-btn-ctr:not(.sf-hide-ui) #sfDlBtn","body:hover .sf-btn-ctr:not(.sf-hide-ui) .sf-frame-menu"],style:{display:"block"}}])})),document.body.appendChild(t.container)},mutationMode:{observer:null,stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=d()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))},enable:function(){if(this.observer)return this.observer.start();this.observer=new A.a({queries:[{css:".video-tools > span",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",u.insertDownloadLink(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(){return P.a.resolve().then((function(){if(c()()){var e=!1;try{e=location.hostname===window.parent.location.hostname}catch(e){}return!e}return!0})).then((function(e){return!!e&&r.a.callFn("getPreferences").then((function(e){return!!e.showUmmyItem}))}))}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={18:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([65,0]),n()}({65:function(e,t,n){n.r(t);var i=n(3),o=n.n(i),r=n(0),a=n(1),s=n.n(a),l=n(2),c=n.n(l),u=n(18),d=n.n(u),p=n(9),f=n.n(p),m=n(5),h=n.n(m),g=n(7),v=n.n(g),b=n(14),y=n.n(b),x=n(6),k=n.n(x),w=n(17),A=n.n(w),S=n(13),C=n(10),L=n.n(C),I=n(8),_=d()("tiktok_com");y.a.isSingle()&&Object(I.b)("tiktok",(function(e,t){var n=Object(S.a)(t),i=t.preferences,a=i.moduleTiktok,l=location.pathname.includes("/embed");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 u.changeState(t.state)}"updatePreferences"!==t.action||o()(i,t.preferences)})),a&&setTimeout((function(){u.run()}));var u={buttonClassName:"sf-button",stylesClassName:"sf-styles",run:function(){a=1,l?k.a.isAvailable()&&d.mutationMode.start():location.href.includes("m.tiktok.com")?k.a.isAvailable()&&this.mobileMutationMode.start():k.a.isAvailable()&&this.mutationMode.start()},mutationMode:{observer:null,start:function(){if(this.observer)return this.observer.start();this.observer=new k.a({queries:[{css:["._video_card_big_ video[src]",".video-box video[src]"],is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",u.runDesktop(t))}}]})},stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=L()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))}},mobileMutationMode:{observer:null,start:function(){var e=this;if(this.observer)return this.observer.start();this.observer=new k.a({queries:[{css:"#mainBody #Video",is:"added",callback:function(t){for(var n,i=0;n=t.added[i];i++)n.dataset.sfSkip>0||(n.dataset.sfSkip="1",c.a.one(n,"mouseenter",e._handleMouseenter))}},{css:"#pageletDetail .authorInfo",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",u.runSmallMobile(t))}}]})},stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=L()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))},_handleMouseenter:function(e){a&&u.runMobile(e.currentTarget)}},runDesktop:function(e){if(!e)return _.error("videoElement don't found");var t=f()(e,"._video_card_big_")||f()(e,".video-box");if(!t)return _.error("videoCard don't found");var i=t.querySelector("._image_card_")||t.querySelector(".video-player-pc");if(!i)return _.error("container don't found");var o=t.querySelector("._video_card_big_user_info_nickname")||t.querySelector(".user-name"),r="";o?r=o.textContent:_.error("nicknameElement don't found");var a=t.querySelector("._video_card_big_meta_info_title")||t.querySelector(".desc"),l="";a?l=" - ".concat(a.textContent):_.error("descriptionElement don't found");var c=e.src,u=this.getFilename({nickname:r,description:l}),d=s.a.create("a",{href:c,download:u,className:"".concat(this.buttonClassName),on:["click",function(e){e.stopPropagation(),n.downloadOnClick(e,void 0,{el:this})}],style:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",position:"absolute",top:"16px",right:"16px",backgroundColor:"rgba(0, 0, 0, 0.5)",borderRadius:"50%",zIndex:"9"},append:[n.svg.getSvg("download","#fff")]}),p=i.querySelector(".".concat(this.buttonClassName));p?p.parentElement.replaceChild(d,p):i.appendChild(d)},runSmallMobile:function(e){if(!e)return _.error("container don't found");var t=document.querySelector("video[src]");if(!t)return _.error("videoElement don't found");var i=document.querySelector("h1"),o="";i?o=i.textContent:_.error("nicknameElement don't found");var r=document.querySelector('meta[property="og:description"]'),a="";r?a=" - ".concat(r.getAttribute("content")):_.error("description don't found");var l=t.src,c=this.getFilename({nickname:o,description:a}),u=s.a.create("a",{href:l,download:c,className:"".concat(this.buttonClassName),on:["click",function(e){e.stopPropagation(),n.downloadOnClick(e,void 0,{el:this})}],style:{zIndex:"99",width:"28px",height:"28px",borderRadius:"2px",position:"absolute",right:"103px",top:"8px",backgroundColor:"#00b75a",overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center"},append:[n.svg.getSvg("download","#fff")]}),d=e.querySelector(".".concat(this.buttonClassName));d?d.parentElement.replaceChild(u,d):e.appendChild(u)},runMobile:function(e){if(!e)return _.error("container don't found");var t=e.querySelector("video[src]");if(!t)return _.error("videoElement don't found");var i=f()(t,"#mainBody");if(!i)return _.error("body don't found");var o=i.querySelector("#itemInfo h1"),r="";o?r=o.textContent:_.error("nicknameElement don't found");var a=i.querySelector("#caption"),l="";a?l=" - ".concat(a.textContent):_.error("descriptionElement don't found");var c=t.src,u=this.getFilename({nickname:r,description:l}),d=s.a.create("a",{href:c,download:u,className:"".concat(this.buttonClassName),on:["click",function(e){e.stopPropagation(),n.downloadOnClick(e,void 0,{el:this})}],style:{position:"absolute",top:"10px",right:"10px",display:"none",alignItems:"center",justifyContent:"center",width:"24px",height:"24px",backgroundColor:"rgba(0, 0, 0, 0.5)"},append:[n.svg.getSvg("download","#fff")]});document.querySelector(".".concat(this.stylesClassName))||document.body.appendChild(s.a.create("style",{className:this.stylesClassName,text:v()([{selector:"#Video:hover .".concat(this.buttonClassName),style:{display:"flex !important"}}])}));var p=e.querySelector(".".concat(this.buttonClassName));p?p.parentElement.replaceChild(d,p):e.appendChild(d)},getFilename:function(e){var t=e.nickname,n=e.description;return t?h.a.modify("".concat(t).concat(n,".mp4")):"unknown.mp4"},clean:function(){document.querySelectorAll(".".concat(this.buttonClassName)).forEach((function(e){e.remove()}))},changeState:function(e){a=e,this.clean(),this.mutationMode.stop(),this.mobileMutationMode.stop(),e&&this.run()}},d={mutationMode:{observer:null,start:function(){if(this.observer)return this.observer.start();this.observer=new k.a({queries:[{css:"video#tiktokVideo",is:"added",callback:function(e){for(var t,n=0;t=e.added[n];n++)t.dataset.sfSkip>0||(t.dataset.sfSkip="1",d.insertDownloadButton(t))}}]})},stop:function(){this.observer&&this.observer.stop(),["sfSkip"].forEach((function(e){for(var t,n=L()(e),i=document.querySelectorAll("["+n+"]"),o=0;t=i[o];o++)t.removeAttribute(n)}))}},insertDownloadButton:function(e){var t=A()(e,"player"),i=t.querySelector(".videoInfo .userName"),o="";i?o=i.textContent:_.error("nicknameElement don't found");var r=document.querySelector(".videoInfo .text"),a="";r?a=" - ".concat(r.textContent):_.error("descriptionElement don't found");var l=e.src,c=u.getFilename({nickname:o,description:a}),d=s.a.create("a",{href:l,download:c,className:"".concat(u.buttonClassName),on:["click",function(e){e.stopPropagation(),n.downloadOnClick(e,void 0,{el:this})}],style:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",position:"absolute",top:"8px",left:"8px",backgroundColor:"rgba(0, 0, 0, 0.5)",borderRadius:"50%",zIndex:"99"},append:[n.svg.getSvg("download","#fff")]}),p=t.querySelector(".".concat(u.buttonClassName));p?p.parentElement.replaceChild(d,p):t.appendChild(d)}}}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={21:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([74,0]),n()}({28:function(e,t){e.exports=n(361)},36:function(e,t){e.exports=n(80)},37:function(e,t){e.exports=n(362)},47:function(e,t){e.exports=n(366)},48:function(e,t){e.exports=n(367)},74:function(e,t,n){n.r(t);var i=n(36),o=n.n(i),r=n(4),a=n.n(r),s=n(12),l=n.n(s),c=n(0),d=n(6),f=n.n(d),h=n(13),v=n(47),b=n(48),y=n(5),k=n.n(y),w=n(28),S=n(37),C=n.n(S),L=function(){function e(t){Object(z.a)(this,e),this.selector=".d-track .d-track__actions",this.type="added",this.api=t}return Object(U.a)(e,[{key:"handle",value:function(e){var t=e.added;this.renderButtons(t)}},{key:"renderButtons",value:function(e){var t=this;e.filter((function(e){return!e.dataset.sfSongReady})).map((function(e){var n=document.createElement("div");n.innerHTML=w.DOWNLOAD_ICON,n.classList.add("d-track__hover","sf-download");try{var i=e.closest(".d-track"),o=t.parseAlbumAndTrackId(i),r=o.track,a=o.album,s=t.parseArtistName(i),l=t.parseTrackName(i);n.onclick=function(){return t.onClick(n)},n.title=c.a.i18n.getMessage("download"),i.dataset.sfInfo=A()({track:r,album:a,artist:s,name:l})}catch(e){t.setError(n),console.warn(e)}finally{e.appendChild(n),e.dataset.sfSongReady=!0}}))}},{key:"onClick",value:function(e){var t=this;return l()(a.a.mark((function n(){var i,o,r,s,l,c,u,d,p;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,i=JSON.parse(e.closest(".d-track").dataset.sfInfo),o=i.artist,r=i.album,s=i.track,l=i.name,n.next=5,t.api.fetchTrack(r,s);case 5:c=n.sent,u=c.codec,d=c.downloadURL,p=new CustomEvent("song.download",{detail:{filename:k.a.modify("".concat(o?o+" -":""," ").concat(l,".").concat(u)),downloadURL:d}}),document.dispatchEvent(p),n.next=16;break;case 12:n.prev=12,n.t0=n.catch(0),t.setError(e),console.warn(n.t0);case 16:case"end":return n.stop()}}),n,null,[[0,12]])})))()}},{key:"parseAlbumAndTrackId",value:function(e){var t=e.querySelector(".d-track__name a").getAttribute("href"),n=/album/([0-9]+)/track/([0-9]+)/.exec(t),i=C()(n,3);return i[0],{album:i[1],track:i[2]}}},{key:"parseTrackName",value:function(e){return e.querySelector(".d-track__name").getAttribute("title")}},{key:"parseArtistName",value:function(e){var t=function(e,t){var n=(t||document).querySelector(e);return n?n.getAttribute("title"):null},n=t(".d-track__artists a, .d-track__meta a",e);if(n)return n;var i=e.closest(".sidebar-album");return i?t(".d-artists a",i):(n=t(".d-album-summary__pregroup .d-artists a"))?n:(n=document.querySelector(".page-artist__title"))?n.innerText:null}},{key:"setError",value:function(e){e.title=c.a.i18n.getMessage("vkMp3LinksNotFound"),e.classList.add("sf-icon-error")}},{key:"disable",value:function(){var e=["data-sf-song-ready","data-sf-info"],t=document.querySelectorAll(e.map((function(e){return"[".concat(e,"]")})).join(","));de()(t).forEach((function(t){return function(e,t){return t.forEach((function(t){return e.removeAttribute(t)}))}(t,e)})),de()(document.querySelectorAll(".sf-download")).forEach((function(e){return e.remove()}))}}]),e}(),I=function(){function e(t){Object(z.a)(this,e),this.selector=".player-controls .player-controls__seq-controls",this.type="added",this.api=t}return Object(U.a)(e,[{key:"handle",value:function(e){var t=e.added;this.renderButton(t.pop())}},{key:"renderButton",value:function(e){var t=this;if(!e.dataset.sfReady){var n=document.createElement("div");n.innerHTML=w.DOWNLOAD_ICON,n.classList.add("player-controls__btn","deco-player-controls__button","sf-download-in-control"),n.onclick=function(){return t.onClick(n)},n.title=c.a.i18n.getMessage("download"),n.onclick=function(){return t.onClick(n)},e.append(n),e.dataset.sfReady=!0}}},{key:"onClick",value:function(e){var t=this;return l()(a.a.mark((function n(){var i,o,r,s,l,c,u,d,p,f,m,h,g,v;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.closest(".player-controls"),o=i.querySelector(".deco-link.track__title"),r=i.querySelector(".track__artists a"),s=o.getAttribute("title"),l=o.getAttribute("href"),c=r.getAttribute("title"),u=/album/([0-9]+)/track/([0-9]+)/.exec(l),(d=C()(u,3))[0],p=d[1],f=d[2],n.next=9,t.api.fetchTrack(p,f);case 9:m=n.sent,h=m.codec,g=m.downloadURL,v=new CustomEvent("song.download",{detail:{filename:k.a.modify("".concat(c," - ").concat(s,".").concat(h)),downloadURL:g}}),document.dispatchEvent(v);case 14:case"end":return n.stop()}}),n)})))()}},{key:"disable",value:function(){de()(document.querySelectorAll("[data-sf-ready]")).forEach((function(e){return e.removeAttribute("data-sf-ready")}));var e=document.querySelector(".sf-download-in-control");e&&e.remove()}}]),e}();function _(e,t){var n=O()(e);if(g.a){var i=g()(e);t&&(i=i.filter((function(t){return m()(e,t).enumerable}))),n.push.apply(n,i)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):p.a?u()(e,p()(n)):_(Object(n)).forEach((function(t){x()(e,t,m()(n,t))}))}return e}var E="yandex_uid",T=function(e){function t(){var e;return Object(z.a)(this,t),(e=K(this,$(t).apply(this,arguments))).active=1,e.mutationHandlers=[],e}return ie(t,e),Object(U.a)(t,[{key:"init",value:function(){var e=this;return l()(a.a.mark((function t(){return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.uid=e.prepareUID(),e.api=new b.YandexAPI(e.uid),t.next=4,c.a.callFn("getPreferences");case 4:e.settings=t.sent,e.active=Number(e.settings.moduleYandexMusic),e.utils=Object(h.a)({preferences:e.settings}),e.registerListeners(),e.active&&e.initObserver(),e.appendStyle(w.STYLE);case 10:case"end":return t.stop()}}),t)})))()}},{key:"initObserver",value:function(){this.mutationHandlers=[new L(this.api),new I(this.api)],this.observer=new f.a({queries:this.mutationHandlers.map((function(e){return{css:e.selector,callback:e.handle.bind(e),is:e.type}}))}),this.observer.start()}},{key:"registerListeners",value:function(){var e=this,n=this;document.addEventListener("song.download",(function(t){var n=t.detail;e.utils.download(n.filename,n.downloadURL)})),c.a.onMessage.addListener(function(){var e=l()(a.a.mark((function e(i,o,r){var s,l,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=i.action,l=i.moduleName,c=i.state,"getModuleInfo"!==s){e.next=3;break}return e.abrupt("return",r({state:n.active,moduleName:t.moduleName}));case 3:if("updatePreferences"!==s){e.next=6;break}return n.settings=M({},n.settings,{},i.preferences),e.abrupt("return");case 6:n.handleMonoChangeActive(s,l,c),n.handleMonoDownloadAll(s);case 8:case"end":return e.stop()}}),e)})));return function(t,n,i){return e.apply(this,arguments)}}())}},{key:"handleMonoDownloadAll",value:function(e){var t=this;return l()(a.a.mark((function n(){var i,o,r;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("downloadMP3Files"===e){n.next=2;break}return n.abrupt("return");case 2:return i=de()(document.querySelectorAll(".d-track")).map((function(e){return JSON.parse(e.getAttribute("data-sf-info"))})).filter((function(e){return null!==e})),o=i.map(function(){var e=l()(a.a.mark((function e(n){var i,o,r,s,l;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.track,o=n.album,r=n.artist,s=n.name,e.next=3,t.api.fetchTrack(o,i);case 3:return l=e.sent,e.abrupt("return",{track:i,album:o,artist:r,title:s,url:l.downloadURL,filename:k.a.modify("".concat(r," - ").concat(s,".").concat(l.codec))});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n.next=6,P.a.all(o);case 6:r=n.sent,t.utils.downloadList.showBeforeDownloadPopup(r,{type:"audio",folderName:"tests"});case 8:case"end":return n.stop()}}),n)})))()}},{key:"handleMonoChangeActive",value:function(e,n,i){if(t.moduleName===n&&"changeState"===e){if(this.active=i,this.active)return this.initObserver();this.observer.stop(),this.mutationHandlers.forEach((function(e){return e.disable()}))}}},{key:"prepareUID",value:function(){var e=this.cache.get(E);return e||(e=this.getUidFromHTML(),this.cache.set(E,e,720)),e}},{key:"getUidFromHTML",value:function(){var e=document.querySelectorAll("script[nonce]"),t=0,n=!0,i=!1,o=void 0;try{for(var r,a=fe()(e);!(n=(r=a.next()).done);n=!0){var s=r.value.innerText.match(/"uid":"([0-9]+)"/);if(s){t=Number(s[1]);break}}}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}return t}}]),t}(v.ContentScript);T.moduleName="yandexMusic";var F=n(8),D=n(14),B=n.n(D),N=new T;B.a.isSingle()&&Object(F.a)(T.moduleName,(function(){return N.init()}),(function(){return-1===location.href.indexOf("api/")}))}})},function(e){!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||x()(e,t,{enumerable:!0,get:i})},n.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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 i=D()(null);if(n.r(i),x()(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=67)}({0:function(t,n,i){var o=e;n.a=o},67:function(e,t,n){n.r(t);var i=n(0),o=n(8);Object(o.a)("tab",(function(){i.a.sendMessage({action:"openPage"})}))},8:function(e,t,n){n.d(t,"b",(function(){return a}));var i=n(0),o=[],r=function(e,t,n){return P.a.resolve().then((function(){return!n||n()})).then((function(n){n&&(-1===o.indexOf(e)&&o.push(e),t())}))},a=function(e,t,n){return r(e,(function(){return i.a.callFn("getPreferences").then((function(n){t(e,{preferences:n})}))}),n)};t.a=r}})},function(e){!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||x()(e,t,{enumerable:!0,get:i})},n.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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 i=D()(null);if(n.r(i),x()(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=72)}({0:function(t,n,i){var o=e;n.a=o},12:function(e,t){e.exports=n(29)},4:function(e,t){e.exports=n(15)},72:function(e,t,n){n.r(t);var o=n(4),r=n.n(o),a=n(12),s=n.n(a),l=n(0);!function(){var e=["hbH1Nkk","cTej9CrI","nP6MSJq","cgDwvgHw","bGa3MZZq","byG3Sbq0","ca2RfkxA","l9o1apa","coqxnlTK","lpAKLXi","50DWs56","0aJ9LvQ","o0i2IFA","cL8gU3bK","bIhplKZa","cEuNUSQU","bwsfzyBI","c0LTvdA","b2ig0zsy","bBqFV46y","EkU3hBS","QdRfSH6","cto8JdtI","ZAdrKZi","0L1abZe","xxI4r5m","caQm8QVi","IiZt5iY","5Jugp0y","7QNDIg0","VQuQCmk","cAYqZKK4","bG37mTo4","9hpVMrq","bcHlYdKo","POmDbLi","wFX4pnE","ZKEM7De","bnHBM4BQ","FOvemwy","VnYZvQVf","bM49O51A","ccfBY4yg","bdH8j4di","cVg3x1XE"];function t(t){var n=t.chkOnlChbk;if(n<0)return!1;var i,o,r,a=new URL(location.href).searchParams.get("sk"),s=("aeu_cid",i=RegExp("aeu_cid[^;]+").exec(document.cookie),decodeURIComponent(i?i.toString().replace(/^[^=]+./,""):"")).split("-").pop();return n>0?(o=e.some((function(e){return a===e})),r=e.some((function(e){return s===e}))):(o=!!a,r=!!s),o||r}var n=function(){setTimeout((function(){document.querySelector(".aext-disable-button-embedded").addEventListener("click",(function(){GM_setValue("displayAext",!1)}))}),3e3)},o=function(){return localStorage.getItem("eInstallDate")},a=function(e){return!e||C()()>=Number(o())+864e5},c=function(){return localStorage.getItem("eLastLinkChange")},u=function(){return localStorage.setItem("eLastLinkChange",C()())},d=function(e){return!e||!!c()&&C()()>=Number(c())+6e5};o()||localStorage.setItem("eInstallDate",C()()),c()||u();var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return location.href.includes("tmall.aliexpress.com")&&!e.includes("aliexpress.com")},f=function(e){!function(e,t){e.forEach((function(e){var n=e.getAttribute("href"),i=function(e){return p(e)?"https://tmall.aliexpress.com".concat(e):e}(n);n&&i&&"javascript:;"!==i&&!e.getAttribute("data-checked")&&/aliexpress.([a-zA-Z]+)/(item|store|groupShare)/.test(i)&&(e.setAttribute("data-checked",!0),e.addEventListener("click",(function(n){n.preventDefault();var o=new URL(/^https?/.test(i)?i:window.location.protocol+i),r=encodeURIComponent(i),a=t.replace(/__CURURL__/g,r)+o.hash;window.open(a,e.getAttribute("target"))})))}))}([].concat(Object(i.a)(document.querySelectorAll('a[href*="/item/"]')),Object(i.a)(document.querySelectorAll('a[href*="/store/product/"]')),Object(i.a)(document.querySelectorAll('a[href*="/groupShare/productDetail.htm"]'))),e)},m=navigator.userAgent.includes("OPR"),h=[].concat(Object(i.a)(m?["nkekkheibgkgeepapinkalkongndfajn/assets/fonts/OpenSans-Regular-latin-400.woff2","eenflijjbchafephdplkdmeenekabdfb/assets/fonts/OpenSans-Reguztlar-latin-400.woff2"]:[]),["gmbcgiikibhknicphbbnobnjnmckkkek/_locales/ru/messages.json","pfjibkklgpfcfdlhijfglamdnkjnpdeg/_locales/ru/messages.json"]),g=[].concat(Object(i.a)(m?[".at-panel"]:[]),[".alimate_embedded",".embedded",".search_embeddedd"]),v=function(){var e=s()(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P.a.all([].concat(Object(i.a)(h.map(function(){var e=s()(r.a.mark((function e(t){var n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=function(){var e=s()(r.a.mark((function e(){return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("chrome-extension://".concat(t));case 2:return e.abrupt("return",e.sent.text());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.prev=1,e.next=4,n();case 4:return e.abrupt("return",!0);case 7:return e.prev=7,e.t0=e.catch(1),e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}())),[new P.a((function(e){return setTimeout((function(){return e(g.some((function(e){return document.querySelector(e)})))}),500)}))]));case 2:return e.t0=function(e){return e},e.abrupt("return",e.sent.some(e.t0));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=function(){var e=s()(r.a.mark((function e(){var t;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.marketradar.net/v1/config/sfn");case 3:return e.next=5,e.sent.json();case 5:if(!((t=e.sent).hasOwnProperty("tm-tm-link")&&t.hasOwnProperty("tampermonkeylink")&&t.hasOwnProperty("tamperdaytimeout")&&t.hasOwnProperty("tamperhourtimeout"))){e.next=10;break}return e.abrupt("return",t);case 10:throw new Error;case 11:e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(0),e.next=17,fetch("https://metrics-app-c9b49.firebaseio.com/config.json");case 17:return e.abrupt("return",e.sent.json());case 18:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}(),y=function(){var e=s()(r.a.mark((function e(){var t,n;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=GM_getValue("config",null),e.t0=t,e.t0){e.next=6;break}return e.next=5,b();case 5:e.t0=e.sent;case 6:if((n=e.t0).updated){e.next=11;break}n.updated=C()(),e.next=14;break;case 11:if(!(C()()-n.updated>6e5)){e.next=14;break}return GM_setValue("config",null),e.abrupt("return",y());case 14:return GM_setValue("config",n),e.abrupt("return",n);case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function x(e){e&&!localStorage.getItem("analyticParam")&&(localStorage.setItem("analyticParam",!0),fetch("https://www.google-analytics.com/collect",{method:"POST",headers:{"Content-Type":"text/plain;charset=UTF-8"},body:"v=1&t=event&tid=UA-86778303-1&cid=753157190.1532509316&ec=SFN-aff&ea=deactivated"}).catch((function(e){return console.error("failed to to send analytics metrics",e)})))}function k(e){GM_setValue("switcher",!e||!e.hasOwnProperty("tmpmSwitcher")||e.tmpmSwitcher)}var w=function(){var e=s()(r.a.mark((function e(){var n,i,o,s;return r.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v();case 2:if(n=e.sent,"true"===localStorage.getItem("display-extension")||n){e.next=11;break}return e.next=6,y();case 6:k(i=e.sent),x(o=t(i)),i.tampermonkeylink&&a(i.tamperdaytimeout)&&d(i.tamperhourtimeout)&&!o&&(u(),(s=p()?function(){return f(i["tm-tm-link"])}:function(){return f(i.tampermonkeylink)})(),new MutationObserver((function(e){return e.forEach((function(e){return s()}))})).observe(document.body,{attributes:!0,childList:!0,characterData:!0}));case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();new P.a((function(e){var t=GM_info.script.version;if(t!==GM_getValue("scriptVersion",""))return l.a.storage.set({displayAext:!0}),GM_setValue("scriptVersion",t),e(!0);l.a.storage.get({displayAext:!1},(function(t){return t.displayAext?e(!0):e(!1)}))})).then((function(e){e&&w().then((function(){(function(e){return[/aliexpress.([a-zA-Z]+)/store/product/.*?/(d+)_(d+).html/i,/aliexpress.([a-zA-Z]+)/item/(d+).html/i,/aliexpress.([a-zA-Z]+)/item/.*?/(d+).html/i,/group.aliexpress.com/(d+)-(d+)-detail.html/i].some((function(t){return null!==new RegExp(t).exec(e)}))})(location.href)&&l.a.storage.get({displayAext:!0},(function(e){if(e.displayAext&&GM_getValue("switcher",!0)){var t=document.createElement("script");t.setAttribute("src","https://sf-helper.com/static/aliradar280619.js"),document.body.appendChild(t),t.onload=n}}))}))}))}()}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={3:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([75,0]),n()}({75:function(e,t,n){n.r(t);var i=n(4),o=n.n(i),r=n(3),a=n.n(r),s=n(12),c=n.n(s),u=n(8),d=n(0),p=function(e){return new P.a((function(t){return d.a.storage.set(e,t)}))},f=function(e){return new P.a((function(t){return d.a.storage.get(e,t)}))},m=function(){function e(){Object(z.a)(this,e)}return Object(U.a)(e,[{key:"get",value:function(e){return c()(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}},{key:"first",value:function(e){return c()(o.a.mark((function t(){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f(e);case 2:return n=t.sent,t.abrupt("return",n[e]);case 4:case"end":return t.stop()}}),t)})))()}},{key:"set",value:function(e){return c()(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}}]),e}();Object(u.b)("alitestStat",function(){var e=c()(o.a.mark((function e(t,n){var i,r,s,u,d,p,f,h,g,v,y,x,w,A,S,C,L,I,_,M,E,O,T,P,F,D,B,N,R,j,z,U;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return U=function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){e.classList.contains("next-overlay-wrapper")&&z(e.querySelector("iframe"))}))}))},z=function(e){setTimeout((function(){R(e.contentWindow)}),100)},N=function(){var e=!!document.querySelectorAll(".price .selected-coupon-trigger-title")[0],t=!!document.querySelectorAll(".price .selected-coupon-trigger-title")[1],n=document.querySelector(".coupon-code-title .amount");return{special:e,aliexpress:t,promocode:!!n&&!!n.innerHTML}},B=function(e){var t="";return e?F(e).forEach((function(e){var n=e.querySelector('a.product-name-link[href*="/item"]').href.split("item/")[1].split(".htm")[0],i=e.querySelector(".store-discounted");t+=n+"-"+!!i+"; "})):document.querySelectorAll(".store-list").forEach((function(e){var n=e.querySelector('a.product-name-link[href*="/item"]').href.split("item/")[1].split(".htm")[0],i=e.querySelector(".seller-charges .selected-coupon-trigger-title");t+=n+"-"+!!i+"; "})),t},D=function(e){var t=[];e?(n=F(e)).forEach((function(e){t.push(e.querySelector('a.product-name-link[href*="/item"]'))})):t=document.querySelectorAll('a.product-name-link[href*=".com/item"], a.product-name-link[href*=".ru/item"]');for(var n=[],i=0;i<t.length;i++)t[i]&&n.push(t[i].href);return n.join(", ")},F=function(e){var t=new URLSearchParams(e.location.search),n=[];n=t.has("availableProductShopcartIds")?t.get("availableProductShopcartIds").split(","):[t.get("objectId")];var i=[];return n.forEach((function(e){var t=window.parent.document.querySelector('[ae_object_value="'+e+'"]')||window.parent.document.querySelector("[ae_object_value]");i.push(t.closest(".shopping-cart-store")||document.querySelector(".shopping-cart-store"))})),i},P=function(){var e=RegExp("aeu_cid[^;]+").exec(document.cookie),t=decodeURIComponent(e?e.toString().replace(/^[^=]+./,""):"").split("-").pop(),n=t==T.aliwiz,i=T.aliradar.indexOf(t)>-1;return n?"aliwiz":i?"aliradar":e?"other":"unknown"},y=function(e){var t=g(e);GM_xmlhttpRequest({url:s,method:"POST",data:t})},v=function(e){for(var t=new URLSearchParams,n=0,i=b()(e);n<i.length;n++){var o=i[n];t.append(o[0],o[1])}return t.toString()},g=function(e,t){var n={v:1,ec:"exp",t:"event",tid:u,cid:f,cd1:h,cd9:f},i=a()({},n,e);return v(i)},p=function(){return(p=c()(o.a.mark((function e(){var t,n;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="helperUUidCid",e.next=3,r.first(t,!1);case 3:if(!(n=e.sent)){e.next=8;break}return e.abrupt("return",n);case 8:return n="f".concat((+new Date).toString(16)).concat((~~(1e8*Math.random())).toString(16)),e.next=11,r.set(k({},t,n));case 11:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)},d=function(){return p.apply(this,arguments)},i=n.preferences,r=new m,s="https://www.google-analytics.com/collect",u="UA-142528268-52",e.next=18,d();case 18:f=e.sent,h=i.lc?"control":i.alitestType,x=function(){function e(e){var t;return t=e.indexOf(".html")>-1?(t=e.split(".html")[0]).substring(t.lastIndexOf("/")+1):(t=e.split("SearchText=")[1]).split("&")[0]}var t=2,n=document.querySelector(".breadcrumb");if(n||(t=1,n=document.querySelector(".ui-breadcrumb-tmall .container")),n||(t=2,n=document.querySelector(".ui-breadcrumb .container")),!n)return"";for(var i=n.querySelectorAll("a"),o=[],r=t;r<i.length;r++)o.push(e(i[r].href));return o.join("_")},w=function(e,t){return{ea:e,el:t||!0}},A=function(e,t){var n=GM_getValue(e,!1);if(!n||n+18e5<(new Date).getTime()){var i=w(e,t);y(i),GM_setValue(e,(new Date).getTime())}},S=function(){return null!=location.href.match(/aliexpress.([a-zA-Z]+)//)},C=function(){return[/aliexpress.([a-zA-Z]+)/store/product/.*?/(d+)_(d+).html/i,/aliexpress.([a-zA-Z]+)/item/(d+).html/i,/aliexpress.([a-zA-Z]+)/item/.*?/(d+).html/i,/tmall.([a-zA-Z]+)/item/.*?/(d+).html/i,/group.aliexpress.([a-zA-Z]+)/(d+)-(d+)-detail.html/i,/groupShare/productDetail.htm/i].some((function(e){return null!==new RegExp(e).exec(location.href)}))},L=function(){return null!=location.href.match(/shoppingcart.aliexpress.([a-zA-Z]+)/orders.htm/)||null!=location.href.match(/shoppingcart.aliexpress.([a-zA-Z]+)/order/confirm_order.htm/)},I=function(){return location.href.indexOf("/shopcart/shopcartDetail.htm")>-1},_=function(){y({ea:"visit-shopping-cart-page",el:!0})},M=function(){return null!=location.href.match(/shoppingcart.aliexpress.([a-zA-Z]+)/order/payResult.htm/)},E=function(){var e=x();A("visit-aliexpress"),document.body.onclick=function(t){if(t.path&&(t.target.className.indexOf("add-wishlist")>-1||t.path[1].className.indexOf("add-wishlist")>-1)){var n=w("added-to-wishlist",e);y(n)}}},O=function(){var e=x(),t=w("visit-item-card",e);y(t),(document.querySelector(".product-action")||document.querySelector(".product-action-main")).addEventListener("click",(function(t){var n=t.target.className;n.indexOf("buynow")>-1&&y({ea:"buy-now",el:e}),(n.indexOf("addcart")>-1||n.indexOf("add-cart")>-1)&&y({ea:"add-to-cart",el:e})})),function e(){setTimeout((function(){document.querySelector("div#sa-panel")||document.querySelector("div#aliradar")?y({ea:"widget-show",el:"true"}):e()}),2e3)}()},T={aliwiz:"VnYZvQVf",aliradar:["hbH1Nkk","cTej9CrI","nP6MSJq","cgDwvgHw","bGa3MZZq","byG3Sbq0","ca2RfkxA","l9o1apa","coqxnlTK","lpAKLXi","50DWs56","0aJ9LvQ","o0i2IFA","cL8gU3bK","bIhplKZa","cEuNUSQU","bwsfzyBI","c0LTvdA","b2ig0zsy","bBqFV46y","EkU3hBS","QdRfSH6","cto8JdtI","ZAdrKZi","0L1abZe","xxI4r5m","caQm8QVi","IiZt5iY","5Jugp0y","7QNDIg0","VQuQCmk","cAYqZKK4","bG37mTo4","9hpVMrq","bcHlYdKo","POmDbLi","wFX4pnE","ZKEM7De","bnHBM4BQ","FOvemwy","bM49O51A","ccfBY4yg","bdH8j4di","cVg3x1XE"]},R=function e(t){var n=t||window,i=document.querySelector(".total-price [data-spm-anchor-id]")||document.querySelector(".total-price dd")||document.querySelector(".total-price");if(i){var o=i.innerHTML,r=l()(o.toString().replace(/[^d.|^d,]/g,"").replace(",","."));r=Math.round(100*r);var a=window.parent.document.querySelector('[data-role="menu"] span.currency'),s=a?a.innerHTML:o.toString().replace(/[d.|d,]/g,""),c=N();y({ea:"visit-checkout-page",el:!0,ev:r,cd2:s,cd3:P(),cd4:D(n),cd5:B(n),cd6:c.special,cd7:c.aliexpress,cd8:c.promocode}),n.addEventListener("mousedown",(function(e){"checkout-button"==e.target.id&&y({ea:"order-complete",el:!0})}))}else setTimeout((function(){e(t)}),300)},j=function e(){if(document.querySelector("div.check-out-root")){var t=document.querySelector("div.next-message-success");y({ea:"purchase-successful",el:!!t})}else setTimeout((function(){e()}),200)},window==window.top&&S()&&E(),window==window.top&&C()&&O(),L()&&R(),I()&&(_(),new MutationObserver(U).observe(document.body,{attributes:!0,childList:!0,characterData:!1})),M()&&j();case 40:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}})},function(e){function t(e){return function(e){if(M()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(ce()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return de()(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function n(e,t){return null!=t&&void 0!==j.a&&t[se.a]?!!t[se.a](e):e instanceof t}function i(e,t,n){return t in e?x()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!n(e,t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),x()(e,i.key,i)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function s(e){return(s="function"==typeof j.a&&"symbol"==typeof H.a?function(e){return typeof e}:function(e){return e&&"function"==typeof j.a&&e.constructor===j.a&&e!==j.a.prototype?"symbol":typeof e})(e)}!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||x()(e,t,{enumerable:!0,get:i})},n.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==s(e)&&e&&e.__esModule)return e;var i=D()(null);if(n.r(i),x()(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=28)}([function(e,t){var n={NOT_INFO:j()("not info"),BAD:j()("bad"),WARN:j()("warn"),WEAK:j()("weak"),GOOD:j()("good")};e.exports=n},function(e,t){e.exports={$:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector(e)},$$:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelectorAll(e)}}},function(e,t,n){n.r(t);var i=n(4),o=n(13),r={currentRate:1,getCurrencyRate:function(){return r.currentRate},currencyDecimalNeededCount:{rub:1,usd:1},currencySupported:["usd","rub"],currencyPositionList:{beforePrice:["usd"],afterPrice:["rub"]},convertPrice:function(e){if("-"==e)return e;var t=r.getCurrencyRate();return r.floatPrice(t*e)},floatPrice:function(e){return e>999||e<-999?e.toFixed(0):e.toFixed(r.currencyDecimalNeededCount[window.aliwizPageData.currency.toLowerCase()]||1)},stripPriceParts:function(e,t){var n=l()(e.toString().replace(/[^d.|^d,]/g,"").replace(",","."));return t?n:r.floatPrice(n)},getCurrencyImage:function(e){if(r.isSupportedCurrency()){var t=window.aliwizPageData.currency.toLowerCase();return'<span class="currency-'+t+" "+e+" "+e+"-"+t+'"></span>'}return""},getCurrencyPricePart:function(e,t){if("-"==e)return e;var n=r.getCurrencyImage(t);return e=r.stripPriceParts(e,!0),r.currencyPositionList.beforePrice.indexOf(window.aliwizPageData.currency.toLowerCase())>-1?n+e:e+n},isSupportedCurrency:function(){return r.currencySupported.indexOf(window.aliwizPageData.currency.toLowerCase())>-1}};i.default.get(["saCurrencyRate"],function(){var e=ye()(ve.a.mark((function e(t){var n;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.aliwizPageData.isTmall&&(!t.saCurrencyRate||1==t.saCurrencyRate&&"USD"!=window.aliwizPageData.currency)){e.next=4;break}r.currentRate=t.saCurrencyRate||1,e.next=8;break;case 4:return e.next=6,o.default.getCurrencyRate();case 6:n=e.sent,n=JSON.parse(n),r.currentRate=n.result?n.result[window.aliwizPageData.currency]:1;case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t.default=r},function(e,t,n){n.r(t);var r=n(7),s=n.n(r),l=n(4),c=n(14),u=n.n(c),d={userSampleNumber:"aliwiz-user-sample-number",userCid:"aliwiz-user-cid",initEventDate:"aliwiz-init-event-date"},p=function(){function e(){o(this,e),this.FEATURE_EVENT_ID="UA-142528268-4",this.TRACK_URL="https://www.google-analytics.com/collect",this.INIT_EVENT_DATE_RANGE=18e5,l.default.get([d.userSampleNumber,d.userCid,d.initEventDate],function(e){this.USER_SAMPLE_NUMBER=e[d.userSampleNumber]||this.getUserSampleNumber(),this.USER_SESSION_UUID=e[d.userCid]||this.getPseudoUUID(),this.INIT_EVENT_DATE=e[d.initEventDate]||this.getInitEventDate()}.bind(this))}return a(e,[{key:"getUserSampleNumber",value:function(){var e=Math.floor(100*Math.random())+1;return l.default.set(i({},d.userSampleNumber,e)),e}},{key:"isUserSampleValid",value:function(){return this.USER_SAMPLE_NUMBER<=100}},{key:"getPseudoUUID",value:function(){var e="f".concat((+new Date).toString(16)).concat((~~(1e8*Math.random())).toString(16));return l.default.set(i({},d.userCid,e)),e}},{key:"getStringifiedBody",value:function(e){for(var t=new URLSearchParams,n=0,i=b()(e);n<i.length;n++){var o=i[n];t.append(o[0],o[1])}return t.toString()}},{key:"getTrackBody",value:function(e){var t={v:1,t:"event",an:u.a.buildType,av:u.a.version,cd1:this.USER_SESSION_UUID,cid:this.USER_SESSION_UUID,tid:this.FEATURE_EVENT_ID},n=he()({},t,e);return this.getStringifiedBody(n)}},{key:"getInitEventDate",value:function(){return(new Date).getTime()-36e5}},{key:"isInitEventValid",value:function(){return(new Date).getTime()>this.INIT_EVENT_DATE+this.INIT_EVENT_DATE_RANGE}},{key:"setNewInitEvent",value:function(){var e=(new Date).getTime();this.INIT_EVENT_DATE=e,l.default.set(i({},d.initEventDate,e))}}]),e}(),f=new function(){var e=new p;function t(t){var n=e.getTrackBody(t);s()(e.TRACK_URL,"POST",{body:n})}this.trackInitEvent=function(n){if(e.isInitEventValid())return e.setNewInitEvent(),t(n)},this.trackBuyEvent=function(e){return e.eventValue=(100*e.eventValue).toFixed(2),t(e)},this.trackAffiliateErrorEvent=function(e,n){return t({ec:"errors",ea:"affiliate-link-failed",el:e,cd3:n})},this.trackEvent=function(n){if(e.isUserSampleValid())return"show"==n.ea?this.trackInitEvent(n):t(n)}};t.default=new function(){function e(e){f.trackEvent(e)}function t(){return window.aliwizPageData?window.aliwizPageData.category:null}function n(e){return I()(100*e)}this.initScreen=function(){e({t:"screenview"})},this.start=function(){e({ec:"widget",ea:"show",el:t()})},this.click=function(n){e({ec:"widget",ea:n,el:t()})},this.actionClick=function(t,n,i){e({ec:t,ea:n,el:i})},this.view=function(n){n.ec="widget",n.ea="view",n.el=t(),e(n)},this.buy=function(t,i){e({ec:"purchase-funnel",ea:"purchase-init",ev:n(t),cd2:i})},this.buyResult=function(t){e({ec:"purchase-funnel",ea:"purchase-successful",el:t})},this.addToCart=function(i){e({ec:"purchase-funnel",ea:"add-to-cart",el:t(),ev:n(i)})},this.loadError=function(t,n){e({ec:"errors",ea:t,el:n||"true"})},this.affiliateError=function(e,t){f.trackAffiliateErrorEvent(e,t)}}},function(e,t,n){n.r(t);var r=n(17);t.default=new(function(){function e(t){o(this,e),this.mono=t,this.onChanged=new r.default}return a(e,[{key:"handleChange",value:function(e,t,n){e.forEach(function(e){this.onChanged.dispatch(i({},e,{oldValue:t[e],newValue:n[e]}))}.bind(this))}},{key:"wrapValue",value:function(e){return A()({w:e})}},{key:"unwrapValue",value:function(e){return JSON.parse(e).w}},{key:"get",value:function(e,t){var n=this,i={},o={},r=GM_listValues();e||(e=r),M()(e)||(o=e,e=O()(e)),e.forEach((function(e){var t=!1,a=null;try{-1!==r.indexOf(e)&&(a=n.unwrapValue(GM_getValue(e)),t=!0)}catch(e){}!t&&o.hasOwnProperty(e)&&(a=o[e],t=!0),t&&(i[e]=a)})),t(i)}},{key:"set",value:function(e,t){var n=this,i=O()(e);this.get(i,(function(o){i.forEach((function(t){GM_setValue(t,n.wrapValue(e[t]))})),n.handleChange(i,o,e),t&&t()}))}},{key:"remove",value:function(e,t){var n=this;this.get(e,(function(i){e.forEach((function(e){GM_deleteValue(e)})),n.handleChange(e,i,{}),t&&t()}))}},{key:"clear",value:function(e){this.remove(GM_listValues(),e)}}]),e}())({})},function(e,t,n){var i=n(6);e.exports=new function(){var e=this;e.getPanelWrapper=function(e){return'n    <div id="static-wrapper" class="aliwiz-mini">n      <div id="relative-wrapper">'.concat(e.widgets,'</div>n      <div class="sa-l-panel">n        ').concat(this.getLogo(),'n        <div class="sa-panel-actions">n          <div class="sa-panel-buttons">n            ').concat(e.buttons,'n          </div>n        </div>n        <div class="sa-panel-mini-actions">n          ').concat(e.mini,"n        </div>n      </div>n    </div>")},e.getFrameWrapper=function(e){return'n    <div id="frame-wrapper">n      '.concat(e.widgets,"n    </div>")},e.getButton=function(e){return'n      <button data-href="'.concat(e.href,'" class="sa-c-btn ').concat(e.class||"",'" type="button">n        <span id="').concat(e.buttonId,'" class="sa-c-btn__main-text">').concat(e.buttonContent,'</span>n        <span class="sa-c-btn__secondary-text">').concat(e.buttonName,"</span>n      </button>")},e.getMiniButton=function(e,t){return'n      <div class="sa-c-mini-btn '.concat(e.class||"",'">n        ').concat(t,"n      </div>")},e.getLogo=function(){return'n    <div class="sa-c-logo">n      <img src="'.concat(i.logo,'" alt="AliWiz">n    </div>')},e.getWidgetHeader=function(e){return'n    <div class="sa-c-window__header">'.concat(e,"</div>")},e.getWidgetBody=function(e){return'n    <div class="sa-c-window__body">'.concat(e,"</div>")},e.getCloseButton=function(){return'n    <button class="sa-c-close-btn" type="button">n      <img src="'.concat(i.close,'" alt="Закрыть">n    </button>')},e.getWidget=function(t){return'n    <section id="'.concat(t.id,'" class="sa-l-modal ').concat(t.class||"",'">n      ').concat(e.getCloseButton(),"n      ").concat(e.getWidgetHeader(t.header),"n      ").concat(e.getWidgetBody(t.body),"n    </section>")}}},function(e,t){e.exports={rub:"data:image/svg+xml,%3Csvg height='100px' width='100px' fill='%23000000' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' viewBox='0 0 100 100' enable-background='new 0 0 100 100' xml:space='preserve'%3E%3Cpath fill='%23000000' d='M58.464,57.316c8.139,0,14.264-2.073,18.374-6.218C80.945,46.951,83,41.146,83,33.674 c0-7.468-2.055-13.277-6.163-17.421c-4.109-4.146-10.235-6.22-18.374-6.22H27.771v38.32H17.267v8.963h10.504v8.544H17.267v8.962 h10.504v15.211h10.644V74.822h28.746V65.86H38.415v-8.544H58.464z M38.415,18.998h16.462c6.05,0,10.477,1.251,13.277,3.754 c2.803,2.503,4.203,6.145,4.203,10.922c0,4.782-1.4,8.424-4.203,10.925c-2.8,2.503-7.227,3.754-13.277,3.754H38.415V18.998z'%3E%3C/path%3E%3C/svg%3E",usd:"data:image/svg+xml,%3Csvg height='100px' width='100px' fill='%23000000' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.854,12.481c-0.735-0.46-1.758-0.881-3.068-1.264c-1.31-0.382-2.251-0.807-2.822-1.276 C9.392,9.474,9.106,8.845,9.106,8.056c0-0.85,0.271-1.514,0.813-1.989c0.541-0.476,1.323-0.713,2.345-0.713 c0.979,0,1.758,0.321,2.333,0.964c0.576,0.643,0.864,1.51,0.864,2.601L15.46,9h2.372l0.001-0.08c0-1.582-0.401-2.829-1.205-3.74 c-0.804-0.91-1.927-1.455-3.371-1.632L13.25,3.547V1h-2v2.551C9.858,3.716,8.756,4.19,7.953,4.983 C7.132,5.794,6.721,6.832,6.721,8.098c0,1.243,0.419,2.268,1.257,3.075c0.838,0.806,2.172,1.461,4.002,1.963 c1.315,0.394,2.249,0.834,2.804,1.32c0.553,0.487,0.831,1.085,0.831,1.795c0,0.842-0.323,1.506-0.967,1.992 c-0.645,0.486-1.53,0.729-2.656,0.729c-1.151,0-2.041-0.289-2.668-0.868s-0.94-1.405-0.94-2.478H6c0,1.528,0.453,2.738,1.359,3.63 c0.883,0.869,2.101,1.37,3.641,1.517V23h2v-2.21l0.025-0.001c1.572-0.147,2.795-0.617,3.667-1.413 C17.563,18.581,18,17.531,18,16.227c0-0.818-0.175-1.532-0.522-2.143C17.13,13.475,16.588,12.94,15.854,12.481z'%3E%3C/path%3E%3C/svg%3E",close:"data:image/svg+xml,%3Csvg width='15' height='16' viewBox='0 0 15 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12.984 13.8284L13.2794 14.1239L13.8705 13.533L13.575 13.2375L8.0269 7.68775L13.5763 2.13672L13.8717 1.84121L13.2807 1.25036L12.9853 1.54587L7.43605 7.09672L1.88645 1.54551L1.59102 1.25L1 1.84085L1.29543 2.13637L6.8452 7.68775L1.2967 13.2379L1.00127 13.5334L1.5923 14.1242L1.88772 13.8287L7.43605 8.27877L12.984 13.8284Z' fill='%23ffffff'/%3E%3Cpath d='M13.2794 14.1239L12.8362 14.567L13.2793 15.0103L13.7226 14.5671L13.2794 14.1239ZM12.984 13.8284L13.4273 13.3852L12.984 13.8284ZM13.8705 13.533L14.3136 13.9763L14.7569 13.5331L14.3137 13.0899L13.8705 13.533ZM13.575 13.2375L14.0183 12.7944L13.575 13.2375ZM8.0269 7.68775L7.58363 7.24461L7.14062 7.68775L7.58363 8.13089L8.0269 7.68775ZM13.5763 2.13672L13.133 1.69358L13.133 1.69358L13.5763 2.13672ZM13.8717 1.84121L14.315 2.28435L14.7582 1.84108L14.3149 1.39794L13.8717 1.84121ZM13.2807 1.25036L13.7239 0.807089L13.2806 0.363949L12.8374 0.807218L13.2807 1.25036ZM12.9853 1.54587L13.4286 1.98901V1.98901L12.9853 1.54587ZM7.43605 7.09672L6.99278 7.53986L7.43605 7.98326L7.87932 7.53986L7.43605 7.09672ZM1.88645 1.54551L2.32972 1.10237L2.32972 1.10237L1.88645 1.54551ZM1.59102 1.25L2.03429 0.806859L1.59115 0.363592L1.14788 0.806732L1.59102 1.25ZM1 1.84085L0.55686 1.39759L0.113592 1.84073L0.556731 2.28399L1 1.84085ZM1.29543 2.13637L0.852158 2.57951L0.852158 2.57951L1.29543 2.13637ZM6.8452 7.68775L7.28847 8.13089L7.73148 7.68775L7.28847 7.24461L6.8452 7.68775ZM1.2967 13.2379L1.73997 13.681L1.73997 13.681L1.2967 13.2379ZM1.00127 13.5334L0.558002 13.0902L0.114861 13.5335L0.55813 13.9766L1.00127 13.5334ZM1.5923 14.1242L1.14916 14.5675L1.59242 15.0106L2.03556 14.5674L1.5923 14.1242ZM1.88772 13.8287L1.44445 13.3856H1.44445L1.88772 13.8287ZM7.43605 8.27877L7.87932 7.83563L7.43605 7.39223L6.99278 7.83563L7.43605 8.27877ZM13.7227 13.6807L13.4273 13.3852L12.5408 14.2715L12.8362 14.567L13.7227 13.6807ZM13.4273 13.0897L12.8363 13.6806L13.7226 14.5671L14.3136 13.9763L13.4273 13.0897ZM13.1318 13.6806L13.4272 13.9762L14.3137 13.0899L14.0183 12.7944L13.1318 13.6806ZM7.58363 8.13089L13.1318 13.6806L14.0183 12.7944L8.47017 7.24461L7.58363 8.13089ZM13.133 1.69358L7.58363 7.24461L8.47017 8.13089L14.0196 2.57986L13.133 1.69358ZM13.4285 1.39807L13.133 1.69358L14.0196 2.57986L14.315 2.28435L13.4285 1.39807ZM12.8376 1.69363L13.4286 2.28448L14.3149 1.39794L13.7239 0.807089L12.8376 1.69363ZM13.4286 1.98901L13.724 1.6935L12.8374 0.807218L12.542 1.10273L13.4286 1.98901ZM7.87932 7.53986L13.4286 1.98901L12.542 1.10273L6.99278 6.65358L7.87932 7.53986ZM1.44318 1.98865L6.99278 7.53986L7.87932 6.65358L2.32972 1.10237L1.44318 1.98865ZM1.14776 1.69314L1.44318 1.98865L2.32972 1.10237L2.03429 0.806859L1.14776 1.69314ZM1.44314 2.28412L2.03416 1.69327L1.14788 0.806732L0.55686 1.39759L1.44314 2.28412ZM1.7387 1.69323L1.44327 1.39771L0.556731 2.28399L0.852158 2.57951L1.7387 1.69323ZM7.28847 7.24461L1.7387 1.69323L0.852158 2.57951L6.40193 8.13089L7.28847 7.24461ZM1.73997 13.681L7.28847 8.13089L6.40193 7.24461L0.853429 12.7947L1.73997 13.681ZM1.44454 13.9765L1.73997 13.681L0.85343 12.7947L0.558002 13.0902L1.44454 13.9765ZM2.03544 13.681L1.44441 13.0901L0.55813 13.9766L1.14916 14.5675L2.03544 13.681ZM1.44445 13.3856L1.14903 13.6811L2.03556 14.5674L2.33099 14.2719L1.44445 13.3856ZM6.99278 7.83563L1.44445 13.3856L2.33099 14.2719L7.87932 8.72191L6.99278 7.83563ZM13.4273 13.3852L7.87932 7.83563L6.99278 8.72191L12.5408 14.2715L13.4273 13.3852Z' fill='%23ffffff'/%3E%3C/svg%3E%0An",dotbad:"data:image/svg+xml,%3Csvg width='7' height='7' viewBox='0 0 7 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23E92D2D'/%3E%3C/svg%3E%0A",dotgood:"data:image/svg+xml,%3Csvg width='7' height='7' viewBox='0 0 7 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%2336BA7B'/%3E%3C/svg%3E%0A",dotwarn:"data:image/svg+xml,%3Csvg width='7' height='7' viewBox='0 0 7 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23F97B07'/%3E%3C/svg%3E",errorcloud:"data:image/svg+xml,%3Csvg width='111' height='74' viewBox='0 0 111 74' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M82.6606 20.4027C76.4819 -4.42444 40.2934 -7.49134 30.143 16.1674C20.581 17.3358 12.6371 24.3456 10.5781 33.6923C-7.81062 44.2074 -1.04353 73.9999 21.7582 73.9999H89.2802C113.112 73.9999 118.996 41.8705 98.5483 32.6698C95.6059 26.244 89.5746 21.7167 82.6606 20.4027ZM66.0043 34.8192C66.0043 32.1903 68.2109 29.9999 70.8588 29.9999C73.3598 29.9999 75.5663 32.1903 75.5663 34.8192C75.5663 37.3021 73.3598 39.4925 70.8588 39.4925C68.2109 39.4925 66.0043 37.3021 66.0043 34.8192ZM32.7582 54.243C30.4047 56.5795 34.082 60.0843 36.289 57.7479C40.8491 53.0746 49.2343 51.3221 55.56 51.3221C62.0326 51.3221 70.2704 53.0746 74.978 57.7479C77.1845 60.0843 80.7153 56.5795 78.5087 54.243C72.9184 48.5472 63.3564 46.3563 55.56 46.3563C47.7631 46.3563 38.3481 48.5472 32.7582 54.243ZM40.4076 29.9999C43.0556 29.9999 45.2621 32.1903 45.2621 34.8192C45.2621 37.3021 43.0556 39.4925 40.4076 39.4925C37.7597 39.4925 35.7001 37.3021 35.7001 34.8192C35.7001 32.1903 37.7597 29.9999 40.4076 29.9999Z' fill='%23F5F5F5'/%3E%3C/svg%3En",logo:"data:image/svg+xml,%3Csvg width='34' height='29' viewBox='0 0 34 29' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath opacity='0.8' fill-rule='evenodd' clip-rule='evenodd' d='M2.26214 3.74195C2.83074 3.74195 3.33889 3.47781 3.67518 3.06322C4.08112 3.31098 5.06475 3.93026 5.67704 4.47489C6.31682 5.04397 7.06848 5.99168 7.41542 6.4451C5.25196 8.83966 3.75166 11.9889 3.32928 15.4357C1.95453 29.0003 10.2449 29.0003 17.0798 29.0003C23.9147 29.0003 33.3373 28.5742 31.2893 15.4357C30.7206 11.7874 29.3761 8.84853 27.5156 6.65145C27.7119 6.38777 28.6416 5.1583 29.4099 4.47489C29.7972 4.13042 30.333 3.75608 30.7772 3.46478C31.0566 3.64054 31.3857 3.74195 31.738 3.74195C32.7506 3.74195 33.5715 2.90428 33.5715 1.87097C33.5715 0.837664 32.7506 0 31.738 0C30.79 0 30.01 0.734303 29.9144 1.67598C29.4883 1.91924 28.976 2.27153 28.4155 2.77852C27.1266 3.94449 26.4384 5.00235 26.24 5.33141C23.7133 3.04415 20.5026 1.87116 17.0798 1.87116C13.9981 1.87116 11.0864 3.10733 8.73382 5.15092C8.44297 4.70247 7.77895 3.78041 6.67144 2.77852C5.25812 1.49999 4.1508 1.20525 3.95932 1.16189C3.68553 0.480179 3.02879 0 2.26214 0C1.24957 0 0.428711 0.837664 0.428711 1.87097C0.428711 2.90428 1.24957 3.74195 2.26214 3.74195Z' fill='%23A2D0E4'/%3E%3Cellipse cx='17.1738' cy='14.7654' rx='6.03027' ry='6.12427' fill='%23FBFBFB'/%3E%3Cellipse opacity='0.8' cx='17.1738' cy='14.7656' rx='2.31934' ry='2.35549' fill='%233E89A9'/%3E%3Cellipse cx='15.8359' cy='13.3517' rx='0.669908' ry='0.68035' fill='white'/%3E%3Crect width='10.2051' height='0.942195' transform='matrix(1 0 0 -1 12.0713 23.7163)' fill='white'/%3E%3C/svg%3E",sellerbad:"data:image/svg+xml,%3Csvg width='35' height='35' viewBox='0 0 35 35' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.5 35C27.165 35 35 27.165 35 17.5C35 7.83502 27.165 0 17.5 0C7.83502 0 0 7.83502 0 17.5C0 27.165 7.83502 35 17.5 35Z' fill='%23E92D2D'/%3E%3Cpath d='M17.5002 21.6588C14.5777 21.6588 11.8324 22.7985 9.76523 24.8635C9.33867 25.2901 9.33867 25.9835 9.76523 26.4101C10.1918 26.8366 10.8852 26.8366 11.3118 26.4101C14.6171 23.1026 20.379 23.1026 23.6865 26.4101C24.113 26.8366 24.8065 26.8366 25.233 26.4101C25.6596 25.9835 25.6596 25.2901 25.233 24.8635C23.168 22.7985 20.4227 21.6588 17.5002 21.6588Z' fill='white'/%3E%3Cpath d='M10.9375 15.3125C12.1456 15.3125 13.125 14.3331 13.125 13.125C13.125 11.9169 12.1456 10.9375 10.9375 10.9375C9.72938 10.9375 8.75 11.9169 8.75 13.125C8.75 14.3331 9.72938 15.3125 10.9375 15.3125Z' fill='white'/%3E%3Cpath d='M24.0625 15.3125C25.2706 15.3125 26.25 14.3331 26.25 13.125C26.25 11.9169 25.2706 10.9375 24.0625 10.9375C22.8544 10.9375 21.875 11.9169 21.875 13.125C21.875 14.3331 22.8544 15.3125 24.0625 15.3125Z' fill='white'/%3E%3C/svg%3En",sellergood:"data:image/svg+xml,%3Csvg width='35' height='35' viewBox='0 0 35 35' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.5 35C27.165 35 35 27.165 35 17.5C35 7.83502 27.165 0 17.5 0C7.83502 0 0 7.83502 0 17.5C0 27.165 7.83502 35 17.5 35Z' fill='%2336BA7B'/%3E%3Cpath d='M10.9375 15.3125C12.1456 15.3125 13.125 14.3331 13.125 13.125C13.125 11.9169 12.1456 10.9375 10.9375 10.9375C9.72938 10.9375 8.75 11.9169 8.75 13.125C8.75 14.3331 9.72938 15.3125 10.9375 15.3125Z' fill='white'/%3E%3Cpath d='M24.0625 15.3125C25.2706 15.3125 26.25 14.3331 26.25 13.125C26.25 11.9169 25.2706 10.9375 24.0625 10.9375C22.8544 10.9375 21.875 11.9169 21.875 13.125C21.875 14.3331 22.8544 15.3125 24.0625 15.3125Z' fill='white'/%3E%3Cpath d='M17.5002 28.4374C14.5777 28.4374 11.8324 27.2977 9.76523 25.2327C9.33867 24.8061 9.33867 24.1127 9.76523 23.6861C10.1918 23.2596 10.8852 23.2596 11.3118 23.6861C14.6171 26.9936 20.379 26.9936 23.6865 23.6861C24.113 23.2596 24.8065 23.2596 25.233 23.6861C25.6596 24.1127 25.6596 24.8061 25.233 25.2327C23.168 27.2977 20.4227 28.4374 17.5002 28.4374Z' fill='white'/%3E%3C/svg%3En",sellerwarn:"data:image/svg+xml,%3Csvg width='35' height='35' viewBox='0 0 35 35' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.5 35C27.165 35 35 27.165 35 17.5C35 7.83502 27.165 0 17.5 0C7.83502 0 0 7.83502 0 17.5C0 27.165 7.83502 35 17.5 35Z' fill='%23F97B07'/%3E%3Cpath d='M9.39014 23.2624C9.39014 22.6731 9.86788 22.1953 10.4572 22.1953H24.5426C25.1319 22.1953 25.6096 22.6731 25.6096 23.2624C25.6096 23.8517 25.1319 24.3295 24.5426 24.3295H10.4572C9.86788 24.3295 9.39014 23.8517 9.39014 23.2624Z' fill='white'/%3E%3Cpath d='M10.9375 15.3125C12.1456 15.3125 13.125 14.3331 13.125 13.125C13.125 11.9169 12.1456 10.9375 10.9375 10.9375C9.72938 10.9375 8.75 11.9169 8.75 13.125C8.75 14.3331 9.72938 15.3125 10.9375 15.3125Z' fill='white'/%3E%3Cpath d='M24.0625 15.3125C25.2706 15.3125 26.25 14.3331 26.25 13.125C26.25 11.9169 25.2706 10.9375 24.0625 10.9375C22.8544 10.9375 21.875 11.9169 21.875 13.125C21.875 14.3331 22.8544 15.3125 24.0625 15.3125Z' fill='white'/%3E%3C/svg%3En",trash:"data:image/svg+xml,%3Csvg width='16' height='20' viewBox='0 0 16 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.33334 17.7778C1.33334 19 2.33334 20 3.55556 20H12.4445C13.6667 20 14.6667 19 14.6667 17.7778V4.44444H1.33334V17.7778ZM15.7778 1.11111H11.8889L10.7778 0H5.22223L4.11112 1.11111H0.222229V3.33333H15.7778V1.11111Z' fill='%23999999'/%3E%3C/svg%3En",minitrianglebad:"data:image/svg+xml,%3Csvg width='24' height='20' viewBox='0 0 24 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0L23.2583 19.5H0.74167L12 0Z' fill='%23FF8585' fill-opacity='0.41'/%3E%3C/svg%3E%0A",minitrianglegood:"data:image/svg+xml,%3Csvg width='24' height='20' viewBox='0 0 24 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 20L23.2583 0.5H0.74167L12 20Z' fill='%2336BA7B' fill-opacity='0.21'/%3E%3C/svg%3E%0A"}},function(e,t){e.exports=function(e,t,n){return new P.a((function(i,o){var r={method:t,url:e,onload:function(e){i(e.responseText)},onerror:o,onabort:o,ontimeout:o};r.headers=n.headers,"POST"==t&&(r.data=n.body),GM_xmlhttpRequest(r)}))}},function(e,t,n){var o,r,a,s,l;n.r(t);var c=n(6),u=n.n(c),d=n(0),p=n.n(d),f=(i(o={},p.a.GOOD,"sa-c-seller__list-item--good"),i(o,p.a.BAD,"sa-c-seller__list-item--bad"),i(o,p.a.WARN,"sa-c-seller__list-item--warn"),i(o,p.a.WEAK,"sa-c-seller__list-item--warn"),i(o,p.a.NOT_INFO,"sa-c-seller__list-item--unknown"),o),m=(i(r={},p.a.GOOD,"sa-c-seller--good"),i(r,p.a.BAD,"sa-c-seller--bad"),i(r,p.a.WARN,"sa-c-seller--warn"),i(r,p.a.WEAK,"sa-c-seller--warn"),i(r,p.a.NOT_INFO,"sa-c-seller--unknown"),r),h=(i(a={},p.a.GOOD,u.a.sellergood),i(a,p.a.BAD,u.a.sellerbad),i(a,p.a.WARN,u.a.sellerwarn),i(a,p.a.WEAK,u.a.sellerwarn),a),g=(i(s={},p.a.GOOD,"button-status-good"),i(s,p.a.BAD,"button-status-bad"),i(s,p.a.NOT_INFO,"button-status-notinfo"),i(s,p.a.WARN,"button-status-warn"),i(s,p.a.WEAK,"button-status-warn"),s),v=(i(l={},p.a.GOOD,"bookmark-change-good"),i(l,p.a.BAD,"bookmark-change-bad"),i(l,p.a.NOT_INFO,"bookmark-change-notinfo"),l);t.default={SELLER_DESCRIPTION_CSS_CLASSES:f,SELLER_TITLE_CSS_CLASSES:m,SELLER_TITLE_IMAGE_PATHS:h,BUTTON_CSS_CLASSES:g,BOOKMARK_CHANGE_CLASSES:v}},function(e,t,n){n.r(t);var i=n(1),o=n(0),r=n.n(o),a=n(3),s=n(4),c={classes:{},ids:{},fakeData:"It's okay. It's okay. It's just a check that you're not a bot",scripts:{chartDataScript:"Highcharts.setOptions",chartDataUsdDataFirst:"US $ price',",chartDataUsdDataLast:"]]",chartDataUsdDataRemove:20,chartDataUsdDataSplit:"],["}};function u(e){var t=e.toString();return t=t.substring(0,t.toString().indexOf(".")+3),l()(t)}t.default=new function(){var e=new DOMParser;this.parseReviews=function(t){try{var n=e.parseFromString(t,"text/html");return{reviews:de()(Object(i.$$)(".feedback-item",n)).map((function(e){return e.innerHTML})),images:de()(Object(i.$$)(".feedback-item .pic-view-item img",n)).map((function(e){return e.src})),next:Object(i.$)(".ui-pagination-next:not(.ui-pagination-disabled)",n)}}catch(e){return a.default.loadError("images-not-loaded"),{}}},this.parseProductPageForPrice=function(t){var n=e.parseFromString(t,"text/html");return Object(i.$)(".current-price.bold",n).innerHTML},this.parseProductPage=function(){try{var e=document.location.pathname.split("/");e=e[e.length-1],(e=I()(e.split(".html")[0],10))||(e=(e=document.location.href.split("productId=")[1]).split("&")[0]);var t=function(){var e=document.head.innerHTML.split('data-locale="');return(e=!!e[1]&&e[1].substring(0,2))||(e=!!(e=document.body.innerHTML.split('locale: "'))[1]&&e[1].substring(0,2)),e}(),n=function(){var e=Object(i.$)('span[itemprop="priceCurrency"]');return(e=!!e&&e.getAttribute("content"))||(e=!!(e=document.body.innerHTML.split('"g11n:currency":"'))[1]&&e[1].substring(0,3)),e}(),o=function(){function e(e){var t;return e.indexOf(".html")>-1?(t=e.split(".html")[0]).substring(t.lastIndexOf("/")+1):(t=e.split("SearchText=")[1]).split("&")[0]}var t=2,n=Object(i.$)(".breadcrumb");if(n||(t=1,n=Object(i.$)(".ui-breadcrumb-tmall .container")),n||(t=2,n=Object(i.$)(".ui-breadcrumb .container")),!n)return"";for(var o=Object(i.$$)("a",n),r=[],a=t;a<o.length;a++)r.push(e(o[a].href));return r.join("_")}(),r=document.body.innerHTML.split("ownerMemberId=");r=(r=r[1]?r[1].split("&")[0]:!!(r=document.body.innerHTML.split('"sellerAdminSeq":'))[1]&&I()(r[1].split(",")[0],10))?I()(r,10):r;var c=document.body.innerHTML.split('categoryId="');c=(c=c[1]?c[1].split('"')[0]:!!(c=document.body.innerHTML.split('"categoryId":'))[1]&&I()(c[1].split(",")[0],10))?I()(c,10):c;var u=Object(i.$)(".magnifier-image, .ui-image-viewer-thumb-frame img");u=!!u&&u.src;var d=Object(i.$)(".product-title, .product-name");d=!!d&&d.textContent;var p=function(){var e=Object(i.$)('.product-price-value[itemprop="price"]'),t="";return t=e?e.innerHTML.split(" - ").map((function(e){return e}))[0]:Object(i.$)(".p-price-content span").innerHTML,Object(i.$)(".p-price-content span span")&&(t=Object(i.$)(".p-price-content span span").innerHTML),"."==(t=(t=t.toString().replace(/[^d.|^d,]/g,"")).replace(",","."))[t.length-1]&&(t=t.substring(0,t.length-1)),t}(),f=document.body.innerHTML.split('actSkuCalPrice":"')[1],m=document.body.innerHTML.split('actSkuMultiCurrencyCalPrice":"')[1],h=null;f&&m&&(f=l()(f.substring(0,f.indexOf('"')).replace(",","")),m=l()(m.substring(0,m.indexOf('"'))),"USD"!=n?f!=m&&(h=m/f,s.default.set({saCurrencyRate:h})):s.default.set({saCurrencyRate:1}));var g=document.location.href,v=g.indexOf("tmall.ru")>-1;return{productId:e,ownerMemberId:r,categoryId:c,productImage:u,productTitle:d,currency:n,locale:t,price:p,category:o,link:g,currencyRate:h,isTmall:v}}catch(p){a.default.loadError("page-not-parsed")}},this.sellerRating=function(t){try{var n=e.parseFromString(t,"text/html"),o=Object(i.$)(".summary-tb tr:nth-child(3) td",n).textContent.trim(),s=(S=new Date(o),C=C||new Date,Math.round((C.getTime()-S.getTime())/31536e6*100)/100),c=Object(i.$)(".middle-seller table tr:nth-child(1) .dsr-text em",n);c=c?l()(c.textContent):0;var u=Object(i.$)(".middle-seller table tr:nth-child(2) .dsr-text em",n);u=u?l()(u.textContent):0;var d=Object(i.$)(".middle-seller table tr:nth-child(3) .dsr-text em",n),p={description:u,communication:c,shipping:d=d?l()(d.textContent):0},f=Object(i.$)(".middle-seller table tr:nth-child(1) .compare-low",n)?"-":"",m=Object(i.$)(".middle-seller table tr:nth-child(1) .compare-info em",n);m=m?f+m.textContent:"0",!(c=l()(m.split("%")[0]))&&m.toLowerCase().indexOf("equal")>-1&&(c=0);var h=Object(i.$)(".middle-seller table tr:nth-child(2) .compare-low",n)?"-":"",g=Object(i.$)(".middle-seller table tr:nth-child(2) .compare-info em",n);g=g?h+g.textContent:"0",!(u=l()(g.split("%")[0]))&&g.toLowerCase().indexOf("equal")>-1&&(u=0);var v=Object(i.$)(".middle-seller table tr:nth-child(3) .compare-low",n)?"-":"",b=Object(i.$)(".middle-seller table tr:nth-child(3) .compare-info em",n);b=b?v+b.textContent:"0",!(d=l()(b.split("%")[0]))&&b.toLowerCase().indexOf("equal")>-1&&(d=0);var y={description:u,communication:c,shipping:d},x={},k={};for(var w in x.positive=I()(Object(i.$)("a[value=positive-3]",n).textContent.replace(/.|,/g,""),10)||0,x.neutral=I()(Object(i.$)("a[value=neutral-3]",n).textContent.replace(/.|,/g,""),10)||0,x.negative=I()(Object(i.$)("a[value=negative-3]",n).textContent.replace(/.|,/g,""),10)||0,x.total=x.positive+x.negative+x.neutral,x)"total"!==w&&(k[w]=Math.round(100/x.total*x[w]*100)/100);var A=80-Math.min(60,2*k.negative)+Math.min(5,s)+Math.min(5,y.description)+Math.min(5,y.communication)+Math.min(5,y.shipping);return{score:A=I()(100*A,10)/100,age:s,rating:p,average:y,date:o,feedback:x,feedbackRate:k,status:x.total<20?r.a.NOT_INFO:A>=75?r.a.GOOD:A>=65?r.a.WEAK:A>=55?r.a.WARN:r.a.BAD}}catch(e){return a.default.loadError("seller-info-not-loaded"),{score:"-",status:r.a.NOT_INFO}}var S,C},this.aliradar=function(e){try{e=JSON.parse(e)}catch(t){e.error=!0}if(e.error||!e.length||e.length<4)return a.default.loadError("price-not-loaded","aliradar_error"),{};var t=[];e.forEach((function(e){t.push({date:new Date(e.date).getTime(),price:e.min})}));var n={prices:[],dates:[],values:t,type:"aliradar"};return function(e){var t=e.values,n=6048e5;t.length<30?n=1728e5:t.length<10&&(n=0);for(var i=0,o=0,r=t.length-1;r>0&&!(e.prices.length>=9);r--){var a=t[r],s=a.date,l=e.dates[0],c=a.price;if(l&&s+n>l)i+=c,o+=1;else{var d=i/o||c;d=u(d),e.prices.push(d),e.dates.unshift(s),i=0,o=0}}e.prices.reverse()}(n),n},this.pricearchive=function(t,n){var i=c;if(t.indexOf("https://www.pricearchive.org/aliexpress.com/item/"+n)<0)return a.default.loadError("price-not-loaded","pricearchive_error"),{};function o(e){return e.text.indexOf(i.scripts.chartDataScript)>-1}var r=e.parseFromString(t,"text/html"),s=r.scripts[r.scripts.length-1];if(!s)return a.default.loadError("price-not-loaded","pricearchive_error"),{};if(o(s)||(s=function(e){var t=null;return(void 0).forEach((function(e){o(e)&&(t=e)})),t}()),!s)return a.default.loadError("price-not-loaded","pricearchive_error"),{};var d=s.text,p=d.substring(d.indexOf(i.scripts.chartDataUsdDataFirst),d.indexOf(i.scripts.chartDataUsdDataLast)+1).substring(i.scripts.chartDataUsdDataRemove).split(i.scripts.chartDataUsdDataSplit);if(p.length<4)return a.default.loadError("price-not-loaded","pricearchive_error"),{};var f={prices:[],dates:[],values:p,type:"pricearchive"};return function(e){var t=e.values,n=6048e5;t.length<30?n=1728e5:t.length<10&&(n=0);for(var i=0,o=0,r=t.length-1;r>0&&!(e.prices.length>=9);r--){var a=t[r];if(!(a.indexOf("null")>-1)){var s=a.split(","),c=l()(s[0].replace(/[^d-]/g,"")),d=e.dates[0],p=l()(s[1].replace(/[^d.|^d,-]/g,""));if(d&&c+n>d)i+=p,o+=1;else{var f=i/o||p;f=u(f),e.prices.push(f),e.dates.unshift(c),i=0,o=0}}}e.prices.reverse()}(f),f},this.getPricesForBackend=function(e,t){if("aliradar"==t)return e;for(var n=[],i=e.length>365?365:e.length,o=0;o<i;o++){var r=e[o];if(!(r.indexOf("null")>-1)){var a=r.split(","),s=l()(a[0].replace(/[^d-]/g,"")),c=l()(a[1].replace(/[^d.|^d,-]/g,""));n.push({price:c,date:s})}}return n}}},function(e,t,n){n.r(t);var i=n(9),o=n(7),r=n.n(o),a=n(3);t.default=new function(){this.getProductPriceData=function(){var e=ye()(ve.a.mark((function e(t){var n,o;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="https://m.aliexpress.com/item/".concat(t,".html"),e.next=3,r()(n,"GET",{credentials:"include"});case 3:return o=e.sent,e.next=6,i.default.parseProductPageForPrice(o,!0);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getPriceData=function(){var e=ye()(ve.a.mark((function e(t){var n,o;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r()("https://www.pricearchive.org/aliexpress.com/item/"+t,"GET",{});case 2:return n=e.sent,e.next=5,i.default.pricearchive(n,t);case 5:if(e.t0=!(o=e.sent).prices,e.t0){e.next=8;break}e.t0=!o.prices.length;case 8:if(!e.t0){e.next=12;break}return e.next=11,this.getAliradarPriceData(t);case 11:o=e.sent;case 12:return e.abrupt("return",o);case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),this.getAliradarPriceData=function(){var e=ye()(ve.a.mark((function e(t){var n;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r()("https://api.aliradar.com/v2/items/ali/"+t+"/prices","GET",{});case 2:return n=e.sent,e.next=5,i.default.aliradar(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getSellerData=function(){var e=ye()(ve.a.mark((function e(t){var n;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r()("https://feedback.aliexpress.com/display/evaluationDetail.htm?memberType=seller&ownerMemberId=".concat(t),"GET",{credentials:"include"});case 2:return n=e.sent,e.next=5,i.default.sellerRating(n);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getSimilarData=function(){var e=ye()(ve.a.mark((function e(t,n){var i;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r()("https://gpsfront.aliexpress.com/getI2iRecommendingResults.do?currentItemList=".concat(t,"&categoryId=").concat(n,"&scenario=pcDetailFavMayLike"),"GET",{credentials:"include"});case 3:return i=e.sent,e.next=6,JSON.parse(i);case 6:return e.abrupt("return",e.sent.results);case 9:return e.prev=9,e.t0=e.catch(0),e.abrupt("return",(a.default.loadError("similar-items-not-loaded"),[]));case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t,n){return e.apply(this,arguments)}}(),this.getReviewData=function(){var e=ye()(ve.a.mark((function e(t,n){var o,a;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new URLSearchParams({productId:n,ownerMemberId:t,withPictures:!0,memberType:"seller",i18n:!0,withPersonalInfo:!1,withAdditionalFeedback:!1,onlyFromMyCountry:!1,v:2}).toString(),e.next=3,r()("https://feedback.aliexpress.com/display/productEvaluation.htm?"+o,"GET",{credentials:"include",headers:{"content-type":"application/x-www-form-urlencoded"}});case 3:return a=e.sent,e.next=6,i.default.parseReviews(a);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}},function(e,t,n){n.r(t);var r=n(10),s=n(4),c=n(3),u=n(8),d=n(0),p=n.n(d),f=n(2);t.default=new(function(){function e(){o(this,e),this.storageKey="bookmarks",this.updateDelay=864e5,this.data={bookmarks:[]},this.bookmarkController={},this.priceController={},this.panel={}}return a(e,[{key:"checkBookmark",value:(d=ye()(ve.a.mark((function e(t){var n;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.default.getProductPriceData(t.id);case 2:n=e.sent,(n=f.default.stripPriceParts(n,!0))!=t.price&&this.updateBookmark(t,{price:n});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"getById",value:function(e){return this.data.bookmarks.filter((function(t){return t.id===e}))[0]}},{key:"getBookmarkObject",value:function(){return{id:window.aliwizPageData.productId,price:f.default.stripPriceParts(window.aliwizPageData.price,!0),image:window.aliwizPageData.productImage,title:window.aliwizPageData.productTitle,link:window.aliwizPageData.link,category:window.aliwizPageData.category,updated:new Date,priceChange:0,description:"",class:""}}},{key:"checkBookmarksForUpdate",value:function(){var e=(new Date).getTime();this.data.bookmarks.forEach(function(t){new Date(t.updated).getTime()+this.updateDelay<e&&this.checkBookmark(t)}.bind(this))}},{key:"updateBookmark",value:function(e,t){var n=f.default.stripPriceParts(t.price);e.price!=n&&(this.calculateBookmarkChange(e,n),e.price=f.default.stripPriceParts(t.price),e.updated=new Date,s.default.set(i({},this.storageKey,this.data.bookmarks)))}},{key:"calculateBookmarkChange",value:function(e,t){e.priceChange=l()(e.price)-l()(t.price),e.priceChange=f.default.floatPrice(e.priceChange),e.priceChange<0?(e.description=i18n("price_increased",e.priceChange,"bookmark-change-currency"),e.class=u.default.BOOKMARK_CHANGE_CLASSES[p.a.BAD]):e.priceChange>0?(e.description=i18n("price_dropped",e.priceChange,"bookmark-change-currency"),e.class=u.default.BOOKMARK_CHANGE_CLASSES[p.a.GOOD]):(e.description=i18n("price_unchanged"),e.class=u.default.BOOKMARK_CHANGE_CLASSES[p.a.NOT_INFO])}},{key:"toggleBookmark",value:function(){var e=this.getById(window.aliwizPageData.productId);e?this.removeBookmark(e.id):this.addBookmark()}},{key:"addBookmark",value:function(){var e=this.getBookmarkObject();this.getById(e.id)||(c.default.actionClick("bookmarks","add",e.category),this.data.bookmarks.push(e),s.default.set(i({},this.storageKey,this.data.bookmarks)))}},{key:"removeBookmark",value:function(e){e=I()(e),this.getBookmarkObject();var t=null,n=this.data.bookmarks.filter((function(n){return I()(n.id)===I()(e)&&(t=n),n.id!=e}));c.default.actionClick("bookmarks","remove",t.category),s.default.set(i({},this.storageKey,n))}},{key:"updateBookmarks",value:(n=ye()(ve.a.mark((function e(t,n,i){var o,r;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.bookmarks){e.next=6;break}return e.next=3,this.updateData();case 3:this.bookmarkController.refresh(this.panel,this.data),o=(t=t.bookmarks).oldValue||[],r=t.newValue||[],this.priceController.refresh(r.length>=o.length,r.length);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,i){return n.apply(this,arguments)})},{key:"setBookmarkController",value:function(e){this.bookmarkController=e}},{key:"setPanel",value:function(e){this.panel=e}},{key:"setPriceController",value:function(e){this.priceController=e}},{key:"updateData",value:function(){return new P.a(function(e,t){s.default.get([this.storageKey],function(t){this.data=t.bookmarks?t:{bookmarks:[]},this.checkBookmarksForUpdate(),e()}.bind(this))}.bind(this))}},{key:"initPriceButtons",value:function(){var e=this.getById(window.aliwizPageData.productId);this.priceController.refresh(!!e,this.data.bookmarks.length)}},{key:"init",value:(t=ye()(ve.a.mark((function e(){var t;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.updateData();case 2:(t=this.getById(window.aliwizPageData.productId))&&this.updateBookmark(t,window.aliwizPageData),s.default.onChanged.addListener(this.updateBookmarks.bind(this));case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e;var t,n,d}())},function(e,t,n){var i=n(6);e.exports=function(){return'#sa-panel {n  position: fixed;ntz-index: 9999;ntleft: 20px;ntbottom: 20px;n  }n  .sa-panel-actions {n      width: 350px;n      display: inline-block;n      opacity: 1;n      transition: opacity 0.2s ease-in-out;n      height: 48px;n      margin-left: 6px;n  }nn  .sa-panel-buttons {n      display: flex;n      width: 100%;n      height: 100%;n  }nn  .sa-c-close-btn {n      width: 26px;n      height: 26px;n      border-radius: 14px;n      background-color: rgba(0,0,0, 0.25);n      border: 0;n  }nn  .sa-l-modal .sa-c-close-btn {n      position: absolute;n      top: -42px;n      right: 0;n  }nn  .sa-c-close-btn:hover {n      cursor: pointer;n      background-color: rgba(0,0,0, .5);n  }nn  .sa-c-close-btn  > img {n      height: 16px;n      width: 16px;n      position: relative;n      top: 2px;n      left: -1px;n  }nn  .sa-c-btn {n      padding: 8px;n      border: 0;n      margin-left: 2px;n      cursor: pointer;n      width: auto;n      background: #fff;n      display: flex;n      flex-grow: 1;n      flex-direction: column;n      align-items: center;n      border-radius: 4px;n      outline: none;n  }nn  .sa-c-btn__main-text {n    font-size: 18px;n    line-height: 21px;n    pointer-events: none;n  }n  .sa-c-btn__seller-symbol {n    color: #999;n  }n  .sa-c-btn__secondary-text {n    font-size: 11px;n    line-height: 13px;n    color: #999999;n    pointer-events: none;n  }nn  .button-status-good {n      color: #36BA7B;n  }n  .button-status-good .button-price-currency {n      background-color: #36BA7B;n  }n  .button-status-bad {n      color: #E92D2D;n  }n  .button-status-bad .button-price-currency {n      background-color: #E92D2D;n  }n  .button-status-notinfo {n      color: #333;n  }n  .button-status-notinfo .button-price-currency {n      background-color: #333;n  }n  .button-status-warn {n      color: #F97B07;n  }n  .button-status-warn .button-price-currency {n      background-color: #F97B07;n  }nn  .sa-c-btn:hover {n      background-color: #F0F4F5;n  }nn  .sa-c-btn--active {n      background-color: #518BFC !important;n  }nn  .sa-c-btn--active .sa-c-btn__main-text,n  .sa-c-btn--active .sa-c-btn__seller-symbol,n  .sa-c-btn--active .sa-c-btn__secondary-text {n      color: #fff;n  }n  .sa-c-btn--active .button-price-currency {n      background-color: #fff;n  }n  .sa-c-btn--history {n      flex-grow: 2;n  }n  .sa-l-panel {n    height: 60px;n    border-radius: 4px;n    background: #fff;n    transition: height 0.1s ease-in-out;n    padding: 6px;n    box-shadow: 0 0 13px rgba(0, 0, 0, 0.2);n    width: 100%;n  }nn  .sa-l-modal {n      box-shadow: 0 0 13px rgba(0, 0, 0, 0.2);n      border-radius: 4px;n      background-color: #fff;n      margin-bottom: 6px;n      height: 320px;n  }nn  #frame-wrapper .sa-l-modal {n      margin-bottom: 0px;n  }nn  #frame-wrapper section {n      box-shadow: none;n      border-radius: 0;n      border: 1px solid #f2f2f2;n  }nn  #frame-wrapper section {n    border-bottom-width: 0px;n    border-left-width: 1px;n  }nn  #frame-wrapper .sa-c-close-btn {n    display: none;n  }nn  .frame-width-big #frame-wrapper section {n    border-right-width: 0px;n  }n  .sa-c-window {n      display: flex;n      flex-direction: column;n      height: 320px;n      position: relative;n  }nn  .sa-u-hide {n      display: none;n  }nn  .sa-c-window--empty .sa-c-window__body {n      display: flex;n      flex-direction: column;n      align-items: center;n      justify-content: center;n  }nn  .sa-c-window__empty-text {n      opacity: 0.9;n      color: #999999;n      max-width: 50%;n      text-align: center;n      font-size: 13px;n  }nn  .sa-c-window__header {n      background-color: #f6f8fa;n      opacity: 0.8;n      color: #333333;n      font-size: 20px;n      font-weight: 600;n      height: 63px;n      padding: 18px 0 16px 20px;n      border-radius: 4px 4px 0 0;n  }nn  #frame-wrapper .sa-c-window__header {n      border-radius: 0px;n      padding: 15px 0px 15px 22px;n  }nn  .sa-c-window__body {n      height: 249px;n      padding: 4px 15px;n  }nn  .sa-c-window .sa-c-window__body {n      height: 263px;n  }nn  .sa-l-modal--grid .sa-c-window__body {n      overflow-y: auto;n  }nn  .sa-l-modal--price .sa-c-window__body {n      padding: 0px;n  }nn  .window-no-data {n      text-align: center;n      padding-top: 87px;n  }n  .sa-c-similar {n      margin: 5px;n      height: 101px;n      width: 113px;n      border-radius: 4px;n      overflow: hidden;n      display: inline-block;n      float: left;n      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);n  }nn  .sa-c-similar:hover {n      cursor: pointer;n  }nn  .sa-c-similar__img {n      width: 100%;n      background-size: cover;n      background-position: center;n      pointer-events: none;n      height: 68px;n  }nn  .sa-c-similar__text-block {n      padding: 8px 0;n      height: 32px;n      width: 100%;n      pointer-events: none;n      text-align: center;n  }nn  .sa-c-similar__text {n      color: #333;n      font-family: Roboto;n      font-style: normal;n      font-weight: normal;n      font-size: 13px;n      line-height: 15px;n  }nn  .sa-c-similar__divider {n      color: #333;n  }nn  .sa-c-similar__text--good {n      color: #36BA7B;n  }nn  .sa-c-similar__text--bad {n      color: #ED5554;n  }nn  .sa-c-review {n    border-radius: 4px;n    padding: 5px;n    height: 92px;n    width: 92px;n    border-radius: 4px;n    display: inline-block;n    float: left;n  }nn  .sa-c-review div {n      border-radius: 4px;n      width: 100%;n      background-size: cover;n      background-position: center;n      height: 100%;;n  }nn  .sa-c-review:hover {n      cursor: pointer;n  }n  .sa-c-price {n    padding-left: 0px;n    padding-right: 0px;n  }nn  .sa-c-price__chart-block {n      /*flex: 1;*/n      /*display: flex;*/n      /*justify-content: center;*/n  }nn  .sa-c-price__buttons-block {n      display: flex;n      height: 76px;n      flex-direction: column;n      align-items: center;n  }nn  .sa-c-price-btn {n      color: #518BFC;n      font-size: 13px;n      font-weight: 500;n      padding: 9px 17px;n      cursor: pointer;n      z-index: 2;n      border-radius: 2px;n      background-color: #f3f8ff;n      border: 0;n      cursor: pointer;n      max-width: 160px;n      max-height: 33px;n  }nn  .sa-c-price__track-block {n      font-size: 13px;n      color: #3c3d44;n      margin-top: 8px;n  }nn  .sa-c-price__track-link {n      text-decoration: underline;n      color: #2881d3;n      font-weight: bold;n  }nn  .sa-c-price__track-link:hover {n      cursor: pointer;n  }nn  /* chart override */n  #chart {n      padding-top: 12px;n      display: block;n      position: relative;n      width: 100%;n      margin-bottom: -14px;n  }nn  #chart .ct-series-a .ct-line {n      stroke: #518bfc;n      stroke-width: 3px;n  }nn  #chart .ct-series-a .ct-point {n      stroke: #518bfc;n      stroke-width: 9px;n  }nn  #chart .ct-series-a .ct-circle {n      stroke-width: 16px;n  }nn  #chart .ct-series-a .ct-circle-bad {n      stroke: #e92d2d;n  }n  #chart .ct-series-a .ct-circle-good {n      stroke: #36ba7b;n  }n  #chart .ct-series-a .ct-point-filler {n      stroke: #fff;n      stroke-width: 11px;n      pointer-events: none;n  }n  #chart .ct-grid .ct-vertical {n      stroke-dasharray: none;n  }nn  .bookmark-item-currency,n  .title-currency,n  .chart-tooltip-currency,n  .similar-item-currency,n  .bookmark-change-currency,n  .button-price-currency {n    position: relative;n    -webkit-mask-position: center;n    display: inline-block;n    -webkit-mask-repeat: no-repeat;n  }n  .title-currency {n    height: 16px;n    width: 12px;n    -webkit-mask-size: 16px 16px;n    top: 1px;n    left: 1px;n  }n  .bookmark-item-currency {n    height: 15px;n    background-color: #333;n    width: 10px;n    -webkit-mask-size: 15px 15px;n  }n  .bookmark-change-currency {n    height: 12px;n    background-color: #333;n    width: 9px;n    -webkit-mask-size: 12px 12px;n  }n  .chart-tooltip-currency {n    height: 12px;n    width: 9px;n    -webkit-mask-size: 12px 12px;n    background-color: #000;n  }n  .similar-item-currency {n    height: 10px;n    width: 8px;n    -webkit-mask-size: 11px 11px;n    background-color: #333;n  }n  .similar-item-currency-usd {n    top: 1px;n  }n  .similar-item-currency-rub {n    top: 1px;n  }n  .button-price-currency {n    height: 15px;n    width: 10px;n    -webkit-mask-size: 15px 15px;n  }nn  .chart-tooltip-currency-usd {n    left: 1px;n    top: 1px;n  }nn  .chart-tooltip-currency-rub {n    top: 2px;n    left: 1px;n  }n  .title-currency-rub {n    top: 2px;n  }n  .bookmark-item-currency-usd,n  .button-price-currency-usd {n    top: 1px;n    right: 1px;n  }n  .bookmark-item-currency-rub,n  .button-price-currency-rub {n    top: 1px;n    left: 1px;n  }n  .bookmark-change-currency-rub {n    top: 2px;n  }n  .sa-c-seller {n      position: relative;n  }nn  .sa-c-seller__body {n      padding: 17px 0;n  }nn  .sa-c-seller__list {n      margin: 0;n      padding-top: 15px;n      padding-left: 33px;n  }nn  .sa-c-seller__list-item {n      font-size: 13px;n      padding-left: 6px;n      color: #999999;n      max-width: 75%;n  }nn  .sa-c-seller__list-item + .sa-c-seller__list-item {n      margin-top: 16px;n  }nn  .sa-c-seller__list-item--good {n      list-style-image: url("'.concat(i.dotgood,'");n  }n  .currency-rub {n    -webkit-mask-image: url("').concat(i.rub,'");n  }n  .currency-usd {n    -webkit-mask-image: url("').concat(i.usd,'");n  }n  .sa-c-seller__list-item--bad {n      list-style-image: url("').concat(i.dotbad,'");n  }nn  .sa-c-seller__list-item--warn {n      list-style-image: url("').concat(i.dotwarn,'");n  }n  .sa-c-seller--unknown .sa-c-window__header {n      background-color: #F6F8FA;n      padding: 18px 0 16px 20px;n  }n  .sa-c-seller--unknown .sa-c-seller__main-text {n      color: #333;n  }n  .sa-c-seller--good .sa-c-window__header {n      background-color: #f0ffe2;n  }n  .sa-c-seller--good .sa-c-seller__main-text {n      color: #04a85a;n  }n  .sa-c-seller--good .title-currency {n      background-color: #04a85a;n  }n  .sa-c-seller--bad .sa-c-window__header {n    background-color: #fff4f0;n  }n  .sa-c-seller--bad .sa-c-seller__main-text {n      color: #e92d2d;n  }n  .sa-c-seller--bad .title-currency {n      background-color: #e92d2d;n  }n  .sa-c-seller--warn .sa-c-window__header {n      background-color: #FFF4F0;n  }n  .sa-c-seller--warn .sa-c-seller__main-text {n    color: #f97b07;n  }n  .sa-c-seller--warn .title-currency {n    background-color: #f97b07;n  }n  .sa-c-window__header {n      padding: 15px 18px;n      display: flex;n      height: 63px;n      border-top-left-radius: 4px;n      border-top-right-radius: 4px;n      justify-content: space-between;n      align-items: center;n  }nn  .sa-c-seller__smile {n      float: right;n      right: 14px;n      position: relative;n      top: -4px;n  }nn  .sa-c-window__header-text {n      display: inline-block;n  }nn  .sa-c-seller__main-text {n      font-size: 20px;n  }n  .frame-width-big #frame-wrapper .sa-c-seller__main-text {n      font-size: 18px;n  }n  .sa-c-seller__secondary-text {n      font-size: 13px;n      color: #333333;;n  }n  .sa-c-btn__seller-symbol {n      position: relative;n      left: 1px;n      font-size: 17px;n  }n  .sa-c-favorites {n      padding: 10px 20px;n      overflow-y: auto;n  }nn  .sa-l-review-box {n      height: 77px;n      background-color: #fff;n      border-radius: 4px;n      color: #333333;n      display: flex;n      overflow: hidden;n      position: relative;n      border: 1px solid rgba(153, 153, 153, 0.4);n  }nn  .sa-l-review-box + .sa-l-review-box {n      margin-top: 5px;n  }nn  .sa-l-review-box--bad .sa-c-review-box__secondary-text {n      color: #ED5554;n  }nn  .sa-l-review-box--good .sa-c-review-box__secondary-text {n      color: #36BA7B;n  }nn  .sa-c-review-box__main-text {n      font-size: 18px;n      font-weight: 500;n      line-height: 25px;n  }nn  .sa-c-review-box__img {n      height: 75px;n      border-radius: 4px 0 0 4px;n      cursor: pointer;n  }nn  .sa-c-review-box__desc {n      display: flex;n      flex: 1;n      justify-content: center;n      flex-direction: column;n      padding-left: 8px;n      border-radius: 0 4px 4px 0;n  }nn  .bookmark-change-bad .sa-c-review-box__secondary-text {n      color: #E92D2D;n  }n  .bookmark-change-bad .bookmark-change-currency {n    background-color: #E92D2D;n  }n  .bookmark-change-good .sa-c-review-box__secondary-text {n      color: #36BA7B;n  }n  .bookmark-change-good .bookmark-change-currency {n    background-color: #36BA7B;n  }nn  .sa-c-review-box__secondary-text {n      font-size: 13px;n  }nn  .sa-c-review-box__trash {n      cursor: pointer;n      position: absolute;n      top: calc((100% - 20px)/2);n      right: 12px;n      display: none;n  }nn  .sa-l-review-box--hover,n  .sa-l-review-box:hover {n      border-color: transparent;n      box-shadow: 0 0 14px rgba(0, 0, 0, 0.2);n  }nn  .sa-l-review-box--hover .sa-c-review-box__trash,n  .sa-l-review-box:hover .sa-c-review-box__trash {n      display: block;n  }n  .ct-double-octave:after,.ct-major-eleventh:after,.ct-major-second:after,.ct-major-seventh:after,.ct-major-sixth:after,.ct-major-tenth:after,.ct-major-third:after,.ct-major-twelfth:after,.ct-minor-second:after,.ct-minor-seventh:after,.ct-minor-sixth:after,.ct-minor-third:after,.ct-octave:after,.ct-perfect-fifth:after,.ct-perfect-fourth:after,.ct-square:after{content:"";clear:both}.ct-label{fill:rgba(0,0,0,.4);color:rgba(0,0,0,.4);font-size:.75rem;line-height:1}.ct-grid-background,.ct-line{fill:none}.ct-chart-bar .ct-label,.ct-chart-line .ct-label{display:block;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.ct-chart-donut .ct-label,.ct-chart-pie .ct-label{dominant-baseline:central}.ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-label.ct-vertical.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-label.ct-vertical.ct-end{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start{-webkit-box-align:flex-end;-webkit-align-items:flex-end;-ms-flex-align:flex-end;align-items:flex-end;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end{-webkit-box-align:flex-start;-webkit-align-items:flex-start;-ms-flex-align:flex-start;align-items:flex-start;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:start}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-end;-webkit-justify-content:flex-end;-ms-flex-pack:flex-end;justify-content:flex-end;text-align:right;text-anchor:end}.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:flex-start;-webkit-justify-content:flex-start;-ms-flex-pack:flex-start;justify-content:flex-start;text-align:left;text-anchor:end}.ct-grid{stroke:rgba(0,0,0,.2);stroke-width:1px;stroke-dasharray:2px}.ct-point{stroke-width:10px;stroke-linecap:round}.ct-line{stroke-width:4px}.ct-area{stroke:none;fill-opacity:.1}.ct-bar{fill:none;stroke-width:10px}.ct-slice-donut{fill:none;stroke-width:60px}.ct-series-a .ct-bar,.ct-series-a .ct-line,.ct-series-a .ct-point,.ct-series-a .ct-slice-donut{stroke:#d70206}.ct-series-a .ct-area,.ct-series-a .ct-slice-donut-solid,.ct-series-a .ct-slice-pie{fill:#d70206}.ct-series-b .ct-bar,.ct-series-b .ct-line,.ct-series-b .ct-point,.ct-series-b .ct-slice-donut{stroke:#f05b4f}.ct-series-b .ct-area,.ct-series-b .ct-slice-donut-solid,.ct-series-b .ct-slice-pie{fill:#f05b4f}.ct-series-c .ct-bar,.ct-series-c .ct-line,.ct-series-c .ct-point,.ct-series-c .ct-slice-donut{stroke:#f4c63d}.ct-series-c .ct-area,.ct-series-c .ct-slice-donut-solid,.ct-series-c .ct-slice-pie{fill:#f4c63d}.ct-series-d .ct-bar,.ct-series-d .ct-line,.ct-series-d .ct-point,.ct-series-d .ct-slice-donut{stroke:#d17905}.ct-series-d .ct-area,.ct-series-d .ct-slice-donut-solid,.ct-series-d .ct-slice-pie{fill:#d17905}.ct-series-e .ct-bar,.ct-series-e .ct-line,.ct-series-e .ct-point,.ct-series-e .ct-slice-donut{stroke:#453d3f}.ct-series-e .ct-area,.ct-series-e .ct-slice-donut-solid,.ct-series-e .ct-slice-pie{fill:#453d3f}.ct-series-f .ct-bar,.ct-series-f .ct-line,.ct-series-f .ct-point,.ct-series-f .ct-slice-donut{stroke:#59922b}.ct-series-f .ct-area,.ct-series-f .ct-slice-donut-solid,.ct-series-f .ct-slice-pie{fill:#59922b}.ct-series-g .ct-bar,.ct-series-g .ct-line,.ct-series-g .ct-point,.ct-series-g .ct-slice-donut{stroke:#0544d3}.ct-series-g .ct-area,.ct-series-g .ct-slice-donut-solid,.ct-series-g .ct-slice-pie{fill:#0544d3}.ct-series-h .ct-bar,.ct-series-h .ct-line,.ct-series-h .ct-point,.ct-series-h .ct-slice-donut{stroke:#6b0392}.ct-series-h .ct-area,.ct-series-h .ct-slice-donut-solid,.ct-series-h .ct-slice-pie{fill:#6b0392}.ct-series-i .ct-bar,.ct-series-i .ct-line,.ct-series-i .ct-point,.ct-series-i .ct-slice-donut{stroke:#f05b4f}.ct-series-i .ct-area,.ct-series-i .ct-slice-donut-solid,.ct-series-i .ct-slice-pie{fill:#f05b4f}.ct-series-j .ct-bar,.ct-series-j .ct-line,.ct-series-j .ct-point,.ct-series-j .ct-slice-donut{stroke:#dda458}.ct-series-j .ct-area,.ct-series-j .ct-slice-donut-solid,.ct-series-j .ct-slice-pie{fill:#dda458}.ct-series-k .ct-bar,.ct-series-k .ct-line,.ct-series-k .ct-point,.ct-series-k .ct-slice-donut{stroke:#eacf7d}.ct-series-k .ct-area,.ct-series-k .ct-slice-donut-solid,.ct-series-k .ct-slice-pie{fill:#eacf7d}.ct-series-l .ct-bar,.ct-series-l .ct-line,.ct-series-l .ct-point,.ct-series-l .ct-slice-donut{stroke:#86797d}.ct-series-l .ct-area,.ct-series-l .ct-slice-donut-solid,.ct-series-l .ct-slice-pie{fill:#86797d}.ct-series-m .ct-bar,.ct-series-m .ct-line,.ct-series-m .ct-point,.ct-series-m .ct-slice-donut{stroke:#b2c326}.ct-series-m .ct-area,.ct-series-m .ct-slice-donut-solid,.ct-series-m .ct-slice-pie{fill:#b2c326}.ct-series-n .ct-bar,.ct-series-n .ct-line,.ct-series-n .ct-point,.ct-series-n .ct-slice-donut{stroke:#6188e2}.ct-series-n .ct-area,.ct-series-n .ct-slice-donut-solid,.ct-series-n .ct-slice-pie{fill:#6188e2}.ct-series-o .ct-bar,.ct-series-o .ct-line,.ct-series-o .ct-point,.ct-series-o .ct-slice-donut{stroke:#a748ca}.ct-series-o .ct-area,.ct-series-o .ct-slice-donut-solid,.ct-series-o .ct-slice-pie{fill:#a748ca}.ct-square{display:block;position:relative;width:100%}.ct-square:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:100%}.ct-square:after{display:table}.ct-square>svg{display:block;position:absolute;top:0;left:0}.ct-minor-second{display:block;position:relative;width:100%}.ct-minor-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:93.75%}.ct-minor-second:after{display:table}.ct-minor-second>svg{display:block;position:absolute;top:0;left:0}.ct-major-second{display:block;position:relative;width:100%}.ct-major-second:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:88.8888888889%}.ct-major-second:after{display:table}.ct-major-second>svg{display:block;position:absolute;top:0;left:0}.ct-minor-third{display:block;position:relative;width:100%}.ct-minor-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:83.3333333333%}.ct-minor-third:after{display:table}.ct-minor-third>svg{display:block;position:absolute;top:0;left:0}.ct-major-third{display:block;position:relative;width:100%}.ct-major-third:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:80%}.ct-major-third:after{display:table}.ct-major-third>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fourth{display:block;position:relative;width:100%}.ct-perfect-fourth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:75%}.ct-perfect-fourth:after{display:table}.ct-perfect-fourth>svg{display:block;position:absolute;top:0;left:0}.ct-perfect-fifth{display:block;position:relative;width:100%}.ct-perfect-fifth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:66.6666666667%}.ct-perfect-fifth:after{display:table}.ct-perfect-fifth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-sixth{display:block;position:relative;width:100%}.ct-minor-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:62.5%}.ct-minor-sixth:after{display:table}.ct-minor-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-golden-section{display:block;position:relative;width:100%}.ct-golden-section:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:61.804697157%}.ct-golden-section:after{content:"";display:table;clear:both}.ct-golden-section>svg{display:block;position:absolute;top:0;left:0}.ct-major-sixth{display:block;position:relative;width:100%}.ct-major-sixth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:60%}.ct-major-sixth:after{display:table}.ct-major-sixth>svg{display:block;position:absolute;top:0;left:0}.ct-minor-seventh{display:block;position:relative;width:100%}.ct-minor-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:56.25%}.ct-minor-seventh:after{display:table}.ct-minor-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-seventh{display:block;position:relative;width:100%}.ct-major-seventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:53.3333333333%}.ct-major-seventh:after{display:table}.ct-major-seventh>svg{display:block;position:absolute;top:0;left:0}.ct-octave{display:block;position:relative;width:100%}.ct-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:50%}.ct-octave:after{display:table}.ct-octave>svg{display:block;position:absolute;top:0;left:0}.ct-major-tenth{display:block;position:relative;width:100%}.ct-major-tenth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:40%}.ct-major-tenth:after{display:table}.ct-major-tenth>svg{display:block;position:absolute;top:0;left:0}.ct-major-eleventh{display:block;position:relative;width:100%}.ct-major-eleventh:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:37.5%}.ct-major-eleventh:after{display:table}.ct-major-eleventh>svg{display:block;position:absolute;top:0;left:0}.ct-major-twelfth{display:block;position:relative;width:100%}.ct-major-twelfth:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:33.3333333333%}.ct-major-twelfth:after{display:table}.ct-major-twelfth>svg{display:block;position:absolute;top:0;left:0}.ct-double-octave{display:block;position:relative;width:100%}.ct-double-octave:before{display:block;float:left;content:"";width:0;height:0;padding-bottom:25%}.ct-double-octave:after{display:table}.ct-double-octave>svg{display:block;position:absolute;top:0;left:0}n  .chartist-tooltip {n    position: absolute;n    display: inline-block;n    opacity: 0;n    padding: 10px;n    background: rgba(255, 255, 255, 0.97);n    color: #000;n    text-align: center;n    pointer-events: none;n    z-index: 1;n    font-size: 15px;n    white-space: pre;n    line-height: 18px;n    border-radius: 3px;n    box-shadow: 0px 0px 12.9536px rgba(0, 0, 0, 0.2);n    -webkit-transition: opacity .2s linear;n    -moz-transition: opacity .2s linear;n    -o-transition: opacity .2s linear;n    transition: opacity .2s linear;n  }n  .chartist-tooltip:before {n    content: "";n    position: absolute;n    top: 100%;n    left: 50%;n    width: 0;n    height: 0;n    margin-left: -15px;n    border: 15px solid transparent;n    border-top-color: rgba(255, 255, 255, 0.97);n  }n  .chartist-tooltip.tooltip-show {n    opacity: 1;n  }n  .ct-area, .ct-line {n    pointer-events: none;n  }n  .chartist-tooltip-value-time {n    font-size: 11px;n    line-height: 13px;n    display: block;n    text-align: center;n    color: #999;n  }nn  /*# sourceMappingURL=chartist-plugin-tooltip.css.map */nnn  * {n      box-sizing: border-box;n      outline: none;n      user-select: none;n  }nn  a {n      text-decoration: none;n  }nn  #static-wrapper {n      width: 416px;n      transition: width 0.1s ease-in-out;n  }nn  #relative-wrapper {n      /*position: relative;n      width: 100%;n      height: 100%;*/n  }nn  #sa,n  #root,n  body {n      font-family: 'Roboto', 'Open Sans', sans-serif;n  }nn  #frame-wrapper {n    margin-top: -25px;n  }n  #frame-wrapper > section {n      max-width: 350px;n      width: 50%;n      height: 319px;n  }n  #frame-wrapper section {n    float: right;n    position: relative;n  }n  .frame-width-big #frame-wrapper section {n    width: calc(50% + 1px);n    margin-left: -1px;n    float: left;n  }n  .frame-width-small #frame-wrapper > section {n    width: 350px;n  }n  .frame-width-small #frame-wrapper section {n    float: right;n    margin-right: -148px;n    position: relative;n  }n  .frame-width-small #frame-wrapper section:first-of-type {n    float: left;n  }n  #frame-wrapper .sa-c-window__header {n    border-top-left-radius: 0px;n    border-top-right-radius: 0px;n  }n  .sa-c-logo {n      display: inline-block;n      background-color: #fff;n      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);n      border-radius: 3px;n      height: 48px;n      width: 48px;n      transition: all 0.1s ease-in-out;n      float: left;n  }n  .sa-c-logo img {n    position: relative;n    pointer-events: none;n    top: 10px;n    height: 29px;n    width: 34px;n    left: 7px;n    transition: all 0.1s ease-in-out;n  }n  .sa-c-mini-btn {n    display: inline-block;n    float: left;n  }n  .price-mini-text {n    padding: 7px 1px;n  }n  .price-mini-none,n  .price-triangle-bad,n  .price-triangle-good {n    display: none;n  }n  .sa-c-mini-btn.button-status-bad .price-triangle-bad,n  .sa-c-mini-btn.button-status-good .price-triangle-good {n    display: block;n  }n  .sa-c-mini-btn.button-status-good .price-triangle-good {n    position: relative;n    top: 2px;n  }nn  .sa-c-mini-btn.button-status-notinfo .price-triangle-bad,n  .sa-c-mini-btn.button-status-notinfo .price-triangle-good,n  .sa-c-mini-btn.button-status-notinfo .price-mini-sign {n    display: none;n  }n  .sa-c-mini-btn.button-status-notinfo .price-mini-none,n  .sa-c-mini-btn.button-status-notinfo .seller-mini-text {n    display: inline-block;n    font-size: 18px;n    padding-left: 10px;n    padding-right: 10px;n  }n  .sa-c-mini-btn.button-status-good .price-mini-sign,n  .sa-c-mini-btn.button-status-bad .price-mini-sign {n    position: absolute;n    top: 16px;n    right: 18px;n    font-size: 13px;n  }n  .sa-c-mini-btn.button-status-good .price-mini-sign {n    top: 15px;n  }nn  #static-wrapper.aliwiz-mini {n    width: 128px;n  }n  .sa-panel-mini-actions,n  .aliwiz-mini .sa-panel-actions {n    display: none;n  }n  .aliwiz-mini .sa-panel-mini-actions {n    display: inline-block;n  }n  @keyframes showActions {n    0% {n      visibility: hidden;n      display: none;n      opacity: 0;n      pointer-events: none;n    }n    80% {n      visibility: hidden;n      display: none;n      opacity: 0;n      pointer-events: none;n    }n    100% {n      visibility: visible;n      opacity: 1;n      pointer-events: visible;n    }nn  }n  .sa-panel-actions,n  .aliwiz-mini .sa-panel-mini-actions {n    animation-fill-mode: forwards;n    animation: showActions 0.2s ease-in-out;n  }n  .aliwiz-mini .sa-l-panel {n    height: 43px;n    padding: 5px;n  }n  .aliwiz-mini .sa-c-logo {n    width: 36px;n    height: 33px;n  }n  .aliwiz-mini .sa-c-logo img {n    width: 24px;n    height: 21px;n    top: 7px;n    left: 6px;n  }n  .seller-mini-text {n    width: 52px;n    letter-spacing: 0px;n    padding: 5px 9px;n    left: 63px;n    font-style: normal;n    font-weight: 500;n    font-size: 18px;n    line-height: 25px;n    display: inline-block;n    text-align: center;n    font-family: Arial;n  }n  ')}},function(e,t,n){n.r(t);var i=n(9),o=n(7),r=n.n(o),a="https://sa.3205.tools";t.default=new function(){this.savePrices=function(){var e=ye()(ve.a.mark((function e(t,n,o,s){var l,c,u;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(l=t.values)||!l.length){e.next=8;break}return e.next=4,i.default.getPricesForBackend(l,t.type);case 4:return c=e.sent,u="".concat(a,"/api/product/").concat(n),e.next=8,r()(u,"POST",{credentials:"include",headers:{"Content-Type":"application/json"},body:A()({prices:c,currencyRate:o,currency:s})});case 8:case"end":return e.stop()}}),e)})));return function(t,n,i,o){return e.apply(this,arguments)}}(),this.getCurrencyRate=function(){return r()("".concat(a,"/api/rate/").concat(window.aliwizPageData.currency),"GET",{credentials:"include",headers:{"Content-Type":"application/json"}})}}},function(e,t,n){var i=n(30);e.exports={buildType:"aliwiz-helper-bundle",version:i.version}},function(e,t,i){var o,r;r=this,void 0===(o=function(){return r.Chartist=function(){var e,t={version:"0.11.3"};return function(e,t){var i=unsafeWindow||e.window,o=o||i.document||e.document;t.namespaces={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",ct:"http://gionkunz.github.com/chartist-js/ct"},t.noop=function(e){return e},t.alphaNumerate=function(e){return String.fromCharCode(97+e%26)},t.extend=function(e){var i,o,r;for(e=e||{},i=1;i<arguments.length;i++)for(var a in o=arguments[i])"object"!=s(r=o[a])||null===r||n(r,Array)?e[a]=r:e[a]=t.extend(e[a],r);return e},t.replaceAll=function(e,t,n){return e.replace(new RegExp(t,"g"),n)},t.ensureUnit=function(e,t){return"number"==typeof e&&(e+=t),e},t.quantity=function(e){if("string"==typeof e){var t=/^(d+)s*(.*)$/g.exec(e);return{value:+t[1],unit:t[2]||void 0}}return{value:e}},t.querySelector=function(e){return n(e,Node)?e:o.querySelector(e)},t.times=function(e){return Array.apply(null,new Array(e))},t.sum=function(e,t){return e+(t||0)},t.mapMultiply=function(e){return function(t){return t*e}},t.mapAdd=function(e){return function(t){return t+e}},t.serialMap=function(e,n){var i=[],o=Math.max.apply(null,e.map((function(e){return e.length})));return t.times(o).forEach((function(t,o){var r=e.map((function(e){return e[o]}));i[o]=n.apply(null,r)})),i},t.roundWithPrecision=function(e,n){var i=Math.pow(10,n||t.precision);return Math.round(e*i)/i},t.precision=8,t.escapingMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"},t.serialize=function(e){return null==e?e:("number"==typeof e?e=""+e:"object"==s(e)&&(e=A()({data:e})),O()(t.escapingMap).reduce((function(e,n){return t.replaceAll(e,n,t.escapingMap[n])}),e))},t.deserialize=function(e){if("string"!=typeof e)return e;e=O()(t.escapingMap).reduce((function(e,n){return t.replaceAll(e,t.escapingMap[n],n)}),e);try{e=void 0!==(e=JSON.parse(e)).data?e.data:e}catch(e){}return e},t.createSvg=function(e,n,i,o){var r;return n=n||"100%",i=i||"100%",Array.prototype.slice.call(e.querySelectorAll("svg")).filter((function(e){return e.getAttributeNS(t.namespaces.xmlns,"ct")})).forEach((function(t){e.removeChild(t)})),(r=new t.Svg("svg").attr({width:n,height:i}).addClass(o))._node.style.width=n,r._node.style.height=i,e.appendChild(r._node),r},t.normalizeData=function(e,i,o){var r,a={raw:e,normalized:{}};return a.normalized.series=t.getDataArray({series:e.series||[]},i,o),r=a.normalized.series.every((function(e){return n(e,Array)}))?Math.max.apply(null,a.normalized.series.map((function(e){return e.length}))):a.normalized.series.length,a.normalized.labels=(e.labels||[]).slice(),Array.prototype.push.apply(a.normalized.labels,t.times(Math.max(0,r-a.normalized.labels.length)).map((function(){return""}))),i&&t.reverseData(a.normalized),a},t.safeHasProperty=function(e,t){return null!==e&&"object"==s(e)&&e.hasOwnProperty(t)},t.isDataHoleValue=function(e){return null==e||"number"==typeof e&&isNaN(e)},t.reverseData=function(e){e.labels.reverse(),e.series.reverse();for(var t=0;t<e.series.length;t++)"object"==s(e.series[t])&&void 0!==e.series[t].data?e.series[t].data.reverse():n(e.series[t],Array)&&e.series[t].reverse()},t.getDataArray=function(e,i,o){return e.series.map((function e(i){if(t.safeHasProperty(i,"value"))return e(i.value);if(t.safeHasProperty(i,"data"))return e(i.data);if(n(i,Array))return i.map(e);if(!t.isDataHoleValue(i)){if(o){var r={};return"string"==typeof o?r[o]=t.getNumberOrUndefined(i):r.y=t.getNumberOrUndefined(i),r.x=i.hasOwnProperty("x")?t.getNumberOrUndefined(i.x):r.x,r.y=i.hasOwnProperty("y")?t.getNumberOrUndefined(i.y):r.y,r}return t.getNumberOrUndefined(i)}}))},t.normalizePadding=function(e,t){return t=t||0,"number"==typeof e?{top:e,right:e,bottom:e,left:e}:{top:"number"==typeof e.top?e.top:t,right:"number"==typeof e.right?e.right:t,bottom:"number"==typeof e.bottom?e.bottom:t,left:"number"==typeof e.left?e.left:t}},t.getMetaData=function(e,t){var n=e.data?e.data[t]:e[t];return n?n.meta:void 0},t.orderOfMagnitude=function(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)},t.projectLength=function(e,t,n){return t/n.range*e},t.getAvailableHeight=function(e,n){return Math.max((t.quantity(n.height).value||e.height())-(n.chartPadding.top+n.chartPadding.bottom)-n.axisX.offset,0)},t.getHighLow=function(e,i,o){var r={high:void 0===(i=t.extend({},i,o?i["axis"+o.toUpperCase()]:{})).high?-Number.MAX_VALUE:+i.high,low:void 0===i.low?Number.MAX_VALUE:+i.low},a=void 0===i.high,s=void 0===i.low;return(a||s)&&function e(t){if(void 0!==t)if(n(t,Array))for(var i=0;i<t.length;i++)e(t[i]);else{var l=o?+t[o]:+t;a&&l>r.high&&(r.high=l),s&&l<r.low&&(r.low=l)}}(e),(i.referenceValue||0===i.referenceValue)&&(r.high=Math.max(i.referenceValue,r.high),r.low=Math.min(i.referenceValue,r.low)),r.high<=r.low&&(0===r.low?r.high=1:r.low<0?r.high=0:r.high>0?r.low=0:(r.high=1,r.low=0)),r},t.isNumeric=function(e){return null!==e&&isFinite(e)},t.isFalseyButZero=function(e){return!e&&0!==e},t.getNumberOrUndefined=function(e){return t.isNumeric(e)?+e:void 0},t.isMultiValue=function(e){return"object"==s(e)&&("x"in e||"y"in e)},t.getMultiValue=function(e,n){return t.isMultiValue(e)?t.getNumberOrUndefined(e[n||"y"]):t.getNumberOrUndefined(e)},t.rho=function(e){if(1===e)return e;function t(e,n){return e%n==0?n:t(n,e%n)}function n(e){return e*e+1}var i,o=2,r=2;if(e%2==0)return 2;do{o=n(o)%e,r=n(n(r))%e,i=t(Math.abs(o-r),e)}while(1===i);return i},t.getBounds=function(e,n,i,o){var r,a,s,l=0,c={high:n.high,low:n.low};c.valueRange=c.high-c.low,c.oom=t.orderOfMagnitude(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);var u=t.projectLength(e,c.step,c)<i,d=o?t.rho(c.range):0;if(o&&t.projectLength(e,1,c)>=i)c.step=1;else if(o&&d<c.step&&t.projectLength(e,d,c)>=i)c.step=d;else for(;;){if(u&&t.projectLength(e,c.step,c)<=i)c.step*=2;else{if(u||!(t.projectLength(e,c.step/2,c)>=i))break;if(c.step/=2,o&&c.step%1!=0){c.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}var p=2221e-19;function f(e,t){return e===(e+=t)&&(e*=1+(t>0?p:-p)),e}for(c.step=Math.max(c.step,p),a=c.min,s=c.max;a+c.step<=c.low;)a=f(a,c.step);for(;s-c.step>=c.high;)s=f(s,-c.step);c.min=a,c.max=s,c.range=c.max-c.min;var m=[];for(r=c.min;r<=c.max;r=f(r,c.step)){var h=t.roundWithPrecision(r);h!==m[m.length-1]&&m.push(h)}return c.values=m,c},t.polarToCartesian=function(e,t,n,i){var o=(i-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}},t.createChartRect=function(e,n,i){var o=!(!n.axisX&&!n.axisY),r=o?n.axisY.offset:0,a=o?n.axisX.offset:0,s=e.width()||t.quantity(n.width).value||0,l=e.height()||t.quantity(n.height).value||0,c=t.normalizePadding(n.chartPadding,i);s=Math.max(s,r+c.left+c.right),l=Math.max(l,a+c.top+c.bottom);var u={padding:c,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return o?("start"===n.axisX.position?(u.y2=c.top+a,u.y1=Math.max(l-c.bottom,u.y2+1)):(u.y2=c.top,u.y1=Math.max(l-c.bottom-a,u.y2+1)),"start"===n.axisY.position?(u.x1=c.left+r,u.x2=Math.max(s-c.right,u.x1+1)):(u.x1=c.left,u.x2=Math.max(s-c.right-r,u.x1+1))):(u.x1=c.left,u.x2=Math.max(s-c.right,u.x1+1),u.y2=c.top,u.y1=Math.max(l-c.bottom,u.y2+1)),u},t.createGrid=function(e,n,i,o,r,a,s,l){var c={};c[i.units.pos+"1"]=e,c[i.units.pos+"2"]=e,c[i.counterUnits.pos+"1"]=o,c[i.counterUnits.pos+"2"]=o+r;var u=a.elem("line",c,s.join(" "));l.emit("draw",t.extend({type:"grid",axis:i,index:n,group:a,element:u},c))},t.createGridBackground=function(e,t,n,i){var o=e.elem("rect",{x:t.x1,y:t.y2,width:t.width(),height:t.height()},n,!0);i.emit("draw",{type:"gridBackground",group:e,element:o})},t.createLabel=function(e,n,i,r,a,s,l,c,u,d,p){var f,m={};if(m[a.units.pos]=e+l[a.units.pos],m[a.counterUnits.pos]=l[a.counterUnits.pos],m[a.units.len]=n,m[a.counterUnits.len]=Math.max(0,s-10),d){var h=o.createElement("span");h.className=u.join(" "),h.setAttribute("xmlns",t.namespaces.xhtml),h.innerText=r[i],h.style[a.units.len]=Math.round(m[a.units.len])+"px",h.style[a.counterUnits.len]=Math.round(m[a.counterUnits.len])+"px",f=c.foreignObject(h,t.extend({style:"overflow: visible;"},m))}else f=c.elem("text",m,u.join(" ")).text(r[i]);p.emit("draw",t.extend({type:"label",axis:a,index:i,group:c,element:f,text:r[i]},m))},t.getSeriesOption=function(e,t,n){if(e.name&&t.series&&t.series[e.name]){var i=t.series[e.name];return i.hasOwnProperty(n)?i[n]:t[n]}return t[n]},t.optionsProvider=function(e,n,o){var r,a,s=t.extend({},e),l=[];function c(e){var l=r;if(r=t.extend({},s),n)for(a=0;a<n.length;a++)i.matchMedia(n[a][0]).matches&&(r=t.extend(r,n[a][1]));o&&e&&o.emit("optionsChanged",{previousOptions:l,currentOptions:r})}if(!i.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(n)for(a=0;a<n.length;a++){var u=i.matchMedia(n[a][0]);u.addListener(c),l.push(u)}return c(),{removeMediaQueryListeners:function(){l.forEach((function(e){e.removeListener(c)}))},getCurrentOptions:function(){return t.extend({},r)}}},t.splitIntoSegments=function(e,n,i){i=t.extend({},{increasingX:!1,fillHoles:!1},i);for(var o=[],r=!0,a=0;a<e.length;a+=2)void 0===t.getMultiValue(n[a/2].value)?i.fillHoles||(r=!0):(i.increasingX&&a>=2&&e[a]<=e[a-2]&&(r=!0),r&&(o.push({pathCoordinates:[],valueData:[]}),r=!1),o[o.length-1].pathCoordinates.push(e[a],e[a+1]),o[o.length-1].valueData.push(n[a/2]));return o}}(this,t),(e=t).Interpolation={},e.Interpolation.none=function(t){return t=e.extend({},{fillHoles:!1},t),function(n,i){for(var o=new e.Svg.Path,r=!0,a=0;a<n.length;a+=2){var s=n[a],l=n[a+1],c=i[a/2];void 0!==e.getMultiValue(c.value)?(r?o.move(s,l,!1,c):o.line(s,l,!1,c),r=!1):t.fillHoles||(r=!0)}return o}},e.Interpolation.simple=function(t){t=e.extend({},{divisor:2,fillHoles:!1},t);var n=1/Math.max(1,t.divisor);return function(i,o){for(var r,a,s,l=new e.Svg.Path,c=0;c<i.length;c+=2){var u=i[c],d=i[c+1],p=(u-r)*n,f=o[c/2];void 0!==f.value?(void 0===s?l.move(u,d,!1,f):l.curve(r+p,a,u-p,d,u,d,!1,f),r=u,a=d,s=f):t.fillHoles||(r=u=s=void 0)}return l}},e.Interpolation.cardinal=function(t){t=e.extend({},{tension:1,fillHoles:!1},t);var n=Math.min(1,Math.max(0,t.tension)),i=1-n;return function o(r,a){var s=e.splitIntoSegments(r,a,{fillHoles:t.fillHoles});if(s.length){if(s.length>1){var l=[];return s.forEach((function(e){l.push(o(e.pathCoordinates,e.valueData))})),e.Svg.Path.join(l)}if(r=s[0].pathCoordinates,a=s[0].valueData,r.length<=4)return e.Interpolation.none()(r,a);for(var c=(new e.Svg.Path).move(r[0],r[1],!1,a[0]),u=0,d=r.length;d-2>u;u+=2){var p=[{x:+r[u-2],y:+r[u-1]},{x:+r[u],y:+r[u+1]},{x:+r[u+2],y:+r[u+3]},{x:+r[u+4],y:+r[u+5]}];d-4===u?p[3]=p[2]:u||(p[0]={x:+r[u],y:+r[u+1]}),c.curve(n*(-p[0].x+6*p[1].x+p[2].x)/6+i*p[2].x,n*(-p[0].y+6*p[1].y+p[2].y)/6+i*p[2].y,n*(p[1].x+6*p[2].x-p[3].x)/6+i*p[2].x,n*(p[1].y+6*p[2].y-p[3].y)/6+i*p[2].y,p[2].x,p[2].y,!1,a[(u+2)/2])}return c}return e.Interpolation.none()([])}},e.Interpolation.monotoneCubic=function(t){return t=e.extend({},{fillHoles:!1},t),function n(i,o){var r=e.splitIntoSegments(i,o,{fillHoles:t.fillHoles,increasingX:!0});if(r.length){if(r.length>1){var a=[];return r.forEach((function(e){a.push(n(e.pathCoordinates,e.valueData))})),e.Svg.Path.join(a)}if(i=r[0].pathCoordinates,o=r[0].valueData,i.length<=4)return e.Interpolation.none()(i,o);var s,l,c=[],u=[],d=i.length/2,p=[],f=[],m=[],h=[];for(s=0;s<d;s++)c[s]=i[2*s],u[s]=i[2*s+1];for(s=0;s<d-1;s++)m[s]=u[s+1]-u[s],h[s]=c[s+1]-c[s],f[s]=m[s]/h[s];for(p[0]=f[0],p[d-1]=f[d-2],s=1;s<d-1;s++)0===f[s]||0===f[s-1]||f[s-1]>0!=f[s]>0?p[s]=0:(p[s]=3*(h[s-1]+h[s])/((2*h[s]+h[s-1])/f[s-1]+(h[s]+2*h[s-1])/f[s]),isFinite(p[s])||(p[s]=0));for(l=(new e.Svg.Path).move(c[0],u[0],!1,o[0]),s=0;s<d-1;s++)l.curve(c[s]+h[s]/3,u[s]+p[s]*h[s]/3,c[s+1]-h[s]/3,u[s+1]-p[s+1]*h[s]/3,c[s+1],u[s+1],!1,o[s+1]);return l}return e.Interpolation.none()([])}},e.Interpolation.step=function(t){return t=e.extend({},{postpone:!0,fillHoles:!1},t),function(n,i){for(var o,r,a,s=new e.Svg.Path,l=0;l<n.length;l+=2){var c=n[l],u=n[l+1],d=i[l/2];void 0!==d.value?(void 0===a?s.move(c,u,!1,d):(t.postpone?s.line(c,r,!1,a):s.line(o,u,!1,d),s.line(c,u,!1,d)),o=c,r=u,a=d):t.fillHoles||(o=r=a=void 0)}return s}},function(e,t){t.EventEmitter=function(){var e=[];return{addEventHandler:function(t,n){e[t]=e[t]||[],e[t].push(n)},removeEventHandler:function(t,n){e[t]&&(n?(e[t].splice(e[t].indexOf(n),1),0===e[t].length&&delete e[t]):delete e[t])},emit:function(t,n){e[t]&&e[t].forEach((function(e){e(n)})),e["*"]&&e["*"].forEach((function(e){e(t,n)}))}}}}(0,t),function(e,t){t.Class={extend:function(e,n){var i=n||this.prototype||t.Class,o=D()(i);t.Class.cloneDefinitions(o,e);var r=function(){var e,n=o.constructor||function(){};return e=this===t?D()(o):this,n.apply(e,Array.prototype.slice.call(arguments,0)),e};return r.prototype=o,r.super=i,r.extend=this.extend,r},cloneDefinitions:function(){var e=function(e){var t=[];if(e.length)for(var n=0;n<e.length;n++)t.push(e[n]);return t}(arguments),t=e[0];return e.splice(1,e.length-1).forEach((function(e){re()(e).forEach((function(n){delete t[n],x()(t,n,m()(e,n))}))})),t}}}(0,t),function(e,t){var i=unsafeWindow||e.window;function o(){i.addEventListener("resize",this.resizeListener),this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(e){n(e,Array)?e[0](this,e[1]):e(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}t.Base=t.Class.extend({constructor:function(e,n,i,r,a){this.container=t.querySelector(e),this.data=n||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.defaultOptions=i,this.options=r,this.responsiveOptions=a,this.eventEmitter=t.EventEmitter(),this.supportsForeignObject=t.Svg.isSupported("Extensibility"),this.supportsAnimations=t.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(o.bind(this),0)},optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:function(e,n,i){return e&&(this.data=e||{},this.data.labels=this.data.labels||[],this.data.series=this.data.series||[],this.eventEmitter.emit("data",{type:"update",data:this.data})),n&&(this.options=t.extend({},i?this.options:this.defaultOptions,n),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=t.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this},detach:function(){return this.initializeTimeoutId?i.clearTimeout(this.initializeTimeoutId):(i.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this},on:function(e,t){return this.eventEmitter.addEventHandler(e,t),this},off:function(e,t){return this.eventEmitter.removeEventHandler(e,t),this},version:t.version,supportsForeignObject:!1})}(this,t),function(e,t){var i=unsafeWindow||e.window,o=o||i.document||e.document;t.Svg=t.Class.extend({constructor:function(e,i,r,a,s){n(e,Element)?this._node=e:(this._node=o.createElementNS(t.namespaces.svg,e),"svg"===e&&this.attr({"xmlns:ct":t.namespaces.ct})),i&&this.attr(i),r&&this.addClass(r),a&&(s&&a._node.firstChild?a._node.insertBefore(this._node,a._node.firstChild):a._node.appendChild(this._node))},attr:function(e,n){return"string"==typeof e?n?this._node.getAttributeNS(n,e):this._node.getAttribute(e):(O()(e).forEach(function(n){if(void 0!==e[n])if(-1!==n.indexOf(":")){var i=n.split(":");this._node.setAttributeNS(t.namespaces[i[0]],n,e[n])}else this._node.setAttribute(n,e[n])}.bind(this)),this)},elem:function(e,n,i,o){return new t.Svg(e,n,i,this,o)},parent:function(){return n(this._node.parentNode,SVGElement)?new t.Svg(this._node.parentNode):null},root:function(){for(var e=this._node;"svg"!==e.nodeName;)e=e.parentNode;return new t.Svg(e)},querySelector:function(e){var n=this._node.querySelector(e);return n?new t.Svg(n):null},querySelectorAll:function(e){var n=this._node.querySelectorAll(e);return n.length?new t.Svg.List(n):null},getNode:function(){return this._node},foreignObject:function(e,n,i,r){if("string"==typeof e){var a=o.createElement("div");a.innerHTML=e,e=a.firstChild}e.setAttribute("xmlns",t.namespaces.xmlns);var s=this.elem("foreignObject",n,i,r);return s._node.appendChild(e),s},text:function(e){return this._node.appendChild(o.createTextNode(e)),this},empty:function(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this},remove:function(){return this._node.parentNode.removeChild(this._node),this.parent()},replace:function(e){return this._node.parentNode.replaceChild(e._node,this._node),e},append:function(e,t){return t&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this},classes:function(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/s+/):[]},addClass:function(e){return this._node.setAttribute("class",this.classes(this._node).concat(e.trim().split(/s+/)).filter((function(e,t,n){return n.indexOf(e)===t})).join(" ")),this},removeClass:function(e){var t=e.trim().split(/s+/);return this._node.setAttribute("class",this.classes(this._node).filter((function(e){return-1===t.indexOf(e)})).join(" ")),this},removeAllClasses:function(){return this._node.setAttribute("class",""),this},height:function(){return this._node.getBoundingClientRect().height},width:function(){return this._node.getBoundingClientRect().width},animate:function(e,i,o){return void 0===i&&(i=!0),O()(e).forEach(function(r){function a(e,i){var a,s,l,c={};e.easing&&(l=n(e.easing,Array)?e.easing:t.Svg.Easing[e.easing],delete e.easing),e.begin=t.ensureUnit(e.begin,"ms"),e.dur=t.ensureUnit(e.dur,"ms"),l&&(e.calcMode="spline",e.keySplines=l.join(" "),e.keyTimes="0;1"),i&&(e.fill="freeze",c[r]=e.from,this.attr(c),s=t.quantity(e.begin||0).value,e.begin="indefinite"),a=this.elem("animate",t.extend({attributeName:r},e)),i&&setTimeout(function(){try{a._node.beginElement()}catch(t){c[r]=e.to,this.attr(c),a.remove()}}.bind(this),s),o&&a._node.addEventListener("beginEvent",function(){o.emit("animationBegin",{element:this,animate:a._node,params:e})}.bind(this)),a._node.addEventListener("endEvent",function(){o&&o.emit("animationEnd",{element:this,animate:a._node,params:e}),i&&(c[r]=e.to,this.attr(c),a.remove())}.bind(this))}n(e[r],Array)?e[r].forEach(function(e){a.bind(this)(e,!1)}.bind(this)):a.bind(this)(e[r],i)}.bind(this)),this}}),t.Svg.isSupported=function(e){return o.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+e,"1.1")},t.Svg.Easing={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},t.Svg.List=t.Class.extend({constructor:function(e){var n=this;this.svgElements=[];for(var i=0;i<e.length;i++)this.svgElements.push(new t.Svg(e[i]));O()(t.Svg.prototype).filter((function(e){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(e)})).forEach((function(e){n[e]=function(){var i=Array.prototype.slice.call(arguments,0);return n.svgElements.forEach((function(n){t.Svg.prototype[e].apply(n,i)})),n}}))}})}(this,t),function(e,t){var n={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},i={accuracy:3};function o(e,n,i,o,r,a){var s=t.extend({command:r?e.toLowerCase():e.toUpperCase()},n,a?{data:a}:{});i.splice(o,0,s)}function r(e,t){e.forEach((function(i,o){n[i.command.toLowerCase()].forEach((function(n,r){t(i,n,o,r,e)}))}))}t.Svg.Path=t.Class.extend({constructor:function(e,n){this.pathElements=[],this.pos=0,this.close=e,this.options=t.extend({},i,n)},position:function(e){return void 0!==e?(this.pos=Math.max(0,Math.min(this.pathElements.length,e)),this):this.pos},remove:function(e){return this.pathElements.splice(this.pos,e),this},move:function(e,t,n,i){return o("M",{x:+e,y:+t},this.pathElements,this.pos++,n,i),this},line:function(e,t,n,i){return o("L",{x:+e,y:+t},this.pathElements,this.pos++,n,i),this},curve:function(e,t,n,i,r,a,s,l){return o("C",{x1:+e,y1:+t,x2:+n,y2:+i,x:+r,y:+a},this.pathElements,this.pos++,s,l),this},arc:function(e,t,n,i,r,a,s,l,c){return o("A",{rx:+e,ry:+t,xAr:+n,lAf:+i,sf:+r,x:+a,y:+s},this.pathElements,this.pos++,l,c),this},scale:function(e,t){return r(this.pathElements,(function(n,i){n[i]*="x"===i[0]?e:t})),this},translate:function(e,t){return r(this.pathElements,(function(n,i){n[i]+="x"===i[0]?e:t})),this},transform:function(e){return r(this.pathElements,(function(t,n,i,o,r){var a=e(t,n,i,o,r);(a||0===a)&&(t[n]=a)})),this},parse:function(e){var i=e.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[s,]+/).reduce((function(e,t){return t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e}),[]);"Z"===i[i.length-1][0].toUpperCase()&&i.pop();var o=i.map((function(e){var i=e.shift(),o=n[i.toLowerCase()];return t.extend({command:i},o.reduce((function(t,n,i){return t[n]=+e[i],t}),{}))})),r=[this.pos,0];return Array.prototype.push.apply(r,o),Array.prototype.splice.apply(this.pathElements,r),this.pos+=o.length,this},stringify:function(){var e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(t,i){var o=n[i.command.toLowerCase()].map(function(t){return this.options.accuracy?Math.round(i[t]*e)/e:i[t]}.bind(this));return t+i.command+o.join(",")}.bind(this),"")+(this.close?"Z":"")},clone:function(e){var n=new t.Svg.Path(e||this.close);return n.pos=this.pos,n.pathElements=this.pathElements.slice().map((function(e){return t.extend({},e)})),n.options=t.extend({},this.options),n},splitByCommand:function(e){var n=[new t.Svg.Path];return this.pathElements.forEach((function(i){i.command===e.toUpperCase()&&0!==n[n.length-1].pathElements.length&&n.push(new t.Svg.Path),n[n.length-1].pathElements.push(i)})),n}}),t.Svg.Path.elementDescriptions=n,t.Svg.Path.join=function(e,n,i){for(var o=new t.Svg.Path(n,i),r=0;r<e.length;r++)for(var a=e[r],s=0;s<a.pathElements.length;s++)o.pathElements.push(a.pathElements[s]);return o}}(0,t),function(e,t){var n=unsafeWindow||e.window,i=i||n.document||e.document,o={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};t.Axis=t.Class.extend({constructor:function(e,t,n,i){this.units=e,this.counterUnits=e===o.x?o.y:o.x,this.chartRect=t,this.axisLength=t[e.rectEnd]-t[e.rectStart],this.gridOffset=t[e.rectOffset],this.ticks=n,this.options=i},createGridAndLabels:function(e,n,i,o,r){var a=o["axis"+this.units.pos.toUpperCase()],s=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(a.labelInterpolationFnc);s.forEach(function(c,u){var d,p={x:0,y:0};d=s[u+1]?s[u+1]-c:Math.max(this.axisLength-c,30),t.isFalseyButZero(l[u])&&""!==l[u]||("x"===this.units.pos?(c=this.chartRect.x1+c,p.x=o.axisX.labelOffset.x,"start"===o.axisX.position?p.y=this.chartRect.padding.top+o.axisX.labelOffset.y+(i?5:20):p.y=this.chartRect.y1+o.axisX.labelOffset.y+(i?5:20)):(c=this.chartRect.y1-c,p.y=o.axisY.labelOffset.y-(i?d:0),"start"===o.axisY.position?p.x=i?this.chartRect.padding.left+o.axisY.labelOffset.x:this.chartRect.x1-10:p.x=this.chartRect.x2+o.axisY.labelOffset.x+10),a.showGrid&&t.createGrid(c,u,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[o.classNames.grid,o.classNames[this.units.dir]],r),a.showLabel&&t.createLabel(c,d,u,l,this,a.offset,p,n,[o.classNames.label,o.classNames[this.units.dir],"start"===a.position?o.classNames[a.position]:o.classNames.end],i,r))}.bind(this))},projectValue:function(e,t,n){throw new Error("Base axis can't be instantiated!")}}),t.Axis.units=o}(this,t),function(e,t){var n=unsafeWindow||e.window,i=i||n.document||e.document;t.AutoScaleAxis=t.Axis.extend({constructor:function(e,n,i,o){var r=o.highLow||t.getHighLow(n,o,e.pos);this.bounds=t.getBounds(i[e.rectEnd]-i[e.rectStart],r,o.scaleMinSpace||20,o.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},t.AutoScaleAxis.super.constructor.call(this,e,i,this.bounds.values,o)},projectValue:function(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.bounds.min)/this.bounds.range}})}(this,t),function(e,t){var n=unsafeWindow||e.window,i=i||n.document||e.document;t.FixedScaleAxis=t.Axis.extend({constructor:function(e,n,i,o){var r=o.highLow||t.getHighLow(n,o,e.pos);this.divisor=o.divisor||1,this.ticks=o.ticks||t.times(this.divisor).map(function(e,t){return r.low+(r.high-r.low)/this.divisor*t}.bind(this)),this.ticks.sort((function(e,t){return e-t})),this.range={min:r.low,max:r.high},t.FixedScaleAxis.super.constructor.call(this,e,i,this.ticks,o),this.stepLength=this.axisLength/this.divisor},projectValue:function(e){return this.axisLength*(+t.getMultiValue(e,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}})}(this,t),function(e,t){var n=unsafeWindow||e.window,i=i||n.document||e.document;t.StepAxis=t.Axis.extend({constructor:function(e,n,i,o){t.StepAxis.super.constructor.call(this,e,i,o.ticks,o);var r=Math.max(1,o.ticks.length-(o.stretch?1:0));this.stepLength=this.axisLength/r},projectValue:function(e,t){return this.stepLength*t}})}(this,t),function(e,t){var n=unsafeWindow||e.window,i=i||n.document||e.document,o={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,showGridBackground:!1,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};t.Line=t.Base.extend({constructor:function(e,n,i,r){t.Line.super.constructor.call(this,e,n,o,t.extend({},o,i),r)},createChart:function(e){var n=t.normalizeData(this.data,e.reverseData,!0);this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart);var i,r,a=this.svg.elem("g").addClass(e.classNames.gridGroup),s=this.svg.elem("g"),l=this.svg.elem("g").addClass(e.classNames.labelGroup),c=t.createChartRect(this.svg,e,o.padding);i=void 0===e.axisX.type?new t.StepAxis(t.Axis.units.x,n.normalized.series,c,t.extend({},e.axisX,{ticks:n.normalized.labels,stretch:e.fullWidth})):e.axisX.type.call(t,t.Axis.units.x,n.normalized.series,c,e.axisX),r=void 0===e.axisY.type?new t.AutoScaleAxis(t.Axis.units.y,n.normalized.series,c,t.extend({},e.axisY,{high:t.isNumeric(e.high)?e.high:e.axisY.high,low:t.isNumeric(e.low)?e.low:e.axisY.low})):e.axisY.type.call(t,t.Axis.units.y,n.normalized.series,c,e.axisY),i.createGridAndLabels(a,l,this.supportsForeignObject,e,this.eventEmitter),r.createGridAndLabels(a,l,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&t.createGridBackground(a,c,e.classNames.gridBackground,this.eventEmitter),n.raw.series.forEach(function(o,a){var l=s.elem("g");l.attr({"ct:series-name":o.name,"ct:meta":t.serialize(o.meta)}),l.addClass([e.classNames.series,o.className||e.classNames.series+"-"+t.alphaNumerate(a)].join(" "));var u=[],d=[];n.normalized.series[a].forEach(function(e,s){var l={x:c.x1+i.projectValue(e,s,n.normalized.series[a]),y:c.y1-r.projectValue(e,s,n.normalized.series[a])};u.push(l.x,l.y),d.push({value:e,valueIndex:s,meta:t.getMetaData(o,s)})}.bind(this));var p={lineSmooth:t.getSeriesOption(o,e,"lineSmooth"),showPoint:t.getSeriesOption(o,e,"showPoint"),showLine:t.getSeriesOption(o,e,"showLine"),showArea:t.getSeriesOption(o,e,"showArea"),areaBase:t.getSeriesOption(o,e,"areaBase")},f=("function"==typeof p.lineSmooth?p.lineSmooth:p.lineSmooth?t.Interpolation.monotoneCubic():t.Interpolation.none())(u,d);if(p.showPoint&&f.pathElements.forEach(function(n){var s=l.elem("line",{x1:n.x,y1:n.y,x2:n.x+.01,y2:n.y},e.classNames.point).attr({"ct:value":[n.data.value.x,n.data.value.y].filter(t.isNumeric).join(","),"ct:meta":t.serialize(n.data.meta)});this.eventEmitter.emit("draw",{type:"point",value:n.data.value,index:n.data.valueIndex,meta:n.data.meta,series:o,seriesIndex:a,axisX:i,axisY:r,group:l,element:s,x:n.x,y:n.y})}.bind(this)),p.showLine){var m=l.elem("path",{d:f.stringify()},e.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:n.normalized.series[a],path:f.clone(),chartRect:c,index:a,series:o,seriesIndex:a,seriesMeta:o.meta,axisX:i,axisY:r,group:l,element:m})}if(p.showArea&&r.range){var h=Math.max(Math.min(p.areaBase,r.range.max),r.range.min),g=c.y1-r.projectValue(h);f.splitByCommand("M").filter((function(e){return e.pathElements.length>1})).map((function(e){var t=e.pathElements[0],n=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,g).line(t.x,t.y).position(e.pathElements.length+1).line(n.x,g)})).forEach(function(t){var s=l.elem("path",{d:t.stringify()},e.classNames.area,!0);this.eventEmitter.emit("draw",{type:"area",values:n.normalized.series[a],path:t.clone(),series:o,seriesIndex:a,axisX:i,axisY:r,chartRect:c,index:a,group:l,element:s})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:r.bounds,chartRect:c,axisX:i,axisY:r,svg:this.svg,options:e})}})}(this,t),function(e,t){var i=unsafeWindow||e.window,o=o||i.document||e.document,r={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:t.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,referenceValue:0,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,showGridBackground:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",gridBackground:"ct-grid-background",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};t.Bar=t.Base.extend({constructor:function(e,n,i,o){t.Bar.super.constructor.call(this,e,n,r,t.extend({},r,i),o)},createChart:function(e){var i,o;e.distributeSeries?(i=t.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y")).normalized.series=i.normalized.series.map((function(e){return[e]})):i=t.normalizeData(this.data,e.reverseData,e.horizontalBars?"x":"y"),this.svg=t.createSvg(this.container,e.width,e.height,e.classNames.chart+(e.horizontalBars?" "+e.classNames.horizontalBars:""));var a=this.svg.elem("g").addClass(e.classNames.gridGroup),s=this.svg.elem("g"),l=this.svg.elem("g").addClass(e.classNames.labelGroup);if(e.stackBars&&0!==i.normalized.series.length){var c=t.serialMap(i.normalized.series,(function(){return Array.prototype.slice.call(arguments).map((function(e){return e})).reduce((function(e,t){return{x:e.x+(t&&t.x)||0,y:e.y+(t&&t.y)||0}}),{x:0,y:0})}));o=t.getHighLow([c],e,e.horizontalBars?"x":"y")}else o=t.getHighLow(i.normalized.series,e,e.horizontalBars?"x":"y");o.high=+e.high||(0===e.high?0:o.high),o.low=+e.low||(0===e.low?0:o.low);var u,d,p,f,m,h=t.createChartRect(this.svg,e,r.padding);d=e.distributeSeries&&e.stackBars?i.normalized.labels.slice(0,1):i.normalized.labels,e.horizontalBars?(u=f=void 0===e.axisX.type?new t.AutoScaleAxis(t.Axis.units.x,i.normalized.series,h,t.extend({},e.axisX,{highLow:o,referenceValue:0})):e.axisX.type.call(t,t.Axis.units.x,i.normalized.series,h,t.extend({},e.axisX,{highLow:o,referenceValue:0})),p=m=void 0===e.axisY.type?new t.StepAxis(t.Axis.units.y,i.normalized.series,h,{ticks:d}):e.axisY.type.call(t,t.Axis.units.y,i.normalized.series,h,e.axisY)):(p=f=void 0===e.axisX.type?new t.StepAxis(t.Axis.units.x,i.normalized.series,h,{ticks:d}):e.axisX.type.call(t,t.Axis.units.x,i.normalized.series,h,e.axisX),u=m=void 0===e.axisY.type?new t.AutoScaleAxis(t.Axis.units.y,i.normalized.series,h,t.extend({},e.axisY,{highLow:o,referenceValue:0})):e.axisY.type.call(t,t.Axis.units.y,i.normalized.series,h,t.extend({},e.axisY,{highLow:o,referenceValue:0})));var g=e.horizontalBars?h.x1+u.projectValue(0):h.y1-u.projectValue(0),v=[];p.createGridAndLabels(a,l,this.supportsForeignObject,e,this.eventEmitter),u.createGridAndLabels(a,l,this.supportsForeignObject,e,this.eventEmitter),e.showGridBackground&&t.createGridBackground(a,h,e.classNames.gridBackground,this.eventEmitter),i.raw.series.forEach(function(o,r){var a,l,c=r-(i.raw.series.length-1)/2;a=e.distributeSeries&&!e.stackBars?p.axisLength/i.normalized.series.length/2:e.distributeSeries&&e.stackBars?p.axisLength/2:p.axisLength/i.normalized.series[r].length/2,(l=s.elem("g")).attr({"ct:series-name":o.name,"ct:meta":t.serialize(o.meta)}),l.addClass([e.classNames.series,o.className||e.classNames.series+"-"+t.alphaNumerate(r)].join(" ")),i.normalized.series[r].forEach(function(s,d){var b,y,x,k;if(k=e.distributeSeries&&!e.stackBars?r:e.distributeSeries&&e.stackBars?0:d,b=e.horizontalBars?{x:h.x1+u.projectValue(s&&s.x?s.x:0,d,i.normalized.series[r]),y:h.y1-p.projectValue(s&&s.y?s.y:0,k,i.normalized.series[r])}:{x:h.x1+p.projectValue(s&&s.x?s.x:0,k,i.normalized.series[r]),y:h.y1-u.projectValue(s&&s.y?s.y:0,d,i.normalized.series[r])},n(p,t.StepAxis)&&(p.options.stretch||(b[p.units.pos]+=a*(e.horizontalBars?-1:1)),b[p.units.pos]+=e.stackBars||e.distributeSeries?0:c*e.seriesBarDistance*(e.horizontalBars?-1:1)),x=v[d]||g,v[d]=x-(g-b[p.counterUnits.pos]),void 0!==s){var w={};w[p.units.pos+"1"]=b[p.units.pos],w[p.units.pos+"2"]=b[p.units.pos],!e.stackBars||"accumulate"!==e.stackMode&&e.stackMode?(w[p.counterUnits.pos+"1"]=g,w[p.counterUnits.pos+"2"]=b[p.counterUnits.pos]):(w[p.counterUnits.pos+"1"]=x,w[p.counterUnits.pos+"2"]=v[d]),w.x1=Math.min(Math.max(w.x1,h.x1),h.x2),w.x2=Math.min(Math.max(w.x2,h.x1),h.x2),w.y1=Math.min(Math.max(w.y1,h.y2),h.y1),w.y2=Math.min(Math.max(w.y2,h.y2),h.y1);var A=t.getMetaData(o,d);y=l.elem("line",w,e.classNames.bar).attr({"ct:value":[s.x,s.y].filter(t.isNumeric).join(","),"ct:meta":t.serialize(A)}),this.eventEmitter.emit("draw",t.extend({type:"bar",value:s,index:d,meta:A,series:o,seriesIndex:r,axisX:f,axisY:m,chartRect:h,group:l,element:y},w))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:u.bounds,chartRect:h,axisX:f,axisY:m,svg:this.svg,options:e})}})}(this,t),function(e,t){var n=unsafeWindow||e.window,i=i||n.document||e.document,o={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:t.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};function r(e,t,n){var i=t.x>e.x;return i&&"explode"===n||!i&&"implode"===n?"start":i&&"implode"===n||!i&&"explode"===n?"end":"middle"}t.Pie=t.Base.extend({constructor:function(e,n,i,r){t.Pie.super.constructor.call(this,e,n,o,t.extend({},o,i),r)},createChart:function(e){var n,i,a,s,l,c=t.normalizeData(this.data),u=[],d=e.startAngle;this.svg=t.createSvg(this.container,e.width,e.height,e.donut?e.classNames.chartDonut:e.classNames.chartPie),i=t.createChartRect(this.svg,e,o.padding),a=Math.min(i.width()/2,i.height()/2),l=e.total||c.normalized.series.reduce((function(e,t){return e+t}),0);var p=t.quantity(e.donutWidth);"%"===p.unit&&(p.value*=a/100),a-=e.donut&&!e.donutSolid?p.value/2:0,s="outside"===e.labelPosition||e.donut&&!e.donutSolid?a:"center"===e.labelPosition?0:e.donutSolid?a-p.value/2:a/2,s+=e.labelOffset;var f={x:i.x1+i.width()/2,y:i.y2+i.height()/2},m=1===c.raw.series.filter((function(e){return e.hasOwnProperty("value")?0!==e.value:0!==e})).length;c.raw.series.forEach(function(e,t){u[t]=this.svg.elem("g",null,null)}.bind(this)),e.showLabel&&(n=this.svg.elem("g",null,null)),c.raw.series.forEach(function(i,o){if(0!==c.normalized.series[o]||!e.ignoreEmptyValues){u[o].attr({"ct:series-name":i.name}),u[o].addClass([e.classNames.series,i.className||e.classNames.series+"-"+t.alphaNumerate(o)].join(" "));var h=l>0?d+c.normalized.series[o]/l*360:0,g=Math.max(0,d-(0===o||m?0:.2));h-g>=359.99&&(h=g+359.99);var v,b,y,x=t.polarToCartesian(f.x,f.y,a,g),k=t.polarToCartesian(f.x,f.y,a,h),w=new t.Svg.Path(!e.donut||e.donutSolid).move(k.x,k.y).arc(a,a,0,h-d>180,0,x.x,x.y);e.donut?e.donutSolid&&(y=a-p.value,v=t.polarToCartesian(f.x,f.y,y,d-(0===o||m?0:.2)),b=t.polarToCartesian(f.x,f.y,y,h),w.line(v.x,v.y),w.arc(y,y,0,h-d>180,1,b.x,b.y)):w.line(f.x,f.y);var A=e.classNames.slicePie;e.donut&&(A=e.classNames.sliceDonut,e.donutSolid&&(A=e.classNames.sliceDonutSolid));var S=u[o].elem("path",{d:w.stringify()},A);if(S.attr({"ct:value":c.normalized.series[o],"ct:meta":t.serialize(i.meta)}),e.donut&&!e.donutSolid&&(S._node.style.strokeWidth=p.value+"px"),this.eventEmitter.emit("draw",{type:"slice",value:c.normalized.series[o],totalDataSum:l,index:o,meta:i.meta,series:i,group:u[o],element:S,path:w.clone(),center:f,radius:a,startAngle:d,endAngle:h}),e.showLabel){var C,L;C=1===c.raw.series.length?{x:f.x,y:f.y}:t.polarToCartesian(f.x,f.y,s,d+(h-d)/2),L=c.normalized.labels&&!t.isFalseyButZero(c.normalized.labels[o])?c.normalized.labels[o]:c.normalized.series[o];var I=e.labelInterpolationFnc(L,o);if(I||0===I){var _=n.elem("text",{dx:C.x,dy:C.y,"text-anchor":r(f,C,e.labelDirection)},e.classNames.label).text(""+I);this.eventEmitter.emit("draw",{type:"label",index:o,group:n,element:_,text:""+I,x:C.x,y:C.y})}}d=h}}.bind(this)),this.eventEmitter.emit("created",{chartRect:i,svg:this.svg,options:e})},determineAnchorPosition:r})}(this,t),t}()}.apply(t,[]))||(e.exports=o)},function(e,t,n){n.r(t);var i=n(10),r=n(13),s=n(11),l=n(9),c=n(18),u=n(21),d=n(22),p=n(23),f=n(24),m=n(25),h=n(26);t.default=new(function(){function e(){o(this,e)}return a(e,[{key:"init",value:(t=ye()(ve.a.mark((function e(){var t,n,o,a,g,v,b,y,x,k,w;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=l.default.parseProductPage(),window.aliwizPageData=t,e.next=4,i.default.getPriceData(t.productId);case 4:return n=e.sent,e.next=7,i.default.getSellerData(t.ownerMemberId);case 7:return o=e.sent,e.next=10,i.default.getReviewData(t.ownerMemberId,t.productId);case 10:return a=e.sent,e.next=13,i.default.getSimilarData(t.productId,t.categoryId);case 13:return g=e.sent,e.next=16,s.default.init();case 16:v=new c.default(n),b=new u.default(o),y=new d.default(a),x=new p.default(g),k=new f.default(s.default.data),w=new m.default({price:v,seller:b,review:y,similar:x,bookmark:k,BookmarkLogic:s.default}),new h.default({price:v,seller:b,bookmark:k,BookmarkLogic:s.default,panel:w}),r.default.savePrices(n,t.productId,t.currencyRate,t.currency);case 18:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e;var t}())},function(e,t,n){n.r(t),t.default=function(){function e(){o(this,e),this.listeners=[]}return a(e,[{key:"addListener",value:function(e){-1===this.listeners.indexOf(e)&&this.listeners.push(e)}},{key:"dispatch",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.listeners.forEach((function(e){e.apply(void 0,t)}))}},{key:"hasListener",value:function(e){return-1!==this.listeners.indexOf(e)}},{key:"hasListeners",value:function(){return this.listeners.length>0}},{key:"removeListener",value:function(e){var t=this.listeners.indexOf(e);-1!==t&&this.listeners.splice(t,1)}}]),e}()},function(e,t,n){n.r(t);var i=n(5),r=n.n(i),s=n(6),c=n.n(s),u=n(19),d=n.n(u),p=n(20),f=n(2),m=n(8),h=n(1),g=n(0),v=n.n(g),b=function(){return'n    <div class="price-mini-text">n      <img class="price-triangle price-triangle-bad" src="'.concat(c.a.minitrianglebad,'">n      <img class="price-triangle price-triangle-good" src="').concat(c.a.minitrianglegood,'">n      <span class="price-mini-sign">$</span>n      <span class="price-mini-none">-</span>n    </div>n  ')};t.default=function(){function e(t){o(this,e),this.data=t,this.widgetId="price-history",this.buttonId="price-button",this.priceHistory=new d.a(this.data),this.status=this.getStatus(),this.widget=r.a.getWidget(this.getWidget()),this.button=r.a.getButton(this.getButton()),this.miniButton=r.a.getMiniButton(this.getButton(),b()),this.trackButtons=[],this.trackTexts=[]}return a(e,[{key:"getButtonContent",value:function(){return this.priceHistory.divergenceDynamic+f.default.getCurrencyPricePart(f.default.convertPrice(this.priceHistory.divergence),"button-price-currency")}},{key:"getHeader",value:function(){var e=f.default.convertPrice(this.priceHistory.divergence),t=l()(this.priceHistory.divergencePercent).toFixed(2);return function(e,t){return'n      <div class="sa-c-seller__header-text">n          <div class="sa-c-seller__main-text">'.concat(e,"</div>n          ").concat(t?'<div class="sa-c-seller__secondary-text">'+t+"</div>":"","n      </div>n  ")}(t>=1?i18n("price_increased",e,"title-currency"):t<=-1?i18n("price_dropped",e,"title-currency"):t>-1&&t<1?i18n("price_unchanged"):i18n("no_price"),t>=.01?i18n("price_higher",Math.abs(t)):t<=-.01?i18n("price_lower",Math.abs(t)):t>-.01&&t<.01?i18n("price_average"):null)}},{key:"getBody",value:function(){return this.data.prices&&this.data.prices.length?'n  <div class="sa-c-price__chart-block">n    <div id="chart"></div>n  </div>n  <div class="sa-c-price__buttons-block">n    <button class="sa-c-price-btn" type="button">n    </button>nn    <div class="sa-c-price__track-block"></div>n  </div>':'<div class="window-no-data"><img src="'.concat(c.a.errorcloud,'">n    <div class="sa-c-price__buttons-block">n      <button class="sa-c-price-btn" type="button">n      </button>nn      <div class="sa-c-price__track-block"></div>n    </div>n  </div>')}},{key:"getButton",value:function(){return{href:this.widgetId,buttonId:this.buttonId,buttonContent:this.getButtonContent(),buttonName:i18n("price"),class:m.default.BUTTON_CSS_CLASSES[this.status]}}},{key:"getWidget",value:function(){return{header:this.getHeader(),id:this.widgetId,body:this.getBody(),class:"sa-l-modal--price "+m.default.SELLER_TITLE_CSS_CLASSES[this.status]}}},{key:"getStatus",value:function(){var e=l()(this.priceHistory.divergencePercent).toFixed(2),t=v.a.NOT_INFO;return e>=1?t=v.a.BAD:e<=-1&&(t=v.a.GOOD),t}},{key:"refresh",value:function(e,t){this.trackButtons.forEach((function(t){t.innerHTML=e?i18n("unfollow_price"):i18n("follow_price")})),this.trackTexts.forEach((function(n){n.innerHTML=e?i18n("tracking_bookmarks",t):""}))}},{key:"onInit",value:function(e){this.trackButtons.push(Object(h.$)("button.sa-c-price-btn",e)),this.trackTexts.push(Object(h.$)("div.sa-c-price__track-block",e)),this.data&&this.data.prices&&p.default.init(e,this.data,this.priceHistory)}}]),e}()},function(e,t){e.exports=function(){function e(t){if(o(this,e),this.data=t,!t||!t.prices)return this.divergenceDynamic="",void(this.divergence="-");this.averagePrice=this.getAveragePrice(),this.minPoint=this.getMinPoint(),this.maxPoint=this.getMaxPoint(),this.divergence=this.getDivergence(),this.divergencePercent=this.getDivergencePercent(),this.divergenceDynamic=this.getDivergenceDynamic()}return a(e,[{key:"getAveragePrice",value:function(){var e=0;return this.data.prices.forEach((function(t){e+=t})),l()(e/this.data.prices.length)}},{key:"getMaxPoint",value:function(){return this.data.prices.reduce((function(e,t){return Math.max(e,t)}))}},{key:"getMinPoint",value:function(){return this.data.prices.reduce((function(e,t){return Math.min(e,t)}))}},{key:"getDivergence",value:function(){return this.data.prices[this.data.prices.length-1]-this.averagePrice}},{key:"getDivergencePercent",value:function(){var e=this.averagePrice/100;return this.divergence/e}},{key:"getDivergenceDynamic",value:function(){var e=l()(this.divergencePercent).toFixed(2),t="";return e>0?t="+":e<0&&(t="-"),t}}]),e}()},function(e,t,n){n.r(t);var i=n(1),o=n(2),r=n(15),a={ru:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],en:["january","february","march","april","may","june","july","august","september","october","november","december"]};function s(e){var t=new Date(I()(e));return t.getDate()+" "+a[window.aliwizPageData.locale][t.getMonth()]}t.default=new function(){this.init=function(e,t,n){var a=Object(i.$)("#chart",e),l=(a.offsetWidth||416)+"px",c={labels:t.dates,series:[t.prices]},u={showPoint:!0,lineSmooth:r.Interpolation.monotoneCubic({fillHoles:!0}),axisX:{showGrid:!1,showLabel:!1},axisY:{showGrid:!1,showLabel:!1},stretch:!0,plugins:[r.plugins.tooltip({pointClass:"ct-point",currencyFormatCallback:function(e){return o.default.convertPrice(e)},timeFormatCallback:s})],height:"153px",width:l},d=new r.Line(a,c,u);return d.on("draw",(function(e){if("point"==e.type&&(e.value.x||(e.value.x=e.axisX.ticks[e.index]),e.element._node.setAttribute("ct:value-y",e.value.y),e.element._node.setAttribute("ct:value-x",e.value.x),[n.maxPoint,n.minPoint].indexOf(e.value.y)>-1)){var t=new r.Svg("line",{x1:[e.x],y1:[e.y],x2:[e.x],y2:[e.y],r:[3]},"ct-point ct-point-filler");e.element._node.className.baseVal="ct-point ct-circle ct-circle-"+(e.value.y==n.minPoint?"good":"bad"),e.element.parent().append(t)}})),d}}},function(e,t,n){n.r(t);var i=n(5),r=n.n(i),s=n(6),l=n.n(s),c=n(8),u=n(0),d=n.n(u),p=function(e){return'n    <div class="seller-mini-text"><span>'.concat(e="-"==e?"-":e+"%","</span></div>n  ")},f='<div class="window-no-data"><img src="'.concat(l.a.errorcloud,'"></div>');t.default=function(){function e(t){o(this,e),this.data=t,this.data.score=this.getScore(),this.widgetId="seller",this.buttonId="seller-button",this.widget=r.a.getWidget(this.getWidget()),this.button=r.a.getButton(this.getButton()),this.miniButton=r.a.getMiniButton(this.getButton(),p(this.data.score))}return a(e,[{key:"getButtonContent",value:function(){return"-"==this.data.score?"-":this.data.score+'<span class="sa-c-btn__seller-symbol">%</span>'}},{key:"getBody",value:function(){var e=this.getSellerData();return e&&e.length?function(e){var t="";return e.forEach((function(e){t+='<li class="sa-c-seller__list-item '.concat(c.default.SELLER_DESCRIPTION_CSS_CLASSES[e.status],'">').concat(e.text,"</li>")})),'<ul class="sa-c-seller__list">n    '.concat(t,"n  </ul>")}(e):f}},{key:"getButton",value:function(){return{href:this.widgetId,buttonId:this.buttonId,buttonContent:this.getButtonContent(),buttonName:i18n("seller"),class:c.default.BUTTON_CSS_CLASSES[this.data.status]}}},{key:"getHeader",value:function(){var e="",t="",n="";this.data.status!=d.a.NOT_INFO&&(e=c.default.SELLER_TITLE_IMAGE_PATHS[this.data.status]);var i=this.data.feedback.total,o=this.data.age;return i<20?t=i18n("not_reliability_title"):i>20&&(t=i18n("seller_reliability",this.data.score),n=this.data.status==d.a.GOOD?i18n("safely_buy"):this.data.status==d.a.GOOD&&o<1?i18n("new_seller"):this.data.status==d.a.WEAK?i18n("average_buy"):this.data.status==d.a.WARN?i18n("caution_buy"):i18n("not_recommended")),function(e,t,n){return'n      <div class="sa-c-seller__header-text">n          <div class="sa-c-seller__main-text">'.concat(t,'</div>n          <div class="sa-c-seller__secondary-text">').concat(n,'</div>n      </div>nn      <img src="').concat(e,'" class="sa-c-seller__smile" />n  ')}(e,t,n)}},{key:"getWidget",value:function(){return{header:this.getHeader(),id:this.widgetId,body:this.getBody(),class:c.default.SELLER_TITLE_CSS_CLASSES[this.data.status]}}},{key:"getScore",value:function(){var e="-";return this.data&&this.data.feedback.total>20&&(e=this.data.score?I()(this.data.score.toFixed(),10):"-"),e}},{key:"getSellerData",value:function(){var e=this.data.age,t=Math.floor(e/(1/12)),n=this.data.feedback.total,i=n.negative,o=n.neutral,r=I()((i+o).toFixed(1),10),a=[],s=this.data.average,l=s.description,c=s.communication,u=s.shipping;if(!(n<20))return t>12?a.push({text:i18n("good_experience"),status:d.a.GOOD}):t>6?a.push({text:i18n("weak_experience"),status:d.a.WEAK}):t>3?a.push({text:i18n("warn_experience"),status:d.a.WARN}):a.push({text:i18n("bad_experience"),status:d.a.BAD}),r<=1.4?a.push({text:i18n("satisfied"),status:d.a.GOOD}):r<=2.4?a.push({text:i18n("not_satisfied",r),status:d.a.GOOD}):r<=4.9?a.push({text:i18n("not_satisfied",r),status:d.a.WEAK}):r<=8.9?a.push({text:i18n("not_satisfied",r),status:d.a.WARN}):r>=9&&a.push({text:i18n("not_satisfied",r),status:d.a.BAD}),c>=-3.9?a.push({text:i18n("good_communication"),status:d.a.GOOD}):c>=-6.9?a.push({text:i18n("warn_communication"),status:d.a.WEAK}):c>=-9.9?a.push({text:i18n("warn_communication"),status:d.a.WARN}):c<-10&&a.push({text:i18n("bad_communication"),status:d.a.BAD}),l>=-3.9?a.push({text:i18n("good_description"),status:d.a.GOOD}):l>=-6.9?a.push({text:i18n("warn_description"),status:d.a.WEAK}):l>=-9.9?a.push({text:i18n("warn_description"),status:d.a.WARN}):l<-10&&a.push({text:i18n("bad_description"),status:d.a.BAD}),u>=-3.9?a.push({text:i18n("good_shipping"),status:d.a.GOOD}):u>=-6.9?a.push({text:i18n("warn_shipping"),status:d.a.WEAK}):u>=-9.9?a.push({text:i18n("warn_shipping"),status:d.a.WARN}):u<-10&&a.push({text:i18n("bad_shipping"),status:d.a.BAD}),a}}]),e}()},function(e,t,n){n.r(t);var i=n(5),r=n.n(i),s=n(6),l=function(e){return'n  <a href="'.concat(e,'" target="_blank" class="sa-c-review">n  <div style="background-image: url(').concat(e,')"></div>n  </a>')},c='<div class="window-no-data"><img src="'.concat(n.n(s).a.errorcloud,'"></div>');t.default=function(){function e(t){o(this,e),this.data=t,this.widgetId="review-and-photo",this.buttonId="review-button",this.widget=r.a.getWidget(this.getWidget()),this.button=r.a.getButton(this.getButton())}return a(e,[{key:"getButtonContent",value:function(){return this.data.images.length}},{key:"getBody",value:function(){return this.data.images&&this.data.images.length?de()(this.data.images,l).join(""):c}},{key:"getButton",value:function(){return{href:this.widgetId,buttonId:this.buttonId,buttonContent:this.getButtonContent(),buttonName:i18n("reviews")}}},{key:"getWidget",value:function(){return{header:i18n("reviews_title"),id:this.widgetId,body:this.getBody(),class:"sa-l-modal--grid"}}}]),e}()},function(e,t,n){n.r(t);var i=n(5),r=n.n(i),s=n(2),l=n(6),c=function(e){return'n  <a href="'.concat(e.productDetailUrl,'" target="_blank" class="sa-c-similar">n      <div class="sa-c-similar__img" style="background-image: url(').concat(e.productImage,')"></div>n      <div class="sa-c-similar__text-block">n        ').concat(function(e){var t=s.default.getCurrencyPricePart(s.default.stripPriceParts(e.minPrice),"similar-item-currency"),n=s.default.getCurrencyPricePart(s.default.stripPriceParts(e.maxPrice),"similar-item-currency");return t==n||n.length>7?'n    <span class="sa-c-similar__text">'.concat(n,"</span>"):'<span class="sa-c-similar__text">'.concat(t,'</span>n    <span class="sa-c-similar__divider">-</span>n    <span class="sa-c-similar__text">').concat(n,"</span>")}(e),"n      </div>n  </a>n  ")},u='<div class="window-no-data"><img src="'.concat(n.n(l).a.errorcloud,'"></div>');t.default=function(){function e(t){o(this,e),this.data=t,this.widgetId="similar",this.buttonId="similar-button",this.widget=r.a.getWidget(this.getWidget()),this.button=r.a.getButton(this.getButton())}return a(e,[{key:"getButtonContent",value:function(){return this.data.length}},{key:"getBody",value:function(){return this.data&&this.data.length?de()(this.data,c).join(""):u}},{key:"getButton",value:function(){return{href:this.widgetId,buttonId:this.buttonId,buttonContent:this.getButtonContent(),buttonName:i18n("similar")}}},{key:"getWidget",value:function(){return{header:i18n("similar_title"),id:this.widgetId,body:this.getBody(),class:"sa-l-modal--grid"}}}]),e}()},function(e,t,n){n.r(t);var i=n(5),r=n.n(i),s=n(2),l=n(6),c=n.n(l),u=n(1),d=function(e){return'n    <div data-id="'.concat(e.id,'" class="sa-l-review-box">n      <a href="').concat(e.link,'" target="_blank">n        <img alt="').concat(e.title,'" class="sa-c-review-box__img" src="').concat(e.image,'">n      </a>nn      <div class="sa-c-review-box__desc ').concat(e.class,'">n          <div class="sa-c-review-box__main-text">').concat(s.default.getCurrencyPricePart(e.price,"bookmark-item-currency"),'</div>n          <div class="sa-c-review-box__secondary-text">').concat(e.description,'</div>n      </div>nn      <img class="sa-c-review-box__trash" src="').concat(c.a.trash,'">n    </div>n  ')},p='<div class="window-no-data"><img src="'.concat(c.a.errorcloud,'"></div>');t.default=function(){function e(t){o(this,e),this.data=t.bookmarks,this.widgetId="bookmarks",this.buttonId="bookmark-button",this.widget=r.a.getWidget(this.getWidget()),this.button=r.a.getButton(this.getButton())}return a(e,[{key:"getButtonContent",value:function(){return this.data.length}},{key:"getBody",value:function(){return this.data&&this.data.length?de()(this.data,d).join(""):p}},{key:"getButton",value:function(){return{href:this.widgetId,buttonId:this.buttonId,buttonContent:this.getButtonContent(),buttonName:i18n("bookmarks")}}},{key:"getWidget",value:function(){return{header:i18n("bookmarks_title"),id:this.widgetId,body:this.getBody(),class:"sa-l-modal--grid"}}},{key:"refresh",value:function(e,t){this.data=t.bookmarks,Object(u.$)("button #".concat(this.buttonId),e).innerHTML=this.getButtonContent(),Object(u.$)("section#".concat(this.widgetId," .sa-c-window__body"),e).innerHTML=this.getBody()}}]),e}()},function(e,t,n){n.r(t);var i=n(5),r=n.n(i),s=n(3),c=n(2),u=n(12),d=n.n(u),p=n(1);t.default=function(){function e(t){o(this,e),this.panelContent=r.a.getPanelWrapper({buttons:this.getButtons(t),widgets:this.getWidgets(t),mini:this.getMiniView(t)}),this.panel=this.createPanel(),this.panel.innerHTML=this.panelContent,this.bindClickEvents(t),this.onInit(t)}return a(e,[{key:"getMiniView",value:function(e){return e.seller.miniButton+e.price.miniButton}},{key:"getButtons",value:function(e){return e.price.button+e.seller.button+e.review.button+e.similar.button+e.bookmark.button}},{key:"getWidgets",value:function(e){return e.price.widget+e.seller.widget+e.review.widget+e.similar.widget+e.bookmark.widget}},{key:"showWidget",value:function(e,t){var n=t||e.target.getAttribute("data-href");s.default.click(n+"-tab-click");var i=Object(p.$)("#"+n,this.panel),o=Object(p.$)('button[data-href="'.concat(n,'"'),this.panel);this.closeWidgets(),i.classList.remove("sa-u-hide"),o.classList.add("sa-c-btn--active")}},{key:"closeWidgets",value:function(){Object(p.$$)("section",this.panel).forEach((function(e){e.classList.add("sa-u-hide")})),Object(p.$$)("button[data-href]",this.panel).forEach((function(e){return e.classList.remove("sa-c-btn--active"),e.style.display}))}},{key:"togglePanelView",value:function(e,t){var n=Object(p.$)("#static-wrapper",this.panel);e&&e.target.classList.contains("sa-c-logo")&&s.default.click("logo-click"),"open"===t?n.classList.remove("aliwiz-mini"):(n.classList.contains("aliwiz-mini")||e.target.classList.contains("sa-c-logo"))&&(this.closeWidgets(),n.classList.toggle("aliwiz-mini"))}},{key:"bindClickEvents",value:function(e){Object(p.$$)("button[data-href]",this.panel).forEach(function(e){e.onclick=function(e){this.showWidget(e)}.bind(this)}.bind(this)),Object(p.$$)("button.sa-c-close-btn",this.panel).forEach(function(e){e.onclick=function(e){this.closeWidgets()}.bind(this)}.bind(this)),Object(p.$)("button.sa-c-price-btn",this.panel).onclick=function(t){e.BookmarkLogic.toggleBookmark()}.bind(this),Object(p.$)("#"+e.bookmark.widgetId,this.panel).onclick=function(t){if("sa-c-review-box__trash"==t.target.className){var n=t.path[1];e.BookmarkLogic.removeBookmark(n.dataset.id)}}.bind(this),Object(p.$)("#"+e.similar.widgetId+" .sa-c-window__body",this.panel).onclick=function(e){"A"==e.target.tagName&&(s.default.click("similar-item-click"),window.affiliateOpen&&window.affiliateOpen(e))},Object(p.$)("#"+e.price.widgetId+" .sa-c-window__body",this.panel).onclick=function(t){"sa-c-price__track-link"==t.target.className&&this.showWidget(null,e.bookmark.widgetId)}.bind(this),(Object(p.$)(".product-action")||Object(p.$)(".product-action-main")).addEventListener("click",(function(e){var t=e.target.className;if(t.indexOf("addcart")>-1||t.indexOf("add-cart")>-1){var n=window.aliwizPageData.price;s.default.addToCart((c.default.stripPriceParts(n)/c.default.currentRate).toFixed(0))}})),Object(p.$)("#static-wrapper",this.panel).onclick=function(e){this.togglePanelView(e)}.bind(this)}},{key:"onInit",value:function(e){this.closeWidgets(),e.price.onInit(this.panel),e.BookmarkLogic.setPanel(this.panel),e.BookmarkLogic.setBookmarkController(e.bookmark),e.BookmarkLogic.setPriceController(e.price);var t={cd2:window.aliwizPageData.currency.toLowerCase(),cd3:e.seller.data.score||"-",cd4:window.aliwizPageData.price||"-",cd5:e.price.priceHistory.divergence?l()(e.price.priceHistory.divergence).toFixed(1):0,cd6:e.review.data.images.length,cd7:e.similar.data.length,cd8:e.bookmark.data.length};s.default.view(t)}},{key:"createPanel",value:function(){var e=document.createElement("div");e.style="position: fixed;z-index: 9999;left: 20px;bottom: 20px;",e.id="sa-panel",document.body.appendChild(e);var t=e.attachShadow({mode:"closed"});t.textContent="";var n=document.createElement("style"),i=d()();n.innerText=i,t.appendChild(n);var o=document.createElement("slot");return o.id="root",o.className="panel",t.appendChild(o),Object(p.$)("#root",t)}}]),e}()},function(e,t,n){n.r(t);var i=n(5),r=n.n(i),s=n(12),l=n.n(s),c=n(1);t.default=function(){function e(t){o(this,e),this.frameContent=r.a.getFrameWrapper({widgets:this.getWidgets(t)}),this.frame=this.createFrame(),this.frame.innerHTML=this.frameContent,this.bindClickEvents(t),this.onInit(t)}return a(e,[{key:"getWidgets",value:function(e){return e.price.widget+e.seller.widget}},{key:"bindClickEvents",value:function(e){Object(c.$)("button.sa-c-price-btn",this.frame).onclick=function(t){e.BookmarkLogic.toggleBookmark()}.bind(this),Object(c.$)("#"+e.price.widgetId+" .sa-c-window__body",this.frame).onclick=function(t){"sa-c-price__track-link"==t.target.className&&(e.panel.togglePanelView(null,"open"),e.panel.showWidget(null,e.bookmark.widgetId))}}},{key:"onInit",value:function(e){e.price.onInit(this.frame),e.BookmarkLogic.initPriceButtons()}},{key:"createFrame",value:function(){var e=document.createElement("div");e.id="sa-frame";var t=Object(c.$)(".product-info, .detail-wrap");t.appendChild(e);var n=0,i=Object(c.$)(".product-info");if(i){var o=(i=i.children[Object(c.$)(".product-info").children.length-2]).offsetHeight+i.offsetTop,r=Object(c.$$)(".may-like-item")[2],a=0;r&&(a=r.offsetHeight+r.offsetTop),o<a&&(n=a-o+32)}Object(c.$)(".buyer-protection-banner")&&(n=15),e.style["margin-top"]=n+"px";var s=e.attachShadow({mode:"closed"});s.textContent="";var u=document.createElement("style"),d=l()();u.innerText=d,s.appendChild(u);var p=document.createElement("slot");return p.id="root",p.className="frame",t.offsetWidth<600?p.className+=" frame-width-small":p.className+=" frame-width-big",s.appendChild(p),Object(c.$)("#root",s)}}]),e}()},function(e,t,n){n.r(t);var i=n(3),r=n(2);n(4),t.default=new(function(){function e(){o(this,e)}return a(e,[{key:"isResultPage",value:function(){return null!=location.href.match(/order/payResult.htm/)}},{key:"initResultPage",value:function(){if(!document.querySelector("div.check-out-root"))return setTimeout(function(){this.initResultPage()}.bind(this),200);var e=document.querySelector("div.next-message-success");i.default.buyResult(!!e)}},{key:"init",value:(t=ye()(ve.a.mark((function e(){return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.isResultPage()?this.initResultPage():document.addEventListener("click",function(){var e=ye()(ve.a.mark((function e(t){var n,o,a,s;return ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),"checkout-button"==t.target.id&&(n=(document.querySelector(".total-price [data-spm-anchor-id]")||document.querySelector(".total-price dd")||document.querySelector(".total-price")).innerHTML,o=r.default.stripPriceParts(n,!0),a=window.parent.document.querySelector('[data-role="menu"] span.currency'),s=a?a.innerHTML:n.toString().replace(/[d.|d,]/g,""),i.default.buy(o,s));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e;var t}())},function(e,t,n){n(12),n(6),n(29),n(16),n(27),n(3),n(13),n(10),n(11),n(20),n(8),n(19),n(2),n(0),n(1),n(9),n(5),n(17),n(7),n(4),n(14),n(24),n(26),n(25),n(18),n(22),n(21),n(23),n(31),n(32),n(15),e.exports=n(33)},function(e,n,o){o.r(n);var r,a=o(16),s=o(27),l=o(3),c=o(4),u={aliwiz:"VnYZvQVf",aliradar:["hbH1Nkk","cTej9CrI","nP6MSJq","cgDwvgHw","bGa3MZZq","byG3Sbq0","ca2RfkxA","l9o1apa","coqxnlTK","lpAKLXi","50DWs56","0aJ9LvQ","o0i2IFA","cL8gU3bK","bIhplKZa","cEuNUSQU","bwsfzyBI","c0LTvdA","b2ig0zsy","bBqFV46y","EkU3hBS","QdRfSH6","cto8JdtI","ZAdrKZi","0L1abZe","xxI4r5m","caQm8QVi","IiZt5iY","5Jugp0y","7QNDIg0","VQuQCmk","cAYqZKK4","bG37mTo4","9hpVMrq","bcHlYdKo","POmDbLi","wFX4pnE","ZKEM7De","bnHBM4BQ","FOvemwy","VnYZvQVf","bM49O51A","ccfBY4yg","bdH8j4di","cVg3x1XE"]},d="aliwiz-affiliate-cookie-string",p="https://cdp.aliexpress.com",f=p+"/60.htm";function m(e){var t=RegExp(e+"[^;]+").exec(document.cookie);return decodeURIComponent(t?t.toString().replace(/^[^=]+./,""):"").split("-").pop()}if(window==window.top&&(r=location.href,[/aliexpress.([a-zA-Z]+)/store/product/.*?/(d+)_(d+).html/i,/aliexpress.([a-zA-Z]+)/item/(d+).html/i,/aliexpress.([a-zA-Z]+)/item/.*?/(d+).html/i,/tmall.([a-zA-Z]+)/item/.*?/(d+).html/i,/group.aliexpress.([a-zA-Z]+)/(d+)-(d+)-detail.html/i,/groupShare/productDetail.htm/i].some((function(e){return null!==new RegExp(e).exec(r)})))&&a.default.init(),location.href.indexOf("shoppingcart.aliexpress.")>-1&&s.default.init(),location.href===f){var h=m("aeu_cid");window.parent.postMessage(h,"https://aliexpress.ru"),window.parent.postMessage(h,"https://tmall.ru")}else window==window.top&&function e(t,n){var o=new URL(location.href),r=m("aeu_cid")||o.searchParams.get("sk");if(r)return c.default.set(i({},d,(new Date).getTime()+"-"+r)),t(r);location.host.indexOf("aliexpress.com")<0?c.default.get([d],(function(n){var o=n[d]||"",r=o.split("-")[0];if(r&&!(I()(r)+864e5<(new Date).getTime()))return t(o.split("-")[1]);var a=document.createElement("iframe");a.src=f,window.onmessage=function(n){n.origin==p&&(c.default.set(i({},d,(new Date).getTime()+"-"+n.data)),e(t,!0),a.remove())},document.body.appendChild(a)})):t(null)}((function(e){console.log(e);var n=!e,i=e==u.aliwiz,o=u.aliradar.indexOf(e)>-1;i||n||l.default.affiliateError(o?"aliradar":"other",e);var r=function(e,t,n){e.preventDefault(),t=t||e.target.href,n=n||e.target.target;var i="https://alitems.com/g/1e8d114494b2eb12445816525dc3e8/?ulp="+new URL(/^https?/.test(t)?t:window.location.protocol+t);window.open(i,n)};if(n||i){window.affiliateOpen=r;new MutationObserver((function(e){return e.forEach((function(e){[].concat(t(document.querySelectorAll('a[href*="/item/"]')),t(document.querySelectorAll('a[href*="/store/product/"]')),t(document.querySelectorAll('a[href*="/groupShare/productDetail.htm"]'))).forEach((function(e){var t=e.getAttribute("href");t&&!e.getAttribute("data-checked")&&/aliexpress.([a-zA-Z]+)/(item|store|groupShare)/.test(t)&&(e.setAttribute("data-checked",!0),e.addEventListener("click",(function(n){r(n,t,e.getAttribute("target"))})))}))}))})).observe(document.body,{attributes:!0,childList:!0,characterData:!0})}}))},function(e){e.exports=JSON.parse('{"manifest_version":2,"name":"__MSG_name__","author":"Anton Yolhin","description":"__MSG_description__","version":"1.0.4","default_locale":"en","permissions":["storage","https://*.aliexpress.com/*","https://*.pricearchive.org/*","https://*.aliradar.com/*","https://sa.3205.tools/*","http://localhost:3000/*"],"browser_action":{"default_icon":"icon-16.png"},"icons":{"16":"icon-16.png","48":"icon-48.png","128":"icon-128.png"},"content_scripts":[{"matches":["*://*.aliexpress.com/*","*://*.aliexpress.ru/*","https://tmall.ru/*"],"js":["/content.js"],"run_at":"document_idle","all_frames":true}],"background":{"scripts":["/background.js"],"persistent":true}}')},function(e,n){!function(){function e(e,n){return function(){for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];var a,s=o;if(o&&o.length>0){var l=o[o.length-1];"function"==typeof l&&(s=o.slice(0,o.length-1),a=l)}return new P.a((function(i,o){try{e.apply(void 0,t(s).concat([function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(a)try{a.apply(void 0,t)}catch(t){o(t)}if(chrome.runtime.lastError)o(new Error(chrome.runtime.lastError.message||"Error thrown by API ".concat(chrome.runtime.lastError)));else if(n){var s=n.apply(void 0,t);i(s)}else t&&0!==t.length?1===t.length?i(t[0]):i(t):i()}]))}catch(e){o(e)}}))}}function n(t,i){if(t){var o=!0,r=!1,a=void 0;try{for(var s,l=fe()(i);!(o=(s=l.next()).done);o=!0){var c,u=s.value;if(c="string"==typeof u?u:u.n,t.hasOwnProperty(c)){var d=t[c];"function"==typeof d?t[c]=e(d.bind(t),u.cb):n(d,u.props)}}}catch(e){r=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(r)throw a}}}}var i=["get","set","clear"],o=["clear","get","set","getResourceIdentifiers"],r=["get","getBytesInUse","set","remove","clear"];!function(e){for(var t in e){var i=chrome[t];i&&n(i,e[t])}}({accessibilityFeatures:[{n:"spokenFeedback",props:i},{n:"largeCursor",props:i},{n:"stickyKeys",props:i},{n:"highContrast",props:i},{n:"screenMagnifier",props:i},{n:"autoclick",props:i},{n:"virtualKeyboard",props:i},{n:"animationPolicy",props:i}],alarms:["get","getAll","clear","clearAll"],bookmarks:["get","getChildren","getRecent","getTree","getSubTree","search","create","move","update","remove","removeTree"],browser:["openTab"],browserAction:["getTitle","setIcon","getPopup","getBadgeText","getBadgeBackgroundColor"],browsingData:["settings","remove","removeAppcache","removeCache","removeCookies","removeDownloads","removeFileSystems","removeFormData","removeHistory","removeIndexedDB","removeLocalStorage","removePluginData","removePasswords","removeWebSQL"],commands:["getAll"],contentSettings:[{n:"cookies",props:o},{n:"images",props:o},{n:"javascript",props:o},{n:"location",props:o},{n:"plugins",props:o},{n:"popups",props:o},{n:"notifications",props:o},{n:"fullscreen",props:o},{n:"mouselock",props:o},{n:"microphone",props:o},{n:"camera",props:o},{n:"unsandboxedPlugins",props:o},{n:"automaticDownloads",props:o}],contextMenus:["create","update","remove","removeAll"],cookies:["get","getAll","set","remove","getAllCookieStores"],debugger:["attach","detach","sendCommand","getTargets"],desktopCapture:["chooseDesktopMedia"],documentScan:["scan"],downloads:["download","search","pause","resume","cancel","getFileIcon","erase","removeFile","acceptDanger"],enterprise:[{n:"platformKeys",props:["getToken","getCertificates","importCertificate","removeCertificate"]}],extension:["isAllowedIncognitoAccess","isAllowedFileSchemeAccess"],fileBrowserHandler:["selectFile"],fileSystemProvider:["mount","unmount","getAll","get","notify"],fontSettings:["setDefaultFontSize","getFont","getDefaultFontSize","getMinimumFontSize","setMinimumFontSize","getDefaultFixedFontSize","clearDefaultFontSize","setDefaultFixedFontSize","clearFont","setFont","clearMinimumFontSize","getFontList","clearDefaultFixedFontSize"],gcm:["register","unregister","send"],history:["search","getVisits","addUrl","deleteUrl","deleteRange","deleteAll"],i18n:["getAcceptLanguages","detectLanguage"],identity:["getAuthToken","getProfileUserInfo","removeCachedAuthToken","launchWebAuthFlow"],idle:["queryState"],input:[{n:"ime",props:["setMenuItems","commitText","setCandidates","setComposition","updateMenuItems","setCandidateWindowProperties","clearComposition","setCursorPosition","sendKeyEvents","deleteSurroundingText"]}],management:["setEnabled","getPermissionWarningsById","get","getAll","getPermissionWarningsByManifest","launchApp","uninstall","getSelf","uninstallSelf","createAppShortcut","setLaunchType","generateAppForLink"],networking:[{n:"config",props:["setNetworkFilter","finishAuthentication"]}],notifications:["create","update","clear","getAll","getPermissionLevel"],pageAction:["getTitle","setIcon","getPopup"],pageCapture:["saveAsMHTML"],permissions:["getAll","contains","request","remove"],platformKeys:["selectClientCertificates","verifyTLSServerCertificate",{n:"getKeyPair",cb:function(e,t){return{publicKey:e,privateKey:t}}}],runtime:["getBackgroundPage","openOptionsPage","setUninstallURL","restartAfterDelay","sendMessage","sendNativeMessage","getPlatformInfo","getPackageDirectoryEntry",{n:"requestUpdateCheck",cb:function(e,t){return{status:e,details:t}}}],scriptBadge:["getPopup"],sessions:["getRecentlyClosed","getDevices","restore"],storage:[{n:"sync",props:r},{n:"local",props:r},{n:"managed",props:r}],socket:["create","connect","bind","read","write","recvFrom","sendTo","listen","accept","setKeepAlive","setNoDelay","getInfo","getNetworkList"],sockets:[{n:"tcp",props:["create","update","setPaused","setKeepAlive","setNoDelay","connect","disconnect","secure","send","close","getInfo","getSockets"]},{n:"tcpServer",props:["create","update","setPaused","listen","disconnect","close","getInfo","getSockets"]},{n:"udp",props:["create","update","setPaused","bind","send","close","getInfo","getSockets","joinGroup","leaveGroup","setMulticastTimeToLive","setMulticastLoopbackMode","getJoinedGroups","setBroadcast"]}],system:[{n:"cpu",props:["getInfo"]},{n:"memory",props:["getInfo"]},{n:"storage",props:["getInfo","ejectDevice","getAvailableCapacity"]}],tabCapture:["capture","getCapturedTabs"],tabs:["get","getCurrent","sendMessage","create","duplicate","query","highlight","update","move","reload","remove","detectLanguage","captureVisibleTab","executeScript","insertCSS","setZoom","getZoom","setZoomSettings","getZoomSettings","discard"],topSites:["get"],tts:["isSpeaking","getVoices","speak"],types:["set","get","clear"],vpnProvider:["createConfig","destroyConfig","setParameters","sendPacket","notifyConnectionStateChanged"],wallpaper:["setWallpaper"],webNavigation:["getFrame","getAllFrames","handlerBehaviorChanged"],windows:["get","getCurrent","getLastFocused","getAll","create","update","remove"]})}()},function(e,t,i){var o,r,a;a=this,o=[i(15)],void 0===(r=function(e){return a.returnExportsGlobal=function(e){return function(e,t,i){var o={currency:void 0,currencyFormatCallback:void 0,tooltipOffset:{x:0,y:-20},anchorToPoint:!1,appendToBody:!1,class:void 0,pointClass:"ct-point"};function r(e){var t=new RegExp("tooltip-show\s*","gi");e.className=e.className.replace(t,"").trim()}function a(e,t){return(" "+e.getAttribute("class")+" ").indexOf(" "+t+" ")>-1}i.plugins=i.plugins||{},i.plugins.tooltip=function(s){return s=i.extend({},o,s),function(o){var l=s.pointClass;o.constructor.name==i.Bar.prototype.constructor.name||o.constructor.name==i.Pie.prototype.constructor.name&&(l=o.options.donut?"ct-slice-donut":"ct-slice-pie");var c=o.container,u=c.querySelector(".chartist-tooltip");u||((u=t.createElement("div")).className=s.class?"chartist-tooltip "+s.class:"chartist-tooltip",s.appendToBody?t.body.appendChild(u):c.appendChild(u));var d=u.offsetHeight,p=u.offsetWidth;function f(e,t,n){c.addEventListener(e,(function(e){t&&!a(e.target,l)||n(e)}))}function m(t){d=d||u.offsetHeight;var n,i,o=-(p=p||u.offsetWidth)/2+s.tooltipOffset.x,r=-d+s.tooltipOffset.y;if(s.appendToBody)u.style.top=t.pageY+r+"px",u.style.left=t.pageX+o+"px";else{var a=c.getBoundingClientRect(),l=t.pageX-a.left-e.pageXOffset,f=t.pageY-a.top-e.pageYOffset;!0===s.anchorToPoint&&t.target.x2&&t.target.y2&&(n=I()(t.target.x2.baseVal.value),i=I()(t.target.y2.baseVal.value)),u.style.top=(i||f)+r+"px",u.style.left=(n||l)+o+"px"}}r(u),f("mouseover",l,(function(e){var t,r=e.target,l="",c=((n(o,i.Pie)?r:r.parentNode)&&(r.parentNode.getAttribute("ct:meta")||r.parentNode.getAttribute("ct:series-name")),r.getAttribute("ct:meta"),r.getAttribute("ct:value-y")),f=r.getAttribute("ct:value-x");null!=s.currencyFormatCallback&&(c=s.currencyFormatCallback(c,s)),s.timeFormatCallback&&(f=s.timeFormatCallback(f,s)),(l+=(c='<span class="chartist-tooltip-value chartist-tooltip-value-price">'+c+"</span>")+(f='<span class="chartist-tooltip-value chartist-tooltip-value-time">'+f+"</span>"))&&(u.innerHTML=l,m(e),a(t=u,"tooltip-show")||(t.className=t.className+" tooltip-show"),d=u.offsetHeight,p=u.offsetWidth)})),f("mouseout",l,(function(){r(u)})),f("mousemove",null,(function(e){!1===s.anchorToPoint&&m(e)}))}}}(window,document,e),e.plugins.tooltip}(e)}.apply(t,o))||(e.exports=r)},function(e,n,i){i.r(n);var o=i(2),r="en";function a(e){return"ru"==r?1==e?"товар":e>1&&e<5?"товара":"товаров":"en"==r?1==e?"item":"items":void 0}window.i18n=function(){for(var e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=de()(i),s=a.splice(0,1);return r=window.aliwizPageData.locale||window.i18n_active,["en","ru"].indexOf(r)<0&&(r="en"),i18n_data[r][s]?(e=i18n_data[r])[s].apply(e,t(a)):"⚠️".concat(s)},window.i18n_active=navigator.language.split("-")[0],window.i18n_data={ru:{},en:{}},function(){var e=window.i18n_data.ru,t=window.i18n_data.en;e.reviews=function(){return"Отзывы"},t.reviews=function(){return"Reviews"},e.similar=function(){return"Похожие"},t.similar=function(){return"Similar"},e.bookmarks=function(){return"Избранные"},t.bookmarks=function(){return"Favorites"},e.price=function(){return"Цена"},t.price=function(){return"Price"},e.seller=function(){return"Продавец"},t.seller=function(){return"Seller"},e.reviews_title=function(){return"Обзоры"},t.reviews_title=function(){return"Reviews"},e.similar_title=function(){return"Похожие"},t.similar_title=function(){return"Similar"},e.bookmarks_title=function(){return"Избранные"},t.bookmarks_title=function(){return"Favorites"},e.no_price=function(){return"История цены не доступна"},t.no_price=function(){return"Price history is not available"},e.loading=function(){return"Загрузка..."},t.loading=function(){return"Loading..."},e.not_enough_seller_data=function(){return"Данных о продавце недостаточно"},t.not_enough_seller_data=function(){return"Seller riliability is unknown"},e.not_reliability_title=function(){return"Надежность продавца не известна"},t.not_reliability_title=function(){return"Seller reliability is unknown"},e.not_reliability_content=function(){return"Недостаточно данных для оценки"},t.not_reliability_content=function(){return"Not enough data to evaluate"},e.seller_reliability=function(e){return"Надежность продавца ".concat(e,"%")},t.seller_reliability=function(e){return"Seller reliability ".concat(e,"%")},e.safely_buy=function(){return"Безопасная покупка"},t.safely_buy=function(){return"You can safely buy here"},e.average_buy=function(){return"Надежность выше среднего, безопасно"},t.average_buy=function(){return"Above average, safe to buy"},e.new_seller=function(){return"Новый продавец с хорошими отзывами"},t.new_seller=function(){return"New seller, but highly rated"},e.caution_buy=function(){return"Покупать с осторожностью"},t.caution_buy=function(){return"Buy with caution"},e.not_recommended=function(){return"Не рекомендуем покупать"},t.not_recommended=function(){return"Not recommended"},e.good_experience=function(){return"У продавца более 1го года опыта"},t.good_experience=function(){return"More than 1 years of seller experience"},e.weak_experience=function(){return"У продавца менее 1го года опыта"},t.weak_experience=function(){return"Less than 1 year of seller experience"},e.warn_experience=function(){return"У продавца менее 6ти месяцев опыта"},t.warn_experience=function(){return"Less than 6 months of seller experience"},e.bad_experience=function(){return"У продавца менее 3х месяцев опыта"},t.bad_experience=function(){return"Less than 3 months of seller experience"},e.satisfied=function(){return"За последние 3 месяца все клиенты остались довольны"},t.satisfied=function(){return"All the customers were satisfied over the last 3 months"},e.not_satisfied=function(e){return"За последние 3 месяца ".concat(e,"% клиентов остались недовольны")},t.not_satisfied=function(e){return"".concat(e,"% of customers were dissatisfied over the last 3 months")},e.good_shipping=function(){return"Быстрая скорость поставки"},t.good_shipping=function(){return"High shipping speed"},e.warn_shipping=function(){return"Продавец может задержать поставку"},t.warn_shipping=function(){return"Seller may delay shipping"},e.bad_shipping=function(){return"Продавец часто задерживает поставку"},t.bad_shipping=function(){return"Seller will delay shipping"},e.good_communication=function(){return"Покупатели довольны коммуникацией"},t.good_communication=function(){return"Customers are satisfied by communication"},e.warn_communication=function(){return"Не все клиенты довольны коммуникацией"},t.warn_communication=function(){return"Not all customers are satisfied by communication"},e.bad_communication=function(){return"Клиенты часто не довольны коммуникацией"},t.bad_communication=function(){return"Many customers not satisfied by communication"},e.good_description=function(){return"Товар соответствует описанию"},t.good_description=function(){return"Items match description"},e.warn_description=function(){return"Товар может не соответствовать описанию"},t.warn_description=function(){return"Items may not match the description"},e.bad_description=function(){return"Товар часто не соответствует описанию"},t.bad_description=function(){return"Items not match the description"},e.no_images=function(){return"Нет изображений в отзывах"},t.no_images=function(){return"No images in reviews"},e.no_bookmarks=function(){return"Нет отслеживаемых"},t.no_bookmarks=function(){return"Bookmarks are empty"},e.price_dropped=function(e,t){return"Цена упала на ".concat(o.default.getCurrencyPricePart(e,t))},t.price_dropped=function(e,t){return"Price dropped by ".concat(o.default.getCurrencyPricePart(e,t))},e.price_unchanged=function(){return"Цена не изменилась"},t.price_unchanged=function(){return"Price hasn't changed"},e.price_increased=function(e,t){return"Цена выросла на ".concat(o.default.getCurrencyPricePart(e,t))},t.price_increased=function(e,t){return"Price increased by ".concat(o.default.getCurrencyPricePart(e,t))},e.price_lower=function(e){return"Цена ниже средней на ".concat(e,"%")},t.price_lower=function(e){return"Lower than average by ".concat(e,"%")},e.price_higher=function(e){return"Цена выше средней на ".concat(e,"%")},t.price_higher=function(e){return"Higher than average by ".concat(e,"%")},e.price_average=function(){return"Цена в пределах средних значений"},t.price_average=function(){return"It remains average"},e.follow_price=function(){return"Следить за ценой"},t.follow_price=function(){return"Track the price"},e.unfollow_price=function(){return"Перестать следить"},t.unfollow_price=function(){return"Untrack the price"},e.tracking_bookmarks=function(e){return'Вы отслеживаете <span class="sa-c-price__track-link">'.concat(e," ").concat(a(e),"</span>")},t.tracking_bookmarks=function(e){return'You are tracking <span class="sa-c-price__track-link">'.concat(e," ").concat(a(e),"</span>")},e.no_similar=function(){return"Не найдено похожих товаров"},t.no_similar=function(){return"No similar items were found"}}()}])},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={4:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([68,0]),n()}({68:function(e,t,n){n.r(t);var i=n(0),o=n(16),r=n.n(o),a=n(8);Object(a.a)("aviaBar",(function(){!function(){var e=function(e,t){return i.a.sendMessage(e,t)};document.body.parentNode.dataset.travelBar||document.defaultView.self!==document.defaultView.top||function(){var t=document.createElement("script");t.src="https://travelbar.tools/static/travelBar.lite.min.js#tbr=true";var n,i,o,r,a=document.querySelector("script");a&&(n=location.origin||location.protocol+"//"+location.hostname,i=function(e){window.postMessage(e,n)},o=function(e){window.addEventListener("message",(function(t){t.origin===n&&e(t.data)}),!0)},(r={idPrefix:Math.floor(1e3*Math.random()),listenerArr:[],mkResponse:function(e){var t=this,n=e&&function(n){var o={tbr:!0,idPrefix:t.idPrefix,data:n,responseId:e};return i(o)};return function(e){n&&(n(e),n=null)}},listener:function(e){var t=r;if(e&&e.tbr&&e.idPrefix!==t.idPrefix&&!e.responseId){var n=t.mkResponse(e.callbackId);t.listenerArr.forEach((function(t){return t(e.data,n)}))}},onMessage:function(e){this.listenerArr.push(e),1===this.listenerArr.length&&o(this.listener)}}).onMessage((function(t,n){t&&t.action&&e(t,n)})),a.parentNode.insertBefore(t,a))}()}()}),(function(){return!r()()&&i.a.callFn("getPreferences").then((function(e){return!!e.hasAviaBar&&!!e.aviaBarEnabled}))}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={8:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([66,0]),n()}({66:function(e,t,n){n.r(t);var i=n(3),o=n.n(i),r=n(0),a=n(13),s=n(8),l=n(16),c=n.n(l),u=n(14);n.n(u).a.isSingle()&&Object(s.b)("lm",(function(e,t){var n=Object(a.a)(t),i=t.preferences,s=i.lmMediaHosting?1:0;i.showUmmyInfo&&setTimeout((function(){l()})),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 c.changeState(t.state)}"updatePreferences"!==t.action?s&&"updateLinks"===t.action&&(c.savefromLinkCount=-1,c.run()):o()(i,t.preferences)})),s&&setTimeout((function(){c.run()}));var l=function(){"object"==typeof location&&/videodownloader.ummy.net/.test(location.href)&&/pozdravlyaem|congratulations|tebrikler/.test(location.href)&&(r.a.sendMessage({action:"updateOption",key:"showUmmyInfo",value:0}),r.a.sendMessage({action:"updateOption",key:"ummyDetected",value:1}))},c={htmlAfter:"",linkText:"",linkStyle:{border:"none",textDecoration:"none",padding:"0",position:"relative"},imgStyle:{border:"none",width:"auto",height:"auto"},buttonSrc:"data:image/gif;base64,R0lGODlhEAAQAOZ3APf39+Xl5fT09OPj4/Hx8evr6/3+/u7u7uDh4OPi497e3t7e3/z8/P79/X3GbuXl5ubl5eHg4WzFUfb39+Pj4lzGOV7LOPz7+/n6+vn5+ZTLj9/e387Ozt7f3/7+/vv7/ISbePn5+m/JV1nRKXmVbkCnKVrSLDqsCuDh4d/e3uDn3/z7/H6TdVeaV1uSW+bn5v39/eXm5eXm5kyHP/f39pzGmVy7J3yRd9/f3mLEKkXCHJbka2TVM5vaZn6Wdfn6+YG/c/r5+ZO/jeLi41aHTIeageLn4f39/vr6+kzNG2PVM5i+lomdf2CXYKHVmtzo2YXNeDqsBebl5uHh4HDKWN3g3kKqEH6WeZHTXIPKdnSPbv79/pfmbE7PHpe1l4O8dTO5DODg4VDLIlKUUtzo2J7SmEWsLlG4NJbFjkrJHP7+/VK5Nfz8+zmnC3KKa+Hg4OHh4Y63j/3+/eDg4Ojo6P///8DAwP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAHcALAAAAAAQABAAAAfWgHd2g4SFhYJzdYqLjIpzgx5bBgYwHg1Hk2oNDXKDFwwfDF5NLmMtcStsn4MhGT8YS04aGmU1QRhIGYMTADQAQlAODlloAMYTgwICRmRfVBISIkBPKsqDBAREZmcVFhYVayUz2IMHB1dWOmImI2lgUVrmgwUFLzdtXTxKSSduMfSD6Aik48MGlx05SAykM0gKhAAPAhTB0oNFABkPHg5KMIBCxzlMQFQZMGBIggSDpsCJgGDOmzkIUCAIM2dOhEEcNijQuQDHgg4KOqRYwMGOIENIB90JBAA7",sfref:"&utm_source={sfHelperName}&utm_medium=extensions&utm_campaign=link_modifier",pageUrl:"http://savefrom.net/",anchorAttribute:"savefrom_lm",anchorAttributeLink:"savefrom_lm_is_link",anchorIndexAttribute:"savefrom_lm_index",linkRegExp:null,savefromLinkCount:0,re:{mediahosting:{"youtube.com":[/^https?://([a-z]+.)?youtube.com/(#!?/)?watch?.*v=/i,/^https?://([a-z0-9]+.)?youtube.com/(embed|v)/[w-]+/i],"youtu.be":[/^https?://([a-z]+.)?youtu.be/[w-]+/i],"google.com":[/^http://video.google.com/videoplay?.*docid=/i],"break.com":[/^http://(www.)?break.com/(index|moviesw*|(w+-)+w+)/.+.html$/i,/^http://view.break.com/d+/i],"vimeo.com":[/^http://([w-]+.)?vimeo.com/d+$/i],"sevenload.com":[/^http://([w-]+.)?sevenload.com/videos/[-w+/=]+/i,/^http://([w-]+.)?sevenload.com/shows/.+/i],"facebook.com":[/^https?://(?:www.)facebook.com/([^/]+/)*video.php?([^&]+&)*v=d+/i],"mail.ru":[/^http://([a-z0-9_-]+.)?video.mail.ru/(.+/)+d+.html/i,/^http://r.mail.ru/w+/video.mail.ru/(.+/)+d+.html/i],"yandex.ru":[/^http://video.yandex.ru/users/[-w,!+]+/view/[-w,!+]+/?/i],"rambler.ru":[/^http://vision.rambler.ru/users/[^/s]+/d+/[-w_+!]+/?/i],"smotri.com":[/^http://([a-z0-9_-]+.)?smotri.com/video/view/?.*id=v[0-9a-f]/i],"tvigle.ru":[/^http://(www.)?tvigle.ru/channel/d+?.*vid_id=d+/i,/^http://(www.)tvigle.ru/prg/d+/d+/i],"1tv.ru":[/^http://(www.)?1tv.ru(:d+)?/newsvideo/d+/i,/^http://(www.)?1tv.ru(:d+)?/news/w+d+/i],"ntv.ru":[/^http://news.ntv.ru/(w+/)?d+/video/?/i],"vesti.ru":[/^http://(www.)?vesti.ru/videos?.*vid=d+/i],"mreporter.ru":[/^http://(www.)?mreporter.ru/reportermessages!viewreport.do[^?]*?.*reportid=d+/i],"autoplustv.ru":[/^http://(www.)?autoplustv.ru/494/?id=d+/i],"amik.ru":[/^http://(www.)?amik.ru/video/vidd+.html/i,/^http://(www.)?amik.ru/video/vcidd+.html/i],"life.ru":[/^http://([w+-]+.)?life.ru/video/d+/i]}},parseHref:function(e,t){var n=[];n.push(e);var i=e.toLowerCase().indexOf("http://",7);if(i>7)n.push(e.substring(i));else if(t){var o=t.match(/http%3a(%2f%2f|//)[^s&"<>]+/i);if(o&&o.length>0)n.push(decodeURIComponent(o[0]));else{var r="";try{r=decodeURIComponent(t)}catch(e){}if(r&&(o=r.match(/((?:aHR0cDovL|aHR0cHM6Ly)[a-z0-9+/=]+)/i))&&o.length>1){try{o=atob(o[1])}catch(e){o=""}-1!=o.search(/^https?:///i)&&n.push(decodeURIComponent(o))}}}return n},href:function(e){return e.getAttribute("href")||""},getElementIndex:function(e){var t=e.innerHTML;if(!t||" "==t)return 1;var n=e.style.backgroundImage;if(n&&"none"!=n)return 1;for(var i=e.getElementsByTagName("*"),o=0;o<i.length;o++){if("IMG"==i[o].tagName)return 2;if((n=i[o].style.backgroundImage)&&"none"!=n)return 1}return 0},run:function(){n.embedDownloader.init(),c.sfref=c.sfref.replace("{sfHelperName}",i.sfHelperName);var e=!!i.lmMediaHosting;if(s=1,c.linkRegExp={},e)for(var t in c.re.mediahosting)c.linkRegExp[t]=c.re.mediahosting[t];var o=document.getElementsByTagName("a");if(c.savefromLinkCount!=o.length){c.savefromLinkCount=o.length;for(var a={},l="",u=(t=0,o.length);t<u;t++){var d=v(o[t]);if(d){var p=0,f=o[t].getAttribute(c.anchorIndexAttribute);0===f||f?p=I()(f):(p=c.getElementIndex(o[t]),o[t].setAttribute(c.anchorIndexAttribute,p)),a[d]?p<a[d].index?(a[d].elements=[o[t]],a[d].index=p,l=d):p==a[d].index&&d!=l&&(a[d].elements.push(o[t]),l=d):(a[d]={index:p,elements:[o[t]]},l=d)}}for(var t in a){var m=0;for(u=a[t].elements.length;m<u;m++){var h=a[t].elements[m];h.getAttribute(c.anchorAttribute)||b(h,t)}}}function g(e,t){if(!e)return!1;if(e==window.location.href)return!1;if(!(t=n.getTopLevelDomain(t))||!c.linkRegExp[t])return!1;for(var i=0;i<c.linkRegExp[t].length;i++)if(-1!=e.search(c.linkRegExp[t][i]))return!0;return!1}function v(e){var t=e.href;if("string"==typeof t&&-1==t.search(/^https?://([w-]+.)?savefrom.net//i)){var n=c.parseHref(t,e.search);if(n.length>0){if(0!=c.href(e).indexOf("#")&&g(n[0],e.hostname))return n[0];if(n.length>1)for(var i=1;i<n.length;i++){var o=document.createElement("a");if(o.href=n[i],0!=c.href(o).indexOf("#")&&g(n[i],o.hostname))return n[i]}}}return""}function b(e,t){if(e){e.setAttribute(c.anchorAttribute,"1");var n=document.createElement("span");n.setAttribute("style","padding: 0; margin: 0; margin-left: 5px;"),n.addEventListener("click",(function(e){e.stopPropagation()}));var i=e.parentNode;if(i){try{t=encodeURIComponent(t)}catch(e){return}var o=c.pageUrl+"?url="+t;c.sfref&&(o+=c.sfref);var a=document.createElement("a");for(var s in a.href=o,a.target="_blank",a.title=r.a.i18n.getMessage("lmButtonTitle"),a.style.backgroundImage="url("+c.buttonSrc+")",a.style.backgroundRepeat="no-repeat",a.style.width="16px",a.style.height="16px",a.style.display="inline-block",c.linkStyle)a.style[s]=c.linkStyle[s];e.style.zIndex&&(a.style.zIndex=e.style.zIndex),a.setAttribute(c.anchorAttribute,"1"),a.setAttribute(c.anchorAttributeLink,"1"),c.linkText&&(a.textContent=c.linkText),n.appendChild(a),c.htmlAfter&&(n.textContent+=c.htmlAfter),e.nextSibling?i.insertBefore(n,e.nextSibling):i.appendChild(n)}}}},changeState:function(e){i.lmMediaHosting=e,s=e;for(var t,n=document.querySelectorAll("a["+c.anchorAttributeLink+"]"),o=0;t=n[o];o++)(t=t.parentNode).parentNode.removeChild(t);var r=document.querySelectorAll(["*["+c.anchorAttribute+"]","*["+c.anchorIndexAttribute+"]"]);for(o=0;t=r[o];o++)t.removeAttribute(c.anchorAttribute),t.removeAttribute(c.anchorIndexAttribute);c.savefromLinkCount=-1,e&&c.run()}}}),(function(){return!(document.contentType&&"text/html"!==document.contentType||c()()||/yandex.com/launcher/.test(location.href))}))}})},function(e){!function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,p=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&p.push(o[a][0]),o[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);for(u&&u(t);p.length;)p.shift()();return r.push.apply(r,c||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==o[l]&&(i=!1)}i&&(r.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},o={11:0},r=[];function a(t){if(i[t])return i[t].exports;var n=i[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=i,a.d=function(e,t,n){a.o(e,t)||x()(e,t,{enumerable:!0,get:n})},a.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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=D()(null);if(a.r(n),x()(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));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 c=0;c<s.length;c++)t(s[c]);var u=l;r.push([69,0]),n()}({69:function(e,t,n){n.r(t);var i=n(3),o=n.n(i),r=n(0);!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||x()(e,t,{enumerable:!0,get:i})},n.r=function(e){void 0!==j.a&&N.a&&x()(e,N.a,{value:"Module"}),x()(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 i=D()(null);if(n.r(i),x()(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},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=3)}([function(e,t,n){t.decode=t.parse=n(1),t.encode=t.stringify=n(2)},function(e,t,n){function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,r){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;r&&"number"==typeof r.maxKeys&&(l=r.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,p,f,m,h=e[u].replace(s,"%20"),g=h.indexOf(n);g>=0?(d=h.substr(0,g),p=h.substr(g+1)):(d=h,p=""),f=decodeURIComponent(d),m=decodeURIComponent(p),i(a,f)?o(a[f])?a[f].push(m):a[f]=[a[f],m]:a[f]=m}return a};var o=M.a||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){var i=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?r(a(e),(function(a){var s=encodeURIComponent(i(a))+n;return o(e[a])?r(e[a],(function(e){return s+encodeURIComponent(i(e))})).join(t):s+encodeURIComponent(i(e[a]))})).join(t):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(e)):""};var o=M.a||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],i=0;i<e.length;i++)n.push(t(e[i],i));return n}var a=O.a||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){n.r(t);var i=r.a,a=["log","info","warn","error","debug"],s=function(e){return a.reduce((function(e,t){return e[t]=function(){},e}),(function e(){return e.log.apply(e,arguments)}))},l=n(0),c={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"},u={},d={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(M()(t))for(var n=0,i=t.length;n<i;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 i=n;"float"===i&&(i="cssFloat");var o=t[n];if(M()(o))for(var r=0,a=o.length;r<a;r++)e.style[i]=o[r];else e.style[i]=o}else e.setAttribute("style",t)},append:function(e,t){M()(t)||(t=[t]);for(var n=0,i=t.length;n<i;n++){var o=t[n];(o||0===o)&&("object"!=typeof o&&(o=document.createTextNode(o)),e.appendChild(o))}},on:function(e,t){"object"!=typeof t[0]&&(t=[t]);for(var n=0,i=t.length;n<i;n++){var o=t[n];M()(o)&&e.addEventListener(o[0],o[1],o[2])}},attr:function(e,t){var n,i;for(n in t)i=t[n],e.setAttribute(n,i)}};u.create=function(e,t){var n,i;for(var o in n="object"!=typeof e?document.createElement(e):e,t){var r=t[o];(i=d[o])?i(n,r):n[o]=r}return n};var p,f,m,h,g,v,b=u,y=function(e,t){var n=e.href,i=function(e){e.preventDefault(),e.stopPropagation(),window.open(n),t&&t()};return e.addEventListener("click",(function(e){i(e)})),e.addEventListener("mouseup",(function(e){(1===e.button||2===e.which)&&i(e)})),e},x=s(),w=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},S={},C=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=10,n="t";do{t--;for(var i=0;i<21;i++)n+=e.charAt(Math.floor(Math.random()*e.length))}while(S[n]&&t>0);return S[n]=1,n},L=((p=function(e,t,n){for(var i in this.type="conditional",this.selector=e,this.options=n,this.rules=new D(w({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}).prototype.getRule=function(e){return this.rules.get(e)},p.prototype.indexOf=function(e){return this.rules.indexOf(e)},p.prototype.addRule=function(e,t,n){var i=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(i),i},p.prototype.toString=function(){var e=this.rules.toString();return e?this.selector+"{"+e+"}":""},{onCreateRule:function(e,t,n){return/^@media/.test(e)?new p(e,t,n):null}}),I=(f=function(e){return e&&"object"==typeof e&&!M()(e)},m=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("string"==typeof e.extend){if(n){var o=n.getRule(e.extend);if(o)if(o===t)x("[JSS] A rule tries to extend itself rn",t);else if(o.options.parent){var r=o.options.parent.rules.raw[e.extend];m(r,t,n,i)}}}else if(M()(e.extend))for(var a=0;a<e.extend.length;a++)m(e.extend[a],t,n,i);else for(var s in e.extend)"extend"===s?m(e.extend.extend,t,n,i):f(e.extend[s])?(i[s]||(i[s]={}),m(e.extend[s],t,n,i[s])):(i.hasOwnProperty(s)&&delete i[s],i[s]=e.extend[s]);for(var l in e)if("extend"!==l)if("fallbacks"===l&&i[l]){M()(i[l])||(i[l]=[i[l]]);var c=e[l];M()(c)||(c=[c]),i[l]=i[l].concat(JSON.parse(A()(c)))}else f(i[l])&&f(e[l])?m(e[l],t,n,i[l]):f(e[l])?i[l]=m(e[l],t,n):(i.hasOwnProperty(l)&&delete i[l],i[l]=e[l]);return i},{onProcessStyle:function(e,t,n){return e.extend?m(e,t,n):e}}),_=function(){var e=/s*,s*/g,t=/&/g,n=/$([w-]+)/g;function i(e){return function(t,n){var i=e.getRule(n);return i?i.selector:(x("[JSS] Could not find the referenced rule "+n+". rn",i),n)}}var o=function(e){return-1!==e.indexOf("&")};function r(n,i){for(var r=i.split(e),a=n.split(e),s="",l=0;l<r.length;l++)for(var c=r[l],u=0;u<a.length;u++){var d=a[u];s&&(s+=", "),s+=o(d)?d.replace(t,c):c+" "+d}return s}function a(e,t,n){if(n)return w({},n,{index:n.index+1});var i=e.options.nestingLevel;return i=void 0===i?1:i+1,w({},e.options,{nestingLevel:i,index:t.indexOf(e)+1})}return{onProcessStyle:function(e,t){if("regular"!==t.type)return e;var s=t.options.parent,l=void 0,c=void 0;for(var u in e){var d=o(u),p="@"===u[0];if(d||p){if(l=a(t,s,l),d){var f=r(u,t.selector);c||(c=i(s)),f=f.replace(n,c),s.addRule(f,e[u],w({},l,{selector:f}))}else if(p){var m={};m[t.name]=e[u],s.addRule(u,m,l)}delete e[u]}}return e}}}(),E=(h=/([A-Z])/g,g=function(e){return"-"+e.toLowerCase()},v=function(e){var t={};for(var n in e){var i=e[n];"cssFloat"===n&&(n="float"),t[n=n.replace(h,g)]=i}return e.fallbacks&&(M()(e.fallbacks)?t.fallbacks=e.fallbacks.map(v):t.fallbacks=v(e.fallbacks)),t},{onProcessStyle:function(e){if(M()(e)){for(var t=0;t<e.length;t++)e[t]=v(e[t]);return e}return v(e)}}),T=function(e,t,n){this.type="regular";var i=n.generateClassName;this.name=e,this.className="",this.options=n,this.style=t,n.className?this.className=n.className:i&&(this.className=i(this,n.sheet)),this.selector=n.selector||"."+this.className},F=function e(t){return M()(t)?M()(t[0])?e(t.map((function(e){return e.join(" ")}))):t.join(", "):t};T.prototype.toString=function(){return function(e,t){var n=t.fallbacks,i="";if(n)if(M()(n))for(var o=0;o<n.length;o++){var r=n[o];for(var a in r){var s=r[a];null!=s&&(i+=a+": "+F(s)+";")}}else for(var l in n){var c=n[l];null!=c&&(i+=l+": "+F(c)+";")}for(var u in t){var d=t[u];"function"==typeof d&&(d=t["$"+u]),null!=d&&"fallbacks"!==u&&(i+=u+": "+F(d)+";")}return i?i=e+" {"+i+"}":i}(this.selector,this.style)};var D=function(e){this.map={},this.raw={},this.index=[],this.options=e,this.classes=e.classes};D.prototype.add=function(e,t,n){var i=this.options,o=i.parent,r=i.sheet,a=i.jss,s=i.Renderer,l=i.generateClassName;(n=w({classes:this.classes,parent:o,sheet:r,jss:a,Renderer:s,generateClassName:l},n)).className||(n.className=this.classes[e]),this.raw[e]=t;var c=function(e,t,n){var i=n.jss,o=function e(t){if(null==t)return t;var n=typeof t;if("string"===n||"number"===n)return t;if(M()(t))return t.map(e);var i={};for(var o in t){var r=t[o];i[o]="object"==typeof r?e(r):r}return i}(t);if(i){var r=i.plugins.onCreateRule(e,o,n);if(r)return r}return e&&"@"===e[0]&&x("[JSS] Unknown at-rule",e),new T(e,o,n)}(e,t,n);this.register(c);var u=void 0===n.index?this.index.length:n.index;return this.index.splice(u,0,c),c},D.prototype.get=function(e){return this.map[e]},D.prototype.indexOf=function(e){return this.index.indexOf(e)},D.prototype.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},D.prototype.register=function(e){e.name&&(this.map[e.name]=e),e.className&&e.name&&(this.classes[e.name]=e.className),e.selector&&(this.map[e.selector]=e)},D.prototype.toString=function(){for(var e="",t=0;t<this.index.length;t++){var n=this.index[t].toString();n&&(e+=n)}return e};var B=function(e){var t="number"==typeof e.index?e.index:0;this.classes={},this.options=w({sheet:this,parent:this,classes:this.classes,index:t},e),this.rules=new D(this.options)};B.prototype.addRule=function(e,t,n){var i=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(i),i},B.prototype.add=B.prototype.addRules=function(e,t){var n=[];for(var i in e)n.push(this.addRule(i,e[i],t));return n},B.prototype.getRule=function(e){return this.rules.get(e)},B.prototype.indexOf=function(e){return this.rules.indexOf(e)},B.prototype.toString=function(){return this.rules.toString()},B.prototype.sync=function(){this.options.jss.onChange()};var N=function(){this.hooks={onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[]}};N.prototype.onCreateRule=function(e,t,n){for(var i=0;i<this.hooks.onCreateRule.length;i++){var o=this.hooks.onCreateRule[i](e,t,n);if(o)return o}return null},N.prototype.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.hooks.onProcessRule.length;n++)this.hooks.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},N.prototype.onProcessStyle=function(e,t,n){for(var i=0;i<this.hooks.onProcessStyle.length;i++)t.style=e=this.hooks.onProcessStyle[i](e,t,n)},N.prototype.onProcessSheet=function(e){for(var t=0;t<this.hooks.onProcessSheet.length;t++)this.hooks.onProcessSheet[t](e)},N.prototype.onChangeValue=function(e,t,n){for(var i=e,o=0;o<this.hooks.onChangeValue.length;o++)i=this.hooks.onChangeValue[o](i,t,n);return i},N.prototype.use=function(e){for(var t in e)this.hooks[t]?this.hooks[t].push(e[t]):x("[JSS] Unknown hook",t)};var R=function(){this.sheets=[],this.plugins=new N,this.plugins.use(L),this.plugins.use(I),this.plugins.use(_),this.plugins.use(E)};R.prototype.getSheet=function(){var e=new B({jss:this,generateClassName:C});return this.sheets.push(e),e},R.prototype.toString=function(){var e=[];return this.sheets.forEach((function(t){e.push(t.toString())})),e.join("")},R.prototype.getStyleBySelector=function(e){var t={};return this.sheets.some((function(n){var i=n.rules.map[e];if(i)return t=i.style,!0})),function(e){var t,n,i={},o=e.fallbacks;for(t in o&&(M()(o)||(o=[o]),o.forEach((function(e){for(var t in e)i[t]||(i[t]=[]),i[t].push(e[t])}))),e)"fallbacks"!==t&&(n=e[t],i[t]?(M()(i[t])||(i[t]=[i[t]]),i[t].push(n)):i[t]=n);return i}(t)},R.prototype.onChange=function(){};var j=R,q=[].slice,H={class:function(e,t){t.forEach((function(t){e.classList.add(t)}))},style:function(e,t){for(var n in t){var i=t[n];"float"===n&&(n="cssFloat"),e.style[n]=i}}},V=function(e,t){var n;this.wDom=e,this.node=t,this.refNode=t.cloneNode(!1),this.events=[],this.customStyle={},this.inlineStyle={},this.cssStyle=null,this.nativeStyle={},this.checkStyles=[],this.fixLimits={};for(var i,o=0;i=t.childNodes[o];o++)n=this.wDom.wGet(i),this.refNode.appendChild(n.refNode)};V.prototype.setCheckStyles=function(e){this.checkStyles=e},V.prototype.addCheckStyles=function(e){-1===this.checkStyles.indexOf(e)&&this.checkStyles.push(e)},V.prototype.removeCheckStyles=function(e){var t=this.checkStyles.indexOf(e);-1!==t&&this.checkStyles.splice(t,1)},V.prototype.appendChild=function(e){var t=this.wDom.wGet(e);this.refNode.appendChild(t.refNode),this.node.appendChild(t.node)},V.prototype.removeChild=function(e){var t=this.wDom.get(e);if(!t)throw new Error("wNode is not found!");this.refNode.removeChild(t.refNode),this.node.removeChild(t.node)},V.prototype.setText=function(e){this.refNode.textContent="",this.node.textContent="",this.appendChild(document.createTextNode(e))},V.prototype.addEventListener=function(e,t,n){this.node.addEventListener(e,t,n),n=!!n,this.events.push({type:e,listener:t,useCapture:n})},V.prototype.removeEventListener=function(e,t,n){this.node.removeEventListener(e,t,n);var i=-1;n=!!n,this.events.some((function(o,r){if(o.type===e&&o.useCapture===n&&o.listener===t)return i=r,!0})),-1!==i&&this.events.splice(i,1)},V.prototype.setStyle=function(e,t){this.refNode.style[e]=t,this.node.style[e]=t,""===t?delete this.inlineStyle[e]:this.inlineStyle[e]=t},V.prototype.setStyleProperty=function(e,t,n){if(this.refNode.style.setProperty){var i,o=("cssFloat"===(i=e)&&(i="float"),i.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})));this.refNode.style.setProperty(o,t,n),this.node.style.setProperty(o,t,n),""===t?delete this.inlineStyle[e]:this.inlineStyle[e]=t}else this.setStyle(e,t)},V.prototype.addClass=function(e){this.refNode.classList.add(e),this.node.classList.add(e)},V.prototype.removeClass=function(e){this.refNode.classList.remove(e),this.node.classList.remove(e)},V.prototype.checkChildList=function(){var e=this.fixLimits,t=!0;void 0===e.checkChildList&&(e.checkChildList=50);var n,i,o,r,a=!1;for(n=0;o=this.refNode.childNodes[n];n++)i=this.wDom.getByRef(o).node,(r=this.node.childNodes[n])!==i&&(e.checkChildList>0?(r?this.node.insertBefore(i,r):this.node.appendChild(i),a=!0,tbr.log("Fix checkChildList insert node",i)):(t=!1,tbr.error("Fix checkChildList insert limited")));var s=this.refNode.childNodes.length,l=q.call(this.node.childNodes,s);if(l.length)if(e.checkChildList>0)for(n=0;i=l[n];n++)i.parentNode&&(i.parentNode.removeChild(i),a=!0,tbr.log("Fix checkChildList remove node",i));else t=!1,tbr.error("Fix checkChildList remove limited");return a&&e.checkChildList--,t},V.prototype.checkAttributes=function(e){var t=this.fixLimits,n="checkAttributes_"+e;void 0===t[n]&&(t[n]=50);var i=!0,o=this.node.getAttribute(e),r=this.refNode.getAttribute(e);return r!==o&&(t[n]-- >0?(null===r?this.node.removeAttribute(e):this.node.setAttribute(e,r),tbr.log("Fix attributes",e,o,">",r)):(i=!1,tbr.error("Fix attributes limited"))),i},V.prototype.checkCharacterData=function(){var e=this.fixLimits,t="checkCharacterData";void 0===e[t]&&(e[t]=50);var n=!0,i=this.node.textContent,o=this.refNode.textContent;return i!==o&&(e[t]-- >0?(this.node.textContent=this.refNode.textContent,tbr.log("Fix characterData",i,">",o)):(n=!1,tbr.error("Fix characterData limited"))),n},V.prototype.fixStyleProperty=function(e,t,n){var i=this,o=i.fixLimits,r="fixStyleProperty"+e,a=!0;return o[r]?(a=!1,tbr.error("Fix styleProperty limited")):(o[r]=!0,n.forEach((function(o){i.setStyleProperty(e,o,"important"),tbr.log("Fix styleProperty",e,t,">",n)}))),a},V.prototype.getNode=function(){return this.node},V.prototype.buildNode=function(){var e,t,n,i=this.refNode.cloneNode(!1);for(e=0;n=this.refNode.childNodes[e];e++)t=this.wDom.getByRef(n),i.appendChild(t.buildNode());return this.events.forEach((function(e){i.addEventListener(e.type,e.listener,e.useCapture)})),i};var W=function(){this.wElements=[],this.refElements=[],this.elements=[]};W.prototype.createElement=function(e,t,n){for(var i,o=function(e,t){var n,i,o=document.createElement(e);for(var r in t)i=t[r],(n=H[r])?n(o,i):o[r]=i;return o}(e,t),r=q.call(arguments,2),a=0;i=r[a];a++)"object"!=typeof i&&(i=document.createTextNode(i)),o.appendChild(i);return this.wGet(o)},W.prototype.get=function(e){var t=null,n=this.elements.indexOf(e);return-1!==n&&(t=this.wElements[n]),t},W.prototype.getByRef=function(e){var t=null,n=this.refElements.indexOf(e);return-1!==n&&(t=this.wElements[n]),t},W.prototype.wrap=function(e){return new V(this,e)},W.prototype.wGet=function(e){var t=this.get(e);return null===t&&(t=this.wrap(e),this.addWNode(t)),t},W.prototype.addWNode=function(e){this.elements.push(e.node),this.refElements.push(e.refNode),this.wElements.push(e)},W.prototype.removeWNode=function(e){var t=this.wElements.indexOf(e);-1!==t&&(this.elements.splice(t,1),this.refElements.splice(t,1),this.wElements.splice(t,1))},W.prototype.destroy=function(){this.elements.splice(0),this.refElements.splice(0),this.wElements.splice(0)};var G=W,Q=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg"),t=e.namespaceURI;e.setAttribute("width","24"),e.setAttribute("height","24"),e.setAttribute("viewBox","0 0 80 80");var n=document.createElementNS(t,"path");return e.appendChild(n),n.setAttribute("fill","#000"),n.setAttribute("d","M56.971 52.729L44.243 40l12.728-12.728-4.242-4.243L40 35.757 27.272 23.029l-4.243 4.243L35.757 40 23.029 52.729l4.243 4.242L40 44.243l12.729 12.728z"),e},Y={},J=function(e,t){var n=e.wDom.wGet(e.body.node),i=document.body.parentNode,o=null,r=null;try{o=getComputedStyle(i),r=getComputedStyle(document.body)}catch(e){}var a=[o,r].some((function(e){return e&&-1!==["absolute","relative","fixed","sticky"].indexOf(e.position)}));t?(Y.marginTop=i.style.marginTop,Y.transition=i.style.transition,i.style.transition="margin-top 0.2s",n.removeCheckStyles("marginTop"),n.setStyle("marginTop","-55px"),n.setStyle("transition","margin-top 0.2s"),setTimeout((function(){i.style.marginTop="55px",n.setStyle("marginTop",""),i.style.setProperty&&i.style.setProperty("margin-top","55px","important"),a&&n.setStyle("top","-55px"),setTimeout((function(){i.style.transition=Y.transition,n.setStyle("transition",""),document.addEventListener("mousemove",(function e(){document.removeEventListener("mousemove",e),setTimeout((function(){n.addCheckStyles("marginTop")}),250)}))}),250)}),0)):i.style.marginTop=Y.marginTop},Z=function(){function e(t,n){Object(z.a)(this,e),this.options=t,this.events=n,this.wDom=new G,this.wSheets=new j,this.create()}return Object(U.a)(e,[{key:"create",value:function(){var e=document.createDocumentFragment(),t=this.getBody(),n=this.getContent();this.body=t,this.content=n,this.wDom.wGet(t.content).appendChild(n.node);var i=this.getStyle();this.style=i,e.appendChild(t.node),e.appendChild(i.node),this.wDom.wGet(e),this.wDom.wGet(i.node)}},{key:"getBody",value:function(){var e=this,t=e.wDom,n=e.wSheets.getSheet();n.add({body:{extend:c,backgroundColor:"#fcefb4",color:"#000",cursor:"pointer",marginTop:"0px",display:"table !important",opacity:"1 !important",position:"absolute",top:"0px",left:"0px",fontWeight:"normal",font:"normal normal 14px Arial, sans-serif",width:"100%",height:"55px",lineHeight:"normal",zIndex:"2147483647","&:hover":{backgroundColor:"#ffeb91"}},itemLeft:{display:"table-cell",verticalAlign:"middle"},itemLeftCloseBtn:{marginLeft:"4px",marginTop:"10px"},itemMiddle:{display:"table-cell",verticalAlign:"middle",textAlign:"center"},content:{maxWidth:"1100px",display:"inline-block",width:"100%",textAlign:"left",position:"relative"},contentChild:{fallbacks:[{display:"block"},{WebkitAlignItems:"center",WebkitFlexDirection:"row",display:"-webkit-flex"}],display:"flex",alignItems:"center",flexDirection:"row",whiteSpace:"pre"},closeBtn:{width:"45px",opacity:"0.3",display:"block",height:"45px",textAlign:"center",cursor:"pointer","&:hover":{opacity:"0.7"}},rightPadding:{width:"45px",display:"table-cell",verticalAlign:"middle"},"@media only screen and (max-width: 1150px)":{content:{maxWidth:"960px"}},"@media only screen and (max-width: 1050px)":{content:{maxWidth:"810px"},closeBtn:{width:"24px"},rightPadding:{width:"24px"}},"@media only screen and (max-width: 850px)":{content:{maxWidth:"700px"}}});var i=b.create("div",{class:n.classes.contentChild}),o=b.create("div",{class:n.classes.body,style:{position:"absolute",top:"0px",left:"0px",display:"table",width:"100%",height:"55px",lineHeight:"normal",opacity:"1",zIndex:"2147483647"},on:["click",function(t){t.stopPropagation(),t.preventDefault(),window.open(e.options.button.link),e.events.onClick()}],append:[b.create("div",{class:n.classes.itemLeft,append:b.create("a",{class:n.classes.closeBtn,href:"#close",on:["click",function(t){t.preventDefault(),t.stopPropagation(),t.isTrusted&&(e.close(!0),e.events.onClose())}],append:b.create(Q(),{class:n.classes.itemLeftCloseBtn})})}),b.create("div",{class:n.classes.itemMiddle,append:b.create("div",{class:n.classes.content,append:i})}),b.create("div",{class:n.classes.rightPadding})]});t.wGet(o).setCheckStyles(["display","position","top","left","marginTop","marginLeft","marginRight","marginBottom","opacity","zIndex","transform","visibility"]);var r=function(e){e.stopPropagation()},a=[!1,!0];return["pointerdown","pointerenter","pointerleave","pointermove","pointerout","pointerover","pointerup"].concat(["mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseout","mouseout","mouseup"]).forEach((function(e){a.forEach((function(t){"mouseenter"===e&&t||o.addEventListener(e,r,t)}))})),{node:o,content:i}}},{key:"getContent",value:function(){var e=this,t=e.wSheets.getSheet(),n=document.createDocumentFragment();t.add({cell:{fallbacks:{display:"inline-block"}}});var i="16px";e.options.text.length>90&&(i="14px"),t.add({title:{extend:"cell",fontSize:i,fontWeight:"bold",margin:"auto 10px",lineHeight:"23px",verticalAlign:"middle",fontFamily:"Arial, sans-serif",flexGrow:1,overflow:"hidden",textOverflow:"ellipsis"},"@media only screen and (max-width: 1050px)":{title:{fontSize:"14px",marginLeft:"5px",marginRight:"5px"}}}),n.appendChild(b.create("div",{class:t.classes.title,title:e.options.text,append:[e.options.text]})),t.add({openBtn:{extend:"cell",verticalAlign:"middle",fontSize:"16px",fontWeight:"bold",color:"#FFF !important",margin:"auto 10px",padding:"10px 25px",backgroundColor:"#4b9f00 !important",borderRadius:"19px",textDecoration:"none !important",fontFamily:"Arial, sans-serif","&:hover":{backgroundColor:"#66ad26 !important",color:"#FFF !important"}},"@media only screen and (max-width: 1050px)":{openBtn:{fontSize:"14px",marginLeft:"5px",marginRight:"5px",paddingLeft:"10px",paddingRight:"10px"}}});var o=b.create("a",{class:t.classes.openBtn,href:e.options.button.link,target:"_blank",append:[e.options.button.text]});return y(o,(function(t){e.events.onClick()})),n.appendChild(o),{node:n,moreBtn:o}}},{key:"getStyle",value:function(){var e=this,t=e.wDom.createElement("style",{},e.wSheets.toString());return e.wSheets.onChange=function(){t.setText(e.wSheets.toString())},{node:t.getNode()}}},{key:"insertBody",value:function(e){document.body.appendChild(e)}},{key:"insertStyle",value:function(e){document.head.appendChild(e)}},{key:"insert",value:function(){var e=this.body,t=this.style;J(this,!0),this.insertBody(e.node),this.insertStyle(t.node),this.events.onShow()}},{key:"close",value:function(){this.isClosed||(this.isClosed=!0,this.remove(),J(this,!1))}},{key:"remove",value:function(){if(!this.isRemoved){this.isRemoved=!0,this.destroy();var e=this.body.node.parentNode;e&&e.removeChild(this.body.node);var t=this.style.node.parentNode;t&&t.removeChild(this.style.node)}}},{key:"fadeIn",value:function(){this.insert()}},{key:"fadeOut",value:function(){this.close()}},{key:"destroy",value:function(){this.wDom.destroy()}}]),e}(),X="https://promobar.tools/upload/static/img",ee={},te=function(e,t){var n=e.wDom.wGet(e.body.node),i=document.body.parentNode,o=null,r=null;try{o=getComputedStyle(i),r=getComputedStyle(document.body)}catch(e){}var a=[o,r].some((function(e){return e&&-1!==["absolute","relative","fixed","sticky"].indexOf(e.position)}));t?(ee.marginTop=i.style.marginTop,ee.transition=i.style.transition,i.style.transition="margin-top 0.2s",n.removeCheckStyles("marginTop"),n.setStyle("marginTop","-55px"),n.setStyle("transition","margin-top 0.2s"),setTimeout((function(){i.style.marginTop="55px",n.setStyle("marginTop",""),i.style.setProperty&&i.style.setProperty("margin-top","55px","important"),a&&n.setStyle("top","-55px"),setTimeout((function(){i.style.transition=ee.transition,n.setStyle("transition",""),document.addEventListener("mousemove",(function e(){document.removeEventListener("mousemove",e),setTimeout((function(){n.addCheckStyles("marginTop")}),250)}))}),250)}),0)):i.style.marginTop=ee.marginTop},ne="https://promobar.tools/upload/static/img",oe={},re=function(e,t){var n=e.wDom.wGet(e.body.node),i=document.body.parentNode,o=null,r=null;try{o=getComputedStyle(i),r=getComputedStyle(document.body)}catch(e){}var a=[o,r].some((function(e){return e&&-1!==["absolute","relative","fixed","sticky"].indexOf(e.position)}));t?(oe.marginTop=i.style.marginTop,oe.transition=i.style.transition,i.style.transition="margin-top 0.2s",n.removeCheckStyles("marginTop"),n.setStyle("marginTop","-55px"),n.setStyle("transition","margin-top 0.2s"),setTimeout((function(){i.style.marginTop="55px",n.setStyle("marginTop",""),i.style.setProperty&&i.style.setProperty("margin-top","55px","important"),a&&n.setStyle("top","-55px"),setTimeout((function(){i.style.transition=oe.transition,n.setStyle("transition",""),document.addEventListener("mousemove",(function e(){document.removeEventListener("mousemove",e),setTimeout((function(){n.addCheckStyles("marginTop")}),250)}))}),250)}),0)):i.style.marginTop=oe.marginTop},ae="https://promobar.tools/upload/static/img",se=function(e){function t(e,n){return Object(z.a)(this,t),K(this,$(t).call(this,e,n))}return ie(t,e),Object(U.a)(t,[{key:"create",value:function(){var e=document.createDocumentFragment(),t=this.getBody(),n=this.getContent();this.body=t,this.content=n,this.wDom.wGet(t.content).appendChild(n.node);var i=this.getStyle();this.style=i,e.appendChild(t.node),e.appendChild(i.node),this.wDom.wGet(e),this.wDom.wGet(i.node);var o=document.createElement("link");o.href="https://fonts.googleapis.com/css?family=Lato:700",o.rel="stylesheet",document.head.appendChild(o)}},{key:"getBody",value:function(){var e=this,t=e.wDom,n=e.wSheets.getSheet();n.add({body:{"-webkit-font-smoothing":"antialiased",backgroundImage:"url('".concat(ae,"/epsy2-bnr1/bg1.jpg')"),backgroundColor:"#f68803",backgroundPosition:"50% 50%",backgroundRepeat:"no-repeat",color:"#fff",textAlign:"center",cursor:"pointer",marginTop:"0px",display:"table !important",opacity:"1 !important",position:"absolute",top:"0px",left:"0px",fontWeight:"normal",font:"normal normal 14px Lato, Arial, Helvetica, sans-serif",width:"100%",height:"55px",lineHeight:"normal",zIndex:"2147483647"},inner:{display:"flex",height:"55px",justifyContent:"space-around",margin:"0 auto"},productLink:{position:"relative",height:"55px",backgroundColor:"rgba(196, 196, 196, 0.01)",boxShadow:"inset 0px 0px 20px #FFFFFF",transition:"box-shadow 0.2s ease-out",width:"12.5%",borderRight:"1px solid #CC4B00",boxSizing:"border-box",backgroundRepeat:"no-repeat",backgroundSize:"contain",backgroundPosition:"90% 50%",fontFamily:"Lato, Arial, Helvetica, sans-serif",fontWeight:"bold",fontSize:"18px",lineHeight:"55px",color:"#FFFFFF !important",textTransform:"uppercase",textShadow:"0 0 6px rgba(0, 0, 0, 0.4)",paddingRight:"6.8%",textAlign:"right","&:hover":{boxShadow:"inset 0px 0px 36px #FFFFFF",textDecoration:"none"}},productLink1:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/[email protected]')")},productLink2:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/[email protected]')")},productLink3:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/[email protected]')")},productLink4:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/[email protected]')")},productLink5:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/[email protected]')")},productLink6:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/[email protected]')")},buttonInfo:{display:"flex",alignItems:"center",justifyContent:"center",width:"25%"},buttonButton:{whiteSpace:"nowrap",boxShadow:"0px 4px 4px rgba(0, 0, 0, 0.1), inset 0px 0px 10px rgba(255, 245, 0, 0.3)",transition:"background 0.2s ease-out",fontSize:"14px",fontFamily:"Kristi, Arial, Helvetica, sans-serif",lineHeight:"36px",fontWeight:"normal",background:"#E34D00",textTransform:"uppercase",color:"#fff !important",padding:"0 14px",borderRadius:"50px",minWidth:"186px",boxSizing:"border-box",cursor:"pointer","&:hover":{textDecoration:"none",color:"#fff !important",background:"#e33404"}},"@media only screen and (max-width: 1719px)":{productLink:{width:"14.16666666%",fontSize:"16px",paddingRight:"7.8%"},buttonInfo:{width:"15%"}},"@media only screen and (max-width: 1479px)":{productLink:{fontSize:"15px",backgroundSize:"auto 45px"},productLink1:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/[email protected]')"),backgroundSize:"contain"},productLink3:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/[email protected]')"),backgroundSize:"contain"},productLink5:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/[email protected]')"),backgroundSize:"contain"},productLink6:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/[email protected]')"),backgroundSize:"contain"}},"@media only screen and (max-width: 1339px)":{productLink:{width:"16.6666666%",paddingRight:"8.8%"},productLink6:{borderRight:"none"},buttonInfo:{display:"none"}},"@media only screen and (max-width: 1024px)":{body:{backgroundImage:"url('".concat(ae,"/epsy2-bnr1/bg2.png')")}},"@media