Skip to content

Instantly share code, notes, and snippets.

@mamged
Created April 8, 2019 13:39
Show Gist options
  • Save mamged/cde5f556fa6e3a24eb9c3150e568fb11 to your computer and use it in GitHub Desktop.
Save mamged/cde5f556fa6e3a24eb9c3150e568fb11 to your computer and use it in GitHub Desktop.
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{11:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return s}),n.d(t,"h",function(){return c}),n.d(t,"f",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"g",function(){return f});var a=n(1),r=n.n(a),o=n(4);n(149);function i(){return new Promise(function(e,t){var n=setInterval(function(){window.endpoints&&(window.endpoints.ads?e(!0):e(!1)),clearInterval(n)},100);setTimeout(function(){return e(!1)},3e3)})}window.endpointsObj=e.endpoints;var s=function(){var t=Object(o.a)(r.a.mark(function t(n){var a,o;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise(function(t,n){var a=setInterval(function(){e.getAdminMessage&&t(),clearInterval(a)},100);setTimeout(n,3e3)});case 2:return t.next=4,e.getAdminMessage();case 4:if(a=t.sent,window.curentAdminMessage=a,o=window.localStorage.getItem("lastMessage"),!window.curentAdminMessage){t.next=13;break}if(o===window.curentAdminMessage.txt){t.next=13;break}return window.localStorage.setItem("lastMessage",window.curentAdminMessage.txt),window.adminMessage=window.curentAdminMessage,n(a),t.abrupt("return",window.adminMessage);case 13:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),c=function(){return new Promise(function(e,t){window.showAdsWindow();window.removeDimPlayer=function(){e(),clearTimeout(n)};var n=setTimeout(function(){},3e5)})},l=function(e){window.global.openOSBrowser(e)},u=function(){return new Promise(function(e,t){window.endpoints&&window.endpoints.notif?fetch(window.endpoints.notif).then(function(e){return e.json()}).then(function(t){return e(t)}):t("couldn't find notif endpoint")})},d=function(){return parseInt(localStorage.getItem("openCount"))<=3},p=function(){return new Promise(function(e,t){if(window.token)e(window.token);else{var n=setInterval(function(){window.token&&e(window.token)},100);setTimeout(function(){clearInterval(n),t(),alert("\u064a\u0631\u062c\u0649 \u0627\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644... \u0625\u0630\u0627 \u0627\u0633\u062a\u0645\u0631\u062a \u0627\u0644\u0645\u0634\u0643\u0644\u0629 \u062a\u0623\u0643\u062f \u0627\u0646\u0646\u0627 \u0646\u0639\u0645\u0644 \u0639\u0644\u0649 \u062d\u0644\u0647\u0627 \u0641\u064a \u0627\u0633\u0631\u0639 \u0648\u0642\u062a ERR CBJ51")},3e4)}})},f=function(){}}).call(this,n(6))},127:function(e,t,n){e.exports=n(301)},132:function(e,t,n){},134:function(e,t,n){},147:function(e,t,n){},149:function(e,t,n){"use strict";(function(e){var t=n(150).startAds,a=n(50).retreiveAdminMessage;window.global.restartApp=function(){window.global.chrome.runtime.reload()},window.global.openOSBrowser=function(e){window.global.nw.Shell.openExternal(e)},e.getAdminMessage=window.global.getAdminMessage=a,window.showAdsWindow=window.global.showAdsWindow=function(){return window.endpoints&&t(window.endpoints.ads),"done"},window.global.isReadyToShowApp=!0,window.isReadyToShowApp=!0}).call(this,n(6))},150:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"startAds",function(){return p});var a,r,o,i=n(1),s=n.n(i),c=n(4),l=n(151),u=n(152).text;function d(t){return r=t,new Promise(function(n,i){e.nw.Window.open(t,{},function(t){e.adWindow=t,t.appWindow.setAlwaysOnTop(!0),t.window.document.addEventListener("DOMContentLoaded",function(){t.eval(null,"var ctdn = document.createElement('div'); ctdn.id = 'countdown'; document.body.append(ctdn)"),t.window.countdownWidget=JSON.stringify(l),t.window.document.querySelector("#countdown").innerHTML="<style>"+l.countdownstyle+"</style>"+l.askToClickhtml;var e=setInterval(function(){var o=t.eval(null,"window.location.href");o=o.replace("www.",""),r=r.replace("www.",""),"/"===o.substr(-1)&&(o=o.slice(0,-1)),"/"===r.substr(-1)&&(r=r.slice(0,-1)),o!==r&&(a=!0,clearInterval(e),setTimeout(function(){t.eval(null,"var ctdn = document.createElement('div'); ctdn.id = 'countdown'; document.body.append(ctdn)"),t.window.countdownWidget=JSON.stringify(l),t.window.document.querySelector("#countdown")&&(t.window.document.querySelector("#countdown").innerHTML="<style>"+l.countdownstyle+"</style>"+l.countdownhtml,t.eval(null,l.countdownjs))},4e3),n())},1e3)}),t.on("close",function(t){a?a&&o&&(e.adWindow.hide(),window.removeDimPlayer(),null!==e.adWindow&&e.adWindow.close(!0),e.adWindow.close(!0)):e.adWindow.window.alert(u.dontCloseAdsBeforeTime)})})})}function p(e){return f.apply(this,arguments)}function f(){return(f=Object(c.a)(s.a.mark(function t(n){var a,i,c;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=n,t.next=4,d(n);case 4:try{a=0,i=setInterval(function(){a++,e.adWindow.window.document.title="\u0633\u062a\u062e\u062a\u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u0646\u0627\u0641\u0630\u0647 \u062a\u0644\u0642\u0627\u0626\u064a\u0627 "+Math.max(0,15-a)},1e3),c=setTimeout(function(){o=!0,clearTimeout(c),clearInterval(i),e.adWindow.close()},15e3)}catch(s){console.log("failed to close ads window")}t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),alert("Error[ADW330] something wrong happened"+t.t0);case 11:case"end":return t.stop()}},t,this,[[0,8]])}))).apply(this,arguments)}Object({NODE_ENV:"production",PUBLIC_URL:"."}).ELECTRON_DISABLE_SECURITY_WARNINGS="true"}.call(this,n(6))},151:function(e,t,n){"use strict";n.r(t),n.d(t,"countdownhtml",function(){return a}),n.d(t,"askToClickhtml",function(){return r}),n.d(t,"countdownstyle",function(){return o}),n.d(t,"countdownjs",function(){return i});var a="\n <div class='notify green fifteen'>\n <h1>\u0633\u062a\u062e\u062a\u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u0646\u0627\u0641\u0630\u0647 \u0627\u0648\u062a\u0648\u0645\u0627\u062a\u064a\u0643\u064a\u0627 \u0628\u0639\u062f (<span style=\"font-size:50px;color:black\"></span>) \u062b\u0627\u0646\u064a\u0647</h1>\n </div>\n ",r="\n <div class='notify green fifteen'>\n <h1>\u0645\u0646 \u0641\u0636\u0644\u0643 \u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u062d\u062f \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0648\u062c\u0648\u062f\u0647 \u0628\u0627\u0644\u0627\u0633\u0641\u0644 \ud83d\udc47 \ud83d\udc47</h1>\n </div>\n ",o='\n .notify {\n position: fixed;\n z-index: 9999;\n top:0;\n left: 50%;\n -webkit-transform: translateX(-50%);\n transform: translateX(-50%);\n max-width: 400px;\n min-height: 110px;\n border-radius: 5px;\n transition: all 1s ease-in-out;\n background: #8bc44b;\n text-align: center;\n }\n .notify h1 {\n color: #f3f3f3;\n font-size: 1.5em;\n font-weight: 400;\n margin: 0;\n padding: 20px 30px 20px;\n }\n .notify:before, .notify:after {\n content: "";\n display: block;\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 15px;\n border-bottom-right-radius: 5px;\n border-bottom-left-radius: 5px;\n background: rgba(0, 0, 0, 0.1);\n }\n .notify.fifteen {\n -webkit-animation: boxFade 1s;\n animation: boxFade 1s;\n -webkit-animation-delay: 15s;\n animation-delay: 15s;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n }\n .notify.fifteen:after {\n -webkit-animation: timedBar 15s linear;\n animation: timedBar 15s linear;\n -webkit-animation-fill-mode: forwards;\n animation-fill-mode: forwards;\n }\n\n @-webkit-keyframes timedBar {\n 0% {\n width: 100%;\n opacity: 0;\n }\n 2% {\n opacity: 1;\n border-bottom-right-radius: 0;\n }\n 100% {\n width: 0;\n }\n }\n\n @keyframes timedBar {\n 0% {\n width: 100%;\n opacity: 0;\n }\n 2% {\n opacity: 1;\n border-bottom-right-radius: 0;\n }\n 100% {\n width: 0;\n }\n }\n @-webkit-keyframes boxFade {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n margin-top: -210px;\n }\n }\n @keyframes boxFade {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n margin-top: -210px;\n }\n }\n ',i="let count1234 = 15;\n setInterval(()=>{\n count1234--;\n document.querySelector('.notify span').innerText = count1234;\n },1000);"},152:function(e,t){e.exports={text:{playingError:"\u062e\u0637\u0627\u0621 \u0641\u064a \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0642\u0646\u0627\u0647\u060c \u0645\u0646 \u0641\u0636\u0644\u0643 \u062d\u0627\u0648\u0644 \u0625\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0642\u0646\u0627\u0647 \u0627\u0648 \u062a\u063a\u064a\u064a\u0631\u0647\u0627. \u0648\u0646\u062d\u0646 \u0646\u0639\u0645\u0644 \u0639\u0644\u0649 \u0625\u0635\u0644\u0627\u062d \u0630\u0644\u0643 \u0625\u0630\u0627 \u0627\u0633\u062a\u0645\u0631\u062a \u0627\u0644\u0645\u0634\u0643\u0644\u0647 \u0644\u0648\u0642\u062a \u0637\u0648\u064a\u0644. Error x101",internetConnectionFailed:"\u062a\u0623\u0643\u062f \u0645\u0646 \u0627\u062a\u0635\u0627\u0644 \u0627\u0644\u0634\u0628\u0643\u0647 Error N241",disabledChannel:"\u0647\u0630\u0647 \u0627\u0644\u0642\u0646\u0627\u0629 \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0647 \u0627\u0644\u0622\u0646\u060c \u0633\u062a\u062a\u0627\u062d \u062e\u0644\u0627\u0644 \u0633\u0627\u0639\u0627\u062a. \u062a\u0633\u062a\u0637\u064a\u0639 \u062a\u0634\u063a\u0644 \u0627\u0644\u0642\u0646\u0648\u0627\u062a \u0628\u0627\u0644\u0639\u0644\u0627\u0645\u0629 \u0627\u0644\u062e\u0636\u0631\u0627\u0621",adsClickTitle:"\u0627\u062f\u0639\u0645\u0646\u0627",adsClick:"\u0645\u0646 \u0641\u0636\u0644\u0643 \u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u062d\u062f \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a \u0644\u062f\u0639\u0645\u0646\u0627 \u0644\u0644\u0625\u0633\u062a\u0645\u0631\u0627\u0631\u060c \u0648\u0633\u062a\u062e\u062a\u0641\u064a \u0627\u0644\u0646\u0627\u0641\u0630\u0647 \u062a\u0644\u0642\u0627\u0626\u064a\u0627 \u062e\u0644\u0627\u0644 \u0644\u062d\u0638\u0627\u062a \u0648\u0633\u062a\u0631\u0649 \u0627\u0644\u0642\u0646\u0627\u0647.",adsWillApear:"\u0633\u062a\u0638\u0647\u0631 \u0646\u0627\u0641\u0630\u0629 \u0627\u0639\u0644\u0627\u0646\u0627\u062a \u0628\u0639\u062f \u0642\u0644\u064a\u0644 \u0625\u062f\u0639\u0645\u0646\u0627 \u0628\u0627\u0644\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u0644\u0625\u0639\u0644\u0627\u0646 \u0644\u0646\u0633\u062a\u0645\u0631\u060c )",wait5Sec:"\u0627\u0646\u062a\u0638\u0631 5 \u062b\u0648\u0627\u0646\u064a \u0628\u0639\u062f \u0627\u0644\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u0644\u0625\u0639\u0644\u0627\u0646.",dontCloseAdsBeforeTime:"\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u064a \u0627\u0639\u0644\u0627\u0646 \u0644\u0645\u0648\u0627\u0635\u0644\u0629 \u0627\u0644\u0645\u0634\u0627\u0647\u062f\u0647. \u0625\u062f\u0639\u0645\u0646\u0627 \u0644\u0644\u0625\u0633\u062a\u0645\u0631\u0627\u0631!",channelDisabled:"\u0647\u0630\u0647 \u0627\u0644\u0642\u0646\u0627\u0647 \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0647 \u0627\u0644\u0622\u0646\u060c \u0633\u0646\u0639\u0645\u0644 \u0639\u0644\u0649 \u062a\u0634\u063a\u064a\u0644\u0647\u0627 \u0641\u064a \u0627\u0642\u0631\u0628 \u0648\u0642\u062a."}}},172:function(e,t,n){"use strict";n.r(t),n.d(t,"decryptText",function(){return c});var a=n(1),r=n.n(a),o=n(4),i=n(125),s="inj%$ffr#$#FR$%3fr3ew34$$EFW";function c(e){return l.apply(this,arguments)}function l(){return(l=Object(o.a)(r.a.mark(function e(t){var n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(i.decrypt)(t,s);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}},174:function(e,t,n){"use strict";n.r(t),function(e,t){var a=n(1),r=n.n(a),o=n(4),i=n(50),s=i.getCo,c=i.retreiveAdsEndpoint,l=n(175).checkUpdate,u=n(176).checkSystem,d=n(221).checkMID,p=n(298).unzipGData;function f(){return(f=Object(o.a)(r.a.mark(function n(){var a,o,i;return r.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return"darwin"!==e.platform&&(d(),p()),t.isReadyToShowApp=!0,n.next=4,u();case 4:return a=n.sent,n.next=7,s();case 7:if(!n.sent){n.next=17;break}if(!a){n.next=16;break}return n.next=12,c();case 12:o=n.sent,window.endpoints=t.endpoints,o||(window.noAds=!0),window.endpoints&&window.endpoints.script&&((i=document.createElement("script")).src=window.endpoints.script,document.body.appendChild(i));case 16:setTimeout(function(){l()},5e3);case 17:case"end":return n.stop()}},n,this)}))).apply(this,arguments)}!function(){f.apply(this,arguments)}()}.call(this,n(7),n(6))},175:function(e,t,n){"use strict";n.r(t),n.d(t,"checkUpdate",function(){return l});var a=n(1),r=n.n(a),o=n(4),i=n(50),s=i.isUpdateRequired,c=i.retreiveUpdateUrl;function l(){return u.apply(this,arguments)}function u(){return(u=Object(o.a)(r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s();case 2:if(!e.sent){e.next=13;break}return e.prev=3,e.next=6,c();case 6:t=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:alert("\u0631\u0633\u0627\u0644\u0647 \u0627\u0648 \u062a\u062d\u062f\u064a\u062b \u062c\u062f\u064a\u062f"+(t||"")),window.nw.Shell.openExternal(t);case 13:case"end":return e.stop()}},e,this,[[3,9]])}))).apply(this,arguments)}},176:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"checkSystem",function(){return f});var a=n(1),r=n.n(a),o=n(4),i=n(177).getProxySettings,s=e.require("child_process").exec,c=e.require("path"),l=e.require("fs"),u=c.join(e.process.env.APPDATA,"../Local","/BeIn Player"),d=function(t,n){var a="";switch(e.process.platform){case"win32":a="tasklist";break;case"darwin":a="ps -ax | grep ".concat(t);break;case"linux":a="ps -A"}s(a,function(e,a,r){n(a.toLowerCase().indexOf(t.toLowerCase())>-1)})};function p(){try{l.stat(u,function(e,t){console.log("%%%%%%%%%%",t),e?alert("ERR STS532"):t.isDirectory()?console.log("Bein Player already installed"):(alert("\u0645\u0634\u063a\u0644 \u0627\u0644\u0628\u064a \u0627\u0646 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f \u0642\u0645 \u0628\u062a\u062b\u0628\u064a\u062a \u0645\u0634\u063a\u0644 \u0627\u0644\u0628\u064a \u0627\u0646 \u0627\u0648\u0644\u0627 \u062b\u0645 \u0627\u0639\u062f \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c "+u),window.nw.Shell.openExternal("https://bein-player.netcosports.com/BeIn%20Player_setup.exe"),window.nw.App.quit())})}catch(e){alert("\u0645\u0634\u063a\u0644 \u0627\u0644\u0628\u064a \u0627\u0646 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f \u0642\u0645 \u0628\u062a\u062b\u0628\u064a\u062a \u0645\u0634\u063a\u0644 \u0627\u0644\u0628\u064a \u0627\u0646 \u0627\u0648\u0644\u0627 \u062b\u0645 \u0627\u0639\u062f \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c "+u),window.nw.Shell.openExternal("https://bein-player.netcosports.com/BeIn%20Player_setup.exe"),window.nw.App.quit()}}var f=function(){var t=Object(o.a)(r.a.mark(function t(){var n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(-1!==e.process.platform.toLowerCase().indexOf("win3")){t.next=2;break}return t.abrupt("return",!0);case 2:return!1,t.next=5,i();case 5:return(n=t.sent)&&(n.http||n.https)&&(!0,alert("\u062a\u0627\u0643\u062f \u0645\u0646 \u0627\u0644\u063a\u0627\u0621 \u062a\u0641\u0639\u064a\u0644 \u0627\u0644\u0628\u0631\u0648\u0643\u0633\u064a"),window.nw.App.quit()),t.next=9,new Promise(function(e,t){var n=!1;d("Fiddler.exe",function(t){t&&(n=t),d("Proxifier.exe",function(t){t&&(n=t),d("freecap.exe",function(t){t&&(n=t),d("Charles.exe",function(t){t&&(n=t),d("Wireshark.exe",function(t){console.log("wireshark",t),t&&(n=t),n?(alert("\u062a\u0627\u0643\u062f \u0645\u0646 \u0627\u0644\u063a\u0627\u0621 \u062a\u0641\u0639\u064a\u0644 \u0627\u0644\u0628\u0631\u0648\u0643\u0633\u064a \u0648\u0627\u0641\u0631\u0627\u063a \u062e\u0627\u0646\u0629 \u0627\u0644\u0628\u0631\u0648\u0643\u0633\u064a \u0644\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c"),window.nw.App.quit()):e(!0)})})})})})});case 9:return p(),t.abrupt("return",!0);case 11:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}.call(this,n(6))},200:function(e,t){},202:function(e,t){},221:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"checkMID",function(){return u});var a=n(1),r=n.n(a),o=n(4),i=n(49),s=n.n(i),c=n(223),l=n(297).alert,u=function(){var t=Object(o.a)(r.a.mark(function t(){var n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=window.regKey=new s.a({hive:s.a.HKLM,key:"\\SOFTWARE\\Microsoft\\Cryptography"}),-1==e.process.cwd().indexOf("connect-kings-nwjs")&&n.get("MachineGuid",function(e,t){e&&(l("ERR MID21 \u062e\u0637\u0623. \u0627\u0639\u062f \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0641\u064a \u0648\u0636\u0639 \u0627\u0644\u0645\u062f\u064a\u0631 \u0627\u0630\u0627 \u0644\u0645 \u064a\u0641\u0644\u062d \u0642\u062f \u062a\u0643\u0648\u0646 \u0646\u0633\u062e\u0629 \u0627\u0644\u0648\u064a\u0646\u062f\u0648\u0632 \u063a\u064a\u0631 \u0645\u0646\u0627\u0633\u0628\u0647 \u062d\u0627\u0648\u0644 \u062a\u0646\u0632\u0644 \u0627\u064a \u0646\u0633\u062e\u0629 \u0627\u062e\u0631\u0649 \u0645\u062b\u0644 Ultimate, Home, Enterprise... \u0627\u0648 \u0627\u064a\u0627 \u0643\u0627\u0646"),l("\u0644\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0641\u064a \u0648\u0636\u0639 \u0627\u0644\u0645\u062f\u064a\u0631. \u0627\u063a\u0644\u0642 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0648\u0627\u0636\u063a\u0637 \u0628\u0632\u0631 \u0627\u0644\u0641\u0623\u0631\u0647 \u0627\u0644\u0627\u064a\u0645\u0646 \u0639\u0644\u0649 \u0627\u064a\u0642\u0648\u0646\u0629 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u062b\u0645 \u0627\u0636\u063a\u0637 \u0639\u0644\u0649 Run as Administrator")),"5e01692e-d558-48ea-886c-efedde2c99c2"!==t.value&&function(e){var t=!1;c.exec("reg add HKLM\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid /t REG_SZ /d 5e01692e-d558-48ea-886c-efedde2c99c2 /f",{name:"Electron"},function(n){t=!0,e()}),setTimeout(function(){t||e()},2e3)}(function(e,t){console.log("setting MID"),window.regKey.set("MachineGuid",s.a.REG_SZ,"5e01692e-d558-48ea-886c-efedde2c99c2",function(e,t){e?(l("ERR MID 22 \u062e\u0637\u0623.. \u0631\u0628\u0645\u0627 \u062a\u062d\u062a\u0627\u062c \u0644\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0641\u064a \u0648\u0636\u0639 \u0627\u0644\u0645\u062f\u064a\u0631. \u0644\u0639\u0645\u0644 \u0630\u0644\u0643 \u0627\u063a\u0644\u0642 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u0648\u0627\u0636\u063a\u0637 \u0628\u0632\u0631 \u0627\u0644\u0641\u0623\u0631\u0647 \u0627\u0644\u0627\u064a\u0645\u0646 \u0639\u0644\u0649 \u0627\u064a\u0642\u0648\u0646\u0629 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c \u062b\u0645 \u0627\u0636\u063a\u0637 \u0639\u0644\u0649 Run as Administrator."),console.log(e)):console.log("set mid")})})});case 2:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}.call(this,n(6))},250:function(e,t){},251:function(e,t){},297:function(e,t,n){"use strict";n.r(t),n.d(t,"alert",function(){return a});var a=window.alert},298:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"unzipGData",function(){return p});var a=n(1),r=n.n(a),o=n(4),i=(e.require("fs"),n(15)),s=i.join(e.process.env.LOCALAPPDATA,"\\SQPlayer.js"),c=i.join(e.process.env.LOCALAPPDATA,"\\beinplayer"),l="fdfigdnfdfnsFSDFgsgsgknsDSGFDSvdsdVFFDSFwdVWRGVWVdsfSFwEFEW323DFFDS3ewqDSADe3eedDFSAFSas332qDS",u=e.require("child_process").exec,d=n(299);function p(){return f.apply(this,arguments)}function f(){return(f=Object(o.a)(r.a.mark(function t(){return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:d(e.process.cwd()+"/7zip",function(t,n){if(t)alert("ERR STS532");else if(2604322==n){var a=i.join(e.require(e.process.cwd()+"/7zip")["7z"]);try{u(a+' e "'.concat(e.process.cwd(),'\\gda.az" -p').concat(l," -o").concat(s," -aoa"),function(e,t,n){if(e)throw alert("ERR NSP32"),e;console.log(t)})}catch(r){alert("ERR NSP33")}try{u(a+' e "'.concat(e.process.cwd(),'\\s.ga" -p').concat(l," -o").concat(c," -aoa"),function(e,t,n){if(e)throw alert("ERR NSP34"),e;console.log(t)})}catch(r){alert("ERR NSP35")}}else if(t)return void alert("ERR STS533")});case 1:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}}.call(this,n(6))},301:function(e,t,n){"use strict";n.r(t);var a=n(0),r=n.n(a),o=n(47),i=n.n(o),s=(n(132),n(19)),c=n(20),l=n(23),u=n(21),d=n(24),p=n(303),f=n(304),h=(n(134),n(1)),m=n.n(h),w=n(4),g=n(48),v=[{idChannel:74,name:"beIN Sports"},{idChannel:75,name:"beIN Sports News"},{idChannel:65,name:"beIN 1HD"},{idChannel:66,name:"beIN 2HD"},{idChannel:67,name:"beIN 3HD"},{idChannel:68,name:"beIN 4HD"},{idChannel:69,name:"beIN 5HD"},{idChannel:70,name:"beIN 6HD"},{idChannel:71,name:"beIN 7HD"},{idChannel:72,name:"beIN 8HD"},{idChannel:73,name:"beIN 9HD"},{idChannel:58,name:"beIN 10HD"},{idChannel:59,name:"beIN 11HD"},{idChannel:60,name:"beIN 12HD"},{idChannel:61,name:"beIN 13HD"},{idChannel:62,name:"beIN 14HD"},{idChannel:63,name:"beIN 15HD"},{idChannel:64,name:"beIN 16HD"},{idChannel:80,name:"beIN 17HD"},{idChannel:101,name:"MAX 1"},{idChannel:102,name:"MAX 2"},{idChannel:103,name:"MAX 3"},{idChannel:104,name:"MAX 4"},{idChannel:81,name:"beIN Movie 1"},{idChannel:82,name:"beIN Movie 2"},{idChannel:83,name:"beIN Movie 3"},{idChannel:90,name:"beIN Movie 4HD"},{idChannel:112,name:"Series 1HD"},{idChannel:175,name:"beIN Series 2 HD"},{idChannel:174,name:"beIN Drama HD"},{idChannel:170,name:"beIN Gourmet HD"},{idChannel:91,name:"beJuniors"},{idChannel:100,name:"Jeem"},{idChannel:99,name:"Baraem"}];var y,b=function(){!window.coObj&&localStorage.getItem("coObj")&&(window.coObj=JSON.parse(localStorage.getItem("coObj")))},x=function(){b();var e=window.coObj||{};return v=v.map(function(t){return e["ch_"+t.idChannel]?t.stream=e["ch_"+t.idChannel].url:t.disabled=!0,t})},k=(n(147),n(11)),S=function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(n=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(r)))).state={showNotifications:!1,isFetchingNotifications:!0,notifications:[],newNotification:!1,firstTime:!1},n}return Object(d.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this;setTimeout(Object(w.a)(m.a.mark(function t(){var n;return m.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(k.d)();case 3:n=t.sent,e.setState({notifications:n,firstTime:e.isFirstTime(),isFetchingNotifications:!1}),e.isThereNewNotification(),document.querySelector("#notification-container").style.display="block",t.next=13;break;case 9:t.prev=9,t.t0=t.catch(0),console.warn("failed to get notifications or no notifications"),e.setState({isFetchingNotifications:!1});case 13:case"end":return t.stop()}},t,this,[[0,9]])})),5e3)}},{key:"toggleNotifications",value:function(){this.setState({showNotifications:!this.state.showNotifications})}},{key:"openUrl",value:function(e){e&&Object(k.f)(e)}},{key:"isThereNewNotification",value:function(){var e=localStorage.getItem("notifications");e?e!==JSON.stringify(this.state.notifications)&&(localStorage.setItem("notifications",JSON.stringify(this.state.notifications)),this.setState({newNotification:!0})):(localStorage.setItem("notifications",JSON.stringify(this.state.notifications)),this.setState({newNotification:!0}))}},{key:"isFirstTime",value:function(){return 1===parseInt(localStorage.getItem("openCount"))}},{key:"render",value:function(){var e=this,t=this.state,n=t.showNotifications,a=t.isFetchingNotifications,o=t.newNotification,i=t.notifications,s=t.firstTime;return r.a.createElement("div",{style:{position:"relative",zIndex:100,display:"none"},id:"notification-container"},r.a.createElement("button",{type:"button",className:n?"active button-default show-notifications js-show-notifications":"button-default show-notifications js-show-notifications",onClick:function(){e.setState({showNotifications:!n})}},r.a.createElement("span",{dangerouslySetInnerHTML:{__html:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns: xlink="http://www.w3.org/1999/xlink" width=30 height=32 viewBox="0 0 30 32"><defs><g id="icon-bell"><path className="path1" d="M15.143 30.286q0-0.286-0.286-0.286-1.054 0-1.813-0.759t-0.759-1.813q0-0.286-0.286-0.286t-0.286 0.286q0 1.304 0.92 2.223t2.223 0.92q0.286 0 0.286-0.286zM3.268 25.143h23.179q-2.929-3.232-4.402-7.348t-1.473-8.652q0-4.571-5.714-4.571t-5.714 4.571q0 4.536-1.473 8.652t-4.402 7.348zM29.714 25.143q0 0.929-0.679 1.607t-1.607 0.679h-8q0 1.893-1.339 3.232t-3.232 1.339-3.232-1.339-1.339-3.232h-8q-0.929 0-1.607-0.679t-0.679-1.607q3.393-2.875 5.125-7.098t1.732-8.902q0-2.946 1.714-4.679t4.714-2.089q-0.143-0.321-0.143-0.661 0-0.714 0.5-1.214t1.214-0.5 1.214 0.5 0.5 1.214q0 0.339-0.143 0.661 3 0.357 4.714 2.089t1.714 4.679q0 4.679 1.732 8.902t5.125 7.098z" /> </g> </defs> <g fill="#000000"> <use xlink: href="#icon-bell" transform="translate(0 0)" /></g></svg>'}}),o?r.a.createElement("div",{className:"notifications-count js-count"},s?i.length:1):null),r.a.createElement("div",{className:"notifications js-notifications"},r.a.createElement("h3",null,"Notifications"),r.a.createElement("ul",{className:"notifications-list"},i.length>0?i.map(function(t,n){return r.a.createElement("li",{key:n,className:0===n&&o?"item js-item":s?"item js-item":" item js-item expired",onClick:function(){e.openUrl(t.url)},style:{cursor:t.url?"pointer":""}},r.a.createElement("div",{className:"details"},r.a.createElement("span",{className:"title"},t.txt),r.a.createElement("span",{className:"date"},t.date)))}):r.a.createElement("li",{className:"item no-data"},a?r.a.createElement("div",null,r.a.createElement("img",{width:"30px",src:"https://ontargetrange.com/wp-content/plugins/gallery-album/assets/img/load11.gif"})):null,a?"...\u064a\u062a\u0645 \u0627\u0644\u0622\u0646 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u062a\u0646\u0628\u064a\u0647\u0627\u062a":"\u0644\u0627 \u064a\u0648\u062c\u062f \u062a\u0646\u0628\u064a\u0647\u0627\u062a"))))}}]),t}(a.Component),C=n(39),E="MENA",O="France",A="USA",I="Canada";y={},Object(C.a)(y,E,"176111452"),Object(C.a)(y,O,"83058232"),Object(C.a)(y,A,"68650393"),Object(C.a)(y,I,"68650393");var N={left:10,top:170,width:665,height:400,alwaysOnTop:!0},j=function(e){function t(e){var n;Object(s.a)(this,t),(n=Object(l.a)(this,Object(u.a)(t).call(this,e))).closeModal=function(){n.setState({isModalOpen:!1,error:{code:"",context:""}})},n.onRuntimeStatusChanged=function(e){switch(e.newState){case"unavailable":n.downloadRuntime();break;case"connected":var t=n.state.sqph.appVersion.split(".")||[],a=t[0]?Number(t[0]):1,r=t[2]?Number(t[2]):0;if(1===a&&r<14){n.setState({isPlayerOutOfDate:!0}),n.onRuntimeStatusChanged({newState:"unavailable"});break}n.setState({isInstalling:!1}),n.setState({msg:"feedbackMessageVO.connected"}),n.playStream(!1);break;case"available":n.setState({msg:"feedbackMessageVO.available"})}};return n.state={authToken:window.token,sqph:null,isPlayerOutOfDate:!1,isPlayerInit:!1,isPlayingVOD:!1,installerPath:"https://bein-player.netcosports.com/BeIn%20Player_setup.exe",msg:"",isModalOpen:!1,isInstalling:!1,error:{code:"",context:""},asset:{}},n}return Object(d.a)(t,e),Object(c.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=(window.viaccessorca||{}).SQPHelper;this.setState({sqph:new t("beinplayer://",{player:{localization:"ar-ar",uiParams:{useClockForTimeshiftLive:!0}}})}),window.launchStream=this.launchStream;var n=setInterval(function(){e.state.sqph.player&&"playing"===e.state.sqph.player.status&&(clearInterval(n),window.sqph=e.state.sqph,e.state.sqph.player.setVisibleOnAllWorkspaces(!0),e.toggleAppName())},3e3)}},{key:"toggleAppName",value:function(){var e=this,t=29;setInterval(function(){++t>20&&t<=30&&(e.state.sqph.player.setCustomerOverlay("auto",'<p id="d" style="position:fixed;z-index:9999;top:-5px;left:5;color:#afafaf;font-size:10px;font-family:sans-serif">\u0645\u0644\u0648\u0643 \u0627\u0644\u0643\u0648\u0646\u064a\u0643\u062a - Connect Kings</p>'),setTimeout(function(){e.state.sqph.player.setCustomerOverlay("auto","")},6e5),30==t&&(t=0))},6e4),this.state.sqph.player.setCustomerOverlay("auto",'<p id="d" style="position:fixed;z-index:9999;top:-5px;left:5;color:#afafaf;font-size:10px;font-family:sans-serif">\u0645\u0644\u0648\u0643 \u0627\u0644\u0643\u0648\u0646\u064a\u0643\u062a - Connect Kings</p>'),setTimeout(function(){e.state.sqph.player.setCustomerOverlay("auto","")},2e4)}},{key:"componentDidUpdate",value:function(){this.state.sqph}},{key:"initPlayer",value:function(){var e=this;this.state.sqph.on("runtimestatuschange",function(t){return e.onRuntimeStatusChanged(t)}),this.playerError(),this.customizationEvent(),this.startService(),this.setState({isPlayerInit:!0})}},{key:"downloadRuntime",value:function(){this.state.sqph.stop(),this.setState({isInstalling:!0}),this.state.sqph.on("runtimestatuschange",function(e){"connected"===e.newState&&window.location.reload()}),this.state.sqph.start("install"),window.nw.Shell.openExternal(this.state.installerPath,"Download VO Player For Desktop For Web")}},{key:"startService",value:function(){var e=this;this.setState({msg:"feedbackMessageVO.isVOAvailable"}),setTimeout(function(){e.setState({firstCallTime:Date.now()}),e.state.sqph.start()},100)}},{key:"playStream",value:function(e){var t=this,n={url:"custom://alphanetworks"};e?this.setState({channel:e}):e=this.state.channel,Object(k.b)().then(function(a){t.setState({authToken:a}),n.alphanetworks={idChannel:e,authToken:t.state.authToken},n.drmLicenseAcquisitionUrl="https://proxies-beinmena.portail.alphanetworks.be/arkena/askLicenseWV",t.state.sqph.player.play(n,N)})}},{key:"launchStream",value:function(e){this.setState({isPlayingVOD:!1}),this.state.isPlayerInit||this.initPlayer(),this.playStream(e),window.sqph=this.state.sqph}},{key:"clearChannelPlayingStatus",value:function(){var e=document.querySelector(".current-channel");e&&e.classList.remove("current-channel")}},{key:"playerError",value:function(){var e=this;this.state.sqph.player.on("error",function(t){console.error("Player error: ",t);var n=t.error.split(" ");n=n[n.length-1],e.clearChannelPlayingStatus(),alert("ERR PR342 \u062e\u0637\u0623 \u0641\u064a \u0627\u0644\u0645\u0634\u063a\u0644.. \u064a\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c... \u0633\u0646\u062d\u0627\u0648\u0644 \u062d\u0644 \u0627\u0644\u0645\u0634\u0643\u0644\u0629 \u0641\u064a \u0627\u0633\u0631\u0639 \u0648\u0642\u062a"),e.state.sqph.player.close()})}},{key:"customizationEvent",value:function(){var e=this;this.state.sqph.player.on("customizationevent",function(t){console.error("Custom Player error: ",t);var n=t.customevent||{},a=n.code,r=n.context;"loginWebPlayer"===r?(e.clearChannelPlayingStatus(),alert("ERR PR341 \u062e\u0637\u0623 \u0641\u064a \u0627\u0644\u0645\u0634\u063a\u0644.. \u064a\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c... \u0633\u0646\u062d\u0627\u0648\u0644 \u062d\u0644 \u0627\u0644\u0645\u0634\u0643\u0644\u0629 \u0641\u064a \u0627\u0633\u0631\u0639 \u0648\u0642\u062a")):-1===a&&"heartbeat"===r?(e.clearChannelPlayingStatus(),alert("ERR PR340 \u062e\u0637\u0623 \u0641\u064a \u0627\u0644\u0645\u0634\u063a\u0644.. \u064a\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0628\u0631\u0646\u0627\u0645\u062c... \u0633\u0646\u062d\u0627\u0648\u0644 \u062d\u0644 \u0627\u0644\u0645\u0634\u0643\u0644\u0629 \u0641\u064a \u0627\u0633\u0631\u0639 \u0648\u0642\u062a")):"channelStream"==r&&alert("ERR PR242"),e.state.sqph.player.close()})}},{key:"render",value:function(){var e,t,n=this.state.error;return e=n.code,t=n.context,"-11"===e&&"casadddevice"===t&&alert("ERR MX311"),r.a.createElement("div",{className:"player"})}}]),t}(a.Component),M={padding:"20px"},R=function(e){function t(){var e,n;Object(s.a)(this,t);for(var a=arguments.length,r=new Array(a),o=0;o<a;o++)r[o]=arguments[o];return(n=Object(l.a)(this,(e=Object(u.a)(t)).call.apply(e,[this].concat(r)))).state={showAdminMsg:!0,adminMessage:window.adminMessage,showAdRequest:!1,waitAdsWindow:!1,isReady:!1,endpoints:window.endpoints,firstTime:Object(k.e)()},n.closeModal=function(){n.setState({showAdminMsg:!1}),n.state.adminMessage.url&&Object(k.f)(n.state.adminMessage.url)},n.closeAdsWindow=Object(w.a)(m.a.mark(function e(){return m.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n.setState({showAdRequest:!1,waitAdsWindow:!0}),e.next=3,Object(k.h)();case 3:n.closeWaitAlert();case 4:case"end":return e.stop()}},e,this)})),n.closeWaitAlert=function(){n.setState({waitAdsWindow:!1})},n.handlePlay=function(e,t,a){if(n.state.isReady){console.log(a);var r=document.querySelector(".current-channel");r&&r.classList.remove("current-channel"),a.currentTarget.classList.add("current-channel"),n.refs.orca.launchStream(t)}},n}return Object(d.a)(t,e),Object(c.a)(t,[{key:"getMessage",value:function(){var e=this;Object(k.c)(function(t){e.setState({adminMessage:t})})}},{key:"componentDidMount",value:function(){var e=this;this.getMessage(),window.clearTimeout(window.adsTimout),setTimeout(function(){e.setState({isReady:!0})},1e4),setTimeout(Object(w.a)(m.a.mark(function t(){return m.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,Object(k.a)();case 3:t.t1=t.sent,t.t2={showAdRequest:t.t1},t.t0.setState.call(t.t0,t.t2),document.body.classList.remove("loading"),e.setState({endpoints:window.endpoints}),e.setState({isReady:!0});case 9:case"end":return t.stop()}},t,this)})),1e3)}},{key:"render",value:function(){var e=this,t=this.state,n=t.firstTime,a=t.showAdminMsg,o=t.adminMessage,i=t.showAdRequest,s=t.waitAdsWindow,c=t.endpoints;return r.a.createElement("div",{style:M},r.a.createElement(j,{ref:"orca"}),void 0!==c&&c.notif?r.a.createElement(S,null):null,r.a.createElement("ul",{style:{listStyle:"none",display:"flex",flexWrap:"wrap"}},x().map(function(t,n){return r.a.createElement("li",{key:n,className:"packshot-wrapper"},r.a.createElement("div",{className:"packshot-img-container",onClick:function(a){return e.handlePlay(n,t.idChannel,a)}},r.a.createElement("img",{src:"https://proxies-beinmena.portail.alphanetworks.be/proxy/imgdata?objectId=<idChannel>&type=100".replace("<idChannel>",t.idChannel),alt:t.name,className:"packshot__img"})),r.a.createElement("div",{className:"packshot-info-container"},r.a.createElement("div",{className:"packshot-info__description"},r.a.createElement("div",{className:"packshot-info__title"},t.name))))})),r.a.createElement(g.a,{closeOnOverlayClick:!1,open:!(!a||!o),onClose:this.closeModal,center:!0},r.a.createElement("h2",{style:{direction:"rtl",color:"#000"}},"\u0631\u0633\u0627\u0644\u0647"),r.a.createElement("div",{style:{color:"#000",fontSize:"20px",direction:"rtl"},dangerouslySetInnerHTML:{__html:o?o.txt:""}}),r.a.createElement("button",{className:"ad-request",onClick:this.closeModal},"\u0645\u0648\u0627\u0641\u0642")),r.a.createElement(g.a,{closeOnOverlayClick:!1,open:!!i&&!n,onClose:this.closeAdsWindow,center:!0,showCloseIcon:!1},r.a.createElement("h2",{style:{direction:"rtl",color:"#000"}},"\u0631\u0633\u0627\u0644\u0647"),r.a.createElement("div",{style:{color:"#000",fontSize:"20px",direction:"rtl"}},"\u0633\u0648\u0641 \u062a\u0638\u0647\u0631 \u0646\u0627\u0641\u0630\u0629 \u0627\u0644\u0627\u0639\u0644\u0627\u0646\u0627\u062a \u0628\u0631\u062c\u0627\u0621 \u0627\u0644\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u062d\u062f \u0627\u0644\u0627\u0639\u0644\u0627\u0646\u0627\u062a \u0627\u0644\u0645\u0648\u062c\u0648\u062f\u0647.. \u0644\u062f\u0639\u0645\u0646\u0627 \u0644\u0643\u064a \u0646\u0633\u062a\u0645\u0631",r.a.createElement("br",null),"\u0627\u0636\u063a\u0637 \u0645\u0648\u0627\u0641\u0642 \u0644\u0644\u0625\u0633\u062a\u0645\u0631\u0627\u0631"),r.a.createElement("button",{className:"ad-request",onClick:this.closeAdsWindow},"\u0645\u0648\u0627\u0641\u0642")),r.a.createElement(g.a,{closeOnOverlayClick:!1,open:!!s,center:!0,onClose:this.closeWaitAlert,showCloseIcon:!1},r.a.createElement("h2",{style:{direction:"rtl",color:"#000"}},"\u0631\u0633\u0627\u0644\u0647"),r.a.createElement("div",{style:{color:"#000",fontSize:"20px",direction:"rtl"}},"\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 \u0627\u062d\u062f \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a \u0628\u0627\u0644\u0646\u0627\u0641\u0630\u0647 \u0627\u0644\u0623\u062e\u0631\u0649 \u0648\u0633\u062a\u062e\u062a\u0641\u064a \u0647\u0630\u0647 \u0627\u0644\u0631\u0633\u0627\u0644\u0647 \u0644\u0645\u0634\u0627\u0647\u062f\u0629 \u0627\u0644\u0642\u0646\u0648\u0627\u062a.",r.a.createElement("br",null))),r.a.createElement("div",{id:"countdown"}))}}]),t}(a.Component),T=function(e){function t(){return Object(s.a)(this,t),Object(l.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(c.a)(t,[{key:"render",value:function(){return r.a.createElement(p.a,null,r.a.createElement("div",{className:"container"},r.a.createElement(f.a,{exact:!0,path:"/",component:R})))}}]),t}(a.Component);document.body.classList.add("loading");var D=T;Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));if(localStorage.getItem("openCount"))try{localStorage.setItem("openCount",parseInt(localStorage.getItem("openCount"))+1)}catch(P){}else localStorage.setItem("openCount",1);n(174);var q=setInterval(function(){window.isReadyToShowApp&&(i.a.render(r.a.createElement(D,null),document.getElementById("root")),clearInterval(q))},100);"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})},50:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"initEntpointSettings",function(){return u}),n.d(t,"retreiveAPIEndpoint",function(){return p}),n.d(t,"retreiveAdsEndpoint",function(){return h}),n.d(t,"retreiveUpdateUrl",function(){return w}),n.d(t,"isUpdateRequired",function(){return v}),n.d(t,"retreiveAdminMessageEndpoint",function(){return b}),n.d(t,"retreiveAdminMessage",function(){return k}),n.d(t,"retreiveScriptEndpoint",function(){return C}),n.d(t,"retreiveScript",function(){return O}),n.d(t,"getFreshCo",function(){return I}),n.d(t,"getCo",function(){return j});var a=n(1),r=n.n(a),o=n(4),i=n(153),s="john_mcdonaldz@protonmail.com",c="SDFsf$rf345rfg43#%34tFs",l=n(172).decryptText;function u(){return d.apply(this,arguments)}function d(){return(d=Object(o.a)(r.a.mark(function t(){var n,a;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.endpoints){t.next=18;break}return console.log("getting global"),t.next=5,i.get("https://gist.githubusercontent.com/mAmged/7bd158db338c2398975f1f1a480bdac0/raw/");case 5:if(n=t.sent.data,console.log("encryptedEndpoint",n),"string"!=typeof n){t.next=14;break}return t.next=10,l(n);case 10:a=t.sent,e.endpoints=JSON.parse(a),t.next=15;break;case 14:"object"==typeof n&&(e.endpoints=l(n));case 15:case 18:return t.abrupt("return",e.endpoints);case 19:t.next=25;break;case 21:t.prev=21,t.t0=t.catch(0),alert("Err XS101 \u0639\u0630\u0631\u0627 \u0633\u064a\u062a\u0645 \u062d\u0644 \u0627\u0644\u0645\u0634\u0643\u0644\u0647 \u0641\u064a \u0627\u0633\u0631\u0639 \u0648\u0642\u062a"),console.log(t.t0,"failed initEntpointSettings");case 25:case"end":return t.stop()}},t,this,[[0,21]])}))).apply(this,arguments)}function p(){return f.apply(this,arguments)}function f(){return(f=Object(o.a)(r.a.mark(function t(){var n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("retreiveAPIEndpoint"),t.next=3,u();case 3:return console.log(">>>>>>>>",e.endpoints),n=e.endpoints.token,console.log("retreiveAPIEndpoint encryptedEndpoint=",n),t.abrupt("return",n);case 7:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}function h(){return m.apply(this,arguments)}function m(){return(m=Object(o.a)(r.a.mark(function t(){var n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u();case 3:return n=e.endpoints.ads,t.abrupt("return",n);case 7:t.prev=7,t.t0=t.catch(0),console.log("failed to retreiveAdsEndpoint ");case 10:case"end":return t.stop()}},t,this,[[0,7]])}))).apply(this,arguments)}function w(){return g.apply(this,arguments)}function g(){return(g=Object(o.a)(r.a.mark(function t(){var n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u();case 2:return n=e.endpoints.download,t.abrupt("return",n);case 4:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}function v(){return y.apply(this,arguments)}function y(){return(y=Object(o.a)(r.a.mark(function t(){var n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u();case 3:if(n=e.endpoints.latestVersion||0,console.log("global.endpoints.latestUpdate",e.endpoints.latestUpdate),!(parseInt(n)>1)){t.next=8;break}return console.log("update is required!!"),t.abrupt("return",!0);case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),console.log("failed isUpdateRequired");case 13:return t.abrupt("return",!1);case 14:case"end":return t.stop()}},t,this,[[0,10]])}))).apply(this,arguments)}function b(){return x.apply(this,arguments)}function x(){return(x=Object(o.a)(r.a.mark(function t(){var n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,u();case 3:return n=e.endpoints.msg,t.abrupt("return",n);case 7:t.prev=7,t.t0=t.catch(0),console.log("failed retreiveAdminMessage");case 10:case"end":return t.stop()}},t,this,[[0,7]])}))).apply(this,arguments)}function k(){return S.apply(this,arguments)}function S(){return(S=Object(o.a)(r.a.mark(function e(){var t,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u();case 3:return e.next=5,b();case 5:if(!(t=e.sent)){e.next=12;break}return console.log("msgEndpointmsgEndpointmsgEndpointmsgEndpoint",t),e.next=10,i.get(t);case 10:return n=e.sent.data,e.abrupt("return",n);case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.log("failed retreiveAdminMessage");case 17:case"end":return e.stop()}},e,this,[[0,14]])}))).apply(this,arguments)}function C(){return E.apply(this,arguments)}function E(){return(E=Object(o.a)(r.a.mark(function t(){var n;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("retreiveAdsEndpoint"),t.next=3,u();case 3:return n=e.endpoints.script,t.abrupt("return",n);case 5:case"end":return t.stop()}},t,this)}))).apply(this,arguments)}function O(){return A.apply(this,arguments)}function A(){return(A=Object(o.a)(r.a.mark(function e(){var t,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u();case 2:return e.next=4,C();case 4:if(!(t=e.sent)){e.next=10;break}return e.next=8,i.get(t);case 8:return n=e.sent.data,e.abrupt("return",n);case 10:return e.abrupt("return");case 11:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function I(){return N.apply(this,arguments)}function N(){return(N=Object(o.a)(r.a.mark(function t(){var n,a,u;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!T()){t.next=30;break}return console.log("GETTING FRESH TOKENS"),t.prev=2,t.next=5,p();case 5:if(a=t.sent,console.log("getFreshCo endpoint=",a),!a){t.next=17;break}return t.next=10,i.get(a);case 10:u=t.sent.data,console.log("getFreshCo got encCo encryptedCo=",u),console.log("getFreshCo decrypting co"),R(u),n="object"==typeof u?u:l(u),t.next=20;break;case 17:return t.next=19,new Promise(function(t,n){if(e.endpoints&&e.endpoints.usr&&e.endpoints.pass){var a=e.endpoints.bndk||"WebKitFormBoundary2ciMtBqEEkNMyKxh";fetch("https://proxies-beinmena.portail.alphanetworks.be/proxy/login",{credentials:"omit",headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36",accept:"application/json, text/plain, */*","content-type":"multipart/form-data; boundary=----".concat(a),"x-an-webservice-identitykey":e.endpoints.idk||"t1Th55UviStev8p2urOv4fOtraDaBr1f"},referrer:"https://connect.bein.net/sign-in",referrerPolicy:"no-referrer-when-downgrade",body:"------".concat(a,'\r\nContent-Disposition: form-data; name="email"\r\n\r\n').concat(s,"\r\n------").concat(a,'\r\nContent-Disposition: form-data; name="password"\r\n\r\n').concat(c,"\r\n------").concat(a,'\r\nContent-Disposition: form-data; name="captchaToken"\r\n\r\n\r\n------').concat(a,"--\r\n"),method:"POST",mode:"cors"}).then(function(e){return e.json()}).then(function(){var e=Object(o.a)(r.a.mark(function e(n){var a;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=n.result,console.log(JSON.stringify(a)),t(a.newAuthToken);case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()).catch(function(e){console.log("response errors",e),n("status failed"),alert("ERR CRD 9")})}else alert("ERR CRD14 \u0639\u0630\u0631\u0627 \u0633\u064a\u062a\u0645 \u062d\u0644 \u0627\u0644\u0645\u0634\u0643\u0644\u0647 \u0642\u0631\u064a\u0628\u0627")});case 19:n=t.sent;case 20:return console.log("getFreshCo set co",n),t.abrupt("return",n);case 24:t.prev=24,t.t0=t.catch(2),alert("ERR TK536"),console.log("failed getFreshCo",t.t0);case 28:t.next=32;break;case 30:return setTimeout(function(){},5e3),t.abrupt("return",l(localStorage.getItem("token")));case 32:case"end":return t.stop()}},t,this,[[2,24]])}))).apply(this,arguments)}function j(){return M.apply(this,arguments)}function M(){return(M=Object(o.a)(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,u();case 3:return e.next=5,I();case 5:return t=e.sent,window.token=t,e.abrupt("return",t);case 10:e.prev=10,e.t0=e.catch(0),console.log("failed getCo",e.t0);case 13:case"end":return e.stop()}},e,this,[[0,10]])}))).apply(this,arguments)}var R=function(e){console.log(" storing fresh token"),localStorage.setItem("token",e),localStorage.setItem("tokenTime",Date.now())},T=function(){var e=localStorage.getItem("tokenTime");return e?(console.log("time is defined"),console.log("Date.now()",Date.now()),Date.now()-parseInt(e)>108e5?(console.log(" token is expired"),!0):void console.log("token outage is fine")):(console.log("there is no stored token"),!0)}}.call(this,n(6))}},[[127,2,1]]]);
//# sourceMappingURL=https://gist.githubusercontent.com/mAmged/e12832ec1b0513e37dca195ca4c9df6b/raw/d5399525fbf7ab71e32a98dec79ad58a3d429b53/mainmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment