Guest User

Untitled

a guest
Mar 30th, 2018
798
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 241.76 KB | None | 0 0
  1. (function() {
  2. var c, g, l, m, p, q, r, t, u, v, x, y, A, B, C, aa, ba, ca, da, ea, D;
  3. c = function(a) {
  4. var b = typeof a;
  5. if ("object" == b)
  6. if (a) {
  7. if (a instanceof Array)
  8. return "array";
  9. if (a instanceof Object)
  10. return "object";
  11. var d = Object.prototype.toString.call(a);
  12. if ("[object Window]" == d)
  13. return "object";
  14. if ("[object Array]" == d && "number" == typeof a.length)
  15. return "array";
  16. if ("[object Function]" == d && "undefined" != typeof a.call)
  17. return "function"
  18. } else
  19. return "null";
  20. else if ("function" == b && "undefined" == typeof a.call)
  21. return "object";
  22. return b
  23. }
  24. ;
  25. g = function(a) {
  26. return null == a
  27. }
  28. ;
  29. l = function(a) {
  30. return "undefined" == typeof a
  31. }
  32. ;
  33. m = function(a) {
  34. return "function" == c(a)
  35. }
  36. ;
  37. p = function(a) {
  38. return "object" == c(a)
  39. }
  40. ;
  41. q = function(a) {
  42. var b = c(a);
  43. return "array" == b || "object" == b && "number" == typeof a.length
  44. }
  45. ;
  46. r = function(a) {
  47. return "number" == typeof a
  48. }
  49. ;
  50. t = function(a) {
  51. return "string" == typeof a
  52. }
  53. ;
  54. u = function(a) {
  55. return "boolean" == typeof a
  56. }
  57. ;
  58. v = function(a) {
  59. return Number(a) === a && 0 === a % 1
  60. }
  61. ;
  62. x = function(a) {
  63. return Number(a) === a && 0 !== a % 1
  64. }
  65. ;
  66. y = function() {
  67. return g(window.frameElement) && window.self == window.top ? !1 : !0
  68. }
  69. ;
  70. A = function(a, b) {
  71. return -1 != a.indexOf(b)
  72. }
  73. ;
  74. B = function(a, b) {
  75. return -1 != a.toLowerCase().indexOf(b.toLowerCase())
  76. }
  77. ;
  78. C = function(a, b) {
  79. try {
  80. var d = b.exec(a);
  81. return d && 1 <= d.length ? d[1] : ""
  82. } catch (e) {
  83. return ""
  84. }
  85. }
  86. ;
  87. aa = function() {
  88. var a = null;
  89. try {
  90. a = window.localStorage || null
  91. } catch (b) {}
  92. return a
  93. }
  94. ;
  95. ba = function() {
  96. var a = null;
  97. try {
  98. a = window.sessionStorage || null
  99. } catch (b) {}
  100. return a
  101. }
  102. ;
  103. ca = function() {
  104. var a = 0
  105. , b = 0;
  106. r(window.innerWidth) ? (a = window.innerWidth,
  107. b = window.innerHeight) : l(document.documentElement) || l(document.documentElement.clientWidth) && l(document.documentElement.clientHeight) ? l(document.body) || l(document.body.clientWidth) && l(document.body.clientHeight) || (a = document.body.clientWidth,
  108. heigth = document.body.clientHeight) : (a = document.documentElement.clientWidth,
  109. b = document.documentElement.clientHeight);
  110. return {
  111. width: a,
  112. height: b
  113. }
  114. }
  115. ;
  116. da = function() {
  117. var a = window.navigator;
  118. return l(a) || l(a.userAgent) ? "" : a.userAgent
  119. }
  120. ;
  121. ea = function() {
  122. return window.navigator
  123. }
  124. ;
  125. D = function(a) {
  126. return a.replace(/[a-zA-Z]/g, function(a) {
  127. return String.fromCharCode(("Z" >= a ? 90 : 122) >= (a = a.charCodeAt(0) + 13) ? a : a - 26)
  128. })
  129. }
  130. ;
  131. var E = ("undefined" !== typeof HTMLElement ? HTMLElement : Element).prototype;
  132. E.m = function(a) {
  133. l(this.classList) ? this.className = this.className + " " + a : this.classList.add(a)
  134. }
  135. ;
  136. E.o = function(a) {
  137. if (g(a) || l(a))
  138. this.className = "";
  139. else if (l(this.classList)) {
  140. for (var b = this.className.split(" "), d = "", e = 0; e < b.length; e++)
  141. a != b[e] && (d += b[e] + " ");
  142. this.className = d
  143. } else
  144. this.classList.remove(a)
  145. }
  146. ;
  147. E.D = function(a) {
  148. return l(this) || -1 === this.className.indexOf(a) ? !1 : !0
  149. }
  150. ;
  151. E.xd = function() {
  152. return !l(this) && m(this.getBoundingClientRect) ? this.getBoundingClientRect() : !1
  153. }
  154. ;
  155. E.ua = function(a) {
  156. l(this) || (this.style.width = a)
  157. }
  158. ;
  159. E.gb = function() {
  160. return l(this) ? 0 : this.offsetWidth
  161. }
  162. ;
  163. E.Qe = function(a) {
  164. l(this) || (this.style.height = a)
  165. }
  166. ;
  167. E.cc = function() {
  168. return l(this) ? 0 : this.offsetHeight
  169. }
  170. ;
  171. E.da = function() {
  172. return l(this) || l(this.offsetParent) || g(this.offsetParent) ? !1 : !0
  173. }
  174. ;
  175. E.s = function() {
  176. l(this) || (this.style.display = "none")
  177. }
  178. ;
  179. E.show = function() {
  180. l(this) || (this.style.display = "block")
  181. }
  182. ;
  183. E.Sa = function(a) {
  184. l(this) || (this.innerHTML = a)
  185. }
  186. ;
  187. function F(a) {
  188. if (!a)
  189. throw Error("Failed to create player.");
  190. if (!1 === this.$g())
  191. throw Error("Domain " + this.wd() + " is not supported.");
  192. window.focus();
  193. this.Tg = "1.40.18022601";
  194. this.b = "cda.Player";
  195. this.xf = this.Dc = this.uf = this.G = -1;
  196. this.Cc = this.de = !1;
  197. this.hd = 0;
  198. this.ae = this.sf = this.fe = this.vf = this.jd = !1;
  199. this.options = a;
  200. this.element = document.getElementById(this.Za(this.options, "id"));
  201. this.ba = new G;
  202. this.ub = new fa("local");
  203. this.v = this.view = new ga(this);
  204. this.view.gh(this.element);
  205. this.view.kj();
  206. this.eb = null;
  207. this.fullScreen = new ha(this.view,this.ba.bind(this, this.Uh),this.ba.bind(this, this.Vh));
  208. this.state = ia;
  209. this.event = new H;
  210. this.j = new ja;
  211. this.J = new na(this);
  212. this.video = this.view.video;
  213. this.w = this.view.w;
  214. this.contextMenu = this.view.contextMenu;
  215. this.C = null;
  216. this.tc = this.uc = -1;
  217. this.ta = null;
  218. this.Gb = !0;
  219. this.Hb = this.Gd = !1;
  220. this.ma = null;
  221. this.Zf = 7;
  222. this.Hd = "204px";
  223. this.yb = !1;
  224. this.Lb = null;
  225. this.Kc = !1;
  226. this.i = this.Cb = null;
  227. this.O = !1;
  228. this.Oe = this.duration = this.currentTime = -1;
  229. this.A = !1;
  230. this.id = null;
  231. this.loop = this.ended = this.autoplay = !1;
  232. this.L = this.Da = this.We = this.src = null;
  233. this.Qd = this.Vb = -1;
  234. this.c = null;
  235. this.h = {};
  236. this.X = !1;
  237. this.I = "play playing pause seeking seeked canplay canplaythrough loadstart loadeddata loadedmetadata error abort stalled suspend volumechange progress durationchange ratechange timeupdate waiting contextmenu click ended".split(" ");
  238. this.updating = !1;
  239. this.test = 0;
  240. this.Wb = null;
  241. this.rg = this.bb = this.va = this.ca = this.jb = !1;
  242. this.Hc = null;
  243. this.La = -1;
  244. this.Pc = !1;
  245. this.od = -1;
  246. this.poster = {
  247. Gj: "//static.cda.pl/v001/img/mobile/poster16x9.png"
  248. };
  249. this.volume = -1;
  250. this.Yb = this.Rf = !1;
  251. this.Xf();
  252. this.Ua(this.state.mb);
  253. this.Hh();
  254. if (null == this.C || this.src)
  255. this.Sb();
  256. else
  257. try {
  258. var b = this;
  259. window[this.C.client].videoGetLink(this.u.id, this.u.quality, this.u.ts, this.u.hash, {
  260. success: function(a) {
  261. "ok" == a.status && null != a.resp && (b.src = a.resp);
  262. b.Sb()
  263. },
  264. error: function() {
  265. b.Sb()
  266. }
  267. })
  268. } catch (d) {
  269. this.Sb()
  270. }
  271. }
  272. E = F.prototype = {};
  273. E.Sb = function() {
  274. (B(window.navigator.userAgent, "AppleTV") || this.j.Bd()) && this.video.setAttribute("x-webkit-airplay", "allow");
  275. var a = !1;
  276. try {
  277. var b = this.j.qe();
  278. 0 != b && 4 > parseInt(b) && (a = !0)
  279. } catch (h) {}
  280. if (!this.fullScreen.isEnabled() || this.j.wc() && this.j.xh() || this.j.Uf() || this.j.Mf() || this.j.wh() || this.j.zh() ||
  281. B(window.navigator.userAgent, "AppleTV") || this.j.Ch() || a) {
  282. if (this.video.s(),
  283. this.A = !0,
  284. this.video.controls = !0,
  285. this.view.o(this.view.w, "pb-controls"),
  286. this.view.o(this.view.w, "pb-video-full"),
  287. this.view.m(this.view.w, "pb-nocontrols"),
  288. this.view.m(this.view.w, "pb-video-native-light"),
  289. this.view.s(this.view.f(".pb-play-ico")),
  290. this.view.s(this.view.f(".pb-loader-ico")),
  291. this.view.s(this.view.f(".pb-video-click")),
  292. this.u.poster && (a = document.createElement("img"),
  293. a.src = this.u.poster,
  294. a.alt = "poster",
  295. this.view.Yd.insertBefore(a, this.view.Yd.firstChild),
  296. this.view.R.show()),
  297. this.h.Je = I(this.view.Yd, "click", this.Je, this),
  298. this.h.gc = I(this.view.R, "click", this.Je, this),
  299. !this.j.Ta()) {
  300. var d = this;
  301. setInterval(function() {
  302. d.G !== d.state.mb || !d.ended || d.O || d.loop || d.zf()
  303. }, 50)
  304. }
  305. } else {
  306. this.ij();
  307. this.jj();
  308. this.view.s(this.view.contextMenu);
  309. if ("function" === typeof J)
  310. this.A || (a = new J(this.w,this,this.fullScreen),
  311. null !== a && !1 !== a && (this.controls = a,
  312. this.controls.enable()));
  313. else
  314. throw Error("Failed to load controls class.");
  315. this.j.B() && this.view.m(this.view.w, "pb-mobile");
  316. this.j.Ta() && this.view.m(this.view.w, "pb-tv");
  317. this.j.Ed() && this.view.m(this.view.w, "pb-browser-opera");
  318. this.h.fg = I(this.cb, "dblclick", this.fg, this);
  319. this.h.dg = I(this.contextMenu, "click", this.dg, this);
  320. this.h.jg = I(this.view.Wi, "click", this.jg, this);
  321. this.h.lg = I(this.view.Xi, "click", this.lg, this);
  322. this.h.Bk = I(this.view.Vi, "click", this.kg, this);
  323. this.h.Ck = I(this.view.Zi, "click", this.kg, this);
  324. var d = this
  325. , e = "hidden"
  326. , a = function() {
  327. d.Pc = !l(window.document[e]) && window.document[e] ? !1 : !0
  328. };
  329. e in window.document ? window.document.addEventListener("visibilitychange", a) : (e = "mozHidden")in window.document ? window.document.addEventListener("mozvisibilitychange", a) : (e = "webkitHidden")in window.document ? window.document.addEventListener("webkitvisibilitychange", a) : (e = "msHidden")in window.document && window.document.addEventListener("msvisibilitychange", a);
  330. this.Pc = !l(window.document[e]) && window.document[e] ? !1 : !0;
  331. if (!this.j.Ta()) {
  332. var d = this
  333. , f = !1;
  334. setInterval(function() {
  335. d.Kc || null !== d.Cb || (d.G === d.state.U && (0 >= d.currentTime ? d.controls.F(!0) : (2 === d.networkState() && 3 > d.readyState() ? (d.controls.F(!0),
  336. !1 === d.jd && (d.tg(!0),
  337. d.Ug())) : (1 === d.networkState() || 3 <= d.readyState()) && d.controls.F(!1),
  338. d.video.currentTime < d.currentTime && d.Dc === d.state.cf && d.controls.F(!0),
  339. d.video.currentTime > d.currentTime && d.Dc === d.state.gf && d.controls.F(!0))),
  340. null !== d.controls && d.controls.yc());
  341. d.G !== d.state.mb || !d.ended || d.O || d.loop || d.zf();
  342. d.view.S.D("pb-playing") && d.G != d.state.U && 0 >= d.video.currentTime && !f && !d.controls.W.da() && null != d.i && (d.i.play(),
  343. f = !0)
  344. }, 50)
  345. }
  346. }
  347. if (window.Worker && !this.A) {
  348. try {
  349. var k = new Worker("/js/player_html5/player.worker.js")
  350. } catch (h) {
  351. k = null
  352. }
  353. null != k ? (this.eb = {
  354. id: 0,
  355. ke: {},
  356. setInterval: function(a, b, d) {
  357. this.id++;
  358. var e = this.id;
  359. this.ke[e] = {
  360. Df: a,
  361. context: d
  362. };
  363. k.postMessage({
  364. command: "interval:start",
  365. interval: b,
  366. id: e
  367. });
  368. return e
  369. },
  370. onMessage: function(a) {
  371. switch (a.data.message) {
  372. case "interval:tick":
  373. (a = this.ke[a.data.id]) && a.Df && a.Df.apply(a.context);
  374. break;
  375. case "interval:cleared":
  376. delete this.ke[a.data.id]
  377. }
  378. },
  379. clearInterval: function(a) {
  380. k.postMessage({
  381. command: "interval:clear",
  382. id: a
  383. })
  384. }
  385. },
  386. k.onmessage = this.eb.onMessage.bind(this.eb)) : this.eb = window
  387. } else
  388. this.eb = window;
  389. if (!this.j.Ta() || this.j.Nc())
  390. this.video.preload = "none";
  391. this.Yc();
  392. this.A || this.zd();
  393. this.log(this.b, "autoplay: " + this.autoplay);
  394. this.A ? (this.video.controls = !0,
  395. this.video.src = this.src,
  396. this.autoplay && (this.video.autoplay = !0),
  397. this.j.B() || this.j.Nc() || (this.video.load(),
  398. this.log(this.b, "video.load()"))) : this.autoplay ?
  399. this.j.B() ? this.Ad(this.c, 0) ? this.Bc(this.c, 0) : (this.j.B() || this.j.Nc() || (this.video.load(),
  400. this.log(this.b, "video.load()")),
  401. d = this,
  402. window.addEventListener("touchstart", function n() {
  403. d.A || d.controls.W.show();
  404. d.kb();
  405. this.removeEventListener("touchstart", n)
  406. }),
  407. this.J.la()) : this.Ad(this.c, 0) && !this.A ? this.Bc(this.c, 0) : (this.j.B() || this.j.Nc() || (this.video.load(),
  408. this.log(this.b, "video.load()")),
  409. this.J.la(),
  410. this.kb()) : this.Ad(this.c, 0) && !this.A ? this.Bc(this.c, 0) : (this.j.B() || this.j.Nc() || (this.video.load(),
  411. this.log(this.b, "video.load()")),
  412. this.J.la());
  413. d = this;
  414. window.onbeforeunload = function() {
  415. d.rg = !0
  416. }
  417. }
  418. ;
  419. E.Hh = function() {
  420. this.Za(this.options, "video") && (this.u = this.options.video);
  421. this.Za(this.options, "api") && (this.C = this.options.api);
  422. this.Za(this.options, "ads") && (this.c = this.options.ads);
  423. this.Za(this.options, "id") && (this.id = this.options.id);
  424. this.Za(this.options, "nextVideo") && (this.ta = this.options.nextVideo);
  425. this.Za(this.options, "autoplay") && (this.autoplay = this.options.autoplay);
  426. this.Za(this.options, "seekTo") && 0 < this.Za(this.options, "seekTo") && (this.Vb = this.options.seekTo);
  427. this.u.file && (-1 == this.u.file.indexOf("http") && (this.u.file = D(this.u.file)),
  428. -1 == this.u.file.indexOf(".mp4") && (this.u.file += ".mp4"),
  429. -1 < this.u.file.indexOf("adc.mp4") && (this.u.file = this.u.file.replace("adc.mp4", ".mp4")));
  430. this.u.file_cast && (-1 == this.u.file_cast.indexOf("http") && (this.u.file_cast = D(this.u.file_cast)),
  431. -1 == this.u.file_cast.indexOf(".mp4") && (this.u.file_cast += ".mp4"),
  432. -1 < this.u.file_cast.indexOf("adc.mp4") && (this.u.file_cast = this.u.file_cast.replace("adc.mp4", ".mp4")));
  433. this.u.file && (this.src = this.u.file);
  434. this.u.file_cast && (this.We = this.u.file_cast);
  435. g(this.u.manifest) || l(this.u.manifest) || (this.Da = this.u.manifest);
  436. this.u.hasOwnProperty("cast_available") && null != this.u.cast_available && null != this.J && this.J.hj(this.u.cast_available);
  437. this.u.poster && this.Se(this.u.poster);
  438. this.Za(this.options, "premium") && !0 === this.options.premium && this.view.m(this.view.Qc, "pb-logo-premium");
  439. this.Za(this.options, "cuePoints") && (this.Hc = this.options.cuePoints);
  440. if (!1 !== this.Eb("cda.player.ppst")) {
  441. var a = this.Eb("cda.player.ppst").split(":");
  442. if (this.options.video.id == a[0] && !0 === this.Be()) {
  443. this.Vb = Number(a[1]);
  444. try {
  445. document.cookie = "cda.player.ppst=; expires=Thu, 01 Jan 1970 00:00:01 GMT;"
  446. } catch (b) {}
  447. }
  448. }
  449. }
  450. ;
  451. E.zd = function() {
  452. this.log(this.b, "initEvents");
  453. if (!this.de) {
  454. for (var a in this.I)
  455. "" != this.I[a] && (this.h[this.I[a]] = "contextmenu" == this.I[a] ? I(this.view.bd, this.I[a], this.Md(this.I[a]), this) : I(this.video, this.I[a], this.Md(this.I[a]), this));
  456. this.de = !0
  457. }
  458. }
  459. ;
  460. E.Xc = function() {
  461. this.log(this.b, "removeEvents");
  462. for (var a in this.I)
  463. "" != this.I[a] && ("contextmenu" == this.I[a] ? K(this.view.bd, this.I[a], this.h[this.I[a]]) : K(this.video, this.I[a], this.h[this.I[a]]),
  464. this.h[this.I[a]] = null);
  465. this.de = !1
  466. }
  467. ;
  468. E.Md = function(a) {
  469. var b = null;
  470. switch (a) {
  471. case "play":
  472. b = this.zc;
  473. break;
  474. case "playing":
  475. b = this.Ie;
  476. break;
  477. case "pause":
  478. b = this.sb;
  479. break;
  480. case "seeking":
  481. b = this.pi;
  482. break;
  483. case "seeked":
  484. b = this.oi;
  485. break;
  486. case "canplay":
  487. b = this.De;
  488. break;
  489. case "canplaythrough":
  490. b = this.Sc;
  491. break;
  492. case "loadstart":
  493. b = this.He;
  494. break;
  495. case "loadeddata":
  496. b = this.Fe;
  497. break;
  498. case "loadedmetadata":
  499. b = this.Ge;
  500. break;
  501. case "error":
  502. b = this.Tc;
  503. break;
  504. case "abort":
  505. b = this.Ce;
  506. break;
  507. case "stalled":
  508. b = this.ui;
  509. break;
  510. case "suspend":
  511. b = this.yi;
  512. break;
  513. case "volumechange":
  514. b = this.Gi;
  515. break;
  516. case "progress":
  517. b = this.di;
  518. break;
  519. case "durationchange":
  520. b = this.Th;
  521. break;
  522. case "ratechange":
  523. b = this.mi;
  524. break;
  525. case "timeupdate":
  526. b = this.Vc;
  527. break;
  528. case "waiting":
  529. b = this.Wc;
  530. break;
  531. case "contextmenu":
  532. b = this.Qh;
  533. break;
  534. case "click":
  535. b = this.Ib;
  536. break;
  537. case "ended":
  538. b = this.Jd
  539. }
  540. return b
  541. }
  542. ;
  543. E.Za = function(a, b) {
  544. if (null !== a && "undefined" !== typeof a)
  545. return a.hasOwnProperty(b) ? a[b] : null;
  546. throw new TypeError("Nie mo\u017cna pobra\u0107 w\u0142a\u015bciwo\u015bci " + b + " obiektu " + a + " poniewa\u017c obiekt jest pusty.");
  547. }
  548. ;
  549. E.ua = function(a) {
  550. isNaN(Number(a)) || this.video.ua(a)
  551. }
  552. ;
  553. E.Qe = function(a) {
  554. isNaN(Number(a)) || this.video.Qe(a)
  555. }
  556. ;
  557. E.Se = function(a) {
  558. this.video.poster = a;
  559. this.video.setAttribute("poster", a)
  560. }
  561. ;
  562. E.Zj = function() {
  563. return this.video.poster || this.video.getAttribute("poster")
  564. }
  565. ;
  566. E.Td = function(a) {
  567. a && (this.video.canPlayType("video/mp4") ? (this.video.src = a,
  568. this.video.setAttribute("src", a)) : (a = this.fh(),
  569. !1 !== a && (a.show(),
  570. this.video.remove(),
  571. this.controls.W.s(),
  572. this.controls.R.s(),
  573. this.controls.controls.s())))
  574. }
  575. ;
  576. E.$ = function() {
  577. return this.video.currentTime || 0
  578. }
  579. ;
  580. E.ib = function(a) {
  581. if (this.xc(a) || this.Dd(a))
  582. this.currentTime = a,
  583. this.video.currentTime = a
  584. }
  585. ;
  586. E.H = function() {
  587. return this.video.duration || 0
  588. }
  589. ;
  590. E.te = function() {
  591. return this.video.getAttribute("src")
  592. }
  593. ;
  594. E.Ua = function(a) {
  595. this.G = a
  596. }
  597. ;
  598. E.ak = function() {
  599. return this.G
  600. }
  601. ;
  602. E.Re = function(a) {
  603. this.uf = a
  604. }
  605. ;
  606. E.Xj = function() {
  607. return this.uf
  608. }
  609. ;
  610. E.Sd = function(a) {
  611. this.Dc = a
  612. }
  613. ;
  614. E.$j = function() {
  615. return this.Dc
  616. }
  617. ;
  618. E.play = function(a) {
  619. this.log(this.b, "play");
  620. this.log(this.b, arguments);
  621. this.log(this.b, "autoplay: " + this.autoplay);
  622. window.MediaSource = window.MediaSource || window.WebKitMediaSource;
  623. if (!g(this.Da) && "" != this.Da && m(window.MediaSource) && null == this.L)
  624. try {
  625. this.L = dashjs.MediaPlayer().create();
  626. this.L.initialize(this.video, this.Da, !0);
  627. this.L.setStableBufferTime(10);
  628. this.L.setBufferToKeep(3600);
  629. this.L.setBufferPruningInterval(10);
  630. this.L.setBufferTimeAtTopQuality(600);
  631. this.L.setBufferTimeAtTopQualityLongForm(600);
  632. this.L.setManifestLoaderRetryAttempts(20);
  633. this.L.setFragmentLoaderRetryAttempts(120);
  634. this.L.setScheduleWhilePaused(!0);
  635. this.L.setFastSwitchEnabled(!0);
  636. this.L.setABRStrategy("abrThroughput");
  637. this.L.setAutoSwitchQuality(!0);
  638. this.L.getDebug().setLogToBrowserConsole(!1);
  639. var b = "BUFFER_EMPTY BUFFER_LOADED CAN_PLAY ERROR LOG MANIFEST_LOADED METRIC_ADDED METRIC_CHANGED METRIC_UPDATED METRICS_CHANGED PERIOD_SWITCH_COMPLETED PERIOD_SWITCH_STARTED PLAYBACK_ENDED PLAYBACK_ERROR PLAYBACK_METADATA_LOADED PLAYBACK_PAUSED PLAYBACK_PLAYING PLAYBACK_PROGRESS PLAYBACK_RATE_CHANGED PLAYBACK_SEEKED PLAYBACK_SEEKING PLAYBACK_STARTED PLAYBACK_TIME_UPDATED STREAM_INITIALIZED TEXT_TRACK_ADDED TEXT_TRACKS_ADDED".split(" ");
  640. if (this.options.hasOwnProperty("debug") && 1 == this.options.debug)
  641. for (var d = 0; d < b.length; d++)
  642. this.L.on(window.dashjs.MediaPlayer.events[b[d]], this.eg)
  643. } catch (e) {
  644. this.log(this.b, e)
  645. }
  646. this.A || this.controls.R.s();
  647. l(a) || !a || this.ca || (this.j.Ta() ? (this.video.play(),
  648. this.video.load(),
  649. this.Ua(this.state.U),
  650. this.log(this.b, "video.play()")) : this.video.load(),
  651. this.log(this.b, "video.load()"),
  652. this.jb = !0);
  653. if (!this.jb)
  654. if (this.ca)
  655. if (!this.hh && null != this.L)
  656. this.L.play(),
  657. this.hh = !0,
  658. this.Ua(this.state.U);
  659. else {
  660. if (this.autoplay || this.X || 0 < this.$())
  661. this.video.play(),
  662. this.Ua(this.state.U),
  663. this.log(this.b, "video.play()")
  664. }
  665. else if (!this.va)
  666. this.video.load(),
  667. this.log(this.b, "video.load()");
  668. else if (this.autoplay || this.X || 0 < this.$())
  669. this.video.play(),
  670. this.Ua(this.state.U),
  671. this.log(this.b, "video.play()");
  672. !1 === this.view.D(this.view.fa, "pb-video-active") && this.view.m(this.view.fa, "pb-video-active")
  673. }
  674. ;
  675. E.pause = function() {
  676. this.G === this.state.wb && this.video.paused || (this.video.pause(),
  677. this.Re(this.G),
  678. this.Ua(this.state.wb))
  679. }
  680. ;
  681. E.resume = function() {
  682. this.G !== this.state.U && (this.j.Ta() && this.video.pause(),
  683. this.video.play(),
  684. this.Re(this.G),
  685. this.Ua(this.state.U))
  686. }
  687. ;
  688. E.stop = function() {
  689. this.pause();
  690. this.video.src = "";
  691. this.Re(this.G);
  692. this.Ua(this.state.mb);
  693. this.view.D(this.view.fa, "pb-video-active") && this.view.o(this.view.fa, "pb-video-active")
  694. }
  695. ;
  696. E.Ma = function(a) {
  697. this.O || !v(a) && !x(a) || a > this.H() || (this.Pe(),
  698. this.controls.F(!0),
  699. a > this.$() ? this.Sd(this.state.cf) : this.Sd(this.state.gf),
  700. this.log(this.b, "seekTo: " + a),
  701. this.ib(a),
  702. this.G === this.state.mb && (this.Vb = a,
  703. 0 >= this.Vb && this.Sd(-1),
  704. this.A || this.controls.M()))
  705. }
  706. ;
  707. E.cj = function(a) {
  708. if (this.xc(a) || this.Dd(a))
  709. this.currentTime + a < this.H() ? this.Ma(this.currentTime + a) : this.Ma(this.H() - 1)
  710. }
  711. ;
  712. E.dj = function(a) {
  713. if (this.xc(a) || this.Dd(a))
  714. 0 > this.currentTime - a ? this.Ma(0) : this.Ma(this.currentTime - a)
  715. }
  716. ;
  717. E.qb = function() {
  718. var a = this.Fb("vol");
  719. return !g(a) && "" != a && (a = Number(a),
  720. 0 <= a && 100 >= a) ? a : !1
  721. }
  722. ;
  723. E.T = function(a) {
  724. a = Number(a);
  725. !1 !== this.qb() && !1 === this.Yb && (a = this.qb());
  726. if (!isNaN(a) && 0 <= a) {
  727. this.O && null !== this.view.f(".pb-ad-video-player") && (this.view.f(".pb-ad-video-player").volume = (a / 100).toFixed(2));
  728. this.volume = a.toFixed(2);
  729. this.Rf = 0 == this.volume ? !0 : !1;
  730. try {
  731. this.video.volume = (this.volume / 100).toFixed(2)
  732. } catch (b) {
  733. console.log(b)
  734. }
  735. this.aj(this.volume, this.Rf)
  736. }
  737. }
  738. ;
  739. E.aj = function(a, b) {
  740. if (!1 !== this.qb() && !1 === this.Yb)
  741. this.Yb = !0;
  742. else {
  743. var d = {
  744. volume: a,
  745. muted: b
  746. };
  747. this.ub.isEnabled() ? this.ub.set("cda-player-volume", d) : L.isEnabled() && L.set("cda-player-volume", JSON.stringify(d), 30)
  748. }
  749. }
  750. ;
  751. E.oh = function() {
  752. var a = null;
  753. this.ub.isEnabled() ? a = this.ub.get("cda-player-volume") : L.kh() && (a = JSON.parse(L.get("cda-player-volume")));
  754. return !g(a) && a.hasOwnProperty("volume") && a.hasOwnProperty("muted") ? a : !1
  755. }
  756. ;
  757. E.dk = function() {
  758. return this.video.jl
  759. }
  760. ;
  761. E.xk = function() {
  762. this.video.muted = !0
  763. }
  764. ;
  765. E.cl = function() {
  766. this.video.muted = !1
  767. }
  768. ;
  769. E.Gf = function() {
  770. var a = 0
  771. , b = this.duration;
  772. 60 > b ? a = 5 : 60 < b && 600 > b ? a = 15 : 600 < b && 1E3 > b ? a = 30 : 1E3 < b && 2E3 > b ? a = 60 : 2E3 < b && 3E3 > b ? a = 120 : 3E3 < b && (a = 240);
  773. return a
  774. }
  775. ;
  776. E.Ca = function() {
  777. return "undefined" !== document.lh && document.lh || "undefined" !== document.webkitIsFullScreen && document.webkitIsFullScreen || "undefined" !== document.mozFullScreen && document.mozFullScreen || "undefined" !== document.msFullscreenElement && document.msFullscreenElement ? !0 : !1
  778. }
  779. ;
  780. E.sb = function() {
  781. this.video.paused && (this.A || this.controls.qa());
  782. if (m(window.onPause) && !this.O)
  783. window.onPause()
  784. }
  785. ;
  786. E.zc = function() {
  787. this.view.s(this.view.contextMenu);
  788. -1 < this.duration && !this.A && this.controls.Fa(this.duration);
  789. this.video.paused || (this.A || this.controls.M(),
  790. this.ended && 12 > this.od && (this.ended = !1),
  791. null !== this.ma && this.Cg());
  792. if (m(window.onPlay) && !this.O)
  793. window.onPlay()
  794. }
  795. ;
  796. E.Ie = function() {
  797. if (-1 == this.La && 0 < this.u.duration && 33 != this.Jc() && !this.O)
  798. try {
  799. var a = this;
  800. window[this.C.client2].videoWatching(this.u.id, 0, this.u.duration, {
  801. success: function(b) {
  802. b && (a.La = 0);
  803. a.log(a.b, "saving watching seconds: " + a.La)
  804. }
  805. })
  806. } catch (b) {
  807. this.log(this.b, b)
  808. }
  809. !0 === this.jd && this.tg(!1);
  810. this.X && (this.X = !1);
  811. this.A || this.view.s(this.controls.W);
  812. this.G !== this.state.U && this.Ua(this.state.U)
  813. }
  814. ;
  815. E.mh = function(a) {
  816. for (var b = 0; b <= this.video.buffered.length - 1; b++)
  817. if (this.video.buffered.start(b) <= a && this.video.buffered.end(b) >= a)
  818. return b;
  819. return this.video.buffered.length - 1
  820. }
  821. ;
  822. E.pi = function() {
  823. this.zg(!0);
  824. this.Pe();
  825. this.Oe = this.$();
  826. 3 > this.networkState() && (this.A || this.controls.F(!0))
  827. }
  828. ;
  829. E.oi = function() {
  830. this.zg(!1);
  831. this.Sd(-1);
  832. this.Pe();
  833. -1 < this.La && (this.La = this.$());
  834. this.video.paused && this.resume();
  835. this.A || this.controls.F(!1)
  836. }
  837. ;
  838. E.He = function() {
  839. this.log(this.b, "Event", "onLoadstart");
  840. this.log(this.b, "videoLoaded: " + this.ca);
  841. this.log(this.b, "videoLoading: " + this.va);
  842. this.log(this.b, "startByClick: " + this.X);
  843. this.ca && (this.ca = !1);
  844. this.va = !0;
  845. this.X || this.autoplay ? this.controls.F(!0) : (this.controls.F(!1),
  846. this.controls.R.show())
  847. }
  848. ;
  849. E.Ge = function() {
  850. this.log(this.b, "Event", "onLoadedmetadata");
  851. this.log(this.b, "videoLoaded: " + this.ca);
  852. this.log(this.b, "videoLoading: " + this.va);
  853. this.log(this.b, "startByClick: " + this.X);
  854. l(this.video.duration) || (this.duration = isNaN(this.video.duration) ? 0 : this.video.duration);
  855. this.O || -1 < this.duration && !this.A && this.controls.Fa(this.duration);
  856. this.view.Tb(this.view.alert) && (this.view.s(this.view.alert),
  857. this.controls.enable());
  858. if (this.X || this.Vg || this.jb) {
  859. var a = this;
  860. null == this.Wb && (this.Wb = window.setTimeout(function() {
  861. window.clearTimeout(a.Wb);
  862. a.Wb = null;
  863. a.bb || a.Sc()
  864. }, 2E3))
  865. }
  866. }
  867. ;
  868. E.Fe = function() {
  869. this.log(this.b, "Event", "onLoadeddata");
  870. this.log(this.b, "videoLoaded: true");
  871. this.log(this.b, "videoLoading: false");
  872. this.log(this.b, "startByClick: " + this.X);
  873. this.ca = !0;
  874. this.va = !1;
  875. l(this.video.duration) || (this.duration = isNaN(this.video.duration) ? 0 : this.video.duration);
  876. this.O || -1 < this.duration && !this.A && this.controls.Fa(this.duration);
  877. this.view.Tb(this.view.alert) && (this.view.s(this.view.alert),
  878. this.controls.enable());
  879. if (this.X || this.Vg || this.jb) {
  880. var a = this;
  881. null == this.Wb && (this.Wb = window.setTimeout(function() {
  882. window.clearTimeout(a.Wb);
  883. a.Wb = null;
  884. a.bb || a.Sc()
  885. }, 2E3))
  886. }
  887. }
  888. ;
  889. E.Jd = function() {
  890. this.log(this.b, "Event", "onEnded");
  891. this.Ua(this.state.mb);
  892. this.ended = !0;
  893. if (-1 < this.La && (this.$() >= this.u.duration || this.$() == this.H()) && 0 < this.u.duration && 33 != this.Jc() && !this.O)
  894. try {
  895. this.La = this.u.duration,
  896. this.log(this.b, "saving watching seconds: " + this.La),
  897. window[this.C.client2].videoWatching(this.u.id, this.La, this.u.duration)
  898. } catch (a) {
  899. this.log(this.b, a)
  900. }
  901. this.loop ? this.play() : this.Ad(this.c, -1) && !this.A ? this.Bc(this.c, -1) : this.$c()
  902. }
  903. ;
  904. E.Tc = function(a) {
  905. window.MediaSource = window.MediaSource || window.WebKitMediaSource;
  906. if (!(!g(this.Da) && "" != this.Da && m(window.MediaSource) || this.rg || this.O)) {
  907. this.log(this.b, "Event", "onError");
  908. if (!g(a) && !l(a.target)) {
  909. this.log(this.b, "networkState: " + a.target.networkState);
  910. this.log(this.b, "readyState: " + a.target.readyState);
  911. try {
  912. if (2 == a.target.networkState && 4 == a.target.readyState && !this.controls.W.da()) {
  913. this.video.play();
  914. this.log(this.b, "video.play()");
  915. return
  916. }
  917. } catch (b) {
  918. this.log(this.b, "error: " + b)
  919. }
  920. }
  921. if (3 === a.target.networkState) {
  922. if (this.view.show(this.view.alert),
  923. this.view.jc(this.view.ac, "404 Not found: Nie znaleziono podanego wideo"),
  924. this.A || this.controls.disable(),
  925. !l(this.C.client) && !g(this.C.client))
  926. try {
  927. window[this.C.client].fileNotFound(this.src, {
  928. sj: console.log,
  929. error: console.log
  930. })
  931. } catch (b) {}
  932. } else {
  933. a = -1;
  934. if (null != this.video.error && "undefined" !== typeof this.video.error.code) {
  935. a = this.video.error.code;
  936. if (3 == a)
  937. return;
  938. this.A || this.controls.disable()
  939. }
  940. if (-1 < a)
  941. switch (a) {
  942. case 1:
  943. 100 > this.video.currentTime && (this.view.show(this.view.alert),
  944. this.view.jc(this.view.ac, "Wyst\u0105pi\u0142 b\u0142\u0105d podczas odtwarzania. Od\u015bwie\u017c stron\u0119 i spr\u00f3buj ponownie."));
  945. break;
  946. case 2:
  947. 100 > this.video.currentTime && (this.view.show(this.view.alert),
  948. this.view.jc(this.view.ac, "Wyst\u0105pi\u0142 b\u0142\u0105d podczas odtwarzania. Od\u015bwie\u017c stron\u0119 i spr\u00f3buj ponownie."));
  949. break;
  950. case 3:
  951. this.view.show(this.view.alert);
  952. this.view.jc(this.view.ac, "Wyst\u0105pi\u0142 b\u0142\u0105d przegl\u0105darki. Od\u015bwie\u017c stron\u0119 i spr\u00f3buj ponownie.");
  953. break;
  954. case 4:
  955. this.view.show(this.view.alert),
  956. this.view.jc(this.view.ac, "Format wideo jest nieobs\u0142ugiwany.")
  957. }
  958. }
  959. }
  960. }
  961. ;
  962. E.ui = function(a) {
  963. this.log(this.b, "Event", "onStalled");
  964. this.log(this.b, "networkState: " + a.target.networkState);
  965. this.log(this.b, "readyState: " + a.target.readyState);
  966. return !1
  967. }
  968. ;
  969. E.Ce = function() {}
  970. ;
  971. E.yi = function() {}
  972. ;
  973. E.De = function() {
  974. this.log(this.b, "Event", "onCanplay");
  975. this.log(this.b, "startLoading: " + this.jb);
  976. this.log(this.b, "videoCanPlay: " + this.bb);
  977. this.log(this.b, "startByClick: " + this.X);
  978. this.va && (this.va = !1);
  979. this.A || !this.j.B() && this.O || (this.autoplay || (this.bb = !0),
  980. this.jb && (this.jb = !1),
  981. this.X && (this.X = !1),
  982. g(this.video) || !this.video.paused || !this.controls.W.da() && this.bb && this.G != this.state.U || (this.bb = !0,
  983. this.j.B() ? (this.Ua(this.state.wb),
  984. this.controls.qa(!0),
  985. this.controls.F(!1)) : (this.log(this.b, "video.play()"),
  986. this.video.play())))
  987. }
  988. ;
  989. E.Sc = function(a) {
  990. this.log(this.b, "Event", "onCanplaythrough");
  991. this.log(this.b, "startLoading: " + this.jb);
  992. this.log(this.b, "startByClick: " + this.X);
  993. this.log(this.b, "videoCanPlay: " + this.bb);
  994. g(a) || l(a.target) || (this.log(this.b, "networkState: " + a.target.networkState),
  995. this.log(this.b, "readyState: " + a.target.readyState));
  996. this.va && (this.va = !1);
  997. this.A || !this.j.B() && this.O || (this.autoplay || (this.bb = !0),
  998. this.jb && (this.jb = !1),
  999. this.X && (this.X = !1),
  1000. g(this.video) || !this.video.paused || !this.controls.W.da() && this.bb && this.G != this.state.U || (this.bb = !0,
  1001. this.j.B() ? (this.Ua(this.state.wb),
  1002. this.controls.qa(!0),
  1003. this.controls.F(!1)) : (this.log(this.b, "video.play()"),
  1004. this.video.play())))
  1005. }
  1006. ;
  1007. E.Gi = function() {}
  1008. ;
  1009. E.mi = function() {}
  1010. ;
  1011. E.Th = function() {}
  1012. ;
  1013. E.Wc = function() {
  1014. try {
  1015. var a = (new Date).getHours();
  1016. !this.fe && 0 == this.Be() && 16 <= a && 2 <= this.hd && !1 === this.vf && (this.vf = !0,
  1017. this.view.Pd.o("pb-context-wrapp-hide"),
  1018. this.view.Pd.m("pb-context-wrapp-show"))
  1019. } catch (b) {}
  1020. if (m(window.onWaiting) && !this.O)
  1021. window.onWaiting()
  1022. }
  1023. ;
  1024. E.ij = function() {
  1025. 0 < this.contextMenu.offsetHeight && -1 === this.tc && (this.tc = this.contextMenu.offsetHeight)
  1026. }
  1027. ;
  1028. E.jj = function() {
  1029. 0 < this.contextMenu.offsetWidth && -1 === this.uc && (this.uc = this.contextMenu.offsetWidth)
  1030. }
  1031. ;
  1032. E.Qh = function(a) {
  1033. a = a || window.event;
  1034. var b, d;
  1035. "block" == this.view.contextMenu.style.display ? this.view.s(this.view.contextMenu) : (0 < this.view.contextMenu.offsetHeight && -1 === this.tc && (this.tc = this.view.contextMenu.offsetHeight),
  1036. 0 < this.view.contextMenu.offsetWidth && -1 === this.uc && (this.uc = this.view.contextMenu.offsetWidth),
  1037. b = this.uc + a.offsetX > this.view.cb.offsetWidth ? this.view.cb.offsetWidth - this.uc : a.offsetX,
  1038. d = this.tc + a.offsetY > this.view.cb.offsetHeight ? this.view.cb.offsetHeight - this.tc : a.offsetY,
  1039. this.view.contextMenu.style.top = d + "px",
  1040. this.view.contextMenu.style.left = b + "px",
  1041. this.view.show(this.view.contextMenu));
  1042. a.preventDefault()
  1043. }
  1044. ;
  1045. E.dg = function(a) {
  1046. switch (parseInt(a.target.parentNode.getAttribute("item"))) {
  1047. case 1:
  1048. a = document.createElement("div");
  1049. var b = document.createRange(), d;
  1050. a.style.position = "absolute";
  1051. a.style.left = "-1000px";
  1052. a.style.top = "-1000px";
  1053. a.innerHTML = location.href;
  1054. document.body.appendChild(a);
  1055. b.selectNodeContents(a);
  1056. d = window.getSelection();
  1057. d.removeAllRanges();
  1058. d.addRange(b);
  1059. try {
  1060. document.execCommand("copy")
  1061. } catch (e) {}
  1062. delete a;
  1063. break;
  1064. case 2:
  1065. a = document.createElement("input");
  1066. b = "";
  1067. this.Lc() ? b = "http://ebd.cda.pl/620x368/" + this.u.id : this.Mc() && (b = window.location.origin + window.location.pathname + "?iframe");
  1068. a.style.position = "absolute";
  1069. a.style.left = "-1000px";
  1070. a.style.top = "-1000px";
  1071. a.type = "text";
  1072. a.setAttribute("value", '<iframe src="' + b + '" width="620" height="368" style="border:none;" scrolling="no" allowfullscreen name="v2"></iframe>');
  1073. document.body.appendChild(a);
  1074. a.select();
  1075. try {
  1076. document.execCommand("copy")
  1077. } catch (e) {}
  1078. delete a;
  1079. break;
  1080. case 3:
  1081. this.G === this.state.U && this.pause(),
  1082. b = "",
  1083. this.Lc() ? b = "http://www.cda.pl/kontakt" : this.Mc() && (b = "http://superfilm.pl/kontakt"),
  1084. "" != b && window.open(b, "_blank").focus()
  1085. }
  1086. this.view.Tb(this.view.contextMenu) && this.view.s(this.view.contextMenu)
  1087. }
  1088. ;
  1089. E.di = function() {}
  1090. ;
  1091. E.Vc = function() {
  1092. 2 === this.video.networkState && 3 > this.video.readyState ? this.controls.F(!0) : (1 === this.video.networkState || 3 <= this.video.readyState) && this.controls.F(!1);
  1093. this.G === this.state.U && this.controls.R.da() && this.controls.M(!0);
  1094. 0 < this.Vb && -1 === this.xf && 0 < this.$() && this.Vb < this.H() && (this.Ma(this.Vb),
  1095. this.xf = this.Vb);
  1096. if (-1 < this.Qd) {
  1097. var a = this.Qd / 100 * this.H();
  1098. 0 < a && this.Ma(a);
  1099. this.Qd = -1
  1100. }
  1101. a = 600;
  1102. this.u.hasOwnProperty("duration") && null != this.u.duration && 0 < this.u.duration && 600 >= this.u.duration && (a = 60);
  1103. this.$() >= a && !1 === this.Cc && this.Ui();
  1104. if (!g(this.Hc))
  1105. for (a = 0; a < this.Hc.length; a++) {
  1106. var b = this.Hc[a];
  1107. !g(b) && b.hasOwnProperty("time") && b.hasOwnProperty("id") && this.$() >= b.time && !b.fire && (this.Hc[a].fire = !0,
  1108. !this.Mc() || l(this.C.client) || g(this.C.client) || window[this.C.client].pixel(b.id, "pc", {
  1109. sj: console.log,
  1110. error: console.log
  1111. }))
  1112. }
  1113. if (-1 < this.La && this.$() >= this.La + 10 && 0 < this.u.duration && 33 != this.Jc() && !this.O)
  1114. try {
  1115. this.La = Math.round(this.$()),
  1116. this.log(this.b, "saving watching seconds: " + this.La),
  1117. window[this.C.client2].videoWatching(this.u.id, this.La, this.u.duration)
  1118. } catch (d) {
  1119. this.log(this.b, d)
  1120. }
  1121. }
  1122. ;
  1123. E.Uh = function() {
  1124. if (!this.A) {
  1125. var a = this.fullScreen.Ca();
  1126. a || g(this.fullScreen.element()) || (a = !0);
  1127. this.controls.Ca = a;
  1128. this.controls.mj(a);
  1129. a ? this.controls.wg(!0) : (this.controls.wg(!1),
  1130. this.A || this.controls.Ue())
  1131. }
  1132. }
  1133. ;
  1134. E.Vh = function() {
  1135. this.A || (this.view.fa.D("pb-video-fullscreen") && !this.fullScreen.is() && (this.view.fa.o("pb-video-fullscreen"),
  1136. this.A || this.controls.Ue()),
  1137. this.controls.lj())
  1138. }
  1139. ;
  1140. E.Ib = function() {
  1141. if (this.view.Tb(this.view.contextMenu))
  1142. this.view.s(this.view.contextMenu);
  1143. else if (null === this.ma)
  1144. if (this.j.B() && !this.A && this.controls.Ca)
  1145. if (this.controls.w.D("pb-nocontrols")) {
  1146. this.controls.w.o("pb-nocontrols");
  1147. var a = this;
  1148. clearTimeout(this.controls.Z);
  1149. this.controls.Z = setTimeout(function() {
  1150. a.controls.w.m("pb-nocontrols")
  1151. }, 3E3)
  1152. } else
  1153. this.G === this.state.U ? (this.pause(),
  1154. clearTimeout(this.controls.Z),
  1155. this.controls.Z = null) : this.G === this.state.wb && (this.resume(),
  1156. a = this,
  1157. clearTimeout(this.controls.Z),
  1158. this.controls.Z = setTimeout(function() {
  1159. a.controls.w.m("pb-nocontrols")
  1160. }, 3E3));
  1161. else
  1162. this.G === this.state.U ? this.pause() : this.G === this.state.wb && this.resume()
  1163. }
  1164. ;
  1165. E.pg = function() {}
  1166. ;
  1167. E.fg = function() {
  1168. null === this.ma && this.controls.Kd()
  1169. }
  1170. ;
  1171. E.Yc = function() {
  1172. this.log(this.b, "setVideoFile");
  1173. if (!this.src) {
  1174. this.ca = !1;
  1175. this.view.show(this.view.Qc);
  1176. this.A || this.controls.ic(0);
  1177. window.MediaSource = window.MediaSource || window.WebKitMediaSource;
  1178. if (g(this.Da) || "" == this.Da || !m(window.MediaSource))
  1179. this.view.show(this.view.alert),
  1180. this.view.jc(this.view.ac, "Aby obejrze\u0107 ten materia\u0142 zaaktualizuj lub zainstaluj najnowsz\u0105 przegl\u0105dark\u0119."),
  1181. this.A || this.controls.disable();
  1182. this.A || this.v.show(this.controls.a)
  1183. } else if (this.te() !== this.src) {
  1184. this.log(this.b, "setSrc");
  1185. this.ca = !1;
  1186. this.view.show(this.view.Qc);
  1187. this.A || this.controls.ic(0);
  1188. window.MediaSource = window.MediaSource || window.WebKitMediaSource;
  1189. if (g(this.Da) || "" == this.Da || !m(window.MediaSource))
  1190. this.src ? (this.Td(this.src),
  1191. this.video.pause()) : (this.view.show(this.view.alert),
  1192. this.view.jc(this.view.ac, "Aby obejrze\u0107 ten materia\u0142 zaaktualizuj lub zainstaluj najnowsz\u0105 przegl\u0105dark\u0119."),
  1193. this.A || this.controls.disable());
  1194. this.A || this.v.show(this.controls.a)
  1195. }
  1196. this.log(this.b, "autoplay: " + this.autoplay)
  1197. }
  1198. ;
  1199. E.eg = function(a) {
  1200. for (var b in a)
  1201. "object" != typeof a[b] && console.log("cda.Player.DashJS " + b + ": " + a[b]);
  1202. for (b in a)
  1203. if ("object" == typeof a[b])
  1204. for (name2 in console.log("cda.Player.DashJS " + b + ":"),
  1205. a[b])
  1206. console.log("cda.Player.DashJS " + name2 + ": " + JSON.stringify(a[b][name2]))
  1207. }
  1208. ;
  1209. E.kb = function() {
  1210. this.log(this.b, "startVideo");
  1211. m(window.startVideo) && window.startVideo();
  1212. window.MediaSource = window.MediaSource || window.WebKitMediaSource;
  1213. if (!g(this.Da) && "" != this.Da && m(window.MediaSource))
  1214. try {
  1215. this.L = dashjs.MediaPlayer().create();
  1216. this.L.initialize(this.video, this.Da, !0);
  1217. this.L.setStableBufferTime(10);
  1218. this.L.setBufferToKeep(3600);
  1219. this.L.setBufferPruningInterval(10);
  1220. this.L.setBufferTimeAtTopQuality(600);
  1221. this.L.setBufferTimeAtTopQualityLongForm(600);
  1222. this.L.setManifestLoaderRetryAttempts(20);
  1223. this.L.setFragmentLoaderRetryAttempts(120);
  1224. this.L.setScheduleWhilePaused(!0);
  1225. this.L.setFastSwitchEnabled(!0);
  1226. this.L.setAutoSwitchQuality(!0);
  1227. this.L.setABRStrategy("abrThroughput");
  1228. this.L.getDebug().setLogToBrowserConsole(!1);
  1229. var a = "BUFFER_EMPTY BUFFER_LOADED CAN_PLAY ERROR LOG MANIFEST_LOADED METRIC_ADDED METRIC_CHANGED METRIC_UPDATED METRICS_CHANGED PERIOD_SWITCH_COMPLETED PERIOD_SWITCH_STARTED PLAYBACK_ENDED PLAYBACK_ERROR PLAYBACK_METADATA_LOADED PLAYBACK_PAUSED PLAYBACK_PLAYING PLAYBACK_PROGRESS PLAYBACK_RATE_CHANGED PLAYBACK_SEEKED PLAYBACK_SEEKING PLAYBACK_STARTED PLAYBACK_TIME_UPDATED STREAM_INITIALIZED TEXT_TRACK_ADDED TEXT_TRACKS_ADDED".split(" ");
  1230. if (this.options.hasOwnProperty("debug") && 1 == this.options.debug)
  1231. for (var b = 0; b < a.length; b++)
  1232. this.L.on(window.dashjs.MediaPlayer.events[a[b]], this.eg)
  1233. } catch (d) {
  1234. this.log(this.b, d),
  1235. this.L = null,
  1236. this.src && this.te() !== this.src && this.Yc(),
  1237. this.play(!0)
  1238. }
  1239. else
  1240. this.src && this.te() !== this.src && this.Yc(),
  1241. this.jb ? this.play() : this.play(!0),
  1242. this.bb = this.X = !0,
  1243. this.G != this.state.U && (this.video.play(),
  1244. this.Ua(this.state.U));
  1245. this.A || (this.controls.Fa(this.H()),
  1246. this.controls.enable());
  1247. this.O && (this.O = !1);
  1248. this.log(this.b, "autoplay: " + this.autoplay)
  1249. }
  1250. ;
  1251. E.fh = function() {
  1252. var a = this.w.querySelector(".pb-video-player-noise");
  1253. if ("undefined" !== a && a && (a.width = this.cb.gb() ? this.cb.gb() : 0,
  1254. a.height = this.cb.cc() ? this.cb.cc() : 0,
  1255. 0 < a.gb() && 0 < a.cc())) {
  1256. for (var b = a.getContext("2d"), d = b.createImageData(b.canvas.width, b.canvas.height), e = new Uint32Array(d.data.buffer), f = e.length, k = 0; k < f; )
  1257. e[k++] = (255 * Math.random() | 0) << 24;
  1258. b.putImageData(d, 0, 0);
  1259. return a
  1260. }
  1261. return !1
  1262. }
  1263. ;
  1264. E.readyState = function() {
  1265. return this.video.readyState
  1266. }
  1267. ;
  1268. E.networkState = function() {
  1269. return this.video.networkState
  1270. }
  1271. ;
  1272. E.Ef = function() {
  1273. var a = navigator.userAgent.toLowerCase();
  1274. return -1 !== a.indexOf("iphone") || -1 !== a.indexOf("ipod") || -1 !== a.indexOf("ipad") ? "ios" : -1 !== a.indexOf("android") ? "android" : "pc"
  1275. }
  1276. ;
  1277. E.qe = function() {
  1278. var a = navigator.userAgent.match(/Android\s([0-9\.]*)/);
  1279. return a ? a[1] : !1
  1280. }
  1281. ;
  1282. E.Tj = function() {
  1283. if (/iP(hone|od|ad)/.test(navigator.userAgent)) {
  1284. var a = navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);
  1285. return (parseInt(a[1], 10) + "." + parseInt(a[2], 10) + "." + parseInt(a[3] || 0, 10)).toString()
  1286. }
  1287. }
  1288. ;
  1289. E.ik = function() {
  1290. var a = navigator.userAgent;
  1291. return -1 < a.indexOf("Mozilla/5.0") && -1 < a.indexOf("Android ") && -1 < a.indexOf("Version/") && -1 < a.indexOf("AppleWebKit")
  1292. }
  1293. ;
  1294. E.Ac = function(a, b, d, e) {
  1295. var f = new Date;
  1296. null != d && (e ? f.setHours(f.getHours() + d) : f.setDate(f.getDate() + d));
  1297. try {
  1298. document.cookie = a + "=" + escape(b) + (null == d ? "" : ";expires=" + f.toGMTString())
  1299. } catch (k) {}
  1300. }
  1301. ;
  1302. E.Eb = function(a) {
  1303. var b, d, e;
  1304. try {
  1305. e = document.cookie.split(";")
  1306. } catch (k) {
  1307. e = []
  1308. }
  1309. for (var f = 0; f < e.length; f++)
  1310. if (b = e[f].substr(0, e[f].indexOf("=")),
  1311. d = e[f].substr(e[f].indexOf("=") + 1),
  1312. b = b.replace(/^\s+|\s+$/g, ""),
  1313. b == a)
  1314. return unescape(d);
  1315. return !1
  1316. }
  1317. ;
  1318. E.Cd = function(a) {
  1319. return !1 !== this.Eb(a) ? !0 : !1
  1320. }
  1321. ;
  1322. E.Xf = function() {
  1323. var a = document.getElementsByTagName("head")[0] || document.head || document.documentElement
  1324. , b = document.createElement("script");
  1325. b.async = !0;
  1326. b.type = "text/javascript";
  1327. b.src = "m.cda.pl" == window.location.host ? "//m.cda.pl/rek2-adv.js" : "//www.cda.pl/rek2-adv.js";
  1328. a.insertBefore(b, a.firstChild);
  1329. a.appendChild(b);
  1330. this.sf = !0
  1331. }
  1332. ;
  1333. E.If = function() {
  1334. this.sf || this.Xf();
  1335. this.j.B() && (this.ae = !1);
  1336. "undefined" === typeof window.adblock && (this.ae = !0);
  1337. return this.ae
  1338. }
  1339. ;
  1340. E.log = function(a, b, d) {
  1341. 2 > arguments.length || this.options.hasOwnProperty("debug") && 1 == this.options.debug && (3 === arguments.length ? console.log(a + "[" + b + "]: " + JSON.stringify(d)) : 2 === arguments.length && console.log(a + ": " + JSON.stringify(b)))
  1342. }
  1343. ;
  1344. E.Af = function() {
  1345. var a = this.w.getBoundingClientRect()
  1346. , b = window.innerHeight || document.documentElement.clientHeight
  1347. , d = window.innerWidth || document.documentElement.clientWidth;
  1348. return 0 < a.bottom && a.top < b && 0 < a.right && a.left < d || 0 === document.body.scrollTop
  1349. }
  1350. ;
  1351. E.yk = function() {
  1352. var a = this
  1353. , b = setInterval(function() {
  1354. a.Gb = "undefined" !== typeof window.nextVideoEnabled && window.nextVideoEnabled ? !0 : !1;
  1355. a.Gb && a.ended && null === a.ma && !1 === a.Hb ? (clearInterval(b),
  1356. b = null,
  1357. a.$c()) : a.ended || (clearInterval(b),
  1358. b = null)
  1359. }, 50)
  1360. }
  1361. ;
  1362. E.$c = function() {
  1363. this.log(this.b, "startNextVideo");
  1364. this.O && (this.O = !1);
  1365. if (this.loop)
  1366. this.play();
  1367. else if (this.A || (this.video.paused ? this.controls.qa(!0) : this.controls.qa()),
  1368. this.j.B() && (this.bb = this.ca = !1),
  1369. this.ta)
  1370. if (this.Lc())
  1371. if (this.le(),
  1372. this.Gb) {
  1373. this.A || this.controls.isEnabled() && this.controls.disable();
  1374. this.view.fc.show();
  1375. this.view.Yf.href = this.se();
  1376. this.view.Yf.title = this.ta.title;
  1377. this.view.Kh.innerHTML = this.ta.title;
  1378. this.view.Jh.src = this.ta.thumb;
  1379. this.view.ec.setAttribute("stroke-dashoffset", this.Hd);
  1380. this.A && (this.view.s(this.view.f(".pb-next-timer-wrapper")),
  1381. this.view.show(this.view.f(".pb-ie-next-loader")),
  1382. this.view.f(".pb-ie-next-loader-progress").style.width = "0%");
  1383. var a = this
  1384. , b = 1E3 * this.Zf / parseInt(this.Hd);
  1385. this.A && (b = 1E3 * this.Zf / 100);
  1386. this.view.Ih.addEventListener("click", function() {
  1387. a.A || a.controls.enable();
  1388. a.Gb = !1;
  1389. a.Gd = !0;
  1390. a.Hb = !1;
  1391. a.controls.F(!1);
  1392. a.A || (a.video.paused ? a.controls.qa(!0) : a.controls.qa())
  1393. }, !1);
  1394. null === this.ma && (this.ma = this.eb.setInterval(function() {
  1395. 0 == a.Gb && a.Cg();
  1396. if (a.Af()) {
  1397. if (a.A ? 100 > parseInt(a.view.f(".pb-ie-next-loader-progress").style.width) ? a.view.f(".pb-ie-next-loader-progress").style.width = parseInt(a.view.f(".pb-ie-next-loader-progress").style.width) + 1 + "%" : (a.eb.clearInterval(a.ma),
  1398. a.ma = null) : 0 < parseInt(a.view.ec.getAttribute("stroke-dashoffset")) ? a.view.ec.setAttribute("stroke-dashoffset", parseInt(a.view.ec.getAttribute("stroke-dashoffset")) - 1 + "px") : (a.eb.clearInterval(a.ma),
  1399. a.ma = null),
  1400. 0 == parseInt(a.view.ec.getAttribute("stroke-dashoffset")) || 100 === parseInt(a.view.f(".pb-ie-next-loader-progress").style.width))
  1401. a.fullScreen.fb(),
  1402. a.Hb || (a.Hb = !0,
  1403. a.j.Ta() ? window.location.replace(a.se()) : window.location.href = a.se())
  1404. } else
  1405. a.A ? "0%" !== a.view.f(".pb-ie-next-loader-progress").style.width && (a.view.f(".pb-ie-next-loader-progress").style.width = "0%") : a.view.ec.getAttribute("stroke-dashoffset") !== a.Hd && a.view.ec.setAttribute("stroke-dashoffset", a.Hd);
  1406. a.le()
  1407. }, b))
  1408. } else
  1409. this.controls.F(!1);
  1410. else if (this.Mc()) {
  1411. this.view.fc.s();
  1412. this.view.fc.innerHTML = '<div class="pb-nxt-loader-wrapper"><div class="pb-nxt-loader-wrapper-background"></div> <div class="pb-nxt-loader"><div class="pb-nxt-wrapper-preview-next-video"><div class="pb-nxt-preview-next-video-rot"><div class="pb-nxt-preview-next-video"><img src="" title="" alt=""></div></div><div class="pb-nxt-preview-video-title">Nast\u0119pne video: <a href=""><h4></h4></a></div></div><div class="pb-nxt-loader-area"></div><a class="pb-nxt-loader-content" href=""><div class="pb-nxt-loader-content-circle"><div class="pb-nxt-loader-progress"></div></div><div class="pb-nxt-loader-play"></div></a><a class="btn btn-dark btn-next-cancel pb-btn-cancel" href="" style="position: absolute;top: 87px;left: -12px;width: 70px;padding: 5px 0;">Anuluj</a> </div></div>';
  1413. this.view.fc.show();
  1414. var b = this.view.fc
  1415. , d = this.ta.url
  1416. , e = this.view.sa(".pb-nxt-preview-video-title h4", b)
  1417. , f = this.view.sa(".pb-nxt-preview-video-title a", b)
  1418. , k = this.view.sa(".pb-nxt-loader-content", b)
  1419. , h = this.view.sa(".pb-nxt-preview-next-video img", b)
  1420. , n = this.view.sa(".pb-nxt-loader-progress", b)
  1421. , w = this.view.sa(".pb-btn-cancel", b)
  1422. , z = 0;
  1423. e.innerHTML = this.ta.title;
  1424. f.setAttribute("href", this.ta.url);
  1425. h.setAttribute("src", this.ta.thumb);
  1426. h.setAttribute("title", this.ta.title);
  1427. h.setAttribute("alt", this.ta.title);
  1428. k.setAttribute("href", this.ta.url);
  1429. "/uploads/filmico.png" == h && this.view.sa(".pb-nxt-preview-next-video", b).s();
  1430. a = this;
  1431. w.addEventListener("click", function(b) {
  1432. a.A || a.controls.enable();
  1433. a.Gd = !0;
  1434. a.Hb = !1;
  1435. a.controls.F(!1);
  1436. a.A || (a.video.paused ? a.controls.qa(!0) : a.controls.qa());
  1437. a.view.fc.s();
  1438. a.eb.clearInterval(a.ma);
  1439. z = 0;
  1440. n.style.width = "0%";
  1441. b.preventDefault();
  1442. return !1
  1443. });
  1444. null === this.ma && (this.ma = this.eb.setInterval(function() {
  1445. 100 > z && (z++,
  1446. n.style.width = z + "%");
  1447. 100 <= z && !a.Hb && (a.Hb = !0,
  1448. a.eb.clearInterval(a.ma),
  1449. a.fullScreen.fb(),
  1450. a.j.Ta() ? window.location.replace(d) : window.location.href = d)
  1451. }, 100))
  1452. }
  1453. }
  1454. ;
  1455. E.Cg = function() {
  1456. this.eb.clearInterval(this.ma);
  1457. this.ma = null;
  1458. this.view.fc.s();
  1459. this.Hb = !1;
  1460. this.A || this.controls.isEnabled() || this.controls.enable()
  1461. }
  1462. ;
  1463. E.le = function() {
  1464. this.Gb = "undefined" !== typeof window.nextVideoEnabled && window.nextVideoEnabled ? !0 : !1
  1465. }
  1466. ;
  1467. E.zf = function() {
  1468. null === this.ma && (this.le(),
  1469. this.Gb && this.Af() && !this.Gd && !this.Hb && this.$c())
  1470. }
  1471. ;
  1472. E.se = function() {
  1473. var a = window.location.href, b;
  1474. b = null !== this.ta.quality ? "?wersja=" + this.ta.quality + "&a=1" : "?a=1";
  1475. -1 !== a.indexOf("&html5") && (b += "&html5&vol=10");
  1476. return this.ta.hasOwnProperty("link") ? this.ta.link + b : a.slice(0, a.indexOf("/video/")) + "/video/" + this.ta.id + b
  1477. }
  1478. ;
  1479. E.Ad = function(a, b) {
  1480. this.log(this.b, "isAdAvailable");
  1481. this.log(this.b, arguments);
  1482. if (this.j.Ta())
  1483. return !1;
  1484. if (this.j.B()) {
  1485. if (this.j.wc()) {
  1486. var d = this.j.qe();
  1487. this.log(this.b, "android version: " + d);
  1488. if ("4.1.2" >= d)
  1489. return !1
  1490. }
  1491. if (this.j.Bd())
  1492. return !1
  1493. }
  1494. if (null !== a) {
  1495. var d = this.If()
  1496. , e = !1;
  1497. m(M) && m(N) && m(O) && (e = !0);
  1498. if (this.Za(a, "schedule"))
  1499. for (var f = 0; f < this.c.schedule.length; f++)
  1500. if (this.c.schedule[f].hasOwnProperty("time") && this.c.schedule[f].hasOwnProperty("tag") && "" != this.c.schedule[f].tag && this.c.schedule[f].hasOwnProperty("enabled") && !0 === this.c.schedule[f].enabled && this.c.schedule[f].hasOwnProperty("type") && this.c.schedule[f].time === b && !this.c.schedule[f].hasOwnProperty("midroll") && e && (this.c.schedule[f].hasOwnProperty("tagAdblock") && null != this.c.schedule[f].tagAdblock || !d))
  1501. return !0
  1502. }
  1503. return !1
  1504. }
  1505. ;
  1506. E.Bc = function(a, b) {
  1507. this.log(this.b, "startAd");
  1508. this.log(this.b, arguments);
  1509. for (var d = this.If(), e = [], f = 0, k = 0; k < a.schedule.length; k++)
  1510. if (a.schedule[k].time === b) {
  1511. f++;
  1512. var h = a.schedule[k]
  1513. , n = {
  1514. autoplay: h.autoplay,
  1515. counter: h.counter,
  1516. displayAs: h.displayAs,
  1517. key: h.key,
  1518. skip: h.skip,
  1519. click: h.click,
  1520. tag: h.tag,
  1521. time: h.time,
  1522. type: h.type
  1523. };
  1524. 1 < f && (n.autoplay = !0);
  1525. d && this.Lc() && (n.tag = h.tagAdblock,
  1526. n.type = "pool",
  1527. n.counter = !1);
  1528. if (1 < h.repeat)
  1529. for (var w = 0; w < h.repeat; w++) {
  1530. if (0 === b)
  1531. n.autoplay = this.autoplay;
  1532. else if (-1 === b || 0 < b)
  1533. n.autoplay = !0;
  1534. e.push(n)
  1535. }
  1536. else {
  1537. if (0 === b)
  1538. n.autoplay = this.autoplay;
  1539. else if (-1 === b || 0 < b)
  1540. n.autoplay = !0;
  1541. e.push(n)
  1542. }
  1543. delete h;
  1544. delete n;
  1545. if (d)
  1546. break
  1547. }
  1548. this.log(this.b, "startAd", e);
  1549. e != [] ? (this.log(this.b, "startAd", "init ads manager"),
  1550. this.O = !0,
  1551. this.i = new O(this,e)) : (this.log(this.b, "startAd", "no ads to display"),
  1552. this.autoplay && this.kb())
  1553. }
  1554. ;
  1555. E.pb = function(a) {
  1556. return "undefined" !== typeof a && "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : !1
  1557. }
  1558. ;
  1559. E.Ui = function() {
  1560. if (null !== this.C && !1 === this.Cc && ("premium" == this.u.type || "premium_free" == this.u.type)) {
  1561. this.Cc = !0;
  1562. var a = this;
  1563. try {
  1564. window[this.C.client][this.C.method](this.C.ts, this.C.key, {
  1565. success: function() {
  1566. a.Cc = !0
  1567. },
  1568. error: function() {
  1569. a.Cc = !1
  1570. }
  1571. })
  1572. } catch (b) {}
  1573. }
  1574. }
  1575. ;
  1576. E.xc = function(a) {
  1577. return Number(a) === a && 0 === a % 1
  1578. }
  1579. ;
  1580. E.Dd = function(a) {
  1581. return Number(a) === a && 0 !== a % 1
  1582. }
  1583. ;
  1584. E.Lk = function() {
  1585. this.log(this.b, "window focus");
  1586. this.log(this.b, "focus? " + document.hasFocus());
  1587. this.Pc = !0
  1588. }
  1589. ;
  1590. E.Kk = function() {
  1591. this.log(this.b, "window blur");
  1592. this.log(this.b, "focus? " + document.hasFocus());
  1593. this.Pc = !1
  1594. }
  1595. ;
  1596. E.Fb = function(a) {
  1597. a = a.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
  1598. a = (new RegExp("[\\?&]" + a + "=([^&#]*)")).exec(window.location.href);
  1599. return null == a ? null : a[1]
  1600. }
  1601. ;
  1602. E.wd = function() {
  1603. return window.location.hostname
  1604. }
  1605. ;
  1606. E.$g = function() {
  1607. var a = this.wd();
  1608. return -1 < a.indexOf("cda.pl") || -1 < a.indexOf("superfilm.pl") ? !0 : !1
  1609. }
  1610. ;
  1611. E.Lc = function() {
  1612. return -1 < this.wd().indexOf("cda.pl")
  1613. }
  1614. ;
  1615. E.Mc = function() {
  1616. return -1 < this.wd().indexOf("superfilm.pl")
  1617. }
  1618. ;
  1619. E.Je = function() {
  1620. this.video.show();
  1621. this.view.Yd.s();
  1622. this.view.R.s();
  1623. this.video.load();
  1624. this.video.play()
  1625. }
  1626. ;
  1627. E.Vj = function() {
  1628. return this.hd
  1629. }
  1630. ;
  1631. E.Ug = function() {
  1632. this.hd++
  1633. }
  1634. ;
  1635. E.Pe = function() {
  1636. this.hd = 0
  1637. }
  1638. ;
  1639. E.tg = function(a) {
  1640. this.jd = !!a
  1641. }
  1642. ;
  1643. E.Wj = function() {
  1644. return this.jd
  1645. }
  1646. ;
  1647. E.jg = function(a) {
  1648. a = a || window.event;
  1649. this.view.Pd.o("pb-context-wrapp-show");
  1650. this.view.Pd.m("pb-context-wrapp-hide");
  1651. a.preventDefault();
  1652. return !1
  1653. }
  1654. ;
  1655. E.lg = function(a) {
  1656. a = a || window.event;
  1657. this.j.B() ? alert("CDA nie limituje przepustowo\u015bci oraz transferu danych. \nW godzinach wieczornych mo\u017ce zdarzy\u0107 si\u0119 jednak, i\u017c ilo\u015b\u0107 u\u017cytkownik\u00f3w przekracza mo\u017cliwo\u015bci naszych serwer\u00f3w wideo. W\u00f3wczas odbi\u00f3r mo\u017ce by\u0107 zak\u0142\u00f3cony, a plik wideo mo\u017ce \u0142adowa\u0107 si\u0119 d\u0142u\u017cej ni\u017c zwykle. \n\nW Opcji CDA Premium gwarantujemy, i\u017c przepustowo\u015bci i transferu nie braknie dla \u017cadnego u\u017cytkownika.") : this.view.Yi.m("pb-why-more-answer-show");
  1658. a.preventDefault();
  1659. return !1
  1660. }
  1661. ;
  1662. E.pk = function() {
  1663. return this.fe
  1664. }
  1665. ;
  1666. E.zg = function(a) {
  1667. this.fe = !!a
  1668. }
  1669. ;
  1670. E.Be = function() {
  1671. return this.options.hasOwnProperty("user") && this.options.user.hasOwnProperty("role") && "premium" == this.options.user.role || this.options.hasOwnProperty("premium") && !0 === this.options.premium ? !0 : !1
  1672. }
  1673. ;
  1674. E.Jc = function() {
  1675. return this.options.hasOwnProperty("user") && this.options.user.hasOwnProperty("id") && !g(this.options.user.id) ? this.options.user.id : 33
  1676. }
  1677. ;
  1678. E.ue = function() {
  1679. return this.options.hasOwnProperty("user") && this.options.user.hasOwnProperty("gender") && !g(this.options.user.gender) ? this.options.user.gender : ""
  1680. }
  1681. ;
  1682. E.ve = function() {
  1683. return g(this.u) || !this.u.hasOwnProperty("premium_categories") || g(this.u.premium_categories) ? "" : this.u.premium_categories
  1684. }
  1685. ;
  1686. E.kg = function() {
  1687. this.O || 0 != this.Be() || this.Ac("cda.player.ppst", this.options.video.id + ":" + Number(Math.floor(this.$())), 2, !0)
  1688. }
  1689. ;
  1690. E.Tf = function() {
  1691. return this.options.hasOwnProperty("user") && this.options.user.hasOwnProperty("role") && "admin" == this.options.user.role ? !0 : !1
  1692. }
  1693. ;
  1694. function ga(a) {
  1695. if (!a)
  1696. throw new TypeError("playerObject is null or empty.");
  1697. this.a = a;
  1698. this.ba = a.ba
  1699. }
  1700. E = ga.prototype;
  1701. E.gh = function(a) {
  1702. if (this.ba.Of(a)) {
  1703. var b = this.Xg(this.a.options.video.width, this.a.options.video.height)
  1704. , d = "";
  1705. 1 == b.x && 1 == b.y && (d = "pb-format16x9");
  1706. var e = '<span class="pb-ico-above-hide"></span>';
  1707. g(this.a.options.video.content_rating) || (e = '<span class="pb-ico-above-wrapp"><span class="pb-ico-above-' + this.a.options.video.content_rating + 'y"></span></span>');
  1708. this.xg(a, '<div class="pb-player-html-wrapper"><div class="pb-player-content ' + b.className + " " + d + '"> <style>' + ("#" + this.a.options.id + " .pb-video-active .pb-stretching-full .pb-video-player {transform: scaleX(" + b.x + ") scaleY(" + b.y + ")}") + '</style><div class="pb-player-html"><span class="pb-ady-counter"></span><span class="pb-ady-player-wrap"><span id="pb-yt-iframe"></span><span class="pb-ady-skip"></span></span><span class="pb-video-player-wrap"> <img class="pb-resp-width-max" src="//static.cda.pl/v001/img/mobile/v16x9.png"><span class="pb-fl-player-wrap"><span class="pb-post-fl"><video class="pb-video-player"></video><span class="pb-valign-middle"></span></span></span> <span class="pb-video-poster"><span class="pb-valign-middle"></span></span><span class="pb-logo"></span> <span class="pb-video-click"></span><span class="pb-video-ad-container"><span class="pb-video-ad-content"></span><span class="pb-valign-middle"></span></span><span class="pb-play-ico"></span> <span class="pb-loader-ico"></span> <span class="pb-next-video-wrapper" style="display: none"> <span class="pb-next-video-content"> <span class="pb-next-video-title"></span> <span class="pb-next-viteo-thumb-wrapper"> <img class="pb-next-thumb-video" src=""/> <span class="pb-next-timer-wrapper"> <svg width="100%" viewBox="0 0 98 98" height="100%"> <circle transform="rotate(-90)" stroke-width="18" stroke="rgba(0,0,0,0.5)" r="32.5" fill-opacity="0" cy="49" cx="-49" class="load-new-film"/> <circle class="pb-next-video-circle-progress" transform="rotate(-90)" stroke-width="14" stroke-dasharray="208.2%" stroke-dashoffset="204px" stroke="rgba(249, 249, 249, 0.5)" r="32.5" fill-opacity="0" cy="49" cx="-49" class="load-new-film"/> <polygon points="42,37 62,49 42,61"fill="rgba(255,255,255,0.7)" class="pb-next-play"/> </svg> </span> <span class="pb-ie-next-loader" style="display: none"> <span class="pb-ie-next-loader-progress"></span> </span> <a href="#" title="" class="pb-next-click"></a> </span> <span class="pb-btn-wrapper"> <a class="pb-btn-cancel">anuluj</a> </span> </span> </span> <span class="pb-alert" style="display:none"> <span class="pb-alert-body"> <span class="header-alert"></span> <span class="text-alert"></span> </span> <span class="pb-alert-valign-middle"></span> </span> <span class="pb-ad-counter" style="display: none"></span><span class="pb-ad-info" style="display: none;"></span><span class="pb-info" style="display: none"><span class="pb-info-container"><span class="pb-info-content"></span></span><span class="pb-valign-middle"></span></span> ' + e + ' <span class="pb-ccast-float"></span> <a class="pb-ad-close"> <span class="pb pb-ad-close-body" style="display: none"></span> </a> <a class="pb-skip" style="display: none"> <span class=pb-skip-body>pomi\u0144</span> </a> <span class="pb-premium-promotion pb-context-wrapp pb-context-wrapp-hide"><span class="pb-context-body"><span class="pb pb-context-close pb-premium-promotion-close"></span><span class="pb-context-content"><span class="pb-ico-speed"><span></span></span><span class="pb-context-content-body">Potrzebujesz szybszego \u0142adowania wideo? <span class="pb-context-block"><a class="pb-context-button pb-premium-promotion-button" href="https://premium.cda.pl/rejestracja">W\u0142\u0105cz konto premium na 14 dni za darmo</a></span><span class="pb-why-more">Dlaczego widz\u0119 ten komunikat?</span></span><span class="pb-why-more-answer"><p>CDA nie limituje przepustowo\u015bci oraz transferu danych. <br />W godzinach wieczornych mo\u017ce zdarzy\u0107 si\u0119 jednak, i\u017c ilo\u015b\u0107 u\u017cytkownik\u00f3w przekracza mo\u017cliwo\u015bci naszych serwer\u00f3w wideo. W\u00f3wczas odbi\u00f3r mo\u017ce by\u0107 zak\u0142\u00f3cony, a plik wideo mo\u017ce \u0142adowa\u0107 si\u0119 d\u0142u\u017cej ni\u017c zwykle.</p><p>W opcji CDA Premium gwarantujemy, i\u017c przepustowo\u015bci i transferu nie braknie dla \u017cadnego u\u017cytkownika. <a href="https://premium.cda.pl/rejestracja" class="pb-why-more-register pb-link-color">Zarejestruj swoje konto premium ju\u017c teraz!</a></p></span></span></span></span><span class="pb-box-info"><span class="pb-box-info-content"></span></span></span> <span class="button-players"> <span class="pb pb-bar"> <span class="pb pb-play"></span> <span class="pb pb-volume"> <span class="pb pb-volume-mute"></span> <span class="pb pb-progress-bar-volume-area"> <span class="pb pb-progress-bar-volume"></span> </span> <span class="pb pb-volume-max"></span> </span> <span class="pb pb-settings"><span class="pb-settings-click"></span><span class="pb-settings-menu"><span class="pb-settings-menu-wrapper"><span class="pb-settings-cloud"><span class="pb-settings-container"><span class="pb-menu pb-menu-static"><span class="pb pb-close-settings"></span><span class="pb-header-menu">Ustawienia</span><ul><li><span class="pb-menu-head">Format obrazu </span><ul class="pb-menu-slave"><li item="5"><a><span class="pb-ico-exp"></span><span class="pb-radio"><span class="pb-radio-btn"></span></span>rozszerzony</a></li><li item="6" class="pb-active"><a><span class="pb-ico-norm"></span><span class="pb-radio"><span class="pb-radio-btn"></span></span>normalny</a></li><li item="7"><a><span class="pb-ico-full"></span><span class="pb-radio"><span class="pb-radio-btn"></span></span>rozci\u0105gni\u0119ty</a></li><li item="8"><a><span class="pb-ico-oryg"></span><span class="pb-radio"><span class="pb-radio-btn"></span></span>nieskalowany</a></li></ul></li><li item="1" style="display: none" class="pb-settings-nextvideo"><a><span class="pb-switch"><span class="pb-switch-on-text">on</span><span class="pb-switch-off-text">off</span><span class="pb-switch-btn"></span></span>Autoodtwarzanie nast\u0119pnego video</a></li><li item="4" class="pb-settings-autoplay"><a><span class="pb-switch"><span class="pb-switch-on-text">on</span><span class="pb-switch-off-text">off</span><span class="pb-switch-btn"></span></span>Autoplay</a></li><li style="display: none" item="2" class="pb-settings-loop"><a><span class="pb-switch"><span class="pb-switch-on-text">on</span><span class="pb-switch-off-text">off</span><span class="pb-switch-btn"></span></span>Odtwarzaj w p\u0119tli</a></li><li item="2" style="display: none"><a><span class="pb-switch"><span class="pb-switch-on-text">on</span><span class="pb-switch-off-text">off</span><span class="pb-switch-btn"></span></span>Odtwarzanie w p\u0119tli</a></li><li item="3"><a>Zg\u0142o\u015b problem z playerem</a></li></ul></span></span></span></span><span class="pb-settings-cloud-arrow"></span></span></span><span class="pb pb-ccast"></span><span class="pb pb-fullscreen"></span> <span class="pb-time-bar"> <span class="pb-actual-time">0:00</span> <span class="pb-max-time">0:00</span> <span class="pb pb-progress-time pb-progress-time-active"> <span class="pb pb-progress-time-progress"></span> <span class="pb-progress-bar-area"> <span class="pb-time-position"> <span class="pb-time-cloud"> <span class="pb-time-container">0:00</span> <span class="pb-time-cloud-arrow"></span> </span> </span> <span class="pb pb-progress-bar-time"> <span class="bar-line-handle"></span> </span> </span> </span> </span> </span> </span><span class="pb-menu-context"><span class="pb-menu"><span class="pb-header-menu">Player wersja: ' + this.a.Tg + '</span><ul><li item="1"><a>Kopiuj adres filmu</a></li><li item="2"><a>Skopiuj kod embed</a></li><li item="3"><a>Zg\u0142o\u015b problem z playerem</a></li></ul></span></span></div></div></div>')
  1709. }
  1710. }
  1711. ;
  1712. E.kj = function() {
  1713. this.w = this.sa(".pb-player-html-wrapper", this.a.element);
  1714. this.content = this.f(".pb-player-content");
  1715. this.video = this.f(".pb-video-player");
  1716. this.bd = this.f(".pb-video-click");
  1717. this.cb = this.f(".pb-video-player-wrap");
  1718. this.Aa = this.f(".pb-fl-player-wrap");
  1719. this.fa = this.f(".pb-player-html");
  1720. this.Yd = this.f(".pb-video-poster");
  1721. this.Qc = this.f(".pb-logo");
  1722. this.contextMenu = this.f(".pb-menu-context");
  1723. this.Yf = this.f(".pb-next-click");
  1724. this.fc = this.f(".pb-next-video-wrapper");
  1725. this.Kh = this.f(".pb-next-video-title");
  1726. this.Jh = this.f(".pb-next-thumb-video");
  1727. this.ec = this.f(".pb-next-video-circle-progress");
  1728. this.f(".pb-ie-next-loader");
  1729. this.f(".pb-ie-next-loader-progress");
  1730. this.Ih = this.f(".pb-btn-cancel");
  1731. this.alert = this.f(".pb-alert");
  1732. this.ac = this.f(".text-alert");
  1733. this.$a = this.f(".pb-play");
  1734. this.R = this.f(".pb-play-ico");
  1735. this.W = this.f(".pb-loader-ico");
  1736. this.ya = this.f(".pb-progress-time");
  1737. this.Ka = this.f(".pb-progress-bar-time");
  1738. this.Xa = this.f(".pb-progress-bar-area");
  1739. this.Le = this.f(".pb-bar");
  1740. this.je = this.f(".pb-progress-time-progress");
  1741. this.currentTime = this.f(".pb-actual-time");
  1742. this.vd = this.f(".pb-max-time");
  1743. this.fullScreen = this.f(".pb-fullscreen");
  1744. this.Mb = this.f(".pb-volume-mute");
  1745. this.Ga = this.f(".pb-progress-bar-volume");
  1746. this.Ze = this.f(".pb-volume-max");
  1747. this.Db = this.f(".pb-progress-bar-volume-area");
  1748. this.controls = this.f(".button-players");
  1749. this.cb = this.f(".pb-video-player-wrap");
  1750. this.S = this.f(".pb-player-html");
  1751. this.Ag = this.f(".pb-settings-click");
  1752. this.ea = this.f(".pb-settings-menu");
  1753. this.rj = this.f(".pb-close-settings");
  1754. this.Yg = this.f(".pb-ccast");
  1755. this.bc = this.f(".pb-ccast-float");
  1756. this.Oa = this.f(".pb-video-ad-container");
  1757. this.Ha = this.f(".pb-video-ad-content");
  1758. this.f(".pb-ad-video-player");
  1759. this.Ba = this.f(".pb-ad-counter");
  1760. this.nd = this.f(".pb-ad-close-body");
  1761. this.Pa = this.f(".pb-skip");
  1762. this.V = this.f(".pb-ad-info");
  1763. this.Fg = this.sa(".pb-ady-player-wrap");
  1764. this.vb = this.sa(".pb-ady-skip");
  1765. this.cd = this.sa(".pb-ady-counter");
  1766. this.info = this.f(".pb-info");
  1767. this.f(".pb-info-content");
  1768. this.vc = this.f(".pb-box-info");
  1769. this.yd = this.f(".pb-box-info-content");
  1770. this.Pd = this.f(".pb-premium-promotion");
  1771. this.Wi = this.f(".pb-premium-promotion-close");
  1772. this.Vi = this.f(".pb-premium-promotion-button");
  1773. this.Xi = this.f(".pb-why-more");
  1774. this.Yi = this.f(".pb-why-more-answer");
  1775. this.Zi = this.f(".pb-why-more-register")
  1776. }
  1777. ;
  1778. E.Xg = function(a, b) {
  1779. var d, e;
  1780. videoW = this.ba.xc(Number(a)) ? a : 640;
  1781. videoH = this.ba.xc(Number(b)) ? b : 360;
  1782. screenW = window.screen.width;
  1783. screenH = window.screen.height;
  1784. cName = "";
  1785. videoW / videoH >= screenW / screenH ? (d = 1,
  1786. e = videoW / screenW * (screenH / videoH)) : (d = videoH / screenH * (screenW / videoW),
  1787. e = 1,
  1788. cName = "pb-h-vid");
  1789. return {
  1790. x: d,
  1791. y: e,
  1792. className: cName
  1793. }
  1794. }
  1795. ;
  1796. E.f = function(a) {
  1797. if (!this.ba.Ae(this.w))
  1798. return this.sa(a, this.w)
  1799. }
  1800. ;
  1801. E.sa = function(a, b) {
  1802. if (1 < arguments.length && null !== b) {
  1803. if (this.ba.Qf(b.querySelector))
  1804. return b.querySelector(a);
  1805. if (-1 !== a.indexOf("#"))
  1806. return document.getElementById(a.substring(1));
  1807. if (0 < b.re(a.substring(1)).length)
  1808. return b.re(a.substring(1))[0]
  1809. } else {
  1810. if (this.ba.Qf(document.querySelector))
  1811. return document.querySelector(a);
  1812. if (-1 !== a.indexOf("#"))
  1813. return document.getElementById(a.substring(1));
  1814. if (0 < document.re(a.substring(1)).length)
  1815. return document.re(a.substring(1))[0]
  1816. }
  1817. return null
  1818. }
  1819. ;
  1820. E.xg = function(a, b) {
  1821. this.ba.Of(a) && (a.innerHTML = b)
  1822. }
  1823. ;
  1824. E.jc = function(a, b) {
  1825. this.xg(a, b)
  1826. }
  1827. ;
  1828. E.m = function(a, b) {
  1829. "undefined" !== typeof a && ("undefined" !== typeof a.classList ? a.classList.add(b) : a.className = a.className + " " + b)
  1830. }
  1831. ;
  1832. E.o = function(a, b) {
  1833. if ("undefined" !== typeof a)
  1834. if ("undefined" !== typeof a.classList)
  1835. a.classList.remove(b);
  1836. else {
  1837. for (var d = a.className.split(" "), e = "", f = 0; f < d.length; f++)
  1838. b != d[f] && (e += d[f] + " ");
  1839. a.className = e
  1840. }
  1841. }
  1842. ;
  1843. E.D = function(a, b) {
  1844. return "undefined" !== typeof a && -1 !== a.className.indexOf(b) ? !0 : !1
  1845. }
  1846. ;
  1847. E.pb = function(a) {
  1848. return "undefined" !== typeof a && "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : !1
  1849. }
  1850. ;
  1851. E.ua = function(a, b) {
  1852. "undefined" === typeof a || isNaN(b) || (a.style.width = b)
  1853. }
  1854. ;
  1855. E.gb = function(a) {
  1856. return "undefined" !== typeof a ? a.offsetWidth : 0
  1857. }
  1858. ;
  1859. E.Qe = function(a, b) {
  1860. "undefined" === typeof a || isNaN(b) || (a.style.height = b)
  1861. }
  1862. ;
  1863. E.cc = function(a) {
  1864. return "undefined" !== typeof a ? a.offsetHeight : 0
  1865. }
  1866. ;
  1867. E.Tb = function(a) {
  1868. return "undefined" !== typeof a && "undefined" !== typeof a.offsetParent && null !== a.offsetParent ? !0 : !1
  1869. }
  1870. ;
  1871. E.s = function(a) {
  1872. "undefined" !== typeof a && "undefined" !== typeof a.style && ("visible" === a.style.visiblity ? a.style.visiblity = "hidden" : a.style.display = "none")
  1873. }
  1874. ;
  1875. E.show = function(a) {
  1876. "undefined" !== typeof a && "undefined" !== typeof a.style && ("hidden" === a.style.visiblity ? a.style.visiblity = "visible" : a.style.display = "block")
  1877. }
  1878. ;
  1879. function G() {}
  1880. E = G.prototype;
  1881. E.ck = function(a) {
  1882. if ("object" == typeof a) {
  1883. if (null === a)
  1884. return "null";
  1885. if (a instanceof Array)
  1886. return "array";
  1887. if (a instanceof Object)
  1888. return "object"
  1889. }
  1890. }
  1891. ;
  1892. E.lk = function(a) {
  1893. return null === a
  1894. }
  1895. ;
  1896. E.Ae = function(a) {
  1897. return "undefined" === typeof a
  1898. }
  1899. ;
  1900. E.Qf = function(a) {
  1901. return "function" === typeof a
  1902. }
  1903. ;
  1904. E.nk = function(a) {
  1905. return "object" === typeof a
  1906. }
  1907. ;
  1908. E.Of = function(a) {
  1909. return "undefined" !== typeof HTMLElement ? a instanceof HTMLElement : a instanceof Element
  1910. }
  1911. ;
  1912. E.mk = function(a) {
  1913. return "number" === typeof a
  1914. }
  1915. ;
  1916. E.qk = function(a) {
  1917. return "string" === typeof a
  1918. }
  1919. ;
  1920. E.yh = function(a) {
  1921. return "boolean" === typeof a
  1922. }
  1923. ;
  1924. E.xc = function(a) {
  1925. return Number(a) === a && 0 === a % 1
  1926. }
  1927. ;
  1928. E.Dd = function(a) {
  1929. return Number(a) === a && 0 !== a % 1
  1930. }
  1931. ;
  1932. "undefined" === typeof Array.isArray && (Array.isArray = function(a) {
  1933. return "[object Array]" === Object.prototype.toString.call(a)
  1934. }
  1935. );
  1936. E.Ac = function(a, b, d, e) {
  1937. var f = new Date;
  1938. null != d && (e ? f.setHours(f.getHours() + d) : f.setDate(f.getDate() + d));
  1939. try {
  1940. document.cookie = a + "=" + escape(b) + (null == d ? "" : ";expires=" + f.toGMTString())
  1941. } catch (k) {}
  1942. }
  1943. ;
  1944. E.Eb = function(a) {
  1945. var b, d, e;
  1946. try {
  1947. e = document.cookie.split(";")
  1948. } catch (k) {
  1949. e = []
  1950. }
  1951. for (var f = 0; f < e.length; f++)
  1952. if (b = e[f].substr(0, e[f].indexOf("=")),
  1953. d = e[f].substr(e[f].indexOf("=") + 1),
  1954. b = b.replace(/^\s+|\s+$/g, ""),
  1955. b == a)
  1956. return unescape(d);
  1957. return !1
  1958. }
  1959. ;
  1960. E.Cd = function(a) {
  1961. return !1 !== this.Eb(a) ? !0 : !1
  1962. }
  1963. ;
  1964. E.bind = function(a, b) {
  1965. return function() {
  1966. b.apply(a, b)
  1967. }
  1968. }
  1969. ;
  1970. E.Wg = function(a, b) {
  1971. return a.call.apply(a.bind, arguments)
  1972. }
  1973. ;
  1974. E.sd = function(a, b) {
  1975. return this.Wg.apply(null, arguments)
  1976. }
  1977. ;
  1978. function L() {}
  1979. E = L;
  1980. E.isEnabled = function() {
  1981. return l(window.navigator.cookieEnabled) ? !isEmpty(window.document.cookie) : window.navigator.cookieEnabled
  1982. }
  1983. ;
  1984. E.set = function(a, b, d, e) {
  1985. var f = new Date;
  1986. null != d && (e ? f.setHours(f.getHours() + d) : f.setDate(f.getDate() + d));
  1987. try {
  1988. document.cookie = a + "=" + escape(b) + (null == d ? "" : ";expires=" + f.toGMTString())
  1989. } catch (k) {}
  1990. }
  1991. ;
  1992. E.get = function(a) {
  1993. var b, d, e;
  1994. try {
  1995. e = document.cookie.split(";")
  1996. } catch (k) {
  1997. e = []
  1998. }
  1999. for (var f = 0; f < e.length; f++)
  2000. if (b = e[f].substr(0, e[f].indexOf("=")),
  2001. d = e[f].substr(e[f].indexOf("=") + 1),
  2002. b = b.replace(/^\s+|\s+$/g, ""),
  2003. b == a)
  2004. return unescape(d);
  2005. return null
  2006. }
  2007. ;
  2008. E.kh = function() {
  2009. return !1 !== this.get("cda-player-volume") ? !0 : !1
  2010. }
  2011. ;
  2012. function fa(a) {
  2013. this.pj(a)
  2014. }
  2015. E = fa.prototype;
  2016. E.isEnabled = function() {
  2017. return !g(this.ub)
  2018. }
  2019. ;
  2020. E.pj = function(a) {
  2021. this.type = a;
  2022. this.ub = "session" === this.type ? ba() : aa()
  2023. }
  2024. ;
  2025. E.set = function(a, b) {
  2026. if (0 < arguments.length && !l(a) && !l(b))
  2027. try {
  2028. this.isEnabled() && this.ub.setItem(a, JSON.stringify(b))
  2029. } catch (d) {}
  2030. }
  2031. ;
  2032. E.get = function(a) {
  2033. try {
  2034. if (this.isEnabled()) {
  2035. var b = this.ub.getItem(a);
  2036. return g(b) && l(b) ? null : JSON.parse(b)
  2037. }
  2038. } catch (d) {
  2039. return null
  2040. }
  2041. }
  2042. ;
  2043. E.remove = function(a) {
  2044. try {
  2045. this.isEnabled() && this.ub.removeItem(a)
  2046. } catch (b) {}
  2047. }
  2048. ;
  2049. E.clear = function() {
  2050. try {
  2051. this.isEnabled() && this.ub.clear()
  2052. } catch (a) {}
  2053. }
  2054. ;
  2055. function J(a, b, d) {
  2056. if ("undefined" == a || null == a || null === d)
  2057. return !1;
  2058. this.b = "cda.Player.Controls";
  2059. this.w = a;
  2060. this.a = b;
  2061. this.yb = d;
  2062. this.view = b.view;
  2063. this.ba = b.ba;
  2064. this.$a = this.view.f(".pb-play");
  2065. this.R = this.view.f(".pb-play-ico");
  2066. this.W = this.view.f(".pb-loader-ico");
  2067. this.ya = this.view.f(".pb-progress-time");
  2068. this.Ka = this.view.f(".pb-progress-bar-time");
  2069. this.Xa = this.view.f(".pb-progress-bar-area");
  2070. this.Le = this.view.f(".pb-bar");
  2071. this.je = this.view.f(".pb-progress-time-progress");
  2072. this.currentTime = this.view.f(".pb-actual-time");
  2073. this.vd = this.view.f(".pb-max-time");
  2074. this.fullScreen = this.view.f(".pb-fullscreen");
  2075. this.Mb = this.view.f(".pb-volume-mute");
  2076. this.Ga = this.view.f(".pb-progress-bar-volume");
  2077. this.Ze = this.view.f(".pb-volume-max");
  2078. this.Db = this.view.f(".pb-progress-bar-volume-area");
  2079. this.controls = this.view.f(".button-players");
  2080. this.cb = this.view.f(".pb-video-player-wrap");
  2081. this.S = this.view.f(".pb-player-html");
  2082. this.Ag = this.view.f(".pb-settings-click");
  2083. this.ea = this.view.f(".pb-settings-menu");
  2084. this.Aa = this.view.f(".pb-fl-player-wrap");
  2085. this.ra = this.Ra = this.Ya = this.Wf = this.Vf = -1;
  2086. this.Eg = 70;
  2087. this.Oc = this.Ca = !1;
  2088. this.dc = !0;
  2089. this.h = {};
  2090. this.Z = null;
  2091. this.Yb = this.ce = this.Nb = this.ob = !1;
  2092. this.event = null;
  2093. this.ia = "click timeupdate loadeddata loadedmetadata progress waiting play pause".split(" ");
  2094. "function" === typeof H && (this.event = new H);
  2095. null == this.w.getAttribute("tabindex") && this.w.setAttribute("tabindex", "1");
  2096. try {
  2097. var e = this.a.oh();
  2098. 0 != e && e.hasOwnProperty("volume") ? this.T(e.volume) : this.a.Cd("cda.player.volume") ? this.T(this.a.Eb("cda.player.volume")) : this.T(this.Ye)
  2099. } catch (f) {
  2100. this.T(this.Ye)
  2101. }
  2102. this.zd()
  2103. }
  2104. E = J.prototype = {};
  2105. E.zd = function() {
  2106. for (var a in this.ia)
  2107. if ("" != this.ia[a]) {
  2108. var b = null;
  2109. switch (this.ia[a]) {
  2110. case "click":
  2111. b = this.Ib;
  2112. break;
  2113. case "timeupdate":
  2114. b = this.Vc;
  2115. break;
  2116. case "loadeddata":
  2117. b = this.Fe;
  2118. break;
  2119. case "loadedmetadata":
  2120. b = this.Ge;
  2121. break;
  2122. case "progress":
  2123. b = this.yc;
  2124. break;
  2125. case "waiting":
  2126. b = this.Wc;
  2127. break;
  2128. case "play":
  2129. b = this.zc;
  2130. break;
  2131. case "pause":
  2132. b = this.sb
  2133. }
  2134. null !== b && "function" === typeof b && (this.h[this.ia[a]] = I(this.a.video, this.ia[a], b, this))
  2135. }
  2136. this.a.j.Ta() || (this.h.tk = I(this.w, "keydown", this.Yh, this));
  2137. this.a.j.Ta() && (this.h.Qk = I(document.querySelector(".btn-fullscreen"), "click", this.ci, this));
  2138. this.h.bd = I(this.view.bd, "click", this.pg, this);
  2139. this.h.Pj = I(this.fullScreen, "click", this.Kd, this);
  2140. this.h.Pk = I(this.$a, "click", this.Ub, this);
  2141. this.h.Ok = I(this.R, "click", this.gc, this);
  2142. this.h.el = I(this.Mb, "click", this.Ci, this);
  2143. this.h.Ze = I(this.Ze, "click", this.Bi, this);
  2144. this.h.al = I(this.Ag, "click", this.ri, this);
  2145. this.h.bl = I(this.ea, "click", this.si, this);
  2146. this.h.gg = I(window.document, "click", this.gg, this);
  2147. this.h.ng = I(this.view.rj, "click", this.ng, this);
  2148. this.a.j.B() || (this.h.Rk = I(this.ya, "mousedown", this.ei, this),
  2149. this.h.Tk = I(this.ya, "mouseup", this.gi, this),
  2150. this.h.Xk = I(this.Le, "mousemove", this.ki, this),
  2151. this.h.fl = I(this.Db, "mousedown", this.Di, this),
  2152. this.h.hl = I(this.Db, "mouseup", this.Fi, this),
  2153. this.h.gl = I(this.Db, "mousemove", this.Ei, this),
  2154. this.h.Sk = I(this.ya, "mousemove", this.fi, this),
  2155. this.h.dl = I(this.cb, "mousemove", this.Ai, this),
  2156. this.h.eh = I(this.controls, "mouseenter", this.Bf, this),
  2157. this.h.eh = I(this.controls, "mouseover", this.Bf, this),
  2158. this.h.dh = I(this.controls, "mouseleave", this.Cf, this),
  2159. this.h.dh = I(this.controls, "mouseout", this.Cf, this),
  2160. this.h.nl = I(this.w, "mouseup", this.Hi, this),
  2161. this.h.Mj = I(document, "mouseup", this.Sh, this),
  2162. this.h.Lj = I(document, "mousedown", this.Rh, this));
  2163. this.a.j.B() && (this.h.Wk = I(this.ya, "touchstart", this.ji, this),
  2164. this.h.Uk = I(this.ya, "touchend", this.hi, this),
  2165. this.h.Yk = I(this.Le, "touchmove", this.li, this),
  2166. this.h.Vk = I(this.ya, "touchmove", this.ii, this));
  2167. this.W.s();
  2168. this.S.m("pb-paused");
  2169. this.S.m("pb-bar-no-seeking")
  2170. }
  2171. ;
  2172. E.enable = function() {
  2173. this.ce = !0;
  2174. this.view.o(this.view.fa, "pb-nocloud")
  2175. }
  2176. ;
  2177. E.disable = function() {
  2178. this.ce = !1;
  2179. this.view.m(this.view.fa, "pb-nocloud")
  2180. }
  2181. ;
  2182. E.isEnabled = function() {
  2183. return this.ce
  2184. }
  2185. ;
  2186. E.Ue = function() {
  2187. clearInterval(this.Z);
  2188. this.Z = null;
  2189. this.w.o("pb-nocontrols")
  2190. }
  2191. ;
  2192. E.gk = function() {
  2193. clearInterval(this.Z);
  2194. this.Z = null;
  2195. this.w.m("pb-nocontrols")
  2196. }
  2197. ;
  2198. E.Ea = function(a) {
  2199. a = Number(a);
  2200. var b = Math.floor(a / 3600)
  2201. , d = Math.floor(a % 3600 / 60);
  2202. a = Math.floor(a % 3600 % 60);
  2203. return (0 < b ? b + ":" + (10 > d ? "0" : "") : "") + d + ":" + (10 > a ? "0" : "") + a
  2204. }
  2205. ;
  2206. E.m = function(a, b) {
  2207. "undefined" !== typeof a.classList ? a.classList.add(b) : a.className = a.className + " " + b
  2208. }
  2209. ;
  2210. E.o = function(a, b) {
  2211. if ("undefined" !== typeof a.classList)
  2212. a.classList.remove(b);
  2213. else {
  2214. for (var d = a.className.split(" "), e = "", f = 0; f < d.length; f++)
  2215. b != d[f] && (e += d[f] + " ");
  2216. a.className = e
  2217. }
  2218. }
  2219. ;
  2220. E.D = function(a, b) {
  2221. return -1 === a.className.indexOf(b) ? !1 : !0
  2222. }
  2223. ;
  2224. E.pb = function(a) {
  2225. return "undefined" !== a && "function" === typeof a.getBoundingClientRect ? a.getBoundingClientRect() : !1
  2226. }
  2227. ;
  2228. E.ib = function(a) {
  2229. r(a) && !isNaN(a) && (this.currentTime.innerHTML = this.Ea(a))
  2230. }
  2231. ;
  2232. E.Fa = function(a) {
  2233. r(a) && !isNaN(a) && (this.vd.innerHTML = this.Ea(a))
  2234. }
  2235. ;
  2236. E.mj = function(a) {
  2237. this.ba.yh(a) && (a ? !1 === this.view.D(this.view.fullScreen, "pb-fullscreen-active") && this.view.m(this.view.fullScreen, "pb-fullscreen-active") : this.view.D(this.view.fullScreen, "pb-fullscreen-active") && this.view.o(this.view.fullScreen, "pb-fullscreen-active"))
  2238. }
  2239. ;
  2240. E.wg = function(a) {
  2241. this.view.D(this.view.ea, "pb-settings-menu-on") && (this.view.o(this.view.ea, "pb-settings-menu-on"),
  2242. this.view.m(this.view.ea, "pb-settings-menu-off"));
  2243. this.view.Tb(this.view.contextMenu) && this.view.s(this.view.contextMenu);
  2244. a ? (this.Ca = !0,
  2245. this.a.G === this.a.state.U && (this.a.j.B() && (this.ob = !1),
  2246. this.Wd()),
  2247. this.view.fa.m("pb-video-fullscreen"),
  2248. this.view.fullScreen.m("pb-fullscreen-active")) : (this.Ca = !1,
  2249. this.a.j.B() && (this.ob = !1),
  2250. this.lc(),
  2251. this.view.fa.o("pb-video-fullscreen"),
  2252. this.view.fullScreen.o("pb-fullscreen-active"))
  2253. }
  2254. ;
  2255. E.lj = function() {
  2256. var a;
  2257. a = !0;
  2258. this.xe();
  2259. a ? (this.h.Ld = I(this.view.yd, "click", this.Ld, this),
  2260. this.th()) : (K(this.view.yd, "click", this.h.Ld),
  2261. this.h.Ld = null)
  2262. }
  2263. ;
  2264. E.Kd = function() {
  2265. this.yb.is() || !this.yb.is() && !g(this.yb.element()) ? this.yb.fb() : this.yb.request()
  2266. }
  2267. ;
  2268. E.ei = function(a) {
  2269. if (this.isEnabled() && (a = a || window.event,
  2270. "undefined" === typeof a.which || 1 == a.which)) {
  2271. this.dc = !1;
  2272. this.ya.setAttribute("data-click", "click");
  2273. this.Nb = !0;
  2274. this.S.D("pb-bar-no-seeking") && this.S.o("pb-bar-no-seeking");
  2275. this.S.m("pb-bar-seeking");
  2276. var b = (a.pageX - this.pb(this.Xa).left) / this.Xa.offsetWidth * 100;
  2277. 100 < b ? b = 100 : 0 > b && (b = 0);
  2278. 0 === this.a.H() && (this.a.Qd = b);
  2279. this.Ya = b;
  2280. this.Ka.style.width = b + "%";
  2281. a.preventDefault();
  2282. return !1
  2283. }
  2284. }
  2285. ;
  2286. E.ji = function(a) {
  2287. if (this.isEnabled()) {
  2288. a = a || window.event;
  2289. var b = a.changedTouches;
  2290. "undefined" !== b && 1 == b.length && (this.yb.Ca() && (this.a.j.B() && (this.ob = !0),
  2291. this.lc()),
  2292. this.dc = !1,
  2293. this.ya.setAttribute("data-click", "click"),
  2294. this.Nb = !0,
  2295. this.S.D("pb-bar-no-seeking") && this.S.o("pb-bar-no-seeking"),
  2296. this.S.m("pb-bar-seeking"),
  2297. this.S.m("pb-time-cloud-show"),
  2298. b = (b[0].pageX - this.pb(this.Xa).left) / this.Xa.offsetWidth * 100,
  2299. 100 < b ? b = 100 : 0 > b && (b = 0),
  2300. this.Ya = b,
  2301. this.Ka.style.width = b + "%");
  2302. a.preventDefault();
  2303. return !1
  2304. }
  2305. }
  2306. ;
  2307. E.gi = function(a) {
  2308. if (this.isEnabled() && (a = a || window.event,
  2309. "undefined" === typeof a.which || 1 == a.which)) {
  2310. this.dc = !0;
  2311. this.ya.setAttribute("data-click", "none");
  2312. this.Nb = !1;
  2313. this.S.D("pb-bar-seeking") && this.S.o("pb-bar-seeking");
  2314. this.S.m("pb-bar-no-seeking");
  2315. if (-1 != this.a.H() && -1 != this.Ya) {
  2316. var b = this.Ya / 100 * this.a.H();
  2317. this.a.J.Ja() ? this.a.J.Ma(b) : this.a.Ma(b)
  2318. } else
  2319. this.Ub(),
  2320. this.a.kb();
  2321. a.preventDefault();
  2322. return !1
  2323. }
  2324. }
  2325. ;
  2326. E.hi = function(a) {
  2327. if (this.isEnabled()) {
  2328. a = a || window.event;
  2329. var b = a.changedTouches;
  2330. "undefined" !== b && 1 == b.length && (this.yb.Ca() && (this.a.j.B() && (this.ob = !1),
  2331. this.Wd()),
  2332. this.dc = !0,
  2333. this.ya.setAttribute("data-click", "none"),
  2334. this.Nb = !1,
  2335. this.S.D("pb-bar-seeking") && this.S.o("pb-bar-seeking"),
  2336. this.S.m("pb-bar-no-seeking"),
  2337. this.S.o("pb-time-cloud-show"),
  2338. -1 != this.a.H() && -1 != this.Ya ? (b = this.Ya / 100 * this.a.H(),
  2339. this.a.J.Ja() ? this.a.J.Ma(b) : this.a.Ma(b)) : (this.Ub(),
  2340. this.a.kb()));
  2341. a.preventDefault();
  2342. return !1
  2343. }
  2344. }
  2345. ;
  2346. E.ki = function(a) {
  2347. if (this.isEnabled() && (a = a || window.event,
  2348. "undefined" === typeof a.which || 1 == a.which)) {
  2349. if ("click" == this.ya.getAttribute("data-click")) {
  2350. var b = (a.pageX - this.pb(this.Xa).left) / this.Xa.offsetWidth * 100;
  2351. 100 < b ? b = 100 : 0 > b && (b = 0);
  2352. this.Ya = b;
  2353. this.Ka.style.width = b + "%"
  2354. }
  2355. a.preventDefault();
  2356. return !1
  2357. }
  2358. }
  2359. ;
  2360. E.li = function(a) {
  2361. if (this.isEnabled()) {
  2362. a = a || window.event;
  2363. var b = a.changedTouches;
  2364. "undefined" !== b && 1 == b.length && "click" == this.ya.getAttribute("data-click") && (b = (b[0].pageX - this.pb(this.ya).left) / this.Xa.offsetWidth * 100,
  2365. 100 < b ? b = 100 : 0 > b && (b = 0),
  2366. this.Ya = b,
  2367. this.Ka.style.width = b + "%");
  2368. a.preventDefault();
  2369. return !1
  2370. }
  2371. }
  2372. ;
  2373. E.fi = function(a) {
  2374. if (this.isEnabled()) {
  2375. a = a || window.event;
  2376. var b = (a.pageX - this.pb(this.Xa).left) / this.Xa.offsetWidth * 100;
  2377. 100 < b ? b = 100 : 0 > b && (b = 0);
  2378. var d = this.Ea(b / 100 * this.a.H());
  2379. this.w.querySelector(".pb-time-position").style.left = b + "%";
  2380. b = this.w.querySelector(".pb-time-container");
  2381. null != b && (b.innerHTML = d);
  2382. a.preventDefault();
  2383. return !1
  2384. }
  2385. }
  2386. ;
  2387. E.ii = function(a) {
  2388. if (this.isEnabled()) {
  2389. a = a || window.event;
  2390. var b = a.changedTouches;
  2391. if ("undefined" !== b && 1 == b.length) {
  2392. this.yb.Ca() && (this.a.j.B() && (this.ob = !0),
  2393. this.lc());
  2394. var d = (b[0].pageX - this.pb(this.Xa).left) / this.Xa.offsetWidth * 100;
  2395. 100 < d ? d = 100 : 0 > d && (d = 0);
  2396. b = this.Ea(d / 100 * this.a.H());
  2397. this.w.querySelector(".pb-time-position").style.left = d + "%";
  2398. d = this.w.querySelector(".pb-time-container");
  2399. null != d && (d.innerHTML = b)
  2400. }
  2401. a.preventDefault();
  2402. return !1
  2403. }
  2404. }
  2405. ;
  2406. E.Ub = function() {
  2407. -1 === this.$a.className.indexOf("pb-play-pause") ? (this.$a.m("pb-play-pause"),
  2408. this.a.J.Ja() ? (this.M(!0),
  2409. this.a.J.play()) : (this.M(),
  2410. this.F(!0),
  2411. this.a.ca || (this.a.X = !0))) : (this.$a.o("pb-play-pause"),
  2412. this.a.J.Ja() ? (this.qa(!0),
  2413. this.a.J.pause()) : this.qa())
  2414. }
  2415. ;
  2416. E.M = function(a) {
  2417. this.$a.D("pb-play-pause") || this.$a.m("pb-play-pause");
  2418. this.R.da() && this.R.s();
  2419. this.S.D("pb-paused") && this.S.o("pb-paused");
  2420. this.S.m("pb-playing");
  2421. u(a) && a || (this.a.O ? null != this.a.i && this.a.i.play() : this.a.play())
  2422. }
  2423. ;
  2424. E.qa = function(a) {
  2425. this.$a.D("pb-play-pause") && this.$a.o("pb-play-pause");
  2426. this.R.da() || (this.R.show(),
  2427. this.F(!1));
  2428. this.S.D("pb-playing") && this.S.o("pb-playing");
  2429. u(a) && a || (this.a.O ? null != this.a.i && this.a.i.pause() : this.a.pause())
  2430. }
  2431. ;
  2432. E.F = function(a) {
  2433. u(a) && (a ? (this.R.da() && this.R.s(),
  2434. this.W.da() || this.W.show()) : this.W.s())
  2435. }
  2436. ;
  2437. E.qj = function() {
  2438. this.a.Cd("cda.player.volume") ? this.T(this.a.Eb("cda.player.volume")) : this.T(this.Ye)
  2439. }
  2440. ;
  2441. E.T = function(a) {
  2442. a = Number(a);
  2443. !1 !== this.a.qb() && !1 === this.Yb && (a = this.a.qb());
  2444. this.ra = isNaN(a) ? this.Eg : a;
  2445. 0 == this.ra ? (this.Oc = !0,
  2446. this.Mb.D("pb-volume-mute-active") || this.Mb.m("pb-volume-mute-active")) : (this.Oc = !1,
  2447. this.Mb.D("pb-volume-mute-active") && this.Mb.o("pb-volume-mute-active"));
  2448. this.Ga.ua(this.ra + "%");
  2449. this.Ne(this.ra);
  2450. this.a.T(this.ra);
  2451. this.a.J.Ja() && this.a.J.T(this.ra, 0 == this.ra ? !0 : !1);
  2452. if (!g(this.a.i) && this.a.i.ha == this.a.i.type.wa && this.a.i.Ia)
  2453. try {
  2454. this.a.i.Cb.T(this.ra)
  2455. } catch (b) {}
  2456. }
  2457. ;
  2458. E.Ne = function(a) {
  2459. !1 !== this.a.qb() && !1 === this.Yb ? this.Yb = !0 : (0 > a ? a = 0 : 100 < a && (a = 100),
  2460. a = parseInt(a),
  2461. this.a.Ac("cda.player.volume", a, 7))
  2462. }
  2463. ;
  2464. E.ic = function(a) {
  2465. 0 > a ? a = 0 : 100 < a && (a = 100);
  2466. this.Ra = a;
  2467. this.je.ua(this.Ra + "%")
  2468. }
  2469. ;
  2470. E.Ci = function() {
  2471. this.Ga.setAttribute("data-click", "none");
  2472. if (!1 === this.Oc && !1 === this.Mb.D("pb-volume-mute-active")) {
  2473. if (this.Oc = !0,
  2474. this.Mb.m("pb-volume-mute-active"),
  2475. this.Ga.ua("0%"),
  2476. this.Ne(0),
  2477. this.a.T(0),
  2478. this.a.J.Ja() && this.a.J.T(0, !0),
  2479. !g(this.a.i) && this.a.i.ha == this.a.i.type.wa && this.a.i.Ia)
  2480. try {
  2481. this.a.i.Cb.T(0)
  2482. } catch (a) {}
  2483. } else if (0 >= this.ra && (this.ra = this.Eg),
  2484. this.Oc = !1,
  2485. this.Mb.o("pb-volume-mute-active"),
  2486. this.Ga.ua(this.ra + "%"),
  2487. this.Ne(this.ra),
  2488. this.a.T(this.ra),
  2489. this.a.J.Ja() && this.a.J.T(this.ra, !1),
  2490. !g(this.a.i) && this.a.i.ha == this.a.i.type.wa && this.a.i.Ia)
  2491. try {
  2492. this.a.i.Cb.T(this.ra)
  2493. } catch (a) {}
  2494. }
  2495. ;
  2496. E.Di = function(a) {
  2497. a = a || window.event;
  2498. if ("undefined" === typeof a.which || 1 == a.which) {
  2499. this.Ga.setAttribute("data-click", "click");
  2500. var b = (a.pageX - this.Db.xd().left) / (this.Db.gb() - 1) * 100;
  2501. 100 < b ? b = 100 : 0 > b && (b = 0);
  2502. this.T(b);
  2503. a.preventDefault();
  2504. return !1
  2505. }
  2506. }
  2507. ;
  2508. E.Fi = function(a) {
  2509. a = a || window.event;
  2510. if ("undefined" === typeof a.which || 1 == a.which)
  2511. return this.Ga.setAttribute("data-click", "none"),
  2512. a.preventDefault(),
  2513. !1
  2514. }
  2515. ;
  2516. E.Ei = function(a) {
  2517. a = a || window.event;
  2518. if ("undefined" === typeof a.which || 1 == a.which) {
  2519. if ("click" == this.Ga.getAttribute("data-click")) {
  2520. var b = (a.pageX - this.Ga.xd().left) / (this.Db.gb() - 1) * 100;
  2521. 100 < b ? b = 100 : 0 > b && (b = 0);
  2522. this.ra = b;
  2523. this.T(b)
  2524. }
  2525. a.preventDefault();
  2526. return !1
  2527. }
  2528. }
  2529. ;
  2530. E.Jk = function(a) {
  2531. a = a || window.event;
  2532. var b = a.changedTouches;
  2533. "undefined" !== b && 1 == b.length && (this.Ga.setAttribute("data-click", "click"),
  2534. b = (b[0].pageX - this.Ga.xd().left) / (this.Db.gb() - 1) * 100,
  2535. 100 < b ? b = 100 : 0 > b && (b = 0),
  2536. this.T(b));
  2537. a.preventDefault();
  2538. return !1
  2539. }
  2540. ;
  2541. E.Hk = function(a) {
  2542. a = a || window.event;
  2543. this.Ga.setAttribute("data-click", "none");
  2544. a.preventDefault();
  2545. return !1
  2546. }
  2547. ;
  2548. E.Ik = function(a) {
  2549. a = a || window.event;
  2550. var b = a.changedTouches;
  2551. "undefined" !== b && 1 == b.length && "click" == this.Ga.getAttribute("data-click") && (b = (b[0].pageX - this.Ga.xd().left) / (this.Db.gb() - 1) * 100,
  2552. 100 < b ? b = 100 : 0 > b && (b = 0),
  2553. this.ra = b,
  2554. this.T(b));
  2555. a.preventDefault();
  2556. return !1
  2557. }
  2558. ;
  2559. E.Bi = function() {
  2560. this.Ga.setAttribute("data-click", "none");
  2561. 100 === this.ra ? this.T(0) : this.T(100)
  2562. }
  2563. ;
  2564. E.gc = function() {
  2565. this.R.da() && (this.a.O ? this.M() : (this.a.ca && this.a.G !== this.a.state.mb || (this.a.X = !0),
  2566. this.a.J.Ja() ? (this.M(!0),
  2567. this.a.J.play()) : (this.M(),
  2568. this.F(!0))))
  2569. }
  2570. ;
  2571. E.Gk = function() {
  2572. 0 < this.pb(this.a.contextMenu).width && 0 < this.pb(this.a.contextMenu).height ? this.a.contextMenu.s() : null === this.a.ma && this.view.Tb(this.view.R) && (this.a.G === this.a.state.mb && (this.a.X = !0),
  2573. (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa) && this.M())
  2574. }
  2575. ;
  2576. E.Yh = function(a) {
  2577. a = a || window.event;
  2578. switch (a.keyCode) {
  2579. case 32:
  2580. if (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa)
  2581. 0 == this.a.video.paused ? this.qa() : this.M();
  2582. a.preventDefault();
  2583. break;
  2584. case 27:
  2585. this.a.Ca() && (this.Kd(),
  2586. this.Ue());
  2587. a.preventDefault();
  2588. break;
  2589. case 39:
  2590. (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa) && this.a.cj(this.a.Gf());
  2591. a.preventDefault();
  2592. break;
  2593. case 37:
  2594. (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa) && this.a.dj(this.a.Gf());
  2595. a.preventDefault();
  2596. break;
  2597. case 116:
  2598. location.reload()
  2599. }
  2600. return !1
  2601. }
  2602. ;
  2603. E.Jj = function(a) {
  2604. return 3 * (1 - a) * (1 - a) * (1 - a) * (1 - a) + 1
  2605. }
  2606. ;
  2607. E.yc = function() {
  2608. if (!this.a.O) {
  2609. if (0 <= this.a.H() && -1 === this.a.Dc) {
  2610. var a = this.a.video;
  2611. if ("undefined" !== a.buffered && 0 < a.buffered.length && "undefined" !== a.buffered.end) {
  2612. var b = a.buffered.length - 1;
  2613. -1 < this.a.Oe && (b = this.a.mh(this.a.Oe));
  2614. a.buffered.end(b);
  2615. var d = this.a.H()
  2616. , e = this.a.$();
  2617. this.Ra = a.buffered.end(b) / d * 100;
  2618. this.Ra < e / d * 100 + 2 && (this.Ra = e / d * 100 + 2);
  2619. this.Ra = Math.ceil(10 * this.Ra) / 10
  2620. } else
  2621. this.Ra = "undefined" !== a.yf && 0 < a.yf && "undefined" !== a.Ij ? a.Hj / a.yf : 0
  2622. }
  2623. 0 > this.Ra ? this.Ra = 0 : 100 < this.Ra && (this.Ra = 100);
  2624. this.je.ua(this.Ra + "%")
  2625. }
  2626. }
  2627. ;
  2628. E.hg = function() {
  2629. this.W.s();
  2630. this.a.G != this.a.state.U ? this.R.show() : this.R.s()
  2631. }
  2632. ;
  2633. E.Fe = function() {
  2634. 0 <= this.a.H() && !1 === this.a.O && (this.vd.innerHTML = this.Ea(this.a.H()))
  2635. }
  2636. ;
  2637. E.Ge = function() {
  2638. 0 <= this.a.H() && !1 === this.a.O && (this.vd.innerHTML = this.Ea(this.a.H()))
  2639. }
  2640. ;
  2641. E.Wc = function() {
  2642. (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa) && this.W.show()
  2643. }
  2644. ;
  2645. E.Ib = function() {}
  2646. ;
  2647. E.zc = function() {
  2648. this.Ca && !this.view.D(this.view.w, "pb-nocontrols") && null === this.Z && (this.a.j.B() && (this.ob = !1),
  2649. this.Wd())
  2650. }
  2651. ;
  2652. E.sb = function() {}
  2653. ;
  2654. E.Vc = function() {
  2655. this.yc();
  2656. this.W.da() && this.W.s();
  2657. "undefined" === this.a.video.currentTime || isNaN(this.a.video.currentTime) || (this.a.currentTime = this.a.video.currentTime);
  2658. this.dc && this.Ka.ua(100 / this.a.H() * this.a.currentTime + "%");
  2659. this.currentTime.innerHTML = this.Ea(this.a.currentTime)
  2660. }
  2661. ;
  2662. E.Wd = function() {
  2663. null !== this.Z && (window.clearTimeout(this.Z),
  2664. this.Z = null);
  2665. var a = this;
  2666. this.Z = window.setTimeout(function() {
  2667. a.ob || a.w.m("pb-nocontrols")
  2668. }, 2E3)
  2669. }
  2670. ;
  2671. E.lc = function() {
  2672. window.clearTimeout(this.Z);
  2673. this.Z = null;
  2674. this.w.o("pb-nocontrols")
  2675. }
  2676. ;
  2677. E.Ai = function(a) {
  2678. if (this.Vf !== a.clientX || this.Wf !== a.clientY)
  2679. this.lc(),
  2680. this.Ca && this.a.G === this.a.state.U ? !1 === this.ob ? this.w.D("pb-nocontrols") || null !== this.Z ? this.w.o("pb-nocontrols") : this.Wd() : this.lc() : this.lc();
  2681. this.Vf = a.clientX;
  2682. this.Wf = a.clientY
  2683. }
  2684. ;
  2685. E.Hi = function() {
  2686. !0 === this.Nb && (0 <= this.a.H() && -1 != this.Ya && this.a.Ma(this.Ya / 100 * this.a.H()),
  2687. this.ya.setAttribute("data-click", "none"),
  2688. this.Nb = !1,
  2689. this.dc = !0,
  2690. this.S.D("pb-bar-seeking") && this.S.o("pb-bar-seeking"),
  2691. this.S.m("pb-bar-no-seeking"))
  2692. }
  2693. ;
  2694. E.Sh = function() {
  2695. !0 === this.Nb && (0 <= this.a.H() && -1 != this.Ya && this.a.Ma(this.Ya / 100 * this.a.H()),
  2696. this.ya.setAttribute("data-click", "none"),
  2697. this.Nb = !1,
  2698. this.dc = !0,
  2699. this.S.D("pb-bar-seeking") && this.S.o("pb-bar-seeking"),
  2700. this.S.m("pb-bar-no-seeking"))
  2701. }
  2702. ;
  2703. E.Rh = function() {}
  2704. ;
  2705. E.ri = function() {
  2706. var a = this.view.sa(".pb-settings-autoplay", this.ea)
  2707. , b = this.a.ba.Eb("cda.player.autoplay");
  2708. 1 === Number(b) && this.view.m(a, "pb-active");
  2709. a = this.view.sa(".pb-settings-nextvideo", this.ea);
  2710. !0 === window.nextVideoEnabled ? !1 === this.view.D(a, "pb-active") && this.view.m(a, "pb-active") : this.view.o(a, "pb-active");
  2711. this.ea.D("pb-settings-menu-on") ? (this.ea.o("pb-settings-menu-on"),
  2712. this.ea.m("pb-settings-menu-off")) : (this.ea.m("pb-settings-menu-on"),
  2713. this.ea.o("pb-settings-menu-off"))
  2714. }
  2715. ;
  2716. E.pg = function() {
  2717. if (this.view.Tb(this.view.contextMenu))
  2718. this.view.s(this.view.contextMenu);
  2719. else if (this.view.D(this.view.ea, "pb-settings-menu-on"))
  2720. this.view.o(this.view.ea, "pb-settings-menu-on"),
  2721. this.view.m(this.view.ea, "pb-settings-menu-off");
  2722. else if (this.view.vc.D("pb-box-info-open"))
  2723. this.xe();
  2724. else if (this.a.ca || (this.a.X = !0,
  2725. this.a.j.B() ? this.a.O && !g(this.a.i) && (this.a.i.Jf() || this.a.i.Kf()) && this.F(!0) : this.F(!0)),
  2726. this.a.J.Ja())
  2727. this.a.G != this.a.state.mb && this.a.G != this.a.state.wb || !this.R.da() ? (this.qa(!0),
  2728. this.a.J.pause()) : (this.M(!0),
  2729. this.a.J.play());
  2730. else if (this.a.O)
  2731. this.R.da() ? this.a.j.B() ? g(this.a.i) || !this.a.i.Jf() && !this.a.i.Kf() || this.M() : this.M() : g(this.a.i) || this.a.i.click();
  2732. else if (null === this.a.ma)
  2733. if (this.a.j.B() && !this.a.A && this.Ca)
  2734. if (this.w.D("pb-nocontrols")) {
  2735. this.w.o("pb-nocontrols");
  2736. var a = this;
  2737. clearTimeout(this.Z);
  2738. this.Z = setTimeout(function() {
  2739. a.w.m("pb-nocontrols")
  2740. }, 3E3)
  2741. } else
  2742. this.a.G === this.a.state.U ? (this.a.pause(),
  2743. clearTimeout(this.Z),
  2744. this.Z = null) : this.a.G === this.a.state.wb && (this.a.resume(),
  2745. a = this,
  2746. clearTimeout(this.Z),
  2747. this.Z = setTimeout(function() {
  2748. a.w.m("pb-nocontrols")
  2749. }, 3E3));
  2750. else
  2751. switch (this.a.G) {
  2752. case this.a.state.U:
  2753. if (this.a.J.Ja()) {
  2754. this.qa(!0);
  2755. this.a.J.pause();
  2756. break
  2757. }
  2758. this.qa();
  2759. break;
  2760. case this.a.state.wb:
  2761. if (this.a.J.Ja()) {
  2762. this.M(!0);
  2763. this.a.J.play();
  2764. break
  2765. }
  2766. this.M();
  2767. break;
  2768. case this.a.state.mb:
  2769. this.a.X = !0,
  2770. (g(this.a.i) || !g(this.a.i) && this.a.i.ha != this.a.i.type.wa) && this.M()
  2771. }
  2772. }
  2773. ;
  2774. E.si = function(a) {
  2775. switch (parseInt(a.target.parentNode.getAttribute("item"))) {
  2776. case 1:
  2777. !1 === this.view.D(a.target.parentNode, "pb-active") ? (this.view.m(a.target.parentNode, "pb-active"),
  2778. this.a.Gd = !1,
  2779. this.a.Gb = !0,
  2780. this.a.loop && (a = this.view.sa(".pb-settings-loop", this.ea),
  2781. this.view.o(a, "pb-active"),
  2782. this.a.loop = !1)) : this.view.o(a.target.parentNode, "pb-active");
  2783. !1 === this.ba.Ae(window.switchNextVideo) && window.switchNextVideo();
  2784. break;
  2785. case 2:
  2786. !1 === this.view.D(a.target.parentNode, "pb-active") ? (this.view.m(a.target.parentNode, "pb-active"),
  2787. this.a.loop = !0,
  2788. this.a.Gb && window.nextVideoEnabled && !1 === this.ba.Ae(window.switchNextVideo) && window.switchNextVideo(),
  2789. !1 === this.a.O && this.a.ended && this.a.play()) : (this.a.loop = !1,
  2790. this.view.o(a.target.parentNode, "pb-active"));
  2791. break;
  2792. case 3:
  2793. this.a.G === this.a.state.U && this.a.pause();
  2794. a = "";
  2795. this.a.Lc() ? a = "http://www.cda.pl/kontakt" : this.a.Mc() && (a = "http://superfilm.pl/kontakt");
  2796. "" != a && window.open(a, "_blank").focus();
  2797. break;
  2798. case 4:
  2799. !1 === this.view.D(a.target.parentNode, "pb-active") ? (this.view.m(a.target.parentNode, "pb-active"),
  2800. this.a.ba.Ac("cda.player.autoplay", 1, 365)) : (this.view.o(a.target.parentNode, "pb-active"),
  2801. this.a.ba.Ac("cda.player.autoplay", 0, 365));
  2802. break;
  2803. case 5:
  2804. Array.prototype.slice.call(a.target.parentNode.parentNode.querySelectorAll("li"), 0).forEach(function(a) {
  2805. a.o("pb-active")
  2806. }, this);
  2807. this.Aa.o("pb-stretching-expanded");
  2808. this.Aa.o("pb-stretching-full");
  2809. this.Aa.o("pb-stretching-oryginal");
  2810. this.Aa.m("pb-stretching-expanded");
  2811. a.target.parentNode.m("pb-active");
  2812. break;
  2813. case 6:
  2814. Array.prototype.slice.call(a.target.parentNode.parentNode.querySelectorAll("li"), 0).forEach(function(a) {
  2815. a.o("pb-active")
  2816. }, this);
  2817. this.Aa.o("pb-stretching-expanded");
  2818. this.Aa.o("pb-stretching-full");
  2819. this.Aa.o("pb-stretching-oryginal");
  2820. a.target.parentNode.m("pb-active");
  2821. break;
  2822. case 7:
  2823. Array.prototype.slice.call(a.target.parentNode.parentNode.querySelectorAll("li"), 0).forEach(function(a) {
  2824. a.o("pb-active")
  2825. }, this);
  2826. this.Aa.o("pb-stretching-expanded");
  2827. this.Aa.o("pb-stretching-full");
  2828. this.Aa.o("pb-stretching-oryginal");
  2829. this.Aa.m("pb-stretching-full");
  2830. a.target.parentNode.m("pb-active");
  2831. break;
  2832. case 8:
  2833. Array.prototype.slice.call(a.target.parentNode.parentNode.querySelectorAll("li"), 0).forEach(function(a) {
  2834. a.o("pb-active")
  2835. }, this),
  2836. this.Aa.o("pb-stretching-expanded"),
  2837. this.Aa.o("pb-stretching-full"),
  2838. this.Aa.o("pb-stretching-oryginal"),
  2839. this.Aa.m("pb-stretching-oryginal"),
  2840. a.target.parentNode.m("pb-active")
  2841. }
  2842. }
  2843. ;
  2844. E.Cf = function() {
  2845. this.ob = !1
  2846. }
  2847. ;
  2848. E.Bf = function() {
  2849. this.lc();
  2850. this.ob = !0
  2851. }
  2852. ;
  2853. E.gg = function(a) {
  2854. /pb/.test(a.target.className) || null !== a.target.parentNode && /pb/.test(a.target.parentNode.className) || (this.view.Tb(this.view.contextMenu) ? this.view.s(this.view.contextMenu) : this.view.D(this.view.ea, "pb-settings-menu-on") && (this.view.o(this.view.ea, "pb-settings-menu-on"),
  2855. this.view.m(this.view.ea, "pb-settings-menu-off")))
  2856. }
  2857. ;
  2858. E.ng = function() {
  2859. this.view.D(this.view.ea, "pb-settings-menu-on") && (this.view.o(this.view.ea, "pb-settings-menu-on"),
  2860. this.view.m(this.view.ea, "pb-settings-menu-off"))
  2861. }
  2862. ;
  2863. E.ci = function() {
  2864. this.Kd();
  2865. document.querySelector(".btn-fullscreen").s();
  2866. this.R.focus();
  2867. this.w.m("pb-nocontrols-absolute")
  2868. }
  2869. ;
  2870. E.th = function() {
  2871. this.view.vc.o("pb-box-info-close");
  2872. this.view.vc.m("pb-box-info-open");
  2873. this.view.vc.m("pb-box-info-for-fullscreen");
  2874. this.view.yd.Sa("Tryb pe\u0142noekranowy jest niedost\u0119pny na Twoim urz\u0105dzeniu.")
  2875. }
  2876. ;
  2877. E.xe = function() {
  2878. this.view.vc.o();
  2879. this.view.vc.m("pb-box-info");
  2880. this.view.yd.Sa("")
  2881. }
  2882. ;
  2883. E.Ld = function() {
  2884. this.xe();
  2885. g(window.frameElement) && window.self == window.top || this.a.pause()
  2886. }
  2887. ;
  2888. function H() {}
  2889. H.prototype.bind = function(a, b) {
  2890. return function() {
  2891. b.apply(a, b)
  2892. }
  2893. }
  2894. ;
  2895. function I(a, b, d, e) {
  2896. if ("undefined" === typeof a || null === a)
  2897. return !1;
  2898. if ("function" === typeof a.addEventListener)
  2899. return a.addEventListener(b, a = function(a) {
  2900. d.call(e, a)
  2901. }
  2902. , !1),
  2903. a;
  2904. if ("function" === typeof a.attachEvent)
  2905. return a.attachEvent("on" + b, a = function(a) {
  2906. d.call(e, a)
  2907. }
  2908. , !1),
  2909. a
  2910. }
  2911. function K(a, b, d) {
  2912. "undefined" !== typeof a && null !== a && ("function" === typeof a.removeEventListener && a.removeEventListener(b, d, !1),
  2913. "function" === typeof a.detachEvent && a.detachEvent("on" + b, d, !1))
  2914. }
  2915. ;var ia = {
  2916. mb: 0,
  2917. U: 1,
  2918. wb: 2,
  2919. Bj: 3,
  2920. cf: 4,
  2921. gf: 5,
  2922. Xb: 10,
  2923. Zd: 11,
  2924. nc: 12
  2925. };
  2926. function ha(a, b, d) {
  2927. 0 < arguments.length ? (this.view = a,
  2928. this.Zg = b,
  2929. this.jh = d) : this.view = null;
  2930. this.I = {
  2931. ih: "requestFullscreen requestFullScreen mozRequestFullScreen webkitRequestFullscreen webkitEnterFullscreen msRequestFullscreen".split(" "),
  2932. fb: "exitFullscreen exitFullScreen cancelFullscreen mozCancelFullScreen webkitCancelFullscreen webkitExitFullscreen msExitFullscreen".split(" "),
  2933. enabled: ["fullscreenEnabled", "fullScreenEnabled", "mozFullScreenEnabled", "webkitFullscreenEnabled", "msFullscreenEnabled"],
  2934. element: "fullscreenElement fullScreenElement mozFullScreenElement webkitFullscreenElement webkitCurrentFullScreenElement msFullscreenElement".split(" "),
  2935. Rb: ["fullscreenchange", "mozfullscreenchange", "webkitfullscreenchange", "MSFullscreenChange"],
  2936. error: ["fullscreenerror", "mozfullscreenerror", "webkitfullscreenerror", "MSFullscreenError"],
  2937. is: "fullscreen fullScreen webkitIsFullScreen webkitIsFullscreen mozFullScreen msFullscreenElement".split(" "),
  2938. rh: ["webkitbeginfullscreen", "webkitendfullscreen"]
  2939. };
  2940. this.C = null;
  2941. this.ie = {
  2942. kl: {
  2943. is: "fullscreen",
  2944. enabled: "fullscreenEnabled",
  2945. element: "fullscreenElement",
  2946. request: "requestFullscreen",
  2947. fb: "exitFullscreen",
  2948. I: {
  2949. Rb: "fullscreenchange",
  2950. error: "fullscreenerror"
  2951. }
  2952. },
  2953. webkit: {
  2954. is: "webkitIsFullScreen",
  2955. enabled: "webkitFullscreenEnabled",
  2956. element: "webkitFullscreenElement",
  2957. request: "webkitRequestFullscreen",
  2958. fb: "webkitExitFullscreen",
  2959. I: {
  2960. Rb: "webkitfullscreenchange",
  2961. error: "webkitfullscreenerror"
  2962. }
  2963. },
  2964. ll: {
  2965. is: "webkitIsFullScreen",
  2966. enabled: "webkitFullscreenEnabled",
  2967. element: "webkitCurrentFullScreenElement",
  2968. request: "webkitRequestFullScreen",
  2969. fb: "webkitCancelFullScreen",
  2970. I: {
  2971. Rb: "webkitfullscreenchange",
  2972. error: "webkitfullscreenerror"
  2973. }
  2974. },
  2975. uk: {
  2976. is: "mozFullScreen",
  2977. enabled: "mozFullScreenEnabled",
  2978. element: "mozFullScreenElement",
  2979. request: "mozRequestFullScreen",
  2980. fb: "mozCancelFullScreen",
  2981. I: {
  2982. Rb: "mozfullscreenchange",
  2983. error: "mozfullscreenerror"
  2984. }
  2985. },
  2986. vk: {
  2987. is: "",
  2988. enabled: "msFullscreenEnabled",
  2989. element: "msFullscreenElement",
  2990. request: "msRequestFullscreen",
  2991. fb: "msExitFullscreen",
  2992. I: {
  2993. Rb: "MSFullscreenChange",
  2994. error: "MSFullscreenError"
  2995. }
  2996. },
  2997. Fj: {
  2998. is: "webkitDisplayingFullscreen",
  2999. enabled: "webkitSupportsFullscreen",
  3000. element: "webkitFullscreenElement",
  3001. request: "webkitEnterFullscreen",
  3002. fb: "webkitExitFullscreen",
  3003. I: {
  3004. Rb: "webkitbeginfullscreen webkitendfullscreen",
  3005. error: "webkitfullscreenerror"
  3006. }
  3007. }
  3008. };
  3009. for (var e in this.ie)
  3010. if (this.ie[e].enabled in window.document) {
  3011. this.C = this.ie[e];
  3012. break
  3013. }
  3014. this.userAgent = window.navigator.userAgent;
  3015. this.j = {
  3016. chrome: /Chrome/.test(this.userAgent),
  3017. Oj: /Firefox/.test(this.userAgent),
  3018. opera: /Opera/.test(this.userAgent),
  3019. wk: /MSIE/.test(this.userAgent),
  3020. Ej: /Android/.test(this.userAgent),
  3021. rh: /iP(hone|od|ad)/.test(this.userAgent)
  3022. };
  3023. this.view.f(".pb-video-player-wrap");
  3024. this.timeout = null;
  3025. this.la()
  3026. }
  3027. E = ha.prototype;
  3028. E.la = function() {
  3029. try {
  3030. t(this.C.I.Rb) && I(window.document, this.C.I.Rb, this.Ph, this),
  3031. t(this.C.I.error) && I(window.document, this.C.I.error, this.Tc, this)
  3032. } catch (a) {
  3033. console.log(a)
  3034. }
  3035. }
  3036. ;
  3037. E.Ph = function(a) {
  3038. this.Zg(a)
  3039. }
  3040. ;
  3041. E.Tc = function(a) {
  3042. this.jh(a)
  3043. }
  3044. ;
  3045. E.request = E.ih = function() {
  3046. if (g(this.C))
  3047. return !1;
  3048. try {
  3049. return this.view.w[this.C.request](),
  3050. !0
  3051. } catch (a) {
  3052. return console.log(a),
  3053. !1
  3054. }
  3055. }
  3056. ;
  3057. E.fb = function() {
  3058. if (g(this.C))
  3059. return !1;
  3060. try {
  3061. return window.document[this.C.fb](),
  3062. !0
  3063. } catch (a) {
  3064. console.log(a)
  3065. }
  3066. return !1
  3067. }
  3068. ;
  3069. E.is = E.Ca = function() {
  3070. if (g(this.C))
  3071. return !1;
  3072. try {
  3073. if ("" != this.C.is)
  3074. return window.document[this.C.is]
  3075. } catch (a) {
  3076. console.log(a)
  3077. }
  3078. return !1
  3079. }
  3080. ;
  3081. E.enabled = E.isEnabled = function() {
  3082. if (g(this.C))
  3083. return !1;
  3084. try {
  3085. return this.view.m(this.view.w, "pb-video-full"),
  3086. window.document[this.C.enabled]
  3087. } catch (a) {
  3088. console.log(a)
  3089. }
  3090. return !1
  3091. }
  3092. ;
  3093. E.sa = E.element = function() {
  3094. if (g(this.C))
  3095. return !1;
  3096. try {
  3097. return window.document[this.C.element]
  3098. } catch (a) {
  3099. console.log(a)
  3100. }
  3101. return !1
  3102. }
  3103. ;
  3104. function ja() {
  3105. this.Fd = ea();
  3106. this.l = da();
  3107. this.j = -1;
  3108. this.ka = {
  3109. af: "CHROME",
  3110. bf: "FIREFOX",
  3111. Ig: "FIREFOX_MOBILE",
  3112. ef: "OPERA",
  3113. Jg: "OPERA_MOBILE",
  3114. Lg: "SAFARI",
  3115. df: "MSIE",
  3116. Hg: "EDGE",
  3117. $e: "ANDROID",
  3118. Gg: "APPLE",
  3119. Ng: "TV",
  3120. Og: "TV_CONSOLE",
  3121. Kg: "OTHER",
  3122. wj: "DESKTOP"
  3123. };
  3124. this.ug()
  3125. }
  3126. E = ja.prototype;
  3127. E.ug = function() {
  3128. this.j = this.Ta() ? this.ka.Ng : this.Fh() ? this.ka.Og : this.Sf() ? this.ka.Jg : this.Bh() ? this.ka.Ig : this.wc() ? this.ka.$e : this.Bd() ? this.ka.Gg : this.Nf() ? this.ka.af : this.Pf() ? this.ka.bf : this.Ed() ? this.ka.ef : this.Eh() ? this.ka.Lg : this.Dh() ? this.ka.df : this.Ah() ? this.ka.Hg : this.ka.Kg
  3129. }
  3130. ;
  3131. E.Ef = function() {
  3132. -1 === this.j && this.ug();
  3133. return this.j
  3134. }
  3135. ;
  3136. E.Ta = function() {
  3137. return B(this.l, "SMART-TV") || B(this.l, "SmartTV") || B(this.l, "SmartTvA") || B(this.l, "Maple") || B(this.l, "Opera TV") || B(this.l, "NetCast.TV") || B(this.l, "AppleTV") || B(this.l, "GoogleTV") || B(this.l, "HbbTV") || B(this.l, "CrKey") || B(this.l, "POV_TV") || B(this.l, "GTV100") || B(this.l, "STB") || B(this.l, "NETTV") || B(this.l, "PhilipsTV") || B(this.l, "Roku") || B(this.l, "Viera") || B(this.l, "PlayStation") || B(this.l, "Xbox") || B(this.l, "BRAVIA") || B(this.l, "HYUNDAI") || B(this.l, "Hisense") || B(this.l, "Tizen") || B(this.l, "SRAF") || B(this.l, "Linux; U")
  3138. }
  3139. ;
  3140. E.Fh = function() {
  3141. return B(this.l, "PlayStation") || B(this.l, "Xbox") || B(this.l, "Nintendo WiiU")
  3142. }
  3143. ;
  3144. E.Nf = function() {
  3145. return A(this.l, "Chrome") && A(this.Fd.vendor, "Google Inc") && 0 == A(this.l, "OPR/")
  3146. }
  3147. ;
  3148. E.Pf = function() {
  3149. return A(this.l, "Firefox")
  3150. }
  3151. ;
  3152. E.Ed = function() {
  3153. return A(this.l, "Opera") || A(this.l, "OPR/")
  3154. }
  3155. ;
  3156. E.Eh = function() {
  3157. return A(this.l, "Safari") && 0 == A(this.l, "Chrome") && 0 == A(this.l, "Mobile")
  3158. }
  3159. ;
  3160. E.Dh = function() {
  3161. return A(this.l, "MSIE") || A(this.l, "Trident")
  3162. }
  3163. ;
  3164. E.Ah = function() {
  3165. return A(this.l, "Edge")
  3166. }
  3167. ;
  3168. E.wc = function() {
  3169. return A(this.l, "Android")
  3170. }
  3171. ;
  3172. E.jk = function() {
  3173. return A(this.l, "iPhone")
  3174. }
  3175. ;
  3176. E.Bd = function() {
  3177. return /iP(hone|ad|od)/.test(this.l)
  3178. }
  3179. ;
  3180. E.Ch = function() {
  3181. return A(this.l, "iPad")
  3182. }
  3183. ;
  3184. E.Uf = function() {
  3185. return B(this.l, "iemobile") || B(this.l, "windows phone") && B(this.l, "edge") || A(this.l, " WPDesktop")
  3186. }
  3187. ;
  3188. E.Sf = function() {
  3189. return this.Ed() && A(this.l, "Mobile")
  3190. }
  3191. ;
  3192. E.Bh = function() {
  3193. return this.Pf() && A(this.l, "Mobile")
  3194. }
  3195. ;
  3196. E.Mf = function() {
  3197. return A(this.l, "BlackBerry")
  3198. }
  3199. ;
  3200. E.wh = function() {
  3201. return A(this.l, "ALCATEL")
  3202. }
  3203. ;
  3204. E.B = function() {
  3205. return this.wc() || this.Bd() || this.Uf() || this.Mf()
  3206. }
  3207. ;
  3208. E.zh = function() {
  3209. return A(this.l, "CrKey")
  3210. }
  3211. ;
  3212. E.Uj = function() {
  3213. switch (this.Ef()) {
  3214. case this.ka.af:
  3215. return C(this.l, /Chrome\/([0-9.]+)/);
  3216. case this.ka.bf:
  3217. return C(this.l, /Firefox\/([0-9.]+)/);
  3218. case this.ka.ef:
  3219. return A(this.l, "OPR") ? C(this.l, /OPR\/([0-9.]+)/) : A(this.l, "Version") ? C(this.l, /Version\/([0-9.]+)/) : C(this.l, /Opera\s+([0-9]+)/);
  3220. case this.ka.xj:
  3221. return C(this.l, /Version\/([0-9.]+)/);
  3222. case this.ka.df:
  3223. return C(this.l, /MSIE\s+([0-9.]+)/);
  3224. case this.ka.$e:
  3225. return C(this.l, /Android\s([0-9\.]*)/);
  3226. default:
  3227. return A(this.l, "Version") ? C(this.l, /Version\/([0-9.]+)/) : ""
  3228. }
  3229. }
  3230. ;
  3231. E.ph = function() {
  3232. try {
  3233. var a = /AppleWebKit\/([\d.]+)/.exec(this.l);
  3234. if (a)
  3235. return parseFloat(a[1])
  3236. } catch (b) {}
  3237. return !1
  3238. }
  3239. ;
  3240. E.Nc = function() {
  3241. try {
  3242. var a = this.ph();
  3243. if (!g(a) && !1 !== a && 537 > a)
  3244. return !0
  3245. } catch (b) {}
  3246. return !1
  3247. }
  3248. ;
  3249. E.rk = function() {
  3250. return /Windows/.test(this.Fd.platform)
  3251. }
  3252. ;
  3253. E.kk = function() {
  3254. return /Linux/.test(this.Fd.platform)
  3255. }
  3256. ;
  3257. E.xh = function() {
  3258. return this.wc() ? A(this.l, "Mozilla/5.0") && A(this.l, "Android ") && A(this.l, "Version/") && A(this.l, "AppleWebKit") && !this.Sf() : !1
  3259. }
  3260. ;
  3261. E.qe = function() {
  3262. if (this.wc()) {
  3263. var a = this.l.match(/Android\s([0-9\.]*)/);
  3264. return a && a[1] ? a[1] : !1
  3265. }
  3266. return !1
  3267. }
  3268. ;
  3269. E.fk = function() {
  3270. if (this.sk()) {
  3271. var a = this.Fd.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);
  3272. return null !== a ? parseInt(a[1], 10) + ("undefined" !== typeof a[2] ? "." + parseInt(a[2], 10) + ("undefined" !== typeof a[3] ? "." + parseInt(a[3], 10) : "") : "") : -1
  3273. }
  3274. return !1
  3275. }
  3276. ;
  3277. var oa = {
  3278. Xb: 10,
  3279. Zd: 11,
  3280. nc: 12,
  3281. vj: 13,
  3282. Cj: 14,
  3283. yj: 15,
  3284. Aj: 16,
  3285. Dj: 17,
  3286. uj: 18,
  3287. tj: 19,
  3288. zj: 20
  3289. };
  3290. function O(a, b) {
  3291. if (0 >= arguments.length)
  3292. throw Error("Failed initialize Ads Manager.");
  3293. if (!p(a) || g(a))
  3294. throw new TypeError("Player reference is NULL.");
  3295. if (l(b) || g(b) || 0 >= b.length)
  3296. return this.ga();
  3297. this.b = "cda.Player.Ads.Manager";
  3298. this.type = pa;
  3299. this.error = P;
  3300. this.state = oa;
  3301. this.a = a;
  3302. this.lb = null;
  3303. this.dd = !1;
  3304. this.Oa = this.a.view.f(".pb-video-ad-container");
  3305. this.Ha = this.a.view.f(".pb-video-ad-content");
  3306. this.Cb = this.Lb = null;
  3307. this.c = b;
  3308. this.qd = b.length;
  3309. this.Bb = [];
  3310. this.Ia = !1;
  3311. this.Ic = 1;
  3312. this.xa = this.K = 0;
  3313. this.ha = -1;
  3314. this.hb = [];
  3315. this.oa = {
  3316. creativeView: [],
  3317. start: [],
  3318. firstQuartile: [],
  3319. midpoint: [],
  3320. thirdQuartile: [],
  3321. complete: []
  3322. };
  3323. this.a.log(this.b, this.c);
  3324. this.la();
  3325. if (!l(this.c[this.K]) && !g(this.c[this.K]))
  3326. try {
  3327. this.c[this.K].hasOwnProperty("displayAs") ? this.sg(this.c[this.K].displayAs) : this.sg(this.state.Xb);
  3328. var d = this.c[this.K].tag;
  3329. if (this.c[this.K].hasOwnProperty("safe")) {
  3330. var e = !!this.c[this.K].safe;
  3331. if (!g(d) && -1 !== d.indexOf("google_safe") && -1 !== d.indexOf("google_unsafe"))
  3332. try {
  3333. var f = d.match(/\x3c!--google_safe_begin--\x3e(.+?)\x3c!--google_safe_end--\x3e/i);
  3334. g(f) || l(f[1]) || !t(f[1]) || (f = f[1]);
  3335. var k = d.match(/\x3c!--google_unsafe_begin--\x3e(.+?)\x3c!--google_unsafe_end--\x3e/i);
  3336. g(k) || l(k[1]) || !t(k[1]) || (k = k[1]);
  3337. this.c[this.K].tag = e ? f : k;
  3338. this.Kc(this.c[this.K].tag) ? this.c[this.K].type = this.type.wa : this.c[this.K].type = this.type.nb;
  3339. this.a.log(this.b, "safe: " + this.Zk);
  3340. this.a.log(this.b, "googleSafeTag: " + f);
  3341. this.a.log(this.b, "googleUnsafeTag: " + k)
  3342. } catch (h) {
  3343. this.a.log(this.b, h)
  3344. }
  3345. }
  3346. switch (this.c[this.K].type) {
  3347. case this.type.nb:
  3348. this.ne(this.c[this.K].tag);
  3349. this.Xd(this.c[this.K]);
  3350. break;
  3351. case this.type.wa:
  3352. this.ne(this.c[this.K].tag);
  3353. this.Xe(this.c[this.K]);
  3354. break;
  3355. case this.type.ff:
  3356. this.Ff(this.c[this.K].tag);
  3357. break;
  3358. case this.type.gd:
  3359. this.Bg(this.c[this.K]);
  3360. break;
  3361. default:
  3362. this.ga()
  3363. }
  3364. } catch (h) {
  3365. this.a.log(this.b, h),
  3366. this.ga()
  3367. }
  3368. }
  3369. E = O.prototype = {};
  3370. E.la = function() {
  3371. g(this.a.J) || this.a.J.Ud(!1);
  3372. this.a.controls.disable();
  3373. this.a.v.fa.m("pb-nocloud");
  3374. this.a.v.s(this.a.v.Qc);
  3375. this.a.j.B() && this.a.Xc()
  3376. }
  3377. ;
  3378. E.ga = function(a) {
  3379. this.a.log(this.b, "destroy");
  3380. this.a.controls.enable();
  3381. this.a.v.show(this.a.v.Qc);
  3382. this.a.v.s(this.a.v.Ba);
  3383. this.a.v.s(this.a.v.nd);
  3384. this.a.v.fa.o("pb-run-ad");
  3385. this.a.controls.ic(0);
  3386. this.a.controls.Ka.ua("0%");
  3387. this.a.controls.ib(0);
  3388. this.a.controls.Fa(this.a.H());
  3389. this.a.j.B() && this.a.controls.Fa(0);
  3390. this.a.i = null;
  3391. this.a.O = !1;
  3392. this.Ha.innerHTML = "";
  3393. this.Oa.s();
  3394. this.a.J.la();
  3395. this.Qa !== this.state.Xb && !g(this.a.J) && this.a.J.ze() && this.a.J.Ud(!0);
  3396. if (this.a.j.B() && (this.a.zd(),
  3397. this.a.Yc(),
  3398. this.a.autoplay && !this.Ia && this.Qa != this.state.nc)) {
  3399. var b = this;
  3400. window.addEventListener("touchstart", function e() {
  3401. b.a.kb();
  3402. this.removeEventListener("touchstart", e)
  3403. })
  3404. }
  3405. this.Qa !== this.state.nc && this.a.video.load();
  3406. this.Qa === this.state.nc ? (this.a.log(this.b, "start next video"),
  3407. this.P("Startuje kolejny film"),
  3408. this.a.$c()) : !l(a) && a ? (this.a.log(this.b, "start video force"),
  3409. this.P("Startuje film"),
  3410. this.a.kb()) : this.Ia ? (this.a.log(this.b, "adsDisplay true, start video"),
  3411. this.P("Startuje film"),
  3412. this.a.kb()) : this.a.autoplay || this.a.X ? (this.a.log(this.b, "autoplay true, start video"),
  3413. this.P("Startuje film"),
  3414. this.a.kb()) : (this.a.log(this.b, "set video file"),
  3415. this.P("Wracam do filmu"),
  3416. this.a.Yc(),
  3417. (this.a.controls.W.da() || this.a.controls.$a.D("pb-play-pause")) && this.a.kb())
  3418. }
  3419. ;
  3420. E.sg = function(a) {
  3421. switch (a) {
  3422. case "prerol":
  3423. case "preroll":
  3424. this.Qa = this.state.Xb;
  3425. break;
  3426. case "midrol":
  3427. case "midroll":
  3428. this.Qa = this.state.Zd;
  3429. break;
  3430. case "postrol":
  3431. case "postroll":
  3432. this.Qa = this.state.nc;
  3433. break;
  3434. default:
  3435. this.Qa = this.state.Xb
  3436. }
  3437. this.a.od = this.Qa
  3438. }
  3439. ;
  3440. E.Rj = function() {
  3441. return this.Qa
  3442. }
  3443. ;
  3444. E.$k = function(a) {
  3445. this.od = a
  3446. }
  3447. ;
  3448. E.Qj = function() {
  3449. return this.od
  3450. }
  3451. ;
  3452. E.Ff = function(a) {
  3453. this.a.log(this.b, "getPool", a);
  3454. this.P("Pobieram pule reklam...");
  3455. this.P(a);
  3456. -1 != window.location.host.indexOf("cda.pl") && (a += "&wa=" + Number(this.a.Pc));
  3457. try {
  3458. this.rd(a, "GET", !0, !0, function(a) {
  3459. this.a.log(this.b, "getPool", a);
  3460. try {
  3461. if (!g(a)) {
  3462. var b = JSON.parse(a);
  3463. if (!g(b) && 0 < b.length) {
  3464. try {
  3465. for (this.P("Lista dost\u0119pnych reklam:"),
  3466. a = 0; a < b.length; a++)
  3467. this.P(b[a])
  3468. } catch (e) {}
  3469. this.Bb = b;
  3470. this.xa = 0;
  3471. this.ne(b);
  3472. return this.Od(this.Bb, this.xa)
  3473. }
  3474. }
  3475. } catch (e) {
  3476. this.a.log(this.b, "getPool", e),
  3477. this.P("Wyst\u0105pi\u0142 b\u0142\u0105d: " + e)
  3478. }
  3479. this.a.log(this.b, "getPool", "response null");
  3480. return this.ga()
  3481. }
  3482. .bind(this))
  3483. } catch (b) {
  3484. this.a.log(this.b, "getPool", b),
  3485. this.ga()
  3486. }
  3487. }
  3488. ;
  3489. E.Od = function(a, b) {
  3490. this.a.log(this.b, "parsePool", arguments);
  3491. this.P("Sprawdzam reklam\u0119 nr " + (b + 1));
  3492. if (t(a[b])) {
  3493. var d = {
  3494. autoplay: 0 < this.K ? !0 : this.c[this.K].autoplay,
  3495. counter: this.c[this.K].counter,
  3496. displayAs: this.c[this.K].displayAs,
  3497. key: this.c[this.K].key,
  3498. skip: this.c[this.K].skip,
  3499. click: this.c[this.K].click,
  3500. time: this.c[this.K].time,
  3501. tag: a[b]
  3502. };
  3503. this.pd && (d.autoplay = !0);
  3504. this.a.X && (d.autoplay = !0);
  3505. this.a.log(this.b, "startbyclick: " + this.a.X);
  3506. this.a.log(this.b, "autoplay: " + d.autoplay);
  3507. this.a.log(this.b, "state: " + this.a.G);
  3508. if (this.Qa == this.state.nc || this.Qa == this.state.Zd)
  3509. d.autoplay = !0;
  3510. if (this.Kc(a[b]) && !this.a.j.B())
  3511. return d.type = this.type.wa,
  3512. this.Xe(d);
  3513. if (this.Gh(a[b]) && !this.a.j.B())
  3514. return this.a.log(this.b, "youtube embed ads: " + a[b]),
  3515. this.a.log(this.b, "youtube video id: " + this.Hf(a[b])),
  3516. d.type = this.type.gd,
  3517. this.Bg(d);
  3518. d.type = this.type.nb;
  3519. return this.Xd(d)
  3520. }
  3521. return this.ga()
  3522. }
  3523. ;
  3524. E.Xd = function(a) {
  3525. this.a.log(this.b, "startVast", a);
  3526. this.P("Reklama VAST");
  3527. this.P("Pobieram: " + a.tag);
  3528. this.td(this.xa, !0);
  3529. this.ha = this.type.nb;
  3530. this.Lb = new M(this.a,this,a);
  3531. this.Lb.hc(function(a) {
  3532. this.Lb.uh(a)
  3533. }
  3534. .bind(this), function() {
  3535. this.pa(this.error.rf)
  3536. }
  3537. .bind(this))
  3538. }
  3539. ;
  3540. E.Xe = function(a) {
  3541. this.a.log(this.b, "startAdsense", a);
  3542. if (!this.qh())
  3543. return this.xa++,
  3544. this.xa < this.Bb.length ? this.Od(this.Bb, this.xa) : this.rb();
  3545. this.P("Reklama ADSENSE");
  3546. this.P("Pobieram: " + a.tag);
  3547. this.td(this.xa, !0);
  3548. this.ha = this.type.wa;
  3549. this.Cb = new N(this.a,this,a);
  3550. this.Cb.la()
  3551. }
  3552. ;
  3553. E.Bg = function(a) {
  3554. function b(a) {
  3555. h.a.controls.W.da() && (h.a.controls.F(!1),
  3556. h.a.controls.R.show());
  3557. h.a.view.fa.o("pb-ady-player-wait");
  3558. h.dd = !0;
  3559. a.target.setVolume(50)
  3560. }
  3561. function d(a) {
  3562. la || (h.Ke(),
  3563. la = !0);
  3564. a.data == window.YT.PlayerState.PLAYING && (n = window.setInterval(function() {
  3565. g(h.lb) || l(h.lb) ? (window.clearInterval(n),
  3566. n = null) : (h.Ii(h.lb.getCurrentTime(), h.lb.getDuration()),
  3567. h.ld && !w && (h.a.view.vb.show(),
  3568. h.a.view.vb.Sa("Pomi\u0144 reklam\u0119 za " + h.pc),
  3569. h.a.view.vb.style.opacity = "0.5",
  3570. w = !0,
  3571. z = window.setInterval(function() {
  3572. h.pc = 0;
  3573. 0 < h.pc ? h.a.view.vb.Sa("Pomi\u0144 reklam\u0119 za " + h.pc) : (h.a.view.vb.Sa("Pomi\u0144 reklam\u0119"),
  3574. h.a.view.vb.style.opacity = "1",
  3575. h.wf = !0,
  3576. window.clearTimeout(z),
  3577. z = null)
  3578. }, 1E3)),
  3579. h.Qg && !ma && (ma = !0,
  3580. R = null, h.a.view.cd.s()))
  3581. }, 500));
  3582. a.data == window.YT.PlayerState.ENDED && (h.na("https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=complete&t=[timestamp]"),
  3583. window.setTimeout(function() {
  3584. h.Dg()
  3585. }, 500))
  3586. }
  3587. this.a.log(this.b, "start yt", a);
  3588. this.a.view.fa.m("pb-ady-player-wait");
  3589. this.a.view.fa.m("pb-ady-player-active");
  3590. this.a.view.fa.m("pb-ady-player-show");
  3591. this.P("Reklama Youtube Embed");
  3592. this.P("Wy\u015bwietlam: " + a.tag);
  3593. this.td(this.xa, !0);
  3594. this.ha = this.type.gd;
  3595. this.ld = this.qc = this.Ab = this.zb = this.xb = !1;
  3596. this.pc = 31;
  3597. this.Qg = this.wf = !1;
  3598. this.Ec = 0;
  3599. try {
  3600. null != this.a.Fb("controls") && (this.Ec = parseInt(this.a.Fb("controls")),
  3601. r(this.Ec) || (this.Ec = 0))
  3602. } catch (ka) {
  3603. this.Ec = 0
  3604. }
  3605. try {
  3606. null != this.a.Fb("skip") && (parseInt(this.a.Fb("skip")) ? this.ld = !0 : this.ld = !1)
  3607. } catch (ka) {
  3608. this.ld = !1
  3609. }
  3610. try {
  3611. if (null != this.a.Fb("skip_sec")) {
  3612. var e = parseInt(this.a.Fb("skip_sec"));
  3613. if (!r(e) || 0 >= e || 15 < e)
  3614. e = 5;
  3615. this.pc = e
  3616. }
  3617. } catch (ka) {
  3618. this.pc = 5
  3619. }
  3620. e = document.createElement("script");
  3621. e.src = "https://www.youtube.com/iframe_api";
  3622. var f = document.getElementsByTagName("script")[0];
  3623. f.parentNode.insertBefore(e, f);
  3624. var k = this.Hf(a.tag);
  3625. if (g(k))
  3626. return this.ga();
  3627. var h = this;
  3628. window.onYouTubeIframeAPIReady = function() {
  3629. h.lb = new window.YT.Player("pb-yt-iframe",{
  3630. height: h.a.view.cc(h.a.view.w),
  3631. width: h.a.view.gb(h.a.view.w),
  3632. videoId: k,
  3633. playerVars: {
  3634. rel: 0,
  3635. showinfo: 1,
  3636. playsinline: 1,
  3637. autoplay: 0,
  3638. controls: h.Ec,
  3639. disablekb: 0,
  3640. fs: 0,
  3641. modestbranding: 1,
  3642. autohide: 1,
  3643. wmode: "opaque"
  3644. },
  3645. events: {
  3646. onReady: b,
  3647. onStateChange: d
  3648. }
  3649. })
  3650. }
  3651. ;
  3652. var h = this
  3653. , n = null
  3654. , h = this
  3655. , w = !1
  3656. , z = null
  3657. , R = null
  3658. , ma = !1
  3659. , la = !1;
  3660. this.a.view.vb.s();
  3661. I(this.a.view.vb, "click", this.Ji, this)
  3662. }
  3663. ;
  3664. E.Dg = function() {
  3665. try {
  3666. this.a.view.fa.o("pb-ady-player-show"),
  3667. this.a.view.vb.Sa(""),
  3668. this.a.view.vb.s(),
  3669. this.a.view.cd.Sa(""),
  3670. this.a.view.cd.s(),
  3671. this.lb = null,
  3672. this.dd = !1,
  3673. this.a.kb(),
  3674. this.a.view.Fg.Sa(""),
  3675. this.a.view.Fg.s()
  3676. } catch (a) {
  3677. this.a.log(this.b, a)
  3678. }
  3679. }
  3680. ;
  3681. E.Kc = function(a) {
  3682. return /ima3vpaid/.test(a) || /doubleclick.net/.test(a) || /svastx.moatads.com/.test(a)
  3683. }
  3684. ;
  3685. E.qh = function() {
  3686. try {
  3687. if ("undefined" != typeof window.google.ima)
  3688. return !0
  3689. } catch (a) {}
  3690. return !1
  3691. }
  3692. ;
  3693. E.Gh = function(a) {
  3694. return -1 < a.indexOf("www.youtube.com/watch?v=")
  3695. }
  3696. ;
  3697. E.Hf = function(a) {
  3698. try {
  3699. return a.split("v=")[1]
  3700. } catch (b) {
  3701. return null
  3702. }
  3703. }
  3704. ;
  3705. E.ek = function() {
  3706. return {
  3707. impression: ["https://www.cda.pl/xml_pixel.php?n=yt_booster_cda_premium_luty", "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=impression&t=[timestamp]"],
  3708. start: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=start&t=[timestamp]",
  3709. firstQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=firstQuartile&t=[timestamp]",
  3710. midpoint: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=midpoint&t=[timestamp]",
  3711. thirdQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=thirdQuartile&t=[timestamp]",
  3712. complete: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=complete&t=[timestamp]",
  3713. skip: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=skip&t=[timestamp]",
  3714. clickTracking: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=clickTracking&t=[timestamp]"
  3715. }
  3716. }
  3717. ;
  3718. E.Ii = function(a, b) {
  3719. var d = {
  3720. impression: ["https://www.cda.pl/xml_pixel.php?n=yt_booster_cda_premium_luty", "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=impression&t=[timestamp]"],
  3721. start: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=start&t=[timestamp]",
  3722. firstQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=firstQuartile&t=[timestamp]",
  3723. midpoint: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=midpoint&t=[timestamp]",
  3724. thirdQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=thirdQuartile&t=[timestamp]",
  3725. complete: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=complete&t=[timestamp]",
  3726. skip: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=skip&t=[timestamp]",
  3727. clickTracking: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=clickTracking&t=[timestamp]"
  3728. }
  3729. , e = Math.floor(a / b * 100);
  3730. if (0 <= a && !1 === this.qc)
  3731. try {
  3732. this.na(d.start),
  3733. this.qc = !0
  3734. } catch (f) {}
  3735. if (25 <= e && !1 === this.xb)
  3736. try {
  3737. this.na(d.firstQuartile),
  3738. this.xb = !0
  3739. } catch (f) {}
  3740. else if (50 <= e && !1 === this.zb)
  3741. try {
  3742. this.na(d.midpoint),
  3743. this.zb = !0
  3744. } catch (f) {}
  3745. else if (75 <= e && 0 == this.Ab)
  3746. try {
  3747. this.na(d.thirdQuartile),
  3748. this.Ab = !0
  3749. } catch (f) {}
  3750. }
  3751. ;
  3752. E.na = function(a) {
  3753. this.a.log(this.b, "sendPixel", a);
  3754. if (t(a)) {
  3755. var b = new window.Image(1,1);
  3756. b.onload = b.onerror = function() {
  3757. delete b
  3758. }
  3759. ;
  3760. b.src = a
  3761. }
  3762. }
  3763. ;
  3764. E.bk = function() {
  3765. return this.ha
  3766. }
  3767. ;
  3768. E.play = function() {
  3769. if (this.ha == this.type.nb)
  3770. this.Lb.play();
  3771. else if (this.ha == this.type.gd)
  3772. if (this.dd)
  3773. this.Ke();
  3774. else
  3775. var a = this
  3776. , b = window.setInterval(function() {
  3777. a.a.log(a.b, "yt ready: " + a.dd);
  3778. a.dd ? (a.Ke(),
  3779. a.a.controls.F(!1),
  3780. window.clearInterval(b),
  3781. b = null) : (a.a.controls.F(!0),
  3782. !g(a.lb) && m(a.lb.getCurrentTime) && 0 < a.lb.getCurrentTime() && (window.clearInterval(b),
  3783. b = null))
  3784. }, 50)
  3785. }
  3786. ;
  3787. E.Ke = function() {
  3788. var a = {
  3789. impression: ["https://www.cda.pl/xml_pixel.php?n=yt_booster_cda_premium_luty", "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=impression&t=[timestamp]"],
  3790. start: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=start&t=[timestamp]",
  3791. firstQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=firstQuartile&t=[timestamp]",
  3792. midpoint: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=midpoint&t=[timestamp]",
  3793. thirdQuartile: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=thirdQuartile&t=[timestamp]",
  3794. complete: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=complete&t=[timestamp]",
  3795. skip: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=skip&t=[timestamp]",
  3796. clickTracking: "https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=clickTracking&t=[timestamp]"
  3797. };
  3798. if (q(a.impression))
  3799. for (var b = 0; b < a.impression.length; b++)
  3800. this.na(a.impression[b]);
  3801. else
  3802. this.na(a.impression);
  3803. this.a.view.fa.o("pb-ady-player-active")
  3804. }
  3805. ;
  3806. E.Ji = function() {
  3807. this.wf && (this.na("https://g.cda.pl/player.php?adtracking&vi=YzFjZmNkM2MyYmQ1M2E1MDI0ZmM5OWU5Y2M1ZTg0YzI_NjI5&label=skip&t=[timestamp]"),
  3808. this.Dg())
  3809. }
  3810. ;
  3811. E.pause = function() {
  3812. this.ha == this.type.nb && this.Lb.pause()
  3813. }
  3814. ;
  3815. E.click = function() {
  3816. this.ha == this.type.nb && this.Lb.Ib()
  3817. }
  3818. ;
  3819. E.Jf = function() {
  3820. if (this.ha == this.type.nb)
  3821. return this.Lb.ca
  3822. }
  3823. ;
  3824. E.Kf = function() {
  3825. if (this.ha == this.type.nb)
  3826. return this.Lb.mc
  3827. }
  3828. ;
  3829. E.bg = function() {
  3830. this.a.log(this.b, "onAdSkipped");
  3831. if (m(window.onAdSkipped))
  3832. window.onAdSkipped();
  3833. return this.rb()
  3834. }
  3835. ;
  3836. E.rb = function() {
  3837. this.a.log(this.b, "onAdComplete");
  3838. this.Bb = [];
  3839. this.xa = 0;
  3840. this.Ic++;
  3841. this.K++;
  3842. this.a.log(this.b, "currentAd: " + this.Ic);
  3843. this.a.log(this.b, "adsCount: " + this.qd);
  3844. if (m(window.onAdComplete))
  3845. window.onAdComplete(this.Ia);
  3846. if (this.a.j.B() && 1 < this.Ic && this.Ia)
  3847. return this.ga();
  3848. if (this.Ic <= this.qd) {
  3849. if (!l(this.c[this.K]) && !g(this.c[this.K]))
  3850. try {
  3851. switch (this.c[this.K].type) {
  3852. case this.type.nb:
  3853. this.Xd(this.c[this.K]);
  3854. break;
  3855. case this.type.wa:
  3856. this.Xe(this.c[this.K]);
  3857. break;
  3858. case this.type.ff:
  3859. this.Ff(this.c[this.K].tag);
  3860. break;
  3861. default:
  3862. this.ga()
  3863. }
  3864. } catch (a) {
  3865. this.a.log(this.b, "onAdComplete Error", a),
  3866. this.ga()
  3867. }
  3868. } else
  3869. this.ga()
  3870. }
  3871. ;
  3872. E.ag = function() {}
  3873. ;
  3874. E.pa = function(a, b) {
  3875. this.a.log(this.b, "onAdError", arguments);
  3876. this.P("Wyst\u0105pi\u0142 b\u0142\u0105d: " + a);
  3877. if (m(window.onAdError))
  3878. window.onAdError(this.Ia);
  3879. this.td(this.xa, !1);
  3880. switch (a) {
  3881. case this.error.nf:
  3882. case this.error.fd:
  3883. case this.error.lf:
  3884. case this.error.ed:
  3885. case this.error.$d:
  3886. case this.error.pf:
  3887. case this.error.qf:
  3888. case this.error.Pg:
  3889. case this.error.rf:
  3890. case this.error.kf:
  3891. case this.error.UNKNOWN_ERROR:
  3892. case this.error.hf:
  3893. return this.xa++,
  3894. this.xa < this.Bb.length ? this.Od(this.Bb, this.xa) : this.rb();
  3895. case this.error.mf:
  3896. var d = !1;
  3897. !this.Ia && this.a.autoplay && (d = !0);
  3898. return this.ga(d);
  3899. case this.error.jf:
  3900. return this.a.j.B() ? (this.xa++,
  3901. this.xa < this.Bb.length ? this.Od(this.Bb, this.xa) : this.rb()) : this.zi(b);
  3902. default:
  3903. return d = !1,
  3904. !this.Ia && this.a.autoplay && (d = !0),
  3905. this.ga(d)
  3906. }
  3907. }
  3908. ;
  3909. E.zi = function(a) {
  3910. this.a.log(this.b, "startAdsense", a);
  3911. this.P("Reklama ADSENSE");
  3912. this.P("Pobieram: " + a.ad.tag);
  3913. try {
  3914. this.ha = this.type.wa,
  3915. this.Cb = new N(this.a,this,a.ad,a.tracking,a.impression),
  3916. this.Cb.la()
  3917. } catch (b) {
  3918. this.a.log(this.b, b),
  3919. this.ga()
  3920. }
  3921. }
  3922. ;
  3923. E.rd = function(a, b, d, e, f) {
  3924. this.a.log(this.b, "ajax", arguments);
  3925. if (!t(a))
  3926. return this.ga();
  3927. try {
  3928. var k = new XMLHttpRequest
  3929. , h = this;
  3930. k.onload = function() {}
  3931. ;
  3932. k.onreadystatechange = function() {
  3933. 4 == k.readyState && 200 == k.status ? l(k.response) || g(k.response) || !k.response ? h.ga() : f(k.response) : 200 < k.status && h.ga()
  3934. }
  3935. ;
  3936. k.onerror = function() {
  3937. h.P("Wyst\u0105pi\u0142 b\u0142\u0105d podczas pobierania!");
  3938. h.ga()
  3939. }
  3940. ;
  3941. k.ontimeout = function() {
  3942. h.P("Przekoczono czas odpowiedzi!");
  3943. h.ga()
  3944. }
  3945. ;
  3946. k.withCredentials = e;
  3947. k.open(b, a, d);
  3948. k.timeout = 5E3;
  3949. k.send(null)
  3950. } catch (n) {
  3951. this.a.log(this.b, "ajax", n),
  3952. this.ga()
  3953. }
  3954. }
  3955. ;
  3956. E.P = function(a) {
  3957. if (this.a.options.hasOwnProperty("debugAds") && 1 == this.a.options.debugAds) {
  3958. var b = document.querySelector(".console-player-container");
  3959. null !== b && (/http/.test(a) && (a = '<a href="' + a + '" target="_blank">' + a + "</a>"),
  3960. b.insertAdjacentHTML("beforeend", '<div class="console-player-line">' + a + "</div>"))
  3961. }
  3962. }
  3963. ;
  3964. E.ne = function(a) {
  3965. if (0 != this.a.Tf()) {
  3966. var b = window.document.querySelector(".player-vast-pool");
  3967. if (!g(b) && !l(b)) {
  3968. var d = "<ul>";
  3969. if (q(a))
  3970. for (var e = 0; e < a.length; e++)
  3971. d += '<li class="vast-' + e + '">' + (e + 1) + ": " + a[e] + "</li>";
  3972. else
  3973. d += '<li class="vast-0">' + a + "</li>";
  3974. b.innerHTML = d + "</ul>"
  3975. }
  3976. }
  3977. }
  3978. ;
  3979. E.td = function(a, b) {
  3980. if (0 != this.a.Tf()) {
  3981. var d = window.document.querySelector(".player-vast-pool");
  3982. g(d) || l(d) || (d = window.document.querySelector(".player-vast-pool ul li.vast-" + a),
  3983. g(d) || (d.style.color = b ? "green" : "red"))
  3984. }
  3985. }
  3986. ;
  3987. var pa = {
  3988. nb: "vast",
  3989. wa: "adsense",
  3990. ff: "pool",
  3991. gd: "yt"
  3992. };
  3993. var P = {
  3994. nf: "VAST_NOT_FOUND",
  3995. lf: "VAST_LOADING_ERROR",
  3996. fd: "VAST_LOAD_TIMEOUT",
  3997. ed: "VAST_EMPTY",
  3998. $d: "VAST_PARSE_ERROR",
  3999. pf: "VAST_UNSUPPORTED_VERSION",
  4000. qf: "VAST_WRAPPER_ERROR",
  4001. Pg: "VAST_MEDIA_ERROR",
  4002. mf: "VAST_MEDIA_LOAD_TIMEOUT",
  4003. kf: "VAST_AD_NOT_FOUND",
  4004. rf: "VAST_XML_ERROR",
  4005. jf: "VAST_ADSENSE_FOUND",
  4006. Mg: "SERVER_ERROR",
  4007. UNKNOWN_ERROR: "UNKNOWN_ERROR",
  4008. hf: "UNKNOWN_RESPONSE"
  4009. };
  4010. function N(a, b, d, e, f) {
  4011. if (3 > arguments.length)
  4012. throw Error("Failed initialize Adsense advertisement.");
  4013. if (!p(a) || g(a))
  4014. throw new TypeError("Player reference is NULL.");
  4015. if (!p(b) || g(b))
  4016. throw new TypeError("Ads Manager reference is NULL.");
  4017. (l(d) || g(d)) && this.finish();
  4018. this.b = "cda.Player.Ads.Adsense";
  4019. this.a = a;
  4020. this.N = b;
  4021. this.c = d;
  4022. this.event = new H;
  4023. this.error = P;
  4024. this.I = [google.ima.AdEvent.Type.AD_BREAK_READY, google.ima.AdEvent.Type.AD_METADATA, google.ima.AdEvent.Type.ALL_ADS_COMPLETED, google.ima.AdEvent.Type.CLICK, google.ima.AdEvent.Type.COMPLETE, google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, google.ima.AdEvent.Type.DURATION_CHANGE, google.ima.AdEvent.Type.FIRST_QUARTILE, google.ima.AdEvent.Type.IMPRESSION, google.ima.AdEvent.Type.LINEAR_CHANGED, google.ima.AdEvent.Type.LOADED, google.ima.AdEvent.Type.LOG, google.ima.AdEvent.Type.MIDPOINT, google.ima.AdEvent.Type.PAUSED, google.ima.AdEvent.Type.RESUMED, google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED, google.ima.AdEvent.Type.SKIPPED, google.ima.AdEvent.Type.STARTED, google.ima.AdEvent.Type.THIRD_QUARTILE, google.ima.AdEvent.Type.USER_CLOSE, google.ima.AdEvent.Type.VOLUME_CHANGED, google.ima.AdEvent.Type.VOLUME_MUTED];
  4025. this.pe = ["fullscreenchange", "mozfullscreenchange", "webkitfullscreenchange", "MSFullscreenChange"];
  4026. this.ye = null;
  4027. this.h = {};
  4028. this.rc = !1;
  4029. this.Oa = this.a.view.Oa;
  4030. this.Ha = this.a.view.Ha;
  4031. this.Ba = this.a.view.Ba;
  4032. this.Fc = null;
  4033. null != this.a.view.sa(".pb-ad-video-player", this.Oa) && (this.Ha.innerHTML = "");
  4034. this.vg(this.Ha, this.a.video);
  4035. this.Oa.show();
  4036. this.i = this.Qb = this.$b = null;
  4037. this.F();
  4038. this.Va = null;
  4039. this.Ob = this.Pb = this.Wa = -1;
  4040. this.md = !1;
  4041. window.encodeURIComponent(location.href);
  4042. this.kd = this.Ab = this.zb = this.xb = this.oc = this.yg = !1;
  4043. this.oa = {
  4044. creativeView: [],
  4045. start: [],
  4046. firstQuartile: [],
  4047. midpoint: [],
  4048. thirdQuartile: [],
  4049. complete: []
  4050. };
  4051. this.hb = [];
  4052. this.Ri = "http://www.cda.pl/vast/c.php?n=adsense_html5_request";
  4053. this.Si = "http://www.cda.pl/vast/c.php?n=adsense_html5_start";
  4054. g(e) || l(e) || (this.oa = e);
  4055. g(f) || l(f) || (this.hb = f);
  4056. this.nj();
  4057. this.gj(this.a.video.gb());
  4058. this.fj(this.a.video.cc())
  4059. }
  4060. E = N.prototype;
  4061. E.la = function() {
  4062. this.a.log(this.b, "init");
  4063. null === this.Fc && (this.vg(this.Ha, this.a.video),
  4064. this.Oa.show());
  4065. null === this.Qb && this.F();
  4066. null === this.h && (this.h = {});
  4067. this.h[google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED] = I(this.Qb, google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.Oh, this);
  4068. this.h[google.ima.AdErrorEvent.Type.AD_ERROR] = I(this.Qb, google.ima.AdErrorEvent.Type.AD_ERROR, this.pa, this);
  4069. this.h.Id = I(this.Ha, "click", this.Id, this);
  4070. this.h.gc = I(this.a.controls.R, "click", this.gc, this);
  4071. this.h.Ub = I(this.a.controls.$a, "click", this.Ub, this);
  4072. this.a.j.B() && this.Fc.initialize();
  4073. !this.rc && this.c.autoplay ? (this.a.controls.M(!0),
  4074. this.hc()) : this.a.controls.W.da() && (this.a.controls.M(!0),
  4075. this.hc())
  4076. }
  4077. ;
  4078. E.restore = function() {
  4079. window.clearTimeout(this.$b);
  4080. this.$b = null;
  4081. this.Ha.innerHTML = "";
  4082. this.Oa.s();
  4083. this.i = this.Qb = this.Fc = this.Va = null;
  4084. this.rc = !1
  4085. }
  4086. ;
  4087. E.vg = function(a, b) {
  4088. this.Fc = new google.ima.AdDisplayContainer(a,b)
  4089. }
  4090. ;
  4091. E.F = function() {
  4092. this.Qb = new google.ima.AdsLoader(this.Fc)
  4093. }
  4094. ;
  4095. E.oj = function(a, b, d) {
  4096. this.i = a.getAdsManager(b, d)
  4097. }
  4098. ;
  4099. E.nh = function() {
  4100. var a = new google.ima.AdsRenderingSettings;
  4101. a.restoreCustomPlaybackStateOnAdBreakComplete = !0;
  4102. a.uiElements = [];
  4103. a.loadVideoTimeout = 4E3;
  4104. return a
  4105. }
  4106. ;
  4107. E.finish = function() {
  4108. this.a.log(this.b, "finish");
  4109. null !== this.i && this.i.destroy();
  4110. this.Xc();
  4111. this.restore();
  4112. return this.N.rb()
  4113. }
  4114. ;
  4115. E.he = function() {
  4116. this.a.log(this.b, "add events");
  4117. for (var a in this.I)
  4118. this.h[this.I[a]] = I(this.i, this.I[a], this.ag, this);
  4119. this.h[google.ima.AdErrorEvent.Type.AD_ERROR] = I(this.i, google.ima.AdErrorEvent.Type.AD_ERROR, this.pa, this);
  4120. for (a in this.pe)
  4121. this.h[this.pe[a]] = I(this.a.view.w, this.pe[a], this.ni, this)
  4122. }
  4123. ;
  4124. E.Xc = function() {
  4125. this.a.log(this.b, "remove events");
  4126. for (var a in this.I)
  4127. null != this.h[this.I[a]] && K(this.i, this.I[a], this.h[this.I[a]]);
  4128. null != this.h[google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED] && K(this.Qb, google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this.h[google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED]);
  4129. null != this.h[google.ima.AdErrorEvent.Type.AD_ERROR] && K(this.Qb, google.ima.AdErrorEvent.Type.AD_ERROR, this.h[google.ima.AdErrorEvent.Type.AD_ERROR]);
  4130. null != this.h.Id && K(this.Ha, "click", this.h.Id);
  4131. null != this.h.gc && K(this.a.controls.R, "click", this.h.gc);
  4132. null != this.h.Ub && K(this.a.controls.$a, "click", this.h.Ub);
  4133. this.h = null
  4134. }
  4135. ;
  4136. E.nj = function() {
  4137. this.a.log(this.b, "set locale to pl");
  4138. google.ima.settings.setLocale("pl")
  4139. }
  4140. ;
  4141. E.gj = function(a) {
  4142. this.Pb = a;
  4143. this.a.log(this.b, "set width to " + a + "px")
  4144. }
  4145. ;
  4146. E.fj = function(a) {
  4147. this.Ob = a;
  4148. this.a.log(this.b, "set height to " + a + "px")
  4149. }
  4150. ;
  4151. E.hc = function() {
  4152. this.a.log(this.b, "requestAd");
  4153. var a = this;
  4154. this.$b = window.setTimeout(function() {
  4155. a.Lh(a.error.fd)
  4156. }, 1E4);
  4157. this.a.controls.W.show();
  4158. this.rc = !0;
  4159. var b = new google.ima.AdsRequest;
  4160. b.adTagUrl = this.c.tag;
  4161. b.linearAdSlotWidth = this.Pb;
  4162. b.linearAdSlotHeight = this.Ob;
  4163. b.nonLinearAdSlotWidth = this.Pb;
  4164. b.nonLinearAdSlotHeight = this.Ob;
  4165. if (-1 < this.c.tag.indexOf("ca-video-pub-3769393018799974"))
  4166. try {
  4167. this.na(this.Ri)
  4168. } catch (d) {}
  4169. this.Qb.requestAds(b)
  4170. }
  4171. ;
  4172. E.Oh = function(a) {
  4173. this.a.log(this.b, "onAdsManagerLoaded");
  4174. this.oj(a, this.a.video, this.nh);
  4175. this.he();
  4176. this.a.fullScreen.Ca() && (this.Pb = window.screen.width,
  4177. this.Ob = window.screen.height);
  4178. try {
  4179. this.i.init(this.Pb, this.Ob, google.ima.ViewMode.NORMAL),
  4180. this.Bc()
  4181. } catch (b) {
  4182. this.a.log(this.b, b),
  4183. this.finish()
  4184. }
  4185. }
  4186. ;
  4187. E.Bc = function() {
  4188. this.a.log(this.b, "startAd");
  4189. if (!1 !== this.a.qb()) {
  4190. var a = this.a.qb();
  4191. this.a.controls.T(a)
  4192. } else
  4193. this.a.controls.qj();
  4194. try {
  4195. this.i.start()
  4196. } catch (b) {
  4197. this.a.log(this.b, b),
  4198. this.finish()
  4199. }
  4200. }
  4201. ;
  4202. E.ag = function(a) {
  4203. this.a.log(this.b, "AdEvent", a.type);
  4204. this.Va = a.getAd();
  4205. switch (a.type) {
  4206. case google.ima.AdEvent.Type.LOADED:
  4207. this.Mh();
  4208. break;
  4209. case google.ima.AdEvent.Type.STARTED:
  4210. this.Nh();
  4211. break;
  4212. case google.ima.AdEvent.Type.COMPLETE:
  4213. this.rb();
  4214. break;
  4215. case google.ima.AdEvent.Type.CLICK:
  4216. this.$f();
  4217. break;
  4218. case google.ima.AdEvent.Type.PAUSED:
  4219. this.md = !0;
  4220. break;
  4221. case google.ima.AdEvent.Type.RESUMED:
  4222. this.md = !1;
  4223. break;
  4224. case google.ima.AdEvent.Type.SKIPPED:
  4225. case google.ima.AdEvent.Type.USER_CLOSE:
  4226. this.ti()
  4227. }
  4228. }
  4229. ;
  4230. E.Mh = function() {
  4231. this.a.log(this.b, "onAdLoaded");
  4232. this.Va.isLinear() ? (window.clearTimeout(this.$b),
  4233. this.$b = null,
  4234. this.Wa = this.Va.getDuration(),
  4235. this.a.controls.ib(0),
  4236. this.a.controls.Fa(0),
  4237. this.a.log(this.b, "adDuration: " + this.Wa)) : this.finish()
  4238. }
  4239. ;
  4240. E.Nh = function() {
  4241. this.a.log(this.b, "onAdStarted");
  4242. this.N.P("Startuje reklam\u0119");
  4243. window.clearTimeout(this.$b);
  4244. this.$b = null;
  4245. if (this.Va.isLinear()) {
  4246. this.N.Ia = !0;
  4247. this.a.v.fa.D("pb-run-ad") || this.a.v.fa.m("pb-run-ad");
  4248. if (-1 < this.c.tag.indexOf("ca-video-pub-3769393018799974"))
  4249. try {
  4250. this.na(this.Si)
  4251. } catch (d) {}
  4252. try {
  4253. this.aa("impression")
  4254. } catch (d) {}
  4255. try {
  4256. if (this.c.hasOwnProperty("counter") && this.c.counter && this.c.hasOwnProperty("key") && this.c.hasOwnProperty("displayAs")) {
  4257. var a = "";
  4258. l(this.Va.g) || g(this.Va.g) || (a = "" != this.Va.g.clickThroughUrl ? this.Va.g.clickThroughUrl : this.Va.g.adQueryId + "/" + (new Date).getTime());
  4259. t(a) && (a = a.trim());
  4260. "" != a && null != a && "undefined" != typeof a && this.ge(a, this.c.key, this.c.displayAs)
  4261. }
  4262. } catch (d) {
  4263. this.a.log(this.b, d)
  4264. }
  4265. try {
  4266. this.aa("start"),
  4267. this.aa("creativeView")
  4268. } catch (d) {}
  4269. 0 < this.Wa && this.a.controls.Fa(this.Wa);
  4270. this.a.controls.M();
  4271. this.a.controls.F(!1);
  4272. this.Oa.show();
  4273. this.Ic++;
  4274. var b = this;
  4275. this.ye = setInterval(function() {
  4276. var a = b.i.getRemainingTime();
  4277. b.yg || a == b.Wa || (b.Wa = a,
  4278. b.a.controls.Fa(b.Wa),
  4279. b.yg = !0);
  4280. var e = b.Wa - a
  4281. , f = Math.floor(e / b.Wa * 100);
  4282. if (25 <= f && !1 === b.xb)
  4283. try {
  4284. b.aa("firstQuartile"),
  4285. b.xb = !0
  4286. } catch (k) {}
  4287. else if (50 <= f && !1 === b.zb)
  4288. try {
  4289. b.aa("midpoint"),
  4290. b.zb = !0
  4291. } catch (k) {}
  4292. else if (75 <= f && 0 == b.Ab)
  4293. try {
  4294. b.aa("thirdQuartile"),
  4295. b.Ab = !0
  4296. } catch (k) {}
  4297. b.a.controls.ib(e);
  4298. b.Ba.innerHTML = "Reklama zniknie za " + b.a.controls.Ea(a);
  4299. b.Ba.show();
  4300. f = 100 / b.Wa * e;
  4301. b.a.controls.Ka.ua(f + "%")
  4302. }, 100)
  4303. }
  4304. }
  4305. ;
  4306. E.rb = function() {
  4307. this.a.log(this.b, "onAdComplete");
  4308. this.N.P("Koniec reklamy");
  4309. if (this.Va.isLinear()) {
  4310. this.a.controls.currentTime.innerHTML = this.a.controls.Ea(this.Wa);
  4311. this.a.controls.Ka.ua("100%");
  4312. this.Ba.s();
  4313. clearInterval(this.ye);
  4314. try {
  4315. this.aa("complete")
  4316. } catch (a) {}
  4317. }
  4318. return this.finish()
  4319. }
  4320. ;
  4321. E.$f = function() {
  4322. this.a.log(this.b, "onAdClick")
  4323. }
  4324. ;
  4325. E.pa = function(a) {
  4326. var b = a.getError();
  4327. b.getInnerError();
  4328. var d = b.getErrorCode();
  4329. this.a.log(this.b, "AdError", a.getError().toString());
  4330. this.a.log(this.b, "AdError", "ErrorCode: " + b.getErrorCode());
  4331. switch (d) {
  4332. case google.ima.AdError.ErrorCode.VAST_LOAD_TIMEOUT:
  4333. a = this.error.fd;
  4334. break;
  4335. case google.ima.AdError.ErrorCode.VAST_EMPTY_RESPONSE:
  4336. try {
  4337. this.aa("impression")
  4338. } catch (e) {}
  4339. a = this.error.ed;
  4340. break;
  4341. case google.ima.AdError.ErrorCode.VAST_SCHEMA_VALIDATION_ERROR:
  4342. a = this.error.$d;
  4343. break;
  4344. case google.ima.AdError.ErrorCode.VAST_UNSUPPORTED_VERSION:
  4345. a = this.error.pf;
  4346. break;
  4347. case google.ima.AdError.ErrorCode.VAST_WRAPPER_ERROR:
  4348. a = this.error.qf;
  4349. break;
  4350. case google.ima.AdError.ErrorCode.UNKNOWN_AD_RESPONSE:
  4351. a = this.error.hf;
  4352. break;
  4353. default:
  4354. a = this.error.UNKNOWN_ERROR
  4355. }
  4356. null !== this.i && this.i.destroy();
  4357. this.Xc();
  4358. this.restore();
  4359. return this.N.pa(a)
  4360. }
  4361. ;
  4362. E.Lh = function(a) {
  4363. null !== this.i && this.i.destroy();
  4364. this.Xc();
  4365. this.restore();
  4366. this.N.pa(a)
  4367. }
  4368. ;
  4369. E.zc = function() {
  4370. null !== this.i && this.a.controls.M(!0)
  4371. }
  4372. ;
  4373. E.sb = function() {
  4374. null !== this.i && (this.a.controls.qa(!0),
  4375. this.i.pause(),
  4376. this.a.log(this.b, "pause ad"))
  4377. }
  4378. ;
  4379. E.Nd = function() {
  4380. null !== this.i && (this.a.controls.M(!0),
  4381. this.a.controls.W.s(),
  4382. this.i.resume(),
  4383. this.a.log(this.b, "resume ad"))
  4384. }
  4385. ;
  4386. E.ti = function() {
  4387. this.a.log(this.b, "onSkipped");
  4388. this.N.P("Reklama przewini\u0119ta");
  4389. this.Va.isLinear() && (this.a.controls.currentTime.innerHTML = this.a.controls.Ea(this.Wa),
  4390. this.a.controls.Ka.ua("100%"),
  4391. this.Ba.s(),
  4392. clearInterval(this.ye));
  4393. this.finish()
  4394. }
  4395. ;
  4396. E.ni = function() {
  4397. this.Pb = this.a.video.gb();
  4398. this.Ob = this.a.video.cc();
  4399. null !== this.i && this.i.resize(this.Pb, this.Ob, google.ima.ViewMode.FULLSCREEN);
  4400. this.a.log(this.b, "resize", "new width: " + this.Pb);
  4401. this.a.log(this.b, "resize", "new height: " + this.Ob)
  4402. }
  4403. ;
  4404. E.Id = function() {
  4405. this.N.pd = !0;
  4406. if (!0 === this.c.autoplay || this.rc)
  4407. return this.$f();
  4408. this.a.controls.M(!0);
  4409. this.hc()
  4410. }
  4411. ;
  4412. E.gc = function() {
  4413. this.N.pd = !0;
  4414. !0 === this.c.autoplay || this.rc ? !1 === this.md ? this.sb() : this.Nd() : (this.a.controls.M(!0),
  4415. this.hc())
  4416. }
  4417. ;
  4418. E.Ub = function() {
  4419. this.N.pd = !0;
  4420. !0 === this.c.autoplay || this.rc ? !1 === this.md ? this.sb() : this.Nd() : (this.a.controls.M(!0),
  4421. this.hc())
  4422. }
  4423. ;
  4424. E.T = function(a) {
  4425. this.a.log(this.b, "setVolume", a);
  4426. null !== this.i && (a = Number(a),
  4427. !isNaN(a) && 0 <= a && (0 === a ? this.i.setVolume(0) : this.i.setVolume((a / 100).toFixed(2))))
  4428. }
  4429. ;
  4430. E.aa = function(a) {
  4431. this.a.log(this.b, "tracking", a);
  4432. if ("impression" == a)
  4433. for (var b = 0; b < this.oa.length; b++)
  4434. null != this.oa && this.na(this.hb[b]);
  4435. else
  4436. for (var d in this.oa)
  4437. if (a == d)
  4438. for (b = 0; b < this.oa[a].length; b++)
  4439. this.na(this.oa[a][b])
  4440. }
  4441. ;
  4442. E.na = function(a) {
  4443. this.a.log(this.b, "sendPixel", a);
  4444. if (a) {
  4445. var b = new window.Image(1,1);
  4446. b.onload = b.onerror = function() {
  4447. delete b
  4448. }
  4449. ;
  4450. b.src = a
  4451. }
  4452. }
  4453. ;
  4454. E.ge = function(a, b, d) {
  4455. this.a.log(this.b, "adHit", arguments);
  4456. if (null !== this.a.C && !1 === this.oc) {
  4457. var e = this;
  4458. try {
  4459. window[this.a.C.client].zliczReklame(a, b, d, {
  4460. success: function(a) {
  4461. e.oc = !0;
  4462. e.a.log(e.b, "adHit", "response: " + a)
  4463. },
  4464. error: function(a) {
  4465. e.a.log(e.b, "adHit", "erorr: " + a)
  4466. }
  4467. })
  4468. } catch (f) {
  4469. e.a.log(e.b, "adHit", "erorr: " + f)
  4470. }
  4471. }
  4472. }
  4473. ;
  4474. function M(a, b, d) {
  4475. if (0 >= arguments.length)
  4476. throw Error("Failed initialize VAST advertisement.");
  4477. if (!p(a) || g(a))
  4478. throw new TypeError("Player reference is NULL.");
  4479. if (!p(b) || g(b))
  4480. throw new TypeError("Ads Manager refrence is NULL.");
  4481. if (l(d) || g(d))
  4482. return this.finish();
  4483. this.b = "cda.Player.Ads.Vast";
  4484. this.oa = {
  4485. creativeView: [],
  4486. start: [],
  4487. firstQuartile: [],
  4488. midpoint: [],
  4489. thirdQuartile: [],
  4490. complete: [],
  4491. skip: [],
  4492. mute: [],
  4493. unmute: [],
  4494. pause: [],
  4495. resume: [],
  4496. skip: []
  4497. };
  4498. this.hb = [];
  4499. this.Gc = "";
  4500. this.me = [];
  4501. this.Rc = "";
  4502. this.K = 0;
  4503. this.Na = !1;
  4504. this.Jb = 5;
  4505. this.ab = this.tb = null;
  4506. this.Vd = !1;
  4507. this.Kb = 5;
  4508. this.Ve = !0;
  4509. this.autoplay = !1;
  4510. this.h = {};
  4511. this.sc = 0;
  4512. this.c = d;
  4513. this.Zb = null;
  4514. this.va = this.be = this.oc = this.ee = this.kd = this.Ab = this.zb = this.xb = this.qc = !1;
  4515. this.Y = null;
  4516. this.mc = this.ca = !1;
  4517. this.duration = this.currentTime = -1;
  4518. this.a = a;
  4519. this.N = b;
  4520. this.event = this.video = null;
  4521. this.ia = "click timeupdate error abort ended pause play playing loadstart load loadeddata loadedmetadata progress waiting canplay canplaythrough".split(" ");
  4522. this.state = null;
  4523. this.Ti = "//static.cda.pl/v001/img/mobile/poster16x9.png";
  4524. this.Oa = this.a.view.Oa;
  4525. this.Ha = this.a.view.Ha;
  4526. this.v = this.a.view;
  4527. this.event = new H;
  4528. this.error = P;
  4529. this.c.hasOwnProperty("autoplay") && (this.autoplay = !!this.c.autoplay);
  4530. this.c.hasOwnProperty("skip") && (this.Na = !!this.c.skip);
  4531. -1 < this.c.tag.indexOf("Mjg_ZDQ4MzJlYzQ5MWIxOTY1ODJmODBiOGYxNTEwYzllYTI_Mzc") && (this.Na = !1);
  4532. if (-1 < this.c.tag.indexOf("NTc_MWM1ZjEwYjg5ZGM1ZjVkZDA3YjJmYjI5MzBhOGEwMWE_NTc2") || -1 < this.c.tag.indexOf("NTc_ZjBmNmZkOTYzOTQ1ZTcwMzQ0YWJjN2VlYzg1Y2NiZDE_NTcw"))
  4533. this.Na = !0,
  4534. this.Jb = 1;
  4535. -1 < this.c.tag.indexOf("MjA_ZmFlNGExNDQ3ODg3ZmM1MmZhZTExMWQxMjhkNGY2NWI_NTg1") && (this.Na = !0,
  4536. this.Jb = 10);
  4537. -1 < this.c.tag.indexOf("MjA_YmQ3NzhiNzUyMmRiNmE3NTljNDg3YzBhMDVhNTk0Y2Q_NjA1") && (this.Na = !0,
  4538. this.Kb = this.Jb = 18);
  4539. -1 < this.c.tag.indexOf("MjA_YmVhOWFjNzQ3NWFlZmQ4ZTllNmNlNDdkMThhNTA3ZTM_NjQ5") && (this.Na = !0,
  4540. this.Kb = this.Jb = 20);
  4541. if (-1 < this.c.tag.indexOf("NTc_NTc3YWZmOWQ5ZDkyMjljYjNjMmRkYWUxNzYwMGIzNzk_NTY3") || -1 < this.c.tag.indexOf("NTc_MGQ4ZWRhMjJlMmJlODAwNWVjYjhlMGJjZDU2MjcyYTI_NTcz"))
  4542. this.Na = !1;
  4543. -1 < this.c.tag.indexOf("NjM_NDhlOGU2YzE4M2Q0N2RhMWEyZjg0YjlhM2NlMmM5Mjc_NTc5") && (this.Na = !1);
  4544. -1 < this.c.tag.indexOf("NjY_ZTc2M2ZmMDA3YWRiMTZjMjViMjZjMzM1N2RhNWJlOWQ_NTkx") && (this.Na = !0,
  4545. this.Jb = 1);
  4546. -1 < this.c.tag.indexOf("Njk_OTVkOTRkOGU0NmJkN2VlMGFkNDA5ZTE1YmM5YmIwYWI_NjAz") && (this.Na = !0,
  4547. this.Kb = this.Jb = 30);
  4548. if (-1 < this.c.tag.indexOf("MjA_MTI3M2FjYjVmMzI3YTljMzI1Y2NmYWZkMTIyM2RhOGE_NjIz") || -1 < this.c.tag.indexOf("MjA_ZGMyN2E2NmFhYjZhNjE3YTE1N2E0ZTgzODk2ZTVlNWI_NjE3") || -1 < this.c.tag.indexOf("MjA_Y2YyYmM1ZmJiOTJkNzU1ZDgwMmJmYzgxOGNmNzZiMjQ_NjE0") || -1 < this.c.tag.indexOf("MjA_YTk1ZjkwZGViMmZkZDc4YmE4MzhiM2U1MmY0NjhkODY_NjA4") || -1 < this.c.tag.indexOf("MjA_MDk1ODNhM2U4MDdmNjJjODBhMWIxMTAzNDk3ZjdkNTE_NjMy"))
  4549. this.Na = !0,
  4550. this.Kb = this.Jb = 5;
  4551. if (-1 < this.c.tag.indexOf("MjA_YmY3OGEwODRkOTNkNDAwNTI4YjE5ZDM1MDdmNWY2M2E_NjAw") || -1 < this.c.tag.indexOf("MjA_OGJkM2RkZTI5YjIxNjE5ZDYxZGUzYjU3ZDUwOGVhYzk_NTUy") || -1 < this.c.tag.indexOf("MjA_MzY1ZmIzZGNhMzhhZmY0ZmI2NWE2NTdjMmQ0YWQzMDI_NTQ5") || -1 < this.c.tag.indexOf("MjA_M2YzNTJmZDMwOGVhNDgyMjllZmFlNjNlOTQ2OThmZTY_NTQ2") || -1 < this.c.tag.indexOf("MjA_MjRkZDcxOGQ4MmFhYTQ0NWU0OGFhYmVjMjM1ZGJlM2Q_NTQz") || -1 < this.c.tag.indexOf("MjA_NTNhZjNmY2NiYmE5ZTVmZDEwY2FlYTQyNWYxYmM3MzI_NTI4") || -1 < this.c.tag.indexOf("MjA_OGIyMWVkNGMwNzhhZjA0YTc2Y2Y1N2EzYmEwYjI3Y2Y_NTI1") || -1 < this.c.tag.indexOf("MjA_MWFhOWQyYzM3NWQyZWM0N2ZlODkzNDE0ZDExZTFiOGE_NTIy") || -1 < this.c.tag.indexOf("MjA_NzY0ZWYwNjRjNzJhZDU0MWYzYWI5NDYxM2Q4YzNmMmU_NDkz") || -1 < this.c.tag.indexOf("MjA_N2NkZjEzZDIwNDliNWY3MDc1YzQzYmM3ZmViYTc0NTM_NDg0") || -1 < this.c.tag.indexOf("MjA_Njc1MTI4Y2NkNGIxMTFiNGQxNjg5NGFjOTJkZjUxNDM_MzY5") || -1 < this.c.tag.indexOf("MjA_NTI5NzU2NDQ2YzEwY2Y1OGZlZmRlNjU1MzEzNDQzODc_NjI2") || -1 < this.c.tag.indexOf("MjA_ZDY5ODE4MjM2MmEzMjEwMzIwOTU3YzJkMTYzMDU0ZmU_NjEx") || -1 < this.c.tag.indexOf("MjA_ZGNiMTBiMjJhOTdjMDlhY2I2YTBlNDUxMWM4MGRiODc_NjM3") || -1 < this.c.tag.indexOf("MjA_Nzc3ZDhkYzYyYjUwNzQ4ZmRiMmVhNDgxOWJiOWYwMTk_NjM0") || -1 < this.c.tag.indexOf("MjA_NDg0ZGE4ZTI5MWRlMTdiY2IyNGU3YzE3N2Q1ODZlNDA_NjQy"))
  4552. this.Na = !0,
  4553. this.Jb = 5;
  4554. -1 < this.c.tag.indexOf("MzE_MTJjYmY3NzBlOTM1ODliMzYzYzE1ODRmMmE3MzZmMzI_NjQz") && !this.a.j.B() && (this.Zb = {
  4555. tag: "https://g.cda.pl/player.php?ads&vi=MjA_MWFhOWQyYzM3NWQyZWM0N2ZlODkzNDE0ZDExZTFiOGE_NTIy&ts=[timestamp]",
  4556. autoplay: !0,
  4557. counter: !0,
  4558. displayAs: "prerol",
  4559. key: "",
  4560. skip: !0,
  4561. click: !0,
  4562. time: 0,
  4563. "type:": "vast",
  4564. length: 21
  4565. });
  4566. this.a.log(this.b, this.c)
  4567. }
  4568. E = M.prototype = {};
  4569. E.hc = function(a, b) {
  4570. this.a.log(this.b, "requestAd");
  4571. try {
  4572. -1 !== window.location.href.indexOf("superfilm.pl") && this.na("http://dev.superfilm.pl/pixel.php?n=html5_ad_request")
  4573. } catch (d) {}
  4574. try {
  4575. this.rd(this.c.tag, "GET", !0, !0, "xml", function(d) {
  4576. !g(d) && d ? a(d) : b()
  4577. }
  4578. .bind(this))
  4579. } catch (d) {
  4580. this.a.log(this.b, "requestAd error", d)
  4581. }
  4582. }
  4583. ;
  4584. E.Nj = function() {
  4585. return this.N.Ak()
  4586. }
  4587. ;
  4588. E.uh = function(a) {
  4589. this.a.log(this.b, "initAd");
  4590. this.qg(a)
  4591. }
  4592. ;
  4593. E.finish = function() {
  4594. this.a.log(this.b, "finish");
  4595. this.N.Ia = !1;
  4596. this.Me();
  4597. window.clearTimeout(this.tb);
  4598. this.tb = null;
  4599. window.clearInterval(this.ab);
  4600. this.ab = null;
  4601. window.clearTimeout(this.Y);
  4602. this.Y = null;
  4603. this.a.v.s(this.a.v.Ba);
  4604. this.a.v.s(this.a.v.nd);
  4605. this.a.v.s(this.a.v.V);
  4606. this.a.v.s(this.a.v.Pa);
  4607. this.a.j.B() || (this.video = null);
  4608. return this.N.ga()
  4609. }
  4610. ;
  4611. E.Td = function(a) {
  4612. a && -1 < a.indexOf(".mp4") ? this.video.canPlayType("video/mp4") ? (this.video.src = a,
  4613. this.video.setAttribute("src", a)) : this.finish() : this.finish()
  4614. }
  4615. ;
  4616. E.Se = function(a) {
  4617. g(this.video) || (this.video.poster = a)
  4618. }
  4619. ;
  4620. E.$ = function() {
  4621. return this.video.currentTime || 0
  4622. }
  4623. ;
  4624. E.ib = function(a) {
  4625. if (v(a) || x(a))
  4626. this.currentTime = a,
  4627. this.video.currentTime = a
  4628. }
  4629. ;
  4630. E.H = function() {
  4631. return this.video.duration || 0
  4632. }
  4633. ;
  4634. E.play = function() {
  4635. this.a.log(this.b, "play");
  4636. g(this.video) || (0 < this.$() ? this.resume() : (this.a.controls.F(!0),
  4637. this.ca || this.va || this.video.load(),
  4638. this.video.play()))
  4639. }
  4640. ;
  4641. E.pause = function() {
  4642. this.a.log(this.b, "pause");
  4643. g(this.video) || (this.video.paused ? this.resume() : this.video.pause())
  4644. }
  4645. ;
  4646. E.resume = function() {
  4647. this.a.log(this.b, "resume");
  4648. g(this.video) || this.video.paused && this.video.play()
  4649. }
  4650. ;
  4651. E.vh = function() {
  4652. if (!this.ee) {
  4653. for (var a in this.ia)
  4654. "" != this.ia[a] && (this.h[this.ia[a]] = I(this.video, this.ia[a], this.Md(this.ia[a]), this));
  4655. this.h.og = I(this.a.view.Pa, "click", this.Uc, this);
  4656. this.h.Uc = I(this.Zc(), "click", this.Uc, this);
  4657. this.ee = !0
  4658. }
  4659. }
  4660. ;
  4661. E.Me = function() {
  4662. for (var a in this.ia)
  4663. "" == this.ia[a] || l(this.h[this.ia[a]]) || ("click" == this.ia[a] ? K(this.a.view.bd, this.ia[a], this.h[this.ia[a]]) : K(this.video, this.ia[a], this.h[this.ia[a]]),
  4664. this.h[this.ia[a]] = null);
  4665. l(this.h.Uc) || K(this.Zc(), "click", this.h.Uc);
  4666. l(this.h.og) || K(this.a.view.Pa, "click", this.h.og)
  4667. }
  4668. ;
  4669. E.Md = function(a) {
  4670. var b = null;
  4671. switch (a) {
  4672. case "click":
  4673. b = this.Ib;
  4674. break;
  4675. case "timeupdate":
  4676. b = this.Vc;
  4677. break;
  4678. case "error":
  4679. b = this.Tc;
  4680. break;
  4681. case "abort":
  4682. b = this.Ce;
  4683. break;
  4684. case "ended":
  4685. b = this.Jd;
  4686. break;
  4687. case "pause":
  4688. b = this.sb;
  4689. break;
  4690. case "play":
  4691. b = this.zc;
  4692. break;
  4693. case "playing":
  4694. b = this.Ie;
  4695. break;
  4696. case "loadstart":
  4697. b = this.He;
  4698. break;
  4699. case "load":
  4700. b = this.Ee;
  4701. break;
  4702. case "loadeddata":
  4703. b = this.hg;
  4704. break;
  4705. case "loadedmetadata":
  4706. b = this.$h;
  4707. break;
  4708. case "progress":
  4709. b = this.yc;
  4710. break;
  4711. case "waiting":
  4712. b = this.Wc;
  4713. break;
  4714. case "canplaythrough":
  4715. b = this.Sc;
  4716. break;
  4717. case "canplay":
  4718. b = this.De
  4719. }
  4720. return b
  4721. }
  4722. ;
  4723. E.Kj = function() {
  4724. return this.a.view.Ba
  4725. }
  4726. ;
  4727. E.Zc = function() {
  4728. return this.a.view.w.querySelector(".pb-ad-close-body")
  4729. }
  4730. ;
  4731. E.qg = function(a) {
  4732. if (a)
  4733. if ((a = a.getElementsByTagName("Ad")) && 0 < a.length)
  4734. for (var b = 0; b <= a.length; b++) {
  4735. var d = a[b];
  4736. if (d) {
  4737. if (null == d.querySelector("Wrapper") && 0 == d.querySelectorAll("MediaFiles").length) {
  4738. try {
  4739. this.aa("impression")
  4740. } catch (h) {}
  4741. this.pa(this.error.ed);
  4742. break
  4743. }
  4744. var e = d.querySelectorAll("Impression");
  4745. null !== e && 0 < e.length && this.Mi(e);
  4746. e = d.querySelectorAll("TrackingEvents");
  4747. null !== e && 0 < e.length && this.Pi(e);
  4748. e = d.querySelectorAll("ClickThrough");
  4749. null !== e && 0 < e.length && this.Ki(e);
  4750. e = d.querySelectorAll("ClickTracking");
  4751. null !== e && 0 < e.length && this.Li(e);
  4752. e = d.querySelector("Wrapper");
  4753. null !== e && this.Qi(e);
  4754. var f = d.querySelectorAll("Script");
  4755. null !== f && 0 < f.length && this.Oi(f);
  4756. d = d.querySelectorAll("MediaFiles");
  4757. if (null !== d && 0 < d.length && (this.Ni(d),
  4758. "" !== this.Rc)) {
  4759. this.N.Ia = !0;
  4760. this.a.j.B() ? (this.video = this.a.video,
  4761. this.N.Qa != this.N.state.Xb && this.a.Se("//static.cda.pl/v001/img/mobile/poster16x9.png")) : null === this.video && (this.video = window.document.createElement("video"),
  4762. this.video.className = "pb-ad-video-player",
  4763. this.video.poster = this.Ti,
  4764. this.Ha.appendChild(this.video),
  4765. this.v.show(this.Oa),
  4766. !1 !== this.a.qb() ? (a = this.a.qb(),
  4767. this.a.controls.T(a)) : this.a.Cd("cda.player.volume") ? this.a.controls.T(this.a.Eb("cda.player.volume")) : this.a.controls.T(this.a.controls.Ye));
  4768. this.a.controls.ic(0);
  4769. this.vh();
  4770. this.a.j.B() ? this.a.Td(this.Rc) : (this.Td(this.Rc),
  4771. this.a.video.paused || this.a.pause());
  4772. if (this.autoplay || this.a.controls.W.da())
  4773. if (this.a.j.B())
  4774. if (this.N.Qa == this.N.state.Xb) {
  4775. var k = this;
  4776. window.addEventListener("touchstart", function n() {
  4777. k.a.controls.M(!0);
  4778. k.play();
  4779. this.removeEventListener("touchstart", n)
  4780. })
  4781. } else
  4782. this.a.controls.M(!0),
  4783. this.play();
  4784. else
  4785. this.a.controls.M(!0),
  4786. this.play();
  4787. break
  4788. }
  4789. if (null == e && "" == this.Rc) {
  4790. try {
  4791. this.aa("impression")
  4792. } catch (h) {}
  4793. this.pa(this.error.ed);
  4794. break
  4795. }
  4796. }
  4797. }
  4798. else {
  4799. try {
  4800. this.aa("impression")
  4801. } catch (h) {}
  4802. this.pa(this.error.kf)
  4803. }
  4804. }
  4805. ;
  4806. E.Qi = function(a) {
  4807. try {
  4808. if (null !== a) {
  4809. var b = a.querySelector("VASTAdTagURL") || a.querySelector("VASTAdTagURI");
  4810. if ("object" === typeof b && b.hasChildNodes()) {
  4811. var d = b.querySelector("URL") || b.querySelector("URI");
  4812. a = null;
  4813. a = null !== d && d.hasChildNodes() ? d.childNodes : b.childNodes;
  4814. for (b = 0; b < a.length; b++)
  4815. if ("" !== a[b].nodeValue.trim()) {
  4816. var e = a[b].nodeValue.trim();
  4817. if (e == this.c.tag)
  4818. break;
  4819. this.N.P("Pobieram wrapper: " + e);
  4820. if (this.N.Kc(e)) {
  4821. this.N.P("Wrapper ADSENSE");
  4822. b = [];
  4823. b.ad = {
  4824. autoplay: this.c.autoplay,
  4825. counter: this.c.counter,
  4826. displayAs: this.c.displayAs,
  4827. key: this.c.key,
  4828. skip: this.c.skip,
  4829. tag: e,
  4830. time: this.c.time,
  4831. type: this.N.type.wa
  4832. };
  4833. b.tracking = this.oa;
  4834. b.impression = this.hb;
  4835. this.pa(this.error.jf, b);
  4836. break
  4837. }
  4838. try {
  4839. this.rd(e, "GET", !0, !0, "xml", function(a) {
  4840. null != a && a ? this.qg(a) : this.finish()
  4841. }
  4842. .bind(this))
  4843. } catch (f) {
  4844. this.a.log(this.b, "getWrapper", f)
  4845. }
  4846. }
  4847. }
  4848. }
  4849. } catch (f) {
  4850. this.a.log(this.b, "parseWrapper", f)
  4851. }
  4852. }
  4853. ;
  4854. E.Pi = function(a) {
  4855. try {
  4856. for (var b = 0; b < a.length; b++) {
  4857. var d = a[b].querySelectorAll("Tracking");
  4858. if (null !== d && 0 < d.length)
  4859. for (var e = 0; e < d.length; e++)
  4860. if ("undefined" !== d[e].getAttribute("event"))
  4861. for (var f in this.oa)
  4862. if (f == d[e].getAttribute("event")) {
  4863. var k = d[e].querySelector("URL") || d[e].querySelector("URI")
  4864. , h = null;
  4865. null !== k && k.hasChildNodes() ? h = k.childNodes : null !== d[e] && d[e].hasChildNodes() && (h = d[e].childNodes);
  4866. if (null !== h)
  4867. for (var n = 0; n < h.length; n++)
  4868. "" !== h[n].nodeValue.trim() && this.oa[f].push(h[n].nodeValue.trim())
  4869. }
  4870. }
  4871. } catch (w) {
  4872. this.a.log(this.b, "parseTrackingEvents", w)
  4873. }
  4874. }
  4875. ;
  4876. E.Mi = function(a) {
  4877. try {
  4878. for (var b = 0; b < a.length; b++) {
  4879. var d = a[b].querySelector("URL") || a[b].querySelector("URI")
  4880. , e = null;
  4881. null !== d && d.hasChildNodes() ? e = d.childNodes : null !== a[b] && a[b].hasChildNodes() && (e = a[b].childNodes);
  4882. if (null !== e)
  4883. for (var f = 0; f < e.length; f++)
  4884. "" !== e[f].nodeValue.trim() && this.hb.push(e[f].nodeValue.trim())
  4885. }
  4886. } catch (k) {
  4887. this.a.log(this.b, "parseImpression", k)
  4888. }
  4889. }
  4890. ;
  4891. E.Ki = function(a) {
  4892. try {
  4893. for (var b = 0; b < a.length; b++)
  4894. if (a[b].hasChildNodes())
  4895. for (var d = a[b].childNodes, e = 0; e < d.length; e++)
  4896. if ("" !== d[e].nodeValue.trim()) {
  4897. this.Gc = d[e].nodeValue.trim();
  4898. return
  4899. }
  4900. } catch (f) {
  4901. this.a.log(this.b, "parseClickThrough", f)
  4902. }
  4903. }
  4904. ;
  4905. E.Li = function(a) {
  4906. try {
  4907. for (var b = 0; b < a.length; b++)
  4908. if (a[b].hasChildNodes())
  4909. for (var d = a[b].childNodes, e = 0; e < d.length; e++)
  4910. "" !== d[e].nodeValue.trim() && this.me.push(d[e].nodeValue.trim())
  4911. } catch (f) {
  4912. this.a.log(this.b, "parseClickTracking", f)
  4913. }
  4914. }
  4915. ;
  4916. E.Ni = function(a) {
  4917. try {
  4918. for (var b = null, d = 0; d < a.length; d++) {
  4919. var e = a[d].getElementsByTagName("MediaFile");
  4920. if ("undefined" !== e)
  4921. if (1 < e.length)
  4922. for (var f = 0; f < e.length; f++) {
  4923. if ("undefined" !== e[f].getAttribute("type") && ("video/mp4" == e[f].getAttribute("type") || "mp4" == e[f].getAttribute("type"))) {
  4924. b = e[f];
  4925. break
  4926. }
  4927. }
  4928. else
  4929. 1 == e.length && (b = e[0])
  4930. }
  4931. if (null !== b && b.hasChildNodes) {
  4932. var k = b.childNodes;
  4933. for (a = 0; a < k.length; a++)
  4934. "" !== k[a].nodeValue.trim() && k[a].nodeValue.trim().indexOf("mp4") && (this.Rc = k[a].nodeValue.trim())
  4935. }
  4936. } catch (h) {
  4937. this.a.log(this.b, "parseMediaFiles", h)
  4938. }
  4939. }
  4940. ;
  4941. E.Oi = function(a) {
  4942. try {
  4943. for (var b = 0; b < a.length; b++)
  4944. if (a[b].hasChildNodes)
  4945. for (var d = a[b].childNodes, e = 0; e < d.length; e++)
  4946. "" != d[e].nodeValue && eval(d[e].nodeValue)
  4947. } catch (f) {
  4948. this.a.log(this.b, "parseScripts", f)
  4949. }
  4950. }
  4951. ;
  4952. E.rd = function(a, b, d, e, f, k) {
  4953. this.a.log(this.b, "ajax", arguments);
  4954. try {
  4955. var h = new XMLHttpRequest
  4956. , n = this;
  4957. h.onload = function() {}
  4958. ;
  4959. h.onreadystatechange = function() {
  4960. 4 == h.readyState && 200 == h.status ? "undefined" !== h.responseXML && h.responseXML ? k(h.responseXML) : n.pa(n.error.$d) : 200 < h.status && (400 < status && 500 > status ? n.pa(n.error.nf) : n.pa(n.error.Mg))
  4961. }
  4962. ;
  4963. h.onerror = function() {
  4964. n.pa(n.error.lf)
  4965. }
  4966. ;
  4967. h.ontimeout = function() {
  4968. n.pa(n.error.fd)
  4969. }
  4970. ;
  4971. h.withCredentials = e;
  4972. h.open(b, a, d);
  4973. h.timeout = 5E3;
  4974. h.send(null)
  4975. } catch (w) {
  4976. this.a.log(this.b, "ajax", w)
  4977. }
  4978. }
  4979. ;
  4980. E.aa = function(a) {
  4981. this.a.log(this.b, "tracking", a);
  4982. if ("impression" == a)
  4983. for (var b = 0; b < this.hb.length; b++)
  4984. this.na(this.hb[b]);
  4985. else if ("clicktracking" == a)
  4986. for (b = 0; b < this.me.length; b++)
  4987. this.na(this.me[b]);
  4988. else
  4989. for (var d in this.oa)
  4990. if (a == d)
  4991. for (b = 0; b < this.oa[a].length; b++)
  4992. this.na(this.oa[a][b])
  4993. }
  4994. ;
  4995. E.na = function(a) {
  4996. try {
  4997. -1 < a.indexOf("[timestamp]") && (a = a.replace("[timestamp]", parseInt((new Date).getTime() / 1E3)))
  4998. } catch (d) {}
  4999. try {
  5000. -1 < a.indexOf("g.cda.pl") && 33 < this.a.Jc() && (a += "&uid=" + this.a.Jc())
  5001. } catch (d) {}
  5002. this.a.log(this.b, "sendPixel", a);
  5003. if (t(a)) {
  5004. var b = new window.Image(1,1);
  5005. b.onload = b.onerror = function() {
  5006. delete b
  5007. }
  5008. ;
  5009. b.src = a
  5010. }
  5011. }
  5012. ;
  5013. E.Ea = function(a) {
  5014. a = Number(a);
  5015. var b = Math.floor(a / 3600)
  5016. , d = Math.floor(a % 3600 / 60);
  5017. a = Math.floor(a % 3600 % 60);
  5018. return (0 < b ? b + ":" + (10 > d ? "0" : "") : "") + d + ":" + (10 > a ? "0" : "") + a
  5019. }
  5020. ;
  5021. E.setTime = function(a) {
  5022. 0 < this.H() && (a = !g(this.Zb) && p(this.Zb) ? this.Zb.length + this.H() - a : this.H() - a,
  5023. !isNaN(a) && r(a) ? (this.a.view.Ba.innerHTML = -1 < this.c.tag.indexOf("MjA_ZmFlNGExNDQ3ODg3ZmM1MmZhZTExMWQxMjhkNGY2NWI_NTg1") ? this.Ea(a) : "Reklama zniknie za " + this.Ea(a),
  5024. this.a.view.Ba.da() || this.a.view.Ba.show()) : this.a.view.Ba.s())
  5025. }
  5026. ;
  5027. E.Vc = function() {
  5028. this.yc();
  5029. 2 === this.video.networkState && 3 > this.video.readyState ? this.a.controls.F(!0) : (1 === this.video.networkState || 3 <= this.video.readyState) && this.a.controls.F(!1);
  5030. this.a.controls.ib(this.$());
  5031. this.a.controls.Fa(this.H());
  5032. this.setTime(this.$());
  5033. this.a.controls.Ka.ua(100 / this.H() * this.$() + "%");
  5034. if (0 < this.$() && !0 === this.Na && !this.Zc().da() && !1 === this.Vd) {
  5035. var a = this;
  5036. -1 < this.c.tag.indexOf("Njk_OTVkOTRkOGU0NmJkN2VlMGFkNDA5ZTE1YmM5YmIwYWI_NjAz") || -1 < this.c.tag.indexOf("MjA_YmQ3NzhiNzUyMmRiNmE3NTljNDg3YzBhMDVhNTk0Y2Q_NjA1") || -1 < this.c.tag.indexOf("MjA_MTI3M2FjYjVmMzI3YTljMzI1Y2NmYWZkMTIyM2RhOGE_NjIz") || -1 < this.c.tag.indexOf("MjA_ZGMyN2E2NmFhYjZhNjE3YTE1N2E0ZTgzODk2ZTVlNWI_NjE3") || -1 < this.c.tag.indexOf("MjA_Y2YyYmM1ZmJiOTJkNzU1ZDgwMmJmYzgxOGNmNzZiMjQ_NjE0") || -1 < this.c.tag.indexOf("MjA_YTk1ZjkwZGViMmZkZDc4YmE4MzhiM2U1MmY0NjhkODY_NjA4") || -1 < this.c.tag.indexOf("MjA_MDk1ODNhM2U4MDdmNjJjODBhMWIxMTAzNDk3ZjdkNTE_NjMy") || -1 < this.c.tag.indexOf("MjA_YmVhOWFjNzQ3NWFlZmQ4ZTllNmNlNDdkMThhNTA3ZTM_NjQ5") ? null === this.ab && 0 < this.Kb && (this.Ve = !1,
  5037. this.a.view.Pa.show(),
  5038. this.a.view.Pa.Sa('<span class="pb-skip-body">Pomi\u0144 reklam\u0119 za ' + a.Kb + "</span>"),
  5039. this.a.view.Pa.style.opacity = "0.5",
  5040. this.ab = window.setInterval(function() {
  5041. a.Kb--;
  5042. 0 < a.Kb ? a.a.view.Pa.Sa('<span class="pb-skip-body">Pomi\u0144 reklam\u0119 za ' + a.Kb + "</span>") : (a.a.view.Pa.Sa('<span class="pb-skip-body">Pomi\u0144 reklam\u0119</span>'),
  5043. a.a.view.Pa.style.opacity = "1",
  5044. a.Ve = !0,
  5045. window.clearInterval(a.ab),
  5046. a.ab = null)
  5047. }, 1E3)) : null === this.tb && (this.tb = setTimeout(function() {
  5048. -1 < a.c.tag.indexOf("NTc_MWM1ZjEwYjg5ZGM1ZjVkZDA3YjJmYjI5MzBhOGEwMWE_NTc2") || -1 < a.c.tag.indexOf("NTc_ZjBmNmZkOTYzOTQ1ZTcwMzQ0YWJjN2VlYzg1Y2NiZDE_NTcw") || -1 < a.c.tag.indexOf("MjA_ZmFlNGExNDQ3ODg3ZmM1MmZhZTExMWQxMjhkNGY2NWI_NTg1") || -1 < a.c.tag.indexOf("NjY_ZTc2M2ZmMDA3YWRiMTZjMjViMjZjMzM1N2RhNWJlOWQ_NTkx") || -1 < a.c.tag.indexOf("Njk_OTVkOTRkOGU0NmJkN2VlMGFkNDA5ZTE1YmM5YmIwYWI_NjAz") ? a.a.view.Pa.show() : a.Zc().show();
  5049. a.Na = !1;
  5050. a.Vd = !0
  5051. }, 1E3 * this.Jb))
  5052. }
  5053. var b = Math.floor(this.$() / this.H() * 100);
  5054. // if (25 <= b && !1 === this.xb)
  5055. try {
  5056. this.aa("firstQuartile"),
  5057. this.xb = !0
  5058. } catch (d) {}
  5059. b = 30;
  5060. this.xb = false;
  5061. // else if (50 <= b && !1 === this.zb)
  5062. try {
  5063. this.aa("midpoint"),
  5064. this.zb = !0
  5065. } catch (d) {}
  5066. b = 60;
  5067. this.zb = false;
  5068. // else if (75 <= b && 0 == this.Ab)
  5069. try {
  5070. this.aa("thirdQuartile"),
  5071. this.Ab = !0
  5072. } catch (d) {}
  5073. b = 100;
  5074. this.Ab = 0;
  5075. }
  5076. ;
  5077. E.Tc = function(a) {
  5078. this.a.log(this.b, "onError");
  5079. 3 === a.target.networkState ? this.finish() : (a = -1,
  5080. null != this.video.error && "undefined" !== typeof this.video.error.code && (a = this.video.error.code),
  5081. -1 < a && this.finish())
  5082. }
  5083. ;
  5084. E.Ce = function() {}
  5085. ;
  5086. E.Jd = function() {
  5087. if (!1 === this.be)
  5088. try {
  5089. this.aa("complete")
  5090. } catch (a) {}
  5091. this.a.v.s(this.a.v.Ba);
  5092. this.a.v.s(this.a.v.nd);
  5093. this.a.v.s(this.a.v.V);
  5094. this.a.v.s(this.a.v.Pa);
  5095. this.a.controls.F(!0);
  5096. this.a.controls.ic(0);
  5097. this.a.controls.Ka.ua("0%");
  5098. this.a.controls.ib(0);
  5099. this.a.controls.Fa(0);
  5100. window.clearTimeout(this.Y);
  5101. this.Y = null;
  5102. window.clearInterval(this.ab);
  5103. this.ab = null;
  5104. window.clearTimeout(this.tb);
  5105. this.tb = null;
  5106. this.Vd = !1;
  5107. this.oa = {
  5108. creativeView: [],
  5109. start: [],
  5110. firstQuartile: [],
  5111. midpoint: [],
  5112. thirdQuartile: [],
  5113. complete: []
  5114. };
  5115. this.hb = [];
  5116. this.Gc = "";
  5117. this.be = this.oc = this.ee = this.kd = this.Ab = this.zb = this.xb = this.qc = !1;
  5118. this.Me();
  5119. this.Oa.s();
  5120. this.Ha.innerHTML = "";
  5121. this.video = null;
  5122. return this.rb()
  5123. }
  5124. ;
  5125. E.Ib = function() {
  5126. this.a.j.B() && this.cg();
  5127. this.ca ? this.a.controls.M(!0) : this.mc && this.a.controls.M();
  5128. !g(this.video) && this.video.paused ? this.video.play() : (0 < this.sc && this.cg(),
  5129. this.sc++)
  5130. }
  5131. ;
  5132. E.cg = function() {
  5133. if (this.c.click && 0 < this.sc && (this.sc++,
  5134. !(this.a.j.B() && this.kd || g(this.Gc) || "" === this.Gc))) {
  5135. this.kd = !0;
  5136. try {
  5137. this.aa("clicktracking")
  5138. } catch (b) {}
  5139. var a = this.Gc;
  5140. try {
  5141. if (-1 < a.indexOf("myphone.pl/klasycznie") || -1 < a.indexOf("myphone.pl/produkty"))
  5142. g(this.a.ue()) || "" == this.a.ue() || (a += "&utm_term=" + this.a.ue()),
  5143. g(this.a.ve()) || "" == this.a.ve() || (a += "&utm_content=" + this.a.ve())
  5144. } catch (b) {}
  5145. try {
  5146. -1 < a.indexOf("http://sprawachrystusa.pl") && Math.round(Math.random()) && (a = "http://sprawachrystusa.pl/lista-kin/")
  5147. } catch (b) {}
  5148. try {
  5149. window.open(a, "_blank")
  5150. } catch (b) {}
  5151. }
  5152. }
  5153. ;
  5154. E.sb = function() {
  5155. try {
  5156. this.aa("pause")
  5157. } catch (a) {
  5158. this.a.log(this.b, a)
  5159. }
  5160. }
  5161. ;
  5162. E.zc = function() {
  5163. this.a.log(this.b, "Event", "onPlay");
  5164. this.a.v.fa.D("pb-run-ad") || this.a.v.fa.m("pb-run-ad");
  5165. g(this.Y) || (window.clearTimeout(this.Y),
  5166. this.Y = null);
  5167. 0 < this.H() && this.a.controls.Fa(this.H());
  5168. this.N.pd = !0;
  5169. 0 === this.sc && this.sc++;
  5170. this.a.controls.W.s()
  5171. }
  5172. ;
  5173. E.Ie = function() {
  5174. this.a.controls.F(!1);
  5175. this.a.controls.R.da() && this.a.controls.R.s();
  5176. if (!1 === this.qc) {
  5177. this.qc = !0;
  5178. if (-1 < this.c.tag.indexOf("NTc_OGIyNDIyYWFlNzAxNzcyMzMwNjgwYTcwZmUxMzAxODc_NTM0") || -1 < this.c.tag.indexOf("NTc_OGYxYzdmZWY2NTIyMDllOWM1YWQ4NTQ1MGQyODg2NTA_NTM3") || -1 < this.c.tag.indexOf("NTc_MWM1ZjEwYjg5ZGM1ZjVkZDA3YjJmYjI5MzBhOGEwMWE_NTc2") || -1 < this.c.tag.indexOf("NTc_MGQ4ZWRhMjJlMmJlODAwNWVjYjhlMGJjZDU2MjcyYTI_NTcz") || -1 < this.c.tag.indexOf("NTc_ZjBmNmZkOTYzOTQ1ZTcwMzQ0YWJjN2VlYzg1Y2NiZDE_NTcw") || -1 < this.c.tag.indexOf("NTc_NTc3YWZmOWQ5ZDkyMjljYjNjMmRkYWUxNzYwMGIzNzk_NTY3"))
  5179. this.a.v.V.show(),
  5180. this.a.v.V.innerHTML = "Dowiedz si\u0119 wi\u0119cej na myphone.pl";
  5181. -1 < this.c.tag.indexOf("NjM_NDhlOGU2YzE4M2Q0N2RhMWEyZjg0YjlhM2NlMmM5Mjc_NTc5") && (this.a.v.V.show(),
  5182. this.a.v.V.innerHTML = "Sprawa Chrystusa - ju\u017c w kinach!");
  5183. -1 < this.c.tag.indexOf("MjA_ZmFlNGExNDQ3ODg3ZmM1MmZhZTExMWQxMjhkNGY2NWI_NTg1") && (this.a.v.V.show(),
  5184. this.a.v.V.innerHTML = "Zosta\u0144 wsp\u00f3\u0142w\u0142a\u015bcicielem CDA! Zapisy do 8 grudnia");
  5185. -1 < this.c.tag.indexOf("Njk_OTVkOTRkOGU0NmJkN2VlMGFkNDA5ZTE1YmM5YmIwYWI_NjAz") && (this.a.v.V.show(),
  5186. this.a.v.V.innerHTML = '"Najlepszy" - nowy film tw\u00f3rcy "Bog\u00f3w". Ju\u017c w kinach!');
  5187. -1 < this.c.tag.indexOf("MjA_YmQ3NzhiNzUyMmRiNmE3NTljNDg3YzBhMDVhNTk0Y2Q_NjA1") && (this.a.v.V.show(),
  5188. this.a.v.V.innerHTML = "CDA Premium - nowo\u015bci na luty 2018!");
  5189. -1 < this.c.tag.indexOf("MjA_YmVhOWFjNzQ3NWFlZmQ4ZTllNmNlNDdkMThhNTA3ZTM_NjQ5") && (this.a.v.V.show(),
  5190. this.a.v.V.innerHTML = "CDA Premium - nowo\u015bci na marzec 2018!");
  5191. -1 < this.c.tag.indexOf("MjA_MTI3M2FjYjVmMzI3YTljMzI1Y2NmYWZkMTIyM2RhOGE_NjIz") && (this.a.v.V.show(),
  5192. this.a.v.V.innerHTML = '"The Boy" - ogl\u0105daj w CDA Premium!');
  5193. -1 < this.c.tag.indexOf("MjA_ZGMyN2E2NmFhYjZhNjE3YTE1N2E0ZTgzODk2ZTVlNWI_NjE3") && (this.a.v.V.show(),
  5194. this.a.v.V.innerHTML = '"Summer Camp" - ogl\u0105daj w CDA Premium!');
  5195. -1 < this.c.tag.indexOf("MjA_Y2YyYmM1ZmJiOTJkNzU1ZDgwMmJmYzgxOGNmNzZiMjQ_NjE0") && (this.a.v.V.show(),
  5196. this.a.v.V.innerHTML = '"Robinson Crusoe" - ogl\u0105daj ju\u017c teraz w CDA Premium!');
  5197. -1 < this.c.tag.indexOf("MjA_YTk1ZjkwZGViMmZkZDc4YmE4MzhiM2U1MmY0NjhkODY_NjA4") && (this.a.v.V.show(),
  5198. this.a.v.V.innerHTML = '"Modelka" - ogl\u0105daj w CDA Premium!');
  5199. -1 < this.c.tag.indexOf("MjA_MDk1ODNhM2U4MDdmNjJjODBhMWIxMTAzNDk3ZjdkNTE_NjMy") && (this.a.v.V.show(),
  5200. this.a.v.V.innerHTML = '"Ma\u0142y ksi\u0105\u017c\u0119" - ogl\u0105daj ju\u017c teraz w CDA Premium!');
  5201. this.N.P("Startuje reklam\u0119");
  5202. try {
  5203. -1 !== window.location.href.indexOf("superfilm.pl") && this.na("http://superfilm.pl/pixel.php?n=html5_ad_start")
  5204. } catch (e) {}
  5205. try {
  5206. this.aa("impression")
  5207. } catch (e) {}
  5208. if (this.c.hasOwnProperty("counter") && this.c.counter && this.c.hasOwnProperty("key") && this.c.hasOwnProperty("displayAs")) {
  5209. var a = "";
  5210. 0 < this.hb.length ? a = this.hb[0] : 0 < this.oa.start.length ? a = this.oa.start[0] : 0 < this.oa.creativeView.length && (a = this.oa.creativeView[0]);
  5211. var b = "2017premium-wakacje 2017premium-recepcjonista 2017premium-gosc 2017premium-wakacje 2017premium-piekna 2017premium-frankenstein 2017premium-dziendobry 2017premium-kobietawklatce 2017premium-nikoratujebrata 2017premium-kumba 2017premium-body 2017premium-sonofagun 2017premium wosp_25 2017premium-facetniepotrzebnyodzaraz 2017premium-carteblanche 2017premium-sarila 2017premium-anatomia-zla 2017premium-popek 2017premium-maruderzy 2017premium-loft 2017premium-to-wlasnie-seks 2017premium-kroczac-wsrod-cieni 2017premium-kevin 2017premium-upsarka 2017premium-honorisila 2017premium-dawcapamieci 2017premium-kochanek 2017premium-wszystkowidzaca 2017premium-72godziny 2017premium-naukaspadania 2017premium-boy7 2017premium-przekret 2017premium-poslancy 2017premium-wakacjemikolajka 2017premium_cda24 2017premium_cdapopcorntv grudzien2016premium 2017premium_hugoilowcyduchow 2017premium_nieracjonalnymezczyzna 2017premium_pantameron 2017premium_transporternowamoc 2017premium_zycnieumierac 2017premium_7psychopatow 2017premium_theduff 2017premium_asterixiobelix 2017premium_teostatniegodziny 2017premium_marsylskilacznik 2017premium_juzzatobatesknie 2017premium_whoami 2017premium_bananki 2017premium_wdrodzenagielde35s 2017premium_bonypodarunkowe 2017premium_cda24swieta 2018premium_ofertaluty 2018premium_theboy 2018premium_sypiajaczinnymi 2018premium_summercamp 2018premium_robinsoncrusoe 2018premium_racheticlank 2018premium_modelka 2018premium_misiek 2018premium_malyksiaze 2018premium_ojcowieicorki 2018premium_sypiajaczinnymi 2018premium_sprawachrystusa 2018premium_poradynazdrady YmY3OGEwODRkOTNkNDAwNTI4YjE5ZDM1MDdmNWY2M2E_NjAw N2U3ODlkZjNkOTI3OGMzZjQ2NzYyZjNlNTU1NzliN2Q_NTk0 NzY0ZWYwNjRjNzJhZDU0MWYzYWI5NDYxM2Q4YzNmMmU_NDkz MGM4YjFmYTA3OTU5ZDI4MWQyZDgzMGE3MTc3N2Y3MzU_NDk2 ZGRkZGZhN2Q0OTZhMDBjOThkMzFhZGU2YTYzMDZiNWQ_NDk5 ZGFhN2ZmZTEzMzQ0Nzc3MDIzNjgxOWJiYzE4OThlNTY_NTAy NWU5MjlhNDAyOGY5MTZlYjI0ODAxMzRkMDNjZGU0Yjc_NTA1 YmFjMDk2ZTA4MGRjMzJjODlkZWVjODMwMDI5ZjkyZmY_NDg3 N2NkZjEzZDIwNDliNWY3MDc1YzQzYmM3ZmViYTc0NTM_NDg0 MjAwZTljNDMzYThjOGFlYWVlNmNiZjQ0MTljNzY3ZWM_Mzgy ZjZmMWU5ZjI1MzQzNWNkMDU2MGU0NjkyZTg4MDVjMDY_Mzg1 OTU2MjBjNjMwMDZjZDY1YjBjNjJkZmVmYzMzZWNmYjU_Mzcx MzJkOGIxYTI3NWU3Y2Q3NTY2YTllYzkyYTQ3NDY1NjE_Mzcz YTJmMGI4ODFkZGZkNzkzMGNiNDE3Y2QyZDhlZjEwZjE_NDAw M2ZkZjJhNTk0MjBhMjY4NWFlNjk1ZTAxYWEyNmJkN2Q_NDAz OTNiM2VkYTY1Y2M0YWFlYWI4MjQ4NDlkNTIxMGNjOGI_MjYz ZmY2MzA0MGJmNDQ3ZjcwZmQwNjdmNTdiMmNlOTQ1OGQ_NDA2 NGRkYTQzMTMzODcxOGM0YmZmMGJlNTliYTA0YzNlNDI_NDA5 ODIwMzdhNjQ5ZmRkMWQyOGI5NDE2YjExN2MxODhkOGY_NDE1 YmE1NTJmOTQzZDE3ODg4YmMwZTZjNGVlMTkyNjcxZWE_NDI0 M2M1MTQyYmIxNDZjYjQ0YjIzYTM4YWU4OGRjNGIwNmU_NDIx NjE1ZjUwZTQ5OTU4MzE0MTYwOTM0NmM2YjIzNDUwOWY_NDQy NWNmYTVhOGUwYmVmOGMxYjA4ZmMxYTAxZjUwMDU5ZTc_NDMz NWQwM2I4MTFlNTAzZWY3OWQ2ZWIxMjQ0OTlkNGZlZGE_NDM5 OTFlNzgxMDhmMmMwNWFhMjQzMDEwNjQwYjhiMDRhNTY_NDM2 NjNjNmJhZmQwZTc1NDViM2E3MmJhYmE5YzliOTE0MTU_NDU0 ZmI4ZTNmOGI5ZTAyOGM5MTgwODhmZjMwMDEwZWExZjI_NDYy ZjcyODk1N2NjMWUyMzYwODZkZjg2OTkwZjAwNzRlOTg_NDYz MWFhOWQyYzM3NWQyZWM0N2ZlODkzNDE0ZDExZTFiOGE_NTIy NmEyODVhMzgzZDI1Y2FjYmYxYjI3YmJiMDBjMDg2ZDY_NTMx NTNhZjNmY2NiYmE5ZTVmZDEwY2FlYTQyNWYxYmM3MzI_NTI4 OGIyMWVkNGMwNzhhZjA0YTc2Y2Y1N2EzYmEwYjI3Y2Y_NTI1 MjRkZDcxOGQ4MmFhYTQ0NWU0OGFhYmVjMjM1ZGJlM2Q_NTQz M2YzNTJmZDMwOGVhNDgyMjllZmFlNjNlOTQ2OThmZTY_NTQ2 MzY1ZmIzZGNhMzhhZmY0ZmI2NWE2NTdjMmQ0YWQzMDI_NTQ5 OGJkM2RkZTI5YjIxNjE5ZDYxZGUzYjU3ZDUwOGVhYzk_NTUy ZjE5Mzk4YmM3ZmRiZTdiMTZhNzIxYjlmY2M1ZGQ3NjU_NTU1 ZmFlNGExNDQ3ODg3ZmM1MmZhZTExMWQxMjhkNGY2NWI_NTg1 YmQ3NzhiNzUyMmRiNmE3NTljNDg3YzBhMDVhNTk0Y2Q_NjA1 MTI3M2FjYjVmMzI3YTljMzI1Y2NmYWZkMTIyM2RhOGE_NjIz OWE1NjRmYjBmODhhZDRjMWVlNzU2MGUzNDFkNDk4YmM_NjIw ZGMyN2E2NmFhYjZhNjE3YTE1N2E0ZTgzODk2ZTVlNWI_NjE3 Y2YyYmM1ZmJiOTJkNzU1ZDgwMmJmYzgxOGNmNzZiMjQ_NjE0 ZDY5ODE4MjM2MmEzMjEwMzIwOTU3YzJkMTYzMDU0ZmU_NjEx YTk1ZjkwZGViMmZkZDc4YmE4MzhiM2U1MmY0NjhkODY_NjA4 NTI5NzU2NDQ2YzEwY2Y1OGZlZmRlNjU1MzEzNDQzODc_NjI2 MDk1ODNhM2U4MDdmNjJjODBhMWIxMTAzNDk3ZjdkNTE_NjMy Nzc3ZDhkYzYyYjUwNzQ4ZmRiMmVhNDgxOWJiOWYwMTk_NjM0 ZGNiMTBiMjJhOTdjMDlhY2I2YTBlNDUxMWM4MGRiODc_NjM3 NjFlYzhlYzQ3OTM1ODhkMzIyN2ViYzM5OGYxNzY3ZTk_NjM5 NDg0ZGE4ZTI5MWRlMTdiY2IyNGU3YzE3N2Q1ODZlNDA_NjQy YmVhOWFjNzQ3NWFlZmQ4ZTllNmNlNDdkMThhNTA3ZTM_NjQ5".split(" ");
  5212. t(a) && (a = a.trim());
  5213. if ("" != a && null != a && "undefined" != typeof a)
  5214. for (var d = 0; d < b.length && (!this.a.u.hasOwnProperty("partner_id") || 1060857 != this.a.u.partner_id); d++)
  5215. if (-1 < a.indexOf(b[d])) {
  5216. a = "";
  5217. break
  5218. }
  5219. "" != a && null != a && "undefined" != typeof a && this.ge(a, this.c.key, this.c.displayAs)
  5220. }
  5221. try {
  5222. this.aa("start"),
  5223. this.aa("creativeView")
  5224. } catch (e) {}
  5225. }
  5226. }
  5227. ;
  5228. E.Ee = function() {
  5229. this.a.log(this.b, "onLoad");
  5230. this.ca = !1;
  5231. this.va = !0
  5232. }
  5233. ;
  5234. E.He = function() {
  5235. this.a.log(this.b, "onLoadstart");
  5236. this.ca = !1;
  5237. this.va = !0;
  5238. var a = this
  5239. , b = window.setTimeout(function() {
  5240. a.mc = !0;
  5241. window.clearTimeout(b);
  5242. b = null
  5243. }, 1E3);
  5244. g(this.Y) && (this.Y = window.setTimeout(function() {
  5245. window.clearTimeout(a.Y);
  5246. a.Y = null;
  5247. return a.pa(a.error.mf)
  5248. }, 2E4));
  5249. this.a.controls.Fa(0);
  5250. this.a.controls.ib(0)
  5251. }
  5252. ;
  5253. E.$h = function() {
  5254. this.a.log(this.b, "onLoadedMetaData");
  5255. g(this.Y) || (window.clearTimeout(this.Y),
  5256. this.Y = null);
  5257. l(this.video.duration) || (this.ca = !0,
  5258. this.mc = !1,
  5259. this.duration = isNaN(this.video.duration) ? 0 : this.video.duration);
  5260. this.a.controls.Fa(0);
  5261. this.a.controls.ib(0)
  5262. }
  5263. ;
  5264. E.hg = function() {
  5265. this.a.log(this.b, "onLoadedData");
  5266. g(this.Y) || (window.clearTimeout(this.Y),
  5267. this.Y = null);
  5268. l(this.video.duration) || (this.ca = !0,
  5269. this.mc = !1,
  5270. this.duration = isNaN(this.video.duration) ? 0 : this.video.duration);
  5271. this.a.controls.Fa(0);
  5272. this.a.controls.ib(0)
  5273. }
  5274. ;
  5275. E.Wc = function() {
  5276. this.a.controls.F(!0)
  5277. }
  5278. ;
  5279. E.yc = function() {
  5280. var a = this.video;
  5281. "undefined" !== a.buffered && 0 < a.buffered.length && "undefined" !== a.buffered.end ? (a = a.buffered.end(a.buffered.length - 1) / this.H() * 100,
  5282. 100 < a ? a = 100 : 0 > a && (a = 0),
  5283. this.a.controls.ic(a)) : this.a.controls.ic(0)
  5284. }
  5285. ;
  5286. E.De = function() {
  5287. this.a.log(this.b, "onCanplay");
  5288. this.a.controls.W.da() && (this.a.controls.F(!1),
  5289. this.a.controls.R.show());
  5290. g(this.Y) || (window.clearTimeout(this.Y),
  5291. this.Y = null);
  5292. if (isNaN(this.duration) || 0 >= this.duration || !r(this.duration))
  5293. this.duration = isNaN(this.video.duration) ? 0 : this.video.duration;
  5294. this.autoplay && this.va && this.ca && this.video.paused && (this.mc = this.va = !1,
  5295. this.video.play(),
  5296. this.a.controls.M(!0))
  5297. }
  5298. ;
  5299. E.Sc = function() {
  5300. this.a.log(this.b, "onCanplaythrough");
  5301. this.a.controls.W.da() && (this.a.controls.F(!1),
  5302. this.a.controls.R.show());
  5303. g(this.Y) || (window.clearTimeout(this.Y),
  5304. this.Y = null);
  5305. if (isNaN(this.duration) || 0 >= this.duration || !r(this.duration))
  5306. this.duration = isNaN(this.video.duration) ? 0 : this.video.duration;
  5307. this.autoplay && this.va && this.ca && this.video.paused && (this.mc = this.va = !1,
  5308. this.video.play(),
  5309. this.a.controls.M(!0))
  5310. }
  5311. ;
  5312. E.pa = function(a, b) {
  5313. this.a.log(this.b, "onAdError", arguments);
  5314. this.N.Ia = !1;
  5315. this.Me();
  5316. window.clearTimeout(this.tb);
  5317. this.tb = null;
  5318. window.clearInterval(this.ab);
  5319. this.ab = null;
  5320. window.clearTimeout(this.Y);
  5321. this.Y = null;
  5322. this.a.v.s(this.a.v.Ba);
  5323. this.a.v.s(this.a.v.nd);
  5324. this.a.v.s(this.a.v.V);
  5325. this.a.v.s(this.a.v.Pa);
  5326. this.a.j.B() || (this.video = null);
  5327. return this.N.pa(a, b)
  5328. }
  5329. ;
  5330. E.rb = function() {
  5331. this.a.log(this.b, "onAdComplete");
  5332. this.N.P("Koniec reklamy");
  5333. return !g(this.Zb) && p(this.Zb) ? this.N.Xd(this.Zb) : this.N.rb()
  5334. }
  5335. ;
  5336. E.bg = function() {
  5337. this.a.log(this.b, "onAdSkipped");
  5338. this.N.P("Reklama przewini\u0119ta");
  5339. try {
  5340. this.aa("skip")
  5341. } catch (a) {
  5342. this.a.log(this.b, a)
  5343. }
  5344. return this.N.bg()
  5345. }
  5346. ;
  5347. E.random = function(a, b) {
  5348. return Math.random(Math.random() * (b - a) + a)
  5349. }
  5350. ;
  5351. E.ge = function(a, b, d) {
  5352. this.a.log(this.b, "adHit", arguments);
  5353. if (null !== this.a.C && !1 === this.oc) {
  5354. var e = this;
  5355. try {
  5356. window[this.a.C.client].zliczReklame(a, b, d, {
  5357. success: function(a) {
  5358. e.oc = !0;
  5359. e.a.log(e.b, "adHit", "response: " + a)
  5360. },
  5361. error: function(a) {
  5362. e.a.log(e.b, "adHit", "erorr: " + a)
  5363. }
  5364. })
  5365. } catch (f) {
  5366. this.a.log(this.b, "adHit", "error: " + f)
  5367. }
  5368. }
  5369. }
  5370. ;
  5371. E.Uc = function() {
  5372. if (this.Ve) {
  5373. try {
  5374. this.aa("skip")
  5375. } catch (a) {
  5376. this.a.log(this.b, a)
  5377. }
  5378. clearTimeout(this.tb);
  5379. this.tb = null;
  5380. window.clearInterval(this.ab);
  5381. this.ab = null;
  5382. this.Vd = !1;
  5383. this.Zc().s();
  5384. this.a.view.Pa.s();
  5385. this.be = !0;
  5386. return this.Jd()
  5387. }
  5388. }
  5389. ;
  5390. function Q() {
  5391. this.ud = window.document
  5392. }
  5393. E = Q.prototype;
  5394. E.Rg = function() {
  5395. return "function" === typeof this.ud.createElement ? this.ud.createElement("video") : !1
  5396. }
  5397. ;
  5398. E.video = function() {
  5399. var a = this.Rg()
  5400. , b = !1;
  5401. if ("object" === typeof a)
  5402. try {
  5403. "function" === typeof a.canPlayType && (b = !!a.canPlayType,
  5404. b = new Boolean(b),
  5405. b.we = a.canPlayType('video/mp4; codecs="avc1.4D401E, mp4a.40.2"').replace(/^no$/, ""),
  5406. b.ml = a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/, ""),
  5407. b.zk = a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/, ""),
  5408. b.il = a.canPlayType('video/webm; codecs="vp9"').replace(/^no$/, ""),
  5409. supoort.hk = a.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/, ""))
  5410. } catch (d) {}
  5411. return b
  5412. }
  5413. ;
  5414. E.oe = function() {
  5415. var a = !1
  5416. , b = window.navigator;
  5417. if ("ActiveXObject"in window)
  5418. try {
  5419. a = !!new ActiveXObject("ShockwaveFlash.ShockwaveFlash")
  5420. } catch (d) {}
  5421. else
  5422. try {
  5423. "undefined" !== typeof b.plugins && "object" === typeof b.plugins["Shockwave Flash"] && "undefined" !== typeof b.mimeTypes && "undefined" !== b.mimeTypes["application/x-shockwave-flash"] && b.mimeTypes["application/x-shockwave-flash"].enabledPlugin && (a = !0)
  5424. } catch (d) {}
  5425. return a
  5426. }
  5427. ;
  5428. E.fullScreen = function() {
  5429. for (var a = ["fullscreenEnabled", "fullScreenEnabled", "mozFullScreenEnabled", "webkitFullscreenEnabled", "msFullscreenEnabled"], b = 0; b < a.length; b++)
  5430. if ("undefined" !== typeof this.ud[a[b]])
  5431. return this.ud[a[b]];
  5432. return !1
  5433. }
  5434. ;
  5435. E.sh = function() {
  5436. return g(window.frameElement) && window.self == window.top ? !1 : !0
  5437. }
  5438. ;
  5439. function S(a) {
  5440. if (g(a) || l(a))
  5441. throw new TypeError("Options can not be null.");
  5442. this.b = "cda.Player.Flash";
  5443. this.w = a.id;
  5444. this.options = a;
  5445. this.bj = "/jw5/jw5.js";
  5446. this.protocol = window.location.protocol;
  5447. this.a = null;
  5448. this.la()
  5449. }
  5450. E = S.prototype;
  5451. E.la = function() {
  5452. "function" === typeof window.jwplayer ? (this.a = window.jwplayer(this.options.id),
  5453. this.Te()) : this.load()
  5454. }
  5455. ;
  5456. E.load = function() {
  5457. var a = document.getElementsByTagName("head")[0] || document.head || document.documentElement
  5458. , b = document.createElement("script")
  5459. , d = this;
  5460. b.src = this.bj;
  5461. b.type = "text/javascript";
  5462. b.async = !0;
  5463. b.onload = b.onreadystatechange = function() {
  5464. this.readyState && "loaded" !== this.readyState && "complete" !== this.readyState || (b.onload = b.onreadystatechange = null,
  5465. a && b.parentNode && a.removeChild(b),
  5466. d.la())
  5467. }
  5468. ;
  5469. b.onerror = function() {
  5470. d.la()
  5471. }
  5472. ;
  5473. a.insertBefore(b, a.firstChild);
  5474. a.appendChild(b)
  5475. }
  5476. ;
  5477. E.Te = function() {
  5478. var a = 620
  5479. , b = 371;
  5480. y() && -1 < window.location.href.indexOf("ebd.cda.pl") && (b = ca(),
  5481. a = b.width,
  5482. b = b.height);
  5483. -1 == this.options.video.file.indexOf("http") && (this.options.video.file = D(this.options.video.file));
  5484. -1 == this.options.video.file.indexOf(".mp4") && (this.options.video.file += ".mp4");
  5485. -1 < this.options.video.file.indexOf("adc.mp4") && (this.options.video.file = this.options.video.file.replace("adc.mp4", ".mp4"));
  5486. this.a.setup({
  5487. width: a,
  5488. height: b - 19,
  5489. "logo.file": "//static.cda.pl/v001/img/player/logo-player-creme.png",
  5490. "logo.position": "top-left",
  5491. "logo.link": "",
  5492. "logo.hide": !1,
  5493. "logo.over": .7,
  5494. "logo.out": .4,
  5495. dock: !0,
  5496. autostart: this.options.autoplay,
  5497. "controlbar.position": "bottom",
  5498. "controlbar.idlehide": "false",
  5499. modes: [{
  5500. type: "flash",
  5501. src: "//static.cda.pl/player5.9/player.swf",
  5502. config: {
  5503. file: this.options.video.file,
  5504. duration: this.options.video.durationFull,
  5505. provider: "http"
  5506. }
  5507. }],
  5508. plugins: {
  5509. "https://static.cda.pl/timeslidertooltipplugin.swf": {
  5510. marginbottom: 0
  5511. }
  5512. }
  5513. })
  5514. }
  5515. ;
  5516. E.Mk = function(a, b, d) {
  5517. return {
  5518. "http://static.cda.pl/ova-jw.swf": {
  5519. canFireEventAPICalls: !0,
  5520. useV2APICalls: !0,
  5521. overlays: {
  5522. regions: [{
  5523. id: "czas",
  5524. verticalAlign: "bottom",
  5525. horizontalAlign: "center",
  5526. backgroundColor: "black",
  5527. width: 250,
  5528. height: 20,
  5529. padding: "0 0 -10 2",
  5530. opacity: .7
  5531. }]
  5532. },
  5533. debug: {
  5534. levels: "fatal, config, vast_template, vpaid, http_calls"
  5535. },
  5536. ads: {
  5537. skipAd: {
  5538. enabled: b,
  5539. showAfterSeconds: 5,
  5540. image: "http://static.cda.pl/images/close-btn-video3.png",
  5541. width: 22,
  5542. height: 17
  5543. },
  5544. notice: {
  5545. message: '<p class="smalltext" align="center">Reklama zniknie za _countdown_ sekund</p>',
  5546. type: "countdown",
  5547. region: "czas"
  5548. },
  5549. schedule: a,
  5550. clickSign: {
  5551. html: "KLIKNIJ",
  5552. width: 62,
  5553. enabled: d
  5554. },
  5555. companions: {
  5556. restore: !1,
  5557. regions: {
  5558. id: "companion" + (new Date).getTime(),
  5559. width: 1,
  5560. heigth: 1
  5561. }
  5562. }
  5563. }
  5564. }
  5565. }
  5566. }
  5567. ;
  5568. E.$c = function() {}
  5569. ;
  5570. function qa(a) {
  5571. if (g(a) && l(a))
  5572. throw new TypeError("Options can not be null.");
  5573. this.b = "cda.Player.Flash.SF";
  5574. this.id = a.id + "-flash";
  5575. this.w = document.querySelector("#" + a.id);
  5576. this.options = a;
  5577. this.a = null;
  5578. this.qd = 0;
  5579. this.Sg = this.options.flash.swf;
  5580. this.tf = this.options.flash.js;
  5581. this.la()
  5582. }
  5583. E = qa.prototype;
  5584. E.la = function() {
  5585. m(window.flowplayer) ? this.Te() : this.load(this.tf[0], function() {
  5586. this.load(this.tf[1], function() {
  5587. this.la()
  5588. }
  5589. .bind(this))
  5590. }
  5591. .bind(this))
  5592. }
  5593. ;
  5594. E.load = function(a, b) {
  5595. var d = document.getElementsByTagName("head")[0] || document.head || document.documentElement
  5596. , e = document.createElement("script")
  5597. , f = this;
  5598. e.src = a;
  5599. e.type = "text/javascript";
  5600. e.async = !0;
  5601. e.onload = e.onreadystatechange = function() {
  5602. this.readyState && "loaded" !== this.readyState && "complete" !== this.readyState || (e.onload = e.onreadystatechange = null,
  5603. d && e.parentNode && d.removeChild(e),
  5604. b())
  5605. }
  5606. ;
  5607. e.onerror = function() {
  5608. f.la()
  5609. }
  5610. ;
  5611. d.insertBefore(e, d.firstChild);
  5612. d.appendChild(e)
  5613. }
  5614. ;
  5615. E.Fb = function(a) {
  5616. a = a.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
  5617. a = (new RegExp("[\\?&]" + a + "=([^&#]*)")).exec(window.location.href);
  5618. return null == a ? null : a[1]
  5619. }
  5620. ;
  5621. E.ah = function() {
  5622. return {
  5623. canvas: {
  5624. backgroundGradient: "none",
  5625. borderRadius: 20
  5626. },
  5627. key: "#$13db964f8eb518e52fc",
  5628. play: {
  5629. opacity: 1
  5630. },
  5631. wmode: "opaque",
  5632. clip: {
  5633. autoplay: this.options.autoplay,
  5634. url: this.options.video.file,
  5635. scaling: "fit",
  5636. provider: "pseudo",
  5637. duration: this.options.video.duration,
  5638. metadata: !1,
  5639. autoBuffering: !1
  5640. },
  5641. logo: {
  5642. url: this.options.logo,
  5643. linkUrl: "http://superfilm.pl",
  5644. linkWindow: "_blank",
  5645. fullscreenOnly: !1,
  5646. displayTime: 0,
  5647. fadeSpeed: 0,
  5648. top: 5,
  5649. right: 5,
  5650. opacity: "0.7"
  5651. },
  5652. plugins: {
  5653. pseudo: {
  5654. url: "/flowplayer/flowplayer.pseudostreaming-3.2.12.swf"
  5655. },
  5656. controls: {
  5657. bufferGradient: "none",
  5658. volumeSliderColor: "#ffffff",
  5659. durationColor: "#a3a3a3",
  5660. timeColor: "#ffffff",
  5661. bufferColor: "#445566",
  5662. sliderGradient: "none",
  5663. callType: "default",
  5664. sliderColor: "#000000",
  5665. timeBorder: "0px solid rgba(0, 0, 0, 0.3)",
  5666. timeBgColor: "rgb(0, 0, 0, 0)",
  5667. volumeColor: "#ffffff",
  5668. progressColor: "#BD0F1C",
  5669. bufferColor: "#BD0F1C",
  5670. progressGradient: "none",
  5671. scrubberBarHeightRatio: "0.6",
  5672. scrubberHeightRatio: "0.38",
  5673. tooltipColor: "#000000",
  5674. buttonOffColor: "rgba(130,130,130,1)",
  5675. timeSeparator: " ",
  5676. borderRadius: "0",
  5677. buttonOverColor: "#ffffff",
  5678. backgroundColor: "#222222",
  5679. tooltipTextColor: "#ffffff",
  5680. disabledWidgetColor: "#555555",
  5681. volumeBorder: "1px solid rgba(128, 128, 128, 0.7)",
  5682. sliderBorder: "1px solid rgba(128, 128, 128, 0.7)",
  5683. buttonColor: "#ffffff",
  5684. volumeSliderGradient: "none",
  5685. backgroundGradient: "none",
  5686. height: 42,
  5687. opacity: "1.0",
  5688. autoHide: !0,
  5689. autoHide: {
  5690. fullscreenOnly: !0,
  5691. hideDelay: 2E3
  5692. }
  5693. },
  5694. myContent: {
  5695. url: "/flowplayer/flowplayer.content-3.2.9.swf",
  5696. top: 5,
  5697. left: 5,
  5698. width: 275,
  5699. height: 30,
  5700. border: 0,
  5701. borderRadius: 0,
  5702. backgroundColor: "#000000",
  5703. zIndex: 9999,
  5704. style: {
  5705. ".title": {
  5706. "text-decoration": "outline",
  5707. fontSize: 12,
  5708. color: "#FFFFFF",
  5709. "font-weight": "bold",
  5710. "z-index": 99999
  5711. }
  5712. },
  5713. html: '<p class="title">Dzi\u0119ki tej reklamie ogl\u0105dasz legalnie i za darmo</p>'
  5714. },
  5715. myContent2: {
  5716. url: "/flowplayer/flowplayer.content-3.2.9.swf",
  5717. bottom: 47,
  5718. right: 5,
  5719. width: 195,
  5720. height: 30,
  5721. border: 0,
  5722. borderRadius: 0,
  5723. backgroundColor: "#000000",
  5724. zIndex: 9999,
  5725. style: {
  5726. ".title": {
  5727. "text-decoration": "outline",
  5728. fontSize: 12,
  5729. color: "#FFFFFF",
  5730. "font-weight": "bold"
  5731. }
  5732. }
  5733. },
  5734. myContent3: {
  5735. url: "/flowplayer/flowplayer.content-3.2.9.swf",
  5736. bottom: 47,
  5737. left: 5,
  5738. width: 100,
  5739. height: 30,
  5740. border: 0,
  5741. borderRadius: 0,
  5742. backgroundColor: "#000000",
  5743. zIndex: 9999,
  5744. style: {
  5745. ".title": {
  5746. "text-decoration": "outline",
  5747. fontSize: 12,
  5748. color: "#FFFFFF",
  5749. "font-weight": "bold"
  5750. }
  5751. }
  5752. },
  5753. ova: this.bh()
  5754. }
  5755. }
  5756. }
  5757. ;
  5758. E.bh = function() {
  5759. return {
  5760. debug: {
  5761. levels: "none"
  5762. },
  5763. url: "/flowplayer/ova.swf",
  5764. player: {
  5765. modes: {
  5766. linear: {
  5767. controls: {
  5768. enablePlay: !1,
  5769. enablePause: !1,
  5770. enableMute: !0,
  5771. enableVolume: !0
  5772. }
  5773. }
  5774. }
  5775. },
  5776. autoPlay: !0,
  5777. delayAdRequestUntilPlay: !1,
  5778. canFireEventAPICalls: !0,
  5779. fireTrackingEvents: !0,
  5780. regions: {
  5781. id: "adnotice",
  5782. verticalAlign: "bottom",
  5783. horizontalAlign: "right",
  5784. backgroundColor: "transparent",
  5785. height: 0,
  5786. width: 0,
  5787. style: ".normaltext { font-style: italic; font-size:40px; }"
  5788. },
  5789. ads: {
  5790. pauseOnClickThrough: !1,
  5791. linearScaling: "fill",
  5792. clickSign: {
  5793. html: '<p class="smalltext" align="center">KLIKNIJ</p>',
  5794. style: ".smalltext { font-size:12; margin-bottom:50px }"
  5795. },
  5796. notice: {
  5797. region: "adnotice",
  5798. message: '<p class="normaltext" style="color:green;" align="right"></p>'
  5799. },
  5800. schedule: [{
  5801. position: "pre-roll",
  5802. tag: window.encodeURIComponent("http://go.goldbachpoland.bbelements.com/please/showit/7502/1/1/43/?typkodu=js&_xml=1"),
  5803. type: "direct"
  5804. }, {
  5805. position: "pre-roll",
  5806. tag: window.encodeURIComponent("http://myao.adocean.pl/ad.xml?id=Uq2mbZcb8fWVw3..rnMiwPKIL.ofr9BixO3PavJI363.E7/aocodetype=1"),
  5807. type: "direct"
  5808. }, {
  5809. position: "pre-roll",
  5810. tag: window.encodeURIComponent("http://go.goldbachpoland.bbelements.com/please/showit/7502/1/1/43/?typkodu=js&_xml=1"),
  5811. type: "direct"
  5812. }, {
  5813. position: "pre-roll",
  5814. tag: window.encodeURIComponent("http://myao.adocean.pl/ad.xml?id=Uq2mbZcb8fWVw3..rnMiwPKIL.ofr9BixO3PavJI363.E7/aocodetype=1"),
  5815. type: "direct"
  5816. }]
  5817. }
  5818. }
  5819. }
  5820. ;
  5821. E.Te = function() {
  5822. this.w.Sa('<div class="pb-flash-wrapper" id="' + this.id + '"></div>');
  5823. try {
  5824. return this.a = window.flowplayer(this.id, {
  5825. src: this.Sg,
  5826. wmode: "opaque"
  5827. }, this.ah()),
  5828. this.a.ipad(),
  5829. this.he()
  5830. } catch (a) {
  5831. console.log(a)
  5832. }
  5833. }
  5834. ;
  5835. E.he = function() {
  5836. this.a.onLoad(this.Ee.bind(this));
  5837. this.a.onResume(this.Nd.bind(this));
  5838. this.a.onPause(this.sb.bind(this));
  5839. this.a.onStop(this.wi.bind(this));
  5840. this.a.onStart(this.vi.bind(this))
  5841. }
  5842. ;
  5843. E.Ee = function() {
  5844. var a = this.Fb("vol");
  5845. g(a) || "" == a || (a = Number(a),
  5846. 0 <= a && 100 >= a && this.a.setVolume(a));
  5847. this.a.getPlugin("myContent").hide();
  5848. this.a.getPlugin("myContent2").hide();
  5849. this.a.getPlugin("myContent3").hide();
  5850. this.qd = this.a.Yj().length - 1
  5851. }
  5852. ;
  5853. E.Nd = function() {
  5854. this.a.getPlugin("myContent").hide();
  5855. this.a.getPlugin("myContent2").hide();
  5856. this.a.getPlugin("myContent3").hide()
  5857. }
  5858. ;
  5859. E.sb = function() {
  5860. this.a.getPlugin("myContent").hide();
  5861. this.a.getPlugin("myContent2").hide();
  5862. this.a.getPlugin("myContent3").hide()
  5863. }
  5864. ;
  5865. E.wi = function() {
  5866. this.a.getPlugin("myContent").hide();
  5867. this.a.getPlugin("myContent2").hide();
  5868. this.a.getPlugin("myContent3").hide()
  5869. }
  5870. ;
  5871. E.vi = function(a) {
  5872. a.Nk || (this.a.getPlugin("myContent").hide(),
  5873. this.a.getPlugin("myContent2").hide(),
  5874. this.a.getPlugin("myContent3").hide())
  5875. }
  5876. ;
  5877. try {
  5878. var na = function(a) {
  5879. this.b = "cda.Player.Chromecast";
  5880. this.a = a;
  5881. this.ja = this.Rd = this.za = null;
  5882. this.Lf = !0
  5883. }
  5884. , E = na.prototype;
  5885. E.Ud = function(a) {
  5886. a ? this.a.view.content.m("pb-ccast-posible") : this.a.view.content.o("pb-ccast-posible")
  5887. }
  5888. ;
  5889. E.kc = function(a) {
  5890. a ? this.a.view.bc.m("pb-ccast-float-on") : this.a.view.bc.o("pb-ccast-float-on")
  5891. }
  5892. ;
  5893. E.hj = function(a) {
  5894. this.Lf = !!a
  5895. }
  5896. ;
  5897. E.Sj = function() {
  5898. return m(window.__onGCastApiAvailable) ? window.__onGCastApiAvailable : null
  5899. }
  5900. ;
  5901. E.ze = function() {
  5902. try {
  5903. return window.chrome.cast && chrome.cast.isAvailable
  5904. } catch (a) {
  5905. return !1
  5906. }
  5907. }
  5908. ;
  5909. E.Ja = function() {
  5910. return g(this.za) || g(this.za) || this.za.status != window.chrome.cast.SessionStatus.CONNECTED ? !1 : !0
  5911. }
  5912. ;
  5913. E.la = function() {
  5914. if ((this.a.j.Ed() || this.a.j.Nf()) && !this.a.j.Ta()) {
  5915. if (this.ze())
  5916. this.Sb();
  5917. else {
  5918. var a = this;
  5919. window.__onGCastApiAvailable = function(b) {
  5920. b ? a.Sb() : window.setTimeout(function() {
  5921. a.ze() && a.Sb()
  5922. }, 1E3)
  5923. }
  5924. }
  5925. I(this.a.view.Yg, "click", this.Ib, this);
  5926. I(this.a.view.bc, "click", this.Ib, this)
  5927. }
  5928. }
  5929. ;
  5930. E.Sb = function() {
  5931. var a = new window.chrome.cast.SessionRequest("C6E13D46")
  5932. , a = new window.chrome.cast.ApiConfig(a,this.a.ba.sd(this.ej, this),this.a.ba.sd(this.$i, this));
  5933. window.chrome.cast.initialize(a, this.Xh, this.Wh)
  5934. }
  5935. ;
  5936. E.$i = function(a) {
  5937. a === window.chrome.cast.ReceiverAvailability.AVAILABLE ? this.Ud(!0) : (this.Ud(!1),
  5938. this.kc(!1))
  5939. }
  5940. ;
  5941. E.ej = function(a) {
  5942. this.za = a;
  5943. this.Rd = this.za.status;
  5944. 0 < this.za.media.length && this.ig(this.a.ba.sd(this.mg, this), this.za.media[0])
  5945. }
  5946. ;
  5947. E.Xh = function() {}
  5948. ;
  5949. E.Wh = function() {}
  5950. ;
  5951. E.Ib = function() {
  5952. this.Lf ? (this.Ja() ? (this.kc(!0),
  5953. this.a.controls.M(!0)) : (this.kc(!1),
  5954. this.a.G == this.a.state.U ? this.a.pause() : this.a.j.B() && this.a.video.load()),
  5955. g(this.za) || (this.Rd = this.za.status),
  5956. this.Ja() ? this.xi() : window.chrome.cast.requestSession(this.a.ba.sd(this.mg, this), this.Zh)) : alert("Materia\u0142 chwilowo niedost\u0119pny dla urz\u0105dzenia Chromecast.\n\nNajnowsza wersja Chromecast 2.0 oraz Chromecast 4K wraz z aktualizacj\u0105 1.28 przesta\u0142a wspiera\u0107 filmy wideo w formacie .mp4 i d\u017awi\u0119kiem AAC 5.1 (wci\u0105\u017c dzia\u0142a .mp4 z d\u017awi\u0119kiem stereo 2.0).\n\nZdecydowali\u015bmy si\u0119 na zmian\u0119 formatu wideo z .mp4 na technologi\u0119 MediaSource z obs\u0142ug\u0105 d\u017awi\u0119ku 5.1, analogicznie robi to np. serwis YouTube.\n\nJest to do\u015b\u0107 problematyczne rozwi\u0105zanie, kt\u00f3re wymaga przekonwertowania wszystkich plik\u00f3w, co zajmie kilkana\u015bcie dni. Nie mniej jednak problem w najbli\u017cszym czasie powinien znikn\u0105\u0107, prosimy o cierpliwo\u015b\u0107.")
  5957. }
  5958. ;
  5959. E.mg = function(a) {
  5960. this.za = a;
  5961. a = this.a.src;
  5962. !a && this.a.Da && (a = this.a.Da);
  5963. null != this.a.We && (a = this.a.We);
  5964. this.a.log(this.b, "file: " + a);
  5965. a = new window.chrome.cast.media.MediaInfo(a,"video/mp4");
  5966. var b = new window.chrome.cast.media.MovieMediaMetadata;
  5967. b.type = window.chrome.cast.media.MetadataType.MOVIE;
  5968. this.a.u.hasOwnProperty("title") && null != this.a.u.title && (b.title = window.decodeURIComponent(this.a.u.title));
  5969. a.duration = this.a.u.duration;
  5970. a.metadata = b;
  5971. a = new window.chrome.cast.media.LoadRequest(a);
  5972. a.autoplay = !0;
  5973. a.currentTime = 0;
  5974. this.za.loadMedia(a, this.ig.bind(this, "loadMedia"), this.ai.bind(this))
  5975. }
  5976. ;
  5977. E.xi = function() {
  5978. this.Rd == window.chrome.cast.SessionStatus.STOPPED;
  5979. g(this.ja) || (this.a.video.currentTime = this.ja.currentTime,
  5980. this.a.controls.currentTime.innerHTML = this.a.controls.Ea(this.ja.currentTime),
  5981. this.a.controls.Ka.ua(100 / this.a.video.duration * this.ja.currentTime + "%"));
  5982. var a = this;
  5983. this.za.stop(function() {
  5984. a.kc(!1);
  5985. a.a.controls.qa(!0)
  5986. }, function() {})
  5987. }
  5988. ;
  5989. E.Fk = function() {
  5990. this.a.view.bc.o("pb-ccast-float-on")
  5991. }
  5992. ;
  5993. E.Ek = function() {
  5994. this.a.view.bc.o("pb-ccast-float-on")
  5995. }
  5996. ;
  5997. E.Zh = function() {}
  5998. ;
  5999. E.ig = function(a, b) {
  6000. this.a.view.bc.m("pb-ccast-float-on");
  6001. this.a.G == this.a.state.U && this.a.pause();
  6002. this.ja = b;
  6003. this.ja.addUpdateListener(this.bi.bind(this));
  6004. 0 < this.a.$() && (this.Ma(this.a.$()),
  6005. this.T(this.a.video.volume));
  6006. this.a.controls.M(!0)
  6007. }
  6008. ;
  6009. E.ai = function() {
  6010. this.a.view.bc.o("pb-ccast-float-on")
  6011. }
  6012. ;
  6013. E.bi = function() {
  6014. g(this.za) || (this.Rd = this.za.status);
  6015. this.Ja() ? this.kc(!0) : this.kc(!1);
  6016. 0 < this.za.media.length && (this.ja = this.za.media[0],
  6017. this.a.controls.currentTime.innerHTML = this.a.controls.Ea(this.ja.currentTime),
  6018. this.a.controls.Ka.ua(100 / this.a.video.duration * this.ja.currentTime + "%"))
  6019. }
  6020. ;
  6021. E.Dk = function() {
  6022. this.kc(!1);
  6023. this.a.controls.qa(!0)
  6024. }
  6025. ;
  6026. E.play = E.resume = function() {
  6027. g(this.ja) || this.ja.play(null, function() {}, function() {})
  6028. }
  6029. ;
  6030. E.pause = function() {
  6031. g(this.ja) || this.ja.pause(null, function() {}, function() {})
  6032. }
  6033. ;
  6034. E.stop = function() {
  6035. g(this.ja) || this.ja.stop(null, function() {}, function() {})
  6036. }
  6037. ;
  6038. E.Ma = function(a) {
  6039. if (!g(this.ja)) {
  6040. var b = new window.chrome.cast.media.SeekRequest;
  6041. b.currentTime = a;
  6042. this.ja.seek(b, function() {}, function() {})
  6043. }
  6044. }
  6045. ;
  6046. E.T = function(a, b) {
  6047. if (!g(this.ja)) {
  6048. var d = new window.chrome.cast.Volume;
  6049. a = Number(a);
  6050. 0 < a && (a /= 100);
  6051. d.level = a;
  6052. d.muted = b;
  6053. var e = new window.chrome.cast.media.VolumeRequest;
  6054. e.volume = d;
  6055. this.ja.setVolume(e, function() {}, function() {})
  6056. }
  6057. }
  6058. } catch (a) {
  6059. console.log(a)
  6060. }
  6061. ;var T, U;
  6062. if ("undefined" !== typeof window.document.querySelectorAll)
  6063. U = window.document.querySelectorAll("div[id^='mediaplayer']");
  6064. else {
  6065. for (var ra = [], sa = /(^| )mediaplayers( |$)/, V = window.document.getElementsByTagName("*"), W = 0, ta = V.length; W < ta; W++)
  6066. sa.test(V[W].className) && ra.push(V[W]);
  6067. U = ra
  6068. }
  6069. T = U;
  6070. for (var Z = 0; Z < T.length; Z++)
  6071. if (T[Z].hasAttribute("player_data"))
  6072. new F(JSON.parse(T[Z].getAttribute("player_data")))
  6073. }
  6074. ).call(window);
Advertisement
Add Comment
Please, Sign In to add comment