The Ultimate Video Player For WordPress – by Presto Player - Version 1.5.6

Version Description

  • July 16, 2021 =
  • Fix issue with CTA sometimes not showing in bundle (non dynamic javascript setting).
Download this release

Release Info

Developer 2winfactor
Plugin Icon 128x128 The Ultimate Video Player For WordPress – by Presto Player
Version 1.5.6
Comparing to
See all releases

Code changes from version 1.5.5 to 1.5.6

Files changed (31) hide show
  1. dist/analytics/{0-3f75c1ce.js → 0-05e94cb1.js} +2 -2
  2. dist/analytics/{0-3f75c1ce.js.map → 0-05e94cb1.js.map} +1 -1
  3. dist/analytics/0-ecdca2a6.js +0 -19
  4. dist/analytics/0-ecdca2a6.js.map +0 -1
  5. dist/analytics/{4-1071be7e.js → 4-10d614d7.js} +2 -2
  6. dist/analytics/{4-1071be7e.js.map → 4-10d614d7.js.map} +1 -1
  7. dist/analytics/4-1a7d5725.js +0 -19
  8. dist/analytics/4-1a7d5725.js.map +0 -1
  9. dist/analytics/{5-2ed7cff3.js → 5-15cfd722.js} +2 -2
  10. dist/analytics/{5-2ed7cff3.js.map → 5-15cfd722.js.map} +1 -1
  11. dist/analytics/5-48078a33.js +0 -19
  12. dist/analytics/5-48078a33.js.map +0 -1
  13. dist/analytics/6-c200bf25.js +0 -19
  14. dist/analytics/6-c200bf25.js.map +0 -1
  15. dist/analytics/{6-952599ce.js → 6-f0ead9a8.js} +2 -2
  16. dist/analytics/{6-952599ce.js.map → 6-f0ead9a8.js.map} +1 -1
  17. dist/analytics/{7-5437b4a3.js → 7-0f173a3d.js} +2 -2
  18. dist/analytics/{7-5437b4a3.js.map → 7-0f173a3d.js.map} +1 -1
  19. dist/analytics/7-c4380ef8.js +0 -30
  20. dist/analytics/7-c4380ef8.js.map +0 -1
  21. dist/analytics/{admin-6b67906f.js → admin-103fe944.js} +2 -2
  22. dist/analytics/{admin-6b67906f.js.map → admin-103fe944.js.map} +1 -1
  23. dist/analytics/admin-5fb77cbc.js +0 -19
  24. dist/analytics/admin-5fb77cbc.js.map +0 -1
  25. dist/analytics/admin.dependencies.wp.json +1 -1
  26. dist/analytics/manifest.json +22 -22
  27. dist/analytics/{runtime-07fc3029.js → runtime-84f85df4.js} +2 -2
  28. dist/analytics/{runtime-07fc3029.js.map → runtime-84f85df4.js.map} +1 -1
  29. dist/analytics/runtime-86dd3f98.js +0 -18
  30. dist/analytics/runtime-86dd3f98.js.map +0 -1
  31. dist/analytics/{vendors--presto-player--admin-6682354b.js → vendors--presto-player--admin-1ba9588a.js} +1 -2
dist/analytics/{0-3f75c1ce.js → 0-05e94cb1.js} RENAMED
@@ -15,5 +15,5 @@
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[0],{51:function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeObserver",(function(){return V})),n.d(t,"ResizeObserverEntry",(function(){return m})),n.d(t,"ResizeObserverSize",(function(){return c}));var r,i=[],o="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var s,a=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,a(this)},u=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,a(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),h=function(e){return e instanceof SVGElement&&"getBBox"in e},f=function(e){if(h(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},d=function(e){var t,n;if(e instanceof Element)return!0;var r=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&e instanceof r.Element)},v="undefined"!=typeof window?window:{},p=new WeakMap,l=/auto|scroll/,g=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},x=a({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new u(0,0,0,0)}),y=function(e,t){if(void 0===t&&(t=!1),p.has(e)&&!t)return p.get(e);if(f(e))return p.set(e,x),x;var n=getComputedStyle(e),r=h(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,o=g.test(n.writingMode||""),s=!r&&l.test(n.overflowY||""),c=!r&&l.test(n.overflowX||""),d=r?0:w(n.paddingTop),v=r?0:w(n.paddingRight),y=r?0:w(n.paddingBottom),T=r?0:w(n.paddingLeft),m=r?0:w(n.borderTopWidth),z=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),B=T+v,O=d+y,R=(r?0:w(n.borderLeftWidth))+z,k=m+S,C=c?e.offsetHeight-k-e.clientHeight:0,N=s?e.offsetWidth-R-e.clientWidth:0,D=i?B+R:0,P=i?O+k:0,M=r?r.width:w(n.width)-D-N,_=r?r.height:w(n.height)-P-C,F=M+B+N+R,I=_+O+C+k,L=a({devicePixelContentBoxSize:E(Math.round(M*devicePixelRatio),Math.round(_*devicePixelRatio),o),borderBoxSize:E(F,I,o),contentBoxSize:E(M,_,o),contentRect:new u(T,d,M,_)});return p.set(e,L),L},T=function(e,t,n){var i=y(e,n),o=i.borderBoxSize,s=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return o;default:return s}},m=function(e){var t=y(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=a([t.borderBoxSize]),this.contentBoxSize=a([t.contentBoxSize]),this.devicePixelContentBoxSize=a([t.devicePixelContentBoxSize])},z=function(e){if(f(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},S=function(){var e=1/0,t=[];i.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new m(t.target),i=z(t.target);r.push(n),t.lastReportedSize=T(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},B=function(e){i.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(z(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},O=function(){var e,t=0;for(B(t);i.some((function(e){return e.activeTargets.length>0}));)t=S(),B(t);return i.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:o}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=o),window.dispatchEvent(e)),t>0},R=[],k=function(e){if(!s){var t=0,n=document.createTextNode("");new MutationObserver((function(){return R.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),s=function(){n.textContent=""+(t?t--:t++)}}R.push(e),s()},C=0,N={attributes:!0,characterData:!0,childList:!0,subtree:!0},D=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],P=function(e){return void 0===e&&(e=0),Date.now()+e},M=!1,_=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!M){M=!0;var n,r=P(e);n=function(){var n=!1;try{n=O()}finally{if(M=!1,e=r-P(),!C)return;n?t.run(1e3):e>0?t.run(e):t.start()}},k((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,N)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),D.forEach((function(t){return v.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),D.forEach((function(t){return v.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),F=function(e){!C&&e>0&&_.start(),!(C+=e)&&_.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=T(this.target,this.observedBox,!0);return e=this.target,h(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),L=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},W=new WeakMap,X=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},A=function(){function e(){}return e.connect=function(e,t){var n=new L(e,t);W.set(e,n)},e.observe=function(e,t,n){var r=W.get(e),o=0===r.observationTargets.length;X(r.observationTargets,t)<0&&(o&&i.push(r),r.observationTargets.push(new I(t,n&&n.box)),F(1),_.schedule())},e.unobserve=function(e,t){var n=W.get(e),r=X(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&i.splice(i.indexOf(n),1),n.observationTargets.splice(r,1),F(-1))},e.disconnect=function(e){var t=this,n=W.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),V=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");A.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");A.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");A.unobserve(this,e)},e.prototype.disconnect=function(){A.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()}}]);
19
- //# sourceMappingURL=0-3f75c1ce.js.map
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
+ (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[0],{48:function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeObserver",(function(){return V})),n.d(t,"ResizeObserverEntry",(function(){return m})),n.d(t,"ResizeObserverSize",(function(){return c}));var r,i=[],o="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var s,a=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,a(this)},u=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,a(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),h=function(e){return e instanceof SVGElement&&"getBBox"in e},f=function(e){if(h(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},d=function(e){var t,n;if(e instanceof Element)return!0;var r=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&e instanceof r.Element)},v="undefined"!=typeof window?window:{},p=new WeakMap,l=/auto|scroll/,g=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},x=a({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new u(0,0,0,0)}),y=function(e,t){if(void 0===t&&(t=!1),p.has(e)&&!t)return p.get(e);if(f(e))return p.set(e,x),x;var n=getComputedStyle(e),r=h(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,o=g.test(n.writingMode||""),s=!r&&l.test(n.overflowY||""),c=!r&&l.test(n.overflowX||""),d=r?0:w(n.paddingTop),v=r?0:w(n.paddingRight),y=r?0:w(n.paddingBottom),T=r?0:w(n.paddingLeft),m=r?0:w(n.borderTopWidth),z=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),B=T+v,O=d+y,R=(r?0:w(n.borderLeftWidth))+z,k=m+S,C=c?e.offsetHeight-k-e.clientHeight:0,N=s?e.offsetWidth-R-e.clientWidth:0,D=i?B+R:0,P=i?O+k:0,M=r?r.width:w(n.width)-D-N,_=r?r.height:w(n.height)-P-C,F=M+B+N+R,I=_+O+C+k,L=a({devicePixelContentBoxSize:E(Math.round(M*devicePixelRatio),Math.round(_*devicePixelRatio),o),borderBoxSize:E(F,I,o),contentBoxSize:E(M,_,o),contentRect:new u(T,d,M,_)});return p.set(e,L),L},T=function(e,t,n){var i=y(e,n),o=i.borderBoxSize,s=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return o;default:return s}},m=function(e){var t=y(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=a([t.borderBoxSize]),this.contentBoxSize=a([t.contentBoxSize]),this.devicePixelContentBoxSize=a([t.devicePixelContentBoxSize])},z=function(e){if(f(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},S=function(){var e=1/0,t=[];i.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new m(t.target),i=z(t.target);r.push(n),t.lastReportedSize=T(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},B=function(e){i.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(z(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},O=function(){var e,t=0;for(B(t);i.some((function(e){return e.activeTargets.length>0}));)t=S(),B(t);return i.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:o}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=o),window.dispatchEvent(e)),t>0},R=[],k=function(e){if(!s){var t=0,n=document.createTextNode("");new MutationObserver((function(){return R.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),s=function(){n.textContent=""+(t?t--:t++)}}R.push(e),s()},C=0,N={attributes:!0,characterData:!0,childList:!0,subtree:!0},D=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],P=function(e){return void 0===e&&(e=0),Date.now()+e},M=!1,_=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!M){M=!0;var n,r=P(e);n=function(){var n=!1;try{n=O()}finally{if(M=!1,e=r-P(),!C)return;n?t.run(1e3):e>0?t.run(e):t.start()}},k((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,N)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),D.forEach((function(t){return v.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),D.forEach((function(t){return v.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),F=function(e){!C&&e>0&&_.start(),!(C+=e)&&_.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=T(this.target,this.observedBox,!0);return e=this.target,h(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),L=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},W=new WeakMap,X=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},A=function(){function e(){}return e.connect=function(e,t){var n=new L(e,t);W.set(e,n)},e.observe=function(e,t,n){var r=W.get(e),o=0===r.observationTargets.length;X(r.observationTargets,t)<0&&(o&&i.push(r),r.observationTargets.push(new I(t,n&&n.box)),F(1),_.schedule())},e.unobserve=function(e,t){var n=W.get(e),r=X(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&i.splice(i.indexOf(n),1),n.observationTargets.splice(r,1),F(-1))},e.disconnect=function(e){var t=this,n=W.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),V=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");A.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");A.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");A.unobserve(this,e)},e.prototype.disconnect=function(){A.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()}}]);
19
+ //# sourceMappingURL=0-05e94cb1.js.map
dist/analytics/{0-3f75c1ce.js.map → 0-05e94cb1.js.map} RENAMED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/resize-observer.js"],"names":["ResizeObserverBoxOptions","resizeObservers","msg","trigger","freeze","obj","Object","ResizeObserverSize","inlineSize","blockSize","this","DOMRectReadOnly","x","y","width","height","top","left","bottom","right","prototype","toJSON","_a","fromRect","rectangle","isSVG","target","SVGElement","isHidden","getBBox","_b","offsetWidth","offsetHeight","getClientRects","length","isElement","Element","scope","ownerDocument","defaultView","global","window","cache","WeakMap","scrollRegexp","verticalRegexp","IE","test","navigator","userAgent","parseDimension","pixel","parseFloat","size","switchSizes","zeroBoxes","devicePixelContentBoxSize","borderBoxSize","contentBoxSize","contentRect","calculateBoxSizes","forceRecalculation","has","get","set","cs","getComputedStyle","svg","ownerSVGElement","removePadding","boxSizing","writingMode","canScrollVertically","overflowY","canScrollHorizontally","overflowX","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTop","borderTopWidth","borderRight","borderRightWidth","borderBottom","borderBottomWidth","horizontalPadding","verticalPadding","horizontalBorderArea","borderLeftWidth","verticalBorderArea","horizontalScrollbarThickness","clientHeight","verticalScrollbarThickness","clientWidth","widthReduction","heightReduction","contentWidth","contentHeight","borderBoxWidth","borderBoxHeight","boxes","Math","round","devicePixelRatio","calculateBoxSize","observedBox","DEVICE_PIXEL_CONTENT_BOX","BORDER_BOX","ResizeObserverEntry","calculateDepthForNode","node","Infinity","depth","parent","parentNode","broadcastActiveObservations","shallowestDepth","callbacks","forEach","ro","activeTargets","entries","ot","entry","targetDepth","push","lastReportedSize","callback","call","observer","splice","_i","callbacks_1","gatherActiveObservationsAtDepth","skippedTargets","observationTargets","isActive","process","event","some","ErrorEvent","message","document","createEvent","initEvent","dispatchEvent","queueMicroTask","toggle_1","el_1","createTextNode","MutationObserver","cb","observe","characterData","textContent","watching","observerConfig","attributes","childList","subtree","events","time","timeout","Date","now","scheduled","scheduler","Scheduler","_this","stopped","listener","schedule","run","until","elementsHaveResized","start","requestAnimationFrame","stop","body","addEventListener","name","disconnect","removeEventListener","updateCount","n","ResizeObservation","CONTENT_BOX","tagName","type","isReplacedElement","display","ResizeObserverDetail","resizeObserver","observerMap","getObservationIndex","i","ResizeObserverController","connect","detail","options","firstObservation","box","unobserve","index","lastObservation","indexOf","slice","ResizeObserver","arguments","TypeError","toString"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,iKAAgpBA,EAA5oBC,EAAgB,GAA8RC,EAAI,iEAAmX,SAAUF,GAA0BA,EAAqC,WAAE,aAAaA,EAAsC,YAAE,cAAcA,EAAmD,yBAAE,2BAAnM,CAAiOA,IAA2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AAmF,GAAqB,mBAAXlF,EAAuB,MAAM,IAAIkF,UAAU,iGAAkGb,EAAyBC,QAAQ5L,KAAKsH,GAA47B,OAAj7BgF,EAAe5L,UAAUqI,QAAQ,SAAS/H,EAAO8K,GAAS,GAAsB,IAAnBS,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,6FAA8F,IAAI/K,EAAUT,GAAS,MAAM,IAAIwL,UAAU,wFAAyFb,EAAyB5C,QAAQ/I,KAAKgB,EAAO8K,IAAWQ,EAAe5L,UAAUuL,UAAU,SAASjL,GAAQ,GAAsB,IAAnBuL,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,+FAAgG,IAAI/K,EAAUT,GAAS,MAAM,IAAIwL,UAAU,0FAA2Fb,EAAyBM,UAAUjM,KAAKgB,IAAUsL,EAAe5L,UAAUkK,WAAW,WAAWe,EAAyBf,WAAW5K,OAAQsM,EAAeG,SAAS,WAAW,MAAM,kDAA0DH,EAA7yC","file":"analytics/0-3f75c1ce.js","sourcesContent":["var resizeObservers=[];var hasActiveObservations=function hasActiveObservations(){return resizeObservers.some(function(ro){return ro.activeTargets.length>0;});};var hasSkippedObservations=function hasSkippedObservations(){return resizeObservers.some(function(ro){return ro.skippedTargets.length>0;});};var msg='ResizeObserver loop completed with undelivered notifications.';var deliverResizeLoopError=function deliverResizeLoopError(){var event;if(typeof ErrorEvent==='function'){event=new ErrorEvent('error',{message:msg});}else{event=document.createEvent('Event');event.initEvent('error',false,false);event.message=msg;}window.dispatchEvent(event);};var ResizeObserverBoxOptions;(function(ResizeObserverBoxOptions){ResizeObserverBoxOptions[\"BORDER_BOX\"]=\"border-box\";ResizeObserverBoxOptions[\"CONTENT_BOX\"]=\"content-box\";ResizeObserverBoxOptions[\"DEVICE_PIXEL_CONTENT_BOX\"]=\"device-pixel-content-box\";})(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function freeze(obj){return Object.freeze(obj);};var ResizeObserverSize=function(){function ResizeObserverSize(inlineSize,blockSize){this.inlineSize=inlineSize;this.blockSize=blockSize;freeze(this);}return ResizeObserverSize;}();var DOMRectReadOnly=function(){function DOMRectReadOnly(x,y,width,height){this.x=x;this.y=y;this.width=width;this.height=height;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return freeze(this);}DOMRectReadOnly.prototype.toJSON=function(){var _a=this,x=_a.x,y=_a.y,top=_a.top,right=_a.right,bottom=_a.bottom,left=_a.left,width=_a.width,height=_a.height;return{x:x,y:y,top:top,right:right,bottom:bottom,left:left,width:width,height:height};};DOMRectReadOnly.fromRect=function(rectangle){return new DOMRectReadOnly(rectangle.x,rectangle.y,rectangle.width,rectangle.height);};return DOMRectReadOnly;}();var isSVG=function isSVG(target){return target instanceof SVGElement&&'getBBox'in target;};var isHidden=function isHidden(target){if(isSVG(target)){var _a=target.getBBox(),width=_a.width,height=_a.height;return!width&&!height;}var _b=target,offsetWidth=_b.offsetWidth,offsetHeight=_b.offsetHeight;return!(offsetWidth||offsetHeight||target.getClientRects().length);};var isElement=function isElement(obj){var _a,_b;if(obj instanceof Element){return true;}var scope=(_b=(_a=obj)===null||_a===void 0?void 0:_a.ownerDocument)===null||_b===void 0?void 0:_b.defaultView;return!!(scope&&obj instanceof scope.Element);};var isReplacedElement=function isReplacedElement(target){switch(target.tagName){case'INPUT':if(target.type!=='image'){break;}case'VIDEO':case'AUDIO':case'EMBED':case'OBJECT':case'CANVAS':case'IFRAME':case'IMG':return true;}return false;};var global=typeof window!=='undefined'?window:{};var cache=new WeakMap();var scrollRegexp=/auto|scroll/;var verticalRegexp=/^tb|vertical/;var IE=/msie|trident/i.test(global.navigator&&global.navigator.userAgent);var parseDimension=function parseDimension(pixel){return parseFloat(pixel||'0');};var size=function size(inlineSize,blockSize,switchSizes){if(inlineSize===void 0){inlineSize=0;}if(blockSize===void 0){blockSize=0;}if(switchSizes===void 0){switchSizes=false;}return new ResizeObserverSize((switchSizes?blockSize:inlineSize)||0,(switchSizes?inlineSize:blockSize)||0);};var zeroBoxes=freeze({devicePixelContentBoxSize:size(),borderBoxSize:size(),contentBoxSize:size(),contentRect:new DOMRectReadOnly(0,0,0,0)});var calculateBoxSizes=function calculateBoxSizes(target,forceRecalculation){if(forceRecalculation===void 0){forceRecalculation=false;}if(cache.has(target)&&!forceRecalculation){return cache.get(target);}if(isHidden(target)){cache.set(target,zeroBoxes);return zeroBoxes;}var cs=getComputedStyle(target);var svg=isSVG(target)&&target.ownerSVGElement&&target.getBBox();var removePadding=!IE&&cs.boxSizing==='border-box';var switchSizes=verticalRegexp.test(cs.writingMode||'');var canScrollVertically=!svg&&scrollRegexp.test(cs.overflowY||'');var canScrollHorizontally=!svg&&scrollRegexp.test(cs.overflowX||'');var paddingTop=svg?0:parseDimension(cs.paddingTop);var paddingRight=svg?0:parseDimension(cs.paddingRight);var paddingBottom=svg?0:parseDimension(cs.paddingBottom);var paddingLeft=svg?0:parseDimension(cs.paddingLeft);var borderTop=svg?0:parseDimension(cs.borderTopWidth);var borderRight=svg?0:parseDimension(cs.borderRightWidth);var borderBottom=svg?0:parseDimension(cs.borderBottomWidth);var borderLeft=svg?0:parseDimension(cs.borderLeftWidth);var horizontalPadding=paddingLeft+paddingRight;var verticalPadding=paddingTop+paddingBottom;var horizontalBorderArea=borderLeft+borderRight;var verticalBorderArea=borderTop+borderBottom;var horizontalScrollbarThickness=!canScrollHorizontally?0:target.offsetHeight-verticalBorderArea-target.clientHeight;var verticalScrollbarThickness=!canScrollVertically?0:target.offsetWidth-horizontalBorderArea-target.clientWidth;var widthReduction=removePadding?horizontalPadding+horizontalBorderArea:0;var heightReduction=removePadding?verticalPadding+verticalBorderArea:0;var contentWidth=svg?svg.width:parseDimension(cs.width)-widthReduction-verticalScrollbarThickness;var contentHeight=svg?svg.height:parseDimension(cs.height)-heightReduction-horizontalScrollbarThickness;var borderBoxWidth=contentWidth+horizontalPadding+verticalScrollbarThickness+horizontalBorderArea;var borderBoxHeight=contentHeight+verticalPadding+horizontalScrollbarThickness+verticalBorderArea;var boxes=freeze({devicePixelContentBoxSize:size(Math.round(contentWidth*devicePixelRatio),Math.round(contentHeight*devicePixelRatio),switchSizes),borderBoxSize:size(borderBoxWidth,borderBoxHeight,switchSizes),contentBoxSize:size(contentWidth,contentHeight,switchSizes),contentRect:new DOMRectReadOnly(paddingLeft,paddingTop,contentWidth,contentHeight)});cache.set(target,boxes);return boxes;};var calculateBoxSize=function calculateBoxSize(target,observedBox,forceRecalculation){var _a=calculateBoxSizes(target,forceRecalculation),borderBoxSize=_a.borderBoxSize,contentBoxSize=_a.contentBoxSize,devicePixelContentBoxSize=_a.devicePixelContentBoxSize;switch(observedBox){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return devicePixelContentBoxSize;case ResizeObserverBoxOptions.BORDER_BOX:return borderBoxSize;default:return contentBoxSize;}};var ResizeObserverEntry=function(){function ResizeObserverEntry(target){var boxes=calculateBoxSizes(target);this.target=target;this.contentRect=boxes.contentRect;this.borderBoxSize=freeze([boxes.borderBoxSize]);this.contentBoxSize=freeze([boxes.contentBoxSize]);this.devicePixelContentBoxSize=freeze([boxes.devicePixelContentBoxSize]);}return ResizeObserverEntry;}();var calculateDepthForNode=function calculateDepthForNode(node){if(isHidden(node)){return Infinity;}var depth=0;var parent=node.parentNode;while(parent){depth+=1;parent=parent.parentNode;}return depth;};var broadcastActiveObservations=function broadcastActiveObservations(){var shallowestDepth=Infinity;var callbacks=[];resizeObservers.forEach(function processObserver(ro){if(ro.activeTargets.length===0){return;}var entries=[];ro.activeTargets.forEach(function processTarget(ot){var entry=new ResizeObserverEntry(ot.target);var targetDepth=calculateDepthForNode(ot.target);entries.push(entry);ot.lastReportedSize=calculateBoxSize(ot.target,ot.observedBox);if(targetDepth<shallowestDepth){shallowestDepth=targetDepth;}});callbacks.push(function resizeObserverCallback(){ro.callback.call(ro.observer,entries,ro.observer);});ro.activeTargets.splice(0,ro.activeTargets.length);});for(var _i=0,callbacks_1=callbacks;_i<callbacks_1.length;_i++){var callback=callbacks_1[_i];callback();}return shallowestDepth;};var gatherActiveObservationsAtDepth=function gatherActiveObservationsAtDepth(depth){resizeObservers.forEach(function processObserver(ro){ro.activeTargets.splice(0,ro.activeTargets.length);ro.skippedTargets.splice(0,ro.skippedTargets.length);ro.observationTargets.forEach(function processTarget(ot){if(ot.isActive()){if(calculateDepthForNode(ot.target)>depth){ro.activeTargets.push(ot);}else{ro.skippedTargets.push(ot);}}});});};var process=function process(){var depth=0;gatherActiveObservationsAtDepth(depth);while(hasActiveObservations()){depth=broadcastActiveObservations();gatherActiveObservationsAtDepth(depth);}if(hasSkippedObservations()){deliverResizeLoopError();}return depth>0;};var trigger;var callbacks=[];var notify=function notify(){return callbacks.splice(0).forEach(function(cb){return cb();});};var queueMicroTask=function queueMicroTask(callback){if(!trigger){var toggle_1=0;var el_1=document.createTextNode('');var config={characterData:true};new MutationObserver(function(){return notify();}).observe(el_1,config);trigger=function trigger(){el_1.textContent=\"\"+(toggle_1?toggle_1--:toggle_1++);};}callbacks.push(callback);trigger();};var queueResizeObserver=function queueResizeObserver(cb){queueMicroTask(function ResizeObserver(){requestAnimationFrame(cb);});};var watching=0;var isWatching=function isWatching(){return!!watching;};var CATCH_PERIOD=250;var observerConfig={attributes:true,characterData:true,childList:true,subtree:true};var events=['resize','load','transitionend','animationend','animationstart','animationiteration','keyup','keydown','mouseup','mousedown','mouseover','mouseout','blur','focus'];var time=function time(timeout){if(timeout===void 0){timeout=0;}return Date.now()+timeout;};var scheduled=false;var Scheduler=function(){function Scheduler(){var _this=this;this.stopped=true;this.listener=function(){return _this.schedule();};}Scheduler.prototype.run=function(timeout){var _this=this;if(timeout===void 0){timeout=CATCH_PERIOD;}if(scheduled){return;}scheduled=true;var until=time(timeout);queueResizeObserver(function(){var elementsHaveResized=false;try{elementsHaveResized=process();}finally{scheduled=false;timeout=until-time();if(!isWatching()){return;}if(elementsHaveResized){_this.run(1000);}else if(timeout>0){_this.run(timeout);}else{_this.start();}}});};Scheduler.prototype.schedule=function(){this.stop();this.run();};Scheduler.prototype.observe=function(){var _this=this;var cb=function cb(){return _this.observer&&_this.observer.observe(document.body,observerConfig);};document.body?cb():global.addEventListener('DOMContentLoaded',cb);};Scheduler.prototype.start=function(){var _this=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();events.forEach(function(name){return global.addEventListener(name,_this.listener,true);});}};Scheduler.prototype.stop=function(){var _this=this;if(!this.stopped){this.observer&&this.observer.disconnect();events.forEach(function(name){return global.removeEventListener(name,_this.listener,true);});this.stopped=true;}};return Scheduler;}();var scheduler=new Scheduler();var updateCount=function updateCount(n){!watching&&n>0&&scheduler.start();watching+=n;!watching&&scheduler.stop();};var skipNotifyOnElement=function skipNotifyOnElement(target){return!isSVG(target)&&!isReplacedElement(target)&&getComputedStyle(target).display==='inline';};var ResizeObservation=function(){function ResizeObservation(target,observedBox){this.target=target;this.observedBox=observedBox||ResizeObserverBoxOptions.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0};}ResizeObservation.prototype.isActive=function(){var size=calculateBoxSize(this.target,this.observedBox,true);if(skipNotifyOnElement(this.target)){this.lastReportedSize=size;}if(this.lastReportedSize.inlineSize!==size.inlineSize||this.lastReportedSize.blockSize!==size.blockSize){return true;}return false;};return ResizeObservation;}();var ResizeObserverDetail=function(){function ResizeObserverDetail(resizeObserver,callback){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=resizeObserver;this.callback=callback;}return ResizeObserverDetail;}();var observerMap=new WeakMap();var getObservationIndex=function getObservationIndex(observationTargets,target){for(var i=0;i<observationTargets.length;i+=1){if(observationTargets[i].target===target){return i;}}return-1;};var ResizeObserverController=function(){function ResizeObserverController(){}ResizeObserverController.connect=function(resizeObserver,callback){var detail=new ResizeObserverDetail(resizeObserver,callback);observerMap.set(resizeObserver,detail);};ResizeObserverController.observe=function(resizeObserver,target,options){var detail=observerMap.get(resizeObserver);var firstObservation=detail.observationTargets.length===0;if(getObservationIndex(detail.observationTargets,target)<0){firstObservation&&resizeObservers.push(detail);detail.observationTargets.push(new ResizeObservation(target,options&&options.box));updateCount(1);scheduler.schedule();}};ResizeObserverController.unobserve=function(resizeObserver,target){var detail=observerMap.get(resizeObserver);var index=getObservationIndex(detail.observationTargets,target);var lastObservation=detail.observationTargets.length===1;if(index>=0){lastObservation&&resizeObservers.splice(resizeObservers.indexOf(detail),1);detail.observationTargets.splice(index,1);updateCount(-1);}};ResizeObserverController.disconnect=function(resizeObserver){var _this=this;var detail=observerMap.get(resizeObserver);detail.observationTargets.slice().forEach(function(ot){return _this.unobserve(resizeObserver,ot.target);});detail.activeTargets.splice(0,detail.activeTargets.length);};return ResizeObserverController;}();var ResizeObserver=function(){function ResizeObserver(callback){if(arguments.length===0){throw new TypeError(\"Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.\");}if(typeof callback!=='function'){throw new TypeError(\"Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.\");}ResizeObserverController.connect(this,callback);}ResizeObserver.prototype.observe=function(target,options){if(arguments.length===0){throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.\");}if(!isElement(target)){throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element\");}ResizeObserverController.observe(this,target,options);};ResizeObserver.prototype.unobserve=function(target){if(arguments.length===0){throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.\");}if(!isElement(target)){throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element\");}ResizeObserverController.unobserve(this,target);};ResizeObserver.prototype.disconnect=function(){ResizeObserverController.disconnect(this);};ResizeObserver.toString=function(){return'function ResizeObserver () { [polyfill code] }';};return ResizeObserver;}();export{ResizeObserver,ResizeObserverEntry,ResizeObserverSize};"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/resize-observer.js"],"names":["ResizeObserverBoxOptions","resizeObservers","msg","trigger","freeze","obj","Object","ResizeObserverSize","inlineSize","blockSize","this","DOMRectReadOnly","x","y","width","height","top","left","bottom","right","prototype","toJSON","_a","fromRect","rectangle","isSVG","target","SVGElement","isHidden","getBBox","_b","offsetWidth","offsetHeight","getClientRects","length","isElement","Element","scope","ownerDocument","defaultView","global","window","cache","WeakMap","scrollRegexp","verticalRegexp","IE","test","navigator","userAgent","parseDimension","pixel","parseFloat","size","switchSizes","zeroBoxes","devicePixelContentBoxSize","borderBoxSize","contentBoxSize","contentRect","calculateBoxSizes","forceRecalculation","has","get","set","cs","getComputedStyle","svg","ownerSVGElement","removePadding","boxSizing","writingMode","canScrollVertically","overflowY","canScrollHorizontally","overflowX","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTop","borderTopWidth","borderRight","borderRightWidth","borderBottom","borderBottomWidth","horizontalPadding","verticalPadding","horizontalBorderArea","borderLeftWidth","verticalBorderArea","horizontalScrollbarThickness","clientHeight","verticalScrollbarThickness","clientWidth","widthReduction","heightReduction","contentWidth","contentHeight","borderBoxWidth","borderBoxHeight","boxes","Math","round","devicePixelRatio","calculateBoxSize","observedBox","DEVICE_PIXEL_CONTENT_BOX","BORDER_BOX","ResizeObserverEntry","calculateDepthForNode","node","Infinity","depth","parent","parentNode","broadcastActiveObservations","shallowestDepth","callbacks","forEach","ro","activeTargets","entries","ot","entry","targetDepth","push","lastReportedSize","callback","call","observer","splice","_i","callbacks_1","gatherActiveObservationsAtDepth","skippedTargets","observationTargets","isActive","process","event","some","ErrorEvent","message","document","createEvent","initEvent","dispatchEvent","queueMicroTask","toggle_1","el_1","createTextNode","MutationObserver","cb","observe","characterData","textContent","watching","observerConfig","attributes","childList","subtree","events","time","timeout","Date","now","scheduled","scheduler","Scheduler","_this","stopped","listener","schedule","run","until","elementsHaveResized","start","requestAnimationFrame","stop","body","addEventListener","name","disconnect","removeEventListener","updateCount","n","ResizeObservation","CONTENT_BOX","tagName","type","isReplacedElement","display","ResizeObserverDetail","resizeObserver","observerMap","getObservationIndex","i","ResizeObserverController","connect","detail","options","firstObservation","box","unobserve","index","lastObservation","indexOf","slice","ResizeObserver","arguments","TypeError","toString"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,iKAAgpBA,EAA5oBC,EAAgB,GAA8RC,EAAI,iEAAmX,SAAUF,GAA0BA,EAAqC,WAAE,aAAaA,EAAsC,YAAE,cAAcA,EAAmD,yBAAE,2BAAnM,CAAiOA,IAA2BA,EAAyB,KAAK,IAA8tOG,EAA1tOC,EAAO,SAAgBC,GAAK,OAAOC,OAAOF,OAAOC,IAAWE,EAA8B,SAA4BC,EAAWC,GAAWC,KAAKF,WAAWA,EAAWE,KAAKD,UAAUA,EAAUL,EAAOM,OAAyCC,EAAgB,WAAW,SAASA,EAAgBC,EAAEC,EAAEC,EAAMC,GAAgK,OAAxJL,KAAKE,EAAEA,EAAEF,KAAKG,EAAEA,EAAEH,KAAKI,MAAMA,EAAMJ,KAAKK,OAAOA,EAAOL,KAAKM,IAAIN,KAAKG,EAAEH,KAAKO,KAAKP,KAAKE,EAAEF,KAAKQ,OAAOR,KAAKM,IAAIN,KAAKK,OAAOL,KAAKS,MAAMT,KAAKO,KAAKP,KAAKI,MAAaV,EAAOM,MAAiY,OAA1XC,EAAgBS,UAAUC,OAAO,WAAW,IAAIC,EAAGZ,KAA2G,MAAM,CAACE,EAA3GU,EAAGV,EAA4GC,EAAxGS,EAAGT,EAAyGG,IAAnGM,EAAGN,IAAwGG,MAA9FG,EAAGH,MAAuGD,OAA1FI,EAAGJ,OAAqGD,KAAzFK,EAAGL,KAAgGH,MAArFQ,EAAGR,MAA8FC,OAAjFO,EAAGP,SAA+FJ,EAAgBY,SAAS,SAASC,GAAW,OAAO,IAAIb,EAAgBa,EAAUZ,EAAEY,EAAUX,EAAEW,EAAUV,MAAMU,EAAUT,SAAiBJ,EAApmB,GAA4nBc,EAAM,SAAeC,GAAQ,OAAOA,aAAkBC,YAAY,YAAYD,GAAaE,EAAS,SAAkBF,GA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AAYnI,IAAIkI,GAAgBM,EAAO/D,mBAAmBuE,QAAQxF,SAAQ,SAASI,GAAI,OAAO8C,EAAMkC,UAAUV,EAAetE,EAAGjG,WAAW6K,EAAO9E,cAAcU,OAAO,EAAEoE,EAAO9E,cAAcvF,SAAiBmK,EAA9wC,GAA+yCW,EAAe,WAAW,SAASA,EAAehF,GAAU,GAAsB,IAAnBiF,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,kFAAmF,GAAqB,mBAAXlF,EAAuB,MAAM,IAAIkF,UAAU,iGAAkGb,EAAyBC,QAAQ5L,KAAKsH,GAA47B,OAAj7BgF,EAAe5L,UAAUqI,QAAQ,SAAS/H,EAAO8K,GAAS,GAAsB,IAAnBS,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,6FAA8F,IAAI/K,EAAUT,GAAS,MAAM,IAAIwL,UAAU,wFAAyFb,EAAyB5C,QAAQ/I,KAAKgB,EAAO8K,IAAWQ,EAAe5L,UAAUuL,UAAU,SAASjL,GAAQ,GAAsB,IAAnBuL,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,+FAAgG,IAAI/K,EAAUT,GAAS,MAAM,IAAIwL,UAAU,0FAA2Fb,EAAyBM,UAAUjM,KAAKgB,IAAUsL,EAAe5L,UAAUkK,WAAW,WAAWe,EAAyBf,WAAW5K,OAAQsM,EAAeG,SAAS,WAAW,MAAM,kDAA0DH,EAA7yC","file":"analytics/0-05e94cb1.js","sourcesContent":["var resizeObservers=[];var hasActiveObservations=function hasActiveObservations(){return resizeObservers.some(function(ro){return ro.activeTargets.length>0;});};var hasSkippedObservations=function hasSkippedObservations(){return resizeObservers.some(function(ro){return ro.skippedTargets.length>0;});};var msg='ResizeObserver loop completed with undelivered notifications.';var deliverResizeLoopError=function deliverResizeLoopError(){var event;if(typeof ErrorEvent==='function'){event=new ErrorEvent('error',{message:msg});}else{event=document.createEvent('Event');event.initEvent('error',false,false);event.message=msg;}window.dispatchEvent(event);};var ResizeObserverBoxOptions;(function(ResizeObserverBoxOptions){ResizeObserverBoxOptions[\"BORDER_BOX\"]=\"border-box\";ResizeObserverBoxOptions[\"CONTENT_BOX\"]=\"content-box\";ResizeObserverBoxOptions[\"DEVICE_PIXEL_CONTENT_BOX\"]=\"device-pixel-content-box\";})(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function freeze(obj){return Object.freeze(obj);};var ResizeObserverSize=function(){function ResizeObserverSize(inlineSize,blockSize){this.inlineSize=inlineSize;this.blockSize=blockSize;freeze(this);}return ResizeObserverSize;}();var DOMRectReadOnly=function(){function DOMRectReadOnly(x,y,width,height){this.x=x;this.y=y;this.width=width;this.height=height;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return freeze(this);}DOMRectReadOnly.prototype.toJSON=function(){var _a=this,x=_a.x,y=_a.y,top=_a.top,right=_a.right,bottom=_a.bottom,left=_a.left,width=_a.width,height=_a.height;return{x:x,y:y,top:top,right:right,bottom:bottom,left:left,width:width,height:height};};DOMRectReadOnly.fromRect=function(rectangle){return new DOMRectReadOnly(rectangle.x,rectangle.y,rectangle.width,rectangle.height);};return DOMRectReadOnly;}();var isSVG=function isSVG(target){return target instanceof SVGElement&&'getBBox'in target;};var isHidden=function isHidden(target){if(isSVG(target)){var _a=target.getBBox(),width=_a.width,height=_a.height;return!width&&!height;}var _b=target,offsetWidth=_b.offsetWidth,offsetHeight=_b.offsetHeight;return!(offsetWidth||offsetHeight||target.getClientRects().length);};var isElement=function isElement(obj){var _a,_b;if(obj instanceof Element){return true;}var scope=(_b=(_a=obj)===null||_a===void 0?void 0:_a.ownerDocument)===null||_b===void 0?void 0:_b.defaultView;return!!(scope&&obj instanceof scope.Element);};var isReplacedElement=function isReplacedElement(target){switch(target.tagName){case'INPUT':if(target.type!=='image'){break;}case'VIDEO':case'AUDIO':case'EMBED':case'OBJECT':case'CANVAS':case'IFRAME':case'IMG':return true;}return false;};var global=typeof window!=='undefined'?window:{};var cache=new WeakMap();var scrollRegexp=/auto|scroll/;var verticalRegexp=/^tb|vertical/;var IE=/msie|trident/i.test(global.navigator&&global.navigator.userAgent);var parseDimension=function parseDimension(pixel){return parseFloat(pixel||'0');};var size=function size(inlineSize,blockSize,switchSizes){if(inlineSize===void 0){inlineSize=0;}if(blockSize===void 0){blockSize=0;}if(switchSizes===void 0){switchSizes=false;}return new ResizeObserverSize((switchSizes?blockSize:inlineSize)||0,(switchSizes?inlineSize:blockSize)||0);};var zeroBoxes=freeze({devicePixelContentBoxSize:size(),borderBoxSize:size(),contentBoxSize:size(),contentRect:new DOMRectReadOnly(0,0,0,0)});var calculateBoxSizes=function calculateBoxSizes(target,forceRecalculation){if(forceRecalculation===void 0){forceRecalculation=false;}if(cache.has(target)&&!forceRecalculation){return cache.get(target);}if(isHidden(target)){cache.set(target,zeroBoxes);return zeroBoxes;}var cs=getComputedStyle(target);var svg=isSVG(target)&&target.ownerSVGElement&&target.getBBox();var removePadding=!IE&&cs.boxSizing==='border-box';var switchSizes=verticalRegexp.test(cs.writingMode||'');var canScrollVertically=!svg&&scrollRegexp.test(cs.overflowY||'');var canScrollHorizontally=!svg&&scrollRegexp.test(cs.overflowX||'');var paddingTop=svg?0:parseDimension(cs.paddingTop);var paddingRight=svg?0:parseDimension(cs.paddingRight);var paddingBottom=svg?0:parseDimension(cs.paddingBottom);var paddingLeft=svg?0:parseDimension(cs.paddingLeft);var borderTop=svg?0:parseDimension(cs.borderTopWidth);var borderRight=svg?0:parseDimension(cs.borderRightWidth);var borderBottom=svg?0:parseDimension(cs.borderBottomWidth);var borderLeft=svg?0:parseDimension(cs.borderLeftWidth);var horizontalPadding=paddingLeft+paddingRight;var verticalPadding=paddingTop+paddingBottom;var horizontalBorderArea=borderLeft+borderRight;var verticalBorderArea=borderTop+borderBottom;var horizontalScrollbarThickness=!canScrollHorizontally?0:target.offsetHeight-verticalBorderArea-target.clientHeight;var verticalScrollbarThickness=!canScrollVertically?0:target.offsetWidth-horizontalBorderArea-target.clientWidth;var widthReduction=removePadding?horizontalPadding+horizontalBorderArea:0;var heightReduction=removePadding?verticalPadding+verticalBorderArea:0;var contentWidth=svg?svg.width:parseDimension(cs.width)-widthReduction-verticalScrollbarThickness;var contentHeight=svg?svg.height:parseDimension(cs.height)-heightReduction-horizontalScrollbarThickness;var borderBoxWidth=contentWidth+horizontalPadding+verticalScrollbarThickness+horizontalBorderArea;var borderBoxHeight=contentHeight+verticalPadding+horizontalScrollbarThickness+verticalBorderArea;var boxes=freeze({devicePixelContentBoxSize:size(Math.round(contentWidth*devicePixelRatio),Math.round(contentHeight*devicePixelRatio),switchSizes),borderBoxSize:size(borderBoxWidth,borderBoxHeight,switchSizes),contentBoxSize:size(contentWidth,contentHeight,switchSizes),contentRect:new DOMRectReadOnly(paddingLeft,paddingTop,contentWidth,contentHeight)});cache.set(target,boxes);return boxes;};var calculateBoxSize=function calculateBoxSize(target,observedBox,forceRecalculation){var _a=calculateBoxSizes(target,forceRecalculation),borderBoxSize=_a.borderBoxSize,contentBoxSize=_a.contentBoxSize,devicePixelContentBoxSize=_a.devicePixelContentBoxSize;switch(observedBox){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return devicePixelContentBoxSize;case ResizeObserverBoxOptions.BORDER_BOX:return borderBoxSize;default:return contentBoxSize;}};var ResizeObserverEntry=function(){function ResizeObserverEntry(target){var boxes=calculateBoxSizes(target);this.target=target;this.contentRect=boxes.contentRect;this.borderBoxSize=freeze([boxes.borderBoxSize]);this.contentBoxSize=freeze([boxes.contentBoxSize]);this.devicePixelContentBoxSize=freeze([boxes.devicePixelContentBoxSize]);}return ResizeObserverEntry;}();var calculateDepthForNode=function calculateDepthForNode(node){if(isHidden(node)){return Infinity;}var depth=0;var parent=node.parentNode;while(parent){depth+=1;parent=parent.parentNode;}return depth;};var broadcastActiveObservations=function broadcastActiveObservations(){var shallowestDepth=Infinity;var callbacks=[];resizeObservers.forEach(function processObserver(ro){if(ro.activeTargets.length===0){return;}var entries=[];ro.activeTargets.forEach(function processTarget(ot){var entry=new ResizeObserverEntry(ot.target);var targetDepth=calculateDepthForNode(ot.target);entries.push(entry);ot.lastReportedSize=calculateBoxSize(ot.target,ot.observedBox);if(targetDepth<shallowestDepth){shallowestDepth=targetDepth;}});callbacks.push(function resizeObserverCallback(){ro.callback.call(ro.observer,entries,ro.observer);});ro.activeTargets.splice(0,ro.activeTargets.length);});for(var _i=0,callbacks_1=callbacks;_i<callbacks_1.length;_i++){var callback=callbacks_1[_i];callback();}return shallowestDepth;};var gatherActiveObservationsAtDepth=function gatherActiveObservationsAtDepth(depth){resizeObservers.forEach(function processObserver(ro){ro.activeTargets.splice(0,ro.activeTargets.length);ro.skippedTargets.splice(0,ro.skippedTargets.length);ro.observationTargets.forEach(function processTarget(ot){if(ot.isActive()){if(calculateDepthForNode(ot.target)>depth){ro.activeTargets.push(ot);}else{ro.skippedTargets.push(ot);}}});});};var process=function process(){var depth=0;gatherActiveObservationsAtDepth(depth);while(hasActiveObservations()){depth=broadcastActiveObservations();gatherActiveObservationsAtDepth(depth);}if(hasSkippedObservations()){deliverResizeLoopError();}return depth>0;};var trigger;var callbacks=[];var notify=function notify(){return callbacks.splice(0).forEach(function(cb){return cb();});};var queueMicroTask=function queueMicroTask(callback){if(!trigger){var toggle_1=0;var el_1=document.createTextNode('');var config={characterData:true};new MutationObserver(function(){return notify();}).observe(el_1,config);trigger=function trigger(){el_1.textContent=\"\"+(toggle_1?toggle_1--:toggle_1++);};}callbacks.push(callback);trigger();};var queueResizeObserver=function queueResizeObserver(cb){queueMicroTask(function ResizeObserver(){requestAnimationFrame(cb);});};var watching=0;var isWatching=function isWatching(){return!!watching;};var CATCH_PERIOD=250;var observerConfig={attributes:true,characterData:true,childList:true,subtree:true};var events=['resize','load','transitionend','animationend','animationstart','animationiteration','keyup','keydown','mouseup','mousedown','mouseover','mouseout','blur','focus'];var time=function time(timeout){if(timeout===void 0){timeout=0;}return Date.now()+timeout;};var scheduled=false;var Scheduler=function(){function Scheduler(){var _this=this;this.stopped=true;this.listener=function(){return _this.schedule();};}Scheduler.prototype.run=function(timeout){var _this=this;if(timeout===void 0){timeout=CATCH_PERIOD;}if(scheduled){return;}scheduled=true;var until=time(timeout);queueResizeObserver(function(){var elementsHaveResized=false;try{elementsHaveResized=process();}finally{scheduled=false;timeout=until-time();if(!isWatching()){return;}if(elementsHaveResized){_this.run(1000);}else if(timeout>0){_this.run(timeout);}else{_this.start();}}});};Scheduler.prototype.schedule=function(){this.stop();this.run();};Scheduler.prototype.observe=function(){var _this=this;var cb=function cb(){return _this.observer&&_this.observer.observe(document.body,observerConfig);};document.body?cb():global.addEventListener('DOMContentLoaded',cb);};Scheduler.prototype.start=function(){var _this=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();events.forEach(function(name){return global.addEventListener(name,_this.listener,true);});}};Scheduler.prototype.stop=function(){var _this=this;if(!this.stopped){this.observer&&this.observer.disconnect();events.forEach(function(name){return global.removeEventListener(name,_this.listener,true);});this.stopped=true;}};return Scheduler;}();var scheduler=new Scheduler();var updateCount=function updateCount(n){!watching&&n>0&&scheduler.start();watching+=n;!watching&&scheduler.stop();};var skipNotifyOnElement=function skipNotifyOnElement(target){return!isSVG(target)&&!isReplacedElement(target)&&getComputedStyle(target).display==='inline';};var ResizeObservation=function(){function ResizeObservation(target,observedBox){this.target=target;this.observedBox=observedBox||ResizeObserverBoxOptions.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0};}ResizeObservation.prototype.isActive=function(){var size=calculateBoxSize(this.target,this.observedBox,true);if(skipNotifyOnElement(this.target)){this.lastReportedSize=size;}if(this.lastReportedSize.inlineSize!==size.inlineSize||this.lastReportedSize.blockSize!==size.blockSize){return true;}return false;};return ResizeObservation;}();var ResizeObserverDetail=function(){function ResizeObserverDetail(resizeObserver,callback){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=resizeObserver;this.callback=callback;}return ResizeObserverDetail;}();var observerMap=new WeakMap();var getObservationIndex=function getObservationIndex(observationTargets,target){for(var i=0;i<observationTargets.length;i+=1){if(observationTargets[i].target===target){return i;}}return-1;};var ResizeObserverController=function(){function ResizeObserverController(){}ResizeObserverController.connect=function(resizeObserver,callback){var detail=new ResizeObserverDetail(resizeObserver,callback);observerMap.set(resizeObserver,detail);};ResizeObserverController.observe=function(resizeObserver,target,options){var detail=observerMap.get(resizeObserver);var firstObservation=detail.observationTargets.length===0;if(getObservationIndex(detail.observationTargets,target)<0){firstObservation&&resizeObservers.push(detail);detail.observationTargets.push(new ResizeObservation(target,options&&options.box));updateCount(1);scheduler.schedule();}};ResizeObserverController.unobserve=function(resizeObserver,target){var detail=observerMap.get(resizeObserver);var index=getObservationIndex(detail.observationTargets,target);var lastObservation=detail.observationTargets.length===1;if(index>=0){lastObservation&&resizeObservers.splice(resizeObservers.indexOf(detail),1);detail.observationTargets.splice(index,1);updateCount(-1);}};ResizeObserverController.disconnect=function(resizeObserver){var _this=this;var detail=observerMap.get(resizeObserver);detail.observationTargets.slice().forEach(function(ot){return _this.unobserve(resizeObserver,ot.target);});detail.activeTargets.splice(0,detail.activeTargets.length);};return ResizeObserverController;}();var ResizeObserver=function(){function ResizeObserver(callback){if(arguments.length===0){throw new TypeError(\"Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.\");}if(typeof callback!=='function'){throw new TypeError(\"Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.\");}ResizeObserverController.connect(this,callback);}ResizeObserver.prototype.observe=function(target,options){if(arguments.length===0){throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.\");}if(!isElement(target)){throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element\");}ResizeObserverController.observe(this,target,options);};ResizeObserver.prototype.unobserve=function(target){if(arguments.length===0){throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.\");}if(!isElement(target)){throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element\");}ResizeObserverController.unobserve(this,target);};ResizeObserver.prototype.disconnect=function(){ResizeObserverController.disconnect(this);};ResizeObserver.toString=function(){return'function ResizeObserver () { [polyfill code] }';};return ResizeObserver;}();export{ResizeObserver,ResizeObserverEntry,ResizeObserverSize};"],"sourceRoot":""}
dist/analytics/0-ecdca2a6.js DELETED
@@ -1,19 +0,0 @@
1
- /*!
2
- *
3
- * Presto Player
4
- *
5
- * @author Presto Made, Inc
6
- * @version 0.1.0
7
- * @link undefined
8
- * @license GPL
9
- *
10
- * Copyright (c) 2021 Presto Made, Inc
11
- *
12
- * This software is released under the GPL License
13
- * https://opensource.org/licenses/GPL
14
- *
15
- * Compiled with the help of https://wpack.io
16
- * A zero setup Webpack Bundler Script for WordPress
17
- */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[0],{46:function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeObserver",(function(){return V})),n.d(t,"ResizeObserverEntry",(function(){return m})),n.d(t,"ResizeObserverSize",(function(){return c}));var r,i=[],o="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(r||(r={}));var s,a=function(e){return Object.freeze(e)},c=function(e,t){this.inlineSize=e,this.blockSize=t,a(this)},u=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,a(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),h=function(e){return e instanceof SVGElement&&"getBBox"in e},f=function(e){if(h(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||e.getClientRects().length)},d=function(e){var t,n;if(e instanceof Element)return!0;var r=null===(n=null===(t=e)||void 0===t?void 0:t.ownerDocument)||void 0===n?void 0:n.defaultView;return!!(r&&e instanceof r.Element)},v="undefined"!=typeof window?window:{},p=new WeakMap,l=/auto|scroll/,g=/^tb|vertical/,b=/msie|trident/i.test(v.navigator&&v.navigator.userAgent),w=function(e){return parseFloat(e||"0")},E=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new c((n?t:e)||0,(n?e:t)||0)},x=a({devicePixelContentBoxSize:E(),borderBoxSize:E(),contentBoxSize:E(),contentRect:new u(0,0,0,0)}),y=function(e,t){if(void 0===t&&(t=!1),p.has(e)&&!t)return p.get(e);if(f(e))return p.set(e,x),x;var n=getComputedStyle(e),r=h(e)&&e.ownerSVGElement&&e.getBBox(),i=!b&&"border-box"===n.boxSizing,o=g.test(n.writingMode||""),s=!r&&l.test(n.overflowY||""),c=!r&&l.test(n.overflowX||""),d=r?0:w(n.paddingTop),v=r?0:w(n.paddingRight),y=r?0:w(n.paddingBottom),T=r?0:w(n.paddingLeft),m=r?0:w(n.borderTopWidth),z=r?0:w(n.borderRightWidth),S=r?0:w(n.borderBottomWidth),B=T+v,O=d+y,R=(r?0:w(n.borderLeftWidth))+z,k=m+S,C=c?e.offsetHeight-k-e.clientHeight:0,N=s?e.offsetWidth-R-e.clientWidth:0,D=i?B+R:0,P=i?O+k:0,M=r?r.width:w(n.width)-D-N,_=r?r.height:w(n.height)-P-C,F=M+B+N+R,I=_+O+C+k,L=a({devicePixelContentBoxSize:E(Math.round(M*devicePixelRatio),Math.round(_*devicePixelRatio),o),borderBoxSize:E(F,I,o),contentBoxSize:E(M,_,o),contentRect:new u(T,d,M,_)});return p.set(e,L),L},T=function(e,t,n){var i=y(e,n),o=i.borderBoxSize,s=i.contentBoxSize,a=i.devicePixelContentBoxSize;switch(t){case r.DEVICE_PIXEL_CONTENT_BOX:return a;case r.BORDER_BOX:return o;default:return s}},m=function(e){var t=y(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=a([t.borderBoxSize]),this.contentBoxSize=a([t.contentBoxSize]),this.devicePixelContentBoxSize=a([t.devicePixelContentBoxSize])},z=function(e){if(f(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},S=function(){var e=1/0,t=[];i.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new m(t.target),i=z(t.target);r.push(n),t.lastReportedSize=T(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},B=function(e){i.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(z(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},O=function(){var e,t=0;for(B(t);i.some((function(e){return e.activeTargets.length>0}));)t=S(),B(t);return i.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:o}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=o),window.dispatchEvent(e)),t>0},R=[],k=function(e){if(!s){var t=0,n=document.createTextNode("");new MutationObserver((function(){return R.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),s=function(){n.textContent=""+(t?t--:t++)}}R.push(e),s()},C=0,N={attributes:!0,characterData:!0,childList:!0,subtree:!0},D=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],P=function(e){return void 0===e&&(e=0),Date.now()+e},M=!1,_=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!M){M=!0;var n,r=P(e);n=function(){var n=!1;try{n=O()}finally{if(M=!1,e=r-P(),!C)return;n?t.run(1e3):e>0?t.run(e):t.start()}},k((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,N)};document.body?t():v.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),D.forEach((function(t){return v.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),D.forEach((function(t){return v.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),F=function(e){!C&&e>0&&_.start(),!(C+=e)&&_.stop()},I=function(){function e(e,t){this.target=e,this.observedBox=t||r.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=T(this.target,this.observedBox,!0);return e=this.target,h(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),L=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},W=new WeakMap,X=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},A=function(){function e(){}return e.connect=function(e,t){var n=new L(e,t);W.set(e,n)},e.observe=function(e,t,n){var r=W.get(e),o=0===r.observationTargets.length;X(r.observationTargets,t)<0&&(o&&i.push(r),r.observationTargets.push(new I(t,n&&n.box)),F(1),_.schedule())},e.unobserve=function(e,t){var n=W.get(e),r=X(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&i.splice(i.indexOf(n),1),n.observationTargets.splice(r,1),F(-1))},e.disconnect=function(e){var t=this,n=W.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),V=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");A.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");A.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!d(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");A.unobserve(this,e)},e.prototype.disconnect=function(){A.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}()}}]);
19
- //# sourceMappingURL=0-ecdca2a6.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dist/analytics/0-ecdca2a6.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/resize-observer.js"],"names":["ResizeObserverBoxOptions","resizeObservers","msg","trigger","freeze","obj","Object","ResizeObserverSize","inlineSize","blockSize","this","DOMRectReadOnly","x","y","width","height","top","left","bottom","right","prototype","toJSON","_a","fromRect","rectangle","isSVG","target","SVGElement","isHidden","getBBox","_b","offsetWidth","offsetHeight","getClientRects","length","isElement","Element","scope","ownerDocument","defaultView","global","window","cache","WeakMap","scrollRegexp","verticalRegexp","IE","test","navigator","userAgent","parseDimension","pixel","parseFloat","size","switchSizes","zeroBoxes","devicePixelContentBoxSize","borderBoxSize","contentBoxSize","contentRect","calculateBoxSizes","forceRecalculation","has","get","set","cs","getComputedStyle","svg","ownerSVGElement","removePadding","boxSizing","writingMode","canScrollVertically","overflowY","canScrollHorizontally","overflowX","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTop","borderTopWidth","borderRight","borderRightWidth","borderBottom","borderBottomWidth","horizontalPadding","verticalPadding","horizontalBorderArea","borderLeftWidth","verticalBorderArea","horizontalScrollbarThickness","clientHeight","verticalScrollbarThickness","clientWidth","widthReduction","heightReduction","contentWidth","contentHeight","borderBoxWidth","borderBoxHeight","boxes","Math","round","devicePixelRatio","calculateBoxSize","observedBox","DEVICE_PIXEL_CONTENT_BOX","BORDER_BOX","ResizeObserverEntry","calculateDepthForNode","node","Infinity","depth","parent","parentNode","broadcastActiveObservations","shallowestDepth","callbacks","forEach","ro","activeTargets","entries","ot","entry","targetDepth","push","lastReportedSize","callback","call","observer","splice","_i","callbacks_1","gatherActiveObservationsAtDepth","skippedTargets","observationTargets","isActive","process","event","some","ErrorEvent","message","document","createEvent","initEvent","dispatchEvent","queueMicroTask","toggle_1","el_1","createTextNode","MutationObserver","cb","observe","characterData","textContent","watching","observerConfig","attributes","childList","subtree","events","time","timeout","Date","now","scheduled","scheduler","Scheduler","_this","stopped","listener","schedule","run","until","elementsHaveResized","start","requestAnimationFrame","stop","body","addEventListener","name","disconnect","removeEventListener","updateCount","n","ResizeObservation","CONTENT_BOX","tagName","type","isReplacedElement","display","ResizeObserverDetail","resizeObserver","observerMap","getObservationIndex","i","ResizeObserverController","connect","detail","options","firstObservation","box","unobserve","index","lastObservation","indexOf","slice","ResizeObserver","arguments","TypeError","toString"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,iKAAgpBA,EAA5oBC,EAAgB,GAA8RC,EAAI,iEAAmX,SAAUF,GAA0BA,EAAqC,WAAE,aAAaA,EAAsC,YAAE,cAAcA,EAAmD,yBAAE,2BAAnM,CAAiOA,IAA2BA,EAAyB,KAAK,IAA8tOG,EAA1tOC,EAAO,SAAgBC,GAAK,OAAOC,OAAOF,OAAOC,IAAWE,EAA8B,SAA4BC,EAAWC,GAAWC,KAAKF,WAAWA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SAAS/H,EAAO8K,GAAS,GAAsB,IAAnBS,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,6FAA8F,IAAI/K,EAAUT,GAAS,MAAM,IAAIwL,UAAU,wFAAyFb,EAAyB5C,QAAQ/I,KAAKgB,EAAO8K,IAAWQ,EAAe5L,UAAUuL,UAAU,SAASjL,GAAQ,GAAsB,IAAnBuL,UAAU/K,OAAY,MAAM,IAAIgL,UAAU,+FAAgG,IAAI/K,EAAUT,GAAS,MAAM,IAAIwL,UAAU,0FAA2Fb,EAAyBM,UAAUjM,KAAKgB,IAAUsL,EAAe5L,UAAUkK,WAAW,WAAWe,EAAyBf,WAAW5K,OAAQsM,EAAeG,SAAS,WAAW,MAAM,kDAA0DH,EAA7yC","file":"analytics/0-ecdca2a6.js","sourcesContent":["var resizeObservers=[];var hasActiveObservations=function hasActiveObservations(){return resizeObservers.some(function(ro){return ro.activeTargets.length>0;});};var hasSkippedObservations=function hasSkippedObservations(){return resizeObservers.some(function(ro){return ro.skippedTargets.length>0;});};var msg='ResizeObserver loop completed with undelivered notifications.';var deliverResizeLoopError=function deliverResizeLoopError(){var event;if(typeof ErrorEvent==='function'){event=new ErrorEvent('error',{message:msg});}else{event=document.createEvent('Event');event.initEvent('error',false,false);event.message=msg;}window.dispatchEvent(event);};var ResizeObserverBoxOptions;(function(ResizeObserverBoxOptions){ResizeObserverBoxOptions[\"BORDER_BOX\"]=\"border-box\";ResizeObserverBoxOptions[\"CONTENT_BOX\"]=\"content-box\";ResizeObserverBoxOptions[\"DEVICE_PIXEL_CONTENT_BOX\"]=\"device-pixel-content-box\";})(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function freeze(obj){return Object.freeze(obj);};var ResizeObserverSize=function(){function ResizeObserverSize(inlineSize,blockSize){this.inlineSize=inlineSize;this.blockSize=blockSize;freeze(this);}return ResizeObserverSize;}();var DOMRectReadOnly=function(){function DOMRectReadOnly(x,y,width,height){this.x=x;this.y=y;this.width=width;this.height=height;this.top=this.y;this.left=this.x;this.bottom=this.top+this.height;this.right=this.left+this.width;return freeze(this);}DOMRectReadOnly.prototype.toJSON=function(){var _a=this,x=_a.x,y=_a.y,top=_a.top,right=_a.right,bottom=_a.bottom,left=_a.left,width=_a.width,height=_a.height;return{x:x,y:y,top:top,right:right,bottom:bottom,left:left,width:width,height:height};};DOMRectReadOnly.fromRect=function(rectangle){return new DOMRectReadOnly(rectangle.x,rectangle.y,rectangle.width,rectangle.height);};return DOMRectReadOnly;}();var isSVG=function isSVG(target){return target instanceof SVGElement&&'getBBox'in target;};var isHidden=function isHidden(target){if(isSVG(target)){var _a=target.getBBox(),width=_a.width,height=_a.height;return!width&&!height;}var _b=target,offsetWidth=_b.offsetWidth,offsetHeight=_b.offsetHeight;return!(offsetWidth||offsetHeight||target.getClientRects().length);};var isElement=function isElement(obj){var _a,_b;if(obj instanceof Element){return true;}var scope=(_b=(_a=obj)===null||_a===void 0?void 0:_a.ownerDocument)===null||_b===void 0?void 0:_b.defaultView;return!!(scope&&obj instanceof scope.Element);};var isReplacedElement=function isReplacedElement(target){switch(target.tagName){case'INPUT':if(target.type!=='image'){break;}case'VIDEO':case'AUDIO':case'EMBED':case'OBJECT':case'CANVAS':case'IFRAME':case'IMG':return true;}return false;};var global=typeof window!=='undefined'?window:{};var cache=new WeakMap();var scrollRegexp=/auto|scroll/;var verticalRegexp=/^tb|vertical/;var IE=/msie|trident/i.test(global.navigator&&global.navigator.userAgent);var parseDimension=function parseDimension(pixel){return parseFloat(pixel||'0');};var size=function size(inlineSize,blockSize,switchSizes){if(inlineSize===void 0){inlineSize=0;}if(blockSize===void 0){blockSize=0;}if(switchSizes===void 0){switchSizes=false;}return new ResizeObserverSize((switchSizes?blockSize:inlineSize)||0,(switchSizes?inlineSize:blockSize)||0);};var zeroBoxes=freeze({devicePixelContentBoxSize:size(),borderBoxSize:size(),contentBoxSize:size(),contentRect:new DOMRectReadOnly(0,0,0,0)});var calculateBoxSizes=function calculateBoxSizes(target,forceRecalculation){if(forceRecalculation===void 0){forceRecalculation=false;}if(cache.has(target)&&!forceRecalculation){return cache.get(target);}if(isHidden(target)){cache.set(target,zeroBoxes);return zeroBoxes;}var cs=getComputedStyle(target);var svg=isSVG(target)&&target.ownerSVGElement&&target.getBBox();var removePadding=!IE&&cs.boxSizing==='border-box';var switchSizes=verticalRegexp.test(cs.writingMode||'');var canScrollVertically=!svg&&scrollRegexp.test(cs.overflowY||'');var canScrollHorizontally=!svg&&scrollRegexp.test(cs.overflowX||'');var paddingTop=svg?0:parseDimension(cs.paddingTop);var paddingRight=svg?0:parseDimension(cs.paddingRight);var paddingBottom=svg?0:parseDimension(cs.paddingBottom);var paddingLeft=svg?0:parseDimension(cs.paddingLeft);var borderTop=svg?0:parseDimension(cs.borderTopWidth);var borderRight=svg?0:parseDimension(cs.borderRightWidth);var borderBottom=svg?0:parseDimension(cs.borderBottomWidth);var borderLeft=svg?0:parseDimension(cs.borderLeftWidth);var horizontalPadding=paddingLeft+paddingRight;var verticalPadding=paddingTop+paddingBottom;var horizontalBorderArea=borderLeft+borderRight;var verticalBorderArea=borderTop+borderBottom;var horizontalScrollbarThickness=!canScrollHorizontally?0:target.offsetHeight-verticalBorderArea-target.clientHeight;var verticalScrollbarThickness=!canScrollVertically?0:target.offsetWidth-horizontalBorderArea-target.clientWidth;var widthReduction=removePadding?horizontalPadding+horizontalBorderArea:0;var heightReduction=removePadding?verticalPadding+verticalBorderArea:0;var contentWidth=svg?svg.width:parseDimension(cs.width)-widthReduction-verticalScrollbarThickness;var contentHeight=svg?svg.height:parseDimension(cs.height)-heightReduction-horizontalScrollbarThickness;var borderBoxWidth=contentWidth+horizontalPadding+verticalScrollbarThickness+horizontalBorderArea;var borderBoxHeight=contentHeight+verticalPadding+horizontalScrollbarThickness+verticalBorderArea;var boxes=freeze({devicePixelContentBoxSize:size(Math.round(contentWidth*devicePixelRatio),Math.round(contentHeight*devicePixelRatio),switchSizes),borderBoxSize:size(borderBoxWidth,borderBoxHeight,switchSizes),contentBoxSize:size(contentWidth,contentHeight,switchSizes),contentRect:new DOMRectReadOnly(paddingLeft,paddingTop,contentWidth,contentHeight)});cache.set(target,boxes);return boxes;};var calculateBoxSize=function calculateBoxSize(target,observedBox,forceRecalculation){var _a=calculateBoxSizes(target,forceRecalculation),borderBoxSize=_a.borderBoxSize,contentBoxSize=_a.contentBoxSize,devicePixelContentBoxSize=_a.devicePixelContentBoxSize;switch(observedBox){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return devicePixelContentBoxSize;case ResizeObserverBoxOptions.BORDER_BOX:return borderBoxSize;default:return contentBoxSize;}};var ResizeObserverEntry=function(){function ResizeObserverEntry(target){var boxes=calculateBoxSizes(target);this.target=target;this.contentRect=boxes.contentRect;this.borderBoxSize=freeze([boxes.borderBoxSize]);this.contentBoxSize=freeze([boxes.contentBoxSize]);this.devicePixelContentBoxSize=freeze([boxes.devicePixelContentBoxSize]);}return ResizeObserverEntry;}();var calculateDepthForNode=function calculateDepthForNode(node){if(isHidden(node)){return Infinity;}var depth=0;var parent=node.parentNode;while(parent){depth+=1;parent=parent.parentNode;}return depth;};var broadcastActiveObservations=function broadcastActiveObservations(){var shallowestDepth=Infinity;var callbacks=[];resizeObservers.forEach(function processObserver(ro){if(ro.activeTargets.length===0){return;}var entries=[];ro.activeTargets.forEach(function processTarget(ot){var entry=new ResizeObserverEntry(ot.target);var targetDepth=calculateDepthForNode(ot.target);entries.push(entry);ot.lastReportedSize=calculateBoxSize(ot.target,ot.observedBox);if(targetDepth<shallowestDepth){shallowestDepth=targetDepth;}});callbacks.push(function resizeObserverCallback(){ro.callback.call(ro.observer,entries,ro.observer);});ro.activeTargets.splice(0,ro.activeTargets.length);});for(var _i=0,callbacks_1=callbacks;_i<callbacks_1.length;_i++){var callback=callbacks_1[_i];callback();}return shallowestDepth;};var gatherActiveObservationsAtDepth=function gatherActiveObservationsAtDepth(depth){resizeObservers.forEach(function processObserver(ro){ro.activeTargets.splice(0,ro.activeTargets.length);ro.skippedTargets.splice(0,ro.skippedTargets.length);ro.observationTargets.forEach(function processTarget(ot){if(ot.isActive()){if(calculateDepthForNode(ot.target)>depth){ro.activeTargets.push(ot);}else{ro.skippedTargets.push(ot);}}});});};var process=function process(){var depth=0;gatherActiveObservationsAtDepth(depth);while(hasActiveObservations()){depth=broadcastActiveObservations();gatherActiveObservationsAtDepth(depth);}if(hasSkippedObservations()){deliverResizeLoopError();}return depth>0;};var trigger;var callbacks=[];var notify=function notify(){return callbacks.splice(0).forEach(function(cb){return cb();});};var queueMicroTask=function queueMicroTask(callback){if(!trigger){var toggle_1=0;var el_1=document.createTextNode('');var config={characterData:true};new MutationObserver(function(){return notify();}).observe(el_1,config);trigger=function trigger(){el_1.textContent=\"\"+(toggle_1?toggle_1--:toggle_1++);};}callbacks.push(callback);trigger();};var queueResizeObserver=function queueResizeObserver(cb){queueMicroTask(function ResizeObserver(){requestAnimationFrame(cb);});};var watching=0;var isWatching=function isWatching(){return!!watching;};var CATCH_PERIOD=250;var observerConfig={attributes:true,characterData:true,childList:true,subtree:true};var events=['resize','load','transitionend','animationend','animationstart','animationiteration','keyup','keydown','mouseup','mousedown','mouseover','mouseout','blur','focus'];var time=function time(timeout){if(timeout===void 0){timeout=0;}return Date.now()+timeout;};var scheduled=false;var Scheduler=function(){function Scheduler(){var _this=this;this.stopped=true;this.listener=function(){return _this.schedule();};}Scheduler.prototype.run=function(timeout){var _this=this;if(timeout===void 0){timeout=CATCH_PERIOD;}if(scheduled){return;}scheduled=true;var until=time(timeout);queueResizeObserver(function(){var elementsHaveResized=false;try{elementsHaveResized=process();}finally{scheduled=false;timeout=until-time();if(!isWatching()){return;}if(elementsHaveResized){_this.run(1000);}else if(timeout>0){_this.run(timeout);}else{_this.start();}}});};Scheduler.prototype.schedule=function(){this.stop();this.run();};Scheduler.prototype.observe=function(){var _this=this;var cb=function cb(){return _this.observer&&_this.observer.observe(document.body,observerConfig);};document.body?cb():global.addEventListener('DOMContentLoaded',cb);};Scheduler.prototype.start=function(){var _this=this;if(this.stopped){this.stopped=false;this.observer=new MutationObserver(this.listener);this.observe();events.forEach(function(name){return global.addEventListener(name,_this.listener,true);});}};Scheduler.prototype.stop=function(){var _this=this;if(!this.stopped){this.observer&&this.observer.disconnect();events.forEach(function(name){return global.removeEventListener(name,_this.listener,true);});this.stopped=true;}};return Scheduler;}();var scheduler=new Scheduler();var updateCount=function updateCount(n){!watching&&n>0&&scheduler.start();watching+=n;!watching&&scheduler.stop();};var skipNotifyOnElement=function skipNotifyOnElement(target){return!isSVG(target)&&!isReplacedElement(target)&&getComputedStyle(target).display==='inline';};var ResizeObservation=function(){function ResizeObservation(target,observedBox){this.target=target;this.observedBox=observedBox||ResizeObserverBoxOptions.CONTENT_BOX;this.lastReportedSize={inlineSize:0,blockSize:0};}ResizeObservation.prototype.isActive=function(){var size=calculateBoxSize(this.target,this.observedBox,true);if(skipNotifyOnElement(this.target)){this.lastReportedSize=size;}if(this.lastReportedSize.inlineSize!==size.inlineSize||this.lastReportedSize.blockSize!==size.blockSize){return true;}return false;};return ResizeObservation;}();var ResizeObserverDetail=function(){function ResizeObserverDetail(resizeObserver,callback){this.activeTargets=[];this.skippedTargets=[];this.observationTargets=[];this.observer=resizeObserver;this.callback=callback;}return ResizeObserverDetail;}();var observerMap=new WeakMap();var getObservationIndex=function getObservationIndex(observationTargets,target){for(var i=0;i<observationTargets.length;i+=1){if(observationTargets[i].target===target){return i;}}return-1;};var ResizeObserverController=function(){function ResizeObserverController(){}ResizeObserverController.connect=function(resizeObserver,callback){var detail=new ResizeObserverDetail(resizeObserver,callback);observerMap.set(resizeObserver,detail);};ResizeObserverController.observe=function(resizeObserver,target,options){var detail=observerMap.get(resizeObserver);var firstObservation=detail.observationTargets.length===0;if(getObservationIndex(detail.observationTargets,target)<0){firstObservation&&resizeObservers.push(detail);detail.observationTargets.push(new ResizeObservation(target,options&&options.box));updateCount(1);scheduler.schedule();}};ResizeObserverController.unobserve=function(resizeObserver,target){var detail=observerMap.get(resizeObserver);var index=getObservationIndex(detail.observationTargets,target);var lastObservation=detail.observationTargets.length===1;if(index>=0){lastObservation&&resizeObservers.splice(resizeObservers.indexOf(detail),1);detail.observationTargets.splice(index,1);updateCount(-1);}};ResizeObserverController.disconnect=function(resizeObserver){var _this=this;var detail=observerMap.get(resizeObserver);detail.observationTargets.slice().forEach(function(ot){return _this.unobserve(resizeObserver,ot.target);});detail.activeTargets.splice(0,detail.activeTargets.length);};return ResizeObserverController;}();var ResizeObserver=function(){function ResizeObserver(callback){if(arguments.length===0){throw new TypeError(\"Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.\");}if(typeof callback!=='function'){throw new TypeError(\"Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.\");}ResizeObserverController.connect(this,callback);}ResizeObserver.prototype.observe=function(target,options){if(arguments.length===0){throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.\");}if(!isElement(target)){throw new TypeError(\"Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element\");}ResizeObserverController.observe(this,target,options);};ResizeObserver.prototype.unobserve=function(target){if(arguments.length===0){throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.\");}if(!isElement(target)){throw new TypeError(\"Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element\");}ResizeObserverController.unobserve(this,target);};ResizeObserver.prototype.disconnect=function(){ResizeObserverController.disconnect(this);};ResizeObserver.toString=function(){return'function ResizeObserver () { [polyfill code] }';};return ResizeObserver;}();export{ResizeObserver,ResizeObserverEntry,ResizeObserverSize};"],"sourceRoot":""}
 
dist/analytics/{4-1071be7e.js → 4-10d614d7.js} RENAMED
@@ -15,5 +15,5 @@
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[4],{49:function(e,n,t){"use strict";t.r(n);var o=t(23);n.default=function(e){var n=e.config,t=e.selector,r=e.src,a=e.preload;return new Promise((function(e,i){if(window.Hls){if(window.Hls.isSupported()){var l,s=!["metadata","none"].includes(a);null!==(l=wp)&&void 0!==l&&l.blocks&&(s=!0);var u=new window.Hls({autoStartLoad:s});return u.loadSource(r),u.on(window.Hls.Events.LEVEL_SWITCHED,(function(e,n){var o=t.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span");u.autoLevelEnabled?o.innerHTML="AUTO (".concat(u.levels[n.level].height,"p)"):o.innerHTML="AUTO"})),void u.on(window.Hls.Events.MANIFEST_PARSED,(function(r,a){var i=u.levels.map((function(e){return e.height}));i.unshift(0);var l=i.findIndex((function(e){var n;return e===parseInt(null===(n=prestoPlayer)||void 0===n?void 0:n.hls_start_level)}));u.startLevel=l?l-1:2,n.quality={default:0,options:i,forced:!0,onChange:function(e){0===e?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(n,t){n.height===e&&(console.log("Found quality match with "+e),prestoHLS.currentLevel=t)}))}},u.attachMedia(t),window.prestoHLS=u;var s=new o.a(t,Object(o.b)({},n));s.hls=u;return s.on("waiting",(function e(){u.startLoad(-1),s.off("waiting",e)})),s.on("languagechange",(function(){setTimeout((function(){return u.subtitleTrack=s.currentTrack}),50)})),e(s)}))}return e(new o.a(t,Object(o.b)({},n)))}}))}}}]);
19
- //# sourceMappingURL=4-1071be7e.js.map
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
+ (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[4],{51:function(e,n,t){"use strict";t.r(n);var o=t(24);n.default=function(e){var n=e.config,t=e.selector,r=e.src,a=e.preload;return new Promise((function(e,i){if(window.Hls){if(window.Hls.isSupported()){var l,s=!["metadata","none"].includes(a);null!==(l=wp)&&void 0!==l&&l.blocks&&(s=!0);var u=new window.Hls({autoStartLoad:s});return u.loadSource(r),u.on(window.Hls.Events.LEVEL_SWITCHED,(function(e,n){var o=t.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span");u.autoLevelEnabled?o.innerHTML="AUTO (".concat(u.levels[n.level].height,"p)"):o.innerHTML="AUTO"})),void u.on(window.Hls.Events.MANIFEST_PARSED,(function(r,a){var i=u.levels.map((function(e){return e.height}));i.unshift(0);var l=i.findIndex((function(e){var n;return e===parseInt(null===(n=prestoPlayer)||void 0===n?void 0:n.hls_start_level)}));u.startLevel=l?l-1:2,n.quality={default:0,options:i,forced:!0,onChange:function(e){0===e?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(n,t){n.height===e&&(console.log("Found quality match with "+e),prestoHLS.currentLevel=t)}))}},u.attachMedia(t),window.prestoHLS=u;var s=new o.a(t,Object(o.b)({},n));s.hls=u;return s.on("waiting",(function e(){u.startLoad(-1),s.off("waiting",e)})),s.on("languagechange",(function(){setTimeout((function(){return u.subtitleTrack=s.currentTrack}),50)})),e(s)}))}return e(new o.a(t,Object(o.b)({},n)))}}))}}}]);
19
+ //# sourceMappingURL=4-10d614d7.js.map
dist/analytics/{4-1071be7e.js.map → 4-10d614d7.js.map} RENAMED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/hls.js"],"names":["_ref","config","selector","src","preload","Promise","resolve","reject","window","Hls","isSupported","_wp","autoStartLoad","includes","wp","blocks","hls","loadSource","on","Events","LEVEL_SWITCHED","event","data","span","closest","querySelector","autoLevelEnabled","innerHTML","concat","levels","level","height","MANIFEST_PARSED","availableQualities","map","l","unshift","startLevel","findIndex","qty","_prestoPlayer","parseInt","prestoPlayer","hls_start_level","quality","default","options","forced","onChange","newQuality","prestoHLS","currentLevel","forEach","levelIndex","console","log","attachMedia","player","firstPlay","startLoad","off","setTimeout","subtitleTrack","currentTrack"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,mBAkBuM,UAlBjI,SAAaA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UM,OAAO0C,UAAUlC,EAC3C,IAAIyC,EAAO,IAAI,IAAavD,EAAS,YAAe,GAAGD,IAASwD,EAAOzC,IAAIA,EAGC,OAFWyC,EAAOvC,GAAG,WAAnF,SAASwC,IAAY1C,EAAI2C,WAAW,GAAGF,EAAOG,IAAI,UAAUF,MAC1ED,EAAOvC,GAAG,kBAAiB,WAC3B2C,YAAW,WAAW,OAAO7C,EAAI8C,cAAcL,EAAOM,eAAe,OAAczD,EAAQmD,MAAmB,OAAOnD,EAAQ,IAAI,IAAaJ,EAAS,YAAe,GAAGD","file":"analytics/4-1071be7e.js","sourcesContent":["import{P as PrestoPlayer,_ as _objectSpread2}from'./index.js';var hls=function hls(_ref){var config=_ref.config,selector=_ref.selector,src=_ref.src,preload=_ref.preload;return new Promise(function(resolve,reject){if(!window.Hls){return;}if(window.Hls.isSupported()){var _wp;// should we autoload start\nvar autoStartLoad=!['metadata','none'].includes(preload);// always autoload in admin for preview\nif((_wp=wp)!==null&&_wp!==void 0&&_wp.blocks){autoStartLoad=true;}// maybe don't auto start load depending on performance parameter\nvar hls=new window.Hls({autoStartLoad:autoStartLoad});hls.loadSource(src);// update menu container to dynamically display quality\nhls.on(window.Hls.Events.LEVEL_SWITCHED,function(event,data){var span=selector.closest('.presto-player__wrapper').querySelector(\".plyr__menu__container [data-plyr='quality'][value='0'] span\");if(hls.autoLevelEnabled){span.innerHTML=\"AUTO (\".concat(hls.levels[data.level].height,\"p)\");}else{span.innerHTML=\"AUTO\";}});// From the m3u8 playlist, hls parses the manifest and returns\n// all available video qualities. This is important, in this approach,\n// we will have one source on the Plyr player.\nhls.on(window.Hls.Events.MANIFEST_PARSED,function(event,data){// Transform available levels into an array of integers (height values).\nvar availableQualities=hls.levels.map(function(l){return l.height;});availableQualities.unshift(0);//prepend 0 to quality array;\n// do start level\nvar startLevel=availableQualities.findIndex(function(qty){var _prestoPlayer;return qty===parseInt((_prestoPlayer=prestoPlayer)===null||_prestoPlayer===void 0?void 0:_prestoPlayer.hls_start_level);});hls.startLevel=startLevel?startLevel-1:2;// Add new qualities to option\nconfig.quality={default:0,options:availableQualities,// this ensures Plyr to use Hls to update quality level\nforced:true,onChange:function onChange(newQuality){if(newQuality===0){prestoHLS.currentLevel=-1;//Enable AUTO quality if option.value = 0\n}else{prestoHLS.levels.forEach(function(level,levelIndex){if(level.height===newQuality){console.log('Found quality match with '+newQuality);prestoHLS.currentLevel=levelIndex;}});}}};// attach media and make our HLS options available globally\nhls.attachMedia(selector);window.prestoHLS=hls;// Initialize player\nvar player=new PrestoPlayer(selector,_objectSpread2({},config));player.hls=hls;// make sure we start loading on the first play\nvar firstPlay=function firstPlay(){hls.startLoad(-1);player.off('waiting',firstPlay);};player.on('waiting',firstPlay);// Handle changing captions\nplayer.on('languagechange',function(){// Caption support is still flaky. See: https://github.com/sampotts/plyr/issues/994\nsetTimeout(function(){return hls.subtitleTrack=player.currentTrack;},50);});return resolve(player);});return;}return resolve(new PrestoPlayer(selector,_objectSpread2({},config)));});};export default hls;"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/hls.js"],"names":["_ref","config","selector","src","preload","Promise","resolve","reject","window","Hls","isSupported","_wp","autoStartLoad","includes","wp","blocks","hls","loadSource","on","Events","LEVEL_SWITCHED","event","data","span","closest","querySelector","autoLevelEnabled","innerHTML","concat","levels","level","height","MANIFEST_PARSED","availableQualities","map","l","unshift","startLevel","findIndex","qty","_prestoPlayer","parseInt","prestoPlayer","hls_start_level","quality","default","options","forced","onChange","newQuality","prestoHLS","currentLevel","forEach","levelIndex","console","log","attachMedia","player","firstPlay","startLoad","off","setTimeout","subtitleTrack","currentTrack"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,mBAkBuM,UAlBjI,SAAaA,GAAM,IAAIC,EAAOD,EAAKC,OAAOC,EAASF,EAAKE,SAASC,EAAIH,EAAKG,IAAIC,EAAQJ,EAAKI,QAAQ,OAAO,IAAIC,SAAQ,SAASC,EAAQC,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SAASwC,IAAY1C,EAAI2C,WAAW,GAAGF,EAAOG,IAAI,UAAUF,MAC1ED,EAAOvC,GAAG,kBAAiB,WAC3B2C,YAAW,WAAW,OAAO7C,EAAI8C,cAAcL,EAAOM,eAAe,OAAczD,EAAQmD,MAAmB,OAAOnD,EAAQ,IAAI,IAAaJ,EAAS,YAAe,GAAGD","file":"analytics/4-10d614d7.js","sourcesContent":["import{P as PrestoPlayer,_ as _objectSpread2}from'./index.js';var hls=function hls(_ref){var config=_ref.config,selector=_ref.selector,src=_ref.src,preload=_ref.preload;return new Promise(function(resolve,reject){if(!window.Hls){return;}if(window.Hls.isSupported()){var _wp;// should we autoload start\nvar autoStartLoad=!['metadata','none'].includes(preload);// always autoload in admin for preview\nif((_wp=wp)!==null&&_wp!==void 0&&_wp.blocks){autoStartLoad=true;}// maybe don't auto start load depending on performance parameter\nvar hls=new window.Hls({autoStartLoad:autoStartLoad});hls.loadSource(src);// update menu container to dynamically display quality\nhls.on(window.Hls.Events.LEVEL_SWITCHED,function(event,data){var span=selector.closest('.presto-player__wrapper').querySelector(\".plyr__menu__container [data-plyr='quality'][value='0'] span\");if(hls.autoLevelEnabled){span.innerHTML=\"AUTO (\".concat(hls.levels[data.level].height,\"p)\");}else{span.innerHTML=\"AUTO\";}});// From the m3u8 playlist, hls parses the manifest and returns\n// all available video qualities. This is important, in this approach,\n// we will have one source on the Plyr player.\nhls.on(window.Hls.Events.MANIFEST_PARSED,function(event,data){// Transform available levels into an array of integers (height values).\nvar availableQualities=hls.levels.map(function(l){return l.height;});availableQualities.unshift(0);//prepend 0 to quality array;\n// do start level\nvar startLevel=availableQualities.findIndex(function(qty){var _prestoPlayer;return qty===parseInt((_prestoPlayer=prestoPlayer)===null||_prestoPlayer===void 0?void 0:_prestoPlayer.hls_start_level);});hls.startLevel=startLevel?startLevel-1:2;// Add new qualities to option\nconfig.quality={default:0,options:availableQualities,// this ensures Plyr to use Hls to update quality level\nforced:true,onChange:function onChange(newQuality){if(newQuality===0){prestoHLS.currentLevel=-1;//Enable AUTO quality if option.value = 0\n}else{prestoHLS.levels.forEach(function(level,levelIndex){if(level.height===newQuality){console.log('Found quality match with '+newQuality);prestoHLS.currentLevel=levelIndex;}});}}};// attach media and make our HLS options available globally\nhls.attachMedia(selector);window.prestoHLS=hls;// Initialize player\nvar player=new PrestoPlayer(selector,_objectSpread2({},config));player.hls=hls;// make sure we start loading on the first play\nvar firstPlay=function firstPlay(){hls.startLoad(-1);player.off('waiting',firstPlay);};player.on('waiting',firstPlay);// Handle changing captions\nplayer.on('languagechange',function(){// Caption support is still flaky. See: https://github.com/sampotts/plyr/issues/994\nsetTimeout(function(){return hls.subtitleTrack=player.currentTrack;},50);});return resolve(player);});return;}return resolve(new PrestoPlayer(selector,_objectSpread2({},config)));});};export default hls;"],"sourceRoot":""}
dist/analytics/4-1a7d5725.js DELETED
@@ -1,19 +0,0 @@
1
- /*!
2
- *
3
- * Presto Player
4
- *
5
- * @author Presto Made, Inc
6
- * @version 0.1.0
7
- * @link undefined
8
- * @license GPL
9
- *
10
- * Copyright (c) 2021 Presto Made, Inc
11
- *
12
- * This software is released under the GPL License
13
- * https://opensource.org/licenses/GPL
14
- *
15
- * Compiled with the help of https://wpack.io
16
- * A zero setup Webpack Bundler Script for WordPress
17
- */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[4],{54:function(e,n,t){"use strict";t.r(n);var o=t(21);n.default=function(e){var n=e.config,t=e.selector,r=e.src,a=e.preload;return new Promise((function(e,i){if(window.Hls){if(window.Hls.isSupported()){var l,s=!["metadata","none"].includes(a);null!==(l=wp)&&void 0!==l&&l.blocks&&(s=!0);var u=new window.Hls({autoStartLoad:s});return u.loadSource(r),u.on(window.Hls.Events.LEVEL_SWITCHED,(function(e,n){var o=t.closest(".presto-player__wrapper").querySelector(".plyr__menu__container [data-plyr='quality'][value='0'] span");u.autoLevelEnabled?o.innerHTML="AUTO (".concat(u.levels[n.level].height,"p)"):o.innerHTML="AUTO"})),void u.on(window.Hls.Events.MANIFEST_PARSED,(function(r,a){var i=u.levels.map((function(e){return e.height}));i.unshift(0);var l=i.findIndex((function(e){var n;return e===parseInt(null===(n=prestoPlayer)||void 0===n?void 0:n.hls_start_level)}));u.startLevel=l?l-1:2,n.quality={default:0,options:i,forced:!0,onChange:function(e){0===e?prestoHLS.currentLevel=-1:prestoHLS.levels.forEach((function(n,t){n.height===e&&(console.log("Found quality match with "+e),prestoHLS.currentLevel=t)}))}},u.attachMedia(t),window.prestoHLS=u;var s=new o.a(t,Object(o.b)({},n));s.hls=u;return s.on("waiting",(function e(){u.startLoad(-1),s.off("waiting",e)})),s.on("languagechange",(function(){setTimeout((function(){return u.subtitleTrack=s.currentTrack}),50)})),e(s)}))}return e(new o.a(t,Object(o.b)({},n)))}}))}}}]);
19
- //# sourceMappingURL=4-1a7d5725.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dist/analytics/4-1a7d5725.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/hls.js"],"names":["_ref","config","selector","src","preload","Promise","resolve","reject","window","Hls","isSupported","_wp","autoStartLoad","includes","wp","blocks","hls","loadSource","on","Events","LEVEL_SWITCHED","event","data","span","closest","querySelector","autoLevelEnabled","innerHTML","concat","levels","level","height","MANIFEST_PARSED","availableQualities","map","l","unshift","startLevel","findIndex","qty","_prestoPlayer","parseInt","prestoPlayer","hls_start_level","quality","default","options","forced","onChange","newQuality","prestoHLS","currentLevel","forEach","levelIndex","console","log","attachMedia","player","firstPlay","startLoad","off","setTimeout","subtitleTrack","currentTrack"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,mBAkBuM,UAlBjI,SAAaA,GAAM,IAAIC,EAAOD,EAAKC,OAAOC,EAASF,EAAKE,SAASC,EAAIH,EAAKG,IAAIC,EAAQJ,EAAKI,QAAQ,OAAO,IAAIC,SAAQ,SAASC,EAAQC,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SAASwC,IAAY1C,EAAI2C,WAAW,GAAGF,EAAOG,IAAI,UAAUF,MAC1ED,EAAOvC,GAAG,kBAAiB,WAC3B2C,YAAW,WAAW,OAAO7C,EAAI8C,cAAcL,EAAOM,eAAe,OAAczD,EAAQmD,MAAmB,OAAOnD,EAAQ,IAAI,IAAaJ,EAAS,YAAe,GAAGD","file":"analytics/4-1a7d5725.js","sourcesContent":["import{P as PrestoPlayer,_ as _objectSpread2}from'./index.js';var hls=function hls(_ref){var config=_ref.config,selector=_ref.selector,src=_ref.src,preload=_ref.preload;return new Promise(function(resolve,reject){if(!window.Hls){return;}if(window.Hls.isSupported()){var _wp;// should we autoload start\nvar autoStartLoad=!['metadata','none'].includes(preload);// always autoload in admin for preview\nif((_wp=wp)!==null&&_wp!==void 0&&_wp.blocks){autoStartLoad=true;}// maybe don't auto start load depending on performance parameter\nvar hls=new window.Hls({autoStartLoad:autoStartLoad});hls.loadSource(src);// update menu container to dynamically display quality\nhls.on(window.Hls.Events.LEVEL_SWITCHED,function(event,data){var span=selector.closest('.presto-player__wrapper').querySelector(\".plyr__menu__container [data-plyr='quality'][value='0'] span\");if(hls.autoLevelEnabled){span.innerHTML=\"AUTO (\".concat(hls.levels[data.level].height,\"p)\");}else{span.innerHTML=\"AUTO\";}});// From the m3u8 playlist, hls parses the manifest and returns\n// all available video qualities. This is important, in this approach,\n// we will have one source on the Plyr player.\nhls.on(window.Hls.Events.MANIFEST_PARSED,function(event,data){// Transform available levels into an array of integers (height values).\nvar availableQualities=hls.levels.map(function(l){return l.height;});availableQualities.unshift(0);//prepend 0 to quality array;\n// do start level\nvar startLevel=availableQualities.findIndex(function(qty){var _prestoPlayer;return qty===parseInt((_prestoPlayer=prestoPlayer)===null||_prestoPlayer===void 0?void 0:_prestoPlayer.hls_start_level);});hls.startLevel=startLevel?startLevel-1:2;// Add new qualities to option\nconfig.quality={default:0,options:availableQualities,// this ensures Plyr to use Hls to update quality level\nforced:true,onChange:function onChange(newQuality){if(newQuality===0){prestoHLS.currentLevel=-1;//Enable AUTO quality if option.value = 0\n}else{prestoHLS.levels.forEach(function(level,levelIndex){if(level.height===newQuality){console.log('Found quality match with '+newQuality);prestoHLS.currentLevel=levelIndex;}});}}};// attach media and make our HLS options available globally\nhls.attachMedia(selector);window.prestoHLS=hls;// Initialize player\nvar player=new PrestoPlayer(selector,_objectSpread2({},config));player.hls=hls;// make sure we start loading on the first play\nvar firstPlay=function firstPlay(){hls.startLoad(-1);player.off('waiting',firstPlay);};player.on('waiting',firstPlay);// Handle changing captions\nplayer.on('languagechange',function(){// Caption support is still flaky. See: https://github.com/sampotts/plyr/issues/994\nsetTimeout(function(){return hls.subtitleTrack=player.currentTrack;},50);});return resolve(player);});return;}return resolve(new PrestoPlayer(selector,_objectSpread2({},config)));});};export default hls;"],"sourceRoot":""}
 
dist/analytics/{5-2ed7cff3.js → 5-15cfd722.js} RENAMED
@@ -15,5 +15,5 @@
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[5],{47:function(e,a,o){"use strict";o.r(a);var d=o(23);a.default=function(e){var a,o,s,i,_,r,t,l,n,v,p;if("undefined"!=typeof learndash_video_data&&"presto"===(null===(a=learndash_video_data)||void 0===a?void 0:a.videos_found_provider)){if(Object(d.d)(e),window.learndash_video_data.videos_auto_complete="on"===(null===(o=prestoPlayer)||void 0===o||null===(s=o.learndash)||void 0===s?void 0:s.lesson_video_auto_complete),window.learndash_video_data.videos_hide_complete_button="AFTER"===(null===(i=learndash_video_data)||void 0===i?void 0:i.videos_shown)&&"on"===(null===(_=prestoPlayer)||void 0===_||null===(r=_.learndash)||void 0===r?void 0:r.lesson_video_hide_complete_button),window.learndash_video_data.videos_auto_complete_delay=null===(t=prestoPlayer)||void 0===t||null===(l=t.learndash)||void 0===l?void 0:l.lesson_video_auto_complete_delay,window.learndash_video_data.videos_auto_complete_delay_message=null===(n=prestoPlayer)||void 0===n||null===(v=n.learndash)||void 0===v?void 0:v.videos_auto_complete_delay_message,window.learndash_video_data.video_track_path="/","BEFORE"===(null===(p=learndash_video_data)||void 0===p?void 0:p.videos_shown))return learndash_video_data.videos_auto_complete=!1,jQuery(document).trigger("learndash_video_disable_assets",[!0]),void jQuery((function(){"1"===learndash_video_data.video_debug&&console.log("PRESTO: init"),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').length&&("1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(true)"),LearnDash_disable_assets(!0),LearnDash_watchPlayers(),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').forEach((function(e,a){var o="presto-player__wrapper-player-"+a,d=e.getAttribute("id");void 0!==d&&""!=d||(d=o,e.setAttribute("id",d)),ld_video_players[o]={},ld_video_players[o].player_key=o,ld_video_players[o].player_type=learndash_video_data.videos_found_provider,ld_video_players[o].player_id=d,ld_video_players[o].player_wrapper=e.closest("presto-player"),void 0!==ld_video_players[o].player_wrapper?ld_video_players[o].player_cookie_key=ld_video_players[o].player_wrapper.getAttribute("data-video-cookie-key"):ld_video_players[o].player_cookie_key="",ld_video_players[o].player_cookie_values=LearnDash_Video_Progress_initSettings(ld_video_players[o]),"complete"===LearnDash_Video_Progress_getSetting(ld_video_players[o],"video_state")?(LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()):(wp.hooks.addAction("presto.playerTimeUpdate","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),e.duration&&e.duration===e.currentTime&&(LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd())})),wp.hooks.addAction("presto.playerPlaying","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","play")})),wp.hooks.addAction("presto.playerPause","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is paused"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),console.log(e.duration),console.log(e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","pause")})),wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: video ended"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: setting 'video_state' to 'complete'"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()})))})))}));window.LearnDash_disable_assets(!0),wp.hooks.addAction("presto.playerEnded","presto-player",(function(){window.LearnDash_disable_assets(!1)}))}}}}]);
19
- //# sourceMappingURL=5-2ed7cff3.js.map
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
+ (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[5],{49:function(e,a,o){"use strict";o.r(a);var d=o(24);a.default=function(e){var a,o,s,i,_,r,t,l,n,v,p;if("undefined"!=typeof learndash_video_data&&"presto"===(null===(a=learndash_video_data)||void 0===a?void 0:a.videos_found_provider)){if(Object(d.d)(e),window.learndash_video_data.videos_auto_complete="on"===(null===(o=prestoPlayer)||void 0===o||null===(s=o.learndash)||void 0===s?void 0:s.lesson_video_auto_complete),window.learndash_video_data.videos_hide_complete_button="AFTER"===(null===(i=learndash_video_data)||void 0===i?void 0:i.videos_shown)&&"on"===(null===(_=prestoPlayer)||void 0===_||null===(r=_.learndash)||void 0===r?void 0:r.lesson_video_hide_complete_button),window.learndash_video_data.videos_auto_complete_delay=null===(t=prestoPlayer)||void 0===t||null===(l=t.learndash)||void 0===l?void 0:l.lesson_video_auto_complete_delay,window.learndash_video_data.videos_auto_complete_delay_message=null===(n=prestoPlayer)||void 0===n||null===(v=n.learndash)||void 0===v?void 0:v.videos_auto_complete_delay_message,window.learndash_video_data.video_track_path="/","BEFORE"===(null===(p=learndash_video_data)||void 0===p?void 0:p.videos_shown))return learndash_video_data.videos_auto_complete=!1,jQuery(document).trigger("learndash_video_disable_assets",[!0]),void jQuery((function(){"1"===learndash_video_data.video_debug&&console.log("PRESTO: init"),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').length&&("1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(true)"),LearnDash_disable_assets(!0),LearnDash_watchPlayers(),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').forEach((function(e,a){var o="presto-player__wrapper-player-"+a,d=e.getAttribute("id");void 0!==d&&""!=d||(d=o,e.setAttribute("id",d)),ld_video_players[o]={},ld_video_players[o].player_key=o,ld_video_players[o].player_type=learndash_video_data.videos_found_provider,ld_video_players[o].player_id=d,ld_video_players[o].player_wrapper=e.closest("presto-player"),void 0!==ld_video_players[o].player_wrapper?ld_video_players[o].player_cookie_key=ld_video_players[o].player_wrapper.getAttribute("data-video-cookie-key"):ld_video_players[o].player_cookie_key="",ld_video_players[o].player_cookie_values=LearnDash_Video_Progress_initSettings(ld_video_players[o]),"complete"===LearnDash_Video_Progress_getSetting(ld_video_players[o],"video_state")?(LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()):(wp.hooks.addAction("presto.playerTimeUpdate","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),e.duration&&e.duration===e.currentTime&&(LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd())})),wp.hooks.addAction("presto.playerPlaying","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","play")})),wp.hooks.addAction("presto.playerPause","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is paused"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),console.log(e.duration),console.log(e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","pause")})),wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: video ended"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: setting 'video_state' to 'complete'"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()})))})))}));window.LearnDash_disable_assets(!0),wp.hooks.addAction("presto.playerEnded","presto-player",(function(){window.LearnDash_disable_assets(!1)}))}}}}]);
19
+ //# sourceMappingURL=5-15cfd722.js.map
dist/analytics/{5-2ed7cff3.js.map → 5-15cfd722.js.map} RENAMED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/learndash.js"],"names":["player","_learndash_video_data","_prestoPlayer","_prestoPlayer$learnda","_learndash_video_data2","_prestoPlayer2","_prestoPlayer2$learnd","_prestoPlayer3","_prestoPlayer3$learnd","_prestoPlayer4","_prestoPlayer4$learnd","_learndash_video_data3","learndash_video_data","videos_found_provider","window","videos_auto_complete","prestoPlayer","learndash","lesson_video_auto_complete","videos_hide_complete_button","videos_shown","lesson_video_hide_complete_button","videos_auto_complete_delay","lesson_video_auto_complete_delay","videos_auto_complete_delay_message","video_track_path","jQuery","document","trigger","video_debug","console","log","querySelectorAll","length","LearnDash_disable_assets","LearnDash_watchPlayers","forEach","element","index","element_key","element_id","getAttribute","setAttribute","ld_video_players","closest","LearnDash_Video_Progress_initSettings","LearnDash_Video_Progress_getSetting","LearnDash_watchPlayersEnd","wp","hooks","addAction","LearnDash_Video_Progress_setSetting","duration","currentTime"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,mBAkByN,UAlB/J,SAAmBA,GAAQ,IAAIC,EAAsBC,EAAcC,EAAsBC,EAAuBC,EAAeC,EAAsBC,EAAeC,EAAsBC,EAAeC,EAAsBC,EAAuB,GAAiC,oBAAvBC,sBAA+K,YAA3F,QAA9CX,EAAsBW,4BAAsD,IAAxBX,OAA+B,EAAOA,EAAsBY,uBAAhK,CAMhT,GAN2f,YAAeb,GAG1gBc,OAAOF,qBAAqBG,qBAA2O,QAAtL,QAA9Bb,EAAcc,oBAAsC,IAAhBd,GAAgF,QAAjDC,EAAsBD,EAAce,iBAA2C,IAAxBd,OAA/D,EAAqGA,EAAsBe,4BAAmCJ,OAAOF,qBAAqBO,4BAA4B,WAA2D,QAA/Cf,EAAuBQ,4BAAuD,IAAzBR,OAAgC,EAAOA,EAAuBgB,eAA+O,QAA/L,QAA/Bf,EAAeW,oBAAuC,IAAjBX,GAAkF,QAAlDC,EAAsBD,EAAeY,iBAA2C,IAAxBX,OA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kD,MAAnC3B,qBAAqBiB,aAAmBC,QAAQC,IAAI,mDAAoDG,0BAAyB,GAClkBa,uCAAoDjC,OAAOoB,0BAAyB,GAAMc,GAAGC,MAAMC,UAAU,qBAAqB,iBAAgB,WAAWpC,OAAOoB,0BAAyB","file":"analytics/5-2ed7cff3.js","sourcesContent":["import{r as resumeProgress}from'./index.js';var learndash=function learndash(player){var _learndash_video_data,_prestoPlayer,_prestoPlayer$learnda,_learndash_video_data2,_prestoPlayer2,_prestoPlayer2$learnd,_prestoPlayer3,_prestoPlayer3$learnd,_prestoPlayer4,_prestoPlayer4$learnd,_learndash_video_data3;if(typeof learndash_video_data==='undefined'||((_learndash_video_data=learndash_video_data)===null||_learndash_video_data===void 0?void 0:_learndash_video_data.videos_found_provider)!=='presto'){return;}resumeProgress(player);// maybe resume progress\n// Learndash has this logic in a shitty method on their php class\n// we have to fake it here since we don't have access to it\nwindow.learndash_video_data.videos_auto_complete=((_prestoPlayer=prestoPlayer)===null||_prestoPlayer===void 0?void 0:(_prestoPlayer$learnda=_prestoPlayer.learndash)===null||_prestoPlayer$learnda===void 0?void 0:_prestoPlayer$learnda.lesson_video_auto_complete)==='on';window.learndash_video_data.videos_hide_complete_button='AFTER'===((_learndash_video_data2=learndash_video_data)===null||_learndash_video_data2===void 0?void 0:_learndash_video_data2.videos_shown)&&((_prestoPlayer2=prestoPlayer)===null||_prestoPlayer2===void 0?void 0:(_prestoPlayer2$learnd=_prestoPlayer2.learndash)===null||_prestoPlayer2$learnd===void 0?void 0:_prestoPlayer2$learnd.lesson_video_hide_complete_button)==='on';window.learndash_video_data.videos_auto_complete_delay=(_prestoPlayer3=prestoPlayer)===null||_prestoPlayer3===void 0?void 0:(_prestoPlayer3$learnd=_prestoPlayer3.learndash)===null||_prestoPlayer3$learnd===void 0?void 0:_prestoPlayer3$learnd.lesson_video_auto_complete_delay;window.learndash_video_data.videos_auto_complete_delay_message=(_prestoPlayer4=prestoPlayer)===null||_prestoPlayer4===void 0?void 0:(_prestoPlayer4$learnd=_prestoPlayer4.learndash)===null||_prestoPlayer4$learnd===void 0?void 0:_prestoPlayer4$learnd.videos_auto_complete_delay_message;// Temporarily set the video track path to '/' to set the cookie globally\nwindow.learndash_video_data.video_track_path='/';// Learndash has this logic in a shitty method on their php class\n// we have to fake it here since we don't have access to it\nif('BEFORE'===((_learndash_video_data3=learndash_video_data)===null||_learndash_video_data3===void 0?void 0:_learndash_video_data3.videos_shown)){learndash_video_data.videos_auto_complete=false;jQuery(document).trigger('learndash_video_disable_assets',[true]);// Set learndash video players\njQuery(function(){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: init');}if(document.querySelectorAll('presto-player[data-video-progression=\"true\"][data-video-provider=\"'+learndash_video_data.videos_found_provider+'\"]').length){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(true)');}// Disable learndash assets and watch players.\nLearnDash_disable_assets(true);LearnDash_watchPlayers();// Go through all the <presto-player> instances\ndocument.querySelectorAll('presto-player[data-video-progression=\"true\"][data-video-provider=\"'+learndash_video_data.videos_found_provider+'\"]').forEach(function(element,index){var element_key='presto-player__wrapper-player-'+index;var element_id=element.getAttribute('id');if(typeof element_id==='undefined'||element_id==''){element_id=element_key;element.setAttribute('id',element_id);}ld_video_players[element_key]={};ld_video_players[element_key]['player_key']=element_key;ld_video_players[element_key]['player_type']=learndash_video_data.videos_found_provider;ld_video_players[element_key]['player_id']=element_id;ld_video_players[element_key]['player_wrapper']=element.closest('presto-player');if(typeof ld_video_players[element_key]['player_wrapper']!=='undefined'){ld_video_players[element_key]['player_cookie_key']=ld_video_players[element_key]['player_wrapper'].getAttribute('data-video-cookie-key');}else{ld_video_players[element_key]['player_cookie_key']='';}ld_video_players[element_key]['player_cookie_values']=LearnDash_Video_Progress_initSettings(ld_video_players[element_key]);// Check if video has been completed already.\n// If yes, enable the assets back and end watch players function.\n// If no, then apply all the filters and performs the actions again.\nif(LearnDash_Video_Progress_getSetting(ld_video_players[element_key],'video_state')==='complete'){LearnDash_disable_assets(false);LearnDash_watchPlayersEnd();}else{// Player Seeked.\nwp.hooks.addAction('presto.playerTimeUpdate','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is playing');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_duration',player.duration);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);if(player.duration&&player.duration===player.currentTime){LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','complete');if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(false)');}LearnDash_disable_assets(false);// Stop watching players.\nLearnDash_watchPlayersEnd();}});// Player Playing.\nwp.hooks.addAction('presto.playerPlaying','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is playing');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_duration',player.duration);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','play');});// Player Paused.\nwp.hooks.addAction('presto.playerPause','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is paused');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);console.log(player.duration);console.log(player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','pause');});// Player Ended.\nwp.hooks.addAction('presto.playerEnded','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: video ended');}if(learndash_video_data.video_debug==='1'){console.log(\"PRESTO: setting 'video_state' to 'complete'\");}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','complete');if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(false)');}LearnDash_disable_assets(false);// Stop watching players.\nLearnDash_watchPlayersEnd();});}});}});return;}else{window.LearnDash_disable_assets(true);wp.hooks.addAction('presto.playerEnded','presto-player',function(){window.LearnDash_disable_assets(false);});}};export default learndash;"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/learndash.js"],"names":["player","_learndash_video_data","_prestoPlayer","_prestoPlayer$learnda","_learndash_video_data2","_prestoPlayer2","_prestoPlayer2$learnd","_prestoPlayer3","_prestoPlayer3$learnd","_prestoPlayer4","_prestoPlayer4$learnd","_learndash_video_data3","learndash_video_data","videos_found_provider","window","videos_auto_complete","prestoPlayer","learndash","lesson_video_auto_complete","videos_hide_complete_button","videos_shown","lesson_video_hide_complete_button","videos_auto_complete_delay","lesson_video_auto_complete_delay","videos_auto_complete_delay_message","video_track_path","jQuery","document","trigger","video_debug","console","log","querySelectorAll","length","LearnDash_disable_assets","LearnDash_watchPlayers","forEach","element","index","element_key","element_id","getAttribute","setAttribute","ld_video_players","closest","LearnDash_Video_Progress_initSettings","LearnDash_Video_Progress_getSetting","LearnDash_watchPlayersEnd","wp","hooks","addAction","LearnDash_Video_Progress_setSetting","duration","currentTime"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,mBAkByN,UAlB/J,SAAmBA,GAAQ,IAAIC,EAAsBC,EAAcC,EAAsBC,EAAuBC,EAAeC,EAAsBC,EAAeC,EAAsBC,EAAeC,EAAsBC,EAAuB,GAAiC,oBAAvBC,sBAA+K,YAA3F,QAA9CX,EAAsBW,4BAAsD,IAAxBX,OAA+B,EAAOA,EAAsBY,uBAAhK,CAMhT,GAN2f,YAAeb,GAG1gBc,OAAOF,qBAAqBG,qBAA2O,QAAtL,QAA9Bb,EAAcc,oBAAsC,IAAhBd,GAAgF,QAAjDC,EAAsBD,EAAce,iBAA2C,IAAxBd,OAA/D,EAAqGA,EAAsBe,4BAAmCJ,OAAOF,qBAAqBO,4BAA4B,WAA2D,QAA/Cf,EAAuBQ,4BAAuD,IAAzBR,OAAgC,EAAOA,EAAuBgB,eAA+O,QAA/L,QAA/Bf,EAAeW,oBAAuC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,aAAavC,EAAOqD,aAAaF,oCAAoCR,iBAAiBJ,GAAa,cAAc,YAAkD,MAAnC3B,qBAAqBiB,aAAmBC,QAAQC,IAAI,mDAAoDG,0BAAyB,GAClkBa,uCAAoDjC,OAAOoB,0BAAyB,GAAMc,GAAGC,MAAMC,UAAU,qBAAqB,iBAAgB,WAAWpC,OAAOoB,0BAAyB","file":"analytics/5-15cfd722.js","sourcesContent":["import{r as resumeProgress}from'./index.js';var learndash=function learndash(player){var _learndash_video_data,_prestoPlayer,_prestoPlayer$learnda,_learndash_video_data2,_prestoPlayer2,_prestoPlayer2$learnd,_prestoPlayer3,_prestoPlayer3$learnd,_prestoPlayer4,_prestoPlayer4$learnd,_learndash_video_data3;if(typeof learndash_video_data==='undefined'||((_learndash_video_data=learndash_video_data)===null||_learndash_video_data===void 0?void 0:_learndash_video_data.videos_found_provider)!=='presto'){return;}resumeProgress(player);// maybe resume progress\n// Learndash has this logic in a shitty method on their php class\n// we have to fake it here since we don't have access to it\nwindow.learndash_video_data.videos_auto_complete=((_prestoPlayer=prestoPlayer)===null||_prestoPlayer===void 0?void 0:(_prestoPlayer$learnda=_prestoPlayer.learndash)===null||_prestoPlayer$learnda===void 0?void 0:_prestoPlayer$learnda.lesson_video_auto_complete)==='on';window.learndash_video_data.videos_hide_complete_button='AFTER'===((_learndash_video_data2=learndash_video_data)===null||_learndash_video_data2===void 0?void 0:_learndash_video_data2.videos_shown)&&((_prestoPlayer2=prestoPlayer)===null||_prestoPlayer2===void 0?void 0:(_prestoPlayer2$learnd=_prestoPlayer2.learndash)===null||_prestoPlayer2$learnd===void 0?void 0:_prestoPlayer2$learnd.lesson_video_hide_complete_button)==='on';window.learndash_video_data.videos_auto_complete_delay=(_prestoPlayer3=prestoPlayer)===null||_prestoPlayer3===void 0?void 0:(_prestoPlayer3$learnd=_prestoPlayer3.learndash)===null||_prestoPlayer3$learnd===void 0?void 0:_prestoPlayer3$learnd.lesson_video_auto_complete_delay;window.learndash_video_data.videos_auto_complete_delay_message=(_prestoPlayer4=prestoPlayer)===null||_prestoPlayer4===void 0?void 0:(_prestoPlayer4$learnd=_prestoPlayer4.learndash)===null||_prestoPlayer4$learnd===void 0?void 0:_prestoPlayer4$learnd.videos_auto_complete_delay_message;// Temporarily set the video track path to '/' to set the cookie globally\nwindow.learndash_video_data.video_track_path='/';// Learndash has this logic in a shitty method on their php class\n// we have to fake it here since we don't have access to it\nif('BEFORE'===((_learndash_video_data3=learndash_video_data)===null||_learndash_video_data3===void 0?void 0:_learndash_video_data3.videos_shown)){learndash_video_data.videos_auto_complete=false;jQuery(document).trigger('learndash_video_disable_assets',[true]);// Set learndash video players\njQuery(function(){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: init');}if(document.querySelectorAll('presto-player[data-video-progression=\"true\"][data-video-provider=\"'+learndash_video_data.videos_found_provider+'\"]').length){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(true)');}// Disable learndash assets and watch players.\nLearnDash_disable_assets(true);LearnDash_watchPlayers();// Go through all the <presto-player> instances\ndocument.querySelectorAll('presto-player[data-video-progression=\"true\"][data-video-provider=\"'+learndash_video_data.videos_found_provider+'\"]').forEach(function(element,index){var element_key='presto-player__wrapper-player-'+index;var element_id=element.getAttribute('id');if(typeof element_id==='undefined'||element_id==''){element_id=element_key;element.setAttribute('id',element_id);}ld_video_players[element_key]={};ld_video_players[element_key]['player_key']=element_key;ld_video_players[element_key]['player_type']=learndash_video_data.videos_found_provider;ld_video_players[element_key]['player_id']=element_id;ld_video_players[element_key]['player_wrapper']=element.closest('presto-player');if(typeof ld_video_players[element_key]['player_wrapper']!=='undefined'){ld_video_players[element_key]['player_cookie_key']=ld_video_players[element_key]['player_wrapper'].getAttribute('data-video-cookie-key');}else{ld_video_players[element_key]['player_cookie_key']='';}ld_video_players[element_key]['player_cookie_values']=LearnDash_Video_Progress_initSettings(ld_video_players[element_key]);// Check if video has been completed already.\n// If yes, enable the assets back and end watch players function.\n// If no, then apply all the filters and performs the actions again.\nif(LearnDash_Video_Progress_getSetting(ld_video_players[element_key],'video_state')==='complete'){LearnDash_disable_assets(false);LearnDash_watchPlayersEnd();}else{// Player Seeked.\nwp.hooks.addAction('presto.playerTimeUpdate','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is playing');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_duration',player.duration);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);if(player.duration&&player.duration===player.currentTime){LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','complete');if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(false)');}LearnDash_disable_assets(false);// Stop watching players.\nLearnDash_watchPlayersEnd();}});// Player Playing.\nwp.hooks.addAction('presto.playerPlaying','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is playing');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_duration',player.duration);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','play');});// Player Paused.\nwp.hooks.addAction('presto.playerPause','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is paused');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);console.log(player.duration);console.log(player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','pause');});// Player Ended.\nwp.hooks.addAction('presto.playerEnded','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: video ended');}if(learndash_video_data.video_debug==='1'){console.log(\"PRESTO: setting 'video_state' to 'complete'\");}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','complete');if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(false)');}LearnDash_disable_assets(false);// Stop watching players.\nLearnDash_watchPlayersEnd();});}});}});return;}else{window.LearnDash_disable_assets(true);wp.hooks.addAction('presto.playerEnded','presto-player',function(){window.LearnDash_disable_assets(false);});}};export default learndash;"],"sourceRoot":""}
dist/analytics/5-48078a33.js DELETED
@@ -1,19 +0,0 @@
1
- /*!
2
- *
3
- * Presto Player
4
- *
5
- * @author Presto Made, Inc
6
- * @version 0.1.0
7
- * @link undefined
8
- * @license GPL
9
- *
10
- * Copyright (c) 2021 Presto Made, Inc
11
- *
12
- * This software is released under the GPL License
13
- * https://opensource.org/licenses/GPL
14
- *
15
- * Compiled with the help of https://wpack.io
16
- * A zero setup Webpack Bundler Script for WordPress
17
- */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[5],{52:function(e,a,o){"use strict";o.r(a);var d=o(21);a.default=function(e){var a,o,s,i,_,r,t,l,n,v,p;if("undefined"!=typeof learndash_video_data&&"presto"===(null===(a=learndash_video_data)||void 0===a?void 0:a.videos_found_provider)){if(Object(d.d)(e),window.learndash_video_data.videos_auto_complete="on"===(null===(o=prestoPlayer)||void 0===o||null===(s=o.learndash)||void 0===s?void 0:s.lesson_video_auto_complete),window.learndash_video_data.videos_hide_complete_button="AFTER"===(null===(i=learndash_video_data)||void 0===i?void 0:i.videos_shown)&&"on"===(null===(_=prestoPlayer)||void 0===_||null===(r=_.learndash)||void 0===r?void 0:r.lesson_video_hide_complete_button),window.learndash_video_data.videos_auto_complete_delay=null===(t=prestoPlayer)||void 0===t||null===(l=t.learndash)||void 0===l?void 0:l.lesson_video_auto_complete_delay,window.learndash_video_data.videos_auto_complete_delay_message=null===(n=prestoPlayer)||void 0===n||null===(v=n.learndash)||void 0===v?void 0:v.videos_auto_complete_delay_message,window.learndash_video_data.video_track_path="/","BEFORE"===(null===(p=learndash_video_data)||void 0===p?void 0:p.videos_shown))return learndash_video_data.videos_auto_complete=!1,jQuery(document).trigger("learndash_video_disable_assets",[!0]),void jQuery((function(){"1"===learndash_video_data.video_debug&&console.log("PRESTO: init"),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').length&&("1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(true)"),LearnDash_disable_assets(!0),LearnDash_watchPlayers(),document.querySelectorAll('presto-player[data-video-progression="true"][data-video-provider="'+learndash_video_data.videos_found_provider+'"]').forEach((function(e,a){var o="presto-player__wrapper-player-"+a,d=e.getAttribute("id");void 0!==d&&""!=d||(d=o,e.setAttribute("id",d)),ld_video_players[o]={},ld_video_players[o].player_key=o,ld_video_players[o].player_type=learndash_video_data.videos_found_provider,ld_video_players[o].player_id=d,ld_video_players[o].player_wrapper=e.closest("presto-player"),void 0!==ld_video_players[o].player_wrapper?ld_video_players[o].player_cookie_key=ld_video_players[o].player_wrapper.getAttribute("data-video-cookie-key"):ld_video_players[o].player_cookie_key="",ld_video_players[o].player_cookie_values=LearnDash_Video_Progress_initSettings(ld_video_players[o]),"complete"===LearnDash_Video_Progress_getSetting(ld_video_players[o],"video_state")?(LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()):(wp.hooks.addAction("presto.playerTimeUpdate","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),e.duration&&e.duration===e.currentTime&&(LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd())})),wp.hooks.addAction("presto.playerPlaying","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is playing"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_duration",e.duration),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","play")})),wp.hooks.addAction("presto.playerPause","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: Video is paused"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),console.log(e.duration),console.log(e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","pause")})),wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){"1"===learndash_video_data.video_debug&&console.log("PRESTO: video ended"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: setting 'video_state' to 'complete'"),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_time",e.currentTime),LearnDash_Video_Progress_setSetting(ld_video_players[o],"video_state","complete"),"1"===learndash_video_data.video_debug&&console.log("PRESTO: calling LearnDash_disable_assets(false)"),LearnDash_disable_assets(!1),LearnDash_watchPlayersEnd()})))})))}));window.LearnDash_disable_assets(!0),wp.hooks.addAction("presto.playerEnded","presto-player",(function(){window.LearnDash_disable_assets(!1)}))}}}}]);
19
- //# sourceMappingURL=5-48078a33.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dist/analytics/5-48078a33.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/learndash.js"],"names":["player","_learndash_video_data","_prestoPlayer","_prestoPlayer$learnda","_learndash_video_data2","_prestoPlayer2","_prestoPlayer2$learnd","_prestoPlayer3","_prestoPlayer3$learnd","_prestoPlayer4","_prestoPlayer4$learnd","_learndash_video_data3","learndash_video_data","videos_found_provider","window","videos_auto_complete","prestoPlayer","learndash","lesson_video_auto_complete","videos_hide_complete_button","videos_shown","lesson_video_hide_complete_button","videos_auto_complete_delay","lesson_video_auto_complete_delay","videos_auto_complete_delay_message","video_track_path","jQuery","document","trigger","video_debug","console","log","querySelectorAll","length","LearnDash_disable_assets","LearnDash_watchPlayers","forEach","element","index","element_key","element_id","getAttribute","setAttribute","ld_video_players","closest","LearnD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MC,UAAU,uBAAuB,iBAAgB,SAASlD,GAA8C,MAAnCY,qBAAqBiB,aAAmBC,QAAQC,IAAI,4BAA6BoB,oCAAoCR,iBAAiBJ,GAAa,iBAAiBvC,EAAOoD,UAAUD,oCAAoCR,iBAAiBJ,GAAa,aAAavC,EAAOqD,aAAaF,oCAAoCR,iBAAiBJ,GAAa,cAAc,WACtbS,GAAGC,MAAMC,UAAU,qBAAqB,iBAAgB,SAASlD,GAA8C,MAAnCY,qBAAqBiB,aAAmBC,QAAQC,IAAI,2BAA4BoB,oCAAoCR,iBAAiBJ,GAAa,aAAavC,EAAOqD,aAAavB,QAAQC,IAAI/B,EAAOoD,UAAUtB,QAAQC,IAAI/B,EAAOqD,aAAaF,oCAAoCR,iBAAiBJ,GAAa,cAAc,YAC5YS,GAAGC,MAAMC,UAAU,qBAAqB,iBAAgB,SAASlD,GAA8C,MAAnCY,qBAAqBiB,aAAmBC,QAAQC,IAAI,uBAA8D,MAAnCnB,qBAAqBiB,aAAmBC,QAAQC,IAAI,+CAAgDoB,oCAAoCR,iBAAiBJ,GAAa,aAAavC,EAAOqD,aAAaF,oCAAoCR,iBAAiBJ,GAAa,cAAc,YAAkD,MAAnC3B,qBAAqBiB,aAAmBC,QAAQC,IAAI,mDAAoDG,0BAAyB,GAClkBa,uCAAoDjC,OAAOoB,0BAAyB,GAAMc,GAAGC,MAAMC,UAAU,qBAAqB,iBAAgB,WAAWpC,OAAOoB,0BAAyB","file":"analytics/5-48078a33.js","sourcesContent":["import{r as resumeProgress}from'./index.js';var learndash=function learndash(player){var _learndash_video_data,_prestoPlayer,_prestoPlayer$learnda,_learndash_video_data2,_prestoPlayer2,_prestoPlayer2$learnd,_prestoPlayer3,_prestoPlayer3$learnd,_prestoPlayer4,_prestoPlayer4$learnd,_learndash_video_data3;if(typeof learndash_video_data==='undefined'||((_learndash_video_data=learndash_video_data)===null||_learndash_video_data===void 0?void 0:_learndash_video_data.videos_found_provider)!=='presto'){return;}resumeProgress(player);// maybe resume progress\n// Learndash has this logic in a shitty method on their php class\n// we have to fake it here since we don't have access to it\nwindow.learndash_video_data.videos_auto_complete=((_prestoPlayer=prestoPlayer)===null||_prestoPlayer===void 0?void 0:(_prestoPlayer$learnda=_prestoPlayer.learndash)===null||_prestoPlayer$learnda===void 0?void 0:_prestoPlayer$learnda.lesson_video_auto_complete)==='on';window.learndash_video_data.videos_hide_complete_button='AFTER'===((_learndash_video_data2=learndash_video_data)===null||_learndash_video_data2===void 0?void 0:_learndash_video_data2.videos_shown)&&((_prestoPlayer2=prestoPlayer)===null||_prestoPlayer2===void 0?void 0:(_prestoPlayer2$learnd=_prestoPlayer2.learndash)===null||_prestoPlayer2$learnd===void 0?void 0:_prestoPlayer2$learnd.lesson_video_hide_complete_button)==='on';window.learndash_video_data.videos_auto_complete_delay=(_prestoPlayer3=prestoPlayer)===null||_prestoPlayer3===void 0?void 0:(_prestoPlayer3$learnd=_prestoPlayer3.learndash)===null||_prestoPlayer3$learnd===void 0?void 0:_prestoPlayer3$learnd.lesson_video_auto_complete_delay;window.learndash_video_data.videos_auto_complete_delay_message=(_prestoPlayer4=prestoPlayer)===null||_prestoPlayer4===void 0?void 0:(_prestoPlayer4$learnd=_prestoPlayer4.learndash)===null||_prestoPlayer4$learnd===void 0?void 0:_prestoPlayer4$learnd.videos_auto_complete_delay_message;// Temporarily set the video track path to '/' to set the cookie globally\nwindow.learndash_video_data.video_track_path='/';// Learndash has this logic in a shitty method on their php class\n// we have to fake it here since we don't have access to it\nif('BEFORE'===((_learndash_video_data3=learndash_video_data)===null||_learndash_video_data3===void 0?void 0:_learndash_video_data3.videos_shown)){learndash_video_data.videos_auto_complete=false;jQuery(document).trigger('learndash_video_disable_assets',[true]);// Set learndash video players\njQuery(function(){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: init');}if(document.querySelectorAll('presto-player[data-video-progression=\"true\"][data-video-provider=\"'+learndash_video_data.videos_found_provider+'\"]').length){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(true)');}// Disable learndash assets and watch players.\nLearnDash_disable_assets(true);LearnDash_watchPlayers();// Go through all the <presto-player> instances\ndocument.querySelectorAll('presto-player[data-video-progression=\"true\"][data-video-provider=\"'+learndash_video_data.videos_found_provider+'\"]').forEach(function(element,index){var element_key='presto-player__wrapper-player-'+index;var element_id=element.getAttribute('id');if(typeof element_id==='undefined'||element_id==''){element_id=element_key;element.setAttribute('id',element_id);}ld_video_players[element_key]={};ld_video_players[element_key]['player_key']=element_key;ld_video_players[element_key]['player_type']=learndash_video_data.videos_found_provider;ld_video_players[element_key]['player_id']=element_id;ld_video_players[element_key]['player_wrapper']=element.closest('presto-player');if(typeof ld_video_players[element_key]['player_wrapper']!=='undefined'){ld_video_players[element_key]['player_cookie_key']=ld_video_players[element_key]['player_wrapper'].getAttribute('data-video-cookie-key');}else{ld_video_players[element_key]['player_cookie_key']='';}ld_video_players[element_key]['player_cookie_values']=LearnDash_Video_Progress_initSettings(ld_video_players[element_key]);// Check if video has been completed already.\n// If yes, enable the assets back and end watch players function.\n// If no, then apply all the filters and performs the actions again.\nif(LearnDash_Video_Progress_getSetting(ld_video_players[element_key],'video_state')==='complete'){LearnDash_disable_assets(false);LearnDash_watchPlayersEnd();}else{// Player Seeked.\nwp.hooks.addAction('presto.playerTimeUpdate','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is playing');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_duration',player.duration);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);if(player.duration&&player.duration===player.currentTime){LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','complete');if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(false)');}LearnDash_disable_assets(false);// Stop watching players.\nLearnDash_watchPlayersEnd();}});// Player Playing.\nwp.hooks.addAction('presto.playerPlaying','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is playing');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_duration',player.duration);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','play');});// Player Paused.\nwp.hooks.addAction('presto.playerPause','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: Video is paused');}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);console.log(player.duration);console.log(player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','pause');});// Player Ended.\nwp.hooks.addAction('presto.playerEnded','presto-player',function(player){if(learndash_video_data.video_debug==='1'){console.log('PRESTO: video ended');}if(learndash_video_data.video_debug==='1'){console.log(\"PRESTO: setting 'video_state' to 'complete'\");}LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_time',player.currentTime);LearnDash_Video_Progress_setSetting(ld_video_players[element_key],'video_state','complete');if(learndash_video_data.video_debug==='1'){console.log('PRESTO: calling LearnDash_disable_assets(false)');}LearnDash_disable_assets(false);// Stop watching players.\nLearnDash_watchPlayersEnd();});}});}});return;}else{window.LearnDash_disable_assets(true);wp.hooks.addAction('presto.playerEnded','presto-player',function(){window.LearnDash_disable_assets(false);});}};export default learndash;"],"sourceRoot":""}
 
dist/analytics/6-c200bf25.js DELETED
@@ -1,19 +0,0 @@
1
- /*!
2
- *
3
- * Presto Player
4
- *
5
- * @author Presto Made, Inc
6
- * @version 0.1.0
7
- * @link undefined
8
- * @license GPL
9
- *
10
- * Copyright (c) 2021 Presto Made, Inc
11
- *
12
- * This software is released under the GPL License
13
- * https://opensource.org/licenses/GPL
14
- *
15
- * Compiled with the help of https://wpack.io
16
- * A zero setup Webpack Bundler Script for WordPress
17
- */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[6],{48:function(t,o,n){"use strict";n.r(o),o.default=function(t){var o=function(t,o){var e,r=n().post_id,a={action:"sync_video_playback",currentTime:t.currentTime,duration:t.duration,post_id:r};a[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var u=a;o&&(u=Object.assign(a,o)),jQuery.post(null===(e=_tutorobject)||void 0===e?void 0:e.ajaxurl,u)},n=function(){var t=jQuery("#tutor_video_tracking_information").val();return t?JSON.parse(t):{}},e=0;t.on("timeupdate",(function(t){var n=t.detail.plyr;e/4>=30&&(o(n),e=0),e++})),t.on("ended",(function(t){var e=n(),r=t.detail.plyr;o(r,{is_ended:!0}),e.autoload_next_course_content&&function(){var t,o;if(_tutorobject.nonce_key&&null!==(t=_tutorobject)&&void 0!==t&&t.ajaxurl){var e={action:"autoload_next_course_content",post_id:n().post_id};e[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key],jQuery.post(null===(o=_tutorobject)||void 0===o?void 0:o.ajaxurl,e).done((function(t){var o;null!=t&&t.success&&null!=t&&null!==(o=t.data)&&void 0!==o&&o.next_url&&(location.href=t.data.next_url)}))}}()}))}}}]);
19
- //# sourceMappingURL=6-c200bf25.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dist/analytics/6-c200bf25.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/tutor.js"],"names":["player","sync_time","instance","options","_tutorobject4","post_id","getVideoData","data","action","currentTime","duration","_tutorobject","nonce_key","data_send","Object","assign","jQuery","post","ajaxurl","video_track_data","val","JSON","parse","tempTimeNow","on","event","detail","plyr","video_data","is_ended","autoload_next_course_content","_tutorobject2","_tutorobject3","done","response","_response$data","success","next_url","location","href","autoload_content"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,OAOoO,UAPpO,SAAeA,GACf,IACIC,EAAU,SAAmBC,EAASC,GAAS,IAAIC,EAAkBC,EAAQC,IAAeD,QAAYE,EAAK,CAACC,OAAO,sBAAsBC,YAAYP,EAASO,YAAYC,SAASR,EAASQ,SAASL,QAAQA,GAASE,EAAKI,aAAaC,WAAWD,aAAaA,aAAaC,WAAW,IAAIC,EAAUN,EAAQJ,IAASU,EAAUC,OAAOC,OAAOR,EAAKJ,IAAUa,OAAOC,KAAoC,QAA9Bb,EAAcO,oBAAsC,IAAhBP,OAAuB,EAAOA,EAAcc,QAAQL,IACrcP,EAAa,WAAwB,IAAIa,EAAiBH,OAAO,qCAAqCI,MAAM,OAAOD,EAAiBE,KAAKC,MAAMH,GAAkB,IACjKI,EAAY,EAChBvB,EAAOwB,GAAG,cAAa,SAASC,GAAO,IAAIvB,EAASuB,EAAMC,OAAOC,KAA0BJ,EAAY,GADjE,KAEAtB,EAAUC,GAAUqB,EAAY,GAAGA,OACzEvB,EAAOwB,GAAG,SAAQ,SAASC,GAAO,IAAIG,EAAWtB,IAAmBJ,EAASuB,EAAMC,OAAOC,KAA8B1B,EAAUC,EAA1B,CAAC2B,UAAS,IAAkCD,EAAWE,8BAN1I,WAA4B,IAAIC,EAAcC,EAAc,GAAIrB,aAAaC,WAA4C,QAA9BmB,EAAcpB,oBAAsC,IAAhBoB,GAAwBA,EAAcb,QAAzG,CAA2H,IAAuCX,EAAK,CAACC,OAAO,+BAA+BH,QAAvEC,IAAeD,SAAyEE,EAAKI,aAAaC,WAAWD,aAAaA,aAAaC,WAAWI,OAAOC,KAAoC,QAA9Be,EAAcrB,oBAAsC,IAAhBqB,OAAuB,EAAOA,EAAcd,QAAQX,GAAM0B,MAAK,SAASC,GAAU,IAAIC,EAAkBD,SAAoCA,EAASE,SAA7CF,MAAsDA,GAAqE,QAAhCC,EAAeD,EAAS3B,YAA+B,IAAjB4B,GAAyBA,EAAeE,WAAUC,SAASC,KAAKL,EAAS3B,KAAK8B,cAM7hBG","file":"analytics/6-c200bf25.js","sourcesContent":["function tutor(player){// autoload course content\nvar autoload_content=function autoload_content(){var _tutorobject2,_tutorobject3;if(!_tutorobject.nonce_key||!((_tutorobject2=_tutorobject)!==null&&_tutorobject2!==void 0&&_tutorobject2.ajaxurl)){return;}var post_id=getVideoData().post_id;var data={action:'autoload_next_course_content',post_id:post_id};data[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];jQuery.post((_tutorobject3=_tutorobject)===null||_tutorobject3===void 0?void 0:_tutorobject3.ajaxurl,data).done(function(response){var _response$data;if(response!==null&&response!==void 0&&response.success&&response!==null&&response!==void 0&&(_response$data=response.data)!==null&&_response$data!==void 0&&_response$data.next_url){location.href=response.data.next_url;}});};// sync time with server\nvar sync_time=function sync_time(instance,options){var _tutorobject4;var post_id=getVideoData().post_id;var data={action:'sync_video_playback',currentTime:instance.currentTime,duration:instance.duration,post_id:post_id};data[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var data_send=data;if(options){data_send=Object.assign(data,options);}jQuery.post((_tutorobject4=_tutorobject)===null||_tutorobject4===void 0?void 0:_tutorobject4.ajaxurl,data_send);};// get video data\nvar getVideoData=function getVideoData(){var video_track_data=jQuery('#tutor_video_tracking_information').val();return video_track_data?JSON.parse(video_track_data):{};};// update time on server every 250ms\nvar tempTimeNow=0;var intervalSeconds=30;//Send to tutor backend about video playing time in this interval\nplayer.on('timeupdate',function(event){var instance=event.detail.plyr;var tempTimeNowInSec=tempTimeNow/4;//timeupdate firing 250ms interval\nif(tempTimeNowInSec>=intervalSeconds){sync_time(instance);tempTimeNow=0;}tempTimeNow++;});// on end, sync time and autoload content\nplayer.on('ended',function(event){var video_data=getVideoData();var instance=event.detail.plyr;var data={is_ended:true};sync_time(instance,data);if(video_data.autoload_next_course_content){autoload_content();}});}export default tutor;"],"sourceRoot":""}
 
dist/analytics/{6-952599ce.js → 6-f0ead9a8.js} RENAMED
@@ -15,5 +15,5 @@
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[6],{53:function(t,o,n){"use strict";n.r(o),o.default=function(t){var o=function(t,o){var e,r=n().post_id,a={action:"sync_video_playback",currentTime:t.currentTime,duration:t.duration,post_id:r};a[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var u=a;o&&(u=Object.assign(a,o)),jQuery.post(null===(e=_tutorobject)||void 0===e?void 0:e.ajaxurl,u)},n=function(){var t=jQuery("#tutor_video_tracking_information").val();return t?JSON.parse(t):{}},e=0;t.on("timeupdate",(function(t){var n=t.detail.plyr;e/4>=30&&(o(n),e=0),e++})),t.on("ended",(function(t){var e=n(),r=t.detail.plyr;o(r,{is_ended:!0}),e.autoload_next_course_content&&function(){var t,o;if(_tutorobject.nonce_key&&null!==(t=_tutorobject)&&void 0!==t&&t.ajaxurl){var e={action:"autoload_next_course_content",post_id:n().post_id};e[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key],jQuery.post(null===(o=_tutorobject)||void 0===o?void 0:o.ajaxurl,e).done((function(t){var o;null!=t&&t.success&&null!=t&&null!==(o=t.data)&&void 0!==o&&o.next_url&&(location.href=t.data.next_url)}))}}()}))}}}]);
19
- //# sourceMappingURL=6-952599ce.js.map
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
+ (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[6],{50:function(t,o,n){"use strict";n.r(o),o.default=function(t){var o=function(t,o){var e,r=n().post_id,a={action:"sync_video_playback",currentTime:t.currentTime,duration:t.duration,post_id:r};a[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var u=a;o&&(u=Object.assign(a,o)),jQuery.post(null===(e=_tutorobject)||void 0===e?void 0:e.ajaxurl,u)},n=function(){var t=jQuery("#tutor_video_tracking_information").val();return t?JSON.parse(t):{}},e=0;t.on("timeupdate",(function(t){var n=t.detail.plyr;e/4>=30&&(o(n),e=0),e++})),t.on("ended",(function(t){var e=n(),r=t.detail.plyr;o(r,{is_ended:!0}),e.autoload_next_course_content&&function(){var t,o;if(_tutorobject.nonce_key&&null!==(t=_tutorobject)&&void 0!==t&&t.ajaxurl){var e={action:"autoload_next_course_content",post_id:n().post_id};e[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key],jQuery.post(null===(o=_tutorobject)||void 0===o?void 0:o.ajaxurl,e).done((function(t){var o;null!=t&&t.success&&null!=t&&null!==(o=t.data)&&void 0!==o&&o.next_url&&(location.href=t.data.next_url)}))}}()}))}}}]);
19
+ //# sourceMappingURL=6-f0ead9a8.js.map
dist/analytics/{6-952599ce.js.map → 6-f0ead9a8.js.map} RENAMED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/tutor.js"],"names":["player","sync_time","instance","options","_tutorobject4","post_id","getVideoData","data","action","currentTime","duration","_tutorobject","nonce_key","data_send","Object","assign","jQuery","post","ajaxurl","video_track_data","val","JSON","parse","tempTimeNow","on","event","detail","plyr","video_data","is_ended","autoload_next_course_content","_tutorobject2","_tutorobject3","done","response","_response$data","success","next_url","location","href","autoload_content"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,OAOoO,UAPpO,SAAeA,GACf,IACIC,EAAU,SAAmBC,EAASC,GAAS,IAAIC,EAAkBC,EAAQC,IAAeD,QAAYE,EAAK,CAACC,OAAO,sBAAsBC,YAAYP,EAASO,YAAYC,SAASR,EAASQ,SAASL,QAAQA,GAASE,EAAKI,aAAaC,WAAWD,aAAaA,aAAaC,WAAW,IAAIC,EAAUN,EAAQJ,IAASU,EAAUC,OAAOC,OAAOR,EAAKJ,IAAUa,OAAOC,KAAoC,QAA9Bb,EAAcO,oBAAsC,IAAhBP,OAAuB,EAAOA,EAAcc,QAAQL,IACrcP,EAAa,WAAwB,IAAIa,EAAiBH,OAAO,qCAAqCI,MAAM,OAAOD,EAAiBE,KAAKC,MAAMH,GAAkB,IACjKI,EAAY,EAChBvB,EAAOwB,GAAG,cAAa,SAASC,GAAO,IAAIvB,EAASuB,EAAMC,OAAOC,KAA0BJ,EAAY,GADjE,KAEAtB,EAAUC,GAAUqB,EAAY,GAAGA,OACzEvB,EAAOwB,GAAG,SAAQ,SAASC,GAAO,IAAIG,EAAWtB,IAAmBJ,EAASuB,EAAMC,OAAOC,KAA8B1B,EAAUC,EAA1B,CAAC2B,UAAS,IAAkCD,EAAWE,8BAN1I,WAA4B,IAAIC,EAAcC,EAAc,GAAIrB,aAAaC,WAA4C,QAA9BmB,EAAcpB,oBAAsC,IAAhBoB,GAAwBA,EAAcb,QAAzG,CAA2H,IAAuCX,EAAK,CAACC,OAAO,+BAA+BH,QAAvEC,IAAeD,SAAyEE,EAAKI,aAAaC,WAAWD,aAAaA,aAAaC,WAAWI,OAAOC,KAAoC,QAA9Be,EAAcrB,oBAAsC,IAAhBqB,OAAuB,EAAOA,EAAcd,QAAQX,GAAM0B,MAAK,SAASC,GAAU,IAAIC,EAAkBD,SAAoCA,EAASE,SAA7CF,MAAsDA,GAAqE,QAAhCC,EAAeD,EAAS3B,YAA+B,IAAjB4B,GAAyBA,EAAeE,WAAUC,SAASC,KAAKL,EAAS3B,KAAK8B,cAM7hBG","file":"analytics/6-952599ce.js","sourcesContent":["function tutor(player){// autoload course content\nvar autoload_content=function autoload_content(){var _tutorobject2,_tutorobject3;if(!_tutorobject.nonce_key||!((_tutorobject2=_tutorobject)!==null&&_tutorobject2!==void 0&&_tutorobject2.ajaxurl)){return;}var post_id=getVideoData().post_id;var data={action:'autoload_next_course_content',post_id:post_id};data[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];jQuery.post((_tutorobject3=_tutorobject)===null||_tutorobject3===void 0?void 0:_tutorobject3.ajaxurl,data).done(function(response){var _response$data;if(response!==null&&response!==void 0&&response.success&&response!==null&&response!==void 0&&(_response$data=response.data)!==null&&_response$data!==void 0&&_response$data.next_url){location.href=response.data.next_url;}});};// sync time with server\nvar sync_time=function sync_time(instance,options){var _tutorobject4;var post_id=getVideoData().post_id;var data={action:'sync_video_playback',currentTime:instance.currentTime,duration:instance.duration,post_id:post_id};data[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var data_send=data;if(options){data_send=Object.assign(data,options);}jQuery.post((_tutorobject4=_tutorobject)===null||_tutorobject4===void 0?void 0:_tutorobject4.ajaxurl,data_send);};// get video data\nvar getVideoData=function getVideoData(){var video_track_data=jQuery('#tutor_video_tracking_information').val();return video_track_data?JSON.parse(video_track_data):{};};// update time on server every 250ms\nvar tempTimeNow=0;var intervalSeconds=30;//Send to tutor backend about video playing time in this interval\nplayer.on('timeupdate',function(event){var instance=event.detail.plyr;var tempTimeNowInSec=tempTimeNow/4;//timeupdate firing 250ms interval\nif(tempTimeNowInSec>=intervalSeconds){sync_time(instance);tempTimeNow=0;}tempTimeNow++;});// on end, sync time and autoload content\nplayer.on('ended',function(event){var video_data=getVideoData();var instance=event.detail.plyr;var data={is_ended:true};sync_time(instance,data);if(video_data.autoload_next_course_content){autoload_content();}});}export default tutor;"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/dist/custom-elements/tutor.js"],"names":["player","sync_time","instance","options","_tutorobject4","post_id","getVideoData","data","action","currentTime","duration","_tutorobject","nonce_key","data_send","Object","assign","jQuery","post","ajaxurl","video_track_data","val","JSON","parse","tempTimeNow","on","event","detail","plyr","video_data","is_ended","autoload_next_course_content","_tutorobject2","_tutorobject3","done","response","_response$data","success","next_url","location","href","autoload_content"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,OAOoO,UAPpO,SAAeA,GACf,IACIC,EAAU,SAAmBC,EAASC,GAAS,IAAIC,EAAkBC,EAAQC,IAAeD,QAAYE,EAAK,CAACC,OAAO,sBAAsBC,YAAYP,EAASO,YAAYC,SAASR,EAASQ,SAASL,QAAQA,GAASE,EAAKI,aAAaC,WAAWD,aAAaA,aAAaC,WAAW,IAAIC,EAAUN,EAAQJ,IAASU,EAAUC,OAAOC,OAAOR,EAAKJ,IAAUa,OAAOC,KAAoC,QAA9Bb,EAAcO,oBAAsC,IAAhBP,OAAuB,EAAOA,EAAcc,QAAQL,IACrcP,EAAa,WAAwB,IAAIa,EAAiBH,OAAO,qCAAqCI,MAAM,OAAOD,EAAiBE,KAAKC,MAAMH,GAAkB,IACjKI,EAAY,EAChBvB,EAAOwB,GAAG,cAAa,SAASC,GAAO,IAAIvB,EAASuB,EAAMC,OAAOC,KAA0BJ,EAAY,GADjE,KAEAtB,EAAUC,GAAUqB,EAAY,GAAGA,OACzEvB,EAAOwB,GAAG,SAAQ,SAASC,GAAO,IAAIG,EAAWtB,IAAmBJ,EAASuB,EAAMC,OAAOC,KAA8B1B,EAAUC,EAA1B,CAAC2B,UAAS,IAAkCD,EAAWE,8BAN1I,WAA4B,IAAIC,EAAcC,EAAc,GAAIrB,aAAaC,WAA4C,QAA9BmB,EAAcpB,oBAAsC,IAAhBoB,GAAwBA,EAAcb,QAAzG,CAA2H,IAAuCX,EAAK,CAACC,OAAO,+BAA+BH,QAAvEC,IAAeD,SAAyEE,EAAKI,aAAaC,WAAWD,aAAaA,aAAaC,WAAWI,OAAOC,KAAoC,QAA9Be,EAAcrB,oBAAsC,IAAhBqB,OAAuB,EAAOA,EAAcd,QAAQX,GAAM0B,MAAK,SAASC,GAAU,IAAIC,EAAkBD,SAAoCA,EAASE,SAA7CF,MAAsDA,GAAqE,QAAhCC,EAAeD,EAAS3B,YAA+B,IAAjB4B,GAAyBA,EAAeE,WAAUC,SAASC,KAAKL,EAAS3B,KAAK8B,cAM7hBG","file":"analytics/6-f0ead9a8.js","sourcesContent":["function tutor(player){// autoload course content\nvar autoload_content=function autoload_content(){var _tutorobject2,_tutorobject3;if(!_tutorobject.nonce_key||!((_tutorobject2=_tutorobject)!==null&&_tutorobject2!==void 0&&_tutorobject2.ajaxurl)){return;}var post_id=getVideoData().post_id;var data={action:'autoload_next_course_content',post_id:post_id};data[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];jQuery.post((_tutorobject3=_tutorobject)===null||_tutorobject3===void 0?void 0:_tutorobject3.ajaxurl,data).done(function(response){var _response$data;if(response!==null&&response!==void 0&&response.success&&response!==null&&response!==void 0&&(_response$data=response.data)!==null&&_response$data!==void 0&&_response$data.next_url){location.href=response.data.next_url;}});};// sync time with server\nvar sync_time=function sync_time(instance,options){var _tutorobject4;var post_id=getVideoData().post_id;var data={action:'sync_video_playback',currentTime:instance.currentTime,duration:instance.duration,post_id:post_id};data[_tutorobject.nonce_key]=_tutorobject[_tutorobject.nonce_key];var data_send=data;if(options){data_send=Object.assign(data,options);}jQuery.post((_tutorobject4=_tutorobject)===null||_tutorobject4===void 0?void 0:_tutorobject4.ajaxurl,data_send);};// get video data\nvar getVideoData=function getVideoData(){var video_track_data=jQuery('#tutor_video_tracking_information').val();return video_track_data?JSON.parse(video_track_data):{};};// update time on server every 250ms\nvar tempTimeNow=0;var intervalSeconds=30;//Send to tutor backend about video playing time in this interval\nplayer.on('timeupdate',function(event){var instance=event.detail.plyr;var tempTimeNowInSec=tempTimeNow/4;//timeupdate firing 250ms interval\nif(tempTimeNowInSec>=intervalSeconds){sync_time(instance);tempTimeNow=0;}tempTimeNow++;});// on end, sync time and autoload content\nplayer.on('ended',function(event){var video_data=getVideoData();var instance=event.detail.plyr;var data={is_ended:true};sync_time(instance,data);if(video_data.autoload_next_course_content){autoload_content();}});}export default tutor;"],"sourceRoot":""}
dist/analytics/{7-5437b4a3.js → 7-0f173a3d.js} RENAMED
@@ -15,7 +15,7 @@
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[7],{50:function(t,e,n){"use strict";n.r(e),n.d(e,"scopeCss",(function(){return y}));var r=n(15),o=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",c=new RegExp("(-shadowcsshost"+o,"gim"),s=new RegExp("(-shadowcsscontext"+o,"gim"),a=new RegExp("(-shadowcssslotted"+o,"gim"),i=/-shadowcsshost-no-combinator([^\s]*)/,u=[/::shadow/g,/::content/g],l=/-shadowcsshost/gim,h=/:host/gim,p=/::slotted/gim,f=/:host-context/gim,d=/\/\*\s*[\s\S]*?\*\//g,g=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,m=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,v=/([{}])/g,w=function(t,e){var n=x(t),r=0;return n.escapedString.replace(m,(function(){var t=arguments.length<=2?void 0:arguments[2],o="",c=arguments.length<=4?void 0:arguments[4],s="";c&&c.startsWith("{%BLOCK%")&&(o=n.blocks[r++],c=c.substring("%BLOCK%".length+1),s="{");var a={selector:t,content:o},i=e(a);return"".concat(arguments.length<=1?void 0:arguments[1]).concat(i.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(s).concat(i.content).concat(c)}))},x=function(t){for(var e=t.split(v),n=[],r=[],o=0,c=[],s=0;s<e.length;s++){var a=e[s];"}"===a&&o--,o>0?c.push(a):(c.length>0&&(r.push(c.join("")),n.push("%BLOCK%"),c=[]),n.push(a)),"{"===a&&o++}return c.length>0&&(r.push(c.join("")),n.push("%BLOCK%")),{escapedString:n.join(""),blocks:r}},_=function(t,e,n){return t.replace(e,(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e[2]){for(var o=e[2].split(","),c=[],s=0;s<o.length;s++){var a=o[s].trim();if(!a)break;c.push(n("-shadowcsshost-no-combinator",a,e[3]))}return c.join(",")}return"-shadowcsshost-no-combinator"+e[3]}))},b=function(t,e,n){return t+e.replace("-shadowcsshost","")+n},O=function(t,e,n){return e.indexOf("-shadowcsshost")>-1?b(t,e,n):t+e+n+", "+e+" "+t+n},S=function(t,e){return!function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")([>\\s~+[.,{:][\\s\\S]*)?$","m")}(e).test(t)},W=function(t,e,n){for(var r,o="."+(e=e.replace(/\[is=([^\]]*)\]/g,(function(t){return arguments.length<=1?void 0:arguments[1]}))),c=function(t){var r=t.trim();if(!r)return"";if(t.indexOf("-shadowcsshost-no-combinator")>-1)r=function(t,e,n){if(l.lastIndex=0,l.test(t)){var r=".".concat(n);return t.replace(i,(function(t,e){return e.replace(/([^:]*)(:*)(.*)/,(function(t,e,n,o){return e+r+n+o}))})).replace(l,r+" ")}return e+" "+t}(t,e,n);else{var c=t.replace(l,"");if(c.length>0){var s=c.match(/([^:]*)(:*)(.*)/);s&&(r=s[1]+o+s[2]+s[3])}}return r},s=function(t){var e=[],n=0;return{content:(t=t.replace(/(\[[^\]]*\])/g,(function(t,r){var o="__ph-".concat(n,"__");return e.push(r),n++,o}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(t,r,o){var c="__ph-".concat(n,"__");return e.push(o),n++,r+c})),placeholders:e}}(t),a="",u=0,h=/( |>|\+|~(?!=))\s*/g,p=!((t=s.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(r=h.exec(t));){var f=r[1],d=t.slice(u,r.index).trim(),g=(p=p||d.indexOf("-shadowcsshost-no-combinator")>-1)?c(d):d;a+="".concat(g," ").concat(f," "),u=h.lastIndex}var m,v=t.substring(u);return a+=(p=p||v.indexOf("-shadowcsshost-no-combinator")>-1)?c(v):v,m=s.placeholders,a.replace(/__ph-(\d+)__/g,(function(t,e){return m[+e]}))},j=function t(e,n,r,o,c){return w(e,(function(e){var c=e.selector,s=e.content;return"@"!==e.selector[0]?c=function(t,e,n,r){return t.split(",").map((function(t){return r&&t.indexOf("."+r)>-1?t.trim():S(t,e)?W(t,e,n).trim():t.trim()})).join(", ")}(e.selector,n,r,o):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(s=t(e.content,n,r,o)),{selector:c.replace(/\s{2,}/g," ").trim(),content:s}}))},k=function(t,e,n,r,o){var i=function(t,e){var n="."+e+" > ",r=[];return t=t.replace(a,(function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];if(e[2]){for(var c=e[2].trim(),s=e[3],a=n+c+s,i="",u=e[4]-1;u>=0;u--){var l=e[5][u];if("}"===l||","===l)break;i=l+i}var h=i+a,p="".concat(i.trimRight()).concat(a.trim());if(h.trim()!==p.trim()){var f="".concat(p,", ").concat(h);r.push({orgSelector:h,updatedSelector:f})}return a}return"-shadowcsshost-no-combinator"+e[3]})),{selectors:r,cssText:t}}(t=function(t){return _(t,s,O)}(t=function(t){return _(t,c,b)}(t=t.replace(f,"-shadowcsscontext").replace(h,"-shadowcsshost").replace(p,"-shadowcssslotted"))),r);return t=function(t){return u.reduce((function(t,e){return t.replace(e," ")}),t)}(t=i.cssText),e&&(t=j(t,e,n,r)),{cssText:(t=(t=t.replace(/-shadowcsshost-no-combinator/g,".".concat(n))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:i.selectors}},y=function(t,e,n){var o=e+"-h",c=e+"-s",s=t.match(g)||[];t=function(t){return t.replace(d,"")}(t);var a=[];if(n){var i=function(t){var e="/*!@___".concat(a.length,"___*/"),n="/*!@".concat(t.selector,"*/");return a.push({placeholder:e,comment:n}),t.selector=e+t.selector,t};t=w(t,(function(t){return"@"!==t.selector[0]?i(t):t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document")?(t.content=w(t.content,i),t):t}))}var u=k(t,e,o,c);return t=[u.cssText].concat(Object(r.a)(s)).join("\n"),n&&a.forEach((function(e){var n=e.placeholder,r=e.comment;t=t.replace(n,r)})),u.slottedSelectors.forEach((function(e){t=t.replace(e.orgSelector,e.updatedSelector)})),t};
19
  /**
20
  * @license
21
  * Copyright Google Inc. All Rights Reserved.
@@ -27,4 +27,4 @@
27
  * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
28
  * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
29
  */}}]);
30
- //# sourceMappingURL=7-5437b4a3.js.map
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
+ (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[7],{52:function(t,e,n){"use strict";n.r(e),n.d(e,"scopeCss",(function(){return y}));var r=n(14),o=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",c=new RegExp("(-shadowcsshost"+o,"gim"),s=new RegExp("(-shadowcsscontext"+o,"gim"),a=new RegExp("(-shadowcssslotted"+o,"gim"),i=/-shadowcsshost-no-combinator([^\s]*)/,u=[/::shadow/g,/::content/g],l=/-shadowcsshost/gim,h=/:host/gim,p=/::slotted/gim,f=/:host-context/gim,d=/\/\*\s*[\s\S]*?\*\//g,g=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,m=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,v=/([{}])/g,w=function(t,e){var n=x(t),r=0;return n.escapedString.replace(m,(function(){var t=arguments.length<=2?void 0:arguments[2],o="",c=arguments.length<=4?void 0:arguments[4],s="";c&&c.startsWith("{%BLOCK%")&&(o=n.blocks[r++],c=c.substring("%BLOCK%".length+1),s="{");var a={selector:t,content:o},i=e(a);return"".concat(arguments.length<=1?void 0:arguments[1]).concat(i.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(s).concat(i.content).concat(c)}))},x=function(t){for(var e=t.split(v),n=[],r=[],o=0,c=[],s=0;s<e.length;s++){var a=e[s];"}"===a&&o--,o>0?c.push(a):(c.length>0&&(r.push(c.join("")),n.push("%BLOCK%"),c=[]),n.push(a)),"{"===a&&o++}return c.length>0&&(r.push(c.join("")),n.push("%BLOCK%")),{escapedString:n.join(""),blocks:r}},_=function(t,e,n){return t.replace(e,(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e[2]){for(var o=e[2].split(","),c=[],s=0;s<o.length;s++){var a=o[s].trim();if(!a)break;c.push(n("-shadowcsshost-no-combinator",a,e[3]))}return c.join(",")}return"-shadowcsshost-no-combinator"+e[3]}))},b=function(t,e,n){return t+e.replace("-shadowcsshost","")+n},O=function(t,e,n){return e.indexOf("-shadowcsshost")>-1?b(t,e,n):t+e+n+", "+e+" "+t+n},S=function(t,e){return!function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")([>\\s~+[.,{:][\\s\\S]*)?$","m")}(e).test(t)},W=function(t,e,n){for(var r,o="."+(e=e.replace(/\[is=([^\]]*)\]/g,(function(t){return arguments.length<=1?void 0:arguments[1]}))),c=function(t){var r=t.trim();if(!r)return"";if(t.indexOf("-shadowcsshost-no-combinator")>-1)r=function(t,e,n){if(l.lastIndex=0,l.test(t)){var r=".".concat(n);return t.replace(i,(function(t,e){return e.replace(/([^:]*)(:*)(.*)/,(function(t,e,n,o){return e+r+n+o}))})).replace(l,r+" ")}return e+" "+t}(t,e,n);else{var c=t.replace(l,"");if(c.length>0){var s=c.match(/([^:]*)(:*)(.*)/);s&&(r=s[1]+o+s[2]+s[3])}}return r},s=function(t){var e=[],n=0;return{content:(t=t.replace(/(\[[^\]]*\])/g,(function(t,r){var o="__ph-".concat(n,"__");return e.push(r),n++,o}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(t,r,o){var c="__ph-".concat(n,"__");return e.push(o),n++,r+c})),placeholders:e}}(t),a="",u=0,h=/( |>|\+|~(?!=))\s*/g,p=!((t=s.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(r=h.exec(t));){var f=r[1],d=t.slice(u,r.index).trim(),g=(p=p||d.indexOf("-shadowcsshost-no-combinator")>-1)?c(d):d;a+="".concat(g," ").concat(f," "),u=h.lastIndex}var m,v=t.substring(u);return a+=(p=p||v.indexOf("-shadowcsshost-no-combinator")>-1)?c(v):v,m=s.placeholders,a.replace(/__ph-(\d+)__/g,(function(t,e){return m[+e]}))},j=function t(e,n,r,o,c){return w(e,(function(e){var c=e.selector,s=e.content;return"@"!==e.selector[0]?c=function(t,e,n,r){return t.split(",").map((function(t){return r&&t.indexOf("."+r)>-1?t.trim():S(t,e)?W(t,e,n).trim():t.trim()})).join(", ")}(e.selector,n,r,o):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(s=t(e.content,n,r,o)),{selector:c.replace(/\s{2,}/g," ").trim(),content:s}}))},k=function(t,e,n,r,o){var i=function(t,e){var n="."+e+" > ",r=[];return t=t.replace(a,(function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];if(e[2]){for(var c=e[2].trim(),s=e[3],a=n+c+s,i="",u=e[4]-1;u>=0;u--){var l=e[5][u];if("}"===l||","===l)break;i=l+i}var h=i+a,p="".concat(i.trimRight()).concat(a.trim());if(h.trim()!==p.trim()){var f="".concat(p,", ").concat(h);r.push({orgSelector:h,updatedSelector:f})}return a}return"-shadowcsshost-no-combinator"+e[3]})),{selectors:r,cssText:t}}(t=function(t){return _(t,s,O)}(t=function(t){return _(t,c,b)}(t=t.replace(f,"-shadowcsscontext").replace(h,"-shadowcsshost").replace(p,"-shadowcssslotted"))),r);return t=function(t){return u.reduce((function(t,e){return t.replace(e," ")}),t)}(t=i.cssText),e&&(t=j(t,e,n,r)),{cssText:(t=(t=t.replace(/-shadowcsshost-no-combinator/g,".".concat(n))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:i.selectors}},y=function(t,e,n){var o=e+"-h",c=e+"-s",s=t.match(g)||[];t=function(t){return t.replace(d,"")}(t);var a=[];if(n){var i=function(t){var e="/*!@___".concat(a.length,"___*/"),n="/*!@".concat(t.selector,"*/");return a.push({placeholder:e,comment:n}),t.selector=e+t.selector,t};t=w(t,(function(t){return"@"!==t.selector[0]?i(t):t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document")?(t.content=w(t.content,i),t):t}))}var u=k(t,e,o,c);return t=[u.cssText].concat(Object(r.a)(s)).join("\n"),n&&a.forEach((function(e){var n=e.placeholder,r=e.comment;t=t.replace(n,r)})),u.slottedSelectors.forEach((function(e){t=t.replace(e.orgSelector,e.updatedSelector)})),t};
19
  /**
20
  * @license
21
  * Copyright Google Inc. All Rights Reserved.
27
  * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
28
  * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
29
  */}}]);
30
+ //# sourceMappingURL=7-0f173a3d.js.map
dist/analytics/{7-5437b4a3.js.map → 7-0f173a3d.js.map} RENAMED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@stencil/core/internal/client/shadow-css.js"],"names":["_parenSuffix","_cssColonHostRe","RegExp","_cssColonHostContextRe","_cssColonSlottedRe","_polyfillHostNoCombinatorRe","_shadowDOMSelectorsRe","_polyfillHostRe","_colonHostRe","_colonSlottedRe","_colonHostContextRe","_commentRe","_commentWithHashRe","_ruleRe","_curlyRe","processRules","input","ruleCallback","inputWithEscapedBlocks","escapeBlocks","nextBlockIndex","escapedString","replace","selector","arguments","length","undefined","content","suffix","contentPrefix","startsWith","blocks","substring","cssRule","rule","concat","inputParts","split","resultParts","escapedBlocks","bracketCount","currentBlockParts","partIndex","part","push","join","convertColonRule","cssText","regExp","partReplacer","_len","m","Array","_key","parts","r","i","p","trim","_polyfillHost","colonHostPartReplacer","host","colonHostContextPartReplacer","indexOf","selectorNeedsScoping","scopeSelector","makeScopeMatcher","test","applyStrictSelectorScope","hostSelector","res","className","_","_scopeSelectorPart","scopedP","lastIndex","replaceBy","before","colon","after","applySimpleSelectorScope","t","matches","match","safeContent","placeholders","index","keep","pseudo","exp","safeSelector","scopedSelector","startIndex","sep","shouldScope","exec","separator","_part","slice","scopedPart","scopeSelectors","scopeSelectorText","slotSelector","commentOriginalSelector","map","shallowPart","scopeCssText","scopeId","hostScopeId","slotScopeId","slotted","slotClass","selectors","_len2","_key2","compound","slottedSelector","prefixSelector","char","orgSelector","addedSelector","trimRight","updatedSelector","convertColonSlotted","convertColonHostContext","convertColonHost","reduce","result","pattern","convertShadowDOMSelectors","slottedSelectors","scopeCss","commentsWithHash","stripComments","orgSelectors","processCommentedSelector","placeholder","comment","scoped","forEach","_ref"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,4DAiBiDA,EAAa,kDAA4DC,EAAgB,IAAIC,OAAO,kBAAkBF,EAAa,OAAWG,EAAuB,IAAID,OAAO,qBAAyBF,EAAa,OAAWI,EAAmB,IAAIF,OAAO,qBAAqBF,EAAa,OAAwEK,EAA4B,uCAA2CC,EAAsB,CAAC,YAAY,cAAqEC,EAAgB,oBAAwBC,EAAa,WAAeC,EAAgB,eAAmBC,EAAoB,mBAAuBC,EAAW,uBAAiHC,EAAmB,+CAAoKC,EAAQ,wDAA4DC,EAAS,UAAqFC,EAAa,SAAsBC,EAAMC,GAAc,IAAIC,EAAuBC,EAAaH,GAAWI,EAAe,EAAE,OAAOF,EAAuBG,cAAcC,QAAQT,GAAQ,WAAW,IAAIU,EAASC,UAAUC,QAAQ,OAAEC,EAAUF,UAAU,GAAOG,EAAQ,GAAOC,EAAOJ,UAAUC,QAAQ,OAAEC,EAAUF,UAAU,GAAOK,EAAc,GAAMD,GAAQA,EAAOE,WAAW,cAAwBH,EAAQT,EAAuBa,OAAOX,KAAkBQ,EAAOA,EAAOI,UAA7d,UAAyfP,OAAO,GAAGI,EAAc,KAAK,IAAII,EAAQ,CAACV,SAASA,EAASI,QAAQA,GAAaO,EAAKjB,EAAagB,GAAS,MAAM,GAAGE,OAAOX,UAAUC,QAAQ,OAAEC,EAAUF,UAAU,IAAIW,OAAOD,EAAKX,UAAUY,OAAOX,UAAUC,QAAQ,OAAEC,EAAUF,UAAU,IAAIW,OAAON,GAAeM,OAAOD,EAAKP,SAASQ,OAAOP,OAAiBT,EAAa,SAAsBH,GAAgI,IAAzH,IAAIoB,EA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QA,IAAUvG,EAAKX,SAASiH,EAAYtG,EAAKX,SAAgBW,GAAOa,EAAQhC,EAAagC,GAAQ,SAASb,GAAM,MAAsB,MAAnBA,EAAKX,SAAS,GAAiBgH,EAAyBrG,GAAeA,EAAKX,SAASO,WAAW,WAAWI,EAAKX,SAASO,WAAW,cAAcI,EAAKX,SAASO,WAAW,UAAUI,EAAKX,SAASO,WAAW,cAAcI,EAAKP,QAAQZ,EAAamB,EAAKP,QAAQ4G,GAAiCrG,GAAaA,KAAS,IAAIwG,EAAOhC,EAAa3D,EAAQ4D,EAAQC,EAAYC,GAAuZ,OAA1Y9D,EAAQ,CAAC2F,EAAO3F,SAASZ,OAAO,YAAmBiG,IAAmBvF,KAAK,MAAS0D,GAAyB+B,EAAaK,SAAQ,SAASC,GAAM,IAAIJ,EAAYI,EAAKJ,YAAYC,EAAQG,EAAKH,QAAQ1F,EAAQA,EAAQzB,QAAQkH,EAAYC,MAAaC,EAAOR,iBAAiBS,SAAQ,SAASvB,GAAiBrE,EAAQA,EAAQzB,QAAQ8F,EAAgBG,YAAYH,EAAgBM,oBAA2B3E","file":"analytics/7-5437b4a3.js","sourcesContent":["import _toConsumableArray from\"@babel/runtime/helpers/esm/toConsumableArray\";/*\n Stencil Client Platform v2.5.2 | MIT Licensed | https://stenciljs.com\n */ /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n *\n * This file is a port of shadowCSS from webcomponents.js to TypeScript.\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts\n */var safeSelector=function safeSelector(selector){var placeholders=[];var index=0;var content;// Replaces attribute selectors with placeholders.\n// The WS in [attr=\"va lue\"] would otherwise be interpreted as a selector separator.\nselector=selector.replace(/(\\[[^\\]]*\\])/g,function(_,keep){var replaceBy=\"__ph-\".concat(index,\"__\");placeholders.push(keep);index++;return replaceBy;});// Replaces the expression in `:nth-child(2n + 1)` with a placeholder.\n// WS and \"+\" would otherwise be interpreted as selector separators.\ncontent=selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g,function(_,pseudo,exp){var replaceBy=\"__ph-\".concat(index,\"__\");placeholders.push(exp);index++;return pseudo+replaceBy;});var ss={content:content,placeholders:placeholders};return ss;};var restoreSafeSelector=function restoreSafeSelector(placeholders,content){return content.replace(/__ph-(\\d+)__/g,function(_,index){return placeholders[+index];});};var _polyfillHost='-shadowcsshost';var _polyfillSlotted='-shadowcssslotted';// note: :host-context pre-processed to -shadowcsshostcontext.\nvar _polyfillHostContext='-shadowcsscontext';var _parenSuffix=')(?:\\\\(('+'(?:\\\\([^)(]*\\\\)|[^)(]*)+?'+')\\\\))?([^,{]*)';var _cssColonHostRe=new RegExp('('+_polyfillHost+_parenSuffix,'gim');var _cssColonHostContextRe=new RegExp('('+_polyfillHostContext+_parenSuffix,'gim');var _cssColonSlottedRe=new RegExp('('+_polyfillSlotted+_parenSuffix,'gim');var _polyfillHostNoCombinator=_polyfillHost+'-no-combinator';var _polyfillHostNoCombinatorRe=/-shadowcsshost-no-combinator([^\\s]*)/;var _shadowDOMSelectorsRe=[/::shadow/g,/::content/g];var _selectorReSuffix='([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$';var _polyfillHostRe=/-shadowcsshost/gim;var _colonHostRe=/:host/gim;var _colonSlottedRe=/::slotted/gim;var _colonHostContextRe=/:host-context/gim;var _commentRe=/\\/\\*\\s*[\\s\\S]*?\\*\\//g;var stripComments=function stripComments(input){return input.replace(_commentRe,'');};var _commentWithHashRe=/\\/\\*\\s*#\\s*source(Mapping)?URL=[\\s\\S]+?\\*\\//g;var extractCommentsWithHash=function extractCommentsWithHash(input){return input.match(_commentWithHashRe)||[];};var _ruleRe=/(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;var _curlyRe=/([{}])/g;var OPEN_CURLY='{';var CLOSE_CURLY='}';var BLOCK_PLACEHOLDER='%BLOCK%';var processRules=function processRules(input,ruleCallback){var inputWithEscapedBlocks=escapeBlocks(input);var nextBlockIndex=0;return inputWithEscapedBlocks.escapedString.replace(_ruleRe,function(){var selector=arguments.length<=2?undefined:arguments[2];var content='';var suffix=arguments.length<=4?undefined:arguments[4];var contentPrefix='';if(suffix&&suffix.startsWith('{'+BLOCK_PLACEHOLDER)){content=inputWithEscapedBlocks.blocks[nextBlockIndex++];suffix=suffix.substring(BLOCK_PLACEHOLDER.length+1);contentPrefix='{';}var cssRule={selector:selector,content:content};var rule=ruleCallback(cssRule);return\"\".concat(arguments.length<=1?undefined:arguments[1]).concat(rule.selector).concat(arguments.length<=3?undefined:arguments[3]).concat(contentPrefix).concat(rule.content).concat(suffix);});};var escapeBlocks=function escapeBlocks(input){var inputParts=input.split(_curlyRe);var resultParts=[];var escapedBlocks=[];var bracketCount=0;var currentBlockParts=[];for(var partIndex=0;partIndex<inputParts.length;partIndex++){var part=inputParts[partIndex];if(part===CLOSE_CURLY){bracketCount--;}if(bracketCount>0){currentBlockParts.push(part);}else{if(currentBlockParts.length>0){escapedBlocks.push(currentBlockParts.join(''));resultParts.push(BLOCK_PLACEHOLDER);currentBlockParts=[];}resultParts.push(part);}if(part===OPEN_CURLY){bracketCount++;}}if(currentBlockParts.length>0){escapedBlocks.push(currentBlockParts.join(''));resultParts.push(BLOCK_PLACEHOLDER);}var strEscapedBlocks={escapedString:resultParts.join(''),blocks:escapedBlocks};return strEscapedBlocks;};var insertPolyfillHostInCssText=function insertPolyfillHostInCssText(selector){selector=selector.replace(_colonHostContextRe,_polyfillHostContext).replace(_colonHostRe,_polyfillHost).replace(_colonSlottedRe,_polyfillSlotted);return selector;};var convertColonRule=function convertColonRule(cssText,regExp,partReplacer){// m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule\nreturn cssText.replace(regExp,function(){for(var _len=arguments.length,m=new Array(_len),_key=0;_key<_len;_key++){m[_key]=arguments[_key];}if(m[2]){var parts=m[2].split(',');var r=[];for(var i=0;i<parts.length;i++){var p=parts[i].trim();if(!p)break;r.push(partReplacer(_polyfillHostNoCombinator,p,m[3]));}return r.join(',');}else{return _polyfillHostNoCombinator+m[3];}});};var colonHostPartReplacer=function colonHostPartReplacer(host,part,suffix){return host+part.replace(_polyfillHost,'')+suffix;};var convertColonHost=function convertColonHost(cssText){return convertColonRule(cssText,_cssColonHostRe,colonHostPartReplacer);};var colonHostContextPartReplacer=function colonHostContextPartReplacer(host,part,suffix){if(part.indexOf(_polyfillHost)>-1){return colonHostPartReplacer(host,part,suffix);}else{return host+part+suffix+', '+part+' '+host+suffix;}};var convertColonSlotted=function convertColonSlotted(cssText,slotScopeId){var slotClass='.'+slotScopeId+' > ';var selectors=[];cssText=cssText.replace(_cssColonSlottedRe,function(){for(var _len2=arguments.length,m=new Array(_len2),_key2=0;_key2<_len2;_key2++){m[_key2]=arguments[_key2];}if(m[2]){var compound=m[2].trim();var suffix=m[3];var slottedSelector=slotClass+compound+suffix;var prefixSelector='';for(var i=m[4]-1;i>=0;i--){var char=m[5][i];if(char==='}'||char===','){break;}prefixSelector=char+prefixSelector;}var orgSelector=prefixSelector+slottedSelector;var addedSelector=\"\".concat(prefixSelector.trimRight()).concat(slottedSelector.trim());if(orgSelector.trim()!==addedSelector.trim()){var updatedSelector=\"\".concat(addedSelector,\", \").concat(orgSelector);selectors.push({orgSelector:orgSelector,updatedSelector:updatedSelector});}return slottedSelector;}else{return _polyfillHostNoCombinator+m[3];}});return{selectors:selectors,cssText:cssText};};var convertColonHostContext=function convertColonHostContext(cssText){return convertColonRule(cssText,_cssColonHostContextRe,colonHostContextPartReplacer);};var convertShadowDOMSelectors=function convertShadowDOMSelectors(cssText){return _shadowDOMSelectorsRe.reduce(function(result,pattern){return result.replace(pattern,' ');},cssText);};var makeScopeMatcher=function makeScopeMatcher(scopeSelector){var lre=/\\[/g;var rre=/\\]/g;scopeSelector=scopeSelector.replace(lre,'\\\\[').replace(rre,'\\\\]');return new RegExp('^('+scopeSelector+')'+_selectorReSuffix,'m');};var selectorNeedsScoping=function selectorNeedsScoping(selector,scopeSelector){var re=makeScopeMatcher(scopeSelector);return!re.test(selector);};var applySimpleSelectorScope=function applySimpleSelectorScope(selector,scopeSelector,hostSelector){// In Android browser, the lastIndex is not reset when the regex is used in String.replace()\n_polyfillHostRe.lastIndex=0;if(_polyfillHostRe.test(selector)){var replaceBy=\".\".concat(hostSelector);return selector.replace(_polyfillHostNoCombinatorRe,function(_,selector){return selector.replace(/([^:]*)(:*)(.*)/,function(_,before,colon,after){return before+replaceBy+colon+after;});}).replace(_polyfillHostRe,replaceBy+' ');}return scopeSelector+' '+selector;};var applyStrictSelectorScope=function applyStrictSelectorScope(selector,scopeSelector,hostSelector){var isRe=/\\[is=([^\\]]*)\\]/g;scopeSelector=scopeSelector.replace(isRe,function(_){return arguments.length<=1?undefined:arguments[1];});var className='.'+scopeSelector;var _scopeSelectorPart=function _scopeSelectorPart(p){var scopedP=p.trim();if(!scopedP){return'';}if(p.indexOf(_polyfillHostNoCombinator)>-1){scopedP=applySimpleSelectorScope(p,scopeSelector,hostSelector);}else{// remove :host since it should be unnecessary\nvar t=p.replace(_polyfillHostRe,'');if(t.length>0){var matches=t.match(/([^:]*)(:*)(.*)/);if(matches){scopedP=matches[1]+className+matches[2]+matches[3];}}}return scopedP;};var safeContent=safeSelector(selector);selector=safeContent.content;var scopedSelector='';var startIndex=0;var res;var sep=/( |>|\\+|~(?!=))\\s*/g;// If a selector appears before :host it should not be shimmed as it\n// matches on ancestor elements and not on elements in the host's shadow\n// `:host-context(div)` is transformed to\n// `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`\n// the `div` is not part of the component in the 2nd selectors and should not be scoped.\n// Historically `component-tag:host` was matching the component so we also want to preserve\n// this behavior to avoid breaking legacy apps (it should not match).\n// The behavior should be:\n// - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)\n// - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a\n// `:host-context(tag)`)\nvar hasHost=selector.indexOf(_polyfillHostNoCombinator)>-1;// Only scope parts after the first `-shadowcsshost-no-combinator` when it is present\nvar shouldScope=!hasHost;while((res=sep.exec(selector))!==null){var separator=res[1];var _part=selector.slice(startIndex,res.index).trim();shouldScope=shouldScope||_part.indexOf(_polyfillHostNoCombinator)>-1;var scopedPart=shouldScope?_scopeSelectorPart(_part):_part;scopedSelector+=\"\".concat(scopedPart,\" \").concat(separator,\" \");startIndex=sep.lastIndex;}var part=selector.substring(startIndex);shouldScope=shouldScope||part.indexOf(_polyfillHostNoCombinator)>-1;scopedSelector+=shouldScope?_scopeSelectorPart(part):part;// replace the placeholders with their original values\nreturn restoreSafeSelector(safeContent.placeholders,scopedSelector);};var scopeSelector=function scopeSelector(selector,scopeSelectorText,hostSelector,slotSelector){return selector.split(',').map(function(shallowPart){if(slotSelector&&shallowPart.indexOf('.'+slotSelector)>-1){return shallowPart.trim();}if(selectorNeedsScoping(shallowPart,scopeSelectorText)){return applyStrictSelectorScope(shallowPart,scopeSelectorText,hostSelector).trim();}else{return shallowPart.trim();}}).join(', ');};var scopeSelectors=function scopeSelectors(cssText,scopeSelectorText,hostSelector,slotSelector,commentOriginalSelector){return processRules(cssText,function(rule){var selector=rule.selector;var content=rule.content;if(rule.selector[0]!=='@'){selector=scopeSelector(rule.selector,scopeSelectorText,hostSelector,slotSelector);}else if(rule.selector.startsWith('@media')||rule.selector.startsWith('@supports')||rule.selector.startsWith('@page')||rule.selector.startsWith('@document')){content=scopeSelectors(rule.content,scopeSelectorText,hostSelector,slotSelector);}var cssRule={selector:selector.replace(/\\s{2,}/g,' ').trim(),content:content};return cssRule;});};var scopeCssText=function scopeCssText(cssText,scopeId,hostScopeId,slotScopeId,commentOriginalSelector){cssText=insertPolyfillHostInCssText(cssText);cssText=convertColonHost(cssText);cssText=convertColonHostContext(cssText);var slotted=convertColonSlotted(cssText,slotScopeId);cssText=slotted.cssText;cssText=convertShadowDOMSelectors(cssText);if(scopeId){cssText=scopeSelectors(cssText,scopeId,hostScopeId,slotScopeId);}cssText=cssText.replace(/-shadowcsshost-no-combinator/g,\".\".concat(hostScopeId));cssText=cssText.replace(/>\\s*\\*\\s+([^{, ]+)/gm,' $1 ');return{cssText:cssText.trim(),slottedSelectors:slotted.selectors};};var scopeCss=function scopeCss(cssText,scopeId,commentOriginalSelector){var hostScopeId=scopeId+'-h';var slotScopeId=scopeId+'-s';var commentsWithHash=extractCommentsWithHash(cssText);cssText=stripComments(cssText);var orgSelectors=[];if(commentOriginalSelector){var processCommentedSelector=function processCommentedSelector(rule){var placeholder=\"/*!@___\".concat(orgSelectors.length,\"___*/\");var comment=\"/*!@\".concat(rule.selector,\"*/\");orgSelectors.push({placeholder:placeholder,comment:comment});rule.selector=placeholder+rule.selector;return rule;};cssText=processRules(cssText,function(rule){if(rule.selector[0]!=='@'){return processCommentedSelector(rule);}else if(rule.selector.startsWith('@media')||rule.selector.startsWith('@supports')||rule.selector.startsWith('@page')||rule.selector.startsWith('@document')){rule.content=processRules(rule.content,processCommentedSelector);return rule;}return rule;});}var scoped=scopeCssText(cssText,scopeId,hostScopeId,slotScopeId);cssText=[scoped.cssText].concat(_toConsumableArray(commentsWithHash)).join('\\n');if(commentOriginalSelector){orgSelectors.forEach(function(_ref){var placeholder=_ref.placeholder,comment=_ref.comment;cssText=cssText.replace(placeholder,comment);});}scoped.slottedSelectors.forEach(function(slottedSelector){cssText=cssText.replace(slottedSelector.orgSelector,slottedSelector.updatedSelector);});return cssText;};export{scopeCss};"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./node_modules/@stencil/core/internal/client/shadow-css.js"],"names":["_parenSuffix","_cssColonHostRe","RegExp","_cssColonHostContextRe","_cssColonSlottedRe","_polyfillHostNoCombinatorRe","_shadowDOMSelectorsRe","_polyfillHostRe","_colonHostRe","_colonSlottedRe","_colonHostContextRe","_commentRe","_commentWithHashRe","_ruleRe","_curlyRe","processRules","input","ruleCallback","inputWithEscapedBlocks","escapeBlocks","nextBlockIndex","escapedString","replace","selector","arguments","length","undefined","content","suffix","contentPrefix","startsWith","blocks","substring","cssRule","rule","concat","inputParts","split","resultParts","escapedBlocks","bracketCount","currentBlockParts","partIndex","part","push","join","convertColonRule","cssText","regExp","partReplacer","_len","m","Array","_key","parts","r","i","p","trim","_polyfillHost","colonHostPartReplacer","host","colonHostContextPartReplacer","indexOf","selectorNeedsScoping","scopeSelector","makeScopeMatcher","test","applyStrictSelectorScope","hostSelector","res","className","_","_scopeSelectorPart","scopedP","lastIndex","replaceBy","before","colon","after","applySimpleSelectorScope","t","matches","match","safeContent","placeholders","index","keep","pseudo","exp","safeSelector","scopedSelector","startIndex","sep","shouldScope","exec","separator","_part","slice","scopedPart","scopeSelectors","scopeSelectorText","slotSelector","commentOriginalSelector","map","shallowPart","scopeCssText","scopeId","hostScopeId","slotScopeId","slotted","slotClass","selectors","_len2","_key2","compound","slottedSelector","prefixSelector","char","orgSelector","addedSelector","trimRight","updatedSelector","convertColonSlotted","convertColonHostContext","convertColonHost","reduce","result","pattern","convertShadowDOMSelectors","slottedSelectors","scopeCss","commentsWithHash","stripComments","orgSelectors","processCommentedSelector","placeholder","comment","scoped","forEach","_ref"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,4DAiBiDA,EAAa,kDAA4DC,EAAgB,IAAIC,OAAO,kBAAkBF,EAAa,OAAWG,EAAuB,IAAID,OAAO,qBAAyBF,EAAa,OAAWI,EAAmB,IAAIF,OAAO,qBAAqBF,EAAa,OAAwEK,EAA4B,uCAA2CC,EAAsB,CAAC,YAAY,cAAqEC,EAAgB,oBAAwBC,EAAa,WAAeC,EAAgB,eAAmBC,EAAoB,mBAAuBC,EAAW,uBAAiHC,EAAmB,+CAAoKC,EAAQ,wDAA4DC,EAAS,UAAqFC,EAAa,SAAsBC,EAAMC,GAAc,IAAIC,EAAuBC,EAAaH,GAAWI,EAAe,EAAE,OAAOF,EAA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G,YAAYH,EAAgBM,oBAA2B3E","file":"analytics/7-0f173a3d.js","sourcesContent":["import _toConsumableArray from\"@babel/runtime/helpers/esm/toConsumableArray\";/*\n Stencil Client Platform v2.5.2 | MIT Licensed | https://stenciljs.com\n */ /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n *\n * This file is a port of shadowCSS from webcomponents.js to TypeScript.\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts\n */var safeSelector=function safeSelector(selector){var placeholders=[];var index=0;var content;// Replaces attribute selectors with placeholders.\n// The WS in [attr=\"va lue\"] would otherwise be interpreted as a selector separator.\nselector=selector.replace(/(\\[[^\\]]*\\])/g,function(_,keep){var replaceBy=\"__ph-\".concat(index,\"__\");placeholders.push(keep);index++;return replaceBy;});// Replaces the expression in `:nth-child(2n + 1)` with a placeholder.\n// WS and \"+\" would otherwise be interpreted as selector separators.\ncontent=selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g,function(_,pseudo,exp){var replaceBy=\"__ph-\".concat(index,\"__\");placeholders.push(exp);index++;return pseudo+replaceBy;});var ss={content:content,placeholders:placeholders};return ss;};var restoreSafeSelector=function restoreSafeSelector(placeholders,content){return content.replace(/__ph-(\\d+)__/g,function(_,index){return placeholders[+index];});};var _polyfillHost='-shadowcsshost';var _polyfillSlotted='-shadowcssslotted';// note: :host-context pre-processed to -shadowcsshostcontext.\nvar _polyfillHostContext='-shadowcsscontext';var _parenSuffix=')(?:\\\\(('+'(?:\\\\([^)(]*\\\\)|[^)(]*)+?'+')\\\\))?([^,{]*)';var _cssColonHostRe=new RegExp('('+_polyfillHost+_parenSuffix,'gim');var _cssColonHostContextRe=new RegExp('('+_polyfillHostContext+_parenSuffix,'gim');var _cssColonSlottedRe=new RegExp('('+_polyfillSlotted+_parenSuffix,'gim');var _polyfillHostNoCombinator=_polyfillHost+'-no-combinator';var _polyfillHostNoCombinatorRe=/-shadowcsshost-no-combinator([^\\s]*)/;var _shadowDOMSelectorsRe=[/::shadow/g,/::content/g];var _selectorReSuffix='([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$';var _polyfillHostRe=/-shadowcsshost/gim;var _colonHostRe=/:host/gim;var _colonSlottedRe=/::slotted/gim;var _colonHostContextRe=/:host-context/gim;var _commentRe=/\\/\\*\\s*[\\s\\S]*?\\*\\//g;var stripComments=function stripComments(input){return input.replace(_commentRe,'');};var _commentWithHashRe=/\\/\\*\\s*#\\s*source(Mapping)?URL=[\\s\\S]+?\\*\\//g;var extractCommentsWithHash=function extractCommentsWithHash(input){return input.match(_commentWithHashRe)||[];};var _ruleRe=/(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;var _curlyRe=/([{}])/g;var OPEN_CURLY='{';var CLOSE_CURLY='}';var BLOCK_PLACEHOLDER='%BLOCK%';var processRules=function processRules(input,ruleCallback){var inputWithEscapedBlocks=escapeBlocks(input);var nextBlockIndex=0;return inputWithEscapedBlocks.escapedString.replace(_ruleRe,function(){var selector=arguments.length<=2?undefined:arguments[2];var content='';var suffix=arguments.length<=4?undefined:arguments[4];var contentPrefix='';if(suffix&&suffix.startsWith('{'+BLOCK_PLACEHOLDER)){content=inputWithEscapedBlocks.blocks[nextBlockIndex++];suffix=suffix.substring(BLOCK_PLACEHOLDER.length+1);contentPrefix='{';}var cssRule={selector:selector,content:content};var rule=ruleCallback(cssRule);return\"\".concat(arguments.length<=1?undefined:arguments[1]).concat(rule.selector).concat(arguments.length<=3?undefined:arguments[3]).concat(contentPrefix).concat(rule.content).concat(suffix);});};var escapeBlocks=function escapeBlocks(input){var inputParts=input.split(_curlyRe);var resultParts=[];var escapedBlocks=[];var bracketCount=0;var currentBlockParts=[];for(var partIndex=0;partIndex<inputParts.length;partIndex++){var part=inputParts[partIndex];if(part===CLOSE_CURLY){bracketCount--;}if(bracketCount>0){currentBlockParts.push(part);}else{if(currentBlockParts.length>0){escapedBlocks.push(currentBlockParts.join(''));resultParts.push(BLOCK_PLACEHOLDER);currentBlockParts=[];}resultParts.push(part);}if(part===OPEN_CURLY){bracketCount++;}}if(currentBlockParts.length>0){escapedBlocks.push(currentBlockParts.join(''));resultParts.push(BLOCK_PLACEHOLDER);}var strEscapedBlocks={escapedString:resultParts.join(''),blocks:escapedBlocks};return strEscapedBlocks;};var insertPolyfillHostInCssText=function insertPolyfillHostInCssText(selector){selector=selector.replace(_colonHostContextRe,_polyfillHostContext).replace(_colonHostRe,_polyfillHost).replace(_colonSlottedRe,_polyfillSlotted);return selector;};var convertColonRule=function convertColonRule(cssText,regExp,partReplacer){// m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule\nreturn cssText.replace(regExp,function(){for(var _len=arguments.length,m=new Array(_len),_key=0;_key<_len;_key++){m[_key]=arguments[_key];}if(m[2]){var parts=m[2].split(',');var r=[];for(var i=0;i<parts.length;i++){var p=parts[i].trim();if(!p)break;r.push(partReplacer(_polyfillHostNoCombinator,p,m[3]));}return r.join(',');}else{return _polyfillHostNoCombinator+m[3];}});};var colonHostPartReplacer=function colonHostPartReplacer(host,part,suffix){return host+part.replace(_polyfillHost,'')+suffix;};var convertColonHost=function convertColonHost(cssText){return convertColonRule(cssText,_cssColonHostRe,colonHostPartReplacer);};var colonHostContextPartReplacer=function colonHostContextPartReplacer(host,part,suffix){if(part.indexOf(_polyfillHost)>-1){return colonHostPartReplacer(host,part,suffix);}else{return host+part+suffix+', '+part+' '+host+suffix;}};var convertColonSlotted=function convertColonSlotted(cssText,slotScopeId){var slotClass='.'+slotScopeId+' > ';var selectors=[];cssText=cssText.replace(_cssColonSlottedRe,function(){for(var _len2=arguments.length,m=new Array(_len2),_key2=0;_key2<_len2;_key2++){m[_key2]=arguments[_key2];}if(m[2]){var compound=m[2].trim();var suffix=m[3];var slottedSelector=slotClass+compound+suffix;var prefixSelector='';for(var i=m[4]-1;i>=0;i--){var char=m[5][i];if(char==='}'||char===','){break;}prefixSelector=char+prefixSelector;}var orgSelector=prefixSelector+slottedSelector;var addedSelector=\"\".concat(prefixSelector.trimRight()).concat(slottedSelector.trim());if(orgSelector.trim()!==addedSelector.trim()){var updatedSelector=\"\".concat(addedSelector,\", \").concat(orgSelector);selectors.push({orgSelector:orgSelector,updatedSelector:updatedSelector});}return slottedSelector;}else{return _polyfillHostNoCombinator+m[3];}});return{selectors:selectors,cssText:cssText};};var convertColonHostContext=function convertColonHostContext(cssText){return convertColonRule(cssText,_cssColonHostContextRe,colonHostContextPartReplacer);};var convertShadowDOMSelectors=function convertShadowDOMSelectors(cssText){return _shadowDOMSelectorsRe.reduce(function(result,pattern){return result.replace(pattern,' ');},cssText);};var makeScopeMatcher=function makeScopeMatcher(scopeSelector){var lre=/\\[/g;var rre=/\\]/g;scopeSelector=scopeSelector.replace(lre,'\\\\[').replace(rre,'\\\\]');return new RegExp('^('+scopeSelector+')'+_selectorReSuffix,'m');};var selectorNeedsScoping=function selectorNeedsScoping(selector,scopeSelector){var re=makeScopeMatcher(scopeSelector);return!re.test(selector);};var applySimpleSelectorScope=function applySimpleSelectorScope(selector,scopeSelector,hostSelector){// In Android browser, the lastIndex is not reset when the regex is used in String.replace()\n_polyfillHostRe.lastIndex=0;if(_polyfillHostRe.test(selector)){var replaceBy=\".\".concat(hostSelector);return selector.replace(_polyfillHostNoCombinatorRe,function(_,selector){return selector.replace(/([^:]*)(:*)(.*)/,function(_,before,colon,after){return before+replaceBy+colon+after;});}).replace(_polyfillHostRe,replaceBy+' ');}return scopeSelector+' '+selector;};var applyStrictSelectorScope=function applyStrictSelectorScope(selector,scopeSelector,hostSelector){var isRe=/\\[is=([^\\]]*)\\]/g;scopeSelector=scopeSelector.replace(isRe,function(_){return arguments.length<=1?undefined:arguments[1];});var className='.'+scopeSelector;var _scopeSelectorPart=function _scopeSelectorPart(p){var scopedP=p.trim();if(!scopedP){return'';}if(p.indexOf(_polyfillHostNoCombinator)>-1){scopedP=applySimpleSelectorScope(p,scopeSelector,hostSelector);}else{// remove :host since it should be unnecessary\nvar t=p.replace(_polyfillHostRe,'');if(t.length>0){var matches=t.match(/([^:]*)(:*)(.*)/);if(matches){scopedP=matches[1]+className+matches[2]+matches[3];}}}return scopedP;};var safeContent=safeSelector(selector);selector=safeContent.content;var scopedSelector='';var startIndex=0;var res;var sep=/( |>|\\+|~(?!=))\\s*/g;// If a selector appears before :host it should not be shimmed as it\n// matches on ancestor elements and not on elements in the host's shadow\n// `:host-context(div)` is transformed to\n// `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`\n// the `div` is not part of the component in the 2nd selectors and should not be scoped.\n// Historically `component-tag:host` was matching the component so we also want to preserve\n// this behavior to avoid breaking legacy apps (it should not match).\n// The behavior should be:\n// - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)\n// - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a\n// `:host-context(tag)`)\nvar hasHost=selector.indexOf(_polyfillHostNoCombinator)>-1;// Only scope parts after the first `-shadowcsshost-no-combinator` when it is present\nvar shouldScope=!hasHost;while((res=sep.exec(selector))!==null){var separator=res[1];var _part=selector.slice(startIndex,res.index).trim();shouldScope=shouldScope||_part.indexOf(_polyfillHostNoCombinator)>-1;var scopedPart=shouldScope?_scopeSelectorPart(_part):_part;scopedSelector+=\"\".concat(scopedPart,\" \").concat(separator,\" \");startIndex=sep.lastIndex;}var part=selector.substring(startIndex);shouldScope=shouldScope||part.indexOf(_polyfillHostNoCombinator)>-1;scopedSelector+=shouldScope?_scopeSelectorPart(part):part;// replace the placeholders with their original values\nreturn restoreSafeSelector(safeContent.placeholders,scopedSelector);};var scopeSelector=function scopeSelector(selector,scopeSelectorText,hostSelector,slotSelector){return selector.split(',').map(function(shallowPart){if(slotSelector&&shallowPart.indexOf('.'+slotSelector)>-1){return shallowPart.trim();}if(selectorNeedsScoping(shallowPart,scopeSelectorText)){return applyStrictSelectorScope(shallowPart,scopeSelectorText,hostSelector).trim();}else{return shallowPart.trim();}}).join(', ');};var scopeSelectors=function scopeSelectors(cssText,scopeSelectorText,hostSelector,slotSelector,commentOriginalSelector){return processRules(cssText,function(rule){var selector=rule.selector;var content=rule.content;if(rule.selector[0]!=='@'){selector=scopeSelector(rule.selector,scopeSelectorText,hostSelector,slotSelector);}else if(rule.selector.startsWith('@media')||rule.selector.startsWith('@supports')||rule.selector.startsWith('@page')||rule.selector.startsWith('@document')){content=scopeSelectors(rule.content,scopeSelectorText,hostSelector,slotSelector);}var cssRule={selector:selector.replace(/\\s{2,}/g,' ').trim(),content:content};return cssRule;});};var scopeCssText=function scopeCssText(cssText,scopeId,hostScopeId,slotScopeId,commentOriginalSelector){cssText=insertPolyfillHostInCssText(cssText);cssText=convertColonHost(cssText);cssText=convertColonHostContext(cssText);var slotted=convertColonSlotted(cssText,slotScopeId);cssText=slotted.cssText;cssText=convertShadowDOMSelectors(cssText);if(scopeId){cssText=scopeSelectors(cssText,scopeId,hostScopeId,slotScopeId);}cssText=cssText.replace(/-shadowcsshost-no-combinator/g,\".\".concat(hostScopeId));cssText=cssText.replace(/>\\s*\\*\\s+([^{, ]+)/gm,' $1 ');return{cssText:cssText.trim(),slottedSelectors:slotted.selectors};};var scopeCss=function scopeCss(cssText,scopeId,commentOriginalSelector){var hostScopeId=scopeId+'-h';var slotScopeId=scopeId+'-s';var commentsWithHash=extractCommentsWithHash(cssText);cssText=stripComments(cssText);var orgSelectors=[];if(commentOriginalSelector){var processCommentedSelector=function processCommentedSelector(rule){var placeholder=\"/*!@___\".concat(orgSelectors.length,\"___*/\");var comment=\"/*!@\".concat(rule.selector,\"*/\");orgSelectors.push({placeholder:placeholder,comment:comment});rule.selector=placeholder+rule.selector;return rule;};cssText=processRules(cssText,function(rule){if(rule.selector[0]!=='@'){return processCommentedSelector(rule);}else if(rule.selector.startsWith('@media')||rule.selector.startsWith('@supports')||rule.selector.startsWith('@page')||rule.selector.startsWith('@document')){rule.content=processRules(rule.content,processCommentedSelector);return rule;}return rule;});}var scoped=scopeCssText(cssText,scopeId,hostScopeId,slotScopeId);cssText=[scoped.cssText].concat(_toConsumableArray(commentsWithHash)).join('\\n');if(commentOriginalSelector){orgSelectors.forEach(function(_ref){var placeholder=_ref.placeholder,comment=_ref.comment;cssText=cssText.replace(placeholder,comment);});}scoped.slottedSelectors.forEach(function(slottedSelector){cssText=cssText.replace(slottedSelector.orgSelector,slottedSelector.updatedSelector);});return cssText;};export{scopeCss};"],"sourceRoot":""}
dist/analytics/7-c4380ef8.js DELETED
@@ -1,30 +0,0 @@
1
- /*!
2
- *
3
- * Presto Player
4
- *
5
- * @author Presto Made, Inc
6
- * @version 0.1.0
7
- * @link undefined
8
- * @license GPL
9
- *
10
- * Copyright (c) 2021 Presto Made, Inc
11
- *
12
- * This software is released under the GPL License
13
- * https://opensource.org/licenses/GPL
14
- *
15
- * Compiled with the help of https://wpack.io
16
- * A zero setup Webpack Bundler Script for WordPress
17
- */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[7],{55:function(t,e,n){"use strict";n.r(e),n.d(e,"scopeCss",(function(){return y}));var r=n(9),o=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",c=new RegExp("(-shadowcsshost"+o,"gim"),s=new RegExp("(-shadowcsscontext"+o,"gim"),a=new RegExp("(-shadowcssslotted"+o,"gim"),i=/-shadowcsshost-no-combinator([^\s]*)/,u=[/::shadow/g,/::content/g],l=/-shadowcsshost/gim,h=/:host/gim,p=/::slotted/gim,f=/:host-context/gim,d=/\/\*\s*[\s\S]*?\*\//g,g=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,m=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,v=/([{}])/g,w=function(t,e){var n=x(t),r=0;return n.escapedString.replace(m,(function(){var t=arguments.length<=2?void 0:arguments[2],o="",c=arguments.length<=4?void 0:arguments[4],s="";c&&c.startsWith("{%BLOCK%")&&(o=n.blocks[r++],c=c.substring("%BLOCK%".length+1),s="{");var a={selector:t,content:o},i=e(a);return"".concat(arguments.length<=1?void 0:arguments[1]).concat(i.selector).concat(arguments.length<=3?void 0:arguments[3]).concat(s).concat(i.content).concat(c)}))},x=function(t){for(var e=t.split(v),n=[],r=[],o=0,c=[],s=0;s<e.length;s++){var a=e[s];"}"===a&&o--,o>0?c.push(a):(c.length>0&&(r.push(c.join("")),n.push("%BLOCK%"),c=[]),n.push(a)),"{"===a&&o++}return c.length>0&&(r.push(c.join("")),n.push("%BLOCK%")),{escapedString:n.join(""),blocks:r}},_=function(t,e,n){return t.replace(e,(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(e[2]){for(var o=e[2].split(","),c=[],s=0;s<o.length;s++){var a=o[s].trim();if(!a)break;c.push(n("-shadowcsshost-no-combinator",a,e[3]))}return c.join(",")}return"-shadowcsshost-no-combinator"+e[3]}))},b=function(t,e,n){return t+e.replace("-shadowcsshost","")+n},O=function(t,e,n){return e.indexOf("-shadowcsshost")>-1?b(t,e,n):t+e+n+", "+e+" "+t+n},S=function(t,e){return!function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")([>\\s~+[.,{:][\\s\\S]*)?$","m")}(e).test(t)},W=function(t,e,n){for(var r,o="."+(e=e.replace(/\[is=([^\]]*)\]/g,(function(t){return arguments.length<=1?void 0:arguments[1]}))),c=function(t){var r=t.trim();if(!r)return"";if(t.indexOf("-shadowcsshost-no-combinator")>-1)r=function(t,e,n){if(l.lastIndex=0,l.test(t)){var r=".".concat(n);return t.replace(i,(function(t,e){return e.replace(/([^:]*)(:*)(.*)/,(function(t,e,n,o){return e+r+n+o}))})).replace(l,r+" ")}return e+" "+t}(t,e,n);else{var c=t.replace(l,"");if(c.length>0){var s=c.match(/([^:]*)(:*)(.*)/);s&&(r=s[1]+o+s[2]+s[3])}}return r},s=function(t){var e=[],n=0;return{content:(t=t.replace(/(\[[^\]]*\])/g,(function(t,r){var o="__ph-".concat(n,"__");return e.push(r),n++,o}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(function(t,r,o){var c="__ph-".concat(n,"__");return e.push(o),n++,r+c})),placeholders:e}}(t),a="",u=0,h=/( |>|\+|~(?!=))\s*/g,p=!((t=s.content).indexOf("-shadowcsshost-no-combinator")>-1);null!==(r=h.exec(t));){var f=r[1],d=t.slice(u,r.index).trim(),g=(p=p||d.indexOf("-shadowcsshost-no-combinator")>-1)?c(d):d;a+="".concat(g," ").concat(f," "),u=h.lastIndex}var m,v=t.substring(u);return a+=(p=p||v.indexOf("-shadowcsshost-no-combinator")>-1)?c(v):v,m=s.placeholders,a.replace(/__ph-(\d+)__/g,(function(t,e){return m[+e]}))},j=function t(e,n,r,o,c){return w(e,(function(e){var c=e.selector,s=e.content;return"@"!==e.selector[0]?c=function(t,e,n,r){return t.split(",").map((function(t){return r&&t.indexOf("."+r)>-1?t.trim():S(t,e)?W(t,e,n).trim():t.trim()})).join(", ")}(e.selector,n,r,o):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(s=t(e.content,n,r,o)),{selector:c.replace(/\s{2,}/g," ").trim(),content:s}}))},k=function(t,e,n,r,o){var i=function(t,e){var n="."+e+" > ",r=[];return t=t.replace(a,(function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];if(e[2]){for(var c=e[2].trim(),s=e[3],a=n+c+s,i="",u=e[4]-1;u>=0;u--){var l=e[5][u];if("}"===l||","===l)break;i=l+i}var h=i+a,p="".concat(i.trimRight()).concat(a.trim());if(h.trim()!==p.trim()){var f="".concat(p,", ").concat(h);r.push({orgSelector:h,updatedSelector:f})}return a}return"-shadowcsshost-no-combinator"+e[3]})),{selectors:r,cssText:t}}(t=function(t){return _(t,s,O)}(t=function(t){return _(t,c,b)}(t=t.replace(f,"-shadowcsscontext").replace(h,"-shadowcsshost").replace(p,"-shadowcssslotted"))),r);return t=function(t){return u.reduce((function(t,e){return t.replace(e," ")}),t)}(t=i.cssText),e&&(t=j(t,e,n,r)),{cssText:(t=(t=t.replace(/-shadowcsshost-no-combinator/g,".".concat(n))).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:i.selectors}},y=function(t,e,n){var o=e+"-h",c=e+"-s",s=t.match(g)||[];t=function(t){return t.replace(d,"")}(t);var a=[];if(n){var i=function(t){var e="/*!@___".concat(a.length,"___*/"),n="/*!@".concat(t.selector,"*/");return a.push({placeholder:e,comment:n}),t.selector=e+t.selector,t};t=w(t,(function(t){return"@"!==t.selector[0]?i(t):t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document")?(t.content=w(t.content,i),t):t}))}var u=k(t,e,o,c);return t=[u.cssText].concat(Object(r.a)(s)).join("\n"),n&&a.forEach((function(e){var n=e.placeholder,r=e.comment;t=t.replace(n,r)})),u.slottedSelectors.forEach((function(e){t=t.replace(e.orgSelector,e.updatedSelector)})),t};
19
- /**
20
- * @license
21
- * Copyright Google Inc. All Rights Reserved.
22
- *
23
- * Use of this source code is governed by an MIT-style license that can be
24
- * found in the LICENSE file at https://angular.io/license
25
- *
26
- * This file is a port of shadowCSS from webcomponents.js to TypeScript.
27
- * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
28
- * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
29
- */}}]);
30
- //# sourceMappingURL=7-c4380ef8.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dist/analytics/7-c4380ef8.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/node_modules/@stencil/core/internal/client/shadow-css.js"],"names":["_parenSuffix","_cssColonHostRe","RegExp","_cssColonHostContextRe","_cssColonSlottedRe","_polyfillHostNoCombinatorRe","_shadowDOMSelectorsRe","_polyfillHostRe","_colonHostRe","_colonSlottedRe","_colonHostContextRe","_commentRe","_commentWithHashRe","_ruleRe","_curlyRe","processRules","input","ruleCallback","inputWithEscapedBlocks","escapeBlocks","nextBlockIndex","escapedString","replace","selector","arguments","length","undefined","content","suffix","contentPrefix","startsWith","blocks","substring","cssRule","rule","concat","inputParts","split","resultParts","escapedBlocks","bracketCount","currentBlockParts","partIndex","part","push","join","convertColonRule","cssText","regExp","partReplacer","_len","m","Array","_key","parts","r","i","p","trim","_polyfillHost","colonHostPartReplacer","host","colonHostContextPartReplacer","indexOf","selectorNeedsScoping","scopeSelector","makeScopeMatcher","test","applyStrictSelectorScope","hostSelector","res","className","_","_scopeSelectorPart","scopedP","lastIndex","replaceBy","before","colon","after","applySimpleSelectorScope","t","matches","match","safeContent","placeholders","index","keep","pseudo","exp","safeSelector","scopedSelector","startIndex","sep","shouldScope","exec","separator","_part","slice","scopedPart","scopeSelectors","scopeSelectorText","slotSelector","commentOriginalSelector","map","shallowPart","scopeCssText","scopeId","hostScopeId","slotScopeId","slotted","slotClass","selectors","_len2","_key2","compound","slottedSelector","prefixSelector","char","orgSelector","addedSelector","trimRight","updatedSelector","convertColonSlotted","convertColonHostContext","convertColonHost","reduce","result","pattern","convertShadowDOMSelectors","slottedSelectors","scopeCss","commentsWithHash","stripComments","orgSelectors","processCommentedSelector","placeholder","comment","scoped","forEach","_ref"],"mappings":";;;;;;;;;;;;;;;;;mIAAA,2DAiBiDA,EAAa,kDAA4DC,EAAgB,IAAIC,OAAO,kBAAkBF,EAAa,OAAWG,EAAuB,IAAID,OAAO,qBAAyBF,EAAa,OAAWI,EAAmB,IAAIF,OAAO,qBAAqBF,EAAa,OAAwEK,EAA4B,uCAA2CC,EAAsB,CAAC,YAAY,cAAqEC,EAAgB,oBAAwBC,EAAa,WAAeC,EAAg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GAAM,IAAIJ,EAAYI,EAAKJ,YAAYC,EAAQG,EAAKH,QAAQ1F,EAAQA,EAAQzB,QAAQkH,EAAYC,MAAaC,EAAOR,iBAAiBS,SAAQ,SAASvB,GAAiBrE,EAAQA,EAAQzB,QAAQ8F,EAAgBG,YAAYH,EAAgBM,oBAA2B3E","file":"analytics/7-c4380ef8.js","sourcesContent":["import _toConsumableArray from\"@babel/runtime/helpers/esm/toConsumableArray\";/*\n Stencil Client Platform v2.5.2 | MIT Licensed | https://stenciljs.com\n */ /**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n *\n * This file is a port of shadowCSS from webcomponents.js to TypeScript.\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts\n */var safeSelector=function safeSelector(selector){var placeholders=[];var index=0;var content;// Replaces attribute selectors with placeholders.\n// The WS in [attr=\"va lue\"] would otherwise be interpreted as a selector separator.\nselector=selector.replace(/(\\[[^\\]]*\\])/g,function(_,keep){var replaceBy=\"__ph-\".concat(index,\"__\");placeholders.push(keep);index++;return replaceBy;});// Replaces the expression in `:nth-child(2n + 1)` with a placeholder.\n// WS and \"+\" would otherwise be interpreted as selector separators.\ncontent=selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g,function(_,pseudo,exp){var replaceBy=\"__ph-\".concat(index,\"__\");placeholders.push(exp);index++;return pseudo+replaceBy;});var ss={content:content,placeholders:placeholders};return ss;};var restoreSafeSelector=function restoreSafeSelector(placeholders,content){return content.replace(/__ph-(\\d+)__/g,function(_,index){return placeholders[+index];});};var _polyfillHost='-shadowcsshost';var _polyfillSlotted='-shadowcssslotted';// note: :host-context pre-processed to -shadowcsshostcontext.\nvar _polyfillHostContext='-shadowcsscontext';var _parenSuffix=')(?:\\\\(('+'(?:\\\\([^)(]*\\\\)|[^)(]*)+?'+')\\\\))?([^,{]*)';var _cssColonHostRe=new RegExp('('+_polyfillHost+_parenSuffix,'gim');var _cssColonHostContextRe=new RegExp('('+_polyfillHostContext+_parenSuffix,'gim');var _cssColonSlottedRe=new RegExp('('+_polyfillSlotted+_parenSuffix,'gim');var _polyfillHostNoCombinator=_polyfillHost+'-no-combinator';var _polyfillHostNoCombinatorRe=/-shadowcsshost-no-combinator([^\\s]*)/;var _shadowDOMSelectorsRe=[/::shadow/g,/::content/g];var _selectorReSuffix='([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$';var _polyfillHostRe=/-shadowcsshost/gim;var _colonHostRe=/:host/gim;var _colonSlottedRe=/::slotted/gim;var _colonHostContextRe=/:host-context/gim;var _commentRe=/\\/\\*\\s*[\\s\\S]*?\\*\\//g;var stripComments=function stripComments(input){return input.replace(_commentRe,'');};var _commentWithHashRe=/\\/\\*\\s*#\\s*source(Mapping)?URL=[\\s\\S]+?\\*\\//g;var extractCommentsWithHash=function extractCommentsWithHash(input){return input.match(_commentWithHashRe)||[];};var _ruleRe=/(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;var _curlyRe=/([{}])/g;var OPEN_CURLY='{';var CLOSE_CURLY='}';var BLOCK_PLACEHOLDER='%BLOCK%';var processRules=function processRules(input,ruleCallback){var inputWithEscapedBlocks=escapeBlocks(input);var nextBlockIndex=0;return inputWithEscapedBlocks.escapedString.replace(_ruleRe,function(){var selector=arguments.length<=2?undefined:arguments[2];var content='';var suffix=arguments.length<=4?undefined:arguments[4];var contentPrefix='';if(suffix&&suffix.startsWith('{'+BLOCK_PLACEHOLDER)){content=inputWithEscapedBlocks.blocks[nextBlockIndex++];suffix=suffix.substring(BLOCK_PLACEHOLDER.length+1);contentPrefix='{';}var cssRule={selector:selector,content:content};var rule=ruleCallback(cssRule);return\"\".concat(arguments.length<=1?undefined:arguments[1]).concat(rule.selector).concat(arguments.length<=3?undefined:arguments[3]).concat(contentPrefix).concat(rule.content).concat(suffix);});};var escapeBlocks=function escapeBlocks(input){var inputParts=input.split(_curlyRe);var resultParts=[];var escapedBlocks=[];var bracketCount=0;var currentBlockParts=[];for(var partIndex=0;partIndex<inputParts.length;partIndex++){var part=inputParts[partIndex];if(part===CLOSE_CURLY){bracketCount--;}if(bracketCount>0){currentBlockParts.push(part);}else{if(currentBlockParts.length>0){escapedBlocks.push(currentBlockParts.join(''));resultParts.push(BLOCK_PLACEHOLDER);currentBlockParts=[];}resultParts.push(part);}if(part===OPEN_CURLY){bracketCount++;}}if(currentBlockParts.length>0){escapedBlocks.push(currentBlockParts.join(''));resultParts.push(BLOCK_PLACEHOLDER);}var strEscapedBlocks={escapedString:resultParts.join(''),blocks:escapedBlocks};return strEscapedBlocks;};var insertPolyfillHostInCssText=function insertPolyfillHostInCssText(selector){selector=selector.replace(_colonHostContextRe,_polyfillHostContext).replace(_colonHostRe,_polyfillHost).replace(_colonSlottedRe,_polyfillSlotted);return selector;};var convertColonRule=function convertColonRule(cssText,regExp,partReplacer){// m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule\nreturn cssText.replace(regExp,function(){for(var _len=arguments.length,m=new Array(_len),_key=0;_key<_len;_key++){m[_key]=arguments[_key];}if(m[2]){var parts=m[2].split(',');var r=[];for(var i=0;i<parts.length;i++){var p=parts[i].trim();if(!p)break;r.push(partReplacer(_polyfillHostNoCombinator,p,m[3]));}return r.join(',');}else{return _polyfillHostNoCombinator+m[3];}});};var colonHostPartReplacer=function colonHostPartReplacer(host,part,suffix){return host+part.replace(_polyfillHost,'')+suffix;};var convertColonHost=function convertColonHost(cssText){return convertColonRule(cssText,_cssColonHostRe,colonHostPartReplacer);};var colonHostContextPartReplacer=function colonHostContextPartReplacer(host,part,suffix){if(part.indexOf(_polyfillHost)>-1){return colonHostPartReplacer(host,part,suffix);}else{return host+part+suffix+', '+part+' '+host+suffix;}};var convertColonSlotted=function convertColonSlotted(cssText,slotScopeId){var slotClass='.'+slotScopeId+' > ';var selectors=[];cssText=cssText.replace(_cssColonSlottedRe,function(){for(var _len2=arguments.length,m=new Array(_len2),_key2=0;_key2<_len2;_key2++){m[_key2]=arguments[_key2];}if(m[2]){var compound=m[2].trim();var suffix=m[3];var slottedSelector=slotClass+compound+suffix;var prefixSelector='';for(var i=m[4]-1;i>=0;i--){var char=m[5][i];if(char==='}'||char===','){break;}prefixSelector=char+prefixSelector;}var orgSelector=prefixSelector+slottedSelector;var addedSelector=\"\".concat(prefixSelector.trimRight()).concat(slottedSelector.trim());if(orgSelector.trim()!==addedSelector.trim()){var updatedSelector=\"\".concat(addedSelector,\", \").concat(orgSelector);selectors.push({orgSelector:orgSelector,updatedSelector:updatedSelector});}return slottedSelector;}else{return _polyfillHostNoCombinator+m[3];}});return{selectors:selectors,cssText:cssText};};var convertColonHostContext=function convertColonHostContext(cssText){return convertColonRule(cssText,_cssColonHostContextRe,colonHostContextPartReplacer);};var convertShadowDOMSelectors=function convertShadowDOMSelectors(cssText){return _shadowDOMSelectorsRe.reduce(function(result,pattern){return result.replace(pattern,' ');},cssText);};var makeScopeMatcher=function makeScopeMatcher(scopeSelector){var lre=/\\[/g;var rre=/\\]/g;scopeSelector=scopeSelector.replace(lre,'\\\\[').replace(rre,'\\\\]');return new RegExp('^('+scopeSelector+')'+_selectorReSuffix,'m');};var selectorNeedsScoping=function selectorNeedsScoping(selector,scopeSelector){var re=makeScopeMatcher(scopeSelector);return!re.test(selector);};var applySimpleSelectorScope=function applySimpleSelectorScope(selector,scopeSelector,hostSelector){// In Android browser, the lastIndex is not reset when the regex is used in String.replace()\n_polyfillHostRe.lastIndex=0;if(_polyfillHostRe.test(selector)){var replaceBy=\".\".concat(hostSelector);return selector.replace(_polyfillHostNoCombinatorRe,function(_,selector){return selector.replace(/([^:]*)(:*)(.*)/,function(_,before,colon,after){return before+replaceBy+colon+after;});}).replace(_polyfillHostRe,replaceBy+' ');}return scopeSelector+' '+selector;};var applyStrictSelectorScope=function applyStrictSelectorScope(selector,scopeSelector,hostSelector){var isRe=/\\[is=([^\\]]*)\\]/g;scopeSelector=scopeSelector.replace(isRe,function(_){return arguments.length<=1?undefined:arguments[1];});var className='.'+scopeSelector;var _scopeSelectorPart=function _scopeSelectorPart(p){var scopedP=p.trim();if(!scopedP){return'';}if(p.indexOf(_polyfillHostNoCombinator)>-1){scopedP=applySimpleSelectorScope(p,scopeSelector,hostSelector);}else{// remove :host since it should be unnecessary\nvar t=p.replace(_polyfillHostRe,'');if(t.length>0){var matches=t.match(/([^:]*)(:*)(.*)/);if(matches){scopedP=matches[1]+className+matches[2]+matches[3];}}}return scopedP;};var safeContent=safeSelector(selector);selector=safeContent.content;var scopedSelector='';var startIndex=0;var res;var sep=/( |>|\\+|~(?!=))\\s*/g;// If a selector appears before :host it should not be shimmed as it\n// matches on ancestor elements and not on elements in the host's shadow\n// `:host-context(div)` is transformed to\n// `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`\n// the `div` is not part of the component in the 2nd selectors and should not be scoped.\n// Historically `component-tag:host` was matching the component so we also want to preserve\n// this behavior to avoid breaking legacy apps (it should not match).\n// The behavior should be:\n// - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)\n// - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a\n// `:host-context(tag)`)\nvar hasHost=selector.indexOf(_polyfillHostNoCombinator)>-1;// Only scope parts after the first `-shadowcsshost-no-combinator` when it is present\nvar shouldScope=!hasHost;while((res=sep.exec(selector))!==null){var separator=res[1];var _part=selector.slice(startIndex,res.index).trim();shouldScope=shouldScope||_part.indexOf(_polyfillHostNoCombinator)>-1;var scopedPart=shouldScope?_scopeSelectorPart(_part):_part;scopedSelector+=\"\".concat(scopedPart,\" \").concat(separator,\" \");startIndex=sep.lastIndex;}var part=selector.substring(startIndex);shouldScope=shouldScope||part.indexOf(_polyfillHostNoCombinator)>-1;scopedSelector+=shouldScope?_scopeSelectorPart(part):part;// replace the placeholders with their original values\nreturn restoreSafeSelector(safeContent.placeholders,scopedSelector);};var scopeSelector=function scopeSelector(selector,scopeSelectorText,hostSelector,slotSelector){return selector.split(',').map(function(shallowPart){if(slotSelector&&shallowPart.indexOf('.'+slotSelector)>-1){return shallowPart.trim();}if(selectorNeedsScoping(shallowPart,scopeSelectorText)){return applyStrictSelectorScope(shallowPart,scopeSelectorText,hostSelector).trim();}else{return shallowPart.trim();}}).join(', ');};var scopeSelectors=function scopeSelectors(cssText,scopeSelectorText,hostSelector,slotSelector,commentOriginalSelector){return processRules(cssText,function(rule){var selector=rule.selector;var content=rule.content;if(rule.selector[0]!=='@'){selector=scopeSelector(rule.selector,scopeSelectorText,hostSelector,slotSelector);}else if(rule.selector.startsWith('@media')||rule.selector.startsWith('@supports')||rule.selector.startsWith('@page')||rule.selector.startsWith('@document')){content=scopeSelectors(rule.content,scopeSelectorText,hostSelector,slotSelector);}var cssRule={selector:selector.replace(/\\s{2,}/g,' ').trim(),content:content};return cssRule;});};var scopeCssText=function scopeCssText(cssText,scopeId,hostScopeId,slotScopeId,commentOriginalSelector){cssText=insertPolyfillHostInCssText(cssText);cssText=convertColonHost(cssText);cssText=convertColonHostContext(cssText);var slotted=convertColonSlotted(cssText,slotScopeId);cssText=slotted.cssText;cssText=convertShadowDOMSelectors(cssText);if(scopeId){cssText=scopeSelectors(cssText,scopeId,hostScopeId,slotScopeId);}cssText=cssText.replace(/-shadowcsshost-no-combinator/g,\".\".concat(hostScopeId));cssText=cssText.replace(/>\\s*\\*\\s+([^{, ]+)/gm,' $1 ');return{cssText:cssText.trim(),slottedSelectors:slotted.selectors};};var scopeCss=function scopeCss(cssText,scopeId,commentOriginalSelector){var hostScopeId=scopeId+'-h';var slotScopeId=scopeId+'-s';var commentsWithHash=extractCommentsWithHash(cssText);cssText=stripComments(cssText);var orgSelectors=[];if(commentOriginalSelector){var processCommentedSelector=function processCommentedSelector(rule){var placeholder=\"/*!@___\".concat(orgSelectors.length,\"___*/\");var comment=\"/*!@\".concat(rule.selector,\"*/\");orgSelectors.push({placeholder:placeholder,comment:comment});rule.selector=placeholder+rule.selector;return rule;};cssText=processRules(cssText,function(rule){if(rule.selector[0]!=='@'){return processCommentedSelector(rule);}else if(rule.selector.startsWith('@media')||rule.selector.startsWith('@supports')||rule.selector.startsWith('@page')||rule.selector.startsWith('@document')){rule.content=processRules(rule.content,processCommentedSelector);return rule;}return rule;});}var scoped=scopeCssText(cssText,scopeId,hostScopeId,slotScopeId);cssText=[scoped.cssText].concat(_toConsumableArray(commentsWithHash)).join('\\n');if(commentOriginalSelector){orgSelectors.forEach(function(_ref){var placeholder=_ref.placeholder,comment=_ref.comment;cssText=cssText.replace(placeholder,comment);});}scoped.slottedSelectors.forEach(function(slottedSelector){cssText=cssText.replace(slottedSelector.orgSelector,slottedSelector.updatedSelector);});return cssText;};export{scopeCss};"],"sourceRoot":""}
 
dist/analytics/{admin-6b67906f.js → admin-103fe944.js} RENAMED
@@ -15,5 +15,5 @@
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[1],{31:function(e,t,a){a(32),e.exports=a(44)},34:function(e,t){function a(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}a.keys=function(){return[]},a.resolve=a,e.exports=a,a.id=34},44:function(e,t,a){"use strict";a.r(t);var r=a(23),n=a(1),c=a(6),l=a(7),o=a(5),i=a(8),s=a(14),p=a(11),d=a(4),u=a(27),m=a.n(u);function f(e){return{path:e.pathname,hash:e.hash,query:m.a.parse(e.search)}}var h=a(30),b=Object(h.a)(),y=wp.element.createContext({route:f(b.location)}),v=a(16),w=wp.element.useContext,E="";function g(e){var t=e.path,a=e.onRoute,r=e.children,n=w(y).route,c=Object(v.a)("".concat(t))("".concat(n.hash.substr(1)));return c?(a&&(E!==c.path&&a(),E=c.path),React.createElement("div",null,wp.element.cloneElement(r,{route:c}))):null}var R=a(21),O=a.n(R);wp.element.useContext;function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=Object(p.a)(e);if(t){var n=Object(p.a)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Object(s.a)(this,a)}}var x=function(e){Object(i.a)(a,e);var t=j(a);function a(e){var r;Object(c.a)(this,a),r=t.call(this,e),Object(d.a)(Object(o.a)(r),"handleRouteChange",(function(e){var t=f(null==e?void 0:e.location);r.setState({route:t})})),r.routes=Object.keys(e.routes).map((function(t){return e.routes[t].path})),r.unlisten=b.listen(r.handleRouteChange);var n=f(b.location);return r.state={route:n,defaultRoute:null!=e&&e.defaultRoute?"#".concat(null==e?void 0:e.defaultRoute):"#/"},r}return Object(l.a)(a,[{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var e=this.props,t=e.children,a=(e.NotFound,this.state),r=a.route,n=a.defaultRoute;if(!r.hash)return b.push(n),React.createElement("div",null);var c=!1;(this.routes||[]).forEach((function(e){var t=Object(v.a)(r.hash.substr(1))("".concat(r.hash.substr(1)));t&&(c={name:e,data:t})}));var l={route:r,matched:c},o=!c;return React.createElement(y.Provider,{value:l},o?React.createElement("div",null,"Not found"):t)}}]),a}(wp.element.Component),_=function(e){var t=e.width,a=e.height;return React.createElement("svg",{id:"e8f68bdd-4984-4f2e-95b7-7fc8ec281257","data-name":"Layer 1",width:t,height:a,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 918.14 765.54"},React.createElement("defs",null,React.createElement("linearGradient",{id:"27aa7b70-b106-4a00-be67-693c8380e41d",x1:"397.74",y1:"717.25",x2:"397.74",y2:"86.11",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:"0","stop-color":"gray","stop-opacity":"0.25"}),React.createElement("stop",{offset:"0.54","stop-color":"gray","stop-opacity":"0.12"}),React.createElement("stop",{offset:"1","stop-color":"gray","stop-opacity":"0.1"})),React.createElement("linearGradient",{id:"46a816da-c484-41ec-8a6f-fbf14454d910",x1:"288.88",y1:"378.44",x2:"288.88",y2:"209.65",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"32b634d8-28f1-48d9-a868-f602a2cad942",x1:"288.88",y1:"328.29",x2:"288.88",y2:"223.1",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba","data-name":"<Rectangle>",x:"354.51",y:"291.55",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"38f1cb81-8fac-4205-a0ff-a33ac00d354c",x1:"288.88",y1:"594.94",x2:"288.88",y2:"426.14",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"6fc01aaf-135e-403e-a209-43b2a4fe59f1",x1:"288.88",y1:"544.79",x2:"288.88",y2:"439.6",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"79ce363a-d134-40e4-9f82-b96d04a36978",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"5b44e697-61fe-43bd-9a58-5f3e41301748","data-name":"<Rectangle>",x:"354.51",y:"508.05",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"54803c44-522d-4b9e-9a34-f1f7b43e8483",x1:"671.57",y1:"760.34",x2:"671.57",y2:"129.2",gradientTransform:"translate(1109.43 -194.1) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"089a6a47-adaa-499b-aefb-cd6464b62fb8",x1:"670.96",y1:"553.63",x2:"670.96",y2:"387.28",gradientTransform:"translate(1129.51 -168.41) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"fd8d88e0-7826-450d-9e0b-001d1be709c2",x1:"637.66",y1:"754.12",x2:"637.66",y2:"601.05",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"8d1793c5-b76e-44e2-a52e-569460402331",x1:"778.37",y1:"673.86",x2:"778.37",y2:"569.13",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"4745700d-8097-45ff-9f71-625443fc4ad8",x1:"778.37",y1:"774.41",x2:"778.37",y2:"713.66",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"})),React.createElement("title",null,"secure data"),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"162.9",y:"86.11",width:"469.69",height:"631.14",fill:"url(#27aa7b70-b106-4a00-be67-693c8380e41d)"})),React.createElement("rect",{x:"169.02",y:"94.67",width:"455.01",height:"609.12",fill:"#f2f2f2"}),React.createElement("rect",{x:"204.49",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"204.49",y:"142.37",width:"156.56",height:"4.89",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"384.29",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"259.8",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"273.25",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"286.7",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"476.29",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"489.75",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"503.2",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"209.65",width:"166.35",height:"168.79",fill:"url(#46a816da-c484-41ec-8a6f-fbf14454d910)"})),React.createElement("rect",{x:"206.76",y:"213.32",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"223.1",width:"152.7",height:"105.19",fill:"url(#32b634d8-28f1-48d9-a868-f602a2cad942)"})),React.createElement("rect",{id:"689f37f3-cc41-448d-b172-63ec123bc985","data-name":"<Rectangle>",x:"213.58",y:"224.32",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)"},React.createElement("polygon",{points:"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18",fill:"#6c63ff",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"239",r:"11.01",fill:"#6c63ff",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"426.14",width:"166.35",height:"168.79",fill:"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)"})),React.createElement("rect",{x:"206.76",y:"429.81",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"439.6",width:"152.7",height:"105.19",fill:"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)"})),React.createElement("rect",{id:"b429ac3a-f8a8-4171-bcce-5b6c002c0714","data-name":"<Rectangle>",x:"213.58",y:"440.82",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#79ce363a-d134-40e4-9f82-b96d04a36978)"},React.createElement("polygon",{points:"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67",fill:"#bdbdbd",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"455.5",r:"11.01",fill:"#bdbdbd",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"349.09",y:"242.63",width:"631.14",height:"469.69",transform:"translate(-74.16 969.06) rotate(-78.76)",fill:"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)"})),React.createElement("rect",{x:"359.37",y:"247.33",width:"609.12",height:"455.01",transform:"translate(-72.16 966.22) rotate(-78.76)",fill:"#fff"}),React.createElement("rect",{x:"523.5",y:"197.22",width:"322.91",height:"4.89",transform:"translate(-88.86 -196.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"433.36",y:"650.7",width:"322.91",height:"4.89",transform:"translate(-2.18 -170.66) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"428.58",y:"671.14",width:"249.52",height:"4.89",transform:"translate(1.01 -162.18) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"424.6",y:"683.47",width:"92.96",height:"4.89",transform:"translate(1.84 -145.91) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"519.57",y:"209.08",width:"161.45",height:"4.89",transform:"translate(-88.17 -180.2) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"512.84",y:"249.31",width:"291.11",height:"4.89",transform:"translate(-79.21 -190.76) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"509.47",y:"255.44",width:"70.94",height:"4.89",transform:"translate(-80.19 -168.52) rotate(11.24)",fill:"#3ad29f",opacity:"0.7"}),React.createElement("rect",{x:"501.56",y:"307.59",width:"322.91",height:"4.89",transform:"translate(-67.76 -190.54) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"575.87",y:"357.6",width:"166.35",height:"289.88",transform:"translate(-103.27 983.74) rotate(-78.76)",fill:"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)"})),React.createElement("rect",{x:"516.06",y:"420.61",width:"286.22",height:"162.68",transform:"translate(-30.42 -186.11) rotate(11.24)",fill:"#fff"}),React.createElement("rect",{x:"496.08",y:"335.18",width:"322.91",height:"4.89",transform:"translate(-62.49 -188.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"547.86",y:"424.02",width:"35.47",height:"118.64",transform:"translate(-35.84 -168.22) rotate(11.24)",fill:"#6c63ff"}),React.createElement("rect",{x:"606.43",y:"475.19",width:"35.47",height:"79.5",transform:"translate(-28.56 -179.03) rotate(11.24)",fill:"#3ad29f"}),React.createElement("rect",{x:"665.23",y:"523.93",width:"35.47",height:"42.81",transform:"translate(-21.5 -189.92) rotate(11.24)",fill:"#f55f44"}),React.createElement("rect",{x:"731.91",y:"492.72",width:"35.47",height:"86.84",transform:"translate(-22.02 -203.09) rotate(11.24)",fill:"#fdd835"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"128.65",y:"645.09",width:"3.67",height:"20.79",fill:"#47e6b1"}),React.createElement("rect",{x:"269.58",y:"712.31",width:"3.67",height:"20.79",transform:"translate(853.2 384.07) rotate(90)",fill:"#47e6b1"})),React.createElement("path",{d:"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z",transform:"translate(-140.93 -67.23)",fill:"#4d8af0",opacity:"0.5"}),React.createElement("path",{d:"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("path",{d:"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("circle",{cx:"337.81",cy:"28.62",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"7.34",cy:"317.46",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"863.76",cy:"120.36",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"822.17",cy:"339.3",r:"7.34",fill:"#4d8af0",opacity:"0.5"}),React.createElement("circle",{cx:"37.68",cy:"145.22",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"853.29",cy:"647.34",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"910.8",cy:"430.97",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("rect",{x:"544.42",y:"601.05",width:"186.48",height:"153.07",fill:"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)"}),React.createElement("path",{d:"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z",transform:"translate(-140.93 -67.23)",fill:"url(#8d1793c5-b76e-44e2-a52e-569460402331)"}),React.createElement("path",{d:"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z",transform:"translate(-140.93 -67.23)",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#6c63ff"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"631.77",width:"182.24",height:"90.07",fill:"#6c63ff"}),React.createElement("path",{d:"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z",transform:"translate(-140.93 -67.23)",fill:"url(#4745700d-8097-45ff-9f71-625443fc4ad8)"}),React.createElement("path",{d:"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z",transform:"translate(-140.93 -67.23)",opacity:"0.2"}))},D=wp.i18n.__,P=wp.components,k=P.Flex,N=P.FlexItem,S=P.FlexBlock,F=function(){return React.createElement(k,{style:{padding:"30px",background:"#fff"}},React.createElement(N,null,React.createElement(_,{width:"250px"})),React.createElement(S,{style:{marginLeft:"20px"}},React.createElement("h1",null,D("Get detailed video insights.","presto-player")),React.createElement("p",null,D("Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.","presto-player")),React.createElement("a",{href:"https://prestoplayer.com",target:"_blank",className:"button button-primary"},D("Learn More","presto-player"))))},C=a(3),T=a(0),M=a.n(T);function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?I(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):I(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}wp.i18n.__;var V=wp.apiFetch,A=wp.element.useState,H=wp.compose.createHigherOrderComponent,G=function(){return H((function(e){return function(t){var a=A(!1),r=Object(n.a)(a,2),c=r[0],l=r[1],o=A(1),i=Object(n.a)(o,2),s=i[0],p=i[1],d=A(0),u=Object(n.a)(d,2),m=u[0],f=u[1],h=A(0),b=Object(n.a)(h,2),y=b[0],v=b[1],w=A([]),E=Object(n.a)(w,2),g=E[0],R=E[1],O=A(""),j=Object(n.a)(O,2),x=j[0],_=j[1],D=function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,V({path:wp.url.addQueryArgs(a,B({page:s,per_page:5},n)),parse:!1}).then((function(e){var t=e.headers?parseInt(e.headers.get("X-WP-Total")):0,a=e.headers?parseInt(e.headers.get("X-WP-TotalPages")):0;return f(t),v(a),e.json()}));case 5:c=e.sent,R(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&_(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:D,page:s,setPage:p,total:m,setTotal:f,totalPages:y,setTotalPages:v,data:g,setData:R,error:x,setError:_},t))}}),"withDataList")},U=wp.i18n,L=U.__,W=U.sprintf,Z=function(e){var t=(new Date).getTimezoneOffset();return new Date(e.getTime()-60*t*1e3).toISOString().split("T")[0]+"T00:00:00.000Z"},Y=wp.components,z=Y.Spinner,Q=Y.Flex,X=Y.FlexItem,q=function(e){var t=e.height,a=void 0===t?100:t;return React.createElement(Q,{style:{height:"".concat(a,"px")},align:"center",justify:"center"},React.createElement(X,null,React.createElement(z,null)))},J=wp.i18n.__,K=wp.components,$=K.Card,ee=K.CardBody,te=K.Flex,ae=K.FlexBlock,re=K.Button,ne=K.ButtonGroup,ce=wp.element,le=ce.useState,oe=ce.useEffect,ie=function(e){var t=e.page,a=e.setPage,r=e.perPage,c=e.total,l=e.totalPages,o=le(!1),i=Object(n.a)(o,2),s=i[0],p=i[1],d=le(!1),u=Object(n.a)(d,2),m=u[0],f=u[1],h=le(0),b=Object(n.a)(h,2),y=b[0],v=b[1],w=le(0),E=Object(n.a)(w,2),g=E[0],R=E[1];oe((function(){v(Math.min(r*t,c)),R(r*(t-1)+1)}),[r,t,c]);return oe((function(){p(t-1>0),f(l>=t+1)}),[t,l]),React.createElement($,{size:"large",className:"presto-card pagination"},React.createElement(ee,{className:"presto-flow"},React.createElement(te,null,React.createElement(ae,null,sprintf(J("Showing %1s to %2s of %3s","presto-player"),g,y,c)),React.createElement(ae,null,React.createElement(te,{justify:"flex-end"},React.createElement(ne,null,React.createElement(re,{isSecondary:!0,disabled:!s,onClick:function(){a(Math.max(t-1,0))}},J("Previous","presto-player")),React.createElement(re,{isSecondary:!0,disabled:!m,onClick:function(){a(Math.min(l,t+1))}},J("Next","presto-player"))))))))},se=wp.i18n.__,pe=wp.element,de=(pe.useRef,pe.useEffect,pe.useState,wp.components),ue=de.Card,me=de.CardBody,fe=(de.Flex,de.FlexBlock,de.Button,de.ButtonGroup,function(e){var t=e.columns,a=e.data,r=e.onRowClick,n=e.title;return a.length?React.createElement(ue,{size:"large",className:"presto-card table-card"},React.createElement(me,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("table",{role:"table",className:O()("presto-table",{"is-clickable":r})},React.createElement("thead",{role:"rowgroup"},React.createElement("tr",{role:"row"},t&&t.map((function(e){return React.createElement("th",{key:e.key,role:"columnheader"},e.label)})))),React.createElement("tbody",{role:"rowgroup"},a.map((function(e,a){return React.createElement("tr",{role:"row",key:"row-".concat(a),onClick:function(){return r&&r(e)}},t.map((function(t,r){return React.createElement("td",{role:"cell","data-title":t.label,key:"row-".concat(a,"-").concat(r),"aria-label":t.label},t.render?t.render(e):React.createElement("div",null,t.value(e)))})))})))))):React.createElement(ue,{size:"large",className:"presto-card table-card"},React.createElement(me,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("div",{style:{opacity:.65}},se("No data available.","presto-player"))))}),he=wp.i18n.__,be=wp.element,ye=(be.useEffect,be.useState,wp.components),ve=ye.Card,we=ye.CardBody,Ee=function(e){var t=e.perPage,a=void 0===t?10:t,r=e.title,n=e.page,c=e.setPage,l=e.loading,o=e.total,i=e.totalPages,s=e.columns,p=e.data,d=e.onSelect;return l?React.createElement(ve,null,React.createElement(q,null)):null!=p&&p.length?React.createElement("div",{className:"datatable"},React.createElement(fe,{data:p,columns:s,perPage:a,onRowClick:d,title:r}),!!o&&React.createElement(ie,{page:n,setPage:c,perPage:a,total:o,totalPages:i})):React.createElement(ve,{size:"large",className:"presto-card"},React.createElement(we,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},r),React.createElement("div",{style:{opacity:.65}},he("No data available.","presto-player"))))};function ge(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Re(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ge(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Oe=wp.i18n.__,je=wp.element.useEffect,xe=(0,wp.compose.compose)([G()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate;je((function(){i({endpoint:"/presto-player/v1/analytics/top-users",params:Re(Re({per_page:5},s?{start:Z(s)}:{}),p?{end:Z(p)}:{})})}),[a,s,p]);var d=[{key:"name",label:Oe("Name","presto-player"),value:function(e){var t;return null==e||null===(t=e.user)||void 0===t?void 0:t.name}},{key:"total_view",label:Oe("Total View","presto-player"),value:function(e){var t,a;return null==e||null===(t=e.stats)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.data}},{key:"avg_view_time",label:Oe("Avg View Time","presto-player"),render:function(e){var t,a;return React.createElement("div",{className:"presto-badge"},null==e||null===(t=e.stats)||void 0===t||null===(a=t[1])||void 0===a?void 0:a.data)}}];return o?{error:o}:React.createElement(Ee,{title:Oe("Top Users","presto-player"),page:a,perPage:5,setPage:r,loading:t,total:n,totalPages:c,columns:d,data:l,onSelect:function(e){var t,a;return a=null==e||null===(t=e.user)||void 0===t?void 0:t.id,void b.push("#/user/".concat(a))}})}));function _e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function De(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_e(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Pe=wp.i18n.__,ke=wp.element.useEffect,Ne=(0,wp.compose.compose)([G()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate,d=e.userId;ke((function(){i({endpoint:"/presto-player/v1/analytics/top-videos",params:De(De(De({per_page:10},s?{start:Z(s)}:{}),p?{end:Z(p)}:{}),d?{user_id:d}:{})})}),[a,s,p]);var u=[{key:"name",label:Pe("Name","presto-player"),render:function(e){return React.createElement("h3",{style:{marginBottom:0,wordBreak:"break-all"}},e.video.title?e.video.title:Pe("Untitled","presto-player"))}},{key:"total_view",label:Pe("Total View","presto-player"),value:function(e){return e.stats[0].data}},{key:"avg_view_time",label:Pe("Avg View Time","presto-player"),render:function(e){return React.createElement("div",{className:"presto-badge"},e.stats[1].data)}},{key:"view_more",label:"",render:function(e){return React.createElement("span",{style:{color:"var(--wp-admin-theme-color, #007cba)"}},Pe("View Details","presto-player")," →")}}];return o?{error:o}:React.createElement(Ee,{title:Pe("Top Videos","presto-player"),perPage:10,page:a,setPage:r,loading:t,total:n,totalPages:c,columns:u,data:l,onSelect:function(e){var t,a;a=null==e||null===(t=e.video)||void 0===t?void 0:t.id,b.push("#/video/".concat(a))}})})),Se=wp.apiFetch;Se.use(Se.createNonceMiddleware(prestoPlayer.nonce)),Se.use(Se.createRootURLMiddleware(prestoPlayer.root+prestoPlayer.prestoVersionString));var Fe=Se,Ce=a(17),Te=a.n(Ce);function Me(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Ie(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Me(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Be=wp.i18n,Ve=Be.__,Ae=Be.sprintf,He=wp.components,Ge=(He.Card,He.CardBody),Ue=wp.element,Le=Ue.useState,We=Ue.useEffect,Ze=(Ue.useRef,function(e){var t=Le(!0),a=Object(n.a)(t,2),r=a[0],c=a[1],l=Le(0),o=Object(n.a)(l,2),i=o[0],s=o[1],p=e.startDate,d=e.endDate,u=Le([{name:"Views",data:[]}]),m=Object(n.a)(u,2),f=m[0],h=m[1],b={options:{chart:{toolbar:{show:!1}},yaxis:{min:0,labels:{formatter:function(e){return e<1?0:Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k":Math.sign(e)*Math.abs(e).toFixed(0)}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(d).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};We((function(){y()}),[e]);var y=function(){c(!0),Fe({path:"/presto-player/v1/analytics/views?"+jQuery.param(Ie(Ie({},p?{start:Z(p)}:{}),d?{end:Z(d)}:{})),parse:!1}).then(function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t.headers&&t.headers.get("X-WP-Total")),e.next=3,t.json();case 3:a=e.sent,r=[],a.length&&a.forEach((function(e){r.push({x:e.date_time,y:e.total})})),h([{name:"Views",data:r}]);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return r?React.createElement(Ge,null,React.createElement(q,null)):React.createElement(Ge,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Ae(Ve("%d Unique Views","presto-player"),i)),React.createElement(Te.a,{options:b.options,series:f,type:"area",height:280}))}),Ye=wp.i18n,ze=Ye.__,Qe=Ye.sprintf,Xe=wp.components,qe=(Xe.Card,Xe.CardBody),Je=wp.element,Ke=Je.useState,$e=Je.useEffect,et=(Je.useRef,function(e){var t=Ke(!0),a=Object(n.a)(t,2),r=a[0],c=a[1],l=Ke(0),o=Object(n.a)(l,2),i=o[0],s=o[1],p=e.startDate,d=e.endDate,u=Ke([{name:"Views",data:[]}]),m=Object(n.a)(u,2),f=m[0],h=m[1],b={options:{chart:{toolbar:{show:!1}},yaxis:{labels:{formatter:function(e){return Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k min":(Math.sign(e)*Math.abs(e)).toFixed(1)+"min"}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(d).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};$e((function(){R()}),[e]);var y,v,w,E,g,R=function(){c(!0),Fe({path:"/presto-player/v1/analytics/watch-time?"+jQuery.param({start:Z(p),end:Z(d)}),parse:!1}).then(function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:a=e.sent,r=a.data,n=a.average,s(parseFloat(n)),c=[],r.length&&r.forEach((function(e){c.push({x:e.date_time,y:(e.total/60).toFixed(2)})})),h([{name:"Watch Time",data:c}]);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return r?React.createElement(qe,null,React.createElement(q,null)):React.createElement(qe,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Qe(ze("%s average watch time","presto-player"),(y=i,v=Math.floor(y/60/60),w=Math.floor(y/60)-60*v,E=y%60,g="",v&&(g+=W(L("%d hours","presto-player"),v)+", "),w&&(g+=W(L("%d minutes","presto-player"),w)+" "),(v||w)&&E&&(g+=L("and","presto-player")+" "),g+=W(L("%d seconds","presto-player"),E)))),React.createElement(Te.a,{options:b.options,series:f,type:"area",height:280}))}),tt=wp.i18n.__,at=wp.components,rt=at.Panel,nt=at.TabPanel,ct=function(e){var t=e.startDate,a=e.endDate;return React.createElement(rt,null,React.createElement(nt,{className:"presto-module-tabs",onSelect:function(){},tabs:[{name:"views",title:tt("Views","presto-player")},{name:"watch",title:tt("Watch Time","presto-player")}]},(function(e){switch(e.name){case"views":return React.createElement(Ze,{startDate:t,endDate:a});case"watch":return React.createElement(et,{startDate:t,endDate:a});default:return React.createElement(React.Fragment,null,"Not Found")}})))},lt=a(28),ot=a.n(lt),it=(a(40),wp.i18n.__),st=wp.element,pt=st.useRef,dt=st.useEffect,ut=st.useState,mt=function(e){var t=e.startDate,a=e.setStartDate,r=e.endDate,c=e.setEndDate,l=pt(),o=ut(25),i=Object(n.a)(o,2),s=i[0],p=i[1];return dt((function(){new ot.a({element:null==l?void 0:l.current,singleMode:!1,format:"MMMM D YYYY",autoApply:!1,plugins:["ranges"],maxDate:new Date,numberOfMonths:2,buttonText:{apply:it("Apply","presto-player"),cancel:it("Cancel","presto-player")},dropdowns:{minYear:1990,maxYear:null,months:!0,years:!0},setup:function(e){e.setDateRange(t,r),e.on("button:apply",(function(e,t){a(e.dateInstance),c(t.dateInstance),p(l.current.value.length)}))}})}),[l]),React.createElement("div",{className:"component-base-control"},React.createElement("div",{className:"components-base-control__field"},React.createElement("input",{className:"components-text-control__input presto-settings__date-select",ref:l,size:s})))},ft=wp.i18n.__,ht=wp.components,bt=ht.Flex,yt=ht.FlexBlock,vt=ht.FlexItem,wt=(wp.element.useState,function(e){var t=e.startDate,a=e.endDate,r=e.setStartDate,n=e.setEndDate;return React.createElement(React.Fragment,null,React.createElement(bt,null,React.createElement(yt,null,React.createElement("h1",null,ft("Analytics","presto-player"))),React.createElement(vt,null,React.createElement(mt,{startDate:t,setStartDate:r,endDate:a,setEndDate:n}))),React.createElement("div",{className:"presto-flow"},React.createElement("div",{className:"presto-dashboard"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ct,{startDate:t,endDate:a})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(xe,{startDate:t,endDate:a}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(Ne,{startDate:t,endDate:a}))))))}),Et=a(22),gt=wp.components,Rt=gt.Card,Ot=gt.CardBody,jt=function(e){var t=e.loading,a=e.title,r=e.value,n=e.label;return t?React.createElement(Rt,null,React.createElement(Ot,null,React.createElement(q,null))):React.createElement(Rt,{className:"presto-player__stat-card"},React.createElement(Ot,null,React.createElement("div",{className:"presto-subtitle"},a),React.createElement("h1",null,r),React.createElement("div",null,n)))};function xt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _t(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):xt(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Dt,Pt,kt,Nt=wp.apiFetch,St=wp.element.useState,Ft=wp.compose.createHigherOrderComponent,Ct=function(){return Ft((function(e){return function(t){var a=St(!1),r=Object(n.a)(a,2),c=r[0],l=r[1],o=St([]),i=Object(n.a)(o,2),s=i[0],p=i[1],d=St(""),u=Object(n.a)(d,2),m=u[0],f=u[1],h=function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,Nt({path:wp.url.addQueryArgs(a,_t({},n))});case 5:c=e.sent,p(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&f(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:h,stat:s,setStat:p,error:m,setError:f},t))}}),"withStat")},Tt=wp.i18n.__,Mt=wp.compose.compose,It=wp.element.useEffect,Bt=Mt([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return It((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(null==n?void 0:n.view),title:Tt("Total Views","presto-player")})})),Vt=wp.i18n.__,At=wp.compose.compose,Ht=wp.element.useEffect,Gt=At([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Ht((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:Vt("Average Watch Time","presto-player"),label:Vt("seconds","presto-player")})})),Ut=wp.i18n.__,Lt=wp.compose.compose,Wt=wp.element.useEffect,Zt=Lt([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Wt((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:Ut("Total Watch Time","presto-player"),label:Ut("seconds","presto-player")})})),Yt=a(2),zt=wp.i18n.__,Qt=wp.components,Xt=Qt.Flex,qt=Qt.FlexBlock,Jt=Qt.FlexItem,Kt=Qt.Spinner,$t=Qt.Button,ea=wp.element,ta=ea.useEffect,aa=ea.useState,ra=wp.apiFetch,na=function(e){var t,a,r,c,l=e.route,o=e.startDate,i=e.endDate,s=e.setStartDate,p=e.setEndDate,d=aa(!0),u=Object(n.a)(d,2),m=u[0],f=u[1],h=aa({}),y=Object(n.a)(h,2),v=y[0],w=y[1],E=aa(""),g=Object(n.a)(E,2),R=g[0],O=g[1],j=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=4,ra({url:"/wp-json/wp/v2/users/".concat(null==l||null===(t=l.params)||void 0===t?void 0:t.id,"?context=edit")});case 4:a=e.sent,w(a),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&O("User Not Found");case 11:return e.prev=11,f(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}();return ta((function(){j()}),[]),R?Object(Yt.b)("div",{className:"presto-flow"},Object(Yt.b)(Xt,null,Object(Yt.b)(qt,null,Object(Yt.b)("h2",null,R)))):Object(Yt.b)("div",{className:"presto-flow"},Object(Yt.b)(Xt,null,Object(Yt.b)(qt,null,Object(Yt.b)($t,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",zt("Back to Dashboard","presto-player")))),Object(Yt.b)(Xt,{wrap:!0},Object(Yt.b)(qt,null,m?Object(Yt.b)(Kt,null):Object(Yt.b)("div",{css:Object(Yt.a)(Dt||(Dt=Object(Et.a)(["\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n "])))},Object(Yt.b)("div",null,Object(Yt.b)("h1",{className:"presto-dashboard__title"},null==v?void 0:v.name),Object(Yt.b)("p",{css:Object(Yt.a)(Pt||(Pt=Object(Et.a)(["\n margin-top: -10px;\n opacity: 0.65;\n "])))},null==v?void 0:v.email)),!!v.id&&Object(Yt.b)("div",{className:"presto__edit-user-button",css:Object(Yt.a)(kt||(kt=Object(Et.a)(["\n margin: 0 20px;\n "])))},Object(Yt.b)($t,{href:"/wp-admin/user-edit.php?user_id=".concat(null==v?void 0:v.id),isSecondary:!0,isSmall:!0},zt("View Profile","presto-player")," →")))),Object(Yt.b)(Jt,null,Object(Yt.b)(mt,{startDate:o,setStartDate:s,endDate:i,setEndDate:p}))),Object(Yt.b)("div",{className:"presto-dashboard presto-flow"},Object(Yt.b)("div",{className:"presto-dashboard__row"},Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Bt,{userId:null==l||null===(t=l.params)||void 0===t?void 0:t.id,startDate:o,endDate:i})),Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Gt,{userId:null==l||null===(a=l.params)||void 0===a?void 0:a.id,startDate:o,endDate:i})),Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Zt,{userId:null==l||null===(r=l.params)||void 0===r?void 0:r.id,startDate:o,endDate:i}))),Object(Yt.b)("div",{className:"presto-dashboard__row"},Object(Yt.b)("div",{className:"presto-dashboard__item is-large"},Object(Yt.b)(Ne,{startDate:o,endDate:i,userId:null==l||null===(c=l.params)||void 0===c?void 0:c.id})))))},ca=wp.i18n.__,la=wp.compose.compose,oa=wp.element.useEffect,ia=la([Ct()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return oa((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(n),title:ca("Average Watch Time","presto-player"),label:ca("seconds","presto-player")})})),sa=wp.i18n,pa=sa.__,da=(sa.sprintf,wp.components),ua=da.Card,ma=da.CardBody,fa=wp.element,ha=fa.useState,ba=fa.useEffect,ya=(fa.useRef,function(e){var t=e.video_id,a=e.startDate,r=e.endDate,c=ha(!0),l=Object(n.a)(c,2),o=l[0],i=l[1],s=ha([{name:"Views",data:[]}]),p=Object(n.a)(s,2),d=p[0],u=p[1];ba((function(){i(!0),Fe({path:wp.url.addQueryArgs("/presto-player/v1/analytics/video/".concat(t,"/timeline"),{start:Z(a),end:Z(r)})}).then((function(e){var t=[];e.length&&e.forEach((function(e){t.push({x:e.watch_time,y:e.total})})),u([{name:"Viewers",data:t}])})).catch((function(e){console.error(e)})).finally((function(){i(!1)}))}),[a,r]);var m={options:{chart:{toolbar:{show:!1}},tickAmount:1,yaxis:{labels:{formatter:function(e){return parseInt(e)}}},xaxis:{labels:{formatter:function(e){return t=e,t=1e3*parseInt(t||0),new Date(t).toISOString().substr(11,8);var t}}},colors:["#7c3aed"],dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};return o?React.createElement(ua,null,React.createElement(ma,null,React.createElement(q,null))):React.createElement(ua,null,React.createElement(ma,null,React.createElement("div",{className:"presto-card__title"},pa("Audience Retention","presto-player")),React.createElement(Te.a,{options:m.options,series:d,type:"area",height:280})))}),va=wp.i18n.__,wa=wp.compose.compose,Ea=wp.element.useEffect,ga=wa([Ct()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Ea((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(n),title:va("Unique Views","presto-player")})})),Ra=a(29);function Oa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function ja(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Oa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var xa=wp.data.useSelect,_a=function(e){var t,a,r,n=e.src,c=e.preset,l=e.branding,o=e.attributes,i=e.adminPreview,s=e.type,p=o.chapters,d=o.mutedOverlay,u=o.mutedPreview,m=xa((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.youtube()})),f=xa((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.playerCSS()}));return React.createElement("div",{className:"wp-block-video presto-block-video",style:ja(ja(ja({"--presto-player-border-radius":"".concat(null==c?void 0:c.border_radius,"px")},null!=c&&c.caption_background?{"--plyr-captions-background":c.caption_background}:{}),null!=l&&l.color?{"--plyr-color-main":l.color}:{}),{},{"--presto-player-email-border-radius":"".concat((null==c||null===(t=c.email_collection)||void 0===t?void 0:t.border_radius)||0,"px"),"--presto-player-logo-width":"".concat((null==l?void 0:l.logo_width)||75,"px")})},React.createElement(Ra.a,{src:n,css:f,isAdmin:!0,preload:"metadata",preset:c,bunny:{thumbnail:null==o?void 0:o.previewThumbnail,preview:null==o?void 0:o.preview},youtube:{channelId:null==m?void 0:m.channel_id},tracks:!(null==c||!c.captions)&&[{kind:"captions",label:"English",srclang:"en",src:"/path/to/captions.en.vtt",default:!0}],branding:l,chapters:p,blockAttributes:o,poster:o.poster,provider:s},React.createElement("div",{slot:"player-end"},(null==u?void 0:u.enabled)&&(null==d?void 0:d.enabled)&&React.createElement("div",{className:"presto-player__overlay is-image",style:{position:"absolute",width:"".concat((null==d?void 0:d.width)||100,"%"),left:"".concat(100*((null==d||null===(a=d.focalPoint)||void 0===a?void 0:a.x)||.5),"%"),top:"".concat(100*((null==d||null===(r=d.focalPoint)||void 0===r?void 0:r.y)||.5),"%")}},React.createElement("img",{src:null==d?void 0:d.src,style:{transform:"translateX(-50%) translateY(-50%)"}})),i)))};function Da(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Pa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Da(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ka=wp.i18n.__,Na=wp.components,Sa=Na.Flex,Fa=Na.FlexBlock,Ca=Na.FlexItem,Ta=Na.Spinner,Ma=Na.Button,Ia=Na.TextControl,Ba=wp.element,Va=Ba.useEffect,Aa=Ba.useState,Ha=wp.apiFetch,Ga=function(e){var t,a,r,c=e.route,l=e.startDate,o=e.endDate,i=e.setStartDate,s=e.setEndDate,p=Aa(!0),d=Object(n.a)(p,2),u=d[0],m=d[1],f=Aa({}),h=Object(n.a)(f,2),y=h[0],v=h[1],w=Aa(""),E=Object(n.a)(w,2),g=E[0],R=E[1],O=Aa(null),j=Object(n.a)(O,2),x=j[0],_=j[1],D=Aa(!1),P=Object(n.a)(D,2),k=P[0],N=P[1],S=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a,r,n;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,Ha({url:"".concat(null===(t=prestoPlayer)||void 0===t?void 0:t.root).concat(null===(a=prestoPlayer)||void 0===a?void 0:a.prestoVersionString,"videos/").concat(null==c||null===(r=c.params)||void 0===r?void 0:r.id)});case 4:n=e.sent,v(n),_(null==n?void 0:n.title),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&R("Video Not Found");case 12:return e.prev=12,m(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("New Video title ".concat(x)),m(!0),e.prev=2,t=Pa(Pa({},y),{title:x}),e.next=6,wp.apiFetch({method:"POST",url:wp.url.addQueryArgs("".concat(prestoPlayer.root).concat(prestoPlayer.prestoVersionString,"videos/").concat(y.id),{_method:"PUT"}),data:t});case 6:if(a=e.sent){e.next=9;break}throw genericError;case 9:N(!1),v(a),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),R(null!==e.t0&&void 0!==e.t0&&e.t0.message?e.t0.message:genericError);case 16:return e.prev=16,m(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})));return function(){return e.apply(this,arguments)}}(),T=function(){_(null==y?void 0:y.title),N(!1)};return Va((function(){S()}),[]),g?React.createElement("div",{className:"presto-flow"},React.createElement(Sa,null,React.createElement(Fa,null,React.createElement("h2",null,g)))):React.createElement("div",{className:"presto-flow"},React.createElement(Sa,null,React.createElement(Fa,null,React.createElement(Ma,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",ka("Back to Dashboard","presto-player")))),React.createElement(Sa,{wrap:!0},React.createElement(Fa,null,u?React.createElement(Ta,null):k?React.createElement("div",{className:"presto-inline-edit presto-inline-edit--editing"},React.createElement(Ia,{className:"presto-inline-edit__input",type:"text",value:x,onChange:function(e){return _(e)}}),React.createElement(Ma,{className:"presto-inline-edit__button",isPrimary:!0,onClick:F}," ","Save"," "),React.createElement(Ma,{className:"presto-inline-edit__button",isSecondary:!0,onClick:T}," ","Cancel"," ")):React.createElement("div",{className:"presto-inline-edit"},React.createElement("h1",{className:"presto-dashboard__title presto-inline-edit__text"},null==y?void 0:y.title),React.createElement("button",{className:"presto-inline-edit__edit",onClick:function(){return N(!0)}},React.createElement("span",{className:"dashicon dashicons dashicons-edit"})))),React.createElement(Ca,null,React.createElement(mt,{startDate:l,setStartDate:i,endDate:o,setEndDate:s}))),React.createElement("div",{className:"presto-dashboard presto-flow"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ga,{video_id:null==c||null===(t=c.params)||void 0===t?void 0:t.id,startDate:l,endDate:o})),React.createElement("div",{className:"presto-dashboard__item"},!!Object.keys(y||{}).length&&React.createElement(_a,{src:null==y?void 0:y.src,attributes:{},type:null==y?void 0:y.type,preset:{"play-large":!0,play:!0,progress:!0,"current-time":!0}})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(ia,{video_id:null==c||null===(a=c.params)||void 0===a?void 0:a.id,startDate:l,endDate:o}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ya,{video_id:null==c||null===(r=c.params)||void 0===r?void 0:r.id,startDate:l,endDate:o})))))},Ua={dashboard:{path:"/"},video:{path:"/video/:id"},user:{path:"/user/:id"}},La=wp.element.useState,Wa=function(){var e,t=function(){window.scrollTo(0,0)},a=La(new Date(Date.now()-6048e5)),r=Object(n.a)(a,2),c=r[0],l=r[1],o=La(new Date),i=Object(n.a)(o,2),s=i[0],p=i[1];return null!==(e=prestoPlayer)&&void 0!==e&&e.isPremium?React.createElement("div",{className:"presto-dashboard__content"},React.createElement(x,{routes:Ua},React.createElement(g,{path:Ua.dashboard.path,onRoute:t},React.createElement(wt,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:Ua.video.path,onRoute:t},React.createElement(Ga,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:Ua.user.path,onRoute:t},React.createElement(na,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})))):React.createElement("div",{className:"presto-dashboard__content"},React.createElement(F,null))},Za=wp.element.render;Object(r.c)(),Za(React.createElement(Wa,null),document.getElementById("presto-analytics-page"))}},[[31,2,3]]]);
19
- //# sourceMappingURL=admin-6b67906f.js.map
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
+ (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[1],{31:function(e,t,a){a(32),e.exports=a(46)},34:function(e,t){function a(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}a.keys=function(){return[]},a.resolve=a,e.exports=a,a.id=34},46:function(e,t,a){"use strict";a.r(t);var r=a(24),n=a(1),c=a(6),l=a(7),o=a(5),i=a(8),s=a(15),p=a(11),d=a(4),u=a(27),m=a.n(u);function f(e){return{path:e.pathname,hash:e.hash,query:m.a.parse(e.search)}}var h=a(30),b=Object(h.a)(),y=wp.element.createContext({route:f(b.location)}),v=a(16),w=wp.element.useContext,E="";function g(e){var t=e.path,a=e.onRoute,r=e.children,n=w(y).route,c=Object(v.a)("".concat(t))("".concat(n.hash.substr(1)));return c?(a&&(E!==c.path&&a(),E=c.path),React.createElement("div",null,wp.element.cloneElement(r,{route:c}))):null}var R=a(21),O=a.n(R);wp.element.useContext;function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=Object(p.a)(e);if(t){var n=Object(p.a)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Object(s.a)(this,a)}}var x=function(e){Object(i.a)(a,e);var t=j(a);function a(e){var r;Object(c.a)(this,a),r=t.call(this,e),Object(d.a)(Object(o.a)(r),"handleRouteChange",(function(e){var t=f(null==e?void 0:e.location);r.setState({route:t})})),r.routes=Object.keys(e.routes).map((function(t){return e.routes[t].path})),r.unlisten=b.listen(r.handleRouteChange);var n=f(b.location);return r.state={route:n,defaultRoute:null!=e&&e.defaultRoute?"#".concat(null==e?void 0:e.defaultRoute):"#/"},r}return Object(l.a)(a,[{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var e=this.props,t=e.children,a=(e.NotFound,this.state),r=a.route,n=a.defaultRoute;if(!r.hash)return b.push(n),React.createElement("div",null);var c=!1;(this.routes||[]).forEach((function(e){var t=Object(v.a)(r.hash.substr(1))("".concat(r.hash.substr(1)));t&&(c={name:e,data:t})}));var l={route:r,matched:c},o=!c;return React.createElement(y.Provider,{value:l},o?React.createElement("div",null,"Not found"):t)}}]),a}(wp.element.Component),_=function(e){var t=e.width,a=e.height;return React.createElement("svg",{id:"e8f68bdd-4984-4f2e-95b7-7fc8ec281257","data-name":"Layer 1",width:t,height:a,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 918.14 765.54"},React.createElement("defs",null,React.createElement("linearGradient",{id:"27aa7b70-b106-4a00-be67-693c8380e41d",x1:"397.74",y1:"717.25",x2:"397.74",y2:"86.11",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:"0","stop-color":"gray","stop-opacity":"0.25"}),React.createElement("stop",{offset:"0.54","stop-color":"gray","stop-opacity":"0.12"}),React.createElement("stop",{offset:"1","stop-color":"gray","stop-opacity":"0.1"})),React.createElement("linearGradient",{id:"46a816da-c484-41ec-8a6f-fbf14454d910",x1:"288.88",y1:"378.44",x2:"288.88",y2:"209.65",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"32b634d8-28f1-48d9-a868-f602a2cad942",x1:"288.88",y1:"328.29",x2:"288.88",y2:"223.1",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba","data-name":"<Rectangle>",x:"354.51",y:"291.55",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"38f1cb81-8fac-4205-a0ff-a33ac00d354c",x1:"288.88",y1:"594.94",x2:"288.88",y2:"426.14",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"6fc01aaf-135e-403e-a209-43b2a4fe59f1",x1:"288.88",y1:"544.79",x2:"288.88",y2:"439.6",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"79ce363a-d134-40e4-9f82-b96d04a36978",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"5b44e697-61fe-43bd-9a58-5f3e41301748","data-name":"<Rectangle>",x:"354.51",y:"508.05",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"54803c44-522d-4b9e-9a34-f1f7b43e8483",x1:"671.57",y1:"760.34",x2:"671.57",y2:"129.2",gradientTransform:"translate(1109.43 -194.1) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"089a6a47-adaa-499b-aefb-cd6464b62fb8",x1:"670.96",y1:"553.63",x2:"670.96",y2:"387.28",gradientTransform:"translate(1129.51 -168.41) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"fd8d88e0-7826-450d-9e0b-001d1be709c2",x1:"637.66",y1:"754.12",x2:"637.66",y2:"601.05",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"8d1793c5-b76e-44e2-a52e-569460402331",x1:"778.37",y1:"673.86",x2:"778.37",y2:"569.13",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"4745700d-8097-45ff-9f71-625443fc4ad8",x1:"778.37",y1:"774.41",x2:"778.37",y2:"713.66",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"})),React.createElement("title",null,"secure data"),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"162.9",y:"86.11",width:"469.69",height:"631.14",fill:"url(#27aa7b70-b106-4a00-be67-693c8380e41d)"})),React.createElement("rect",{x:"169.02",y:"94.67",width:"455.01",height:"609.12",fill:"#f2f2f2"}),React.createElement("rect",{x:"204.49",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"204.49",y:"142.37",width:"156.56",height:"4.89",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"384.29",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"259.8",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"273.25",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"286.7",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"476.29",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"489.75",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"503.2",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"209.65",width:"166.35",height:"168.79",fill:"url(#46a816da-c484-41ec-8a6f-fbf14454d910)"})),React.createElement("rect",{x:"206.76",y:"213.32",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"223.1",width:"152.7",height:"105.19",fill:"url(#32b634d8-28f1-48d9-a868-f602a2cad942)"})),React.createElement("rect",{id:"689f37f3-cc41-448d-b172-63ec123bc985","data-name":"<Rectangle>",x:"213.58",y:"224.32",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)"},React.createElement("polygon",{points:"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18",fill:"#6c63ff",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"239",r:"11.01",fill:"#6c63ff",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"426.14",width:"166.35",height:"168.79",fill:"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)"})),React.createElement("rect",{x:"206.76",y:"429.81",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"439.6",width:"152.7",height:"105.19",fill:"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)"})),React.createElement("rect",{id:"b429ac3a-f8a8-4171-bcce-5b6c002c0714","data-name":"<Rectangle>",x:"213.58",y:"440.82",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#79ce363a-d134-40e4-9f82-b96d04a36978)"},React.createElement("polygon",{points:"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67",fill:"#bdbdbd",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"455.5",r:"11.01",fill:"#bdbdbd",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"349.09",y:"242.63",width:"631.14",height:"469.69",transform:"translate(-74.16 969.06) rotate(-78.76)",fill:"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)"})),React.createElement("rect",{x:"359.37",y:"247.33",width:"609.12",height:"455.01",transform:"translate(-72.16 966.22) rotate(-78.76)",fill:"#fff"}),React.createElement("rect",{x:"523.5",y:"197.22",width:"322.91",height:"4.89",transform:"translate(-88.86 -196.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"433.36",y:"650.7",width:"322.91",height:"4.89",transform:"translate(-2.18 -170.66) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"428.58",y:"671.14",width:"249.52",height:"4.89",transform:"translate(1.01 -162.18) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"424.6",y:"683.47",width:"92.96",height:"4.89",transform:"translate(1.84 -145.91) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"519.57",y:"209.08",width:"161.45",height:"4.89",transform:"translate(-88.17 -180.2) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"512.84",y:"249.31",width:"291.11",height:"4.89",transform:"translate(-79.21 -190.76) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"509.47",y:"255.44",width:"70.94",height:"4.89",transform:"translate(-80.19 -168.52) rotate(11.24)",fill:"#3ad29f",opacity:"0.7"}),React.createElement("rect",{x:"501.56",y:"307.59",width:"322.91",height:"4.89",transform:"translate(-67.76 -190.54) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"575.87",y:"357.6",width:"166.35",height:"289.88",transform:"translate(-103.27 983.74) rotate(-78.76)",fill:"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)"})),React.createElement("rect",{x:"516.06",y:"420.61",width:"286.22",height:"162.68",transform:"translate(-30.42 -186.11) rotate(11.24)",fill:"#fff"}),React.createElement("rect",{x:"496.08",y:"335.18",width:"322.91",height:"4.89",transform:"translate(-62.49 -188.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"547.86",y:"424.02",width:"35.47",height:"118.64",transform:"translate(-35.84 -168.22) rotate(11.24)",fill:"#6c63ff"}),React.createElement("rect",{x:"606.43",y:"475.19",width:"35.47",height:"79.5",transform:"translate(-28.56 -179.03) rotate(11.24)",fill:"#3ad29f"}),React.createElement("rect",{x:"665.23",y:"523.93",width:"35.47",height:"42.81",transform:"translate(-21.5 -189.92) rotate(11.24)",fill:"#f55f44"}),React.createElement("rect",{x:"731.91",y:"492.72",width:"35.47",height:"86.84",transform:"translate(-22.02 -203.09) rotate(11.24)",fill:"#fdd835"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"128.65",y:"645.09",width:"3.67",height:"20.79",fill:"#47e6b1"}),React.createElement("rect",{x:"269.58",y:"712.31",width:"3.67",height:"20.79",transform:"translate(853.2 384.07) rotate(90)",fill:"#47e6b1"})),React.createElement("path",{d:"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z",transform:"translate(-140.93 -67.23)",fill:"#4d8af0",opacity:"0.5"}),React.createElement("path",{d:"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("path",{d:"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("circle",{cx:"337.81",cy:"28.62",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"7.34",cy:"317.46",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"863.76",cy:"120.36",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"822.17",cy:"339.3",r:"7.34",fill:"#4d8af0",opacity:"0.5"}),React.createElement("circle",{cx:"37.68",cy:"145.22",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"853.29",cy:"647.34",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"910.8",cy:"430.97",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("rect",{x:"544.42",y:"601.05",width:"186.48",height:"153.07",fill:"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)"}),React.createElement("path",{d:"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z",transform:"translate(-140.93 -67.23)",fill:"url(#8d1793c5-b76e-44e2-a52e-569460402331)"}),React.createElement("path",{d:"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z",transform:"translate(-140.93 -67.23)",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#6c63ff"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"631.77",width:"182.24",height:"90.07",fill:"#6c63ff"}),React.createElement("path",{d:"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z",transform:"translate(-140.93 -67.23)",fill:"url(#4745700d-8097-45ff-9f71-625443fc4ad8)"}),React.createElement("path",{d:"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z",transform:"translate(-140.93 -67.23)",opacity:"0.2"}))},D=wp.i18n.__,P=wp.components,k=P.Flex,N=P.FlexItem,S=P.FlexBlock,F=function(){return React.createElement(k,{style:{padding:"30px",background:"#fff"}},React.createElement(N,null,React.createElement(_,{width:"250px"})),React.createElement(S,{style:{marginLeft:"20px"}},React.createElement("h1",null,D("Get detailed video insights.","presto-player")),React.createElement("p",null,D("Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.","presto-player")),React.createElement("a",{href:"https://prestoplayer.com",target:"_blank",className:"button button-primary"},D("Learn More","presto-player"))))},C=a(3),T=a(0),M=a.n(T);function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?I(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):I(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}wp.i18n.__;var V=wp.apiFetch,A=wp.element.useState,H=wp.compose.createHigherOrderComponent,G=function(){return H((function(e){return function(t){var a=A(!1),r=Object(n.a)(a,2),c=r[0],l=r[1],o=A(1),i=Object(n.a)(o,2),s=i[0],p=i[1],d=A(0),u=Object(n.a)(d,2),m=u[0],f=u[1],h=A(0),b=Object(n.a)(h,2),y=b[0],v=b[1],w=A([]),E=Object(n.a)(w,2),g=E[0],R=E[1],O=A(""),j=Object(n.a)(O,2),x=j[0],_=j[1],D=function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,V({path:wp.url.addQueryArgs(a,B({page:s,per_page:5},n)),parse:!1}).then((function(e){var t=e.headers?parseInt(e.headers.get("X-WP-Total")):0,a=e.headers?parseInt(e.headers.get("X-WP-TotalPages")):0;return f(t),v(a),e.json()}));case 5:c=e.sent,R(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&_(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:D,page:s,setPage:p,total:m,setTotal:f,totalPages:y,setTotalPages:v,data:g,setData:R,error:x,setError:_},t))}}),"withDataList")},U=wp.i18n,L=U.__,W=U.sprintf,Z=function(e){var t=(new Date).getTimezoneOffset();return new Date(e.getTime()-60*t*1e3).toISOString().split("T")[0]+"T00:00:00.000Z"},Y=wp.components,z=Y.Spinner,Q=Y.Flex,X=Y.FlexItem,q=function(e){var t=e.height,a=void 0===t?100:t;return React.createElement(Q,{style:{height:"".concat(a,"px")},align:"center",justify:"center"},React.createElement(X,null,React.createElement(z,null)))},J=wp.i18n.__,K=wp.components,$=K.Card,ee=K.CardBody,te=K.Flex,ae=K.FlexBlock,re=K.Button,ne=K.ButtonGroup,ce=wp.element,le=ce.useState,oe=ce.useEffect,ie=function(e){var t=e.page,a=e.setPage,r=e.perPage,c=e.total,l=e.totalPages,o=le(!1),i=Object(n.a)(o,2),s=i[0],p=i[1],d=le(!1),u=Object(n.a)(d,2),m=u[0],f=u[1],h=le(0),b=Object(n.a)(h,2),y=b[0],v=b[1],w=le(0),E=Object(n.a)(w,2),g=E[0],R=E[1];oe((function(){v(Math.min(r*t,c)),R(r*(t-1)+1)}),[r,t,c]);return oe((function(){p(t-1>0),f(l>=t+1)}),[t,l]),React.createElement($,{size:"large",className:"presto-card pagination"},React.createElement(ee,{className:"presto-flow"},React.createElement(te,null,React.createElement(ae,null,sprintf(J("Showing %1s to %2s of %3s","presto-player"),g,y,c)),React.createElement(ae,null,React.createElement(te,{justify:"flex-end"},React.createElement(ne,null,React.createElement(re,{isSecondary:!0,disabled:!s,onClick:function(){a(Math.max(t-1,0))}},J("Previous","presto-player")),React.createElement(re,{isSecondary:!0,disabled:!m,onClick:function(){a(Math.min(l,t+1))}},J("Next","presto-player"))))))))},se=wp.i18n.__,pe=wp.element,de=(pe.useRef,pe.useEffect,pe.useState,wp.components),ue=de.Card,me=de.CardBody,fe=(de.Flex,de.FlexBlock,de.Button,de.ButtonGroup,function(e){var t=e.columns,a=e.data,r=e.onRowClick,n=e.title;return a.length?React.createElement(ue,{size:"large",className:"presto-card table-card"},React.createElement(me,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("table",{role:"table",className:O()("presto-table",{"is-clickable":r})},React.createElement("thead",{role:"rowgroup"},React.createElement("tr",{role:"row"},t&&t.map((function(e){return React.createElement("th",{key:e.key,role:"columnheader"},e.label)})))),React.createElement("tbody",{role:"rowgroup"},a.map((function(e,a){return React.createElement("tr",{role:"row",key:"row-".concat(a),onClick:function(){return r&&r(e)}},t.map((function(t,r){return React.createElement("td",{role:"cell","data-title":t.label,key:"row-".concat(a,"-").concat(r),"aria-label":t.label},t.render?t.render(e):React.createElement("div",null,t.value(e)))})))})))))):React.createElement(ue,{size:"large",className:"presto-card table-card"},React.createElement(me,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("div",{style:{opacity:.65}},se("No data available.","presto-player"))))}),he=wp.i18n.__,be=wp.element,ye=(be.useEffect,be.useState,wp.components),ve=ye.Card,we=ye.CardBody,Ee=function(e){var t=e.perPage,a=void 0===t?10:t,r=e.title,n=e.page,c=e.setPage,l=e.loading,o=e.total,i=e.totalPages,s=e.columns,p=e.data,d=e.onSelect;return l?React.createElement(ve,null,React.createElement(q,null)):null!=p&&p.length?React.createElement("div",{className:"datatable"},React.createElement(fe,{data:p,columns:s,perPage:a,onRowClick:d,title:r}),!!o&&React.createElement(ie,{page:n,setPage:c,perPage:a,total:o,totalPages:i})):React.createElement(ve,{size:"large",className:"presto-card"},React.createElement(we,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},r),React.createElement("div",{style:{opacity:.65}},he("No data available.","presto-player"))))};function ge(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Re(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ge(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Oe=wp.i18n.__,je=wp.element.useEffect,xe=(0,wp.compose.compose)([G()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate;je((function(){i({endpoint:"/presto-player/v1/analytics/top-users",params:Re(Re({per_page:5},s?{start:Z(s)}:{}),p?{end:Z(p)}:{})})}),[a,s,p]);var d=[{key:"name",label:Oe("Name","presto-player"),value:function(e){var t;return null==e||null===(t=e.user)||void 0===t?void 0:t.name}},{key:"total_view",label:Oe("Total View","presto-player"),value:function(e){var t,a;return null==e||null===(t=e.stats)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.data}},{key:"avg_view_time",label:Oe("Avg View Time","presto-player"),render:function(e){var t,a;return React.createElement("div",{className:"presto-badge"},null==e||null===(t=e.stats)||void 0===t||null===(a=t[1])||void 0===a?void 0:a.data)}}];return o?{error:o}:React.createElement(Ee,{title:Oe("Top Users","presto-player"),page:a,perPage:5,setPage:r,loading:t,total:n,totalPages:c,columns:d,data:l,onSelect:function(e){var t,a;return a=null==e||null===(t=e.user)||void 0===t?void 0:t.id,void b.push("#/user/".concat(a))}})}));function _e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function De(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_e(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Pe=wp.i18n.__,ke=wp.element.useEffect,Ne=(0,wp.compose.compose)([G()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate,d=e.userId;ke((function(){i({endpoint:"/presto-player/v1/analytics/top-videos",params:De(De(De({per_page:10},s?{start:Z(s)}:{}),p?{end:Z(p)}:{}),d?{user_id:d}:{})})}),[a,s,p]);var u=[{key:"name",label:Pe("Name","presto-player"),render:function(e){return React.createElement("h3",{style:{marginBottom:0,wordBreak:"break-all"}},e.video.title?e.video.title:Pe("Untitled","presto-player"))}},{key:"total_view",label:Pe("Total View","presto-player"),value:function(e){return e.stats[0].data}},{key:"avg_view_time",label:Pe("Avg View Time","presto-player"),render:function(e){return React.createElement("div",{className:"presto-badge"},e.stats[1].data)}},{key:"view_more",label:"",render:function(e){return React.createElement("span",{style:{color:"var(--wp-admin-theme-color, #007cba)"}},Pe("View Details","presto-player")," →")}}];return o?{error:o}:React.createElement(Ee,{title:Pe("Top Videos","presto-player"),perPage:10,page:a,setPage:r,loading:t,total:n,totalPages:c,columns:u,data:l,onSelect:function(e){var t,a;a=null==e||null===(t=e.video)||void 0===t?void 0:t.id,b.push("#/video/".concat(a))}})})),Se=wp.apiFetch;Se.use(Se.createNonceMiddleware(prestoPlayer.nonce)),Se.use(Se.createRootURLMiddleware(prestoPlayer.root+prestoPlayer.prestoVersionString));var Fe=Se,Ce=a(17),Te=a.n(Ce);function Me(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Ie(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Me(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Be=wp.i18n,Ve=Be.__,Ae=Be.sprintf,He=wp.components,Ge=(He.Card,He.CardBody),Ue=wp.element,Le=Ue.useState,We=Ue.useEffect,Ze=(Ue.useRef,function(e){var t=Le(!0),a=Object(n.a)(t,2),r=a[0],c=a[1],l=Le(0),o=Object(n.a)(l,2),i=o[0],s=o[1],p=e.startDate,d=e.endDate,u=Le([{name:"Views",data:[]}]),m=Object(n.a)(u,2),f=m[0],h=m[1],b={options:{chart:{toolbar:{show:!1}},yaxis:{min:0,labels:{formatter:function(e){return e<1?0:Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k":Math.sign(e)*Math.abs(e).toFixed(0)}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(d).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};We((function(){y()}),[e]);var y=function(){c(!0),Fe({path:"/presto-player/v1/analytics/views?"+jQuery.param(Ie(Ie({},p?{start:Z(p)}:{}),d?{end:Z(d)}:{})),parse:!1}).then(function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t.headers&&t.headers.get("X-WP-Total")),e.next=3,t.json();case 3:a=e.sent,r=[],a.length&&a.forEach((function(e){r.push({x:e.date_time,y:e.total})})),h([{name:"Views",data:r}]);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return r?React.createElement(Ge,null,React.createElement(q,null)):React.createElement(Ge,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Ae(Ve("%d Unique Views","presto-player"),i)),React.createElement(Te.a,{options:b.options,series:f,type:"area",height:280}))}),Ye=wp.i18n,ze=Ye.__,Qe=Ye.sprintf,Xe=wp.components,qe=(Xe.Card,Xe.CardBody),Je=wp.element,Ke=Je.useState,$e=Je.useEffect,et=(Je.useRef,function(e){var t=Ke(!0),a=Object(n.a)(t,2),r=a[0],c=a[1],l=Ke(0),o=Object(n.a)(l,2),i=o[0],s=o[1],p=e.startDate,d=e.endDate,u=Ke([{name:"Views",data:[]}]),m=Object(n.a)(u,2),f=m[0],h=m[1],b={options:{chart:{toolbar:{show:!1}},yaxis:{labels:{formatter:function(e){return Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k min":(Math.sign(e)*Math.abs(e)).toFixed(1)+"min"}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(d).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};$e((function(){R()}),[e]);var y,v,w,E,g,R=function(){c(!0),Fe({path:"/presto-player/v1/analytics/watch-time?"+jQuery.param({start:Z(p),end:Z(d)}),parse:!1}).then(function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:a=e.sent,r=a.data,n=a.average,s(parseFloat(n)),c=[],r.length&&r.forEach((function(e){c.push({x:e.date_time,y:(e.total/60).toFixed(2)})})),h([{name:"Watch Time",data:c}]);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return r?React.createElement(qe,null,React.createElement(q,null)):React.createElement(qe,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Qe(ze("%s average watch time","presto-player"),(y=i,v=Math.floor(y/60/60),w=Math.floor(y/60)-60*v,E=y%60,g="",v&&(g+=W(L("%d hours","presto-player"),v)+", "),w&&(g+=W(L("%d minutes","presto-player"),w)+" "),(v||w)&&E&&(g+=L("and","presto-player")+" "),g+=W(L("%d seconds","presto-player"),E)))),React.createElement(Te.a,{options:b.options,series:f,type:"area",height:280}))}),tt=wp.i18n.__,at=wp.components,rt=at.Panel,nt=at.TabPanel,ct=function(e){var t=e.startDate,a=e.endDate;return React.createElement(rt,null,React.createElement(nt,{className:"presto-module-tabs",onSelect:function(){},tabs:[{name:"views",title:tt("Views","presto-player")},{name:"watch",title:tt("Watch Time","presto-player")}]},(function(e){switch(e.name){case"views":return React.createElement(Ze,{startDate:t,endDate:a});case"watch":return React.createElement(et,{startDate:t,endDate:a});default:return React.createElement(React.Fragment,null,"Not Found")}})))},lt=a(28),ot=a.n(lt),it=(a(41),wp.i18n.__),st=wp.element,pt=st.useRef,dt=st.useEffect,ut=st.useState,mt=function(e){var t=e.startDate,a=e.setStartDate,r=e.endDate,c=e.setEndDate,l=pt(),o=ut(25),i=Object(n.a)(o,2),s=i[0],p=i[1];return dt((function(){new ot.a({element:null==l?void 0:l.current,singleMode:!1,format:"MMMM D YYYY",autoApply:!1,plugins:["ranges"],maxDate:new Date,numberOfMonths:2,buttonText:{apply:it("Apply","presto-player"),cancel:it("Cancel","presto-player")},dropdowns:{minYear:1990,maxYear:null,months:!0,years:!0},setup:function(e){e.setDateRange(t,r),e.on("button:apply",(function(e,t){a(e.dateInstance),c(t.dateInstance),p(l.current.value.length)}))}})}),[l]),React.createElement("div",{className:"component-base-control"},React.createElement("div",{className:"components-base-control__field"},React.createElement("input",{className:"components-text-control__input presto-settings__date-select",ref:l,size:s})))},ft=wp.i18n.__,ht=wp.components,bt=ht.Flex,yt=ht.FlexBlock,vt=ht.FlexItem,wt=(wp.element.useState,function(e){var t=e.startDate,a=e.endDate,r=e.setStartDate,n=e.setEndDate;return React.createElement(React.Fragment,null,React.createElement(bt,null,React.createElement(yt,null,React.createElement("h1",null,ft("Analytics","presto-player"))),React.createElement(vt,null,React.createElement(mt,{startDate:t,setStartDate:r,endDate:a,setEndDate:n}))),React.createElement("div",{className:"presto-flow"},React.createElement("div",{className:"presto-dashboard"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ct,{startDate:t,endDate:a})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(xe,{startDate:t,endDate:a}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(Ne,{startDate:t,endDate:a}))))))}),Et=a(22),gt=wp.components,Rt=gt.Card,Ot=gt.CardBody,jt=function(e){var t=e.loading,a=e.title,r=e.value,n=e.label;return t?React.createElement(Rt,null,React.createElement(Ot,null,React.createElement(q,null))):React.createElement(Rt,{className:"presto-player__stat-card"},React.createElement(Ot,null,React.createElement("div",{className:"presto-subtitle"},a),React.createElement("h1",null,r),React.createElement("div",null,n)))};function xt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _t(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):xt(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Dt,Pt,kt,Nt=wp.apiFetch,St=wp.element.useState,Ft=wp.compose.createHigherOrderComponent,Ct=function(){return Ft((function(e){return function(t){var a=St(!1),r=Object(n.a)(a,2),c=r[0],l=r[1],o=St([]),i=Object(n.a)(o,2),s=i[0],p=i[1],d=St(""),u=Object(n.a)(d,2),m=u[0],f=u[1],h=function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,Nt({path:wp.url.addQueryArgs(a,_t({},n))});case 5:c=e.sent,p(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&f(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:h,stat:s,setStat:p,error:m,setError:f},t))}}),"withStat")},Tt=wp.i18n.__,Mt=wp.compose.compose,It=wp.element.useEffect,Bt=Mt([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return It((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(null==n?void 0:n.view),title:Tt("Total Views","presto-player")})})),Vt=wp.i18n.__,At=wp.compose.compose,Ht=wp.element.useEffect,Gt=At([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Ht((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:Vt("Average Watch Time","presto-player"),label:Vt("seconds","presto-player")})})),Ut=wp.i18n.__,Lt=wp.compose.compose,Wt=wp.element.useEffect,Zt=Lt([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Wt((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:Ut("Total Watch Time","presto-player"),label:Ut("seconds","presto-player")})})),Yt=a(2),zt=wp.i18n.__,Qt=wp.components,Xt=Qt.Flex,qt=Qt.FlexBlock,Jt=Qt.FlexItem,Kt=Qt.Spinner,$t=Qt.Button,ea=wp.element,ta=ea.useEffect,aa=ea.useState,ra=wp.apiFetch,na=function(e){var t,a,r,c,l=e.route,o=e.startDate,i=e.endDate,s=e.setStartDate,p=e.setEndDate,d=aa(!0),u=Object(n.a)(d,2),m=u[0],f=u[1],h=aa({}),y=Object(n.a)(h,2),v=y[0],w=y[1],E=aa(""),g=Object(n.a)(E,2),R=g[0],O=g[1],j=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=4,ra({url:"/wp-json/wp/v2/users/".concat(null==l||null===(t=l.params)||void 0===t?void 0:t.id,"?context=edit")});case 4:a=e.sent,w(a),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&O("User Not Found");case 11:return e.prev=11,f(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}();return ta((function(){j()}),[]),R?Object(Yt.b)("div",{className:"presto-flow"},Object(Yt.b)(Xt,null,Object(Yt.b)(qt,null,Object(Yt.b)("h2",null,R)))):Object(Yt.b)("div",{className:"presto-flow"},Object(Yt.b)(Xt,null,Object(Yt.b)(qt,null,Object(Yt.b)($t,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",zt("Back to Dashboard","presto-player")))),Object(Yt.b)(Xt,{wrap:!0},Object(Yt.b)(qt,null,m?Object(Yt.b)(Kt,null):Object(Yt.b)("div",{css:Object(Yt.a)(Dt||(Dt=Object(Et.a)(["\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n "])))},Object(Yt.b)("div",null,Object(Yt.b)("h1",{className:"presto-dashboard__title"},null==v?void 0:v.name),Object(Yt.b)("p",{css:Object(Yt.a)(Pt||(Pt=Object(Et.a)(["\n margin-top: -10px;\n opacity: 0.65;\n "])))},null==v?void 0:v.email)),!!v.id&&Object(Yt.b)("div",{className:"presto__edit-user-button",css:Object(Yt.a)(kt||(kt=Object(Et.a)(["\n margin: 0 20px;\n "])))},Object(Yt.b)($t,{href:"/wp-admin/user-edit.php?user_id=".concat(null==v?void 0:v.id),isSecondary:!0,isSmall:!0},zt("View Profile","presto-player")," →")))),Object(Yt.b)(Jt,null,Object(Yt.b)(mt,{startDate:o,setStartDate:s,endDate:i,setEndDate:p}))),Object(Yt.b)("div",{className:"presto-dashboard presto-flow"},Object(Yt.b)("div",{className:"presto-dashboard__row"},Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Bt,{userId:null==l||null===(t=l.params)||void 0===t?void 0:t.id,startDate:o,endDate:i})),Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Gt,{userId:null==l||null===(a=l.params)||void 0===a?void 0:a.id,startDate:o,endDate:i})),Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Zt,{userId:null==l||null===(r=l.params)||void 0===r?void 0:r.id,startDate:o,endDate:i}))),Object(Yt.b)("div",{className:"presto-dashboard__row"},Object(Yt.b)("div",{className:"presto-dashboard__item is-large"},Object(Yt.b)(Ne,{startDate:o,endDate:i,userId:null==l||null===(c=l.params)||void 0===c?void 0:c.id})))))},ca=wp.i18n.__,la=wp.compose.compose,oa=wp.element.useEffect,ia=la([Ct()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return oa((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(n),title:ca("Average Watch Time","presto-player"),label:ca("seconds","presto-player")})})),sa=wp.i18n,pa=sa.__,da=(sa.sprintf,wp.components),ua=da.Card,ma=da.CardBody,fa=wp.element,ha=fa.useState,ba=fa.useEffect,ya=(fa.useRef,function(e){var t=e.video_id,a=e.startDate,r=e.endDate,c=ha(!0),l=Object(n.a)(c,2),o=l[0],i=l[1],s=ha([{name:"Views",data:[]}]),p=Object(n.a)(s,2),d=p[0],u=p[1];ba((function(){i(!0),Fe({path:wp.url.addQueryArgs("/presto-player/v1/analytics/video/".concat(t,"/timeline"),{start:Z(a),end:Z(r)})}).then((function(e){var t=[];e.length&&e.forEach((function(e){t.push({x:e.watch_time,y:e.total})})),u([{name:"Viewers",data:t}])})).catch((function(e){console.error(e)})).finally((function(){i(!1)}))}),[a,r]);var m={options:{chart:{toolbar:{show:!1}},tickAmount:1,yaxis:{labels:{formatter:function(e){return parseInt(e)}}},xaxis:{labels:{formatter:function(e){return t=e,t=1e3*parseInt(t||0),new Date(t).toISOString().substr(11,8);var t}}},colors:["#7c3aed"],dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};return o?React.createElement(ua,null,React.createElement(ma,null,React.createElement(q,null))):React.createElement(ua,null,React.createElement(ma,null,React.createElement("div",{className:"presto-card__title"},pa("Audience Retention","presto-player")),React.createElement(Te.a,{options:m.options,series:d,type:"area",height:280})))}),va=wp.i18n.__,wa=wp.compose.compose,Ea=wp.element.useEffect,ga=wa([Ct()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Ea((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(n),title:va("Unique Views","presto-player")})})),Ra=a(29);function Oa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function ja(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Oa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var xa=wp.data.useSelect,_a=function(e){var t,a,r,n=e.src,c=e.preset,l=e.branding,o=e.attributes,i=e.adminPreview,s=e.type,p=o.chapters,d=o.mutedOverlay,u=o.mutedPreview,m=xa((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.youtube()})),f=xa((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.playerCSS()}));return React.createElement("div",{className:"wp-block-video presto-block-video",style:ja(ja(ja({"--presto-player-border-radius":"".concat(null==c?void 0:c.border_radius,"px")},null!=c&&c.caption_background?{"--plyr-captions-background":c.caption_background}:{}),null!=l&&l.color?{"--plyr-color-main":l.color}:{}),{},{"--presto-player-email-border-radius":"".concat((null==c||null===(t=c.email_collection)||void 0===t?void 0:t.border_radius)||0,"px"),"--presto-player-logo-width":"".concat((null==l?void 0:l.logo_width)||75,"px")})},React.createElement(Ra.a,{src:n,css:f,isAdmin:!0,preload:"metadata",preset:c,bunny:{thumbnail:null==o?void 0:o.previewThumbnail,preview:null==o?void 0:o.preview},youtube:{channelId:null==m?void 0:m.channel_id},tracks:!(null==c||!c.captions)&&[{kind:"captions",label:"English",srclang:"en",src:"/path/to/captions.en.vtt",default:!0}],branding:l,chapters:p,blockAttributes:o,poster:o.poster,provider:s},React.createElement("div",{slot:"player-end"},(null==u?void 0:u.enabled)&&(null==d?void 0:d.enabled)&&React.createElement("div",{className:"presto-player__overlay is-image",style:{position:"absolute",width:"".concat((null==d?void 0:d.width)||100,"%"),left:"".concat(100*((null==d||null===(a=d.focalPoint)||void 0===a?void 0:a.x)||.5),"%"),top:"".concat(100*((null==d||null===(r=d.focalPoint)||void 0===r?void 0:r.y)||.5),"%")}},React.createElement("img",{src:null==d?void 0:d.src,style:{transform:"translateX(-50%) translateY(-50%)"}})),i)))};function Da(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Pa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Da(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ka=wp.i18n.__,Na=wp.components,Sa=Na.Flex,Fa=Na.FlexBlock,Ca=Na.FlexItem,Ta=Na.Spinner,Ma=Na.Button,Ia=Na.TextControl,Ba=wp.element,Va=Ba.useEffect,Aa=Ba.useState,Ha=wp.apiFetch,Ga=function(e){var t,a,r,c=e.route,l=e.startDate,o=e.endDate,i=e.setStartDate,s=e.setEndDate,p=Aa(!0),d=Object(n.a)(p,2),u=d[0],m=d[1],f=Aa({}),h=Object(n.a)(f,2),y=h[0],v=h[1],w=Aa(""),E=Object(n.a)(w,2),g=E[0],R=E[1],O=Aa(null),j=Object(n.a)(O,2),x=j[0],_=j[1],D=Aa(!1),P=Object(n.a)(D,2),k=P[0],N=P[1],S=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a,r,n;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,Ha({url:"".concat(null===(t=prestoPlayer)||void 0===t?void 0:t.root).concat(null===(a=prestoPlayer)||void 0===a?void 0:a.prestoVersionString,"videos/").concat(null==c||null===(r=c.params)||void 0===r?void 0:r.id)});case 4:n=e.sent,v(n),_(null==n?void 0:n.title),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&R("Video Not Found");case 12:return e.prev=12,m(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("New Video title ".concat(x)),m(!0),e.prev=2,t=Pa(Pa({},y),{title:x}),e.next=6,wp.apiFetch({method:"POST",url:wp.url.addQueryArgs("".concat(prestoPlayer.root).concat(prestoPlayer.prestoVersionString,"videos/").concat(y.id),{_method:"PUT"}),data:t});case 6:if(a=e.sent){e.next=9;break}throw genericError;case 9:N(!1),v(a),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),R(null!==e.t0&&void 0!==e.t0&&e.t0.message?e.t0.message:genericError);case 16:return e.prev=16,m(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})));return function(){return e.apply(this,arguments)}}(),T=function(){_(null==y?void 0:y.title),N(!1)};return Va((function(){S()}),[]),g?React.createElement("div",{className:"presto-flow"},React.createElement(Sa,null,React.createElement(Fa,null,React.createElement("h2",null,g)))):React.createElement("div",{className:"presto-flow"},React.createElement(Sa,null,React.createElement(Fa,null,React.createElement(Ma,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",ka("Back to Dashboard","presto-player")))),React.createElement(Sa,{wrap:!0},React.createElement(Fa,null,u?React.createElement(Ta,null):k?React.createElement("div",{className:"presto-inline-edit presto-inline-edit--editing"},React.createElement(Ia,{className:"presto-inline-edit__input",type:"text",value:x,onChange:function(e){return _(e)}}),React.createElement(Ma,{className:"presto-inline-edit__button",isPrimary:!0,onClick:F}," ","Save"," "),React.createElement(Ma,{className:"presto-inline-edit__button",isSecondary:!0,onClick:T}," ","Cancel"," ")):React.createElement("div",{className:"presto-inline-edit"},React.createElement("h1",{className:"presto-dashboard__title presto-inline-edit__text"},null==y?void 0:y.title),React.createElement("button",{className:"presto-inline-edit__edit",onClick:function(){return N(!0)}},React.createElement("span",{className:"dashicon dashicons dashicons-edit"})))),React.createElement(Ca,null,React.createElement(mt,{startDate:l,setStartDate:i,endDate:o,setEndDate:s}))),React.createElement("div",{className:"presto-dashboard presto-flow"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ga,{video_id:null==c||null===(t=c.params)||void 0===t?void 0:t.id,startDate:l,endDate:o})),React.createElement("div",{className:"presto-dashboard__item"},!!Object.keys(y||{}).length&&React.createElement(_a,{src:null==y?void 0:y.src,attributes:{},type:null==y?void 0:y.type,preset:{"play-large":!0,play:!0,progress:!0,"current-time":!0}})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(ia,{video_id:null==c||null===(a=c.params)||void 0===a?void 0:a.id,startDate:l,endDate:o}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ya,{video_id:null==c||null===(r=c.params)||void 0===r?void 0:r.id,startDate:l,endDate:o})))))},Ua={dashboard:{path:"/"},video:{path:"/video/:id"},user:{path:"/user/:id"}},La=wp.element.useState,Wa=function(){var e,t=function(){window.scrollTo(0,0)},a=La(new Date(Date.now()-6048e5)),r=Object(n.a)(a,2),c=r[0],l=r[1],o=La(new Date),i=Object(n.a)(o,2),s=i[0],p=i[1];return null!==(e=prestoPlayer)&&void 0!==e&&e.isPremium?React.createElement("div",{className:"presto-dashboard__content"},React.createElement(x,{routes:Ua},React.createElement(g,{path:Ua.dashboard.path,onRoute:t},React.createElement(wt,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:Ua.video.path,onRoute:t},React.createElement(Ga,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:Ua.user.path,onRoute:t},React.createElement(na,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})))):React.createElement("div",{className:"presto-dashboard__content"},React.createElement(F,null))},Za=wp.element.render;Object(r.c)(),Za(React.createElement(Wa,null),document.getElementById("presto-analytics-page"))}},[[31,2,3]]]);
19
+ //# sourceMappingURL=admin-103fe944.js.map
dist/analytics/{admin-6b67906f.js.map → admin-103fe944.js.map} RENAMED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@stencil/core/internal/client lazy ^\\.\\/.*$ include: \\.entry\\.js$ exclude: \\.system\\.entry\\.js$ namespace object","webpack:///./src/router/utils.js","webpack:///./src/router/context.js","webpack:///./src/router/route.js","webpack:///./src/router/link.js","webpack:///./src/router/index.js","webpack:///./src/admin/analytics/pages/illustration.js","webpack:///./src/admin/analytics/pages/AnalyticsUpgrade.js","webpack:///./src/admin/analytics/hocs/withDataList.js","webpack:///./src/admin/analytics/util.js","webpack:///./src/admin/settings/components/Loading.js","webpack:///./src/admin/ui/Pagination.js","webpack:///./src/admin/ui/Table.js","webpack:///./src/admin/analytics/components/DataTable.js","webpack:///./src/admin/analytics/components/TopUsers.js","webpack:///./src/admin/analytics/components/TopVideos.js","webpack:///./src/shared/services/fetch.js","webpack:///./src/admin/analytics/components/TotalViewsGraph.js","webpack:///./src/admin/analytics/components/TotalWatchGraph.js","webpack:///./src/admin/analytics/components/OverviewPanel.js","webpack:///./src/admin/analytics/components/DatePicker.js","webpack:///./src/admin/analytics/pages/Dashboard.js","webpack:///./src/admin/ui/StatCard.js","webpack:///./src/admin/analytics/hocs/withStat.js","webpack:///./src/admin/analytics/components/TotalVideoViewsByUser.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTimeByUser.js","webpack:///./src/admin/analytics/components/VideoTotalWatchTimeByUser.js","webpack:///./src/admin/analytics/pages/User.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTime.js","webpack:///./src/admin/analytics/components/VideoTimeline.js","webpack:///./src/admin/analytics/components/VideoViews.js","webpack:///./src/admin/blocks/shared/Player.js","webpack:///./src/admin/analytics/pages/Video.js","webpack:///./src/admin/analytics/routes.js","webpack:///./src/admin/analytics/App.js","webpack:///./src/admin/analytics/index.js"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","module","exports","id","locationToRoute","location","path","pathname","hash","query","qs","parse","search","history","createBrowserHistory","RouterContext","wp","element","createContext","route","useContext","prev","Route","onRoute","children","matched","match","checkMatch","substr","cloneElement","Router","props","setState","routes","Object","map","key","unlisten","listen","handleRouteChange","state","defaultRoute","this","NotFound","push","forEach","name","isMatched","data","routerContextValue","is404","Provider","value","Component","width","height","data-name","xmlns","xmlnsXlink","viewBox","x1","y1","x2","y2","gradientUnits","offset","stop-color","stop-opacity","xlinkHref","transform","x","y","fill","gradientTransform","opacity","clip-path","points","cx","cy","r","d","__","i18n","components","Flex","FlexItem","FlexBlock","style","padding","background","marginLeft","href","target","className","apiFetch","useState","createHigherOrderComponent","compose","WrappedComponent","loading","setLoading","page","setPage","total","setTotal","totalPages","setTotalPages","setData","error","setError","fetchData","a","endpoint","params","url","addQueryArgs","per_page","res","headers","parseInt","get","json","responseData","console","message","sprintf","convertDateTimeToAbsoluteDate","dateTime","Date","getTimezoneOffset","getTime","toISOString","split","Spinner","align","justify","Card","CardBody","Button","ButtonGroup","useEffect","perPage","hasPrevious","setHasPrevious","hasNext","setHasNext","end","setEnd","start","setStart","Math","min","size","isSecondary","disabled","onClick","max","useRef","columns","onRowClick","title","length","role","classNames","column","label","row","rowIndex","columnIndex","data-title","aria-label","render","onSelect","Loading","Table","Pagination","withDataList","startDate","endDate","user","stats","DataTable","userId","user_id","marginBottom","wordBreak","video","color","use","createNonceMiddleware","prestoPlayer","nonce","createRootURLMiddleware","root","prestoVersionString","totalViews","setTotalViews","series","setSeries","chart","options","toolbar","show","yaxis","labels","formatter","num","abs","sign","toFixed","colors","xaxis","type","setHours","dataLabels","enabled","stroke","curve","gradient","shadeIntensity","opacityFrom","opacityTo","stops","fetchViews","jQuery","param","item","date_time","catch","finally","averageTime","setAverageTime","fetchMinutes","savedSeconds","hours","minutes","seconds","out","average","parseFloat","floor","Panel","TabPanel","tabs","tab","TotalViewsGraph","TotalWatchGraph","setStartDate","setEndDate","dateRef","inputSize","setInputSize","Litepicker","current","singleMode","format","autoApply","plugins","maxDate","numberOfMonths","buttonText","apply","cancel","dropdowns","minYear","maxYear","months","years","setup","picker","setDateRange","on","dateInstance","ref","DatePicker","OverviewPanel","TopUsers","TopVideos","stat","setStat","withStat","StatCard","view","User","setUser","getUser","wrap","css","email","isSmall","TotalVideoViewsByUser","VideoAverageWatchTimeByUser","VideoTotalWatchTimeByUser","video_id","watch_time","tickAmount","useSelect","src","preset","branding","attributes","adminPreview","chapters","mutedOverlay","mutedPreview","youtube","select","playerCSS","border_radius","caption_background","email_collection","logo_width","isAdmin","preload","bunny","thumbnail","previewThumbnail","preview","channelId","channel_id","tracks","captions","kind","srclang","default","blockAttributes","poster","provider","slot","position","left","focalPoint","top","TextControl","Video","setVideo","thisName","setThisName","editing","setEditing","getVideo","putVideo","log","method","_method","saved","genericError","cancelEditing","onChange","isPrimary","VideoViews","Player","play","progress","VideoAverageWatchTime","VideoTimeline","dashboard","scrollToTop","window","scrollTo","now","isPremium","Dashboard","AnalyticsUpgrade","defineCustomElements","App","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;8JAAA,SAASA,EAAyBC,GAGjC,OAAOC,QAAQC,UAAUC,MAAK,WAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBL,EAAM,KAEjD,MADAI,EAAEE,KAAO,mBACHF,KAGRL,EAAyBQ,KAAO,WAAa,MAAO,IACpDR,EAAyBG,QAAUH,EACnCS,EAAOC,QAAUV,EACjBA,EAAyBW,GAAK,I,8HCXvB,SAASC,EAAgBC,GAE9B,MAAO,CACLC,KAAMD,EAASE,SACfC,KAAMH,EAASG,KACfC,MAAOC,IAAGC,MAAMN,EAASO,S,YCHhBC,EAAUC,cACVC,EAAgBC,GAAGC,QAAQC,cAAc,CACpDC,MAAOf,EAAgBS,EAAQR,Y,QCJzBe,EAAeJ,GAAGC,QAAlBG,WAEJC,EAAO,GAEJ,SAASC,EAAT,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AhB,KAEA,OAAI,UAAC1D,oBAAD,OAAC,EAAc2K,UASjB,2BAAK5Q,UAAU,6BACb,oBAAC,EAAD,CAAQ5D,OAAQA,IACd,oBAACX,EAAD,CAAOhB,KAAM2B,GAAOmU,UAAU9V,KAAMiB,QAAS8U,GAC3C,oBAACK,GAAD,CACEzL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,KAGhB,oBAAClO,EAAD,CAAOhB,KAAM2B,GAAOyJ,MAAMpL,KAAMiB,QAAS8U,GACvC,oBAAC,GAAD,CACEpL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,KAGhB,oBAAClO,EAAD,CAAOhB,KAAM2B,GAAOkJ,KAAK7K,KAAMiB,QAAS8U,GACtC,oBAAC,GAAD,CACEpL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,OA9BlB,2BAAK3J,UAAU,6BACb,oBAAC8Q,EAAD,QCxBAhM,GAAW3J,GAAGC,QAAd0J,OAIRiM,cAeAjM,GAAO,oBAACkM,GAAD,MAASC,SAASC,eAAe,4B","file":"analytics/admin-6b67906f.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 34;","import qs from \"querystringify\";\nexport function locationToRoute(location) {\n // location comes from the history package\n return {\n path: location.pathname,\n hash: location.hash,\n query: qs.parse(location.search),\n };\n}\n","import { createBrowserHistory } from \"history\";\nimport { locationToRoute } from \"./utils\";\n\nexport const history = createBrowserHistory();\nexport const RouterContext = wp.element.createContext({\n route: locationToRoute(history.location),\n});\n","import { RouterContext } from \"./context\";\nconst { useContext } = wp.element;\nimport { match } from \"path-to-regexp\";\nlet prev = \"\";\n\nexport function Route({ path, onRoute, children }) {\n // Extract route from RouterContext\n const { route } = useContext(RouterContext);\n\n const checkMatch = match(`${path}`);\n const matched = checkMatch(`${route.hash.substr(1)}`);\n\n if (!matched) {\n return null;\n }\n\n if (onRoute) {\n if (prev !== matched.path) {\n onRoute();\n }\n prev = matched.path;\n }\n\n return <div>{wp.element.cloneElement(children, { route: matched })}</div>;\n}\n","const { useContext } = wp.element;\nimport { RouterContext, history } from \"./context\";\nimport classNames from \"classnames\";\nimport { match } from \"path-to-regexp\";\n\nexport function Link(props) {\n const { to, onClick, children, activeClassName } = props;\n const { route } = useContext(RouterContext);\n\n let state = { ...props };\n delete state.activeClassName;\n\n const isActive = () => {\n const checkMatch = match(`${to}`);\n return checkMatch(`${route.hash.substr(1)}`);\n };\n\n const handleClick = (e) => {\n e.preventDefault();\n // Dont' navigate if current path\n if (route.path === to) {\n return;\n }\n // Trigger onClick prop manually\n if (onClick) {\n onClick(e);\n }\n // Use history API to navigate page\n history.push(`#${to}`);\n };\n\n return (\n <a\n {...state}\n className={classNames({ [activeClassName]: isActive() }, props.className)}\n onClick={handleClick}\n >\n {children}\n </a>\n );\n}\n","const { Component } = wp.element;\nimport { locationToRoute } from \"./utils\";\nimport { history, RouterContext } from \"./context\";\nimport { Route } from \"./route\";\nimport { Link } from \"./link\";\nimport { match } from \"path-to-regexp\";\n\nclass Router extends Component {\n constructor(props) {\n super(props);\n\n // Convert our routes into an array for easy 404 checking\n this.routes = Object.keys(props.routes).map(\n (key) => props.routes[key].path\n );\n\n // Listen for path changes from the history API\n this.unlisten = history.listen(this.handleRouteChange);\n\n const route = locationToRoute(history.location);\n\n // Define the initial RouterContext value\n this.state = {\n route,\n defaultRoute: props?.defaultRoute ? `#${props?.defaultRoute}` : \"#/\",\n };\n }\n\n componentWillUnmount() {\n // Stop listening for changes if the Router component unmounts\n this.unlisten();\n }\n\n handleRouteChange = (location) => {\n const route = locationToRoute(location?.location);\n this.setState({ route: route });\n };\n\n render() {\n // Define our variables\n const { children, NotFound } = this.props;\n const { route, defaultRoute } = this.state;\n\n if (!route.hash) {\n history.push(defaultRoute);\n return <div></div>;\n }\n\n let matched = false;\n // match route\n (this.routes || []).forEach((name) => {\n const checkMatch = match(route.hash.substr(1));\n const isMatched = checkMatch(`${route.hash.substr(1)}`);\n if (!isMatched) {\n return;\n }\n matched = {\n name,\n data: isMatched,\n };\n });\n\n const routerContextValue = { route, matched };\n\n // Check if 404 if no route matched\n const is404 = !matched;\n\n return (\n <RouterContext.Provider value={routerContextValue}>\n {is404 ? <div>Not found</div> : children}\n </RouterContext.Provider>\n );\n }\n}\nexport { history, RouterContext, Router, Route, Link };\n","export default ({ width, height }) => {\n return (\n <svg\n id=\"e8f68bdd-4984-4f2e-95b7-7fc8ec281257\"\n data-name=\"Layer 1\"\n width={width}\n height={height}\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 0 918.14 765.54\"\n >\n <defs>\n <linearGradient\n id=\"27aa7b70-b106-4a00-be67-693c8380e41d\"\n x1=\"397.74\"\n y1=\"717.25\"\n x2=\"397.74\"\n y2=\"86.11\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stop-color=\"gray\" stop-opacity=\"0.25\" />\n <stop offset=\"0.54\" stop-color=\"gray\" stop-opacity=\"0.12\" />\n <stop offset=\"1\" stop-color=\"gray\" stop-opacity=\"0.1\" />\n </linearGradient>\n <linearGradient\n id=\"46a816da-c484-41ec-8a6f-fbf14454d910\"\n x1=\"288.88\"\n y1=\"378.44\"\n x2=\"288.88\"\n y2=\"209.65\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"32b634d8-28f1-48d9-a868-f602a2cad942\"\n x1=\"288.88\"\n y1=\"328.29\"\n x2=\"288.88\"\n y2=\"223.1\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"354.51\"\n y=\"291.55\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"38f1cb81-8fac-4205-a0ff-a33ac00d354c\"\n x1=\"288.88\"\n y1=\"594.94\"\n x2=\"288.88\"\n y2=\"426.14\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"6fc01aaf-135e-403e-a209-43b2a4fe59f1\"\n x1=\"288.88\"\n y1=\"544.79\"\n x2=\"288.88\"\n y2=\"439.6\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"79ce363a-d134-40e4-9f82-b96d04a36978\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"5b44e697-61fe-43bd-9a58-5f3e41301748\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"354.51\"\n y=\"508.05\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"54803c44-522d-4b9e-9a34-f1f7b43e8483\"\n x1=\"671.57\"\n y1=\"760.34\"\n x2=\"671.57\"\n y2=\"129.2\"\n gradientTransform=\"translate(1109.43 -194.1) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"089a6a47-adaa-499b-aefb-cd6464b62fb8\"\n x1=\"670.96\"\n y1=\"553.63\"\n x2=\"670.96\"\n y2=\"387.28\"\n gradientTransform=\"translate(1129.51 -168.41) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"fd8d88e0-7826-450d-9e0b-001d1be709c2\"\n x1=\"637.66\"\n y1=\"754.12\"\n x2=\"637.66\"\n y2=\"601.05\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"8d1793c5-b76e-44e2-a52e-569460402331\"\n x1=\"778.37\"\n y1=\"673.86\"\n x2=\"778.37\"\n y2=\"569.13\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"4745700d-8097-45ff-9f71-625443fc4ad8\"\n x1=\"778.37\"\n y1=\"774.41\"\n x2=\"778.37\"\n y2=\"713.66\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n </defs>\n <title>secure data</title>\n <g opacity=\"0.5\">\n <rect\n x=\"162.9\"\n y=\"86.11\"\n width=\"469.69\"\n height=\"631.14\"\n fill=\"url(#27aa7b70-b106-4a00-be67-693c8380e41d)\"\n />\n </g>\n <rect\n x=\"169.02\"\n y=\"94.67\"\n width=\"455.01\"\n height=\"609.12\"\n fill=\"#f2f2f2\"\n />\n <rect x=\"204.49\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect\n x=\"204.49\"\n y=\"142.37\"\n width=\"156.56\"\n height=\"4.89\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect x=\"384.29\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"259.8\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"273.25\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"286.7\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"476.29\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"489.75\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"503.2\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"209.65\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#46a816da-c484-41ec-8a6f-fbf14454d910)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"213.32\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"223.1\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#32b634d8-28f1-48d9-a868-f602a2cad942)\"\n />\n </g>\n <rect\n id=\"689f37f3-cc41-448d-b172-63ec123bc985\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"213.58\"\n y=\"224.32\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)\">\n <polygon\n points=\"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18\"\n fill=\"#6c63ff\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"239\" r=\"11.01\" fill=\"#6c63ff\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"426.14\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"429.81\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"439.6\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)\"\n />\n </g>\n <rect\n id=\"b429ac3a-f8a8-4171-bcce-5b6c002c0714\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"213.58\"\n y=\"440.82\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#79ce363a-d134-40e4-9f82-b96d04a36978)\">\n <polygon\n points=\"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67\"\n fill=\"#bdbdbd\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"455.5\" r=\"11.01\" fill=\"#bdbdbd\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"349.09\"\n y=\"242.63\"\n width=\"631.14\"\n height=\"469.69\"\n transform=\"translate(-74.16 969.06) rotate(-78.76)\"\n fill=\"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)\"\n />\n </g>\n <rect\n x=\"359.37\"\n y=\"247.33\"\n width=\"609.12\"\n height=\"455.01\"\n transform=\"translate(-72.16 966.22) rotate(-78.76)\"\n fill=\"#fff\"\n />\n <rect\n x=\"523.5\"\n y=\"197.22\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-88.86 -196.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"433.36\"\n y=\"650.7\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-2.18 -170.66) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"428.58\"\n y=\"671.14\"\n width=\"249.52\"\n height=\"4.89\"\n transform=\"translate(1.01 -162.18) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"424.6\"\n y=\"683.47\"\n width=\"92.96\"\n height=\"4.89\"\n transform=\"translate(1.84 -145.91) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"519.57\"\n y=\"209.08\"\n width=\"161.45\"\n height=\"4.89\"\n transform=\"translate(-88.17 -180.2) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"512.84\"\n y=\"249.31\"\n width=\"291.11\"\n height=\"4.89\"\n transform=\"translate(-79.21 -190.76) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"509.47\"\n y=\"255.44\"\n width=\"70.94\"\n height=\"4.89\"\n transform=\"translate(-80.19 -168.52) rotate(11.24)\"\n fill=\"#3ad29f\"\n opacity=\"0.7\"\n />\n <rect\n x=\"501.56\"\n y=\"307.59\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-67.76 -190.54) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"575.87\"\n y=\"357.6\"\n width=\"166.35\"\n height=\"289.88\"\n transform=\"translate(-103.27 983.74) rotate(-78.76)\"\n fill=\"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)\"\n />\n </g>\n <rect\n x=\"516.06\"\n y=\"420.61\"\n width=\"286.22\"\n height=\"162.68\"\n transform=\"translate(-30.42 -186.11) rotate(11.24)\"\n fill=\"#fff\"\n />\n <rect\n x=\"496.08\"\n y=\"335.18\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-62.49 -188.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"547.86\"\n y=\"424.02\"\n width=\"35.47\"\n height=\"118.64\"\n transform=\"translate(-35.84 -168.22) rotate(11.24)\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"606.43\"\n y=\"475.19\"\n width=\"35.47\"\n height=\"79.5\"\n transform=\"translate(-28.56 -179.03) rotate(11.24)\"\n fill=\"#3ad29f\"\n />\n <rect\n x=\"665.23\"\n y=\"523.93\"\n width=\"35.47\"\n height=\"42.81\"\n transform=\"translate(-21.5 -189.92) rotate(11.24)\"\n fill=\"#f55f44\"\n />\n <rect\n x=\"731.91\"\n y=\"492.72\"\n width=\"35.47\"\n height=\"86.84\"\n transform=\"translate(-22.02 -203.09) rotate(11.24)\"\n fill=\"#fdd835\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"128.65\"\n y=\"645.09\"\n width=\"3.67\"\n height=\"20.79\"\n fill=\"#47e6b1\"\n />\n <rect\n x=\"269.58\"\n y=\"712.31\"\n width=\"3.67\"\n height=\"20.79\"\n transform=\"translate(853.2 384.07) rotate(90)\"\n fill=\"#47e6b1\"\n />\n </g>\n <path\n d=\"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#4d8af0\"\n opacity=\"0.5\"\n />\n <path\n d=\"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <path\n d=\"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <circle cx=\"337.81\" cy=\"28.62\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"7.34\" cy=\"317.46\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"863.76\" cy=\"120.36\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"822.17\" cy=\"339.3\" r=\"7.34\" fill=\"#4d8af0\" opacity=\"0.5\" />\n <circle cx=\"37.68\" cy=\"145.22\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"853.29\" cy=\"647.34\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"910.8\" cy=\"430.97\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <rect\n x=\"544.42\"\n y=\"601.05\"\n width=\"186.48\"\n height=\"153.07\"\n fill=\"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)\"\n />\n <path\n d=\"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#8d1793c5-b76e-44e2-a52e-569460402331)\"\n />\n <path\n d=\"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"631.77\"\n width=\"182.24\"\n height=\"90.07\"\n fill=\"#6c63ff\"\n />\n <path\n d=\"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#4745700d-8097-45ff-9f71-625443fc4ad8)\"\n />\n <path\n d=\"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z\"\n transform=\"translate(-140.93 -67.23)\"\n opacity=\"0.2\"\n />\n </svg>\n );\n};\n","const { __ } = wp.i18n;\n\nimport Illustration from \"./illustration\";\nconst { Flex, FlexItem, FlexBlock } = wp.components;\n\nexport default () => {\n return (\n <Flex style={{ padding: \"30px\", background: \"#fff\" }}>\n <FlexItem>\n <Illustration width=\"250px\" />\n </FlexItem>\n <FlexBlock style={{ marginLeft: \"20px\" }}>\n <h1>{__(\"Get detailed video insights.\", \"presto-player\")}</h1>\n <p>\n {__(\n \"Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.\",\n \"presto-player\"\n )}\n </p>\n <a\n href=\"https://prestoplayer.com\"\n target=\"_blank\"\n className=\"button button-primary\"\n >\n {__(\"Learn More\", \"presto-player\")}\n </a>\n </FlexBlock>\n </Flex>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { __ } = wp.i18n;\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [page, setPage] = useState(1);\n const [total, setTotal] = useState(0);\n const [totalPages, setTotalPages] = useState(0);\n const [data, setData] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n page,\n per_page: 5,\n ...params,\n }),\n parse: false,\n }).then((res) => {\n const total = res.headers\n ? parseInt(res.headers.get(\"X-WP-Total\"))\n : 0;\n const totalPages = res.headers\n ? parseInt(res.headers.get(\"X-WP-TotalPages\"))\n : 0;\n setTotal(total);\n setTotalPages(totalPages);\n return res.json();\n });\n\n setData(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n page={page}\n setPage={setPage}\n total={total}\n setTotal={setTotal}\n totalPages={totalPages}\n setTotalPages={setTotalPages}\n data={data}\n setData={setData}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withDataList\"\n );\n","const { __, sprintf } = wp.i18n;\n\nexport const humanSeconds = (savedSeconds) => {\n const hours = Math.floor(savedSeconds / 60 / 60);\n const minutes = Math.floor(savedSeconds / 60) - hours * 60;\n const seconds = savedSeconds % 60;\n\n let out = \"\";\n if (hours) {\n out += sprintf(__(\"%d hours\", \"presto-player\"), hours) + \", \";\n }\n if (minutes) {\n out += sprintf(__(\"%d minutes\", \"presto-player\"), minutes) + \" \";\n }\n if ((hours || minutes) && seconds) {\n out += __(\"and\", \"presto-player\") + \" \";\n }\n\n out += sprintf(__(\"%d seconds\", \"presto-player\"), seconds);\n\n return out;\n};\n\nexport const timestamp = (seconds) => {\n seconds = parseInt(seconds || 0) * 1000;\n return new Date(seconds).toISOString().substr(11, 8);\n};\n\n/*\n * This function remove the user timezone from new Date()\n * https://stackoverflow.com/a/29774197/1972413\n*/\nexport const convertDateTimeToAbsoluteDate = (dateTime) => {\n const offset = new Date().getTimezoneOffset()\n var date = new Date(dateTime.getTime() - (offset*60*1000))\n return date.toISOString().split('T')[0]+'T00:00:00.000Z';\n}\n","const { Spinner, Flex, FlexItem } = wp.components;\nexport default ({ height = 100 }) => {\n return (\n <Flex style={{ height: `${height}px` }} align=\"center\" justify=\"center\">\n <FlexItem>\n <Spinner />\n </FlexItem>\n </Flex>\n );\n};\n","const { __ } = wp.i18n;\nconst { Card, CardBody, Flex, FlexBlock, Button, ButtonGroup } = wp.components;\nconst { useState, useEffect } = wp.element;\n\nexport default ({ page, setPage, perPage, total, totalPages }) => {\n // do we have prev/next\n const [hasPrevious, setHasPrevious] = useState(false);\n const [hasNext, setHasNext] = useState(false);\n\n // end and start cursors\n const [end, setEnd] = useState(0);\n const [start, setStart] = useState(0);\n\n // set end and start\n useEffect(() => {\n setEnd(Math.min(perPage * page, total));\n setStart(perPage * (page - 1) + 1);\n }, [perPage, page, total]);\n\n // update page when pagination is clicked\n const nextPage = () => {\n setPage(Math.min(totalPages, page + 1));\n };\n const prevPage = () => {\n setPage(Math.max(page - 1, 0));\n };\n\n // set prev/next\n useEffect(() => {\n setHasPrevious(page - 1 > 0);\n setHasNext(totalPages >= page + 1);\n }, [page, totalPages]);\n\n return (\n <Card size=\"large\" className=\"presto-card pagination\">\n <CardBody className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n {sprintf(\n __(\"Showing %1s to %2s of %3s\", \"presto-player\"),\n start,\n end,\n total\n )}\n </FlexBlock>\n <FlexBlock>\n <Flex justify=\"flex-end\">\n {\n <ButtonGroup>\n <Button\n isSecondary\n disabled={!hasPrevious}\n onClick={prevPage}\n >\n {__(\"Previous\", \"presto-player\")}\n </Button>\n <Button isSecondary disabled={!hasNext} onClick={nextPage}>\n {__(\"Next\", \"presto-player\")}\n </Button>\n </ButtonGroup>\n }\n </Flex>\n </FlexBlock>\n </Flex>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\nconst { Card, CardBody ,Flex, FlexBlock, Button, ButtonGroup } = wp.components;\n\nimport classNames from 'classnames';\n\nexport default ({ columns , data , onRowClick , title }) => {\n\n if (!data.length) {\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <table role=\"table\" className={classNames('presto-table', { 'is-clickable': onRowClick })}>\n <thead role=\"rowgroup\">\n <tr role=\"row\">\n {columns && columns.map((column) => {\n return (\n <th key={column.key} role=\"columnheader\">\n {column.label}\n </th>\n );\n })}\n </tr>\n </thead>\n\n <tbody role=\"rowgroup\">\n {data.map((row , rowIndex) => {\n return (\n <tr role=\"row\" key={`row-${rowIndex}`}\n onClick={() => onRowClick && onRowClick(row)}\n >\n {columns.map((column , columnIndex ) => {\n return (\n <td role=\"cell\" data-title={column.label} key={`row-${rowIndex}-${columnIndex}`} aria-label={column.label}>\n {column.render ? column.render(row) : (<div>{column.value(row)}</div>)}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect, useState } = wp.element;\nconst { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\nimport Pagination from \"@/admin/ui/Pagination\";\nimport Table from \"@/admin/ui/Table\";\n\nexport default ({\n perPage = 10,\n title,\n page,\n setPage,\n loading,\n total,\n totalPages,\n columns,\n data,\n onSelect,\n}) => {\n if (loading) {\n return (\n <Card>\n <Loading />\n </Card>\n );\n }\n\n if (!data?.length) {\n return (\n <Card size=\"large\" className=\"presto-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">{title}</div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <div className=\"datatable\">\n <Table\n data={data}\n columns={columns}\n perPage={perPage}\n onRowClick={onSelect}\n title={title}\n />\n\n {!!total && (\n <Pagination\n page={page}\n setPage={setPage}\n perPage={perPage}\n total={total}\n totalPages={totalPages}\n />\n )}\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n }) => {\n // 10 per page\n const per_page = 5;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-users\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n },\n });\n }, [page, startDate, endDate]);\n\n // navigate to user screen here\n const navigate = (id) => {\n history.push(`#/user/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n value: (row) => row?.user?.name,\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value: (row) => row?.stats?.[0]?.data,\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render: (row) => (\n <div className=\"presto-badge\">{row?.stats?.[1]?.data}</div>\n ),\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Users\", \"presto-player\")}\n page={page}\n perPage={per_page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => navigate(row?.user?.id)}\n />\n );\n }\n);\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n userId\n }) => {\n // 10 per page\n const per_page = 10;\n\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-videos\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n ...(userId ? { user_id: userId }: {})\n },\n });\n }, [page, startDate, endDate]);\n\n const navigate = (id) => {\n history.push(`#/video/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n render(row) {\n return (\n <h3 style={{ marginBottom: 0, wordBreak:'break-all' }}>\n {row.video.title\n ? row.video.title\n : __(\"Untitled\", \"presto-player\")}\n </h3>\n );\n },\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value(row) {\n return row.stats[0].data;\n },\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render(row) {\n return <div className=\"presto-badge\">{row.stats[1].data}</div>;\n },\n },\n {\n key: \"view_more\",\n label: \"\",\n render(row) {\n return (\n <span\n style={{\n color: \"var(--wp-admin-theme-color, #007cba)\",\n }}\n >\n {__(\"View Details\", \"presto-player\")} &rarr;\n </span>\n );\n },\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Videos\", \"presto-player\")}\n perPage={per_page}\n page={page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => {\n navigate(row?.video?.id);\n }}\n />\n );\n }\n);\n","// import apiFetch from \"@wordpress/api-fetch\";\nconst { apiFetch } = wp;\n\n// nonce and root\napiFetch.use(apiFetch.createNonceMiddleware(prestoPlayer.nonce));\napiFetch.use(\n apiFetch.createRootURLMiddleware(\n prestoPlayer.root + prestoPlayer.prestoVersionString\n )\n);\n\nexport default apiFetch;\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [totalViews, setTotalViews] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n min: 0,\n labels: {\n formatter: function (num) {\n if (num < 1) {\n return 0;\n }\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k\"\n : Math.sign(num) * Math.abs(num).toFixed(0);\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchViews();\n }, [props]);\n\n const fetchViews = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/views?\" +\n jQuery.param({\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n }),\n parse: false,\n })\n .then(async (res) => {\n setTotalViews(res.headers && res.headers.get(\"X-WP-Total\"));\n const data = await res.json();\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Views\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(__(\"%d Unique Views\", \"presto-player\"), totalViews)}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, humanSeconds } from \"../util\";\n\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [averageTime, setAverageTime] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n labels: {\n formatter: function (num) {\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k min\"\n : (Math.sign(num) * Math.abs(num)).toFixed(1) + \"min\";\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchMinutes();\n }, [props]);\n\n const fetchMinutes = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/watch-time?\" +\n jQuery.param({\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }),\n parse: false,\n })\n .then(async (res) => {\n const { data, average } = await res.json();\n\n setAverageTime(parseFloat(average));\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: (item.total / 60).toFixed(2),\n });\n });\n }\n setSeries([\n {\n name: \"Watch Time\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(\n __(\"%s average watch time\", \"presto-player\"),\n humanSeconds(averageTime)\n )}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __ } = wp.i18n;\nconst { Panel, TabPanel } = wp.components;\n\nimport TotalViewsGraph from \"./TotalViewsGraph\";\nimport TotalWatchGraph from \"./TotalWatchGraph\";\n\nexport default ({ startDate, endDate }) => {\n return (\n <Panel>\n <TabPanel\n className=\"presto-module-tabs\"\n onSelect={() => {}}\n tabs={[\n {\n name: \"views\",\n title: __(\"Views\", \"presto-player\"),\n },\n {\n name: \"watch\",\n title: __(\"Watch Time\", \"presto-player\"),\n },\n ]}\n >\n {(tab) => {\n switch (tab.name) {\n case \"views\":\n return (\n <TotalViewsGraph startDate={startDate} endDate={endDate} />\n );\n case \"watch\":\n return (\n <TotalWatchGraph startDate={startDate} endDate={endDate} />\n );\n default:\n return <>Not Found</>;\n }\n }}\n </TabPanel>\n </Panel>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\n\nimport Litepicker from \"litepicker\";\nimport \"litepicker/dist/plugins/ranges\";\n\nexport default ({ startDate, setStartDate, endDate, setEndDate }) => {\n const dateRef = useRef();\n const [inputSize, setInputSize] = useState(25);\n\n let datepicker;\n useEffect(() => {\n datepicker = new Litepicker({\n element: dateRef?.current,\n singleMode: false,\n format: \"MMMM D YYYY\",\n autoApply: false,\n plugins: [\"ranges\"],\n maxDate: new Date(),\n numberOfMonths: 2,\n buttonText: {\n apply: __(\"Apply\", \"presto-player\"),\n cancel: __(\"Cancel\", \"presto-player\"),\n },\n dropdowns: {\n minYear: 1990,\n maxYear: null,\n months: true,\n years: true,\n },\n setup: (picker) => {\n picker.setDateRange(startDate, endDate);\n picker.on(\"button:apply\", (start, end) => {\n setStartDate(start.dateInstance);\n setEndDate(end.dateInstance);\n setInputSize(dateRef.current.value.length);\n });\n },\n });\n }, [dateRef]);\n\n return (\n <div className=\"component-base-control\">\n <div className=\"components-base-control__field\">\n <input\n className=\"components-text-control__input presto-settings__date-select\"\n ref={dateRef}\n size={inputSize}\n />\n </div>\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { Flex, FlexBlock, FlexItem } = wp.components;\nconst { useState } = wp.element;\n\nimport TopUsers from \"../components/TopUsers\";\nimport TopVideos from \"../components/TopVideos\";\nimport OverviewPanel from \"../components/OverviewPanel\";\nimport DatePicker from \"../components/DatePicker\";\n\nexport default function ({ startDate, endDate, setStartDate, setEndDate }) {\n return (\n <>\n <Flex>\n <FlexBlock>\n <h1>{__(\"Analytics\", \"presto-player\")}</h1>\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-flow\">\n <div className=\"presto-dashboard\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <OverviewPanel startDate={startDate} endDate={endDate} />\n </div>\n <div className=\"presto-dashboard__item\">\n <TopUsers startDate={startDate} endDate={endDate} />\n </div>\n </div>\n\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos startDate={startDate} endDate={endDate} />\n </div>\n </div>\n </div>\n </div>\n </>\n );\n}\n","const { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\n\nexport default ({ loading, title , value, label }) => {\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card className=\"presto-player__stat-card\">\n <CardBody>\n <div className=\"presto-subtitle\">{title}</div>\n <h1>{value}</h1>\n <div>{label}</div>\n </CardBody>\n </Card>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [stat, setStat] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n ...params,\n }),\n });\n setStat(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n stat={stat}\n setStat={setStat}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withStat\"\n );\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat?.view)}\n title={__(\"Total Views\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Total Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","/** @jsx jsx */\n\nconst { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button } = wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport TopVideos from \"../components/TopVideos\";\nimport TotalVideoViewsByUser from \"../components/TotalVideoViewsByUser\";\nimport VideoAverageWatchTimeByUser from \"../components/VideoAverageWatchTimeByUser\";\nimport VideoTotalWatchTimeByUser from \"../components/VideoTotalWatchTimeByUser\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nimport { css, jsx } from \"@emotion/core\";\n\nconst User = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [user, setUser] = useState({});\n const [error, setError] = useState(\"\");\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getUser = async () => {\n setLoading(true);\n try {\n let user = await apiFetch({\n url: `/wp-json/wp/v2/users/${route?.params?.id}?context=edit`,\n });\n setUser(user);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"User Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n getUser();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n &larr; {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>\n {loading ? (\n <Spinner />\n ) : (\n <div\n css={css`\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n `}\n >\n <div>\n <h1 className=\"presto-dashboard__title\">{user?.name}</h1>\n <p\n css={css`\n margin-top: -10px;\n opacity: 0.65;\n `}\n >\n {user?.email}\n </p>\n </div>\n {!!user.id && (\n <div\n className=\"presto__edit-user-button\"\n css={css`\n margin: 0 20px;\n `}\n >\n <Button\n href={`/wp-admin/user-edit.php?user_id=${user?.id}`}\n isSecondary\n isSmall\n >\n {__(\"View Profile\", \"presto-player\")} &rarr;\n </Button>\n </div>\n )}\n </div>\n )}\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item\">\n <TotalVideoViewsByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoTotalWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos\n startDate={startDate}\n endDate={endDate}\n userId={route?.params?.id}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default User;\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, timestamp } from \"../util\";\n\n\nexport default (props) => {\n const { video_id, startDate, endDate } = props;\n const [loading, setLoading] = useState(true);\n\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const fetchTimeline = () => {\n setLoading(true);\n apiFetch({\n path: wp.url.addQueryArgs(\n `/presto-player/v1/analytics/video/${video_id}/timeline`,\n {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }\n ),\n })\n .then((data) => {\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n // add another to them\n series.push({\n x: item.watch_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Viewers\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n useEffect(() => {\n fetchTimeline();\n }, [startDate, endDate]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n tickAmount: 1,\n yaxis: {\n labels: {\n formatter: function (num) {\n return parseInt(num);\n },\n },\n },\n xaxis: {\n labels: {\n formatter: function (num) {\n return timestamp(num);\n },\n },\n },\n colors: [\"#7c3aed\"],\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card>\n <CardBody>\n <div className=\"presto-card__title\">\n {__(\"Audience Retention\", \"presto-player\")}\n </div>\n <Chart\n options={chart.options}\n series={series}\n type=\"area\"\n height={280}\n />\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Unique Views\", \"presto-player\")}\n />\n );\n});\n","import { PrestoPlayer } from \"@presto-player/react\";\n\nconst { useSelect } = wp.data;\n\nexport default ({ src, preset, branding, attributes, adminPreview, type }) => {\n const { chapters, mutedOverlay, mutedPreview } = attributes;\n\n const youtube = useSelect((select) => {\n return select(\"presto-player/player\")?.youtube();\n });\n\n const css = useSelect((select) => {\n return select(\"presto-player/player\")?.playerCSS();\n });\n\n const mutedOverlayContent = () => {\n return (\n <div\n className=\"presto-player__overlay is-image\"\n style={{\n position: \"absolute\",\n width: `${mutedOverlay?.width || 100}%`,\n left: `${(mutedOverlay?.focalPoint?.x || 0.5) * 100}%`,\n top: `${(mutedOverlay?.focalPoint?.y || 0.5) * 100}%`,\n }}\n >\n <img\n src={mutedOverlay?.src}\n style={{\n transform: \"translateX(-50%) translateY(-50%)\",\n }}\n />\n </div>\n );\n };\n\n return (\n <div\n className=\"wp-block-video presto-block-video\"\n style={{\n \"--presto-player-border-radius\": `${preset?.border_radius}px`,\n ...(preset?.caption_background\n ? { \"--plyr-captions-background\": preset.caption_background }\n : {}),\n ...(branding?.color ? { \"--plyr-color-main\": branding.color } : {}),\n \"--presto-player-email-border-radius\": `${\n preset?.email_collection?.border_radius || 0\n }px`,\n \"--presto-player-logo-width\": `${branding?.logo_width || 75}px`,\n }}\n >\n <PrestoPlayer\n src={src}\n css={css}\n isAdmin={true}\n preload=\"metadata\"\n preset={preset}\n bunny={{\n thumbnail: attributes?.previewThumbnail,\n preview: attributes?.preview,\n }}\n youtube={{\n channelId: youtube?.channel_id,\n }}\n tracks={\n !!preset?.captions && [\n {\n kind: \"captions\",\n label: \"English\",\n srclang: \"en\",\n src: \"/path/to/captions.en.vtt\",\n default: true,\n },\n ]\n }\n branding={branding}\n chapters={chapters}\n blockAttributes={attributes}\n poster={attributes.poster}\n provider={type}\n >\n <div slot=\"player-end\">\n {mutedPreview?.enabled &&\n mutedOverlay?.enabled &&\n mutedOverlayContent()}\n {adminPreview}\n </div>\n </PrestoPlayer>\n </div>\n );\n};\n","const { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button, TextControl } =\n wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport VideoAverageWatchTime from \"../components/VideoAverageWatchTime\";\nimport VideoTimeline from \"../components/VideoTimeline\";\nimport VideoViews from \"../components/VideoViews\";\nimport Player from \"../../blocks/shared/Player\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nconst Video = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [video, setVideo] = useState({});\n const [error, setError] = useState(\"\");\n const [thisName, setThisName] = useState(null);\n const [editing, setEditing] = useState(false);\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getVideo = async () => {\n setLoading(true);\n try {\n let video = await apiFetch({\n url: `${prestoPlayer?.root}${prestoPlayer?.prestoVersionString}videos/${route?.params?.id}`,\n });\n setVideo(video);\n setThisName(video?.title);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"Video Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n const putVideo = async () => {\n console.log(`New Video title ${thisName}`);\n setLoading(true);\n try {\n const data = {\n ...video,\n ...{ title: thisName },\n };\n let saved = await wp.apiFetch({\n method: \"POST\",\n url: wp.url.addQueryArgs(\n `${prestoPlayer.root}${prestoPlayer.prestoVersionString}videos/${video.id}`,\n { _method: \"PUT\" }\n ),\n data,\n });\n\n if (!saved) {\n throw genericError;\n }\n setEditing(false);\n setVideo(saved);\n } catch (e) {\n setError(e?.message ? e.message : genericError);\n } finally {\n setLoading(false);\n }\n };\n\n const cancelEditing = () => {\n setThisName(video?.title);\n setEditing(false);\n };\n\n const renderVideoEditableTitle = () => {\n if (loading) {\n return <Spinner />;\n } else if (editing) {\n return (\n <div className=\"presto-inline-edit presto-inline-edit--editing\">\n <TextControl\n className=\"presto-inline-edit__input\"\n type=\"text\"\n value={thisName}\n onChange={(title) => setThisName(title)}\n />\n <Button\n className=\"presto-inline-edit__button\"\n isPrimary\n onClick={putVideo}\n >\n {\" \"}\n Save{\" \"}\n </Button>\n <Button\n className=\"presto-inline-edit__button\"\n isSecondary\n onClick={cancelEditing}\n >\n {\" \"}\n Cancel{\" \"}\n </Button>\n </div>\n );\n } else {\n return (\n <div className=\"presto-inline-edit\">\n <h1 className=\"presto-dashboard__title presto-inline-edit__text\">\n {video?.title}\n </h1>\n\n <button\n className=\"presto-inline-edit__edit\"\n onClick={() => setEditing(true)}\n >\n <span className=\"dashicon dashicons dashicons-edit\"></span>\n </button>\n </div>\n );\n }\n };\n\n useEffect(() => {\n getVideo();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n &larr; {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>{renderVideoEditableTitle()}</FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoViews\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n {!!Object.keys(video || {}).length && (\n <Player\n src={video?.src}\n attributes={{}}\n type={video?.type}\n preset={{\n \"play-large\": true,\n play: true,\n progress: true,\n \"current-time\": true,\n }}\n />\n )}\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTime\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoTimeline\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default Video;\n","export const routes = {\n dashboard: {\n path: \"/\",\n },\n video: {\n path: \"/video/:id\",\n },\n user: {\n path: \"/user/:id\",\n },\n};\n","const { useState } = wp.element;\n\nimport { Route, Router } from \"@/router\";\n\nimport AnalyticsUpgrade from \"./pages/AnalyticsUpgrade\";\nimport Dashboard from \"./pages/Dashboard\";\n\nimport User from \"./pages/User\";\nimport Video from \"./pages/Video\";\nimport { routes } from \"./routes\";\n\nexport default () => {\n const scrollToTop = () => {\n window.scrollTo(0, 0);\n };\n\n const [startDate, setStartDate] = useState(\n new Date(Date.now() - 7 * 24 * 60 * 60 * 1000)\n );\n const [endDate, setEndDate] = useState(new Date());\n\n if (!prestoPlayer?.isPremium) {\n return (\n <div className=\"presto-dashboard__content\">\n <AnalyticsUpgrade />\n </div>\n );\n }\n\n return (\n <div className=\"presto-dashboard__content\">\n <Router routes={routes}>\n <Route path={routes.dashboard.path} onRoute={scrollToTop}>\n <Dashboard\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.video.path} onRoute={scrollToTop}>\n <Video\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.user.path} onRoute={scrollToTop}>\n <User\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n </Router>\n </div>\n );\n};\n","const { render } = wp.element;\n\nimport { defineCustomElements } from \"@presto-player/components/dist/custom-elements\";\n\ndefineCustomElements();\n\n/**\n * App\n */\nimport App from \"./App\";\n\n/**\n * styles\n */\nimport \"./analytics.scss\";\n\n/**\n * Render\n */\nrender(<App />, document.getElementById(\"presto-analytics-page\"));\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./node_modules/@stencil/core/internal/client lazy ^\\.\\/.*$ include: \\.entry\\.js$ exclude: \\.system\\.entry\\.js$ namespace object","webpack:///./src/router/utils.js","webpack:///./src/router/context.js","webpack:///./src/router/route.js","webpack:///./src/router/link.js","webpack:///./src/router/index.js","webpack:///./src/admin/analytics/pages/illustration.js","webpack:///./src/admin/analytics/pages/AnalyticsUpgrade.js","webpack:///./src/admin/analytics/hocs/withDataList.js","webpack:///./src/admin/analytics/util.js","webpack:///./src/admin/settings/components/Loading.js","webpack:///./src/admin/ui/Pagination.js","webpack:///./src/admin/ui/Table.js","webpack:///./src/admin/analytics/components/DataTable.js","webpack:///./src/admin/analytics/components/TopUsers.js","webpack:///./src/admin/analytics/components/TopVideos.js","webpack:///./src/shared/services/fetch.js","webpack:///./src/admin/analytics/components/TotalViewsGraph.js","webpack:///./src/admin/analytics/components/TotalWatchGraph.js","webpack:///./src/admin/analytics/components/OverviewPanel.js","webpack:///./src/admin/analytics/components/DatePicker.js","webpack:///./src/admin/analytics/pages/Dashboard.js","webpack:///./src/admin/ui/StatCard.js","webpack:///./src/admin/analytics/hocs/withStat.js","webpack:///./src/admin/analytics/components/TotalVideoViewsByUser.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTimeByUser.js","webpack:///./src/admin/analytics/components/VideoTotalWatchTimeByUser.js","webpack:///./src/admin/analytics/pages/User.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTime.js","webpack:///./src/admin/analytics/components/VideoTimeline.js","webpack:///./src/admin/analytics/components/VideoViews.js","webpack:///./src/admin/blocks/shared/Player.js","webpack:///./src/admin/analytics/pages/Video.js","webpack:///./src/admin/analytics/routes.js","webpack:///./src/admin/analytics/App.js","webpack:///./src/admin/analytics/index.js"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","module","exports","id","locationToRoute","location","path","pathname","hash","query","qs","parse","search","history","createBrowserHistory","RouterContext","wp","element","createContext","route","useContext","prev","Route","onRoute","children","matched","match","checkMatch","substr","cloneElement","Router","props","setState","routes","Object","map","key","unlisten","listen","handleRouteChange","state","defaultRoute","this","NotFound","push","forEach","name","isMatched","data","routerContextValue","is404","Provider","value","Component","width","height","data-name","xmlns","xmlnsXlink","viewBox","x1","y1","x2","y2","gradientUnits","offset","stop-color","stop-opacity","xlinkHref","transform","x","y","fill","gradientTransform","opacity","clip-path","points","cx","cy","r","d","__","i18n","components","Flex","FlexItem","FlexBlock","style","padding","background","marginLeft","href","target","className","apiFetch","useState","createHigherOrderComponent","compose","WrappedComponent","loading","setLoading","page","setPage","total","setTotal","totalPages","setTotalPages","setData","error","setError","fetchData","a","endpoint","params","url","addQueryArgs","per_page","res","headers","parseInt","get","json","responseData","console","message","sprintf","convertDateTimeToAbsoluteDate","dateTime","Date","getTimezoneOffset","getTime","toISOString","split","Spinner","align","justify","Card","CardBody","Button","ButtonGroup","useEffect","perPage","hasPrevious","setHasPrevious","hasNext","setHasNext","end","setEnd","start","setStart","Math","min","size","isSecondary","disabled","onClick","max","useRef","columns","onRowClick","title","length","role","classNames","column","label","row","rowIndex","columnIndex","data-title","aria-label","render","onSelect","Loading","Table","Pagination","withDataList","startDate","endDate","user","stats","DataTable","userId","user_id","marginBottom","wordBreak","video","color","use","createNonceMiddleware","prestoPlayer","nonce","createRootURLMiddleware","root","prestoVersionString","totalViews","setTotalViews","series","setSeries","chart","options","toolbar","show","yaxis","labels","formatter","num","abs","sign","toFixed","colors","xaxis","type","setHours","dataLabels","enabled","stroke","curve","gradient","shadeIntensity","opacityFrom","opacityTo","stops","fetchViews","jQuery","param","item","date_time","catch","finally","averageTime","setAverageTime","fetchMinutes","savedSeconds","hours","minutes","seconds","out","average","parseFloat","floor","Panel","TabPanel","tabs","tab","TotalViewsGraph","TotalWatchGraph","setStartDate","setEndDate","dateRef","inputSize","setInputSize","Litepicker","current","singleMode","format","autoApply","plugins","maxDate","numberOfMonths","buttonText","apply","cancel","dropdowns","minYear","maxYear","months","years","setup","picker","setDateRange","on","dateInstance","ref","DatePicker","OverviewPanel","TopUsers","TopVideos","stat","setStat","withStat","StatCard","view","User","setUser","getUser","wrap","css","email","isSmall","TotalVideoViewsByUser","VideoAverageWatchTimeByUser","VideoTotalWatchTimeByUser","video_id","watch_time","tickAmount","useSelect","src","preset","branding","attributes","adminPreview","chapters","mutedOverlay","mutedPreview","youtube","select","playerCSS","border_radius","caption_background","email_collection","logo_width","isAdmin","preload","bunny","thumbnail","previewThumbnail","preview","channelId","channel_id","tracks","captions","kind","srclang","default","blockAttributes","poster","provider","slot","position","left","focalPoint","top","TextControl","Video","setVideo","thisName","setThisName","editing","setEditing","getVideo","putVideo","log","method","_method","saved","genericError","cancelEditing","onChange","isPrimary","VideoViews","Player","play","progress","VideoAverageWatchTime","VideoTimeline","dashboard","scrollToTop","window","scrollTo","now","isPremium","Dashboard","AnalyticsUpgrade","defineCustomElements","App","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;8JAAA,SAASA,EAAyBC,GAGjC,OAAOC,QAAQC,UAAUC,MAAK,WAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBL,EAAM,KAEjD,MADAI,EAAEE,KAAO,mBACHF,KAGRL,EAAyBQ,KAAO,WAAa,MAAO,IACpDR,EAAyBG,QAAUH,EACnCS,EAAOC,QAAUV,EACjBA,EAAyBW,GAAK,I,8HCXvB,SAASC,EAAgBC,GAE9B,MAAO,CACLC,KAAMD,EAASE,SACfC,KAAMH,EAASG,KACfC,MAAOC,IAAGC,MAAMN,EAASO,S,YCHhBC,EAAUC,cACVC,EAAgBC,GAAGC,QAAQC,cAAc,CACpDC,MAAOf,EAAgBS,EAAQR,Y,QCJzBe,EAAeJ,GAAGC,QAAlBG,WAEJC,EAAO,GAEJ,SAASC,EAAT,GAA6C,IAA5BhB,EAA2B,EAA3BA,KAAMiB,EAAqB,EAArBA,QAASC,EAAY,EAAZA,SAE7BL,EAAUC,EAAWL,GAArBI,MAGFM,EADaC,YAAM,GAAD,OAAIpB,GACZqB,CAAW,GAAD,OAAIR,EAAMX,KAAKoB,OAAO,KAEhD,OAAKH,GAIDF,IACEF,IAASI,EAAQnB,MACnBiB,IAEFF,EAAOI,EAAQnB,MAGV,+BAAMU,GAAGC,QAAQY,aAAaL,EAAU,CAAEL,MAAOM,MAV/C,K,qBCbYT,GAAGC,QAAlBG,W,qcCAR,IAOMU,E,wCACJ,WAAYC,GAAQ,IAAD,sBACjB,cAAMA,GADW,gDAyBC,SAAC1B,GACnB,IAAMc,EAAQf,EAAgBC,aAAD,EAACA,EAAUA,UACxC,EAAK2B,SAAS,CAAEb,MAAOA,OA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qE,aAAcA,EACdC,WAAYA,OA9BlB,2BAAK3J,UAAU,6BACb,oBAAC8Q,EAAD,QCxBAhM,GAAW3J,GAAGC,QAAd0J,OAIRiM,cAeAjM,GAAO,oBAACkM,GAAD,MAASC,SAASC,eAAe,4B","file":"analytics/admin-103fe944.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 34;","import qs from \"querystringify\";\nexport function locationToRoute(location) {\n // location comes from the history package\n return {\n path: location.pathname,\n hash: location.hash,\n query: qs.parse(location.search),\n };\n}\n","import { createBrowserHistory } from \"history\";\nimport { locationToRoute } from \"./utils\";\n\nexport const history = createBrowserHistory();\nexport const RouterContext = wp.element.createContext({\n route: locationToRoute(history.location),\n});\n","import { RouterContext } from \"./context\";\nconst { useContext } = wp.element;\nimport { match } from \"path-to-regexp\";\nlet prev = \"\";\n\nexport function Route({ path, onRoute, children }) {\n // Extract route from RouterContext\n const { route } = useContext(RouterContext);\n\n const checkMatch = match(`${path}`);\n const matched = checkMatch(`${route.hash.substr(1)}`);\n\n if (!matched) {\n return null;\n }\n\n if (onRoute) {\n if (prev !== matched.path) {\n onRoute();\n }\n prev = matched.path;\n }\n\n return <div>{wp.element.cloneElement(children, { route: matched })}</div>;\n}\n","const { useContext } = wp.element;\nimport { RouterContext, history } from \"./context\";\nimport classNames from \"classnames\";\nimport { match } from \"path-to-regexp\";\n\nexport function Link(props) {\n const { to, onClick, children, activeClassName } = props;\n const { route } = useContext(RouterContext);\n\n let state = { ...props };\n delete state.activeClassName;\n\n const isActive = () => {\n const checkMatch = match(`${to}`);\n return checkMatch(`${route.hash.substr(1)}`);\n };\n\n const handleClick = (e) => {\n e.preventDefault();\n // Dont' navigate if current path\n if (route.path === to) {\n return;\n }\n // Trigger onClick prop manually\n if (onClick) {\n onClick(e);\n }\n // Use history API to navigate page\n history.push(`#${to}`);\n };\n\n return (\n <a\n {...state}\n className={classNames({ [activeClassName]: isActive() }, props.className)}\n onClick={handleClick}\n >\n {children}\n </a>\n );\n}\n","const { Component } = wp.element;\nimport { locationToRoute } from \"./utils\";\nimport { history, RouterContext } from \"./context\";\nimport { Route } from \"./route\";\nimport { Link } from \"./link\";\nimport { match } from \"path-to-regexp\";\n\nclass Router extends Component {\n constructor(props) {\n super(props);\n\n // Convert our routes into an array for easy 404 checking\n this.routes = Object.keys(props.routes).map(\n (key) => props.routes[key].path\n );\n\n // Listen for path changes from the history API\n this.unlisten = history.listen(this.handleRouteChange);\n\n const route = locationToRoute(history.location);\n\n // Define the initial RouterContext value\n this.state = {\n route,\n defaultRoute: props?.defaultRoute ? `#${props?.defaultRoute}` : \"#/\",\n };\n }\n\n componentWillUnmount() {\n // Stop listening for changes if the Router component unmounts\n this.unlisten();\n }\n\n handleRouteChange = (location) => {\n const route = locationToRoute(location?.location);\n this.setState({ route: route });\n };\n\n render() {\n // Define our variables\n const { children, NotFound } = this.props;\n const { route, defaultRoute } = this.state;\n\n if (!route.hash) {\n history.push(defaultRoute);\n return <div></div>;\n }\n\n let matched = false;\n // match route\n (this.routes || []).forEach((name) => {\n const checkMatch = match(route.hash.substr(1));\n const isMatched = checkMatch(`${route.hash.substr(1)}`);\n if (!isMatched) {\n return;\n }\n matched = {\n name,\n data: isMatched,\n };\n });\n\n const routerContextValue = { route, matched };\n\n // Check if 404 if no route matched\n const is404 = !matched;\n\n return (\n <RouterContext.Provider value={routerContextValue}>\n {is404 ? <div>Not found</div> : children}\n </RouterContext.Provider>\n );\n }\n}\nexport { history, RouterContext, Router, Route, Link };\n","export default ({ width, height }) => {\n return (\n <svg\n id=\"e8f68bdd-4984-4f2e-95b7-7fc8ec281257\"\n data-name=\"Layer 1\"\n width={width}\n height={height}\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 0 918.14 765.54\"\n >\n <defs>\n <linearGradient\n id=\"27aa7b70-b106-4a00-be67-693c8380e41d\"\n x1=\"397.74\"\n y1=\"717.25\"\n x2=\"397.74\"\n y2=\"86.11\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stop-color=\"gray\" stop-opacity=\"0.25\" />\n <stop offset=\"0.54\" stop-color=\"gray\" stop-opacity=\"0.12\" />\n <stop offset=\"1\" stop-color=\"gray\" stop-opacity=\"0.1\" />\n </linearGradient>\n <linearGradient\n id=\"46a816da-c484-41ec-8a6f-fbf14454d910\"\n x1=\"288.88\"\n y1=\"378.44\"\n x2=\"288.88\"\n y2=\"209.65\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"32b634d8-28f1-48d9-a868-f602a2cad942\"\n x1=\"288.88\"\n y1=\"328.29\"\n x2=\"288.88\"\n y2=\"223.1\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"354.51\"\n y=\"291.55\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"38f1cb81-8fac-4205-a0ff-a33ac00d354c\"\n x1=\"288.88\"\n y1=\"594.94\"\n x2=\"288.88\"\n y2=\"426.14\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"6fc01aaf-135e-403e-a209-43b2a4fe59f1\"\n x1=\"288.88\"\n y1=\"544.79\"\n x2=\"288.88\"\n y2=\"439.6\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"79ce363a-d134-40e4-9f82-b96d04a36978\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"5b44e697-61fe-43bd-9a58-5f3e41301748\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"354.51\"\n y=\"508.05\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"54803c44-522d-4b9e-9a34-f1f7b43e8483\"\n x1=\"671.57\"\n y1=\"760.34\"\n x2=\"671.57\"\n y2=\"129.2\"\n gradientTransform=\"translate(1109.43 -194.1) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"089a6a47-adaa-499b-aefb-cd6464b62fb8\"\n x1=\"670.96\"\n y1=\"553.63\"\n x2=\"670.96\"\n y2=\"387.28\"\n gradientTransform=\"translate(1129.51 -168.41) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"fd8d88e0-7826-450d-9e0b-001d1be709c2\"\n x1=\"637.66\"\n y1=\"754.12\"\n x2=\"637.66\"\n y2=\"601.05\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"8d1793c5-b76e-44e2-a52e-569460402331\"\n x1=\"778.37\"\n y1=\"673.86\"\n x2=\"778.37\"\n y2=\"569.13\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"4745700d-8097-45ff-9f71-625443fc4ad8\"\n x1=\"778.37\"\n y1=\"774.41\"\n x2=\"778.37\"\n y2=\"713.66\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n </defs>\n <title>secure data</title>\n <g opacity=\"0.5\">\n <rect\n x=\"162.9\"\n y=\"86.11\"\n width=\"469.69\"\n height=\"631.14\"\n fill=\"url(#27aa7b70-b106-4a00-be67-693c8380e41d)\"\n />\n </g>\n <rect\n x=\"169.02\"\n y=\"94.67\"\n width=\"455.01\"\n height=\"609.12\"\n fill=\"#f2f2f2\"\n />\n <rect x=\"204.49\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect\n x=\"204.49\"\n y=\"142.37\"\n width=\"156.56\"\n height=\"4.89\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect x=\"384.29\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"259.8\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"273.25\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"286.7\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"476.29\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"489.75\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"503.2\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"209.65\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#46a816da-c484-41ec-8a6f-fbf14454d910)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"213.32\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"223.1\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#32b634d8-28f1-48d9-a868-f602a2cad942)\"\n />\n </g>\n <rect\n id=\"689f37f3-cc41-448d-b172-63ec123bc985\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"213.58\"\n y=\"224.32\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)\">\n <polygon\n points=\"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18\"\n fill=\"#6c63ff\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"239\" r=\"11.01\" fill=\"#6c63ff\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"426.14\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"429.81\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"439.6\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)\"\n />\n </g>\n <rect\n id=\"b429ac3a-f8a8-4171-bcce-5b6c002c0714\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"213.58\"\n y=\"440.82\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#79ce363a-d134-40e4-9f82-b96d04a36978)\">\n <polygon\n points=\"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67\"\n fill=\"#bdbdbd\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"455.5\" r=\"11.01\" fill=\"#bdbdbd\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"349.09\"\n y=\"242.63\"\n width=\"631.14\"\n height=\"469.69\"\n transform=\"translate(-74.16 969.06) rotate(-78.76)\"\n fill=\"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)\"\n />\n </g>\n <rect\n x=\"359.37\"\n y=\"247.33\"\n width=\"609.12\"\n height=\"455.01\"\n transform=\"translate(-72.16 966.22) rotate(-78.76)\"\n fill=\"#fff\"\n />\n <rect\n x=\"523.5\"\n y=\"197.22\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-88.86 -196.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"433.36\"\n y=\"650.7\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-2.18 -170.66) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"428.58\"\n y=\"671.14\"\n width=\"249.52\"\n height=\"4.89\"\n transform=\"translate(1.01 -162.18) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"424.6\"\n y=\"683.47\"\n width=\"92.96\"\n height=\"4.89\"\n transform=\"translate(1.84 -145.91) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"519.57\"\n y=\"209.08\"\n width=\"161.45\"\n height=\"4.89\"\n transform=\"translate(-88.17 -180.2) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"512.84\"\n y=\"249.31\"\n width=\"291.11\"\n height=\"4.89\"\n transform=\"translate(-79.21 -190.76) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"509.47\"\n y=\"255.44\"\n width=\"70.94\"\n height=\"4.89\"\n transform=\"translate(-80.19 -168.52) rotate(11.24)\"\n fill=\"#3ad29f\"\n opacity=\"0.7\"\n />\n <rect\n x=\"501.56\"\n y=\"307.59\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-67.76 -190.54) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"575.87\"\n y=\"357.6\"\n width=\"166.35\"\n height=\"289.88\"\n transform=\"translate(-103.27 983.74) rotate(-78.76)\"\n fill=\"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)\"\n />\n </g>\n <rect\n x=\"516.06\"\n y=\"420.61\"\n width=\"286.22\"\n height=\"162.68\"\n transform=\"translate(-30.42 -186.11) rotate(11.24)\"\n fill=\"#fff\"\n />\n <rect\n x=\"496.08\"\n y=\"335.18\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-62.49 -188.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"547.86\"\n y=\"424.02\"\n width=\"35.47\"\n height=\"118.64\"\n transform=\"translate(-35.84 -168.22) rotate(11.24)\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"606.43\"\n y=\"475.19\"\n width=\"35.47\"\n height=\"79.5\"\n transform=\"translate(-28.56 -179.03) rotate(11.24)\"\n fill=\"#3ad29f\"\n />\n <rect\n x=\"665.23\"\n y=\"523.93\"\n width=\"35.47\"\n height=\"42.81\"\n transform=\"translate(-21.5 -189.92) rotate(11.24)\"\n fill=\"#f55f44\"\n />\n <rect\n x=\"731.91\"\n y=\"492.72\"\n width=\"35.47\"\n height=\"86.84\"\n transform=\"translate(-22.02 -203.09) rotate(11.24)\"\n fill=\"#fdd835\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"128.65\"\n y=\"645.09\"\n width=\"3.67\"\n height=\"20.79\"\n fill=\"#47e6b1\"\n />\n <rect\n x=\"269.58\"\n y=\"712.31\"\n width=\"3.67\"\n height=\"20.79\"\n transform=\"translate(853.2 384.07) rotate(90)\"\n fill=\"#47e6b1\"\n />\n </g>\n <path\n d=\"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#4d8af0\"\n opacity=\"0.5\"\n />\n <path\n d=\"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <path\n d=\"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <circle cx=\"337.81\" cy=\"28.62\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"7.34\" cy=\"317.46\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"863.76\" cy=\"120.36\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"822.17\" cy=\"339.3\" r=\"7.34\" fill=\"#4d8af0\" opacity=\"0.5\" />\n <circle cx=\"37.68\" cy=\"145.22\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"853.29\" cy=\"647.34\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"910.8\" cy=\"430.97\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <rect\n x=\"544.42\"\n y=\"601.05\"\n width=\"186.48\"\n height=\"153.07\"\n fill=\"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)\"\n />\n <path\n d=\"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#8d1793c5-b76e-44e2-a52e-569460402331)\"\n />\n <path\n d=\"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"631.77\"\n width=\"182.24\"\n height=\"90.07\"\n fill=\"#6c63ff\"\n />\n <path\n d=\"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#4745700d-8097-45ff-9f71-625443fc4ad8)\"\n />\n <path\n d=\"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z\"\n transform=\"translate(-140.93 -67.23)\"\n opacity=\"0.2\"\n />\n </svg>\n );\n};\n","const { __ } = wp.i18n;\n\nimport Illustration from \"./illustration\";\nconst { Flex, FlexItem, FlexBlock } = wp.components;\n\nexport default () => {\n return (\n <Flex style={{ padding: \"30px\", background: \"#fff\" }}>\n <FlexItem>\n <Illustration width=\"250px\" />\n </FlexItem>\n <FlexBlock style={{ marginLeft: \"20px\" }}>\n <h1>{__(\"Get detailed video insights.\", \"presto-player\")}</h1>\n <p>\n {__(\n \"Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.\",\n \"presto-player\"\n )}\n </p>\n <a\n href=\"https://prestoplayer.com\"\n target=\"_blank\"\n className=\"button button-primary\"\n >\n {__(\"Learn More\", \"presto-player\")}\n </a>\n </FlexBlock>\n </Flex>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { __ } = wp.i18n;\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [page, setPage] = useState(1);\n const [total, setTotal] = useState(0);\n const [totalPages, setTotalPages] = useState(0);\n const [data, setData] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n page,\n per_page: 5,\n ...params,\n }),\n parse: false,\n }).then((res) => {\n const total = res.headers\n ? parseInt(res.headers.get(\"X-WP-Total\"))\n : 0;\n const totalPages = res.headers\n ? parseInt(res.headers.get(\"X-WP-TotalPages\"))\n : 0;\n setTotal(total);\n setTotalPages(totalPages);\n return res.json();\n });\n\n setData(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n page={page}\n setPage={setPage}\n total={total}\n setTotal={setTotal}\n totalPages={totalPages}\n setTotalPages={setTotalPages}\n data={data}\n setData={setData}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withDataList\"\n );\n","const { __, sprintf } = wp.i18n;\n\nexport const humanSeconds = (savedSeconds) => {\n const hours = Math.floor(savedSeconds / 60 / 60);\n const minutes = Math.floor(savedSeconds / 60) - hours * 60;\n const seconds = savedSeconds % 60;\n\n let out = \"\";\n if (hours) {\n out += sprintf(__(\"%d hours\", \"presto-player\"), hours) + \", \";\n }\n if (minutes) {\n out += sprintf(__(\"%d minutes\", \"presto-player\"), minutes) + \" \";\n }\n if ((hours || minutes) && seconds) {\n out += __(\"and\", \"presto-player\") + \" \";\n }\n\n out += sprintf(__(\"%d seconds\", \"presto-player\"), seconds);\n\n return out;\n};\n\nexport const timestamp = (seconds) => {\n seconds = parseInt(seconds || 0) * 1000;\n return new Date(seconds).toISOString().substr(11, 8);\n};\n\n/*\n * This function remove the user timezone from new Date()\n * https://stackoverflow.com/a/29774197/1972413\n*/\nexport const convertDateTimeToAbsoluteDate = (dateTime) => {\n const offset = new Date().getTimezoneOffset()\n var date = new Date(dateTime.getTime() - (offset*60*1000))\n return date.toISOString().split('T')[0]+'T00:00:00.000Z';\n}\n","const { Spinner, Flex, FlexItem } = wp.components;\nexport default ({ height = 100 }) => {\n return (\n <Flex style={{ height: `${height}px` }} align=\"center\" justify=\"center\">\n <FlexItem>\n <Spinner />\n </FlexItem>\n </Flex>\n );\n};\n","const { __ } = wp.i18n;\nconst { Card, CardBody, Flex, FlexBlock, Button, ButtonGroup } = wp.components;\nconst { useState, useEffect } = wp.element;\n\nexport default ({ page, setPage, perPage, total, totalPages }) => {\n // do we have prev/next\n const [hasPrevious, setHasPrevious] = useState(false);\n const [hasNext, setHasNext] = useState(false);\n\n // end and start cursors\n const [end, setEnd] = useState(0);\n const [start, setStart] = useState(0);\n\n // set end and start\n useEffect(() => {\n setEnd(Math.min(perPage * page, total));\n setStart(perPage * (page - 1) + 1);\n }, [perPage, page, total]);\n\n // update page when pagination is clicked\n const nextPage = () => {\n setPage(Math.min(totalPages, page + 1));\n };\n const prevPage = () => {\n setPage(Math.max(page - 1, 0));\n };\n\n // set prev/next\n useEffect(() => {\n setHasPrevious(page - 1 > 0);\n setHasNext(totalPages >= page + 1);\n }, [page, totalPages]);\n\n return (\n <Card size=\"large\" className=\"presto-card pagination\">\n <CardBody className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n {sprintf(\n __(\"Showing %1s to %2s of %3s\", \"presto-player\"),\n start,\n end,\n total\n )}\n </FlexBlock>\n <FlexBlock>\n <Flex justify=\"flex-end\">\n {\n <ButtonGroup>\n <Button\n isSecondary\n disabled={!hasPrevious}\n onClick={prevPage}\n >\n {__(\"Previous\", \"presto-player\")}\n </Button>\n <Button isSecondary disabled={!hasNext} onClick={nextPage}>\n {__(\"Next\", \"presto-player\")}\n </Button>\n </ButtonGroup>\n }\n </Flex>\n </FlexBlock>\n </Flex>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\nconst { Card, CardBody ,Flex, FlexBlock, Button, ButtonGroup } = wp.components;\n\nimport classNames from 'classnames';\n\nexport default ({ columns , data , onRowClick , title }) => {\n\n if (!data.length) {\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <table role=\"table\" className={classNames('presto-table', { 'is-clickable': onRowClick })}>\n <thead role=\"rowgroup\">\n <tr role=\"row\">\n {columns && columns.map((column) => {\n return (\n <th key={column.key} role=\"columnheader\">\n {column.label}\n </th>\n );\n })}\n </tr>\n </thead>\n\n <tbody role=\"rowgroup\">\n {data.map((row , rowIndex) => {\n return (\n <tr role=\"row\" key={`row-${rowIndex}`}\n onClick={() => onRowClick && onRowClick(row)}\n >\n {columns.map((column , columnIndex ) => {\n return (\n <td role=\"cell\" data-title={column.label} key={`row-${rowIndex}-${columnIndex}`} aria-label={column.label}>\n {column.render ? column.render(row) : (<div>{column.value(row)}</div>)}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect, useState } = wp.element;\nconst { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\nimport Pagination from \"@/admin/ui/Pagination\";\nimport Table from \"@/admin/ui/Table\";\n\nexport default ({\n perPage = 10,\n title,\n page,\n setPage,\n loading,\n total,\n totalPages,\n columns,\n data,\n onSelect,\n}) => {\n if (loading) {\n return (\n <Card>\n <Loading />\n </Card>\n );\n }\n\n if (!data?.length) {\n return (\n <Card size=\"large\" className=\"presto-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">{title}</div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <div className=\"datatable\">\n <Table\n data={data}\n columns={columns}\n perPage={perPage}\n onRowClick={onSelect}\n title={title}\n />\n\n {!!total && (\n <Pagination\n page={page}\n setPage={setPage}\n perPage={perPage}\n total={total}\n totalPages={totalPages}\n />\n )}\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n }) => {\n // 10 per page\n const per_page = 5;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-users\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n },\n });\n }, [page, startDate, endDate]);\n\n // navigate to user screen here\n const navigate = (id) => {\n history.push(`#/user/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n value: (row) => row?.user?.name,\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value: (row) => row?.stats?.[0]?.data,\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render: (row) => (\n <div className=\"presto-badge\">{row?.stats?.[1]?.data}</div>\n ),\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Users\", \"presto-player\")}\n page={page}\n perPage={per_page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => navigate(row?.user?.id)}\n />\n );\n }\n);\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n userId\n }) => {\n // 10 per page\n const per_page = 10;\n\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-videos\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n ...(userId ? { user_id: userId }: {})\n },\n });\n }, [page, startDate, endDate]);\n\n const navigate = (id) => {\n history.push(`#/video/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n render(row) {\n return (\n <h3 style={{ marginBottom: 0, wordBreak:'break-all' }}>\n {row.video.title\n ? row.video.title\n : __(\"Untitled\", \"presto-player\")}\n </h3>\n );\n },\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value(row) {\n return row.stats[0].data;\n },\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render(row) {\n return <div className=\"presto-badge\">{row.stats[1].data}</div>;\n },\n },\n {\n key: \"view_more\",\n label: \"\",\n render(row) {\n return (\n <span\n style={{\n color: \"var(--wp-admin-theme-color, #007cba)\",\n }}\n >\n {__(\"View Details\", \"presto-player\")} &rarr;\n </span>\n );\n },\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Videos\", \"presto-player\")}\n perPage={per_page}\n page={page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => {\n navigate(row?.video?.id);\n }}\n />\n );\n }\n);\n","// import apiFetch from \"@wordpress/api-fetch\";\nconst { apiFetch } = wp;\n\n// nonce and root\napiFetch.use(apiFetch.createNonceMiddleware(prestoPlayer.nonce));\napiFetch.use(\n apiFetch.createRootURLMiddleware(\n prestoPlayer.root + prestoPlayer.prestoVersionString\n )\n);\n\nexport default apiFetch;\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [totalViews, setTotalViews] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n min: 0,\n labels: {\n formatter: function (num) {\n if (num < 1) {\n return 0;\n }\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k\"\n : Math.sign(num) * Math.abs(num).toFixed(0);\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchViews();\n }, [props]);\n\n const fetchViews = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/views?\" +\n jQuery.param({\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n }),\n parse: false,\n })\n .then(async (res) => {\n setTotalViews(res.headers && res.headers.get(\"X-WP-Total\"));\n const data = await res.json();\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Views\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(__(\"%d Unique Views\", \"presto-player\"), totalViews)}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, humanSeconds } from \"../util\";\n\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [averageTime, setAverageTime] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n labels: {\n formatter: function (num) {\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k min\"\n : (Math.sign(num) * Math.abs(num)).toFixed(1) + \"min\";\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchMinutes();\n }, [props]);\n\n const fetchMinutes = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/watch-time?\" +\n jQuery.param({\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }),\n parse: false,\n })\n .then(async (res) => {\n const { data, average } = await res.json();\n\n setAverageTime(parseFloat(average));\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: (item.total / 60).toFixed(2),\n });\n });\n }\n setSeries([\n {\n name: \"Watch Time\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(\n __(\"%s average watch time\", \"presto-player\"),\n humanSeconds(averageTime)\n )}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __ } = wp.i18n;\nconst { Panel, TabPanel } = wp.components;\n\nimport TotalViewsGraph from \"./TotalViewsGraph\";\nimport TotalWatchGraph from \"./TotalWatchGraph\";\n\nexport default ({ startDate, endDate }) => {\n return (\n <Panel>\n <TabPanel\n className=\"presto-module-tabs\"\n onSelect={() => {}}\n tabs={[\n {\n name: \"views\",\n title: __(\"Views\", \"presto-player\"),\n },\n {\n name: \"watch\",\n title: __(\"Watch Time\", \"presto-player\"),\n },\n ]}\n >\n {(tab) => {\n switch (tab.name) {\n case \"views\":\n return (\n <TotalViewsGraph startDate={startDate} endDate={endDate} />\n );\n case \"watch\":\n return (\n <TotalWatchGraph startDate={startDate} endDate={endDate} />\n );\n default:\n return <>Not Found</>;\n }\n }}\n </TabPanel>\n </Panel>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\n\nimport Litepicker from \"litepicker\";\nimport \"litepicker/dist/plugins/ranges\";\n\nexport default ({ startDate, setStartDate, endDate, setEndDate }) => {\n const dateRef = useRef();\n const [inputSize, setInputSize] = useState(25);\n\n let datepicker;\n useEffect(() => {\n datepicker = new Litepicker({\n element: dateRef?.current,\n singleMode: false,\n format: \"MMMM D YYYY\",\n autoApply: false,\n plugins: [\"ranges\"],\n maxDate: new Date(),\n numberOfMonths: 2,\n buttonText: {\n apply: __(\"Apply\", \"presto-player\"),\n cancel: __(\"Cancel\", \"presto-player\"),\n },\n dropdowns: {\n minYear: 1990,\n maxYear: null,\n months: true,\n years: true,\n },\n setup: (picker) => {\n picker.setDateRange(startDate, endDate);\n picker.on(\"button:apply\", (start, end) => {\n setStartDate(start.dateInstance);\n setEndDate(end.dateInstance);\n setInputSize(dateRef.current.value.length);\n });\n },\n });\n }, [dateRef]);\n\n return (\n <div className=\"component-base-control\">\n <div className=\"components-base-control__field\">\n <input\n className=\"components-text-control__input presto-settings__date-select\"\n ref={dateRef}\n size={inputSize}\n />\n </div>\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { Flex, FlexBlock, FlexItem } = wp.components;\nconst { useState } = wp.element;\n\nimport TopUsers from \"../components/TopUsers\";\nimport TopVideos from \"../components/TopVideos\";\nimport OverviewPanel from \"../components/OverviewPanel\";\nimport DatePicker from \"../components/DatePicker\";\n\nexport default function ({ startDate, endDate, setStartDate, setEndDate }) {\n return (\n <>\n <Flex>\n <FlexBlock>\n <h1>{__(\"Analytics\", \"presto-player\")}</h1>\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-flow\">\n <div className=\"presto-dashboard\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <OverviewPanel startDate={startDate} endDate={endDate} />\n </div>\n <div className=\"presto-dashboard__item\">\n <TopUsers startDate={startDate} endDate={endDate} />\n </div>\n </div>\n\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos startDate={startDate} endDate={endDate} />\n </div>\n </div>\n </div>\n </div>\n </>\n );\n}\n","const { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\n\nexport default ({ loading, title , value, label }) => {\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card className=\"presto-player__stat-card\">\n <CardBody>\n <div className=\"presto-subtitle\">{title}</div>\n <h1>{value}</h1>\n <div>{label}</div>\n </CardBody>\n </Card>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [stat, setStat] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n ...params,\n }),\n });\n setStat(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n stat={stat}\n setStat={setStat}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withStat\"\n );\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat?.view)}\n title={__(\"Total Views\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Total Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","/** @jsx jsx */\n\nconst { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button } = wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport TopVideos from \"../components/TopVideos\";\nimport TotalVideoViewsByUser from \"../components/TotalVideoViewsByUser\";\nimport VideoAverageWatchTimeByUser from \"../components/VideoAverageWatchTimeByUser\";\nimport VideoTotalWatchTimeByUser from \"../components/VideoTotalWatchTimeByUser\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nimport { css, jsx } from \"@emotion/core\";\n\nconst User = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [user, setUser] = useState({});\n const [error, setError] = useState(\"\");\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getUser = async () => {\n setLoading(true);\n try {\n let user = await apiFetch({\n url: `/wp-json/wp/v2/users/${route?.params?.id}?context=edit`,\n });\n setUser(user);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"User Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n getUser();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n &larr; {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>\n {loading ? (\n <Spinner />\n ) : (\n <div\n css={css`\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n `}\n >\n <div>\n <h1 className=\"presto-dashboard__title\">{user?.name}</h1>\n <p\n css={css`\n margin-top: -10px;\n opacity: 0.65;\n `}\n >\n {user?.email}\n </p>\n </div>\n {!!user.id && (\n <div\n className=\"presto__edit-user-button\"\n css={css`\n margin: 0 20px;\n `}\n >\n <Button\n href={`/wp-admin/user-edit.php?user_id=${user?.id}`}\n isSecondary\n isSmall\n >\n {__(\"View Profile\", \"presto-player\")} &rarr;\n </Button>\n </div>\n )}\n </div>\n )}\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item\">\n <TotalVideoViewsByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoTotalWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos\n startDate={startDate}\n endDate={endDate}\n userId={route?.params?.id}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default User;\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, timestamp } from \"../util\";\n\n\nexport default (props) => {\n const { video_id, startDate, endDate } = props;\n const [loading, setLoading] = useState(true);\n\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const fetchTimeline = () => {\n setLoading(true);\n apiFetch({\n path: wp.url.addQueryArgs(\n `/presto-player/v1/analytics/video/${video_id}/timeline`,\n {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }\n ),\n })\n .then((data) => {\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n // add another to them\n series.push({\n x: item.watch_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Viewers\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n useEffect(() => {\n fetchTimeline();\n }, [startDate, endDate]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n tickAmount: 1,\n yaxis: {\n labels: {\n formatter: function (num) {\n return parseInt(num);\n },\n },\n },\n xaxis: {\n labels: {\n formatter: function (num) {\n return timestamp(num);\n },\n },\n },\n colors: [\"#7c3aed\"],\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card>\n <CardBody>\n <div className=\"presto-card__title\">\n {__(\"Audience Retention\", \"presto-player\")}\n </div>\n <Chart\n options={chart.options}\n series={series}\n type=\"area\"\n height={280}\n />\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Unique Views\", \"presto-player\")}\n />\n );\n});\n","import { PrestoPlayer } from \"@presto-player/react\";\n\nconst { useSelect } = wp.data;\n\nexport default ({ src, preset, branding, attributes, adminPreview, type }) => {\n const { chapters, mutedOverlay, mutedPreview } = attributes;\n\n const youtube = useSelect((select) => {\n return select(\"presto-player/player\")?.youtube();\n });\n\n const css = useSelect((select) => {\n return select(\"presto-player/player\")?.playerCSS();\n });\n\n const mutedOverlayContent = () => {\n return (\n <div\n className=\"presto-player__overlay is-image\"\n style={{\n position: \"absolute\",\n width: `${mutedOverlay?.width || 100}%`,\n left: `${(mutedOverlay?.focalPoint?.x || 0.5) * 100}%`,\n top: `${(mutedOverlay?.focalPoint?.y || 0.5) * 100}%`,\n }}\n >\n <img\n src={mutedOverlay?.src}\n style={{\n transform: \"translateX(-50%) translateY(-50%)\",\n }}\n />\n </div>\n );\n };\n\n return (\n <div\n className=\"wp-block-video presto-block-video\"\n style={{\n \"--presto-player-border-radius\": `${preset?.border_radius}px`,\n ...(preset?.caption_background\n ? { \"--plyr-captions-background\": preset.caption_background }\n : {}),\n ...(branding?.color ? { \"--plyr-color-main\": branding.color } : {}),\n \"--presto-player-email-border-radius\": `${\n preset?.email_collection?.border_radius || 0\n }px`,\n \"--presto-player-logo-width\": `${branding?.logo_width || 75}px`,\n }}\n >\n <PrestoPlayer\n src={src}\n css={css}\n isAdmin={true}\n preload=\"metadata\"\n preset={preset}\n bunny={{\n thumbnail: attributes?.previewThumbnail,\n preview: attributes?.preview,\n }}\n youtube={{\n channelId: youtube?.channel_id,\n }}\n tracks={\n !!preset?.captions && [\n {\n kind: \"captions\",\n label: \"English\",\n srclang: \"en\",\n src: \"/path/to/captions.en.vtt\",\n default: true,\n },\n ]\n }\n branding={branding}\n chapters={chapters}\n blockAttributes={attributes}\n poster={attributes.poster}\n provider={type}\n >\n <div slot=\"player-end\">\n {mutedPreview?.enabled &&\n mutedOverlay?.enabled &&\n mutedOverlayContent()}\n {adminPreview}\n </div>\n </PrestoPlayer>\n </div>\n );\n};\n","const { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button, TextControl } =\n wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport VideoAverageWatchTime from \"../components/VideoAverageWatchTime\";\nimport VideoTimeline from \"../components/VideoTimeline\";\nimport VideoViews from \"../components/VideoViews\";\nimport Player from \"../../blocks/shared/Player\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nconst Video = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [video, setVideo] = useState({});\n const [error, setError] = useState(\"\");\n const [thisName, setThisName] = useState(null);\n const [editing, setEditing] = useState(false);\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getVideo = async () => {\n setLoading(true);\n try {\n let video = await apiFetch({\n url: `${prestoPlayer?.root}${prestoPlayer?.prestoVersionString}videos/${route?.params?.id}`,\n });\n setVideo(video);\n setThisName(video?.title);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"Video Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n const putVideo = async () => {\n console.log(`New Video title ${thisName}`);\n setLoading(true);\n try {\n const data = {\n ...video,\n ...{ title: thisName },\n };\n let saved = await wp.apiFetch({\n method: \"POST\",\n url: wp.url.addQueryArgs(\n `${prestoPlayer.root}${prestoPlayer.prestoVersionString}videos/${video.id}`,\n { _method: \"PUT\" }\n ),\n data,\n });\n\n if (!saved) {\n throw genericError;\n }\n setEditing(false);\n setVideo(saved);\n } catch (e) {\n setError(e?.message ? e.message : genericError);\n } finally {\n setLoading(false);\n }\n };\n\n const cancelEditing = () => {\n setThisName(video?.title);\n setEditing(false);\n };\n\n const renderVideoEditableTitle = () => {\n if (loading) {\n return <Spinner />;\n } else if (editing) {\n return (\n <div className=\"presto-inline-edit presto-inline-edit--editing\">\n <TextControl\n className=\"presto-inline-edit__input\"\n type=\"text\"\n value={thisName}\n onChange={(title) => setThisName(title)}\n />\n <Button\n className=\"presto-inline-edit__button\"\n isPrimary\n onClick={putVideo}\n >\n {\" \"}\n Save{\" \"}\n </Button>\n <Button\n className=\"presto-inline-edit__button\"\n isSecondary\n onClick={cancelEditing}\n >\n {\" \"}\n Cancel{\" \"}\n </Button>\n </div>\n );\n } else {\n return (\n <div className=\"presto-inline-edit\">\n <h1 className=\"presto-dashboard__title presto-inline-edit__text\">\n {video?.title}\n </h1>\n\n <button\n className=\"presto-inline-edit__edit\"\n onClick={() => setEditing(true)}\n >\n <span className=\"dashicon dashicons dashicons-edit\"></span>\n </button>\n </div>\n );\n }\n };\n\n useEffect(() => {\n getVideo();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n &larr; {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>{renderVideoEditableTitle()}</FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoViews\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n {!!Object.keys(video || {}).length && (\n <Player\n src={video?.src}\n attributes={{}}\n type={video?.type}\n preset={{\n \"play-large\": true,\n play: true,\n progress: true,\n \"current-time\": true,\n }}\n />\n )}\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTime\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoTimeline\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default Video;\n","export const routes = {\n dashboard: {\n path: \"/\",\n },\n video: {\n path: \"/video/:id\",\n },\n user: {\n path: \"/user/:id\",\n },\n};\n","const { useState } = wp.element;\n\nimport { Route, Router } from \"@/router\";\n\nimport AnalyticsUpgrade from \"./pages/AnalyticsUpgrade\";\nimport Dashboard from \"./pages/Dashboard\";\n\nimport User from \"./pages/User\";\nimport Video from \"./pages/Video\";\nimport { routes } from \"./routes\";\n\nexport default () => {\n const scrollToTop = () => {\n window.scrollTo(0, 0);\n };\n\n const [startDate, setStartDate] = useState(\n new Date(Date.now() - 7 * 24 * 60 * 60 * 1000)\n );\n const [endDate, setEndDate] = useState(new Date());\n\n if (!prestoPlayer?.isPremium) {\n return (\n <div className=\"presto-dashboard__content\">\n <AnalyticsUpgrade />\n </div>\n );\n }\n\n return (\n <div className=\"presto-dashboard__content\">\n <Router routes={routes}>\n <Route path={routes.dashboard.path} onRoute={scrollToTop}>\n <Dashboard\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.video.path} onRoute={scrollToTop}>\n <Video\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.user.path} onRoute={scrollToTop}>\n <User\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n </Router>\n </div>\n );\n};\n","const { render } = wp.element;\n\nimport { defineCustomElements } from \"@presto-player/components/dist/custom-elements\";\n\ndefineCustomElements();\n\n/**\n * App\n */\nimport App from \"./App\";\n\n/**\n * styles\n */\nimport \"./analytics.scss\";\n\n/**\n * Render\n */\nrender(<App />, document.getElementById(\"presto-analytics-page\"));\n"],"sourceRoot":""}
dist/analytics/admin-5fb77cbc.js DELETED
@@ -1,19 +0,0 @@
1
- /*!
2
- *
3
- * Presto Player
4
- *
5
- * @author Presto Made, Inc
6
- * @version 0.1.0
7
- * @link undefined
8
- * @license GPL
9
- *
10
- * Copyright (c) 2021 Presto Made, Inc
11
- *
12
- * This software is released under the GPL License
13
- * https://opensource.org/licenses/GPL
14
- *
15
- * Compiled with the help of https://wpack.io
16
- * A zero setup Webpack Bundler Script for WordPress
17
- */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[1],{33:function(e,t,a){a(34),e.exports=a(49)},36:function(e,t){function a(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}a.keys=function(){return[]},a.resolve=a,e.exports=a,a.id=36},49:function(e,t,a){"use strict";a.r(t);var r=a(21),n=a(0),c=a(25),l=a(26),o=a(15),i=a(27),s=a(28),p=a(20),d=a(4),u=a(29),m=a.n(u);function f(e){return{path:e.pathname,hash:e.hash,query:m.a.parse(e.search)}}var h=a(32),b=Object(h.a)(),y=wp.element.createContext({route:f(b.location)}),v=a(10),w=wp.element.useContext,E="";function g(e){var t=e.path,a=e.onRoute,r=e.children,n=w(y).route,c=Object(v.a)("".concat(t))("".concat(n.hash.substr(1)));return c?(a&&(E!==c.path&&a(),E=c.path),React.createElement("div",null,wp.element.cloneElement(r,{route:c}))):null}var R=a(17),O=a.n(R);wp.element.useContext;function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var a,r=Object(p.a)(e);if(t){var n=Object(p.a)(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return Object(s.a)(this,a)}}var x=function(e){Object(i.a)(a,e);var t=j(a);function a(e){var r;Object(c.a)(this,a),r=t.call(this,e),Object(d.a)(Object(o.a)(r),"handleRouteChange",(function(e){var t=f(null==e?void 0:e.location);r.setState({route:t})})),r.routes=Object.keys(e.routes).map((function(t){return e.routes[t].path})),r.unlisten=b.listen(r.handleRouteChange);var n=f(b.location);return r.state={route:n,defaultRoute:null!=e&&e.defaultRoute?"#".concat(null==e?void 0:e.defaultRoute):"#/"},r}return Object(l.a)(a,[{key:"componentWillUnmount",value:function(){this.unlisten()}},{key:"render",value:function(){var e=this.props,t=e.children,a=(e.NotFound,this.state),r=a.route,n=a.defaultRoute;if(!r.hash)return b.push(n),React.createElement("div",null);var c=!1;(this.routes||[]).forEach((function(e){var t=Object(v.a)(r.hash.substr(1))("".concat(r.hash.substr(1)));t&&(c={name:e,data:t})}));var l={route:r,matched:c},o=!c;return React.createElement(y.Provider,{value:l},o?React.createElement("div",null,"Not found"):t)}}]),a}(wp.element.Component),_=function(e){var t=e.width,a=e.height;return React.createElement("svg",{id:"e8f68bdd-4984-4f2e-95b7-7fc8ec281257","data-name":"Layer 1",width:t,height:a,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 918.14 765.54"},React.createElement("defs",null,React.createElement("linearGradient",{id:"27aa7b70-b106-4a00-be67-693c8380e41d",x1:"397.74",y1:"717.25",x2:"397.74",y2:"86.11",gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:"0","stop-color":"gray","stop-opacity":"0.25"}),React.createElement("stop",{offset:"0.54","stop-color":"gray","stop-opacity":"0.12"}),React.createElement("stop",{offset:"1","stop-color":"gray","stop-opacity":"0.1"})),React.createElement("linearGradient",{id:"46a816da-c484-41ec-8a6f-fbf14454d910",x1:"288.88",y1:"378.44",x2:"288.88",y2:"209.65",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"32b634d8-28f1-48d9-a868-f602a2cad942",x1:"288.88",y1:"328.29",x2:"288.88",y2:"223.1",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba","data-name":"<Rectangle>",x:"354.51",y:"291.55",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"38f1cb81-8fac-4205-a0ff-a33ac00d354c",x1:"288.88",y1:"594.94",x2:"288.88",y2:"426.14",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"6fc01aaf-135e-403e-a209-43b2a4fe59f1",x1:"288.88",y1:"544.79",x2:"288.88",y2:"439.6",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("clipPath",{id:"79ce363a-d134-40e4-9f82-b96d04a36978",transform:"translate(-140.93 -67.23)"},React.createElement("rect",{id:"5b44e697-61fe-43bd-9a58-5f3e41301748","data-name":"<Rectangle>",x:"354.51",y:"508.05",width:"150.6",height:"101.52",fill:"#fff"})),React.createElement("linearGradient",{id:"54803c44-522d-4b9e-9a34-f1f7b43e8483",x1:"671.57",y1:"760.34",x2:"671.57",y2:"129.2",gradientTransform:"translate(1109.43 -194.1) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"089a6a47-adaa-499b-aefb-cd6464b62fb8",x1:"670.96",y1:"553.63",x2:"670.96",y2:"387.28",gradientTransform:"translate(1129.51 -168.41) rotate(90)",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"fd8d88e0-7826-450d-9e0b-001d1be709c2",x1:"637.66",y1:"754.12",x2:"637.66",y2:"601.05",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"8d1793c5-b76e-44e2-a52e-569460402331",x1:"778.37",y1:"673.86",x2:"778.37",y2:"569.13",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"}),React.createElement("linearGradient",{id:"4745700d-8097-45ff-9f71-625443fc4ad8",x1:"778.37",y1:"774.41",x2:"778.37",y2:"713.66",xlinkHref:"#27aa7b70-b106-4a00-be67-693c8380e41d"})),React.createElement("title",null,"secure data"),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"162.9",y:"86.11",width:"469.69",height:"631.14",fill:"url(#27aa7b70-b106-4a00-be67-693c8380e41d)"})),React.createElement("rect",{x:"169.02",y:"94.67",width:"455.01",height:"609.12",fill:"#f2f2f2"}),React.createElement("rect",{x:"204.49",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"204.49",y:"142.37",width:"156.56",height:"4.89",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"384.29",y:"120.36",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"259.8",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"273.25",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"286.7",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"408.75",y:"476.29",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"412.42",y:"489.75",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("rect",{x:"419.76",y:"503.2",width:"156.56",height:"4.89",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"209.65",width:"166.35",height:"168.79",fill:"url(#46a816da-c484-41ec-8a6f-fbf14454d910)"})),React.createElement("rect",{x:"206.76",y:"213.32",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"223.1",width:"152.7",height:"105.19",fill:"url(#32b634d8-28f1-48d9-a868-f602a2cad942)"})),React.createElement("rect",{id:"689f37f3-cc41-448d-b172-63ec123bc985","data-name":"<Rectangle>",x:"213.58",y:"224.32",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)"},React.createElement("polygon",{points:"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18",fill:"#6c63ff",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"239",r:"11.01",fill:"#6c63ff",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"205.71",y:"426.14",width:"166.35",height:"168.79",fill:"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)"})),React.createElement("rect",{x:"206.76",y:"429.81",width:"163.72",height:"161.45",fill:"#f5f5f5"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"212.53",y:"439.6",width:"152.7",height:"105.19",fill:"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)"})),React.createElement("rect",{id:"b429ac3a-f8a8-4171-bcce-5b6c002c0714","data-name":"<Rectangle>",x:"213.58",y:"440.82",width:"150.6",height:"101.52",fill:"#fff"}),React.createElement("g",{"clip-path":"url(#79ce363a-d134-40e4-9f82-b96d04a36978)"},React.createElement("polygon",{points:"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67",fill:"#bdbdbd",opacity:"0.4"}),React.createElement("circle",{cx:"230.17",cy:"455.5",r:"11.01",fill:"#bdbdbd",opacity:"0.4"})),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"349.09",y:"242.63",width:"631.14",height:"469.69",transform:"translate(-74.16 969.06) rotate(-78.76)",fill:"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)"})),React.createElement("rect",{x:"359.37",y:"247.33",width:"609.12",height:"455.01",transform:"translate(-72.16 966.22) rotate(-78.76)",fill:"#fff"}),React.createElement("rect",{x:"523.5",y:"197.22",width:"322.91",height:"4.89",transform:"translate(-88.86 -196.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"433.36",y:"650.7",width:"322.91",height:"4.89",transform:"translate(-2.18 -170.66) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"428.58",y:"671.14",width:"249.52",height:"4.89",transform:"translate(1.01 -162.18) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"424.6",y:"683.47",width:"92.96",height:"4.89",transform:"translate(1.84 -145.91) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"519.57",y:"209.08",width:"161.45",height:"4.89",transform:"translate(-88.17 -180.2) rotate(11.24)",fill:"#6c63ff",opacity:"0.7"}),React.createElement("rect",{x:"512.84",y:"249.31",width:"291.11",height:"4.89",transform:"translate(-79.21 -190.76) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"509.47",y:"255.44",width:"70.94",height:"4.89",transform:"translate(-80.19 -168.52) rotate(11.24)",fill:"#3ad29f",opacity:"0.7"}),React.createElement("rect",{x:"501.56",y:"307.59",width:"322.91",height:"4.89",transform:"translate(-67.76 -190.54) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"575.87",y:"357.6",width:"166.35",height:"289.88",transform:"translate(-103.27 983.74) rotate(-78.76)",fill:"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)"})),React.createElement("rect",{x:"516.06",y:"420.61",width:"286.22",height:"162.68",transform:"translate(-30.42 -186.11) rotate(11.24)",fill:"#fff"}),React.createElement("rect",{x:"496.08",y:"335.18",width:"322.91",height:"4.89",transform:"translate(-62.49 -188.94) rotate(11.24)",fill:"#e0e0e0"}),React.createElement("rect",{x:"547.86",y:"424.02",width:"35.47",height:"118.64",transform:"translate(-35.84 -168.22) rotate(11.24)",fill:"#6c63ff"}),React.createElement("rect",{x:"606.43",y:"475.19",width:"35.47",height:"79.5",transform:"translate(-28.56 -179.03) rotate(11.24)",fill:"#3ad29f"}),React.createElement("rect",{x:"665.23",y:"523.93",width:"35.47",height:"42.81",transform:"translate(-21.5 -189.92) rotate(11.24)",fill:"#f55f44"}),React.createElement("rect",{x:"731.91",y:"492.72",width:"35.47",height:"86.84",transform:"translate(-22.02 -203.09) rotate(11.24)",fill:"#fdd835"}),React.createElement("g",{opacity:"0.5"},React.createElement("rect",{x:"128.65",y:"645.09",width:"3.67",height:"20.79",fill:"#47e6b1"}),React.createElement("rect",{x:"269.58",y:"712.31",width:"3.67",height:"20.79",transform:"translate(853.2 384.07) rotate(90)",fill:"#47e6b1"})),React.createElement("path",{d:"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z",transform:"translate(-140.93 -67.23)",fill:"#4d8af0",opacity:"0.5"}),React.createElement("path",{d:"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("path",{d:"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z",transform:"translate(-140.93 -67.23)",fill:"#fdd835",opacity:"0.5"}),React.createElement("circle",{cx:"337.81",cy:"28.62",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"7.34",cy:"317.46",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"863.76",cy:"120.36",r:"7.34",fill:"#f55f44",opacity:"0.5"}),React.createElement("circle",{cx:"822.17",cy:"339.3",r:"7.34",fill:"#4d8af0",opacity:"0.5"}),React.createElement("circle",{cx:"37.68",cy:"145.22",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"853.29",cy:"647.34",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("circle",{cx:"910.8",cy:"430.97",r:"7.34",fill:"#47e6b1",opacity:"0.5"}),React.createElement("rect",{x:"544.42",y:"601.05",width:"186.48",height:"153.07",fill:"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)"}),React.createElement("path",{d:"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z",transform:"translate(-140.93 -67.23)",fill:"url(#8d1793c5-b76e-44e2-a52e-569460402331)"}),React.createElement("path",{d:"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z",transform:"translate(-140.93 -67.23)",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#6c63ff"}),React.createElement("rect",{x:"546.32",y:"602.45",width:"182.24",height:"148.73",fill:"#f5f5f5"}),React.createElement("rect",{x:"546.32",y:"631.77",width:"182.24",height:"90.07",fill:"#6c63ff"}),React.createElement("path",{d:"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z",transform:"translate(-140.93 -67.23)",fill:"url(#4745700d-8097-45ff-9f71-625443fc4ad8)"}),React.createElement("path",{d:"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z",transform:"translate(-140.93 -67.23)",opacity:"0.2"}))},D=wp.i18n.__,P=wp.components,k=P.Flex,N=P.FlexItem,S=P.FlexBlock,F=function(){return React.createElement(k,{style:{padding:"30px",background:"#fff"}},React.createElement(N,null,React.createElement(_,{width:"250px"})),React.createElement(S,{style:{marginLeft:"20px"}},React.createElement("h1",null,D("Get detailed video insights.","presto-player")),React.createElement("p",null,D("Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.","presto-player")),React.createElement("a",{href:"https://prestoplayer.com",target:"_blank",className:"button button-primary"},D("Learn More","presto-player"))))},C=a(6),T=a(3),M=a.n(T);function I(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function B(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?I(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):I(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}wp.i18n.__;var V=wp.apiFetch,A=wp.element.useState,H=wp.compose.createHigherOrderComponent,G=function(){return H((function(e){return function(t){var a=A(!1),r=Object(n.a)(a,2),c=r[0],l=r[1],o=A(1),i=Object(n.a)(o,2),s=i[0],p=i[1],d=A(0),u=Object(n.a)(d,2),m=u[0],f=u[1],h=A(0),b=Object(n.a)(h,2),y=b[0],v=b[1],w=A([]),E=Object(n.a)(w,2),g=E[0],R=E[1],O=A(""),j=Object(n.a)(O,2),x=j[0],_=j[1],D=function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,V({path:wp.url.addQueryArgs(a,B({page:s,per_page:5},n)),parse:!1}).then((function(e){var t=e.headers?parseInt(e.headers.get("X-WP-Total")):0,a=e.headers?parseInt(e.headers.get("X-WP-TotalPages")):0;return f(t),v(a),e.json()}));case 5:c=e.sent,R(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&_(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:D,page:s,setPage:p,total:m,setTotal:f,totalPages:y,setTotalPages:v,data:g,setData:R,error:x,setError:_},t))}}),"withDataList")},U=wp.i18n,L=U.__,W=U.sprintf,Z=function(e){var t=(new Date).getTimezoneOffset();return new Date(e.getTime()-60*t*1e3).toISOString().split("T")[0]+"T00:00:00.000Z"},Y=wp.components,z=Y.Spinner,Q=Y.Flex,X=Y.FlexItem,q=function(e){var t=e.height,a=void 0===t?100:t;return React.createElement(Q,{style:{height:"".concat(a,"px")},align:"center",justify:"center"},React.createElement(X,null,React.createElement(z,null)))},J=wp.i18n.__,K=wp.components,$=K.Card,ee=K.CardBody,te=K.Flex,ae=K.FlexBlock,re=K.Button,ne=K.ButtonGroup,ce=wp.element,le=ce.useState,oe=ce.useEffect,ie=function(e){var t=e.page,a=e.setPage,r=e.perPage,c=e.total,l=e.totalPages,o=le(!1),i=Object(n.a)(o,2),s=i[0],p=i[1],d=le(!1),u=Object(n.a)(d,2),m=u[0],f=u[1],h=le(0),b=Object(n.a)(h,2),y=b[0],v=b[1],w=le(0),E=Object(n.a)(w,2),g=E[0],R=E[1];oe((function(){v(Math.min(r*t,c)),R(r*(t-1)+1)}),[r,t,c]);return oe((function(){p(t-1>0),f(l>=t+1)}),[t,l]),React.createElement($,{size:"large",className:"presto-card pagination"},React.createElement(ee,{className:"presto-flow"},React.createElement(te,null,React.createElement(ae,null,sprintf(J("Showing %1s to %2s of %3s","presto-player"),g,y,c)),React.createElement(ae,null,React.createElement(te,{justify:"flex-end"},React.createElement(ne,null,React.createElement(re,{isSecondary:!0,disabled:!s,onClick:function(){a(Math.max(t-1,0))}},J("Previous","presto-player")),React.createElement(re,{isSecondary:!0,disabled:!m,onClick:function(){a(Math.min(l,t+1))}},J("Next","presto-player"))))))))},se=wp.i18n.__,pe=wp.element,de=(pe.useRef,pe.useEffect,pe.useState,wp.components),ue=de.Card,me=de.CardBody,fe=(de.Flex,de.FlexBlock,de.Button,de.ButtonGroup,function(e){var t=e.columns,a=e.data,r=e.onRowClick,n=e.title;return a.length?React.createElement(ue,{size:"large",className:"presto-card table-card"},React.createElement(me,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("table",{role:"table",className:O()("presto-table",{"is-clickable":r})},React.createElement("thead",{role:"rowgroup"},React.createElement("tr",{role:"row"},t&&t.map((function(e){return React.createElement("th",{key:e.key,role:"columnheader"},e.label)})))),React.createElement("tbody",{role:"rowgroup"},a.map((function(e,a){return React.createElement("tr",{role:"row",key:"row-".concat(a),onClick:function(){return r&&r(e)}},t.map((function(t,r){return React.createElement("td",{role:"cell","data-title":t.label,key:"row-".concat(a,"-").concat(r),"aria-label":t.label},t.render?t.render(e):React.createElement("div",null,t.value(e)))})))})))))):React.createElement(ue,{size:"large",className:"presto-card table-card"},React.createElement(me,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},n),React.createElement("div",{style:{opacity:.65}},se("No data available.","presto-player"))))}),he=wp.i18n.__,be=wp.element,ye=(be.useEffect,be.useState,wp.components),ve=ye.Card,we=ye.CardBody,Ee=function(e){var t=e.perPage,a=void 0===t?10:t,r=e.title,n=e.page,c=e.setPage,l=e.loading,o=e.total,i=e.totalPages,s=e.columns,p=e.data,d=e.onSelect;return l?React.createElement(ve,null,React.createElement(q,null)):null!=p&&p.length?React.createElement("div",{className:"datatable"},React.createElement(fe,{data:p,columns:s,perPage:a,onRowClick:d,title:r}),!!o&&React.createElement(ie,{page:n,setPage:c,perPage:a,total:o,totalPages:i})):React.createElement(ve,{size:"large",className:"presto-card"},React.createElement(we,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},r),React.createElement("div",{style:{opacity:.65}},he("No data available.","presto-player"))))};function ge(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Re(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ge(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Oe=wp.i18n.__,je=wp.element.useEffect,xe=(0,wp.compose.compose)([G()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate;je((function(){i({endpoint:"/presto-player/v1/analytics/top-users",params:Re(Re({per_page:5},s?{start:Z(s)}:{}),p?{end:Z(p)}:{})})}),[a,s,p]);var d=[{key:"name",label:Oe("Name","presto-player"),value:function(e){var t;return null==e||null===(t=e.user)||void 0===t?void 0:t.name}},{key:"total_view",label:Oe("Total View","presto-player"),value:function(e){var t,a;return null==e||null===(t=e.stats)||void 0===t||null===(a=t[0])||void 0===a?void 0:a.data}},{key:"avg_view_time",label:Oe("Avg View Time","presto-player"),render:function(e){var t,a;return React.createElement("div",{className:"presto-badge"},null==e||null===(t=e.stats)||void 0===t||null===(a=t[1])||void 0===a?void 0:a.data)}}];return o?{error:o}:React.createElement(Ee,{title:Oe("Top Users","presto-player"),page:a,perPage:5,setPage:r,loading:t,total:n,totalPages:c,columns:d,data:l,onSelect:function(e){var t,a;return a=null==e||null===(t=e.user)||void 0===t?void 0:t.id,void b.push("#/user/".concat(a))}})}));function _e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function De(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_e(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Pe=wp.i18n.__,ke=wp.element.useEffect,Ne=(0,wp.compose.compose)([G()])((function(e){var t=e.loading,a=e.page,r=e.setPage,n=e.total,c=e.totalPages,l=e.data,o=e.error,i=e.fetchData,s=e.startDate,p=e.endDate,d=e.userId;ke((function(){i({endpoint:"/presto-player/v1/analytics/top-videos",params:De(De(De({per_page:10},s?{start:Z(s)}:{}),p?{end:Z(p)}:{}),d?{user_id:d}:{})})}),[a,s,p]);var u=[{key:"name",label:Pe("Name","presto-player"),render:function(e){return React.createElement("h3",{style:{marginBottom:0,wordBreak:"break-all"}},e.video.title?e.video.title:Pe("Untitled","presto-player"))}},{key:"total_view",label:Pe("Total View","presto-player"),value:function(e){return e.stats[0].data}},{key:"avg_view_time",label:Pe("Avg View Time","presto-player"),render:function(e){return React.createElement("div",{className:"presto-badge"},e.stats[1].data)}},{key:"view_more",label:"",render:function(e){return React.createElement("span",{style:{color:"var(--wp-admin-theme-color, #007cba)"}},Pe("View Details","presto-player")," →")}}];return o?{error:o}:React.createElement(Ee,{title:Pe("Top Videos","presto-player"),perPage:10,page:a,setPage:r,loading:t,total:n,totalPages:c,columns:u,data:l,onSelect:function(e){var t,a;a=null==e||null===(t=e.video)||void 0===t?void 0:t.id,b.push("#/video/".concat(a))}})})),Se=wp.apiFetch;Se.use(Se.createNonceMiddleware(prestoPlayer.nonce)),Se.use(Se.createRootURLMiddleware(prestoPlayer.root+prestoPlayer.prestoVersionString));var Fe=Se,Ce=a(11),Te=a.n(Ce);function Me(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Ie(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Me(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Be=wp.i18n,Ve=Be.__,Ae=Be.sprintf,He=wp.components,Ge=(He.Card,He.CardBody),Ue=wp.element,Le=Ue.useState,We=Ue.useEffect,Ze=(Ue.useRef,function(e){var t=Le(!0),a=Object(n.a)(t,2),r=a[0],c=a[1],l=Le(0),o=Object(n.a)(l,2),i=o[0],s=o[1],p=e.startDate,d=e.endDate,u=Le([{name:"Views",data:[]}]),m=Object(n.a)(u,2),f=m[0],h=m[1],b={options:{chart:{toolbar:{show:!1}},yaxis:{min:0,labels:{formatter:function(e){return e<1?0:Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k":Math.sign(e)*Math.abs(e).toFixed(0)}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(d).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};We((function(){y()}),[e]);var y=function(){c(!0),Fe({path:"/presto-player/v1/analytics/views?"+jQuery.param(Ie(Ie({},p?{start:Z(p)}:{}),d?{end:Z(d)}:{})),parse:!1}).then(function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(t.headers&&t.headers.get("X-WP-Total")),e.next=3,t.json();case 3:a=e.sent,r=[],a.length&&a.forEach((function(e){r.push({x:e.date_time,y:e.total})})),h([{name:"Views",data:r}]);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return r?React.createElement(Ge,null,React.createElement(q,null)):React.createElement(Ge,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Ae(Ve("%d Unique Views","presto-player"),i)),React.createElement(Te.a,{options:b.options,series:f,type:"area",height:280}))}),Ye=wp.i18n,ze=Ye.__,Qe=Ye.sprintf,Xe=wp.components,qe=(Xe.Card,Xe.CardBody),Je=wp.element,Ke=Je.useState,$e=Je.useEffect,et=(Je.useRef,function(e){var t=Ke(!0),a=Object(n.a)(t,2),r=a[0],c=a[1],l=Ke(0),o=Object(n.a)(l,2),i=o[0],s=o[1],p=e.startDate,d=e.endDate,u=Ke([{name:"Views",data:[]}]),m=Object(n.a)(u,2),f=m[0],h=m[1],b={options:{chart:{toolbar:{show:!1}},yaxis:{labels:{formatter:function(e){return Math.abs(e)>999?Math.sign(e)*(Math.abs(e)/1e3).toFixed(1)+"k min":(Math.sign(e)*Math.abs(e)).toFixed(1)+"min"}}},colors:["#7c3aed"],xaxis:{type:"datetime",min:new Date(p).setHours(0,0,0,0),max:new Date(d).setHours(23,59,59,999)},dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};$e((function(){R()}),[e]);var y,v,w,E,g,R=function(){c(!0),Fe({path:"/presto-player/v1/analytics/watch-time?"+jQuery.param({start:Z(p),end:Z(d)}),parse:!1}).then(function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.json();case 2:a=e.sent,r=a.data,n=a.average,s(parseFloat(n)),c=[],r.length&&r.forEach((function(e){c.push({x:e.date_time,y:(e.total/60).toFixed(2)})})),h([{name:"Watch Time",data:c}]);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e)})).finally((function(){c(!1)}))};return r?React.createElement(qe,null,React.createElement(q,null)):React.createElement(qe,{className:"presto-flow"},React.createElement("div",{className:"presto-card__title"},Qe(ze("%s average watch time","presto-player"),(y=i,v=Math.floor(y/60/60),w=Math.floor(y/60)-60*v,E=y%60,g="",v&&(g+=W(L("%d hours","presto-player"),v)+", "),w&&(g+=W(L("%d minutes","presto-player"),w)+" "),(v||w)&&E&&(g+=L("and","presto-player")+" "),g+=W(L("%d seconds","presto-player"),E)))),React.createElement(Te.a,{options:b.options,series:f,type:"area",height:280}))}),tt=wp.i18n.__,at=wp.components,rt=at.Panel,nt=at.TabPanel,ct=function(e){var t=e.startDate,a=e.endDate;return React.createElement(rt,null,React.createElement(nt,{className:"presto-module-tabs",onSelect:function(){},tabs:[{name:"views",title:tt("Views","presto-player")},{name:"watch",title:tt("Watch Time","presto-player")}]},(function(e){switch(e.name){case"views":return React.createElement(Ze,{startDate:t,endDate:a});case"watch":return React.createElement(et,{startDate:t,endDate:a});default:return React.createElement(React.Fragment,null,"Not Found")}})))},lt=a(30),ot=a.n(lt),it=(a(44),wp.i18n.__),st=wp.element,pt=st.useRef,dt=st.useEffect,ut=st.useState,mt=function(e){var t=e.startDate,a=e.setStartDate,r=e.endDate,c=e.setEndDate,l=pt(),o=ut(25),i=Object(n.a)(o,2),s=i[0],p=i[1];return dt((function(){new ot.a({element:null==l?void 0:l.current,singleMode:!1,format:"MMMM D YYYY",autoApply:!1,plugins:["ranges"],maxDate:new Date,numberOfMonths:2,buttonText:{apply:it("Apply","presto-player"),cancel:it("Cancel","presto-player")},dropdowns:{minYear:1990,maxYear:null,months:!0,years:!0},setup:function(e){e.setDateRange(t,r),e.on("button:apply",(function(e,t){a(e.dateInstance),c(t.dateInstance),p(l.current.value.length)}))}})}),[l]),React.createElement("div",{className:"component-base-control"},React.createElement("div",{className:"components-base-control__field"},React.createElement("input",{className:"components-text-control__input presto-settings__date-select",ref:l,size:s})))},ft=wp.i18n.__,ht=wp.components,bt=ht.Flex,yt=ht.FlexBlock,vt=ht.FlexItem,wt=(wp.element.useState,function(e){var t=e.startDate,a=e.endDate,r=e.setStartDate,n=e.setEndDate;return React.createElement(React.Fragment,null,React.createElement(bt,null,React.createElement(yt,null,React.createElement("h1",null,ft("Analytics","presto-player"))),React.createElement(vt,null,React.createElement(mt,{startDate:t,setStartDate:r,endDate:a,setEndDate:n}))),React.createElement("div",{className:"presto-flow"},React.createElement("div",{className:"presto-dashboard"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ct,{startDate:t,endDate:a})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(xe,{startDate:t,endDate:a}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(Ne,{startDate:t,endDate:a}))))))}),Et=a(18),gt=wp.components,Rt=gt.Card,Ot=gt.CardBody,jt=function(e){var t=e.loading,a=e.title,r=e.value,n=e.label;return t?React.createElement(Rt,null,React.createElement(Ot,null,React.createElement(q,null))):React.createElement(Rt,{className:"presto-player__stat-card"},React.createElement(Ot,null,React.createElement("div",{className:"presto-subtitle"},a),React.createElement("h1",null,r),React.createElement("div",null,n)))};function xt(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function _t(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):xt(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Dt,Pt,kt,Nt=wp.apiFetch,St=wp.element.useState,Ft=wp.compose.createHigherOrderComponent,Ct=function(){return Ft((function(e){return function(t){var a=St(!1),r=Object(n.a)(a,2),c=r[0],l=r[1],o=St([]),i=Object(n.a)(o,2),s=i[0],p=i[1],d=St(""),u=Object(n.a)(d,2),m=u[0],f=u[1],h=function(){var e=Object(C.a)(M.a.mark((function e(t){var a,r,n,c;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.endpoint,r=t.params,n=void 0===r?{}:r,l(!0),e.prev=2,e.next=5,Nt({path:wp.url.addQueryArgs(a,_t({},n))});case 5:c=e.sent,p(c),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),null!==e.t0&&void 0!==e.t0&&e.t0.message&&f(e.t0.message);case 13:return e.prev=13,l(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})));return function(t){return e.apply(this,arguments)}}();return React.createElement(e,Object.assign({loading:c,setLoading:l,fetchData:h,stat:s,setStat:p,error:m,setError:f},t))}}),"withStat")},Tt=wp.i18n.__,Mt=wp.compose.compose,It=wp.element.useEffect,Bt=Mt([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return It((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(null==n?void 0:n.view),title:Tt("Total Views","presto-player")})})),Vt=wp.i18n.__,At=wp.compose.compose,Ht=wp.element.useEffect,Gt=At([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Ht((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:Vt("Average Watch Time","presto-player"),label:Vt("seconds","presto-player")})})),Ut=wp.i18n.__,Lt=wp.compose.compose,Wt=wp.element.useEffect,Zt=Lt([Ct()])((function(e){var t=e.userId,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Wt((function(){c({endpoint:"/presto-player/v1/analytics/user/".concat(t,"/total-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseFloat(null==n?void 0:n.view).toFixed(2),title:Ut("Total Watch Time","presto-player"),label:Ut("seconds","presto-player")})})),Yt=a(2),zt=wp.i18n.__,Qt=wp.components,Xt=Qt.Flex,qt=Qt.FlexBlock,Jt=Qt.FlexItem,Kt=Qt.Spinner,$t=Qt.Button,ea=wp.element,ta=ea.useEffect,aa=ea.useState,ra=wp.apiFetch,na=function(e){var t,a,r,c,l=e.route,o=e.startDate,i=e.endDate,s=e.setStartDate,p=e.setEndDate,d=aa(!0),u=Object(n.a)(d,2),m=u[0],f=u[1],h=aa({}),y=Object(n.a)(h,2),v=y[0],w=y[1],E=aa(""),g=Object(n.a)(E,2),R=g[0],O=g[1],j=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.prev=1,e.next=4,ra({url:"/wp-json/wp/v2/users/".concat(null==l||null===(t=l.params)||void 0===t?void 0:t.id,"?context=edit")});case 4:a=e.sent,w(a),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&O("User Not Found");case 11:return e.prev=11,f(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[1,8,11,14]])})));return function(){return e.apply(this,arguments)}}();return ta((function(){j()}),[]),R?Object(Yt.b)("div",{className:"presto-flow"},Object(Yt.b)(Xt,null,Object(Yt.b)(qt,null,Object(Yt.b)("h2",null,R)))):Object(Yt.b)("div",{className:"presto-flow"},Object(Yt.b)(Xt,null,Object(Yt.b)(qt,null,Object(Yt.b)($t,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",zt("Back to Dashboard","presto-player")))),Object(Yt.b)(Xt,{wrap:!0},Object(Yt.b)(qt,null,m?Object(Yt.b)(Kt,null):Object(Yt.b)("div",{css:Object(Yt.a)(Dt||(Dt=Object(Et.a)(["\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n "])))},Object(Yt.b)("div",null,Object(Yt.b)("h1",{className:"presto-dashboard__title"},null==v?void 0:v.name),Object(Yt.b)("p",{css:Object(Yt.a)(Pt||(Pt=Object(Et.a)(["\n margin-top: -10px;\n opacity: 0.65;\n "])))},null==v?void 0:v.email)),!!v.id&&Object(Yt.b)("div",{className:"presto__edit-user-button",css:Object(Yt.a)(kt||(kt=Object(Et.a)(["\n margin: 0 20px;\n "])))},Object(Yt.b)($t,{href:"/wp-admin/user-edit.php?user_id=".concat(null==v?void 0:v.id),isSecondary:!0,isSmall:!0},zt("View Profile","presto-player")," →")))),Object(Yt.b)(Jt,null,Object(Yt.b)(mt,{startDate:o,setStartDate:s,endDate:i,setEndDate:p}))),Object(Yt.b)("div",{className:"presto-dashboard presto-flow"},Object(Yt.b)("div",{className:"presto-dashboard__row"},Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Bt,{userId:null==l||null===(t=l.params)||void 0===t?void 0:t.id,startDate:o,endDate:i})),Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Gt,{userId:null==l||null===(a=l.params)||void 0===a?void 0:a.id,startDate:o,endDate:i})),Object(Yt.b)("div",{className:"presto-dashboard__item"},Object(Yt.b)(Zt,{userId:null==l||null===(r=l.params)||void 0===r?void 0:r.id,startDate:o,endDate:i}))),Object(Yt.b)("div",{className:"presto-dashboard__row"},Object(Yt.b)("div",{className:"presto-dashboard__item is-large"},Object(Yt.b)(Ne,{startDate:o,endDate:i,userId:null==l||null===(c=l.params)||void 0===c?void 0:c.id})))))},ca=wp.i18n.__,la=wp.compose.compose,oa=wp.element.useEffect,ia=la([Ct()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return oa((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/average-watchtime"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(n),title:ca("Average Watch Time","presto-player"),label:ca("seconds","presto-player")})})),sa=wp.i18n,pa=sa.__,da=(sa.sprintf,wp.components),ua=da.Card,ma=da.CardBody,fa=wp.element,ha=fa.useState,ba=fa.useEffect,ya=(fa.useRef,function(e){var t=e.video_id,a=e.startDate,r=e.endDate,c=ha(!0),l=Object(n.a)(c,2),o=l[0],i=l[1],s=ha([{name:"Views",data:[]}]),p=Object(n.a)(s,2),d=p[0],u=p[1];ba((function(){i(!0),Fe({path:wp.url.addQueryArgs("/presto-player/v1/analytics/video/".concat(t,"/timeline"),{start:Z(a),end:Z(r)})}).then((function(e){var t=[];e.length&&e.forEach((function(e){t.push({x:e.watch_time,y:e.total})})),u([{name:"Viewers",data:t}])})).catch((function(e){console.error(e)})).finally((function(){i(!1)}))}),[a,r]);var m={options:{chart:{toolbar:{show:!1}},tickAmount:1,yaxis:{labels:{formatter:function(e){return parseInt(e)}}},xaxis:{labels:{formatter:function(e){return t=e,t=1e3*parseInt(t||0),new Date(t).toISOString().substr(11,8);var t}}},colors:["#7c3aed"],dataLabels:{enabled:!1},stroke:{curve:"smooth"},fill:{type:"gradient",gradient:{shadeIntensity:1,opacityFrom:.7,opacityTo:.9,stops:[0,90,100]}}}};return o?React.createElement(ua,null,React.createElement(ma,null,React.createElement(q,null))):React.createElement(ua,null,React.createElement(ma,null,React.createElement("div",{className:"presto-card__title"},pa("Audience Retention","presto-player")),React.createElement(Te.a,{options:m.options,series:d,type:"area",height:280})))}),va=wp.i18n.__,wa=wp.compose.compose,Ea=wp.element.useEffect,ga=wa([Ct()])((function(e){var t=e.video_id,a=e.startDate,r=e.endDate,n=e.stat,c=e.fetchData,l=e.loading;return Ea((function(){c({endpoint:"/presto-player/v1/analytics/video/".concat(t,"/views"),params:{start:Z(a),end:Z(r)}})}),[a,r]),React.createElement(jt,{loading:l,value:parseInt(n),title:va("Unique Views","presto-player")})})),Ra=a(31);function Oa(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function ja(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Oa(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var xa=wp.data.useSelect,_a=function(e){var t,a,r,n=e.src,c=e.preset,l=e.branding,o=e.attributes,i=e.adminPreview,s=e.type,p=o.chapters,d=o.mutedOverlay,u=o.mutedPreview,m=xa((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.youtube()})),f=xa((function(e){var t;return null===(t=e("presto-player/player"))||void 0===t?void 0:t.playerCSS()}));return React.createElement("div",{className:"wp-block-video presto-block-video",style:ja(ja(ja({"--presto-player-border-radius":"".concat(null==c?void 0:c.border_radius,"px")},null!=c&&c.caption_background?{"--plyr-captions-background":c.caption_background}:{}),null!=l&&l.color?{"--plyr-color-main":l.color}:{}),{},{"--presto-player-email-border-radius":"".concat((null==c||null===(t=c.email_collection)||void 0===t?void 0:t.border_radius)||0,"px"),"--presto-player-logo-width":"".concat((null==l?void 0:l.logo_width)||75,"px")})},React.createElement(Ra.a,{src:n,css:f,isAdmin:!0,preload:"metadata",preset:c,bunny:{thumbnail:null==o?void 0:o.previewThumbnail,preview:null==o?void 0:o.preview},youtube:{channelId:null==m?void 0:m.channel_id},tracks:!(null==c||!c.captions)&&[{kind:"captions",label:"English",srclang:"en",src:"/path/to/captions.en.vtt",default:!0}],branding:l,chapters:p,blockAttributes:o,poster:o.poster,provider:s},React.createElement("div",{slot:"player-end"},(null==u?void 0:u.enabled)&&(null==d?void 0:d.enabled)&&React.createElement("div",{className:"presto-player__overlay is-image",style:{position:"absolute",width:"".concat((null==d?void 0:d.width)||100,"%"),left:"".concat(100*((null==d||null===(a=d.focalPoint)||void 0===a?void 0:a.x)||.5),"%"),top:"".concat(100*((null==d||null===(r=d.focalPoint)||void 0===r?void 0:r.y)||.5),"%")}},React.createElement("img",{src:null==d?void 0:d.src,style:{transform:"translateX(-50%) translateY(-50%)"}})),i)))};function Da(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function Pa(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(a),!0).forEach((function(t){Object(d.a)(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Da(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ka=wp.i18n.__,Na=wp.components,Sa=Na.Flex,Fa=Na.FlexBlock,Ca=Na.FlexItem,Ta=Na.Spinner,Ma=Na.Button,Ia=Na.TextControl,Ba=wp.element,Va=Ba.useEffect,Aa=Ba.useState,Ha=wp.apiFetch,Ga=function(e){var t,a,r,c=e.route,l=e.startDate,o=e.endDate,i=e.setStartDate,s=e.setEndDate,p=Aa(!0),d=Object(n.a)(p,2),u=d[0],m=d[1],f=Aa({}),h=Object(n.a)(f,2),y=h[0],v=h[1],w=Aa(""),E=Object(n.a)(w,2),g=E[0],R=E[1],O=Aa(null),j=Object(n.a)(O,2),x=j[0],_=j[1],D=Aa(!1),P=Object(n.a)(D,2),k=P[0],N=P[1],S=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a,r,n;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.prev=1,e.next=4,Ha({url:"".concat(null===(t=prestoPlayer)||void 0===t?void 0:t.root).concat(null===(a=prestoPlayer)||void 0===a?void 0:a.prestoVersionString,"videos/").concat(null==c||null===(r=c.params)||void 0===r?void 0:r.id)});case 4:n=e.sent,v(n),_(null==n?void 0:n.title),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),"rest_no_route"===e.t0.code&&R("Video Not Found");case 12:return e.prev=12,m(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=Object(C.a)(M.a.mark((function e(){var t,a;return M.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("New Video title ".concat(x)),m(!0),e.prev=2,t=Pa(Pa({},y),{title:x}),e.next=6,wp.apiFetch({method:"POST",url:wp.url.addQueryArgs("".concat(prestoPlayer.root).concat(prestoPlayer.prestoVersionString,"videos/").concat(y.id),{_method:"PUT"}),data:t});case 6:if(a=e.sent){e.next=9;break}throw genericError;case 9:N(!1),v(a),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),R(null!==e.t0&&void 0!==e.t0&&e.t0.message?e.t0.message:genericError);case 16:return e.prev=16,m(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,13,16,19]])})));return function(){return e.apply(this,arguments)}}(),T=function(){_(null==y?void 0:y.title),N(!1)};return Va((function(){S()}),[]),g?React.createElement("div",{className:"presto-flow"},React.createElement(Sa,null,React.createElement(Fa,null,React.createElement("h2",null,g)))):React.createElement("div",{className:"presto-flow"},React.createElement(Sa,null,React.createElement(Fa,null,React.createElement(Ma,{isSecondary:!0,onClick:function(){b.push("#/")}},"← ",ka("Back to Dashboard","presto-player")))),React.createElement(Sa,{wrap:!0},React.createElement(Fa,null,u?React.createElement(Ta,null):k?React.createElement("div",{className:"presto-inline-edit presto-inline-edit--editing"},React.createElement(Ia,{className:"presto-inline-edit__input",type:"text",value:x,onChange:function(e){return _(e)}}),React.createElement(Ma,{className:"presto-inline-edit__button",isPrimary:!0,onClick:F}," ","Save"," "),React.createElement(Ma,{className:"presto-inline-edit__button",isSecondary:!0,onClick:T}," ","Cancel"," ")):React.createElement("div",{className:"presto-inline-edit"},React.createElement("h1",{className:"presto-dashboard__title presto-inline-edit__text"},null==y?void 0:y.title),React.createElement("button",{className:"presto-inline-edit__edit",onClick:function(){return N(!0)}},React.createElement("span",{className:"dashicon dashicons dashicons-edit"})))),React.createElement(Ca,null,React.createElement(mt,{startDate:l,setStartDate:i,endDate:o,setEndDate:s}))),React.createElement("div",{className:"presto-dashboard presto-flow"},React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ga,{video_id:null==c||null===(t=c.params)||void 0===t?void 0:t.id,startDate:l,endDate:o})),React.createElement("div",{className:"presto-dashboard__item"},!!Object.keys(y||{}).length&&React.createElement(_a,{src:null==y?void 0:y.src,attributes:{},type:null==y?void 0:y.type,preset:{"play-large":!0,play:!0,progress:!0,"current-time":!0}})),React.createElement("div",{className:"presto-dashboard__item"},React.createElement(ia,{video_id:null==c||null===(a=c.params)||void 0===a?void 0:a.id,startDate:l,endDate:o}))),React.createElement("div",{className:"presto-dashboard__row"},React.createElement("div",{className:"presto-dashboard__item is-large"},React.createElement(ya,{video_id:null==c||null===(r=c.params)||void 0===r?void 0:r.id,startDate:l,endDate:o})))))},Ua={dashboard:{path:"/"},video:{path:"/video/:id"},user:{path:"/user/:id"}},La=wp.element.useState,Wa=function(){var e,t=function(){window.scrollTo(0,0)},a=La(new Date(Date.now()-6048e5)),r=Object(n.a)(a,2),c=r[0],l=r[1],o=La(new Date),i=Object(n.a)(o,2),s=i[0],p=i[1];return null!==(e=prestoPlayer)&&void 0!==e&&e.isPremium?React.createElement("div",{className:"presto-dashboard__content"},React.createElement(x,{routes:Ua},React.createElement(g,{path:Ua.dashboard.path,onRoute:t},React.createElement(wt,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:Ua.video.path,onRoute:t},React.createElement(Ga,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})),React.createElement(g,{path:Ua.user.path,onRoute:t},React.createElement(na,{startDate:c,endDate:s,setStartDate:l,setEndDate:p})))):React.createElement("div",{className:"presto-dashboard__content"},React.createElement(F,null))},Za=wp.element.render;Object(r.c)(),Za(React.createElement(Wa,null),document.getElementById("presto-analytics-page"))}},[[33,2,3]]]);
19
- //# sourceMappingURL=admin-5fb77cbc.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dist/analytics/admin-5fb77cbc.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack:///./node_modules/@presto-player/components/node_modules/@stencil/core/internal/client lazy ^\\.\\/.*$ include: \\.entry\\.js$ exclude: \\.system\\.entry\\.js$ namespace object","webpack:///./src/router/utils.js","webpack:///./src/router/context.js","webpack:///./src/router/route.js","webpack:///./src/router/link.js","webpack:///./src/router/index.js","webpack:///./src/admin/analytics/pages/illustration.js","webpack:///./src/admin/analytics/pages/AnalyticsUpgrade.js","webpack:///./src/admin/analytics/hocs/withDataList.js","webpack:///./src/admin/analytics/util.js","webpack:///./src/admin/settings/components/Loading.js","webpack:///./src/admin/ui/Pagination.js","webpack:///./src/admin/ui/Table.js","webpack:///./src/admin/analytics/components/DataTable.js","webpack:///./src/admin/analytics/components/TopUsers.js","webpack:///./src/admin/analytics/components/TopVideos.js","webpack:///./src/shared/services/fetch.js","webpack:///./src/admin/analytics/components/TotalViewsGraph.js","webpack:///./src/admin/analytics/components/TotalWatchGraph.js","webpack:///./src/admin/analytics/components/OverviewPanel.js","webpack:///./src/admin/analytics/components/DatePicker.js","webpack:///./src/admin/analytics/pages/Dashboard.js","webpack:///./src/admin/ui/StatCard.js","webpack:///./src/admin/analytics/hocs/withStat.js","webpack:///./src/admin/analytics/components/TotalVideoViewsByUser.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTimeByUser.js","webpack:///./src/admin/analytics/components/VideoTotalWatchTimeByUser.js","webpack:///./src/admin/analytics/pages/User.js","webpack:///./src/admin/analytics/components/VideoAverageWatchTime.js","webpack:///./src/admin/analytics/components/VideoTimeline.js","webpack:///./src/admin/analytics/components/VideoViews.js","webpack:///./src/admin/blocks/shared/Player.js","webpack:///./src/admin/analytics/pages/Video.js","webpack:///./src/admin/analytics/routes.js","webpack:///./src/admin/analytics/App.js","webpack:///./src/admin/analytics/index.js"],"names":["webpackEmptyAsyncContext","req","Promise","resolve","then","e","Error","code","keys","module","exports","id","locationToRoute","location","path","pathname","hash","query","qs","parse","search","history","createBrowserHistory","RouterContext","wp","element","createContext","route","useContext","prev","Route","onRoute","children","matched","match","checkMatch","substr","cloneElement","Router","props","setState","routes","Object","map","key","unlisten","listen","handleRouteChange","state","defaultRoute","this","NotFound","push","forEach","name","isMatched","data","routerContextValue","is404","Provider","value","Component","width","height","data-name","xmlns","xmlnsXlink","viewBox","x1","y1","x2","y2","gradientUnits","offset","stop-color","stop-opacity","xlinkHref","transform","x","y","fill","gradientTransform","opacity","clip-path","points","cx","cy","r","d","__","i18n","components","Flex","FlexItem","FlexBlock","style","padding","background","marginLeft","href","target","className","apiFetch","useState","createHigherOrderComponent","compose","WrappedComponent","loading","setLoading","page","setPage","total","setTotal","totalPages","setTotalPages","setData","error","setError","fetchData","a","endpoint","params","url","addQueryArgs","per_page","res","headers","parseInt","get","json","responseData","console","message","sprintf","convertDateTimeToAbsoluteDate","dateTime","Date","getTimezoneOffset","getTime","toISOString","split","Spinner","align","justify","Card","CardBody","Button","ButtonGroup","useEffect","perPage","hasPrevious","setHasPrevious","hasNext","setHasNext","end","setEnd","start","setStart","Math","min","size","isSecondary","disabled","onClick","max","useRef","columns","onRowClick","title","length","role","classNames","column","label","row","rowIndex","columnIndex","data-title","aria-label","render","onSelect","Loading","Table","Pagination","withDataList","startDate","endDate","user","stats","DataTable","userId","user_id","marginBottom","wordBreak","video","color","use","createNonceMiddleware","prestoPlayer","nonce","createRootURLMiddleware","root","prestoVersionString","totalViews","setTotalViews","series","setSeries","chart","options","toolbar","show","yaxis","labels","formatter","num","abs","sign","toFixed","colors","xaxis","type","setHours","dataLabels","enabled","stroke","curve","gradient","shadeIntensity","opacityFrom","opacityTo","stops","fetchViews","jQuery","param","item","date_time","catch","finally","averageTime","setAverageTime","fetchMinutes","savedSeconds","hours","minutes","seconds","out","average","parseFloat","floor","Panel","TabPanel","tabs","tab","TotalViewsGraph","TotalWatchGraph","setStartDate","setEndDate","dateRef","inputSize","setInputSize","Litepicker","current","singleMode","format","autoApply","plugins","maxDate","numberOfMonths","buttonText","apply","cancel","dropdowns","minYear","maxYear","months","years","setup","picker","setDateRange","on","dateInstance","ref","DatePicker","OverviewPanel","TopUsers","TopVideos","stat","setStat","withStat","StatCard","view","User","setUser","getUser","wrap","css","email","isSmall","TotalVideoViewsByUser","VideoAverageWatchTimeByUser","VideoTotalWatchTimeByUser","video_id","watch_time","tickAmount","useSelect","src","preset","branding","attributes","adminPreview","chapters","mutedOverlay","mutedPreview","youtube","select","playerCSS","border_radius","caption_background","email_collection","logo_width","isAdmin","preload","bunny","thumbnail","previewThumbnail","preview","channelId","channel_id","tracks","captions","kind","srclang","default","blockAttributes","poster","provider","slot","position","left","focalPoint","top","TextControl","Video","setVideo","thisName","setThisName","editing","setEditing","getVideo","putVideo","log","method","_method","saved","genericError","cancelEditing","onChange","isPrimary","VideoViews","Player","play","progress","VideoAverageWatchTime","VideoTimeline","dashboard","scrollToTop","window","scrollTo","now","isPremium","Dashboard","AnalyticsUpgrade","defineCustomElements","App","document","getElementById"],"mappings":";;;;;;;;;;;;;;;;;8JAAA,SAASA,EAAyBC,GAGjC,OAAOC,QAAQC,UAAUC,MAAK,WAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBL,EAAM,KAEjD,MADAI,EAAEE,KAAO,mBACHF,KAGRL,EAAyBQ,KAAO,WAAa,MAAO,IACpDR,EAAyBG,QAAUH,EACnCS,EAAOC,QAAUV,EAC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cAER6K,KAAM,CACJ7K,KAAM,cCRFyF,GAAa/E,GAAGC,QAAhB8E,SAWO,cAAO,IAAD,EACbsQ,EAAc,WAClBC,OAAOC,SAAS,EAAG,IAGrB,EAAkCxQ,GAChC,IAAIiC,KAAKA,KAAKwO,MAAQ,SADxB,mBAAOvL,EAAP,KAAkBsE,EAAlB,KAGA,EAA8BxJ,GAAS,IAAIiC,MAA3C,mBAAOkD,EAAP,KAAgBsE,EAAhB,KAEA,OAAI,UAAC1D,oBAAD,OAAC,EAAc2K,UASjB,2BAAK5Q,UAAU,6BACb,oBAAC,EAAD,CAAQ5D,OAAQA,IACd,oBAACX,EAAD,CAAOhB,KAAM2B,GAAOmU,UAAU9V,KAAMiB,QAAS8U,GAC3C,oBAACK,GAAD,CACEzL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,KAGhB,oBAAClO,EAAD,CAAOhB,KAAM2B,GAAOyJ,MAAMpL,KAAMiB,QAAS8U,GACvC,oBAAC,GAAD,CACEpL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,KAGhB,oBAAClO,EAAD,CAAOhB,KAAM2B,GAAOkJ,KAAK7K,KAAMiB,QAAS8U,GACtC,oBAAC,GAAD,CACEpL,UAAWA,EACXC,QAASA,EACTqE,aAAcA,EACdC,WAAYA,OA9BlB,2BAAK3J,UAAU,6BACb,oBAAC8Q,EAAD,QCxBAhM,GAAW3J,GAAGC,QAAd0J,OAIRiM,cAeAjM,GAAO,oBAACkM,GAAD,MAASC,SAASC,eAAe,4B","file":"analytics/admin-5fb77cbc.js","sourcesContent":["function webpackEmptyAsyncContext(req) {\n\t// Here Promise.resolve().then() is used instead of new Promise() to prevent\n\t// uncaught exception popping up in devtools\n\treturn Promise.resolve().then(function() {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t});\n}\nwebpackEmptyAsyncContext.keys = function() { return []; };\nwebpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;\nmodule.exports = webpackEmptyAsyncContext;\nwebpackEmptyAsyncContext.id = 36;","import qs from \"querystringify\";\nexport function locationToRoute(location) {\n // location comes from the history package\n return {\n path: location.pathname,\n hash: location.hash,\n query: qs.parse(location.search),\n };\n}\n","import { createBrowserHistory } from \"history\";\nimport { locationToRoute } from \"./utils\";\n\nexport const history = createBrowserHistory();\nexport const RouterContext = wp.element.createContext({\n route: locationToRoute(history.location),\n});\n","import { RouterContext } from \"./context\";\nconst { useContext } = wp.element;\nimport { match } from \"path-to-regexp\";\nlet prev = \"\";\n\nexport function Route({ path, onRoute, children }) {\n // Extract route from RouterContext\n const { route } = useContext(RouterContext);\n\n const checkMatch = match(`${path}`);\n const matched = checkMatch(`${route.hash.substr(1)}`);\n\n if (!matched) {\n return null;\n }\n\n if (onRoute) {\n if (prev !== matched.path) {\n onRoute();\n }\n prev = matched.path;\n }\n\n return <div>{wp.element.cloneElement(children, { route: matched })}</div>;\n}\n","const { useContext } = wp.element;\nimport { RouterContext, history } from \"./context\";\nimport classNames from \"classnames\";\nimport { match } from \"path-to-regexp\";\n\nexport function Link(props) {\n const { to, onClick, children, activeClassName } = props;\n const { route } = useContext(RouterContext);\n\n let state = { ...props };\n delete state.activeClassName;\n\n const isActive = () => {\n const checkMatch = match(`${to}`);\n return checkMatch(`${route.hash.substr(1)}`);\n };\n\n const handleClick = (e) => {\n e.preventDefault();\n // Dont' navigate if current path\n if (route.path === to) {\n return;\n }\n // Trigger onClick prop manually\n if (onClick) {\n onClick(e);\n }\n // Use history API to navigate page\n history.push(`#${to}`);\n };\n\n return (\n <a\n {...state}\n className={classNames({ [activeClassName]: isActive() }, props.className)}\n onClick={handleClick}\n >\n {children}\n </a>\n );\n}\n","const { Component } = wp.element;\nimport { locationToRoute } from \"./utils\";\nimport { history, RouterContext } from \"./context\";\nimport { Route } from \"./route\";\nimport { Link } from \"./link\";\nimport { match } from \"path-to-regexp\";\n\nclass Router extends Component {\n constructor(props) {\n super(props);\n\n // Convert our routes into an array for easy 404 checking\n this.routes = Object.keys(props.routes).map(\n (key) => props.routes[key].path\n );\n\n // Listen for path changes from the history API\n this.unlisten = history.listen(this.handleRouteChange);\n\n const route = locationToRoute(history.location);\n\n // Define the initial RouterContext value\n this.state = {\n route,\n defaultRoute: props?.defaultRoute ? `#${props?.defaultRoute}` : \"#/\",\n };\n }\n\n componentWillUnmount() {\n // Stop listening for changes if the Router component unmounts\n this.unlisten();\n }\n\n handleRouteChange = (location) => {\n const route = locationToRoute(location?.location);\n this.setState({ route: route });\n };\n\n render() {\n // Define our variables\n const { children, NotFound } = this.props;\n const { route, defaultRoute } = this.state;\n\n if (!route.hash) {\n history.push(defaultRoute);\n return <div></div>;\n }\n\n let matched = false;\n // match route\n (this.routes || []).forEach((name) => {\n const checkMatch = match(route.hash.substr(1));\n const isMatched = checkMatch(`${route.hash.substr(1)}`);\n if (!isMatched) {\n return;\n }\n matched = {\n name,\n data: isMatched,\n };\n });\n\n const routerContextValue = { route, matched };\n\n // Check if 404 if no route matched\n const is404 = !matched;\n\n return (\n <RouterContext.Provider value={routerContextValue}>\n {is404 ? <div>Not found</div> : children}\n </RouterContext.Provider>\n );\n }\n}\nexport { history, RouterContext, Router, Route, Link };\n","export default ({ width, height }) => {\n return (\n <svg\n id=\"e8f68bdd-4984-4f2e-95b7-7fc8ec281257\"\n data-name=\"Layer 1\"\n width={width}\n height={height}\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 0 918.14 765.54\"\n >\n <defs>\n <linearGradient\n id=\"27aa7b70-b106-4a00-be67-693c8380e41d\"\n x1=\"397.74\"\n y1=\"717.25\"\n x2=\"397.74\"\n y2=\"86.11\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop offset=\"0\" stop-color=\"gray\" stop-opacity=\"0.25\" />\n <stop offset=\"0.54\" stop-color=\"gray\" stop-opacity=\"0.12\" />\n <stop offset=\"1\" stop-color=\"gray\" stop-opacity=\"0.1\" />\n </linearGradient>\n <linearGradient\n id=\"46a816da-c484-41ec-8a6f-fbf14454d910\"\n x1=\"288.88\"\n y1=\"378.44\"\n x2=\"288.88\"\n y2=\"209.65\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"32b634d8-28f1-48d9-a868-f602a2cad942\"\n x1=\"288.88\"\n y1=\"328.29\"\n x2=\"288.88\"\n y2=\"223.1\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"7a4c6aff-0be0-461b-a111-b3ae1b8fbf73\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"8cc91f6d-19b0-43cc-9c18-2faa83ac34ba\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"354.51\"\n y=\"291.55\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"38f1cb81-8fac-4205-a0ff-a33ac00d354c\"\n x1=\"288.88\"\n y1=\"594.94\"\n x2=\"288.88\"\n y2=\"426.14\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"6fc01aaf-135e-403e-a209-43b2a4fe59f1\"\n x1=\"288.88\"\n y1=\"544.79\"\n x2=\"288.88\"\n y2=\"439.6\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <clipPath\n id=\"79ce363a-d134-40e4-9f82-b96d04a36978\"\n transform=\"translate(-140.93 -67.23)\"\n >\n <rect\n id=\"5b44e697-61fe-43bd-9a58-5f3e41301748\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"354.51\"\n y=\"508.05\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n </clipPath>\n <linearGradient\n id=\"54803c44-522d-4b9e-9a34-f1f7b43e8483\"\n x1=\"671.57\"\n y1=\"760.34\"\n x2=\"671.57\"\n y2=\"129.2\"\n gradientTransform=\"translate(1109.43 -194.1) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"089a6a47-adaa-499b-aefb-cd6464b62fb8\"\n x1=\"670.96\"\n y1=\"553.63\"\n x2=\"670.96\"\n y2=\"387.28\"\n gradientTransform=\"translate(1129.51 -168.41) rotate(90)\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"fd8d88e0-7826-450d-9e0b-001d1be709c2\"\n x1=\"637.66\"\n y1=\"754.12\"\n x2=\"637.66\"\n y2=\"601.05\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"8d1793c5-b76e-44e2-a52e-569460402331\"\n x1=\"778.37\"\n y1=\"673.86\"\n x2=\"778.37\"\n y2=\"569.13\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n <linearGradient\n id=\"4745700d-8097-45ff-9f71-625443fc4ad8\"\n x1=\"778.37\"\n y1=\"774.41\"\n x2=\"778.37\"\n y2=\"713.66\"\n xlinkHref=\"#27aa7b70-b106-4a00-be67-693c8380e41d\"\n />\n </defs>\n <title>secure data</title>\n <g opacity=\"0.5\">\n <rect\n x=\"162.9\"\n y=\"86.11\"\n width=\"469.69\"\n height=\"631.14\"\n fill=\"url(#27aa7b70-b106-4a00-be67-693c8380e41d)\"\n />\n </g>\n <rect\n x=\"169.02\"\n y=\"94.67\"\n width=\"455.01\"\n height=\"609.12\"\n fill=\"#f2f2f2\"\n />\n <rect x=\"204.49\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect\n x=\"204.49\"\n y=\"142.37\"\n width=\"156.56\"\n height=\"4.89\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect x=\"384.29\" y=\"120.36\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"259.8\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"273.25\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"286.7\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"408.75\" y=\"476.29\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"412.42\" y=\"489.75\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <rect x=\"419.76\" y=\"503.2\" width=\"156.56\" height=\"4.89\" fill=\"#e0e0e0\" />\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"209.65\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#46a816da-c484-41ec-8a6f-fbf14454d910)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"213.32\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"223.1\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#32b634d8-28f1-48d9-a868-f602a2cad942)\"\n />\n </g>\n <rect\n id=\"689f37f3-cc41-448d-b172-63ec123bc985\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"213.58\"\n y=\"224.32\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#7a4c6aff-0be0-461b-a111-b3ae1b8fbf73)\">\n <polygon\n points=\"200.82 322.18 238.74 263.46 254.64 289.15 288.88 253.68 318.24 289.15 343.93 236.56 409.98 341.75 195.93 334.41 200.82 322.18\"\n fill=\"#6c63ff\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"239\" r=\"11.01\" fill=\"#6c63ff\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"205.71\"\n y=\"426.14\"\n width=\"166.35\"\n height=\"168.79\"\n fill=\"url(#38f1cb81-8fac-4205-a0ff-a33ac00d354c)\"\n />\n </g>\n <rect\n x=\"206.76\"\n y=\"429.81\"\n width=\"163.72\"\n height=\"161.45\"\n fill=\"#f5f5f5\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"212.53\"\n y=\"439.6\"\n width=\"152.7\"\n height=\"105.19\"\n fill=\"url(#6fc01aaf-135e-403e-a209-43b2a4fe59f1)\"\n />\n </g>\n <rect\n id=\"b429ac3a-f8a8-4171-bcce-5b6c002c0714\"\n data-name=\"&lt;Rectangle&gt;\"\n x=\"213.58\"\n y=\"440.82\"\n width=\"150.6\"\n height=\"101.52\"\n fill=\"#fff\"\n />\n <g clip-path=\"url(#79ce363a-d134-40e4-9f82-b96d04a36978)\">\n <polygon\n points=\"200.82 538.67 238.74 479.96 254.64 505.65 288.88 470.18 318.24 505.65 343.93 453.05 409.98 558.24 195.93 550.9 200.82 538.67\"\n fill=\"#bdbdbd\"\n opacity=\"0.4\"\n />\n <circle cx=\"230.17\" cy=\"455.5\" r=\"11.01\" fill=\"#bdbdbd\" opacity=\"0.4\" />\n </g>\n <g opacity=\"0.5\">\n <rect\n x=\"349.09\"\n y=\"242.63\"\n width=\"631.14\"\n height=\"469.69\"\n transform=\"translate(-74.16 969.06) rotate(-78.76)\"\n fill=\"url(#54803c44-522d-4b9e-9a34-f1f7b43e8483)\"\n />\n </g>\n <rect\n x=\"359.37\"\n y=\"247.33\"\n width=\"609.12\"\n height=\"455.01\"\n transform=\"translate(-72.16 966.22) rotate(-78.76)\"\n fill=\"#fff\"\n />\n <rect\n x=\"523.5\"\n y=\"197.22\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-88.86 -196.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"433.36\"\n y=\"650.7\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-2.18 -170.66) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"428.58\"\n y=\"671.14\"\n width=\"249.52\"\n height=\"4.89\"\n transform=\"translate(1.01 -162.18) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"424.6\"\n y=\"683.47\"\n width=\"92.96\"\n height=\"4.89\"\n transform=\"translate(1.84 -145.91) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"519.57\"\n y=\"209.08\"\n width=\"161.45\"\n height=\"4.89\"\n transform=\"translate(-88.17 -180.2) rotate(11.24)\"\n fill=\"#6c63ff\"\n opacity=\"0.7\"\n />\n <rect\n x=\"512.84\"\n y=\"249.31\"\n width=\"291.11\"\n height=\"4.89\"\n transform=\"translate(-79.21 -190.76) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"509.47\"\n y=\"255.44\"\n width=\"70.94\"\n height=\"4.89\"\n transform=\"translate(-80.19 -168.52) rotate(11.24)\"\n fill=\"#3ad29f\"\n opacity=\"0.7\"\n />\n <rect\n x=\"501.56\"\n y=\"307.59\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-67.76 -190.54) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"575.87\"\n y=\"357.6\"\n width=\"166.35\"\n height=\"289.88\"\n transform=\"translate(-103.27 983.74) rotate(-78.76)\"\n fill=\"url(#089a6a47-adaa-499b-aefb-cd6464b62fb8)\"\n />\n </g>\n <rect\n x=\"516.06\"\n y=\"420.61\"\n width=\"286.22\"\n height=\"162.68\"\n transform=\"translate(-30.42 -186.11) rotate(11.24)\"\n fill=\"#fff\"\n />\n <rect\n x=\"496.08\"\n y=\"335.18\"\n width=\"322.91\"\n height=\"4.89\"\n transform=\"translate(-62.49 -188.94) rotate(11.24)\"\n fill=\"#e0e0e0\"\n />\n <rect\n x=\"547.86\"\n y=\"424.02\"\n width=\"35.47\"\n height=\"118.64\"\n transform=\"translate(-35.84 -168.22) rotate(11.24)\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"606.43\"\n y=\"475.19\"\n width=\"35.47\"\n height=\"79.5\"\n transform=\"translate(-28.56 -179.03) rotate(11.24)\"\n fill=\"#3ad29f\"\n />\n <rect\n x=\"665.23\"\n y=\"523.93\"\n width=\"35.47\"\n height=\"42.81\"\n transform=\"translate(-21.5 -189.92) rotate(11.24)\"\n fill=\"#f55f44\"\n />\n <rect\n x=\"731.91\"\n y=\"492.72\"\n width=\"35.47\"\n height=\"86.84\"\n transform=\"translate(-22.02 -203.09) rotate(11.24)\"\n fill=\"#fdd835\"\n />\n <g opacity=\"0.5\">\n <rect\n x=\"128.65\"\n y=\"645.09\"\n width=\"3.67\"\n height=\"20.79\"\n fill=\"#47e6b1\"\n />\n <rect\n x=\"269.58\"\n y=\"712.31\"\n width=\"3.67\"\n height=\"20.79\"\n transform=\"translate(853.2 384.07) rotate(90)\"\n fill=\"#47e6b1\"\n />\n </g>\n <path\n d=\"M699.44,75.56a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,699.44,75.56Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#4d8af0\"\n opacity=\"0.5\"\n />\n <path\n d=\"M286.33,179.4a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,286.33,179.4Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <path\n d=\"M253.63,484.46a4.49,4.49,0,0,1-2.5-5.43,2.16,2.16,0,0,0,.1-.5h0a2.25,2.25,0,0,0-4-1.49h0a2.16,2.16,0,0,0-.25.44,4.49,4.49,0,0,1-5.43,2.5,2.16,2.16,0,0,0-.5-.1h0a2.25,2.25,0,0,0-1.49,4h0a2.16,2.16,0,0,0,.44.25,4.49,4.49,0,0,1,2.5,5.43,2.16,2.16,0,0,0-.1.5h0a2.25,2.25,0,0,0,4,1.49h0a2.16,2.16,0,0,0,.25-.44,4.49,4.49,0,0,1,5.43-2.5,2.16,2.16,0,0,0,.5.1h0a2.25,2.25,0,0,0,1.49-4h0A2.16,2.16,0,0,0,253.63,484.46Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#fdd835\"\n opacity=\"0.5\"\n />\n <circle cx=\"337.81\" cy=\"28.62\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"7.34\" cy=\"317.46\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"863.76\" cy=\"120.36\" r=\"7.34\" fill=\"#f55f44\" opacity=\"0.5\" />\n <circle cx=\"822.17\" cy=\"339.3\" r=\"7.34\" fill=\"#4d8af0\" opacity=\"0.5\" />\n <circle cx=\"37.68\" cy=\"145.22\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"853.29\" cy=\"647.34\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <circle cx=\"910.8\" cy=\"430.97\" r=\"7.34\" fill=\"#47e6b1\" opacity=\"0.5\" />\n <rect\n x=\"544.42\"\n y=\"601.05\"\n width=\"186.48\"\n height=\"153.07\"\n fill=\"url(#fd8d88e0-7826-450d-9e0b-001d1be709c2)\"\n />\n <path\n d=\"M723.82,639a54.55,54.55,0,0,1,109.1,0v34.91h15.27V639a69.82,69.82,0,0,0-139.65,0v34.91h15.27Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#8d1793c5-b76e-44e2-a52e-569460402331)\"\n />\n <path\n d=\"M726,638.25a52.37,52.37,0,1,1,104.74,0v33.52H845.4V638.25a67,67,0,0,0-134.06,0v33.52H726Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#6c63ff\"\n />\n <rect\n x=\"546.32\"\n y=\"602.45\"\n width=\"182.24\"\n height=\"148.73\"\n fill=\"#f5f5f5\"\n />\n <rect\n x=\"546.32\"\n y=\"631.77\"\n width=\"182.24\"\n height=\"90.07\"\n fill=\"#6c63ff\"\n />\n <path\n d=\"M791.73,727a13.36,13.36,0,1,0-23.08,9.15v28.51a9.72,9.72,0,0,0,19.44,0V736.18A13.3,13.3,0,0,0,791.73,727Z\"\n transform=\"translate(-140.93 -67.23)\"\n fill=\"url(#4745700d-8097-45ff-9f71-625443fc4ad8)\"\n />\n <path\n d=\"M789.89,729.38a11.52,11.52,0,1,0-19.9,7.89v24.58a8.38,8.38,0,1,0,16.76,0V737.27A11.47,11.47,0,0,0,789.89,729.38Z\"\n transform=\"translate(-140.93 -67.23)\"\n opacity=\"0.2\"\n />\n </svg>\n );\n};\n","const { __ } = wp.i18n;\n\nimport Illustration from \"./illustration\";\nconst { Flex, FlexItem, FlexBlock } = wp.components;\n\nexport default () => {\n return (\n <Flex style={{ padding: \"30px\", background: \"#fff\" }}>\n <FlexItem>\n <Illustration width=\"250px\" />\n </FlexItem>\n <FlexBlock style={{ marginLeft: \"20px\" }}>\n <h1>{__(\"Get detailed video insights.\", \"presto-player\")}</h1>\n <p>\n {__(\n \"Upgrade to Pro and get video insights like plays, watch-time, and drop off numbers.\",\n \"presto-player\"\n )}\n </p>\n <a\n href=\"https://prestoplayer.com\"\n target=\"_blank\"\n className=\"button button-primary\"\n >\n {__(\"Learn More\", \"presto-player\")}\n </a>\n </FlexBlock>\n </Flex>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { __ } = wp.i18n;\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [page, setPage] = useState(1);\n const [total, setTotal] = useState(0);\n const [totalPages, setTotalPages] = useState(0);\n const [data, setData] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n page,\n per_page: 5,\n ...params,\n }),\n parse: false,\n }).then((res) => {\n const total = res.headers\n ? parseInt(res.headers.get(\"X-WP-Total\"))\n : 0;\n const totalPages = res.headers\n ? parseInt(res.headers.get(\"X-WP-TotalPages\"))\n : 0;\n setTotal(total);\n setTotalPages(totalPages);\n return res.json();\n });\n\n setData(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n page={page}\n setPage={setPage}\n total={total}\n setTotal={setTotal}\n totalPages={totalPages}\n setTotalPages={setTotalPages}\n data={data}\n setData={setData}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withDataList\"\n );\n","const { __, sprintf } = wp.i18n;\n\nexport const humanSeconds = (savedSeconds) => {\n const hours = Math.floor(savedSeconds / 60 / 60);\n const minutes = Math.floor(savedSeconds / 60) - hours * 60;\n const seconds = savedSeconds % 60;\n\n let out = \"\";\n if (hours) {\n out += sprintf(__(\"%d hours\", \"presto-player\"), hours) + \", \";\n }\n if (minutes) {\n out += sprintf(__(\"%d minutes\", \"presto-player\"), minutes) + \" \";\n }\n if ((hours || minutes) && seconds) {\n out += __(\"and\", \"presto-player\") + \" \";\n }\n\n out += sprintf(__(\"%d seconds\", \"presto-player\"), seconds);\n\n return out;\n};\n\nexport const timestamp = (seconds) => {\n seconds = parseInt(seconds || 0) * 1000;\n return new Date(seconds).toISOString().substr(11, 8);\n};\n\n/*\n * This function remove the user timezone from new Date()\n * https://stackoverflow.com/a/29774197/1972413\n*/\nexport const convertDateTimeToAbsoluteDate = (dateTime) => {\n const offset = new Date().getTimezoneOffset()\n var date = new Date(dateTime.getTime() - (offset*60*1000))\n return date.toISOString().split('T')[0]+'T00:00:00.000Z';\n}\n","const { Spinner, Flex, FlexItem } = wp.components;\nexport default ({ height = 100 }) => {\n return (\n <Flex style={{ height: `${height}px` }} align=\"center\" justify=\"center\">\n <FlexItem>\n <Spinner />\n </FlexItem>\n </Flex>\n );\n};\n","const { __ } = wp.i18n;\nconst { Card, CardBody, Flex, FlexBlock, Button, ButtonGroup } = wp.components;\nconst { useState, useEffect } = wp.element;\n\nexport default ({ page, setPage, perPage, total, totalPages }) => {\n // do we have prev/next\n const [hasPrevious, setHasPrevious] = useState(false);\n const [hasNext, setHasNext] = useState(false);\n\n // end and start cursors\n const [end, setEnd] = useState(0);\n const [start, setStart] = useState(0);\n\n // set end and start\n useEffect(() => {\n setEnd(Math.min(perPage * page, total));\n setStart(perPage * (page - 1) + 1);\n }, [perPage, page, total]);\n\n // update page when pagination is clicked\n const nextPage = () => {\n setPage(Math.min(totalPages, page + 1));\n };\n const prevPage = () => {\n setPage(Math.max(page - 1, 0));\n };\n\n // set prev/next\n useEffect(() => {\n setHasPrevious(page - 1 > 0);\n setHasNext(totalPages >= page + 1);\n }, [page, totalPages]);\n\n return (\n <Card size=\"large\" className=\"presto-card pagination\">\n <CardBody className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n {sprintf(\n __(\"Showing %1s to %2s of %3s\", \"presto-player\"),\n start,\n end,\n total\n )}\n </FlexBlock>\n <FlexBlock>\n <Flex justify=\"flex-end\">\n {\n <ButtonGroup>\n <Button\n isSecondary\n disabled={!hasPrevious}\n onClick={prevPage}\n >\n {__(\"Previous\", \"presto-player\")}\n </Button>\n <Button isSecondary disabled={!hasNext} onClick={nextPage}>\n {__(\"Next\", \"presto-player\")}\n </Button>\n </ButtonGroup>\n }\n </Flex>\n </FlexBlock>\n </Flex>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\nconst { Card, CardBody ,Flex, FlexBlock, Button, ButtonGroup } = wp.components;\n\nimport classNames from 'classnames';\n\nexport default ({ columns , data , onRowClick , title }) => {\n\n if (!data.length) {\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card size=\"large\" className=\"presto-card table-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {title}\n </div>\n <table role=\"table\" className={classNames('presto-table', { 'is-clickable': onRowClick })}>\n <thead role=\"rowgroup\">\n <tr role=\"row\">\n {columns && columns.map((column) => {\n return (\n <th key={column.key} role=\"columnheader\">\n {column.label}\n </th>\n );\n })}\n </tr>\n </thead>\n\n <tbody role=\"rowgroup\">\n {data.map((row , rowIndex) => {\n return (\n <tr role=\"row\" key={`row-${rowIndex}`}\n onClick={() => onRowClick && onRowClick(row)}\n >\n {columns.map((column , columnIndex ) => {\n return (\n <td role=\"cell\" data-title={column.label} key={`row-${rowIndex}-${columnIndex}`} aria-label={column.label}>\n {column.render ? column.render(row) : (<div>{column.value(row)}</div>)}\n </td>\n );\n })}\n </tr>\n );\n })}\n </tbody>\n </table>\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect, useState } = wp.element;\nconst { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\nimport Pagination from \"@/admin/ui/Pagination\";\nimport Table from \"@/admin/ui/Table\";\n\nexport default ({\n perPage = 10,\n title,\n page,\n setPage,\n loading,\n total,\n totalPages,\n columns,\n data,\n onSelect,\n}) => {\n if (loading) {\n return (\n <Card>\n <Loading />\n </Card>\n );\n }\n\n if (!data?.length) {\n return (\n <Card size=\"large\" className=\"presto-card\">\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">{title}</div>\n <div style={{ opacity: 0.65 }}>\n {__(\"No data available.\", \"presto-player\")}\n </div>\n </CardBody>\n </Card>\n );\n }\n\n return (\n <div className=\"datatable\">\n <Table\n data={data}\n columns={columns}\n perPage={perPage}\n onRowClick={onSelect}\n title={title}\n />\n\n {!!total && (\n <Pagination\n page={page}\n setPage={setPage}\n perPage={perPage}\n total={total}\n totalPages={totalPages}\n />\n )}\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n }) => {\n // 10 per page\n const per_page = 5;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-users\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n },\n });\n }, [page, startDate, endDate]);\n\n // navigate to user screen here\n const navigate = (id) => {\n history.push(`#/user/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n value: (row) => row?.user?.name,\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value: (row) => row?.stats?.[0]?.data,\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render: (row) => (\n <div className=\"presto-badge\">{row?.stats?.[1]?.data}</div>\n ),\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Users\", \"presto-player\")}\n page={page}\n perPage={per_page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => navigate(row?.user?.id)}\n />\n );\n }\n);\n","const { __ } = wp.i18n;\nconst { useEffect } = wp.element;\nconst { compose } = wp.compose;\n\nimport { history } from \"@/router/context\";\nimport withDataList from \"../hocs/withDataList\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\nimport DataTable from \"./DataTable\";\n\n\nexport default compose([withDataList()])(\n ({\n loading,\n page,\n setPage,\n total,\n totalPages,\n data,\n error,\n fetchData,\n startDate,\n endDate,\n userId\n }) => {\n // 10 per page\n const per_page = 10;\n\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: \"/presto-player/v1/analytics/top-videos\",\n params: {\n per_page,\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n ...(userId ? { user_id: userId }: {})\n },\n });\n }, [page, startDate, endDate]);\n\n const navigate = (id) => {\n history.push(`#/video/${id}`);\n };\n\n const columns = [\n {\n key: \"name\",\n label: __(\"Name\", \"presto-player\"),\n render(row) {\n return (\n <h3 style={{ marginBottom: 0, wordBreak:'break-all' }}>\n {row.video.title\n ? row.video.title\n : __(\"Untitled\", \"presto-player\")}\n </h3>\n );\n },\n },\n {\n key: \"total_view\",\n label: __(\"Total View\", \"presto-player\"),\n value(row) {\n return row.stats[0].data;\n },\n },\n {\n key: \"avg_view_time\",\n label: __(\"Avg View Time\", \"presto-player\"),\n render(row) {\n return <div className=\"presto-badge\">{row.stats[1].data}</div>;\n },\n },\n {\n key: \"view_more\",\n label: \"\",\n render(row) {\n return (\n <span\n style={{\n color: \"var(--wp-admin-theme-color, #007cba)\",\n }}\n >\n {__(\"View Details\", \"presto-player\")} &rarr;\n </span>\n );\n },\n },\n ];\n\n if (error) {\n return { error };\n }\n\n return (\n <DataTable\n title={__(\"Top Videos\", \"presto-player\")}\n perPage={per_page}\n page={page}\n setPage={setPage}\n loading={loading}\n total={total}\n totalPages={totalPages}\n columns={columns}\n data={data}\n onSelect={(row) => {\n navigate(row?.video?.id);\n }}\n />\n );\n }\n);\n","// import apiFetch from \"@wordpress/api-fetch\";\nconst { apiFetch } = wp;\n\n// nonce and root\napiFetch.use(apiFetch.createNonceMiddleware(prestoPlayer.nonce));\napiFetch.use(\n apiFetch.createRootURLMiddleware(\n prestoPlayer.root + prestoPlayer.prestoVersionString\n )\n);\n\nexport default apiFetch;\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [totalViews, setTotalViews] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n min: 0,\n labels: {\n formatter: function (num) {\n if (num < 1) {\n return 0;\n }\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k\"\n : Math.sign(num) * Math.abs(num).toFixed(0);\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchViews();\n }, [props]);\n\n const fetchViews = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/views?\" +\n jQuery.param({\n ...(startDate ? { start: convertDateTimeToAbsoluteDate(startDate) } : {}),\n ...(endDate ? { end: convertDateTimeToAbsoluteDate(endDate) } : {}),\n }),\n parse: false,\n })\n .then(async (res) => {\n setTotalViews(res.headers && res.headers.get(\"X-WP-Total\"));\n const data = await res.json();\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Views\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(__(\"%d Unique Views\", \"presto-player\"), totalViews)}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, humanSeconds } from \"../util\";\n\n\nexport default (props) => {\n const [loading, setLoading] = useState(true);\n const [averageTime, setAverageTime] = useState(0);\n const { startDate, endDate } = props;\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n yaxis: {\n labels: {\n formatter: function (num) {\n return Math.abs(num) > 999\n ? Math.sign(num) * (Math.abs(num) / 1000).toFixed(1) + \"k min\"\n : (Math.sign(num) * Math.abs(num)).toFixed(1) + \"min\";\n },\n },\n },\n colors: [\"#7c3aed\"],\n xaxis: {\n type: \"datetime\",\n min: new Date(startDate).setHours(0, 0, 0, 0),\n max: new Date(endDate).setHours(23, 59, 59, 999),\n },\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n // fetch only if we already mounted\n useEffect(() => {\n fetchMinutes();\n }, [props]);\n\n const fetchMinutes = () => {\n setLoading(true);\n apiFetch({\n path:\n \"/presto-player/v1/analytics/watch-time?\" +\n jQuery.param({\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }),\n parse: false,\n })\n .then(async (res) => {\n const { data, average } = await res.json();\n\n setAverageTime(parseFloat(average));\n\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n series.push({\n x: item.date_time,\n y: (item.total / 60).toFixed(2),\n });\n });\n }\n setSeries([\n {\n name: \"Watch Time\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n if (loading) {\n return (\n <CardBody>\n <Loading />\n </CardBody>\n );\n }\n\n return (\n <CardBody className=\"presto-flow\">\n <div className=\"presto-card__title\">\n {sprintf(\n __(\"%s average watch time\", \"presto-player\"),\n humanSeconds(averageTime)\n )}\n </div>\n <Chart options={chart.options} series={series} type=\"area\" height={280} />\n </CardBody>\n );\n};\n","const { __ } = wp.i18n;\nconst { Panel, TabPanel } = wp.components;\n\nimport TotalViewsGraph from \"./TotalViewsGraph\";\nimport TotalWatchGraph from \"./TotalWatchGraph\";\n\nexport default ({ startDate, endDate }) => {\n return (\n <Panel>\n <TabPanel\n className=\"presto-module-tabs\"\n onSelect={() => {}}\n tabs={[\n {\n name: \"views\",\n title: __(\"Views\", \"presto-player\"),\n },\n {\n name: \"watch\",\n title: __(\"Watch Time\", \"presto-player\"),\n },\n ]}\n >\n {(tab) => {\n switch (tab.name) {\n case \"views\":\n return (\n <TotalViewsGraph startDate={startDate} endDate={endDate} />\n );\n case \"watch\":\n return (\n <TotalWatchGraph startDate={startDate} endDate={endDate} />\n );\n default:\n return <>Not Found</>;\n }\n }}\n </TabPanel>\n </Panel>\n );\n};\n","const { __ } = wp.i18n;\nconst { useRef, useEffect, useState } = wp.element;\n\nimport Litepicker from \"litepicker\";\nimport \"litepicker/dist/plugins/ranges\";\n\nexport default ({ startDate, setStartDate, endDate, setEndDate }) => {\n const dateRef = useRef();\n const [inputSize, setInputSize] = useState(25);\n\n let datepicker;\n useEffect(() => {\n datepicker = new Litepicker({\n element: dateRef?.current,\n singleMode: false,\n format: \"MMMM D YYYY\",\n autoApply: false,\n plugins: [\"ranges\"],\n maxDate: new Date(),\n numberOfMonths: 2,\n buttonText: {\n apply: __(\"Apply\", \"presto-player\"),\n cancel: __(\"Cancel\", \"presto-player\"),\n },\n dropdowns: {\n minYear: 1990,\n maxYear: null,\n months: true,\n years: true,\n },\n setup: (picker) => {\n picker.setDateRange(startDate, endDate);\n picker.on(\"button:apply\", (start, end) => {\n setStartDate(start.dateInstance);\n setEndDate(end.dateInstance);\n setInputSize(dateRef.current.value.length);\n });\n },\n });\n }, [dateRef]);\n\n return (\n <div className=\"component-base-control\">\n <div className=\"components-base-control__field\">\n <input\n className=\"components-text-control__input presto-settings__date-select\"\n ref={dateRef}\n size={inputSize}\n />\n </div>\n </div>\n );\n};\n","const { __ } = wp.i18n;\nconst { Flex, FlexBlock, FlexItem } = wp.components;\nconst { useState } = wp.element;\n\nimport TopUsers from \"../components/TopUsers\";\nimport TopVideos from \"../components/TopVideos\";\nimport OverviewPanel from \"../components/OverviewPanel\";\nimport DatePicker from \"../components/DatePicker\";\n\nexport default function ({ startDate, endDate, setStartDate, setEndDate }) {\n return (\n <>\n <Flex>\n <FlexBlock>\n <h1>{__(\"Analytics\", \"presto-player\")}</h1>\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-flow\">\n <div className=\"presto-dashboard\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <OverviewPanel startDate={startDate} endDate={endDate} />\n </div>\n <div className=\"presto-dashboard__item\">\n <TopUsers startDate={startDate} endDate={endDate} />\n </div>\n </div>\n\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos startDate={startDate} endDate={endDate} />\n </div>\n </div>\n </div>\n </div>\n </>\n );\n}\n","const { Card, CardBody } = wp.components;\nimport Loading from \"@/admin/settings/components/Loading\";\n\nexport default ({ loading, title , value, label }) => {\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card className=\"presto-player__stat-card\">\n <CardBody>\n <div className=\"presto-subtitle\">{title}</div>\n <h1>{value}</h1>\n <div>{label}</div>\n </CardBody>\n </Card>\n );\n};\n","/**\n * WordPress dependencies\n */\nconst { apiFetch } = wp;\nconst { useState } = wp.element;\nconst { createHigherOrderComponent } = wp.compose;\n\n/**\n * Higher order component factory\n *\n * @return {Function} The higher order component.\n */\nexport default () =>\n createHigherOrderComponent(\n (WrappedComponent) => (props) => {\n const [loading, setLoading] = useState(false);\n const [stat, setStat] = useState([]);\n const [error, setError] = useState(\"\");\n\n // fetch data\n // we could also abstract this function to make it reusable\n // or do a higher order component\n const fetchData = async ({ endpoint, params = {} }) => {\n setLoading(true);\n\n let responseData;\n try {\n responseData = await apiFetch({\n path: wp.url.addQueryArgs(endpoint, {\n ...params,\n }),\n });\n setStat(responseData);\n } catch (e) {\n console.error(e);\n if (e?.message) {\n setError(e.message);\n }\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <WrappedComponent\n loading={loading}\n setLoading={setLoading}\n fetchData={fetchData}\n stat={stat}\n setStat={setStat}\n error={error}\n setError={setError}\n {...props}\n />\n );\n },\n \"withStat\"\n );\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat?.view)}\n title={__(\"Total Views\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n\n const { userId, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/user/${userId}/total-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseFloat(stat?.view).toFixed(2)}\n title={__(\"Total Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","/** @jsx jsx */\n\nconst { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button } = wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport TopVideos from \"../components/TopVideos\";\nimport TotalVideoViewsByUser from \"../components/TotalVideoViewsByUser\";\nimport VideoAverageWatchTimeByUser from \"../components/VideoAverageWatchTimeByUser\";\nimport VideoTotalWatchTimeByUser from \"../components/VideoTotalWatchTimeByUser\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nimport { css, jsx } from \"@emotion/core\";\n\nconst User = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [user, setUser] = useState({});\n const [error, setError] = useState(\"\");\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getUser = async () => {\n setLoading(true);\n try {\n let user = await apiFetch({\n url: `/wp-json/wp/v2/users/${route?.params?.id}?context=edit`,\n });\n setUser(user);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"User Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n useEffect(() => {\n getUser();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n &larr; {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>\n {loading ? (\n <Spinner />\n ) : (\n <div\n css={css`\n display: flex;\n align-items: center;\n\n .presto__edit-user-button {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease;\n }\n\n &:hover {\n .presto__edit-user-button {\n opacity: 1;\n visibility: visible;\n }\n }\n `}\n >\n <div>\n <h1 className=\"presto-dashboard__title\">{user?.name}</h1>\n <p\n css={css`\n margin-top: -10px;\n opacity: 0.65;\n `}\n >\n {user?.email}\n </p>\n </div>\n {!!user.id && (\n <div\n className=\"presto__edit-user-button\"\n css={css`\n margin: 0 20px;\n `}\n >\n <Button\n href={`/wp-admin/user-edit.php?user_id=${user?.id}`}\n isSecondary\n isSmall\n >\n {__(\"View Profile\", \"presto-player\")} &rarr;\n </Button>\n </div>\n )}\n </div>\n )}\n </FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item\">\n <TotalVideoViewsByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoTotalWatchTimeByUser\n userId={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <TopVideos\n startDate={startDate}\n endDate={endDate}\n userId={route?.params?.id}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default User;\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/average-watchtime`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Average Watch Time\", \"presto-player\")}\n label={__(\"seconds\", \"presto-player\")}\n />\n );\n});\n","const { __, sprintf } = wp.i18n;\nconst { Card, CardBody } = wp.components;\nconst { useState, useEffect, useRef } = wp.element;\n\nimport Loading from \"@/admin/settings/components/Loading\";\nimport apiFetch from \"@/shared/services/fetch\";\nimport Chart from \"react-apexcharts\";\nimport { convertDateTimeToAbsoluteDate, timestamp } from \"../util\";\n\n\nexport default (props) => {\n const { video_id, startDate, endDate } = props;\n const [loading, setLoading] = useState(true);\n\n const [series, setSeries] = useState([\n {\n name: \"Views\",\n data: [],\n },\n ]);\n\n const fetchTimeline = () => {\n setLoading(true);\n apiFetch({\n path: wp.url.addQueryArgs(\n `/presto-player/v1/analytics/video/${video_id}/timeline`,\n {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n }\n ),\n })\n .then((data) => {\n let series = [];\n if (data.length) {\n data.forEach((item) => {\n // add another to them\n series.push({\n x: item.watch_time,\n y: item.total,\n });\n });\n }\n setSeries([\n {\n name: \"Viewers\",\n data: series,\n },\n ]);\n })\n .catch((e) => {\n console.error(e);\n })\n .finally(() => {\n setLoading(false);\n });\n };\n\n useEffect(() => {\n fetchTimeline();\n }, [startDate, endDate]);\n\n const chart = {\n options: {\n chart: {\n toolbar: {\n show: false,\n },\n },\n tickAmount: 1,\n yaxis: {\n labels: {\n formatter: function (num) {\n return parseInt(num);\n },\n },\n },\n xaxis: {\n labels: {\n formatter: function (num) {\n return timestamp(num);\n },\n },\n },\n colors: [\"#7c3aed\"],\n dataLabels: {\n enabled: false,\n },\n stroke: { curve: \"smooth\" },\n fill: {\n type: \"gradient\",\n gradient: {\n shadeIntensity: 1,\n opacityFrom: 0.7,\n opacityTo: 0.9,\n stops: [0, 90, 100],\n },\n },\n },\n };\n\n if (loading) {\n return (\n <Card>\n <CardBody>\n <Loading />\n </CardBody>\n </Card>\n );\n }\n\n return (\n <Card>\n <CardBody>\n <div className=\"presto-card__title\">\n {__(\"Audience Retention\", \"presto-player\")}\n </div>\n <Chart\n options={chart.options}\n series={series}\n type=\"area\"\n height={280}\n />\n </CardBody>\n </Card>\n );\n};\n","const { __ } = wp.i18n;\nconst { compose } = wp.compose;\nconst { useEffect } = wp.element;\n\nimport StatCard from \"@/admin/ui/StatCard\";\nimport withStat from \"../hocs/withStat\";\nimport { convertDateTimeToAbsoluteDate } from \"../util\";\n\nexport default compose([withStat()])((props) => {\n const { video_id, startDate, endDate, stat, fetchData, loading } = props;\n\n // fetch data when page changes\n useEffect(() => {\n fetchData({\n endpoint: `/presto-player/v1/analytics/video/${video_id}/views`,\n params: {\n start: convertDateTimeToAbsoluteDate(startDate),\n end: convertDateTimeToAbsoluteDate(endDate),\n },\n });\n }, [startDate, endDate]);\n\n return (\n <StatCard\n loading={loading}\n value={parseInt(stat)}\n title={__(\"Unique Views\", \"presto-player\")}\n />\n );\n});\n","import { PrestoPlayer } from \"@presto-player/react\";\n\nconst { useSelect } = wp.data;\n\nexport default ({ src, preset, branding, attributes, adminPreview, type }) => {\n const { chapters, mutedOverlay, mutedPreview } = attributes;\n\n const youtube = useSelect((select) => {\n return select(\"presto-player/player\")?.youtube();\n });\n\n const css = useSelect((select) => {\n return select(\"presto-player/player\")?.playerCSS();\n });\n\n const mutedOverlayContent = () => {\n return (\n <div\n className=\"presto-player__overlay is-image\"\n style={{\n position: \"absolute\",\n width: `${mutedOverlay?.width || 100}%`,\n left: `${(mutedOverlay?.focalPoint?.x || 0.5) * 100}%`,\n top: `${(mutedOverlay?.focalPoint?.y || 0.5) * 100}%`,\n }}\n >\n <img\n src={mutedOverlay?.src}\n style={{\n transform: \"translateX(-50%) translateY(-50%)\",\n }}\n />\n </div>\n );\n };\n\n return (\n <div\n className=\"wp-block-video presto-block-video\"\n style={{\n \"--presto-player-border-radius\": `${preset?.border_radius}px`,\n ...(preset?.caption_background\n ? { \"--plyr-captions-background\": preset.caption_background }\n : {}),\n ...(branding?.color ? { \"--plyr-color-main\": branding.color } : {}),\n \"--presto-player-email-border-radius\": `${\n preset?.email_collection?.border_radius || 0\n }px`,\n \"--presto-player-logo-width\": `${branding?.logo_width || 75}px`,\n }}\n >\n <PrestoPlayer\n src={src}\n css={css}\n isAdmin={true}\n preload=\"metadata\"\n preset={preset}\n bunny={{\n thumbnail: attributes?.previewThumbnail,\n preview: attributes?.preview,\n }}\n youtube={{\n channelId: youtube?.channel_id,\n }}\n tracks={\n !!preset?.captions && [\n {\n kind: \"captions\",\n label: \"English\",\n srclang: \"en\",\n src: \"/path/to/captions.en.vtt\",\n default: true,\n },\n ]\n }\n branding={branding}\n chapters={chapters}\n blockAttributes={attributes}\n poster={attributes.poster}\n provider={type}\n >\n <div slot=\"player-end\">\n {mutedPreview?.enabled &&\n mutedOverlay?.enabled &&\n mutedOverlayContent()}\n {adminPreview}\n </div>\n </PrestoPlayer>\n </div>\n );\n};\n","const { __ } = wp.i18n;\n\nconst { Flex, FlexBlock, FlexItem, Spinner, Button, TextControl } =\n wp.components;\n\nimport { history } from \"@/router/context\";\nimport DatePicker from \"../components/DatePicker\";\nimport VideoAverageWatchTime from \"../components/VideoAverageWatchTime\";\nimport VideoTimeline from \"../components/VideoTimeline\";\nimport VideoViews from \"../components/VideoViews\";\nimport Player from \"../../blocks/shared/Player\";\n\nconst { useEffect, useState } = wp.element;\nconst { apiFetch } = wp;\n\nconst Video = ({ route, startDate, endDate, setStartDate, setEndDate }) => {\n const [loading, setLoading] = useState(true);\n const [video, setVideo] = useState({});\n const [error, setError] = useState(\"\");\n const [thisName, setThisName] = useState(null);\n const [editing, setEditing] = useState(false);\n\n const back = () => {\n history.push(`#/`);\n };\n\n const getVideo = async () => {\n setLoading(true);\n try {\n let video = await apiFetch({\n url: `${prestoPlayer?.root}${prestoPlayer?.prestoVersionString}videos/${route?.params?.id}`,\n });\n setVideo(video);\n setThisName(video?.title);\n } catch (e) {\n if (e.code === \"rest_no_route\") {\n setError(\"Video Not Found\");\n }\n } finally {\n setLoading(false);\n }\n };\n\n const putVideo = async () => {\n console.log(`New Video title ${thisName}`);\n setLoading(true);\n try {\n const data = {\n ...video,\n ...{ title: thisName },\n };\n let saved = await wp.apiFetch({\n method: \"POST\",\n url: wp.url.addQueryArgs(\n `${prestoPlayer.root}${prestoPlayer.prestoVersionString}videos/${video.id}`,\n { _method: \"PUT\" }\n ),\n data,\n });\n\n if (!saved) {\n throw genericError;\n }\n setEditing(false);\n setVideo(saved);\n } catch (e) {\n setError(e?.message ? e.message : genericError);\n } finally {\n setLoading(false);\n }\n };\n\n const cancelEditing = () => {\n setThisName(video?.title);\n setEditing(false);\n };\n\n const renderVideoEditableTitle = () => {\n if (loading) {\n return <Spinner />;\n } else if (editing) {\n return (\n <div className=\"presto-inline-edit presto-inline-edit--editing\">\n <TextControl\n className=\"presto-inline-edit__input\"\n type=\"text\"\n value={thisName}\n onChange={(title) => setThisName(title)}\n />\n <Button\n className=\"presto-inline-edit__button\"\n isPrimary\n onClick={putVideo}\n >\n {\" \"}\n Save{\" \"}\n </Button>\n <Button\n className=\"presto-inline-edit__button\"\n isSecondary\n onClick={cancelEditing}\n >\n {\" \"}\n Cancel{\" \"}\n </Button>\n </div>\n );\n } else {\n return (\n <div className=\"presto-inline-edit\">\n <h1 className=\"presto-dashboard__title presto-inline-edit__text\">\n {video?.title}\n </h1>\n\n <button\n className=\"presto-inline-edit__edit\"\n onClick={() => setEditing(true)}\n >\n <span className=\"dashicon dashicons dashicons-edit\"></span>\n </button>\n </div>\n );\n }\n };\n\n useEffect(() => {\n getVideo();\n }, []);\n\n if (error) {\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <h2>{error}</h2>\n </FlexBlock>\n </Flex>\n </div>\n );\n }\n\n return (\n <div className=\"presto-flow\">\n <Flex>\n <FlexBlock>\n <Button isSecondary onClick={back}>\n &larr; {__(\"Back to Dashboard\", \"presto-player\")}\n </Button>\n </FlexBlock>\n </Flex>\n <Flex wrap>\n <FlexBlock>{renderVideoEditableTitle()}</FlexBlock>\n <FlexItem>\n <DatePicker\n startDate={startDate}\n setStartDate={setStartDate}\n endDate={endDate}\n setEndDate={setEndDate}\n />\n </FlexItem>\n </Flex>\n\n <div className=\"presto-dashboard presto-flow\">\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoViews\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n <div className=\"presto-dashboard__item\">\n {!!Object.keys(video || {}).length && (\n <Player\n src={video?.src}\n attributes={{}}\n type={video?.type}\n preset={{\n \"play-large\": true,\n play: true,\n progress: true,\n \"current-time\": true,\n }}\n />\n )}\n </div>\n <div className=\"presto-dashboard__item\">\n <VideoAverageWatchTime\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n <div className=\"presto-dashboard__row\">\n <div className=\"presto-dashboard__item is-large\">\n <VideoTimeline\n video_id={route?.params?.id}\n startDate={startDate}\n endDate={endDate}\n />\n </div>\n </div>\n </div>\n </div>\n );\n};\n\nexport default Video;\n","export const routes = {\n dashboard: {\n path: \"/\",\n },\n video: {\n path: \"/video/:id\",\n },\n user: {\n path: \"/user/:id\",\n },\n};\n","const { useState } = wp.element;\n\nimport { Route, Router } from \"@/router\";\n\nimport AnalyticsUpgrade from \"./pages/AnalyticsUpgrade\";\nimport Dashboard from \"./pages/Dashboard\";\n\nimport User from \"./pages/User\";\nimport Video from \"./pages/Video\";\nimport { routes } from \"./routes\";\n\nexport default () => {\n const scrollToTop = () => {\n window.scrollTo(0, 0);\n };\n\n const [startDate, setStartDate] = useState(\n new Date(Date.now() - 7 * 24 * 60 * 60 * 1000)\n );\n const [endDate, setEndDate] = useState(new Date());\n\n if (!prestoPlayer?.isPremium) {\n return (\n <div className=\"presto-dashboard__content\">\n <AnalyticsUpgrade />\n </div>\n );\n }\n\n return (\n <div className=\"presto-dashboard__content\">\n <Router routes={routes}>\n <Route path={routes.dashboard.path} onRoute={scrollToTop}>\n <Dashboard\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.video.path} onRoute={scrollToTop}>\n <Video\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n <Route path={routes.user.path} onRoute={scrollToTop}>\n <User\n startDate={startDate}\n endDate={endDate}\n setStartDate={setStartDate}\n setEndDate={setEndDate}\n />\n </Route>\n </Router>\n </div>\n );\n};\n","const { render } = wp.element;\n\nimport { defineCustomElements } from \"@presto-player/components/dist/custom-elements\";\n\ndefineCustomElements();\n\n/**\n * App\n */\nimport App from \"./App\";\n\n/**\n * styles\n */\nimport \"./analytics.scss\";\n\n/**\n * Render\n */\nrender(<App />, document.getElementById(\"presto-analytics-page\"));\n"],"sourceRoot":""}
 
dist/analytics/admin.dependencies.wp.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
  "dependencies": [],
3
- "version": "3fac1105663758c61158472b0fa657c3"
4
  }
1
  {
2
  "dependencies": [],
3
+ "version": "e9a30b2af6e52f8cf6041fa0455c65c9"
4
  }
dist/analytics/manifest.json CHANGED
@@ -1,34 +1,34 @@
1
  {
2
  "admin.css": "analytics/admin-866190a9.css",
3
  "admin.css.map": "analytics/admin-866190a9.css.map",
4
- "admin.js": "analytics/admin-5fb77cbc.js",
5
- "admin.js.map": "analytics/admin-5fb77cbc.js.map",
6
- "analytics/0-3f75c1ce.js": "analytics/0-3f75c1ce.js",
7
- "analytics/0-3f75c1ce.js.map": "analytics/0-3f75c1ce.js.map",
8
- "analytics/4-1a7d5725.js": "analytics/4-1a7d5725.js",
9
- "analytics/4-1a7d5725.js.map": "analytics/4-1a7d5725.js.map",
10
- "analytics/5-48078a33.js": "analytics/5-48078a33.js",
11
- "analytics/5-48078a33.js.map": "analytics/5-48078a33.js.map",
12
- "analytics/6-952599ce.js": "analytics/6-952599ce.js",
13
- "analytics/6-952599ce.js.map": "analytics/6-952599ce.js.map",
14
- "analytics/7-c4380ef8.js": "analytics/7-c4380ef8.js",
15
- "analytics/7-c4380ef8.js.map": "analytics/7-c4380ef8.js.map",
16
- "runtime.js": "analytics/runtime-86dd3f98.js",
17
- "runtime.js.map": "analytics/runtime-86dd3f98.js.map",
18
- "vendors--presto-player--admin.js": "analytics/vendors--presto-player--admin-831bbaae.js",
19
- "vendors--presto-player--admin.js.map": "analytics/vendors--presto-player--admin-831bbaae.js.map",
20
  "wpackioEp": {
21
  "admin": {
22
  "assets": {
23
  "js": [
24
- "analytics/runtime-86dd3f98.js",
25
- "analytics/vendors--presto-player--admin-831bbaae.js",
26
- "analytics/admin-5fb77cbc.js"
27
  ],
28
  "js.map": [
29
- "analytics/runtime-86dd3f98.js.map",
30
- "analytics/vendors--presto-player--admin-831bbaae.js.map",
31
- "analytics/admin-5fb77cbc.js.map"
32
  ],
33
  "css": [
34
  "analytics/admin-866190a9.css"
1
  {
2
  "admin.css": "analytics/admin-866190a9.css",
3
  "admin.css.map": "analytics/admin-866190a9.css.map",
4
+ "admin.js": "analytics/admin-103fe944.js",
5
+ "admin.js.map": "analytics/admin-103fe944.js.map",
6
+ "analytics/0-05e94cb1.js": "analytics/0-05e94cb1.js",
7
+ "analytics/0-05e94cb1.js.map": "analytics/0-05e94cb1.js.map",
8
+ "analytics/4-10d614d7.js": "analytics/4-10d614d7.js",
9
+ "analytics/4-10d614d7.js.map": "analytics/4-10d614d7.js.map",
10
+ "analytics/5-15cfd722.js": "analytics/5-15cfd722.js",
11
+ "analytics/5-15cfd722.js.map": "analytics/5-15cfd722.js.map",
12
+ "analytics/6-f0ead9a8.js": "analytics/6-f0ead9a8.js",
13
+ "analytics/6-f0ead9a8.js.map": "analytics/6-f0ead9a8.js.map",
14
+ "analytics/7-0f173a3d.js": "analytics/7-0f173a3d.js",
15
+ "analytics/7-0f173a3d.js.map": "analytics/7-0f173a3d.js.map",
16
+ "runtime.js": "analytics/runtime-84f85df4.js",
17
+ "runtime.js.map": "analytics/runtime-84f85df4.js.map",
18
+ "vendors--presto-player--admin.js": "analytics/vendors--presto-player--admin-1ba9588a.js",
19
+ "vendors--presto-player--admin.js.map": "analytics/vendors--presto-player--admin-1ba9588a.js.map",
20
  "wpackioEp": {
21
  "admin": {
22
  "assets": {
23
  "js": [
24
+ "analytics/runtime-84f85df4.js",
25
+ "analytics/vendors--presto-player--admin-1ba9588a.js",
26
+ "analytics/admin-103fe944.js"
27
  ],
28
  "js.map": [
29
+ "analytics/runtime-84f85df4.js.map",
30
+ "analytics/vendors--presto-player--admin-1ba9588a.js.map",
31
+ "analytics/admin-103fe944.js.map"
32
  ],
33
  "css": [
34
  "analytics/admin-866190a9.css"
dist/analytics/{runtime-07fc3029.js → runtime-84f85df4.js} RENAMED
@@ -14,5 +14,5 @@
14
  *
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
- */!function(e){function r(r){for(var n,u,i=r[0],c=r[1],l=r[2],p=0,s=[];p<i.length;p++)u=i[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return a.push.apply(a,l||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={2:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"analytics/"+({}[e]||e)+"-"+{0:"ecdca2a6",4:"1071be7e",5:"2ed7cff3",6:"c200bf25",7:"5437b4a3"}[e]+".js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="",u.oe=function(e){throw console.error(e),e};var i=window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([]);
18
- //# sourceMappingURL=runtime-07fc3029.js.map
14
  *
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
+ */!function(e){function r(r){for(var n,u,i=r[0],c=r[1],l=r[2],p=0,s=[];p<i.length;p++)u=i[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return a.push.apply(a,l||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={2:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"analytics/"+({}[e]||e)+"-"+{0:"05e94cb1",4:"10d614d7",5:"15cfd722",6:"f0ead9a8",7:"0f173a3d"}[e]+".js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="",u.oe=function(e){throw console.error(e),e};var i=window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([]);
18
+ //# sourceMappingURL=runtime-84f85df4.js.map
dist/analytics/{runtime-07fc3029.js.map → runtime-84f85df4.js.map} RENAMED
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","2","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","jsonpScriptSrc","error","Error","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","message","name","request","undefined","setTimeout","head","appendChild","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":";;;;;;;;;;;;;;;;gBACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrBiB,EAAG,GAGAZ,EAAkB,GAQtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAA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KA,GAC5BA,GAIR/C,EAAoBgD,EAAI,SAASgB,EAAQC,GAAY,OAAOnF,OAAOC,UAAUC,eAAeC,KAAK+E,EAAQC,IAGzGjE,EAAoBuB,EAAI,GAGxBvB,EAAoBkE,GAAK,SAASC,GAA2B,MAApBC,QAAQ3C,MAAM0C,GAAYA,GAEnE,IAAIE,EAAaC,OAA0C,kCAAIA,OAA0C,mCAAK,GAC1GC,EAAmBF,EAAWlF,KAAK2E,KAAKO,GAC5CA,EAAWlF,KAAOf,EAClBiG,EAAaA,EAAWG,QACxB,IAAI,IAAI7F,EAAI,EAAGA,EAAI0F,EAAWxF,OAAQF,IAAKP,EAAqBiG,EAAW1F,IAC3E,IAAIU,EAAsBkF,EAI1B9E,I","file":"analytics/runtime-07fc3029.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"analytics/\" + ({}[chunkId]||chunkId) + \"-\" + {\"0\":\"ecdca2a6\",\"4\":\"1071be7e\",\"5\":\"2ed7cff3\",\"6\":\"c200bf25\",\"7\":\"5437b4a3\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"wpackioprestoPlayeranalyticsJsonp\"] = window[\"wpackioprestoPlayeranalyticsJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","2","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","jsonpScriptSrc","error","Error","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","message","name","request","undefined","setTimeout","head","appendChild","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":";;;;;;;;;;;;;;;;gBACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG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sBkF,EAI1B9E,I","file":"analytics/runtime-84f85df4.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"analytics/\" + ({}[chunkId]||chunkId) + \"-\" + {\"0\":\"05e94cb1\",\"4\":\"10d614d7\",\"5\":\"15cfd722\",\"6\":\"f0ead9a8\",\"7\":\"0f173a3d\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"wpackioprestoPlayeranalyticsJsonp\"] = window[\"wpackioprestoPlayeranalyticsJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
dist/analytics/runtime-86dd3f98.js DELETED
@@ -1,18 +0,0 @@
1
- /*!
2
- *
3
- * Presto Player
4
- *
5
- * @author Presto Made, Inc
6
- * @version 0.1.0
7
- * @link undefined
8
- * @license GPL
9
- *
10
- * Copyright (c) 2021 Presto Made, Inc
11
- *
12
- * This software is released under the GPL License
13
- * https://opensource.org/licenses/GPL
14
- *
15
- * Compiled with the help of https://wpack.io
16
- * A zero setup Webpack Bundler Script for WordPress
17
- */!function(e){function r(r){for(var n,u,i=r[0],c=r[1],l=r[2],p=0,s=[];p<i.length;p++)u=i[p],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return a.push.apply(a,l||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={2:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"analytics/"+({}[e]||e)+"-"+{0:"3f75c1ce",4:"1a7d5725",5:"48078a33",6:"952599ce",7:"c4380ef8"}[e]+".js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(l);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.name="ChunkLoadError",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="",u.oe=function(e){throw console.error(e),e};var i=window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var l=0;l<i.length;l++)r(i[l]);var f=c;t()}([]);
18
- //# sourceMappingURL=runtime-86dd3f98.js.map
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dist/analytics/runtime-86dd3f98.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","2","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","jsonpScriptSrc","error","Error","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","message","name","request","undefined","setTimeout","head","appendChild","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","window","oldJsonpFunction","slice"],"mappings":";;;;;;;;;;;;;;;;gBACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAKlC,IAFGe,GAAqBA,EAAoBhB,GAEtCO,EAASC,QACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrBiB,EAAG,GAGAZ,EAAkB,GAQtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAAO4B,EAAiB5B,GAAU8B,QAGnC,IAAIC,EAASH,EAAiB5B,GAAY,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AOnF,OAAOC,UAAUC,eAAeC,KAAK+E,EAAQC,IAGzGjE,EAAoBuB,EAAI,GAGxBvB,EAAoBkE,GAAK,SAASC,GAA2B,MAApBC,QAAQ3C,MAAM0C,GAAYA,GAEnE,IAAIE,EAAaC,OAA0C,kCAAIA,OAA0C,mCAAK,GAC1GC,EAAmBF,EAAWlF,KAAK2E,KAAKO,GAC5CA,EAAWlF,KAAOf,EAClBiG,EAAaA,EAAWG,QACxB,IAAI,IAAI7F,EAAI,EAAGA,EAAI0F,EAAWxF,OAAQF,IAAKP,EAAqBiG,EAAW1F,IAC3E,IAAIU,EAAsBkF,EAI1B9E,I","file":"analytics/runtime-86dd3f98.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t2: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"analytics/\" + ({}[chunkId]||chunkId) + \"-\" + {\"0\":\"3f75c1ce\",\"4\":\"1a7d5725\",\"5\":\"48078a33\",\"6\":\"952599ce\",\"7\":\"c4380ef8\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"wpackioprestoPlayeranalyticsJsonp\"] = window[\"wpackioprestoPlayeranalyticsJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// run deferred modules from other chunks\n \tcheckDeferredModules();\n"],"sourceRoot":""}
 
dist/analytics/{vendors--presto-player--admin-6682354b.js → vendors--presto-player--admin-1ba9588a.js} RENAMED
@@ -15,38 +15,38 @@
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
- (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[3],[function(e,t,i){e.exports=i(33)},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(20);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,t)||Object(n.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,i){"use strict";i.d(t,"a",(function(){return D})),i.d(t,"b",(function(){return z}));var n=i(10),r=i(13);var a=i(9);var o=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,i=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(i,t),this.tags.push(i)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);r.insertRule(e,a?0:r.cssRules.length)}catch(e){0}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var s=function(e){function t(e,t,n){var r=t.trim().split(g);t=r;var a=r.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=i(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var c=0;c<o;++c)t[l++]=i(e[c]+" ",r[s],n).trim()}return t}function i(e,t,i){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*i&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,i,n){var o=e+";",s=2*t+3*i+4*n;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===E||2===E&&a(l,1)?"-webkit-"+l+l:l}if(0===E||2===E&&!a(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(C,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return p.test(o)?o.replace(u,":-webkit-")+o.replace(u,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(x,"tb");break;case 232:l=o.replace(x,"tb-rl");break;case 220:l=o.replace(x,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(_,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(_,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,i,n).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===i+n&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+o}return o}function a(e,t){var i=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?i:10);return i=e.substring(i+1,e.length-1),D(2!==t?n:n.replace(A,"$1"),i,t)}function o(e,t){var i=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return i!==t+";"?i.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,i,n,r,a,o,s,l,h){for(var d,u=0,p=t;u<O;++u)switch(d=I[u].call(c,e,p,i,n,r,a,o,s,l,h)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?E=1:(E=2,D=e):E=0),l}function c(e,i){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<O){var l=s(-1,i,n,n,P,T,0,0,0,0);void 0!==l&&"string"==typeof l&&(i=l)}var c=function e(i,n,l,c,u){for(var p,f,g,m,x,k=0,_=0,A=0,S=0,C=0,I=0,D=g=p=0,N=0,R=0,F=0,Y=0,H=l.length,$=H-1,j="",X="",B="",W="";N<H;){if(f=l.charCodeAt(N),N===$&&0!==_+S+A+k&&(0!==_&&(f=47===_?10:47),S=A=k=0,H++,$++),0===_+S+A+k){if(N===$&&(0<R&&(j=j.replace(d,"")),0<j.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:j+=l.charAt(N)}f=59}switch(f){case 123:for(p=(j=j.trim()).charCodeAt(0),g=1,Y=++N;N<H;){switch(f=l.charCodeAt(N)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(N+1)){case 42:case 47:e:{for(D=N+1;D<$;++D)switch(l.charCodeAt(D)){case 47:if(42===f&&42===l.charCodeAt(D-1)&&N+2!==D){N=D+1;break e}break;case 10:if(47===f){N=D+1;break e}}N=D}}break;case 91:f++;case 40:f++;case 34:case 39:for(;N++<$&&l.charCodeAt(N)!==f;);}if(0===g)break;N++}switch(g=l.substring(Y,N),0===p&&(p=(j=j.replace(h,"").trim()).charCodeAt(0)),p){case 64:switch(0<R&&(j=j.replace(d,"")),f=j.charCodeAt(1)){case 100:case 109:case 115:case 45:R=n;break;default:R=M}if(Y=(g=e(n,R,g,f,u+1)).length,0<O&&(x=s(3,g,R=t(M,j,F),n,P,T,Y,f,u,c),j=R.join(""),void 0!==x&&0===(Y=(g=x.trim()).length)&&(f=0,g="")),0<Y)switch(f){case 115:j=j.replace(w,o);case 100:case 109:case 45:g=j+"{"+g+"}";break;case 107:g=(j=j.replace(v,"$1 $2"))+"{"+g+"}",g=1===E||2===E&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=j+g,112===c&&(X+=g,g="")}else g="";break;default:g=e(n,t(n,j,F),g,c,u+1)}B+=g,g=F=R=D=p=0,j="",f=l.charCodeAt(++N);break;case 125:case 59:if(1<(Y=(j=(0<R?j.replace(d,""):j).trim()).length))switch(0===D&&(p=j.charCodeAt(0),45===p||96<p&&123>p)&&(Y=(j=j.replace(" ",":")).length),0<O&&void 0!==(x=s(1,j,n,i,P,T,X.length,c,u,c))&&0===(Y=(j=x.trim()).length)&&(j="\0\0"),p=j.charCodeAt(0),f=j.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){W+=j+l.charAt(N);break}default:58!==j.charCodeAt(Y-1)&&(X+=r(j,p,f,j.charCodeAt(2)))}F=R=D=p=0,j="",f=l.charCodeAt(++N)}}switch(f){case 13:case 10:47===_?_=0:0===1+p&&107!==c&&0<j.length&&(R=1,j+="\0"),0<O*z&&s(0,j,n,i,P,T,X.length,c,u,c),T=1,P++;break;case 59:case 125:if(0===_+S+A+k){T++;break}default:switch(T++,m=l.charAt(N),f){case 9:case 32:if(0===S+k+_)switch(C){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===S+_+k&&(R=F=1,m="\f"+m);break;case 108:if(0===S+_+k+L&&0<D)switch(N-D){case 2:112===C&&58===l.charCodeAt(N-3)&&(L=C);case 8:111===I&&(L=I)}break;case 58:0===S+_+k&&(D=N);break;case 44:0===_+A+S+k&&(R=1,m+="\r");break;case 34:case 39:0===_&&(S=S===f?0:0===S?f:S);break;case 91:0===S+_+A&&k++;break;case 93:0===S+_+A&&k--;break;case 41:0===S+_+k&&A--;break;case 40:if(0===S+_+k){if(0===p)switch(2*C+3*I){case 533:break;default:p=1}A++}break;case 64:0===_+A+S+k+D+g&&(g=1);break;case 42:case 47:if(!(0<S+k+A))switch(_){case 0:switch(2*f+3*l.charCodeAt(N+1)){case 235:_=47;break;case 220:Y=N,_=42}break;case 42:47===f&&42===C&&Y+2!==N&&(33===l.charCodeAt(Y+2)&&(X+=l.substring(Y,N+1)),m="",_=0)}}0===_&&(j+=m)}I=C,C=f,N++}if(0<(Y=X.length)){if(R=n,0<O&&(void 0!==(x=s(2,X,R,i,P,T,Y,c,u,c))&&0===(X=x).length))return W+X+B;if(X=R.join(",")+"{"+X+"}",0!=E*L){switch(2!==E||a(X,2)||(L=0),L){case 111:X=X.replace(b,":-moz-$1")+X;break;case 112:X=X.replace(y,"::-webkit-input-$1")+X.replace(y,"::-moz-$1")+X.replace(y,":-ms-input-$1")+X}L=0}}return W+X+B}(M,n,i,0,0);return 0<O&&(void 0!==(l=s(-2,c,n,n,P,T,c.length,0,0,0))&&(c=l)),"",L=0,T=P=1,c}var h=/^\0+/g,d=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,_=/-self|flex-/g,A=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,T=1,P=1,L=0,E=1,M=[],I=[],O=0,D=null,z=0;return c.use=function e(t){switch(t){case void 0:case null:O=I.length=0;break;default:if("function"==typeof t)I[O++]=t;else if("object"===Object(n.a)(t))for(var i=0,r=t.length;i<r;++i)e(t[i]);else z=0|!!t}return e},c.set=l,void 0!==e&&l(e),c};function l(e){e&&c.current.insert(e+"}")}var c={current:null},h=function(e,t,i,n,r,a,o,s,h,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return c.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return c.current.insert(i[0]+t),"";default:return t+(0===d?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(l)}},d=function(e){void 0===e&&(e={});var t,i=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var n=new s(t);var r,a={};r=e.container||document.head;var l,d=document.querySelectorAll("style[data-emotion-"+i+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+i).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),n.use(e.stylisPlugins)(h),l=function(e,t,i,r){var a=t.name;c.current=i,n(e,t.styles),r&&(u.inserted[a]=!0)};var u={key:i,sheet:new o({key:i,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:l};return u};i(41);function u(e,t,i){var n="";return i.split(" ").forEach((function(i){void 0!==e[i]?t.push(e[i]):n+=i+" "})),n}var p=function(e,t,i){var n=e.key+"-"+t.name;if(!1===i&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var r=t;do{e.insert("."+n,r,e.sheet,!0);r=r.next}while(void 0!==r)}};var f=function(e){for(var t,i=0,n=0,r=e.length;r>=4;++n,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),i=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&i)+(59797*(i>>>16)<<16);switch(r){case 3:i^=(255&e.charCodeAt(n+2))<<16;case 2:i^=(255&e.charCodeAt(n+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(n)))+(59797*(i>>>16)<<16)}return(((i=1540483477*(65535&(i^=i>>>13))+(59797*(i>>>16)<<16))^i>>>15)>>>0).toString(36)},g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var m=/[A-Z]|^ms/g,v=/_EMO_([^_]+?)_([^]*?)_EMO_/g,y=function(e){return 45===e.charCodeAt(1)},b=function(e){return null!=e&&"boolean"!=typeof e},x=function(e){var t={};return function(i){return void 0===t[i]&&(t[i]=e(i)),t[i]}}((function(e){return y(e)?e:e.replace(m,"-$&").toLowerCase()})),w=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(v,(function(e,t,i){return _={name:t,styles:i,next:_},t}))}return 1===g[e]||y(e)||"number"!=typeof t||0===t?t:t+"px"};function k(e,t,i,r){if(null==i)return"";if(void 0!==i.__emotion_styles)return i;switch(Object(n.a)(i)){case"boolean":return"";case"object":if(1===i.anim)return _={name:i.name,styles:i.styles,next:_},i.name;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)_={name:a.name,styles:a.styles,next:_},a=a.next;return i.styles+";"}return function(e,t,i){var r="";if(Array.isArray(i))for(var a=0;a<i.length;a++)r+=k(e,t,i[a],!1);else for(var o in i){var s=i[o];if("object"!==Object(n.a)(s))null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":b(s)&&(r+=x(o)+":"+w(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=k(e,t,s,!1);switch(o){case"animation":case"animationName":r+=x(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<s.length;c++)b(s[c])&&(r+=x(o)+":"+w(o,s[c])+";")}return r}(e,t,i);case"function":if(void 0!==e){var o=_,s=i(e);return _=o,k(e,t,s,r)}break;case"string":}if(null==t)return i;var l=t[i];return void 0===l||r?i:l}var _,A=/label:\s*([^\s;\n{]+)\s*;/g;var S=function(e,t,i){if(1===e.length&&"object"===Object(n.a)(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";_=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=k(i,t,o,!1)):a+=o[0];for(var s=1;s<e.length;s++)a+=k(i,t,e[s],46===a.charCodeAt(a.length-1)),r&&(a+=o[s]);A.lastIndex=0;for(var l,c="";null!==(l=A.exec(a));)c+="-"+l[1];return{name:f(a)+c,styles:a,next:_}},C=Object.prototype.hasOwnProperty,T=Object(a.createContext)("undefined"!=typeof HTMLElement?d():null),P=Object(a.createContext)({}),L=(T.Provider,function(e){var t=function(t,i){return Object(a.createElement)(T.Consumer,null,(function(n){return e(t,n,i)}))};return Object(a.forwardRef)(t)}),E="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",M=function(e,t){var i={};for(var n in t)C.call(t,n)&&(i[n]=t[n]);return i[E]=e,i},I=function(e,t,i,n){var r=null===i?t.css:t.css(i);"string"==typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var o=t[E],s=[r],l="";"string"==typeof t.className?l=u(e.registered,s,t.className):null!=t.className&&(l=t.className+" ");var c=S(s);p(e,c,"string"==typeof o);l+=e.key+"-"+c.name;var h={};for(var d in t)C.call(t,d)&&"css"!==d&&d!==E&&(h[d]=t[d]);return h.ref=n,h.className=l,Object(a.createElement)(o,h)},O=L((function(e,t,i){return"function"==typeof e.css?Object(a.createElement)(P.Consumer,null,(function(n){return I(t,e,n,i)})):I(t,e,null,i)}));var D=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return S(t)},z=function(e,t){var i=arguments;if(null==t||!C.call(t,"css"))return a.createElement.apply(void 0,i);var n=i.length,r=new Array(n);r[0]=O,r[1]=M(e,t);for(var o=2;o<n;o++)r[o]=i[o];return a.createElement.apply(null,r)},N=(a.Component,function e(t){for(var i=t.length,r=0,a="";r<i;r++){var o=t[r];if(null!=o){var s=void 0;switch(Object(n.a)(o)){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var l in s="",o)o[l]&&l&&(s&&(s+=" "),s+=l);break;default:s=o}s&&(a&&(a+=" "),a+=s)}}return a});function R(e,t,i){var n=[],r=u(e,n,i);return n.length<2?i:r+t(n)}L((function(e,t){return Object(a.createElement)(P.Consumer,null,(function(i){var n=function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var r=S(i,t.registered);return p(t,r,!1),t.key+"-"+r.name},r={css:n,cx:function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return R(t.registered,n,N(i))},theme:i},a=e.children(r);return!0,a}))}))},function(e,t,i){"use strict";function n(e,t,i,n,r,a,o){try{var s=e[a](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function r(e){return function(){var t=this,i=arguments;return new Promise((function(r,a){var o=e.apply(t,i);function s(e){n(o,r,a,s,l,"next",e)}function l(e){n(o,r,a,s,l,"throw",e)}s(void 0)}))}}i.d(t,"a",(function(){return r}))},function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}i.d(t,"a",(function(){return r}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(13);function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(n.a)(e,t)}},function(e,t,i){"use strict";e.exports=i(36)},function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}i.d(t,"a",(function(){return n}))},function(e,t){function i(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=i=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),i(t)}e.exports=i,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,i){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i(12),r=i.n(n),a=i(5);function o(e,t){return!t||"object"!==r()(t)&&"function"!=typeof t?Object(a.a)(e):t}},function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(19);var r=i(20);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));i(10);function n(e,t){void 0===t&&(t={});for(var i=function(e){for(var t=[],i=0;i<e.length;){var n=e[i];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:i,value:e[i++]});else{var r=1,a="";if("?"===e[s=i+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--r){s++;break}}else if("("===e[s]&&(r++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);a+=e[s++]}else a+=e[s++]+e[s++];if(r)throw new TypeError("Unbalanced pattern at "+i);if(!a)throw new TypeError("Missing pattern at "+i);t.push({type:"PATTERN",index:i,value:a}),i=s}else{for(var o="",s=i+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;o+=e[s++]}if(!o)throw new TypeError("Missing parameter name at "+i);t.push({type:"NAME",index:i,value:o}),i=s}else t.push({type:"CLOSE",index:i,value:e[i++]});else t.push({type:"OPEN",index:i,value:e[i++]});else t.push({type:"ESCAPED_CHAR",index:i++,value:e[i++]});else t.push({type:"MODIFIER",index:i,value:e[i++]})}return t.push({type:"END",index:i,value:""}),t}(e),n=t.prefixes,r=void 0===n?"./":n,o="[^"+a(t.delimiter||"/#?")+"]+?",s=[],l=0,c=0,h="",d=function(e){if(c<i.length&&i[c].type===e)return i[c++].value},u=function(e){var t=d(e);if(void 0!==t)return t;var n=i[c],r=n.type,a=n.index;throw new TypeError("Unexpected "+r+" at "+a+", expected "+e)},p=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};c<i.length;){var f=d("CHAR"),g=d("NAME"),m=d("PATTERN");if(g||m){var v=f||"";-1===r.indexOf(v)&&(h+=v,v=""),h&&(s.push(h),h=""),s.push({name:g||l++,prefix:v,suffix:"",pattern:m||o,modifier:d("MODIFIER")||""})}else{var y=f||d("ESCAPED_CHAR");if(y)h+=y;else if(h&&(s.push(h),h=""),d("OPEN")){v=p();var b=d("NAME")||"",x=d("PATTERN")||"",w=p();u("CLOSE"),s.push({name:b||(x?l++:""),pattern:b&&!x?o:x,prefix:v,suffix:w,modifier:d("MODIFIER")||""})}else u("END")}}return s}function r(e,t){var i=[];return function(e,t,i){void 0===i&&(i={});var n=i.decode,r=void 0===n?function(e){return e}:n;return function(i){var n=e.exec(i);if(!n)return!1;for(var a=n[0],o=n.index,s=Object.create(null),l=function(e){if(void 0===n[e])return"continue";var i=t[e-1];"*"===i.modifier||"+"===i.modifier?s[i.name]=n[e].split(i.prefix+i.suffix).map((function(e){return r(e,i)})):s[i.name]=r(n[e],i)},c=1;c<n.length;c++)l(c);return{path:a,index:o,params:s}}}(l(e,i,t),i,t)}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function o(e){return e&&e.sensitive?"":"i"}function s(e,t,i){return function(e,t,i){void 0===i&&(i={});for(var n=i.strict,r=void 0!==n&&n,s=i.start,l=void 0===s||s,c=i.end,h=void 0===c||c,d=i.encode,u=void 0===d?function(e){return e}:d,p="["+a(i.endsWith||"")+"]|$",f="["+a(i.delimiter||"/#?")+"]",g=l?"^":"",m=0,v=e;m<v.length;m++){var y=v[m];if("string"==typeof y)g+=a(u(y));else{var b=a(u(y.prefix)),x=a(u(y.suffix));if(y.pattern)if(t&&t.push(y),b||x)if("+"===y.modifier||"*"===y.modifier){var w="*"===y.modifier?"?":"";g+="(?:"+b+"((?:"+y.pattern+")(?:"+x+b+"(?:"+y.pattern+"))*)"+x+")"+w}else g+="(?:"+b+"("+y.pattern+")"+x+")"+y.modifier;else g+="("+y.pattern+")"+y.modifier;else g+="(?:"+b+x+")"+y.modifier}}if(h)r||(g+=f+"?"),g+=i.endsWith?"(?="+p+")":"$";else{var k=e[e.length-1],_="string"==typeof k?f.indexOf(k[k.length-1])>-1:void 0===k;r||(g+="(?:"+f+"(?="+p+"))?"),_||(g+="(?="+f+"|"+p+")")}return new RegExp(g,o(i))}(n(e,i),t,i)}function l(e,t,i){return e instanceof RegExp?function(e,t){if(!t)return e;for(var i=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,r=i.exec(e.source);r;)t.push({name:r[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),r=i.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,i){var n=e.map((function(e){return l(e,t,i).source}));return new RegExp("(?:"+n.join("|")+")",o(i))}(e,t,i):s(e,t,i)}},function(e,t,i){"use strict";var n=i(12);Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=d(i(35)),l=i(9),c=d(l),h=d(i(37));function d(e){return e&&e.__esModule?e:{default:e}}window.ApexCharts=s.default;var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=n(t)&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return c.default.createRef?i.chartRef=c.default.createRef():i.setRef=function(e){return i.chartRef=e},i.chart=null,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+n(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,l.Component),o(e,[{key:"render",value:function(){var e=function(e,t){var i={};for(var n in e)0<=t.indexOf(n)||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}(this.props,[]);return c.default.createElement("div",a({ref:c.default.createRef?this.chartRef:this.setRef},e))}},{key:"componentDidMount",value:function(){var e=c.default.createRef?this.chartRef.current:this.chartRef;this.chart=new s.default(e,this.getConfig()),this.chart.render()}},{key:"getConfig",value:function(){var e=this.props,t=e.type,i=e.height,n=e.width,r=e.series,a=e.options,o={chart:{type:t,height:i,width:n},series:r};return this.extend(a,o)}},{key:"isObject",value:function(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)&&null!=e}},{key:"extend",value:function(e,t){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t});var n=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(r){i.isObject(t[r])&&r in e?n[r]=i.extend(e[r],t[r]):Object.assign(n,function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},r,t[r]))})),n}},{key:"componentDidUpdate",value:function(e){if(!this.chart)return null;var t=this.props,i=t.options,n=t.series,r=t.height,a=t.width,o=JSON.stringify(e.options),s=JSON.stringify(e.series),l=JSON.stringify(i),c=JSON.stringify(n);o===l&&s===c&&r===e.height&&a===e.width||(s===c?this.chart.updateOptions(this.getConfig()):o===l&&r===e.height&&a===e.width?this.chart.updateSeries(n):this.chart.updateOptions(this.getConfig()))}},{key:"componentWillUnmount",value:function(){this.chart&&"function"==typeof this.chart.destroy&&this.chart.destroy()}}]),e}();(t.default=u).propTypes={type:h.default.string.isRequired,width:h.default.any,height:h.default.any,series:h.default.array.isRequired,options:h.default.object.isRequired},u.defaultProps={type:"line",width:"100%",height:"auto"}},function(e,t,i){"use strict";e.exports=i(43)},function(e,t,i){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(19);function r(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Object(n.a)(e,t):void 0}}},function(e,t,i){var n,r=i(12);
19
  /*!
20
  Copyright (c) 2018 Jed Watson.
21
  Licensed under the MIT License (MIT), see
22
  http://jedwatson.github.io/classnames
23
- */!function(){"use strict";var a={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var n=r(i);if("string"===n||"number"===n)e.push(i);else if(Array.isArray(i)){if(i.length){var s=o.apply(null,i);s&&e.push(s)}}else if("object"===n)if(i.toString===Object.prototype.toString)for(var l in i)a.call(i,l)&&i[l]&&e.push(l);else e.push(i.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):"object"===r(i(25))&&i(25)?void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n):window.classNames=o}()},function(e,t,i){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return go})),i.d(t,"b",(function(){return Hi})),i.d(t,"c",(function(){return Vo})),i.d(t,"d",(function(){return Ma}));var n=i(15),r=i(3),a=i(4),o=i(6),s=i(7),l=i(5),c=i(8),h=i(14),d=i(11),u=i(13);function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t,i){return(f=p()?Reflect.construct:function(e,t,i){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return i&&Object(u.a)(r,i.prototype),r}).apply(null,arguments)}function g(e){var t="function"==typeof Map?new Map:void 0;return(g=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,Object(d.a)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Object(u.a)(n,e)})(e)}var m,v,y,b,x=i(0),w=i.n(x),k=i(10),_=i(1),A=!1,S=!0,C=!1,T=!0,P=!0,L=!0,E=!0,M=!0,I=!0,O=!0,D=!0,z=!0,N=!0,R=!0,F=!0,Y=!1,H=!0,$=!0,j=!0,X=!0,B=!0,W=!0,V=!0,G=!0,U=!0,q=!0,Z=!0,J=!0,Q=!0,K=!0,ee=!0,te=!0,ie=!0,ne=!0,re=!0,ae=!0,oe=!0,se=!0,le=!0,ce=!0,he=!0,de=!0,ue=!0,pe=!0,fe=!1,ge=!1,me=!1,ve=!1,ye=!1,be=!1,xe=!1,we=!1,ke=!1,_e=!0,Ae=!1,Se=!0,Ce=!1,Te=!0,Pe=!0,Le=!0,Ee=!1,Me=!0,Ie=!0,Oe=!1,De=!1,ze=!1,Ne=!0;var Re=0,Fe=!1,Ye=!1,He=!1,$e=!1,je=0,Xe=!1,Be="undefined"!=typeof window?window:{},We=(Ee&&Be.CSS,Be.document||{head:{}}),Ve=(Be.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,i,n){return e.addEventListener(t,i,n)},rel:function(e,t,i,n){return e.removeEventListener(t,i,n)},ce:function(e,t){return new CustomEvent(e,t)}}),Ge=!Ce||!U||function(){return(We.head.attachShadow+"").indexOf("[native")>-1}(),Ue=function(){var e=!1;try{We.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=!0}}))}catch(e){}return e}(),qe=!!Me&&function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1}(),Ze=function(e,t,i,n){z&&i&&(Y&&(i=n?i.filter((function(e){return 32&Object(_.a)(e,1)[0]})):i.filter((function(e){return!(32&Object(_.a)(e,1)[0])}))),i.map((function(i){var n=Object(_.a)(i,3),r=n[0],a=n[1],o=n[2],s=H?Qe(e,r):e,l=Je(t,o),c=Ke(r);Ve.ael(s,a,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return Ve.rel(s,a,l,c)}))})))},Je=function(e,t){return function(i){try{we?256&e.$flags$?e.$lazyInstance$[t](i):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,i]):e.$hostElement$[t](i)}catch(e){ui(e)}}},Qe=function(e,t){return R&&4&t?We:N&&8&t?Be:F&&16&t?We.body:Y&&32&t?e.parentElement:e},Ke=function(e){return Ue?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e)},et="http://www.w3.org/1999/xlink",tt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(ke&&performance.mark){var i="st:".concat(e,":").concat(t,":").concat(Re++);return performance.mark(i),function(){return performance.measure("[Stencil] ".concat(e,"() <").concat(t,">"),i)}}return function(){}},it=function(e,t){return ke&&performance.mark?(0===performance.getEntriesByName(e).length&&performance.mark(e),function(){0===performance.getEntriesByName(t).length&&performance.measure(t,e)}):function(){}},nt=new WeakMap,rt=function(e,t,i){var n=yi.get(e);qe&&i?(n=n||new CSSStyleSheet).replace(t):n=t,yi.set(e,n)},at=function(e,t,i,r){var a=st(t,i),o=yi.get(a);if(!Ne)return a;if(e=11===e.nodeType?e:We,o)if("string"==typeof o){e=e.head||e;var s,l=nt.get(e);if(l||nt.set(e,l=new Set),!l.has(a)){if(be&&e.host&&(s=e.querySelector("[".concat("sty-id",'="').concat(a,'"]'))))s.innerHTML=o;else{if(Ee&&Ve.$cssShim$){var c=(s=Ve.$cssShim$.createHostStyle(r,a,o,!!(10&t.$flags$)))["s-sc"];c&&(a=c,l=null)}else(s=We.createElement("style")).innerHTML=o;(ye||fe)&&s.setAttribute("sty-id",a),e.insertBefore(s,e.querySelector("link"))}l&&l.add(a)}}else Me&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[].concat(Object(n.a)(e.adoptedStyleSheets),[o]));return a},ot=function(e){var t=e.$cmpMeta$,i=e.$hostElement$,n=t.$flags$,r=tt("attachStyles",t.$tagName$),a=at(U&&Ge&&i.shadowRoot?i.shadowRoot:i.getRootNode(),t,e.$modeName$,i);(U||G)&&Z&&10&n&&(i["s-sc"]=a,i.classList.add(a+"-h"),G&&2&n&&i.classList.add(a+"-s")),r()},st=function(e,t){return"sc-"+(X&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$)},lt=function(e){return bi.map((function(t){return t(e)})).find((function(e){return!!e}))},ct={},ht=function(e){return"object"===(e=Object(k.a)(e))||"function"===e},dt=function(e,t){for(var i=null,n=null,r=null,a=!1,o=!1,s=[],l=function t(n){for(var r=0;r<n.length;r++)i=n[r],Array.isArray(i)?t(i):null!=i&&"boolean"!=typeof i&&((a="function"!=typeof e&&!ht(i))?i=String(i):me&&"function"!=typeof e&&void 0===i.$flags$&&fi("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),a&&o?s[s.length-1].$text$+=i:s.push(a?ut(null,i):i),o=a)},c=arguments.length,h=new Array(c>2?c-2:0),d=2;d<c;d++)h[d-2]=arguments[d];if(l(h),t&&(me&&"input"===e&&yt(t),ae&&t.key&&(n=t.key),_e&&t.name&&(r=t.name),ne)){var u=t.className||t.class;u&&(t.class="object"!==Object(k.a)(u)?u:Object.keys(u).filter((function(e){return u[e]})).join(" "))}if(me&&s.some(ft)&&fi("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),re&&"function"==typeof e)return e(null===t?{}:t,s,gt);var p=ut(e,null);return p.$attrs$=t,s.length>0&&(p.$children$=s),ae&&(p.$key$=n),_e&&(p.$name$=r),p},ut=function(e,t){var i={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return te&&(i.$attrs$=null),ae&&(i.$key$=null),_e&&(i.$name$=null),i},pt={},ft=function(e){return e&&e.$tag$===pt},gt={forEach:function(e,t){return e.map(mt).forEach(t)},map:function(e,t){return e.map(mt).map(t).map(vt)}},mt=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}},vt=function(e){if("function"==typeof e.vtag){var t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),dt.apply(void 0,[e.vtag,t].concat(Object(n.a)(e.vchildren||[])))}var i=ut(e.vtag,e.vtext);return i.$attrs$=e.vattrs,i.$children$=e.vchildren,i.$key$=e.vkey,i.$name$=e.vname,i},yt=function(e){var t=Object.keys(e),i=t.indexOf("type"),n=t.indexOf("min"),r=t.indexOf("max"),a=t.indexOf("min"),o=t.indexOf("value");-1!==o&&(o<i||o<n||o<r||o<a)&&gi('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},bt=function(e,t,i,r,a,o){if(i!==r){var s=di(e,t),l=t.toLowerCase();if(ne&&"class"===t){var c=e.classList,h=wt(i),d=wt(r);c.remove.apply(c,Object(n.a)(h.filter((function(e){return e&&!d.includes(e)})))),c.add.apply(c,Object(n.a)(d.filter((function(e){return e&&!h.includes(e)}))))}else if(he&&"style"===t){if(ee)for(var u in i)r&&null!=r[u]||(!ye&&u.includes("-")?e.style.removeProperty(u):e.style[u]="");for(var p in r)i&&r[p]===i[p]||(!ye&&p.includes("-")?e.style.setProperty(p,r[p]):e.style[p]=r[p])}else if(ae&&"key"===t);else if(se&&"ref"===t)r&&r(e);else if(!oe||(we?s:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(le){var f=ht(r);if((s||f&&null!==r)&&!a)try{if(e.tagName.includes("-"))e[t]=r;else{var g=null==r?"":r;"list"===t?s=!1:null!=i&&e[t]==g||(e[t]=g)}}catch(e){}var m=!1;ie&&l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,m=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(ie&&m?e.removeAttributeNS(et,t):e.removeAttribute(t)):(!s||4&o||a)&&!f&&(r=!0===r?"":r,ie&&m?e.setAttributeNS(et,t,r):e.setAttribute(t,r))}}else t="-"===t[2]?t.slice(3):di(Be,l)?l.slice(2):l[2]+t.slice(3),i&&Ve.rel(e,t,i,!1),r&&Ve.ael(e,t,r,!1)}},xt=/\s/,wt=function(e){return e?e.split(xt):[]},kt=function(e,t,i,n){var r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,a=e&&e.$attrs$||ct,o=t.$attrs$||ct;if(ee)for(n in a)n in o||bt(r,n,a[n],void 0,i,t.$flags$);for(n in o)bt(r,n,a[n],o[n],i,t.$flags$)},_t=function e(t,i,n,r){var a,o,s,l=i.$children$[n],c=0;if(_e&&!Fe&&(He=!0,"slot"===l.$tag$&&(m&&r.classList.add(m+"-s"),l.$flags$|=l.$children$?2:1)),me&&l.$elm$&&fi("The JSX ".concat(null!==l.$text$?'"'.concat(l.$text$,'" text'):'"'.concat(l.$tag$,'" element')," node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes")),de&&null!==l.$text$)a=l.$elm$=We.createTextNode(l.$text$);else if(_e&&1&l.$flags$)a=l.$elm$=ge||ye?zt(l):We.createTextNode("");else{if(K&&!$e&&($e="svg"===l.$tag$),a=l.$elm$=K?We.createElementNS($e?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",_e&&2&l.$flags$?"slot-fb":l.$tag$):We.createElement(_e&&2&l.$flags$?"slot-fb":l.$tag$),K&&$e&&"foreignObject"===l.$tag$&&($e=!1),te&&kt(null,l,$e),(U||G)&&null!=m&&a["s-si"]!==m&&a.classList.add(a["s-si"]=m),l.$children$)for(c=0;c<l.$children$.length;++c)(o=e(t,l,c,a))&&a.appendChild(o);K&&("svg"===l.$tag$?$e=!1:"foreignObject"===a.tagName&&($e=!0))}return _e&&(a["s-hn"]=y,3&l.$flags$&&(a["s-sr"]=!0,a["s-cr"]=v,a["s-sn"]=l.$name$||"",(s=t&&t.$children$&&t.$children$[n])&&s.$tag$===l.$tag$&&t.$elm$&&At(t.$elm$,!1))),a},At=function e(t,i){Ve.$flags$|=1;for(var n=t.childNodes,r=n.length-1;r>=0;r--){var a=n[r];a["s-hn"]!==y&&a["s-ol"]&&(Lt(a).insertBefore(a,Pt(a)),a["s-ol"].remove(),a["s-ol"]=void 0,He=!0),i&&e(a,i)}Ve.$flags$&=-2},St=function(e,t,i,n,r,a){var o,s=_e&&e["s-cr"]&&e["s-cr"].parentNode||e;for(U&&s.shadowRoot&&s.tagName===y&&(s=s.shadowRoot);r<=a;++r)n[r]&&(o=_t(null,i,r,e))&&(n[r].$elm$=o,s.insertBefore(o,_e?Pt(t):t))},Ct=function(e,t,i,n,r){for(;t<=i;++t)(n=e[t])&&(r=n.$elm$,Ot(n),_e&&(Ye=!0,r["s-ol"]?r["s-ol"].remove():At(r,!0)),r.remove())},Tt=function(e,t){return e.$tag$===t.$tag$&&(_e&&"slot"===e.$tag$?e.$name$===t.$name$:!ae||e.$key$===t.$key$)},Pt=function(e){return e&&e["s-ol"]||e},Lt=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode},Et=function(e,t){var i,n=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$,o=t.$tag$,s=t.$text$;de&&null!==s?de&&_e&&(i=n["s-cr"])?i.parentNode.textContent=s:de&&e.$text$!==s&&(n.data=s):(K&&($e="svg"===o||"foreignObject"!==o&&$e),(te||V)&&(q&&"slot"===o||kt(e,t,$e)),ee&&null!==r&&null!==a?function(e,t,i,n){for(var r,a,o=0,s=0,l=0,c=0,h=t.length-1,d=t[0],u=t[h],p=n.length-1,f=n[0],g=n[p];o<=h&&s<=p;)if(null==d)d=t[++o];else if(null==u)u=t[--h];else if(null==f)f=n[++s];else if(null==g)g=n[--p];else if(Tt(d,f))Et(d,f),d=t[++o],f=n[++s];else if(Tt(u,g))Et(u,g),u=t[--h],g=n[--p];else if(Tt(d,g))!_e||"slot"!==d.$tag$&&"slot"!==g.$tag$||At(d.$elm$.parentNode,!1),Et(d,g),e.insertBefore(d.$elm$,u.$elm$.nextSibling),d=t[++o],g=n[--p];else if(Tt(u,f))!_e||"slot"!==d.$tag$&&"slot"!==g.$tag$||At(u.$elm$.parentNode,!1),Et(u,f),e.insertBefore(u.$elm$,d.$elm$),u=t[--h],f=n[++s];else{if(l=-1,ae)for(c=o;c<=h;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===f.$key$){l=c;break}ae&&l>=0?((a=t[l]).$tag$!==f.$tag$?r=_t(t&&t[s],i,l,e):(Et(a,f),t[l]=void 0,r=a.$elm$),f=n[++s]):(r=_t(t&&t[s],i,s,e),f=n[++s]),r&&(_e?Lt(d.$elm$).insertBefore(r,Pt(d.$elm$)):d.$elm$.parentNode.insertBefore(r,d.$elm$))}o>h?St(e,null==n[p+1]?null:n[p+1].$elm$,i,n,s,p):ee&&s>p&&Ct(t,o,h)}(n,r,t,a):null!==a?(ee&&de&&null!==e.$text$&&(n.textContent=""),St(n,null,t,a,0,a.length-1)):ee&&null!==r&&Ct(r,0,r.length-1),K&&$e&&"svg"===o&&($e=!1))},Mt=[],It=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},Ot=function e(t){se&&(t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(e))},Dt=function(e,t){var i=e.$hostElement$,n=e.$cmpMeta$,r=e.$vnode$||ut(null,null),a=ft(t)?t:dt(null,null,t);if(y=i.tagName,me&&Array.isArray(t)&&t.some(ft))throw new Error('The <Host> must be the single root component.\nLooks like the render() function of "'.concat(y.toLowerCase(),'" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n '));if(V&&n.$attrsToReflect$&&(a.$attrs$=a.$attrs$||{},n.$attrsToReflect$.map((function(e){var t=Object(_.a)(e,2),n=t[0],r=t[1];return a.$attrs$[r]=i[n]}))),a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=r.$elm$=U&&i.shadowRoot||i,(G||U)&&(m=i["s-sc"]),_e&&(v=i["s-cr"],Fe=Ge&&0!=(1&n.$flags$),Ye=!1),Et(r,a),_e){if(Ve.$flags$|=1,He){var o,s,l,c,h,d;!function e(t){for(var i,n,r,a,o,s,l=0,c=t.childNodes,h=c.length;l<h;l++){if((i=c[l])["s-sr"]&&(n=i["s-cr"])&&n.parentNode)for(r=n.parentNode.childNodes,a=i["s-sn"],s=r.length-1;s>=0;s--)(n=r[s])["s-cn"]||n["s-nr"]||n["s-hn"]===i["s-hn"]||(It(n,a)?(o=Mt.find((function(e){return e.$nodeToRelocate$===n})),Ye=!0,n["s-sn"]=n["s-sn"]||a,o?o.$slotRefNode$=i:Mt.push({$slotRefNode$:i,$nodeToRelocate$:n}),n["s-sr"]&&Mt.map((function(e){It(e.$nodeToRelocate$,n["s-sn"])&&(o=Mt.find((function(e){return e.$nodeToRelocate$===n})))&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$)}))):Mt.some((function(e){return e.$nodeToRelocate$===n}))||Mt.push({$nodeToRelocate$:n}));1===i.nodeType&&e(i)}}(a.$elm$);for(var u=0;u<Mt.length;u++)(s=(o=Mt[u]).$nodeToRelocate$)["s-ol"]||((l=ge||ye?Nt(s):We.createTextNode(""))["s-nr"]=s,s.parentNode.insertBefore(s["s-ol"]=l,s));for(u=0;u<Mt.length;u++)if(s=(o=Mt[u]).$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,h=o.$slotRefNode$.nextSibling,l=s["s-ol"];l=l.previousSibling;)if((d=l["s-nr"])&&d["s-sn"]===s["s-sn"]&&c===d.parentNode&&(!(d=d.nextSibling)||!d["s-nr"])){h=d;break}(!h&&c!==s.parentNode||s.nextSibling!==h)&&s!==h&&(!s["s-hn"]&&s["s-ol"]&&(s["s-hn"]=s["s-ol"].parentNode.nodeName),c.insertBefore(s,h))}else 1===s.nodeType&&(s.hidden=!0)}Ye&&function e(t){var i,n,r,a,o,s,l=t.childNodes;for(n=0,r=l.length;n<r;n++)if(1===(i=l[n]).nodeType){if(i["s-sr"])for(o=i["s-sn"],i.hidden=!1,a=0;a<r;a++)if(s=l[a].nodeType,l[a]["s-hn"]!==i["s-hn"]||""!==o){if(1===s&&o===l[a].getAttribute("slot")){i.hidden=!0;break}}else if(1===s||3===s&&""!==l[a].textContent.trim()){i.hidden=!0;break}e(i)}}(a.$elm$),Ve.$flags$&=-2,Mt.length=0}},zt=function(e){return We.createComment("<slot".concat(e.$name$?' name="'+e.$name$+'"':"","> (host=").concat(y.toLowerCase(),")"))},Nt=function(e){return We.createComment("org-location for "+(e.localName?"<".concat(e.localName,"> (host=").concat(e["s-hn"],")"):"[".concat(e.textContent,"]")))},Rt=function(e,t,i){var n=function(e){return we?ci(e).$hostElement$:e}(e);return{emit:function(e){return me&&!n.isConnected&&gi('The "'.concat(t,'" event was emitted, but the dispatcher node is no longer connected to the dom.')),Ft(n,t,{bubbles:!!(4&i),composed:!!(2&i),cancelable:!!(1&i),detail:e})}}},Ft=function(e,t,i){var n=Ve.ce(t,i);return e.dispatchEvent(n),n},Yt=function(e,t){De&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))},Ht=function(e,t){if(pe&&ee&&(e.$flags$|=16),!(De&&4&e.$flags$)){Yt(e,e.$ancestorComponent$);var i=function(){return $t(e,t)};return pe?Pi(i):i()}e.$flags$|=512},$t=function(e,t){var i,n=e.$hostElement$,r=tt("scheduleUpdate",e.$cmpMeta$.$tagName$),a=we?e.$lazyInstance$:n;return t?(we&&z&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((function(e){var t=Object(_.a)(e,2),i=t[0],n=t[1];return Vt(a,i,n)})),e.$queuedListeners$=null)),Ut(n,"componentWillLoad"),L&&(i=Vt(a,"componentWillLoad"))):(Ut(n,"componentWillUpdate"),E&&(i=Vt(a,"componentWillUpdate"))),Ut(n,"componentWillRender"),M&&(i=Gt(i,(function(){return Vt(a,"componentWillRender")}))),r(),Gt(i,(function(){return jt(e,a,t)}))},jt=function(){var e=Object(r.a)(w.a.mark((function e(t,i,n){var r,a,o,s,l,c;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.$hostElement$,a=tt("update",t.$cmpMeta$.$tagName$),o=r["s-rc"],Q&&n&&ot(t),s=tt("render",t.$cmpMeta$.$tagName$),me&&(t.$flags$|=1024),!ye){e.next=11;break}return e.next=9,Xt(t,i,r);case 9:e.next=12;break;case 11:Xt(t,i,r);case 12:if(Ee&&Ve.$cssShim$&&Ve.$cssShim$.updateHost(r),me&&(t.$renderCount$++,t.$flags$&=-1025),ye)try{Zt(r),n&&(1&t.$cmpMeta$.$flags$?r["s-en"]="":2&t.$cmpMeta$.$flags$&&(r["s-en"]="c"))}catch(e){ui(e,r)}De&&o&&(o.map((function(e){return e()})),r["s-rc"]=void 0),s(),a(),De?(l=r["s-p"],c=function(){return Bt(t)},0===l.length?c():(Promise.all(l).then(c),t.$flags$|=4,l.length=0)):Bt(t);case 19:case"end":return e.stop()}}),e)})));return function(t,i,n){return e.apply(this,arguments)}}(),Xt=function(e,t,i){var n=!!A,r=!!we,a=!!pe,o=!!ee;try{if(t,t=(n||t.render)&&t.render(),o&&a&&(e.$flags$&=-17),(o||r)&&(e.$flags$|=2),D||V)if(ce||V){if(ye)return Promise.resolve(t).then((function(t){return Dt(e,t)}));Dt(e,t)}else i.textContent=t}catch(t){ui(t,e.$hostElement$)}return null,null},Bt=function(e){var t=e.$cmpMeta$.$tagName$,i=e.$hostElement$,n=tt("postUpdate",t),r=we?e.$lazyInstance$:i,a=e.$ancestorComponent$;P&&(me&&(e.$flags$|=1024),Vt(r,"componentDidRender"),me&&(e.$flags$&=-1025)),Ut(i,"componentDidRender"),64&e.$flags$?(T&&(me&&(e.$flags$|=1024),Vt(r,"componentDidUpdate"),me&&(e.$flags$&=-1025)),Ut(i,"componentDidUpdate"),n()):(e.$flags$|=64,De&&Z&&qt(i),S&&(me&&(e.$flags$|=2048),Vt(r,"componentDidLoad"),me&&(e.$flags$&=-2049)),Ut(i,"componentDidLoad"),n(),De&&(e.$onReadyResolve$(i),a||Wt(t))),fe&&i["s-hmr-load"]&&i["s-hmr-load"](),j&&we&&e.$onInstanceResolve$(i),De&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Ti((function(){return Ht(e,!1)})),e.$flags$&=-517)},Wt=function(e){Z&&qt(We.documentElement),ze&&(Ve.$flags$|=2),Ti((function(){return Ft(Be,"appload",{detail:{namespace:"app"}})})),ke&&performance.measure&&performance.measure("[Stencil] ".concat("app"," initial load (by ").concat(e,")"),"st:app:start")},Vt=function(e,t,i){if(e&&e[t])try{return e[t](i)}catch(e){ui(e)}},Gt=function(e,t){return e&&e.then?e.then(t):t()},Ut=function(e,t){xe&&Ft(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:"app"}})},qt=function(e){return Se?e.classList.add("hydrated"):Ae?e.setAttribute("hydrated",""):void 0},Zt=function e(t){var i=t.children;if(null!=i)for(var n=0,r=i.length;n<r;n++){var a=i[n];"function"==typeof a.connectedCallback&&a.connectedCallback(),e(a)}},Jt=function e(t,i,n,r,a,o,s){var l,c,h,d;if(1===o.nodeType){for((l=o.getAttribute("c-id"))&&((c=l.split("."))[0]!==s&&"0"!==c[0]||(h={$flags$:0,$hostId$:c[0],$nodeId$:c[1],$depth$:c[2],$index$:c[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},i.push(h),o.removeAttribute("c-id"),t.$children$||(t.$children$=[]),t.$children$[h.$index$]=h,t=h,r&&"0"===h.$depth$&&(r[h.$index$]=h.$elm$))),d=o.childNodes.length-1;d>=0;d--)e(t,i,n,r,a,o.childNodes[d],s);if(o.shadowRoot)for(d=o.shadowRoot.childNodes.length-1;d>=0;d--)e(t,i,n,r,a,o.shadowRoot.childNodes[d],s)}else if(8===o.nodeType)(c=o.nodeValue.split("."))[1]!==s&&"0"!==c[1]||(l=c[0],h={$flags$:0,$hostId$:c[1],$nodeId$:c[2],$depth$:c[3],$index$:c[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===l?(h.$elm$=o.nextSibling,h.$elm$&&3===h.$elm$.nodeType&&(h.$text$=h.$elm$.textContent,i.push(h),o.remove(),t.$children$||(t.$children$=[]),t.$children$[h.$index$]=h,r&&"0"===h.$depth$&&(r[h.$index$]=h.$elm$))):h.$hostId$===s&&("s"===l?(h.$tag$="slot",c[5]?o["s-sn"]=h.$name$=c[5]:o["s-sn"]="",o["s-sr"]=!0,U&&r&&(h.$elm$=We.createElement(h.$tag$),h.$name$&&h.$elm$.setAttribute("name",h.$name$),o.parentNode.insertBefore(h.$elm$,o),o.remove(),"0"===h.$depth$&&(r[h.$index$]=h.$elm$)),n.push(h),t.$children$||(t.$children$=[]),t.$children$[h.$index$]=h):"r"===l&&(U&&r?o.remove():_e&&(a["s-cr"]=o,o["s-cn"]=!0))));else if(t&&"style"===t.$tag$){var u=ut(null,o.textContent);u.$elm$=o,u.$index$="0",t.$children$=[u]}},Qt=function e(t,i){if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n++)e(t.childNodes[n],i);if(t.shadowRoot)for(n=0;n<t.shadowRoot.childNodes.length;n++)e(t.shadowRoot.childNodes[n],i)}else if(8===t.nodeType){var r=t.nodeValue.split(".");"o"===r[0]&&(i.set(r[1]+"."+r[2],t),t.nodeValue="",t["s-en"]=r[3])}},Kt=function(e,t,i,n){var r,a,o=ci(e),s=we?o.$hostElement$:e,l=o.$instanceValues$.get(t),c=o.$flags$,h=we?o.$lazyInstance$:s;if(r=i,a=n.$members$[t][0],i=null==r||ht(r)?r:Te&&4&a?"false"!==r&&(""===r||!!r):Pe&&2&a?parseFloat(r):Le&&1&a?String(r):r,!(we&&8&c&&void 0!==l||i===l)&&(o.$instanceValues$.set(t,i),me&&(1024&o.$flags$?gi('The state/prop "'.concat(t,'" changed during rendering. This can potentially lead to infinite-loops and other bugs.'),"\nElement",s,"\nNew value",i,"\nOld value",l):2048&o.$flags$&&gi('The state/prop "'.concat(t,'" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"'),"\nElement",s,"\nNew value",i,"\nOld value",l)),!we||h)){if(ue&&n.$watchers$&&128&c){var d=n.$watchers$[t];d&&d.map((function(e){try{h[e](i,l,t)}catch(e){ui(e,s)}}))}if(ee&&2==(18&c)){if(Ie&&h.componentShouldUpdate&&!1===h.componentShouldUpdate(i,l,t))return;Ht(o,!1)}}},ei=function(e,t,i){if($&&t.$members$){ue&&e.watchers&&(t.$watchers$=e.watchers);var n=Object.entries(t.$members$),r=e.prototype;if(n.map((function(e){var n=Object(_.a)(e,2),a=n[0],o=Object(_.a)(n[1],1)[0];(W||J)&&(31&o||(!we||2&i)&&32&o)?Object.defineProperty(r,a,{get:function(){return e=a,ci(this).$instanceValues$.get(e);var e},set:function(e){if(me){var n=ci(this);0==(1&i)&&0==(8&n.$flags$)&&0!=(31&o)&&0==(1024&o)&&gi('@Prop() "'.concat(a,'" on <').concat(t.$tagName$,"> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability"))}Kt(this,a,e,t)},configurable:!0,enumerable:!0}):we&&j&&1&i&&64&o&&Object.defineProperty(r,a,{value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=ci(this);return n.$onInstancePromise$.then((function(){var e;return(e=n.$lazyInstance$)[a].apply(e,t)}))}})})),B&&(!we||1&i)){var a=new Map;r.attributeChangedCallback=function(e,t,i){var n=this;Ve.jmp((function(){var t=a.get(e);n[t]=(null!==i||"boolean"!=typeof n[t])&&i}))},e.observedAttributes=n.filter((function(e){var t=Object(_.a)(e,2);t[0];return 15&t[1][0]})).map((function(e){var i=Object(_.a)(e,2),n=i[0],r=i[1],o=r[1]||n;return a.set(o,n),V&&512&r[0]&&t.$attrsToReflect$.push([n,o]),o}))}}return e},ti=function(){var e=Object(r.a)(w.a.mark((function e(t,n,r,a,o){var s,l,c,h,d,u,p;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(we||ye||Q)||0!=(32&n.$flags$)){e.next=36;break}if(!we&&!be){e.next=22;break}if(n.$flags$|=32,!(o=vi(r,n,a)).then){e.next=10;break}return s=it("st:load:".concat(r.$tagName$,":").concat(n.$modeName$),"[Stencil] Load module for <".concat(r.$tagName$,">")),e.next=8,o;case 8:o=e.sent,s();case 10:if(!me&&!ge||o){e.next=12;break}throw new Error('Constructor for "'.concat(r.$tagName$,"#").concat(n.$modeName$,'" was not found'));case 12:$&&!o.isProxied&&(ue&&(r.$watchers$=o.watchers),ei(o,r,2),o.isProxied=!0),l=tt("createInstance",r.$tagName$),$&&(n.$flags$|=8);try{new o(n)}catch(e){ui(e)}$&&(n.$flags$&=-9),ue&&(n.$flags$|=128),l(),ii(n.$lazyInstance$),e.next=24;break;case 22:o=t.constructor,n.$flags$|=160;case 24:if(!Q||!o.style){e.next=36;break}if(c=o.style,X&&"string"!=typeof c&&(c=c[n.$modeName$=lt(t)],ye&&n.$modeName$&&t.setAttribute("s-mode",n.$modeName$)),h=st(r,n.$modeName$),yi.has(h)){e.next=36;break}if(d=tt("registerStyles",r.$tagName$),!(!ye&&U&&Ce&&8&r.$flags$)){e.next=34;break}return e.next=33,i.e(7).then(i.bind(null,50)).then((function(e){return e.scopeCss(c,h,!1)}));case 33:c=e.sent;case 34:rt(h,c,!!(1&r.$flags$)),d();case 36:u=n.$ancestorComponent$,p=function(){return Ht(n,!0)},De&&u&&u["s-rc"]?u["s-rc"].push(p):p();case 39:case"end":return e.stop()}}),e)})));return function(t,i,n,r,a){return e.apply(this,arguments)}}(),ii=function(e){we&&I&&Vt(e,"connectedCallback")},ni=function(e){if(0==(1&Ve.$flags$)){var t=ci(e),i=t.$cmpMeta$,n=tt("connectedCallback",i.$tagName$);if(Y&&Ze(e,t,i.$listeners$,!0),1&t.$flags$)Ze(e,t,i.$listeners$,!1),ii(t.$lazyInstance$);else{var r;if(t.$flags$|=1,be&&(r=e.getAttribute("s-id"))){if(U&&Ge&&1&i.$flags$){var a=X?at(e.shadowRoot,i,e.getAttribute("s-mode")):at(e.shadowRoot,i);e.classList.remove(a+"-h",a+"-s")}!function(e,t,i,n){var r=tt("hydrateClient",t),a=e.shadowRoot,o=[],s=U&&a?[]:null,l=n.$vnode$=ut(t,null);Ve.$orgLocNodes$||Qt(We.body,Ve.$orgLocNodes$=new Map),e["s-id"]=i,e.removeAttribute("s-id"),Jt(l,o,[],s,e,e,i),o.map((function(e){var i=e.$hostId$+"."+e.$nodeId$,n=Ve.$orgLocNodes$.get(i),r=e.$elm$;n&&Ge&&""===n["s-en"]&&n.parentNode.insertBefore(r,n.nextSibling),a||(r["s-hn"]=t,n&&(r["s-ol"]=n,r["s-ol"]["s-nr"]=r)),Ve.$orgLocNodes$.delete(i)})),U&&a&&s.map((function(e){e&&a.appendChild(e)})),r()}(e,i.$tagName$,r,t)}if(_e&&!r&&(ye||(q||U)&&12&i.$flags$)&&ri(e),De)for(var o=e;o=o.parentNode||o.host;)if(be&&1===o.nodeType&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){Yt(t,t.$ancestorComponent$=o);break}W&&we&&!ye&&i.$members$&&Object.entries(i.$members$).map((function(t){var i=Object(_.a)(t,2),n=i[0];if(31&Object(_.a)(i[1],1)[0]&&e.hasOwnProperty(n)){var r=e[n];delete e[n],e[n]=r}})),Oe?Ti((function(){return ti(e,t,i)})):ti(e,t,i)}n()}},ri=function(e){var t=e["s-cr"]=We.createComment(ge?"content-ref (host=".concat(e.localName,")"):"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},ai=function(e){if(0==(1&Ve.$flags$)){var t=ci(e),i=we?t.$lazyInstance$:e;z&&t.$rmListeners$&&(t.$rmListeners$.map((function(e){return e()})),t.$rmListeners$=void 0),Ee&&Ve.$cssShim$&&Ve.$cssShim$.removeHost(e),we&&O&&Vt(i,"disconnectedCallback"),C&&Vt(i,"componentDidUnload")}},oi=function(e,t){var i={$flags$:t[0],$tagName$:t[1]};$&&(i.$members$=t[2]),z&&(i.$listeners$=t[3]),ue&&(i.$watchers$=e.$watchers$),V&&(i.$attrsToReflect$=[]),U&&!Ge&&1&i.$flags$&&(i.$flags$|=8);var n=e.prototype.connectedCallback,r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost:function(){hi(this,i)},connectedCallback:function(){ni(this),I&&n&&n.call(this)},disconnectedCallback:function(){ai(this),O&&r&&r.call(this)}}),e.is=i.$tagName$,ei(e,i,3)},si=function(e){Ge?e.attachShadow({mode:"open"}):e.shadowRoot=e},li=new WeakMap,ci=function(e){return li.get(e)},hi=function(e,t){var i={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return me&&(i.$renderCount$=0),j&&we&&(i.$onInstancePromise$=new Promise((function(e){return i.$onInstanceResolve$=e}))),De&&(i.$onReadyPromise$=new Promise((function(e){return i.$onReadyResolve$=e})),e["s-p"]=[],e["s-rc"]=[]),Ze(e,i,t.$listeners$,!1),li.set(e,i)},di=function(e,t){return t in e},ui=function(e,t){return(b||console.error)(e,t)},pi=ve?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],fi=function(){for(var e,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return(e=console).error.apply(e,pi.concat(i))},gi=function(){for(var e,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return(e=console).warn.apply(e,pi.concat(i))},mi=new Map,vi=function(e,t,n){var r=e.$tagName$.replace(/-/g,"_"),a=e.$lazyBundleId$;if(!me||"string"==typeof a){var o=!fe&&mi.get(a);return o?o[r]:i(34)("./".concat(a,".entry.js").concat(BUILD.hotModuleReplacement&&n?"?s-hmr="+n:"")).then((function(e){return fe||mi.set(a,e),e[r]}),ui)}fi("Trying to lazily load component <".concat(e.$tagName$,'> with style mode "').concat(t.$modeName$,'", but it does not exist.'))},yi=new Map,bi=[],xi=[],wi=[],ki=[],_i=function(e,t){return function(i){e.push(i),Xe||(Xe=!0,t&&4&Ve.$flags$?Ti(Ci):Ve.raf(Ci))}},Ai=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ui(e)}e.length=0},Si=function(e,t){for(var i=0,n=0;i<e.length&&(n=performance.now())<t;)try{e[i++](n)}catch(e){ui(e)}i===e.length?e.length=0:0!==i&&e.splice(0,i)},Ci=function e(){if(ze&&je++,Ai(xi),ze){var t=2==(6&Ve.$flags$)?performance.now()+14*Math.ceil(.1*je):1/0;Si(wi,t),Si(ki,t),wi.length>0&&(ki.push.apply(ki,wi),wi.length=0),(Xe=xi.length+wi.length+ki.length>0)?Ve.raf(e):je=0}else Ai(wi),(Xe=xi.length>0)&&Ve.raf(e)},Ti=function(e){return Promise.resolve(t).then(e);var t},Pi=_i(wi,!0);function Li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=Object(d.a)(e);if(t){var r=Object(d.a)(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return Object(h.a)(this,i)}}var Ei=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e.show=!1,e.youtubeRenderKey=1,e}return Object(s.a)(i,[{key:"componentWillLoad",value:function(){this.handleDuration()}},{key:"handleButtonCountChange",value:function(e,t){console.log(e),(null==e?void 0:e.button_count)!==(null==t?void 0:t.button_count)&&this.youtubeRenderKey++,(null==e?void 0:e.enabled)&&this.handleDuration()}},{key:"handleDuration",value:function(){var e,t;(null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.blocks)?this.show=!0:this.show=function(e){var t=e.current,i=e.duration,n=e.showAfter;if(t===n)return!0;var r=t/i*100;return 99.9<r&&(r=100),r>=n}({current:this.currentTime,duration:this.duration,showAfter:(null===(t=this.config)||void 0===t?void 0:t.percentage_start)||0})}},{key:"youtubeButton",value:function(){var e,t,i,n;if("youtube"===(null===(e=this.config)||void 0===e?void 0:e.button_type)&&(null===(t=this.youtube)||void 0===t?void 0:t.channelId))return dt("presto-youtube-subscribe-button",{key:this.youtubeRenderKey,channel:null===(i=this.youtube)||void 0===i?void 0:i.channelId,showCount:null===(n=this.config)||void 0===n?void 0:n.button_count})}},{key:"customButton",value:function(){var e,t,i,n,r,a,o,s,l,c,h;if("custom"===(null===(e=this.config)||void 0===e?void 0:e.button_type))return dt("presto-player-button",{type:"primary",size:"small",href:null===(i=null===(t=this.config)||void 0===t?void 0:t.button_link)||void 0===i?void 0:i.url,target:(null===(r=null===(n=this.config)||void 0===n?void 0:n.button_link)||void 0===r?void 0:r.opensInNewTab)?"_blank":"_self",style:Object.assign(Object.assign({"--presto-player-button-border-radius":"".concat(null===(a=this.config)||void 0===a?void 0:a.button_radius,"px")},(null===(o=this.config)||void 0===o?void 0:o.button_color)?{"--presto-player-button-color":"".concat(null===(s=this.config)||void 0===s?void 0:s.button_color)}:{}),(null===(l=this.config)||void 0===l?void 0:l.button_text_color)?{"--presto-player-button-text":"".concat(null===(c=this.config)||void 0===c?void 0:c.button_text_color)}:{})},null===(h=this.config)||void 0===h?void 0:h.button_text)}},{key:"render",value:function(){var e,t;return dt("presto-action-bar-ui",{open:this.show,style:{"--presto-action-bar-background":(null===(e=this.config)||void 0===e?void 0:e.background_color)||"#1d1d1d"}},null===(t=this.config)||void 0===t?void 0:t.text,dt("div",{slot:"button"},this.youtubeButton(),this.customButton()))}},{key:"el",get:function(){return this}}],[{key:"watchers",get:function(){return{config:["handleButtonCountChange"],currentTime:["handleDuration"],duration:["handleDuration"]}}},{key:"style",get:function(){return":host{display:block}"}}]),i}(g(HTMLElement)),Mi=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e}return Object(s.a)(i,[{key:"render",value:function(){return dt("div",{class:{bar:!0,"bar--open":this.open}},dt("span",{part:"content",class:"bar__content"},dt("slot",null)),dt("span",{part:"button",class:"bar__button"},dt("slot",{name:"button"})))}}],[{key:"style",get:function(){return":host{display:block;overflow:hidden}.bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;background:var(--presto-action-bar-background, #1d1d1d);color:#fff;padding:0 var(--presto-action-bar-padding, 6px);line-height:1em;font-size:16px;margin-top:-100%;transition:margin var(--presto-action-bar-animation-speed, 0.5s) ease-in-out;transform:translate3d(0)}.bar.bar--open{margin-top:0}.bar__button{margin:var(--presto-action-bar-padding, 6px);display:flex;align-items:center}.bar__content{margin:var(--presto-action-bar-padding, 6px);width:100%;text-align:center}@media screen and (min-width: 480px){.bar__content{width:auto}}"}}]),i}(g(HTMLElement)),Ii=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),e}return Object(s.a)(i,[{key:"componentWillLoad",value:function(){this.poster=this.poster||this.thumbnail}},{key:"render",value:function(){return dt("presto-video",{getRef:this.getRef,player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}}]),i}(g(HTMLElement)),Oi=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),e.playVideo=Rt(Object(l.a)(e),"playVideo",7),e.rewatchVideo=Rt(Object(l.a)(e),"rewatchVideo",7),e.percentagePassed=0,e}return Object(s.a)(i,[{key:"componentWillLoad",value:function(){this.handleDuration()}},{key:"timePassed",value:function(e){var t=e.current,i=e.duration,n=e.showAfter;if(t===n)return!0;var r=t/i*100;return 99.9<r&&(r=100),r>=n}},{key:"handlePlayerInit",value:function(e,t){var i=this;t||(this.player.on("play playing timeupdate",(function(){i.skipped||i.show&&i.player.pause()})),this.player.on("ended",(function(){var e,t;if(i.ended=!0,100===(null===(t=null===(e=i.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.percentage)){if(!i.enabled)return;if(i.skipped)return;i.show=!0}})))}},{key:"handleDuration",value:function(){var e,t;this.enabled=!this.skipped&&(null===(t=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.enabled),this.handleTime()}},{key:"handlePercentagePassed",value:function(){this.percentagePassed=this.currentTime/this.duration*100}},{key:"handlePercentagePassedChange",value:function(){this.ended=this.percentagePassed>=99.9}},{key:"handleTime",value:function(){var e,t;this.enabled&&(this.skipped||100!==(null===(t=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.percentage)&&this.checkTime())}},{key:"checkTime",value:function(){var e,t;this.show=this.timePassed({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.percentage)||0})}},{key:"skip",value:function(){this.skipped=!0,this.show=!1,this.playVideo.emit()}},{key:"rewatch",value:function(){var e=this;this.ended=!1,this.show=!1,this.rewatchVideo.emit(),this.player.once("timeupdate",(function(){setTimeout((function(){return e.player.play()}),500)})),this.player.restart()}},{key:"render",value:function(){var e,t,i,n,r,a,o,s,l,c,h,d,u,p,f,g,m,v,y,b,x,w,k,_,A,S,C,T,P,L=this;if(this.show)return dt("presto-cta-overlay-ui",{style:Object.assign(Object.assign(Object.assign({"--presto-player-button-border-radius":"".concat(null===(t=null===(e=this.preset)||void 0===e?void 0:e.cta)||void 0===t?void 0:t.button_radius,"px")},(null===(n=null===(i=this.preset)||void 0===i?void 0:i.cta)||void 0===n?void 0:n.background_opacity)?{"--presto-player-cta-background-opacity":"".concat((null===(a=null===(r=this.preset)||void 0===r?void 0:r.cta)||void 0===a?void 0:a.background_opacity)/100)}:{}),(null===(s=null===(o=this.preset)||void 0===o?void 0:o.cta)||void 0===s?void 0:s.button_color)?{"--presto-player-button-color":"".concat(null===(c=null===(l=this.preset)||void 0===l?void 0:l.cta)||void 0===c?void 0:c.button_color)}:{}),(null===(d=null===(h=this.preset)||void 0===h?void 0:h.cta)||void 0===d?void 0:d.button_text_color)?{"--presto-player-button-text":"".concat(null===(p=null===(u=this.preset)||void 0===u?void 0:u.cta)||void 0===p?void 0:p.button_text_color)}:{}),direction:this.direction,class:"email-overlay",headline:null===(g=null===(f=this.preset)||void 0===f?void 0:f.cta)||void 0===g?void 0:g.headline,"bottom-text":null===(v=null===(m=this.preset)||void 0===m?void 0:m.cta)||void 0===v?void 0:v.bottom_text,"show-button":null===(b=null===(y=this.preset)||void 0===y?void 0:y.cta)||void 0===b?void 0:b.show_button,buttonLink:null===(w=null===(x=this.preset)||void 0===x?void 0:x.cta)||void 0===w?void 0:w.button_link,allowSkip:!this.ended&&(null===(_=null===(k=this.preset)||void 0===k?void 0:k.cta)||void 0===_?void 0:_.show_skip),allowRewatch:this.ended&&(null===(S=null===(A=this.preset)||void 0===A?void 0:A.cta)||void 0===S?void 0:S.show_rewatch),"skip-text":null===(C=null==this?void 0:this.i18n)||void 0===C?void 0:C.skip,"button-text":null===(P=null===(T=this.preset)||void 0===T?void 0:T.cta)||void 0===P?void 0:P.button_text,onSkip:function(){return L.skip()},onRewatch:function(){return L.rewatch()}})}}],[{key:"watchers",get:function(){return{player:["handlePlayerInit"],duration:["handleDuration","handlePercentagePassed"],currentTime:["handlePercentagePassed","handleTime"],percentagePassed:["handlePercentagePassedChange"]}}},{key:"style",get:function(){return":host{display:block}"}}]),i}(g(HTMLElement)),Di=function(e,t,n){var r=function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}({minFontSize:-1/0,maxFontSize:1/0},n),a=function(e){var n=t||1,a=function(){e.style.fontSize=Math.max(Math.min(e.clientWidth/(10*n),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize))+"px"};if(a(),"ResizeObserver"in window==!1)var o=i.e(0).then(i.bind(null,46)).then((function(){window.ResizeObserver=o.ResizeObserver,new ResizeObserver(a).observe(e)}));else new ResizeObserver(a).observe(e)};if(e.length)for(var o=0;o<e.length;o++)a(e[o]);else a(e);return e},zi=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e.skip=Rt(Object(l.a)(e),"skip",7),e.rewatch=Rt(Object(l.a)(e),"rewatch",7),e}return Object(s.a)(i,[{key:"componentDidLoad",value:function(){Di(this.textInput,3,{maxFontSize:20,minFontSize:8})}},{key:"handleCTAClick",value:function(e){var t;(null===(t=this.buttonLink)||void 0===t?void 0:t.url)&&(e.preventDefault(),e.stopPropagation(),this.handleLink())}},{key:"handleLink",value:function(){var e,t,i;(null===(e=this.buttonLink)||void 0===e?void 0:e.opensInNewTab)?window.open(null===(t=this.buttonLink)||void 0===t?void 0:t.url,"_blank"):window.location.href=null===(i=this.buttonLink)||void 0===i?void 0:i.url}},{key:"render",value:function(){var e,t,i,n=this;return dt("div",{class:"wrapper",ref:function(e){return n.textInput=e}},dt("div",{onClick:function(e){return n.handleCTAClick(e)},class:"overlay ".concat("rtl"===this.direction?"rtl":""," ").concat((null===(e=this.buttonLink)||void 0===e?void 0:e.url)?"has-link":"")},dt("div",{class:"content"},dt("h1",{part:"cta-headline"},this.headline||this.defaultHeadline),this.bottomText&&dt("p",{part:"cta-bottom-text",innerHTML:this.bottomText}),this.showButton&&dt("presto-player-button",{full:!0,onClick:function(e){return n.handleCTAClick(e)},part:"cta-button",href:null===(t=null==this?void 0:this.buttonLink)||void 0===t?void 0:t.url,target:(null===(i=null==this?void 0:this.buttonLink)||void 0===i?void 0:i.opensInNewTab)?"_blank":"_self",class:"button",type:"primary"},this.buttonText))),!!this.allowRewatch&&dt("div",{class:"rewatch",onClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),n.rewatch.emit()}},dt("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round",class:"icon icon-corner-up-left"},dt("polyline",{points:"9 14 4 9 9 4"}),dt("path",{d:"M20 20v-7a4 4 0 0 0-4-4H4"})),this.rewatchText||"Rewatch"),!!this.allowSkip&&dt("div",{class:"skip",onClick:function(e){e.preventDefault(),n.skip.emit()}},this.skipText||"Skip"," →"))}}],[{key:"style",get:function(){return':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999;user-select:none}*{box-sizing:border-box}a{color:#fff}.wrapper{height:100%;position:relative;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif)}.overlay{position:relative;display:flex;align-items:center;justify-content:center;padding:48px;height:100%}.overlay.has-link{cursor:pointer}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-cta-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-cta-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:80%;max-width:600px}.content *~*{margin-top:22px}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-cta-border-radius, 0) var(--presto-player-cta-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}h1{font-size:1.5em;font-weight:500;margin:0;line-height:1.1em}.skip,.rewatch{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}.rewatch{display:inline-flex;align-items:center;right:auto;left:0}.rewatch .icon{margin-right:5px}p{font-size:0.85em;margin:0;margin-top:1.5em;line-height:1.4em;opacity:0.75}'}}]),i}(g(HTMLElement)),Ni=function(e){Object(c.a)(h,e);var t,i,n=Li(h);function h(){var e;return Object(o.a)(this,h),(e=n.call(this)).__registerHost(),e.playVideo=Rt(Object(l.a)(e),"playVideo",7),e}return Object(s.a)(h,[{key:"setStorage",value:function(e){window.localStorage.setItem("presto.videos.email_collection",JSON.stringify(Object(a.a)({},this.videoId,e)))}},{key:"getStorage",value:function(){return window.localStorage.getItem("presto.videos.email_collection")}},{key:"componentWillLoad",value:function(){this.handleDuration()}},{key:"timePassed",value:function(e){var t=e.current,i=e.duration,n=e.showAfter;if(t===n)return!0;var r=t/i*100;return 99.9<r&&(r=100),r>=n}},{key:"handlePlayerInit",value:function(e,t){var i=this;t||this.player.on("play playing timeupdate",(function(){i.getStorage()||i.show&&i.player.pause()}))}},{key:"handleDuration",value:function(){var e,t;this.enabled=!this.getStorage()&&(null===(t=null===(e=this.preset)||void 0===e?void 0:e.email_collection)||void 0===t?void 0:t.enabled),this.handleTime()}},{key:"handleTime",value:function(){this.enabled&&(this.getStorage()||this.checkTime())}},{key:"checkTime",value:function(){var e,t;this.show=this.timePassed({current:this.currentTime,duration:this.duration,showAfter:(null===(t=null===(e=this.preset)||void 0===e?void 0:e.email_collection)||void 0===t?void 0:t.percentage)||0})}},{key:"getNonce",value:(i=Object(r.a)(w.a.mark((function e(){var t;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",fetch("".concat(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.ajaxurl,"?action=presto_refresh_progress_nonce")));case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"submit",value:(t=Object(r.a)(w.a.mark((function e(t){var i,n,r,a,o,s,l,c,h;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.loading=!0,this.error="",e.next=4,this.getNonce();case 4:return n=e.sent,e.next=7,n.json();case 7:return r=e.sent,a=r.data,e.prev=9,e.next=12,fetch(null===(i=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===i?void 0:i.ajaxurl,{method:"post",body:new URLSearchParams(Object.assign({action:"presto_player_email_submit",nonce:a,preset_id:this.preset.id,video_id:this.videoId},(null==t?void 0:t.detail)||{}))});case 12:return o=e.sent,e.next=15,o.json();case 15:if(s=e.sent,l=s.success,c=s.data,!l){e.next=24;break}this.setStorage("collected"),this.show=!1,this.playVideo.emit(),e.next=25;break;case 24:throw c;case 25:e.next=31;break;case 27:e.prev=27,e.t0=e.catch(9),(h=null===e.t0||void 0===e.t0?void 0:e.t0[0])&&"string"==typeof h&&(this.error=h);case 31:return e.prev=31,this.loading=!1,e.finish(31);case 34:case"end":return e.stop()}}),e,this,[[9,27,31,34]])}))),function(e){return t.apply(this,arguments)})},{key:"skip",value:function(){this.setStorage("skipped"),this.show=!1,this.playVideo.emit()}},{key:"render",value:function(){var e,t,i,n,r,a,o,s,l,c,h,d=this;if(this.show)return dt("presto-email-overlay-ui",{direction:this.direction,class:"email-overlay",headline:null===(t=null===(e=this.preset)||void 0===e?void 0:e.email_collection)||void 0===t?void 0:t.headline,defaultHeadline:null===(i=null==this?void 0:this.i18n)||void 0===i?void 0:i.emailDefaultHeadline,bottomText:null===(r=null===(n=this.preset)||void 0===n?void 0:n.email_collection)||void 0===r?void 0:r.bottom_text,allowSkip:null===(o=null===(a=this.preset)||void 0===a?void 0:a.email_collection)||void 0===o?void 0:o.allow_skip,skipText:null===(s=null==this?void 0:this.i18n)||void 0===s?void 0:s.skip,buttonText:null===(c=null===(l=this.preset)||void 0===l?void 0:l.email_collection)||void 0===c?void 0:c.button_text,placeholder:null===(h=null==this?void 0:this.i18n)||void 0===h?void 0:h.emailPlaceholder,isLoading:this.loading,errorMessage:this.error,onSubmitForm:function(e){return d.submit(e)},onSkip:function(){return d.skip()}})}}],[{key:"watchers",get:function(){return{player:["handlePlayerInit"],duration:["handleDuration"],currentTime:["handleTime"]}}},{key:"style",get:function(){return":host{display:block}"}}]),h}(g(HTMLElement)),Ri=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),si(Object(l.a)(e)),e.submitForm=Rt(Object(l.a)(e),"submitForm",7),e.skip=Rt(Object(l.a)(e),"skip",7),e}return Object(s.a)(i,[{key:"handleSubmit",value:function(e){this.submitForm.emit({email:this.email}),e.preventDefault()}},{key:"componentDidLoad",value:function(){Di(this.textInput,3,{maxFontSize:20,minFontSize:8})}},{key:"handleChange",value:function(e){this.email=e.target.value}},{key:"render",value:function(){var e=this;return dt("div",{class:"overlay ".concat("rtl"===this.direction?"rtl":""),ref:function(t){return e.textInput=t}},dt("div",{class:"content"},dt("h1",null,this.headline||this.defaultHeadline),this.isLoading?dt("presto-player-spinner",null):dt("form",{onSubmit:function(t){return e.handleSubmit(t)}},dt("input",{type:"email",placeholder:this.placeholder,value:this.email,onInput:function(t){return e.handleChange(t)},required:!0}),dt("button",{type:"submit"},this.buttonText||"Play")),this.errorMessage&&dt("p",{class:"error"},this.errorMessage),this.bottomText&&dt("p",{innerHTML:this.bottomText}),!!this.allowSkip&&dt("div",{class:"skip",onClick:function(){e.skip.emit()}},this.skipText||"Skip"," →")))}}],[{key:"style",get:function(){return':host{display:block;font-size:16px;width:100%;height:100%;position:absolute;top:0;left:0;bottom:0;right:0;width:100%;height:100%;z-index:99999}*{box-sizing:border-box}a{color:#fff}.overlay{position:relative;display:flex;align-items:center;text-align:center;justify-content:center;padding:48px;color:#fff;font-family:var(--plyr-font-family, "San Francisco", -apple-system, BlinkMacSystemFont, ".SFNSText-Regular", Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif);height:100%}.overlay:before{content:"";border-radius:var(--presto-player-border-radius, 0);opacity:var(--presto-player-email-background-opacity, 0.75);position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--presto-player-email-background, #000);z-index:-1;box-shadow:inset 0 0 100px black}.content{width:20em}form{display:flex;align-items:stretch;justify-content:center}input{background:#fff;border:none;font-size:0.8em;line-height:20px;padding:6px 8px;border-radius:0;border-width:1px;border-style:solid;border-color:transparent;border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius);flex:1}@media screen and (min-width: 700px){input{padding:10px 14px}}input:focus{border-color:var(--plyr-color-main, #000);z-index:1}input:focus,input:hover{outline:none}.rtl input{border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}button{background:var(--plyr-color-main, #000);appearance:none;padding:6px 12px;align-items:center;display:inline-flex;border-width:1px;border-color:transparent;color:#fff;border-radius:0;cursor:pointer;font-size:0.8em;border-radius:0 var(--presto-player-email-border-radius, 0) var(--presto-player-email-border-radius) 0}@media screen and (min-width: 700px){button{padding:10px 18px}}button:focus{box-shadow:white 0px 0px 0px 2px, var(--plyr-color-main, #000) 0px 0px 0px 4px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;z-index:1}button:focus,button:hover{outline:none}.rtl button{border-radius:var(--presto-player-email-border-radius, 0) 0 0 var(--presto-player-email-border-radius)}h1{font-size:1.5em;font-weight:500;margin:0 0 22px 0;max-width:600px;line-height:1.1em}.skip{font-size:0.8em;font-weight:600;position:absolute;top:0;right:0;padding:4%;cursor:pointer}p{font-size:0.7em;margin:0;margin-top:1.5em}'}}]),i}(g(HTMLElement)),Fi=function(e){Object(c.a)(i,e);var t=Li(i);function i(){var e;return Object(o.a)(this,i),(e=t.call(this)).__registerHost(),e.playVideo=Rt(Object(l.a)(e),"playVideo",7),e}return Object(s.a)(i,[{key:"render",value:function(){var e,t,i,n,r,a,o,s,l=this;return dt("div",{class:"presto-player__muted-overlay",onClick:function(){l.mutedPreview=!1,l.playVideo.emit()}},dt("div",{class:"plyr__control plyr__control--overlaid","data-plyr":"play","aria-label":"Play",part:"muted-overlay-play"},dt("svg",{id:"plyr-play",viewBox:"0 0 18 18"},dt("path",{d:"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"})),dt("span",{class:"plyr__sr-only"},"Play")),(null===(e=this.mutedOverlay)||void 0===e?void 0:e.enabled)&&(null===(t=this.mutedOverlay)||void 0===t?void 0:t.src)?dt("div",{class:"presto-player__overlay is-image",part:"muted-overlay-image",style:{width:"".concat((null===(i=this.mutedOverlay)||void 0===i?void 0:i.width)||50,"%"),left:"".concat(100*((null===(r=null===(n=this.mutedOverlay)||void 0===n?void 0:n.focalPoint)||void 0===r?void 0:r.x)||.5),"%"),top:"".concat(100*((null===(o=null===(a=this.mutedOverlay)||void 0===a?void 0:a.focalPoint)||void 0===o?void 0:o.y)||.5),"%")}},dt("img",{src:null===(s=this.mutedOverlay)||void 0===s?void 0:s.src,style:{transform:"translateX(-50%) translateY(-50%)"}})):"")}}],[{key:"style",get:function(){return":host{display:block}"}}]),i}(g(HTMLElement));function Yi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Hi(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(i),!0).forEach((function(t){Vi(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Yi(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function $i(e){return($i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ji(e,t,i,n,r,a,o){try{var s=e[a](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function Xi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bi(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wi(e,t,i){return t&&Bi(e.prototype,t),i&&Bi(e,i),e}function Vi(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Gi(e,t){if(null==e)return{};var i,n,r=function(e,t){if(null==e)return{};var i,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)i=a[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)i=a[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function Ui(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==i)return;var n,r,a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}(e,t)||Zi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qi(e){return function(e){if(Array.isArray(e))return Ji(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Zi(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zi(e,t){if(e){if("string"==typeof e)return Ji(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ji(e,t):void 0}}function Ji(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Qi(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=Zi(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(s)throw a}}}}var Ki=["premium","referrerPolicy"];function en(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function tn(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function rn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function an(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(i),!0).forEach((function(t){nn(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):rn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var on={addCSS:!0,thumbWidth:15,watch:!0};function sn(e,t){return function(){return Array.from(document.querySelectorAll(t)).includes(this)}.call(e,t)}var ln=function(e){return null!=e?e.constructor:null},cn=function(e,t){return!!(e&&t&&e instanceof t)},hn=function(e){return null==e},dn=function(e){return ln(e)===Object},un=function(e){return ln(e)===String},pn=function(e){return Array.isArray(e)},fn=function(e){return cn(e,NodeList)},gn=un,mn=pn,vn=fn,yn=function(e){return cn(e,Element)},bn=function(e){return cn(e,Event)},xn=function(e){return hn(e)||(un(e)||pn(e)||fn(e))&&!e.length||dn(e)&&!Object.keys(e).length};function wn(e,t){if(1>t){var i=function(e){var t="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}(t);return parseFloat(e.toFixed(i))}return Math.round(e/t)*t}var kn,_n,An,Sn=function(){function e(t,i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),yn(t)?this.element=t:gn(t)&&(this.element=document.querySelector(t)),yn(this.element)&&xn(this.element.rangeTouch)&&(this.config=an({},on,{},i),this.init())}return function(e,t,i){t&&tn(e.prototype,t),i&&tn(e,i)}(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(e){var t=this,i=e?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(e){t.element[i](e,(function(e){return t.set(e)}),!1)}))}},{key:"get",value:function(t){if(!e.enabled||!bn(t))return null;var i,n=t.target,r=t.changedTouches[0],a=parseFloat(n.getAttribute("min"))||0,o=parseFloat(n.getAttribute("max"))||100,s=parseFloat(n.getAttribute("step"))||1,l=n.getBoundingClientRect(),c=100/l.width*(this.config.thumbWidth/2)/100;return 0>(i=100/l.width*(r.clientX-l.left))?i=0:100<i&&(i=100),50>i?i-=(100-2*i)*c:50<i&&(i+=2*(i-50)*c),a+wn(i/100*(o-a),s)}},{key:"set",value:function(t){e.enabled&&bn(t)&&!t.target.disabled&&(t.preventDefault(),t.target.value=this.get(t),function(e,t){if(e&&t){var i=new Event(t,{bubbles:!0});e.dispatchEvent(i)}}(t.target,"touchend"===t.type?"change":"input"))}}],[{key:"setup",value:function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=null;if(xn(t)||gn(t)?n=Array.from(document.querySelectorAll(gn(t)?t:'input[type="range"]')):yn(t)?n=[t]:vn(t)?n=Array.from(t):mn(t)&&(n=t.filter(yn)),xn(n))return null;var r=an({},on,{},i);if(gn(t)&&r.watch){var a=new MutationObserver((function(i){Array.from(i).forEach((function(i){Array.from(i.addedNodes).forEach((function(i){yn(i)&&sn(i,t)&&new e(i,r)}))}))}));a.observe(document.body,{childList:!0,subtree:!0})}return n.map((function(t){return new e(t,i)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}(),Cn=function(e){return null!=e?e.constructor:null},Tn=function(e,t){return Boolean(e&&t&&e instanceof t)},Pn=function(e){return null==e},Ln=function(e){return Cn(e)===Object},En=function(e){return Cn(e)===String},Mn=function(e){return Cn(e)===Function},In=function(e){return Array.isArray(e)},On=function(e){return Tn(e,NodeList)},Dn=function(e){return Pn(e)||(En(e)||In(e)||On(e))&&!e.length||Ln(e)&&!Object.keys(e).length},zn=Pn,Nn=Ln,Rn=function(e){return Cn(e)===Number&&!Number.isNaN(e)},Fn=En,Yn=function(e){return Cn(e)===Boolean},Hn=Mn,$n=In,jn=On,Xn=function(e){return null!==e&&"object"==$i(e)&&1===e.nodeType&&"object"==$i(e.style)&&"object"==$i(e.ownerDocument)},Bn=function(e){return Tn(e,Event)},Wn=function(e){return Tn(e,KeyboardEvent)},Vn=function(e){return Tn(e,TextTrack)||!Pn(e)&&En(e.kind)},Gn=function(e){return Tn(e,Promise)&&Mn(e.then)},Un=function(e){if(Tn(e,window.URL))return!0;if(!En(e))return!1;var t=e;e.startsWith("http://")&&e.startsWith("https://")||(t="http://".concat(e));try{return!Dn(new URL(t).hostname)}catch(e){return!1}},qn=Dn,Zn=(kn=document.createElement("span"),_n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},An=Object.keys(_n).find((function(e){return void 0!==kn.style[e]})),!!Fn(An)&&_n[An]);function Jn(e,t){setTimeout((function(){try{e.hidden=!0,e.hidden=!1}catch(e){}}),t)}var Qn={isIE:/* @cc_on!@ */!!document.documentMode,isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function Kn(e,t){return t.split(".").reduce((function(e,t){return e&&e[t]}),e)}function er(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];if(!i.length)return e;var r=i.shift();return Nn(r)?(Object.keys(r).forEach((function(t){Nn(r[t])?(Object.keys(e).includes(t)||Object.assign(e,Vi({},t,{})),er(e[t],r[t])):Object.assign(e,Vi({},t,r[t]))})),er.apply(void 0,[e].concat(i))):e}function tr(e,t){var i=e.length?e:[e];Array.from(i).reverse().forEach((function(e,i){var n=i>0?t.cloneNode(!0):t,r=e.parentNode,a=e.nextSibling;n.appendChild(e),a?r.insertBefore(n,a):r.appendChild(n)}))}function ir(e,t){Xn(e)&&!qn(t)&&Object.entries(t).filter((function(e){var t=Ui(e,2)[1];return!zn(t)})).forEach((function(t){var i=Ui(t,2),n=i[0],r=i[1];return e.setAttribute(n,r)}))}function nr(e,t,i){var n=document.createElement(e);return Nn(t)&&ir(n,t),Fn(i)&&(n.innerText=i),n}function rr(e,t,i,n){Xn(t)&&t.appendChild(nr(e,i,n))}function ar(e){jn(e)||$n(e)?Array.from(e).forEach(ar):Xn(e)&&Xn(e.parentNode)&&e.parentNode.removeChild(e)}function or(e){if(Xn(e))for(var t=e.childNodes.length;t>0;)e.removeChild(e.lastChild),t-=1}function sr(e,t){return Xn(t)&&Xn(t.parentNode)&&Xn(e)?(t.parentNode.replaceChild(e,t),e):null}function lr(e,t){if(!Fn(e)||qn(e))return{};var i={},n=er({},t);return e.split(",").forEach((function(e){var t=e.trim(),r=t.replace(".",""),a=t.replace(/[[\]]/g,"").split("="),o=Ui(a,1)[0],s=a.length>1?a[1].replace(/["']/g,""):"";switch(t.charAt(0)){case".":Fn(n.class)?i.class="".concat(n.class," ").concat(r):i.class=r;break;case"#":i.id=t.replace("#","");break;case"[":i[o]=s}})),er(n,i)}function cr(e,t){if(Xn(e)){var i=t;Yn(i)||(i=!e.hidden),e.hidden=i}}function hr(e,t,i){if(jn(e))return Array.from(e).map((function(e){return hr(e,t,i)}));if(Xn(e)){var n="toggle";return void 0!==i&&(n=i?"add":"remove"),e.classList[n](t),e.classList.contains(t)}return!1}function dr(e,t){return Xn(e)&&e.classList.contains(t)}function ur(e,t){var i=Element.prototype;return(i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||function(){return Array.from(document.querySelectorAll(t)).includes(this)}).call(e,t)}function pr(e){return this.elements.container.querySelectorAll(e)}function fr(e){return this.elements.container.querySelector(e)}function gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Xn(e)&&(e.focus({preventScroll:!0}),t&&hr(e,this.config.classNames.tabFocus))}var mr={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},vr={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check:function(e,t,i){var n=Qn.isIPhone&&i&&vr.playsinline,r=vr[e]||"html5"!==t;return{api:r,ui:r&&vr.rangeInput&&("video"!==e||!Qn.isIPhone||n)}},pip:!(Qn.isIPhone||!Hn(nr("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||nr("video").disablePictureInPicture)),airplay:Hn(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime:function(e){if(qn(e))return!1;var t=Ui(e.split("/"),1)[0],i=e;if(!this.isHTML5||t!==this.type)return!1;Object.keys(mr).includes(i)&&(i+='; codecs="'.concat(mr[e],'"'));try{return Boolean(i&&this.media.canPlayType(i).replace(/no/,""))}catch(e){return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:function(){var e=document.createElement("input");return e.type="range","range"===e.type}(),touch:"ontouchstart"in document.documentElement,transitions:!1!==Zn,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},yr=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,null}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function br(e,t,i){var n=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&"addEventListener"in e&&!qn(t)&&Hn(i)){var s=t.split(" "),l=o;yr&&(l={passive:a,capture:o}),s.forEach((function(t){n&&n.eventListeners&&r&&n.eventListeners.push({element:e,type:t,callback:i,options:l}),e[r?"addEventListener":"removeEventListener"](t,i,l)}))}}function xr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];br.call(this,e,t,i,!0,n,r)}function wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];br.call(this,e,t,i,!1,n,r)}function kr(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=function o(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];wr(e,i,o,r,a),n.apply(t,l)};br.call(this,e,i,o,!0,r,a)}function _r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Xn(e)&&!qn(t)){var r=new CustomEvent(t,{bubbles:i,detail:Hi(Hi({},n),{},{plyr:this})});e.dispatchEvent(r)}}function Ar(){this&&this.eventListeners&&(this.eventListeners.forEach((function(e){var t=e.element,i=e.type,n=e.callback,r=e.options;t.removeEventListener(i,n,r)})),this.eventListeners=[])}function Sr(){var e=this;return new Promise((function(t){return e.ready?setTimeout(t,0):xr.call(e,e.elements.container,"ready",t)})).then((function(){}))}function Cr(e){Gn(e)&&e.then(null,(function(){}))}function Tr(e){return!!($n(e)||Fn(e)&&e.includes(":"))&&($n(e)?e:e.split(":")).map(Number).every(Rn)}function Pr(e){if(!$n(e)||!e.every(Rn))return null;var t=Ui(e,2),i=t[0],n=t[1],r=function e(t,i){return 0===i?t:e(i,t%i)}(i,n);return[i/r,n/r]}function Lr(e){var t=function(e){return Tr(e)?e.split(":").map(Number):null},i=t(e);if(null===i&&(i=t(this.config.ratio)),null===i&&!qn(this.embed)&&$n(this.embed.ratio)&&(i=this.embed.ratio),null===i&&this.isHTML5){var n=this.media;i=Pr([n.videoWidth,n.videoHeight])}return i}function Er(e){if(!this.isVideo)return{};var t=this.elements.wrapper,i=Lr.call(this,e),n=Ui($n(i)?i:[0,0],2),r=100/n[0]*n[1];if(t.style.paddingBottom=r-.25+"%",this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){var a=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(a-r)/(a/50);this.fullscreen.active?t.style.paddingBottom=null:this.media.style.transform="translateY(-".concat(o,"%)")}else this.isHTML5&&t.classList.toggle(this.config.classNames.videoFixedRatio,null!==i);return{padding:r,ratio:i}}var Mr={getSources:function(){var e=this;return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter((function(t){var i=t.getAttribute("type");return!!qn(i)||vr.mime.call(e,i)})):[]},getQualityOptions:function(){return this.config.quality.forced?this.config.quality.options:Mr.getSources.call(this).map((function(e){return Number(e.getAttribute("size"))})).filter(Boolean)},setup:function(){if(this.isHTML5){var e=this;e.options.speed=e.config.speed.options,qn(this.config.ratio)||Er.call(e),Object.defineProperty(e.media,"quality",{get:function(){var t=Mr.getSources.call(e).find((function(t){return t.getAttribute("src")===e.source}));return t&&Number(t.getAttribute("size"))},set:function(t){if(e.quality!==t){if(e.config.quality.forced&&Hn(e.config.quality.onChange))e.config.quality.onChange(t);else{var i=Mr.getSources.call(e).find((function(e){return Number(e.getAttribute("size"))===t}));if(!i)return;var n=e.media,r=n.currentTime,a=n.paused,o=n.preload,s=n.readyState,l=n.playbackRate;e.media.src=i.getAttribute("src"),("none"!==o||s)&&(e.once("loadedmetadata",(function(){e.speed=l,e.currentTime=r,a||Cr(e.play())})),e.media.load())}_r.call(e,e.media,"qualitychange",!1,{quality:t})}}})}},cancelRequests:function(){this.isHTML5&&(ar(Mr.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function Ir(e){return $n(e)?e.filter((function(t,i){return e.indexOf(t)===i})):e}function Or(e){return"".concat(e,"-").concat(Math.floor(1e4*Math.random()))}function Dr(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return qn(e)?e:e.toString().replace(/{(\d+)}/g,(function(e,t){return i[t].toString()}))}var zr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e.replace(new RegExp(t.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),i.toString())},Nr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.toString().replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))};function Rr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return t=zr(t,"-"," "),t=zr(t,"_"," "),t=Nr(t),zr(t," ","")}function Fr(e){var t=document.createElement("div");return t.appendChild(e),t.innerHTML}var Yr={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Hr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(qn(e)||qn(t))return"";var i=Kn(t.i18n,e);if(qn(i))return Object.keys(Yr).includes(e)?Yr[e]:"";var n={"{seektime}":t.seekTime,"{title}":t.title};return Object.entries(n).forEach((function(e){var t=Ui(e,2),n=t[0],r=t[1];i=zr(i,n,r)})),i},$r=function(){function e(t){var i=this;Xi(this,e),en(this,"get",(function(t){if(!e.supported||!i.enabled)return null;var n=window.localStorage.getItem(i.key);if(qn(n))return null;var r=JSON.parse(n);return Fn(t)&&t.length?r[t]:r})),en(this,"set",(function(t){if(e.supported&&i.enabled&&Nn(t)){var n=i.get();qn(n)&&(n={}),er(n,t),window.localStorage.setItem(i.key,JSON.stringify(n))}})),this.enabled=t.config.storage.enabled,this.key=t.config.storage.key}return Wi(e,null,[{key:"supported",get:function(){try{if(!("localStorage"in window))return!1;var e="___test";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch(e){return!1}}}]),e}();function jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text";return new Promise((function(i,n){try{var r=new XMLHttpRequest;if(!("withCredentials"in r))return;r.addEventListener("load",(function(){if("text"===t)try{i(JSON.parse(r.responseText))}catch(e){i(r.responseText)}else i(r.response)})),r.addEventListener("error",(function(){throw new Error(r.status)})),r.open("GET",e,!0),r.responseType=t,r.send()}catch(e){n(e)}}))}function Xr(e,t){if(Fn(e)){var i=Fn(t),n=function(){return null!==document.getElementById(t)},r=function(e,t){e.innerHTML=t,i&&n()||document.body.insertAdjacentElement("afterbegin",e)};if(!i||!n()){var a=$r.supported,o=document.createElement("div");if(o.setAttribute("hidden",""),i&&o.setAttribute("id",t),a){var s=window.localStorage.getItem("cache-".concat(t));if(null!==s){var l=JSON.parse(s);r(o,l.content)}}jr(e).then((function(e){qn(e)||(a&&window.localStorage.setItem("cache-".concat(t),JSON.stringify({content:e})),r(o,e))})).catch((function(){}))}}}var Br=function(e){return Math.trunc(e/60/60%60,10)},Wr=function(e){return Math.trunc(e%60,10)};function Vr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!Rn(e))return Vr(void 0,t,i);var n,r=function(e){return"0".concat(e).slice(-2)},a=Br(e),o=(n=e,Math.trunc(n/60%60,10)),s=Wr(e);return a=t||a>0?"".concat(a,":"):"","".concat(i&&e>0?"-":"").concat(a).concat(r(o),":").concat(r(s))}var Gr={getIconUrl:function(){var e=new URL(this.config.iconUrl,window.location).host!==window.location.host||Qn.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:e}},findElements:function(){try{return this.elements.controls=fr.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:pr.call(this,this.config.selectors.buttons.play),pause:fr.call(this,this.config.selectors.buttons.pause),restart:fr.call(this,this.config.selectors.buttons.restart),rewind:fr.call(this,this.config.selectors.buttons.rewind),fastForward:fr.call(this,this.config.selectors.buttons.fastForward),mute:fr.call(this,this.config.selectors.buttons.mute),pip:fr.call(this,this.config.selectors.buttons.pip),airplay:fr.call(this,this.config.selectors.buttons.airplay),settings:fr.call(this,this.config.selectors.buttons.settings),captions:fr.call(this,this.config.selectors.buttons.captions),fullscreen:fr.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=fr.call(this,this.config.selectors.progress),this.elements.inputs={seek:fr.call(this,this.config.selectors.inputs.seek),volume:fr.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:fr.call(this,this.config.selectors.display.buffer),currentTime:fr.call(this,this.config.selectors.display.currentTime),duration:fr.call(this,this.config.selectors.display.duration)},Xn(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(".".concat(this.config.classNames.tooltip))),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon:function(e,t){var i="http://www.w3.org/2000/svg",n=Gr.getIconUrl.call(this),r="".concat(n.cors?"":n.url,"#").concat(this.config.iconPrefix),a=document.createElementNS(i,"svg");ir(a,er(t,{"aria-hidden":"true",focusable:"false"}));var o=document.createElementNS(i,"use"),s="".concat(r,"-").concat(e);return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",s),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s),a.appendChild(o),a},createLabel:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Hr(e,this.config);return nr("span",Hi(Hi({},t),{},{class:[t.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),i)},createBadge:function(e){if(qn(e))return null;var t=nr("span",{class:this.config.classNames.menu.value});return t.appendChild(nr("span",{class:this.config.classNames.menu.badge},e)),t},createButton:function(e,t){var i=this,n=er({},t),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.toString();return(t=Rr(t)).charAt(0).toLowerCase()+t.slice(1)}(e),a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach((function(e){Object.keys(n).includes(e)&&(a[e]=n[e],delete n[e])})),"button"!==a.element||Object.keys(n).includes("type")||(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").some((function(e){return e===i.config.classNames.control}))||er(n,{class:"".concat(n.class," ").concat(this.config.classNames.control)}):n.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":n.class+=" ".concat(this.config.classNames.control,"--overlaid"),r="play",a.label="play",a.icon="play";break;default:qn(a.label)&&(a.label=r),qn(a.icon)&&(a.icon=e)}var o=nr(a.element);return a.toggle?(o.appendChild(Gr.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),o.appendChild(Gr.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),o.appendChild(Gr.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),o.appendChild(Gr.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(o.appendChild(Gr.createIcon.call(this,a.icon)),o.appendChild(Gr.createLabel.call(this,a.label))),er(n,lr(this.config.selectors.buttons[r],n)),ir(o,n),"play"===r?($n(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(o)):this.elements.buttons[r]=o,o},createRange:function(e,t){var i=nr("input",er(lr(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Hr(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},t));return this.elements.inputs[e]=i,Gr.updateRangeFill.call(this,i),Sn.setup(i),i},createProgress:function(e,t){var i=nr("progress",er(lr(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},t));if("volume"!==e){i.appendChild(nr("span",null,"0"));var n={played:"played",buffer:"buffered"}[e],r=n?Hr(n,this.config):"";i.innerText="% ".concat(r.toLowerCase())}return this.elements.display[e]=i,i},createTime:function(e,t){var i=lr(this.config.selectors.display[e],t),n=nr("div",er(i,{class:"".concat(i.class?i.class:""," ").concat(this.config.classNames.display.time," ").trim(),"aria-label":Hr(e,this.config)}),"00:00");return this.elements.display[e]=n,n},bindMenuItemShortcuts:function(e,t){var i=this;xr.call(this,e,"keydown keyup",(function(n){if([32,38,39,40].includes(n.which)&&(n.preventDefault(),n.stopPropagation(),"keydown"!==n.type)){var r,a=ur(e,'[role="menuitemradio"]');if(!a&&[32,39].includes(n.which))Gr.showMenuPanel.call(i,t,!0);else 32!==n.which&&(40===n.which||a&&39===n.which?(r=e.nextElementSibling,Xn(r)||(r=e.parentNode.firstElementChild)):(r=e.previousElementSibling,Xn(r)||(r=e.parentNode.lastElementChild)),gr.call(i,r,!0))}}),!1),xr.call(this,e,"keyup",(function(e){13===e.which&&Gr.focusFirstMenuItem.call(i,null,!0)}))},createMenuItem:function(e){var t=this,i=e.value,n=e.list,r=e.type,a=e.title,o=e.badge,s=void 0===o?null:o,l=e.checked,c=void 0!==l&&l,h=lr(this.config.selectors.inputs[r]),d=nr("button",er(h,{type:"button",role:"menuitemradio",class:"".concat(this.config.classNames.control," ").concat(h.class?h.class:"").trim(),"aria-checked":c,value:i})),u=nr("span");u.innerHTML=a,Xn(s)&&u.appendChild(s),d.appendChild(u),Object.defineProperty(d,"checked",{enumerable:!0,get:function(){return"true"===d.getAttribute("aria-checked")},set:function(e){e&&Array.from(d.parentNode.children).filter((function(e){return ur(e,'[role="menuitemradio"]')})).forEach((function(e){return e.setAttribute("aria-checked","false")})),d.setAttribute("aria-checked",e?"true":"false")}}),this.listeners.bind(d,"click keyup",(function(e){if(!Wn(e)||32===e.which){switch(e.preventDefault(),e.stopPropagation(),d.checked=!0,r){case"language":t.currentTrack=Number(i);break;case"quality":t.quality=i;break;case"speed":t.speed=parseFloat(i)}Gr.showMenuPanel.call(t,"home",Wn(e))}}),r,!1),Gr.bindMenuItemShortcuts.call(this,d,r),n.appendChild(d)},formatTime:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Rn(e)?Vr(e,Br(this.duration)>0,t):e},updateTimeDisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Xn(e)&&Rn(t)&&(e.innerText=Gr.formatTime(t,i))},updateVolume:function(){this.supported.ui&&(Xn(this.elements.inputs.volume)&&Gr.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),Xn(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||0===this.volume))},setRange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Xn(e)&&(e.value=t,Gr.updateRangeFill.call(this,e))},updateProgress:function(e){var t=this;if(this.supported.ui&&Bn(e)){var i=0;if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=function(e,t){return 0===e||0===t||Number.isNaN(e)||Number.isNaN(t)?0:(e/t*100).toFixed(2)}(this.currentTime,this.duration),"timeupdate"===e.type&&Gr.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":!function(e,i){var n=Rn(i)?i:0,r=Xn(e)?e:t.elements.display.buffer;if(Xn(r)){r.value=n;var a=r.getElementsByTagName("span")[0];Xn(a)&&(a.childNodes[0].nodeValue=n)}}(this.elements.display.buffer,100*this.buffered)}}},updateRangeFill:function(e){var t=Bn(e)?e.target:e;if(Xn(t)&&"range"===t.getAttribute("type")){if(ur(t,this.config.selectors.inputs.seek)){t.setAttribute("aria-valuenow",this.currentTime);var i=Gr.formatTime(this.currentTime),n=Gr.formatTime(this.duration),r=Hr("seekLabel",this.config);t.setAttribute("aria-valuetext",r.replace("{currentTime}",i).replace("{duration}",n))}else if(ur(t,this.config.selectors.inputs.volume)){var a=100*t.value;t.setAttribute("aria-valuenow",a),t.setAttribute("aria-valuetext","".concat(a.toFixed(1),"%"))}else t.setAttribute("aria-valuenow",t.value);Qn.isWebkit&&t.style.setProperty("--value",t.value/t.max*100+"%")}},updateSeekTooltip:function(e){var t=this;if(this.config.tooltips.seek&&Xn(this.elements.inputs.seek)&&Xn(this.elements.display.seekTooltip)&&0!==this.duration){var i="".concat(this.config.classNames.tooltip,"--visible"),n=function(e){return hr(t.elements.display.seekTooltip,i,e)};if(this.touch)n(!1);else{var r=0,a=this.elements.progress.getBoundingClientRect();if(Bn(e))r=100/a.width*(e.pageX-a.left);else{if(!dr(this.elements.display.seekTooltip,i))return;r=parseFloat(this.elements.display.seekTooltip.style.left,10)}r<0?r=0:r>100&&(r=100),Gr.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*r),this.elements.display.seekTooltip.style.left="".concat(r,"%"),Bn(e)&&["mouseenter","mouseleave"].includes(e.type)&&n("mouseenter"===e.type)}}},timeUpdate:function(e){var t=!Xn(this.elements.display.duration)&&this.config.invertTime;Gr.updateTimeDisplay.call(this,this.elements.display.currentTime,t?this.duration-this.currentTime:this.currentTime,t),e&&"timeupdate"===e.type&&this.media.seeking||Gr.updateProgress.call(this,e)},durationUpdate:function(){if(this.supported.ui&&(this.config.invertTime||!this.currentTime)){if(this.duration>=Math.pow(2,32))return cr(this.elements.display.currentTime,!0),void cr(this.elements.progress,!0);Xn(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);var e=Xn(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&Gr.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&Gr.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),Gr.updateSeekTooltip.call(this)}},toggleMenuButton:function(e,t){cr(this.elements.settings.buttons[e],!t)},updateSetting:function(e,t,i){var n=this.elements.settings.panels[e],r=null,a=t;if("captions"===e)r=this.currentTrack;else{if(r=qn(i)?this[e]:i,qn(r)&&(r=this.config[e].default),!qn(this.options[e])&&!this.options[e].includes(r))return void this.debug.warn("Unsupported value of '".concat(r,"' for ").concat(e));if(!this.config[e].options.includes(r))return void this.debug.warn("Disabled value of '".concat(r,"' for ").concat(e))}if(Xn(a)||(a=n&&n.querySelector('[role="menu"]')),Xn(a)){this.elements.settings.buttons[e].querySelector(".".concat(this.config.classNames.menu.value)).innerHTML=Gr.getLabel.call(this,e,r);var o=a&&a.querySelector('[value="'.concat(r,'"]'));Xn(o)&&(o.checked=!0)}},getLabel:function(e,t){switch(e){case"speed":return 1===t?Hr("normal",this.config):"".concat(t,"&times;");case"quality":if(Rn(t)){if(0===t)return Hr("auto",this.config);var i=Hr("qualityLabel.".concat(t),this.config);return i.length?i:"".concat(t,"p")}return Nr(t);case"captions":return Zr.getLabel.call(this);default:return null}},setQualityMenu:function(e){var t=this;if(Xn(this.elements.settings.panels.quality)){var i="quality",n=this.elements.settings.panels.quality.querySelector('[role="menu"]');$n(e)&&(this.options.quality=Ir(e).filter((function(e){return t.config.quality.options.includes(e)})));var r=!qn(this.options.quality)&&this.options.quality.length>1;if(Gr.toggleMenuButton.call(this,i,r),or(n),Gr.checkMenu.call(this),r){var a=function(e){var i=Hr("qualityBadge.".concat(e),t.config);return i.length?Gr.createBadge.call(t,i):null};this.options.quality.sort((function(e,i){var n=t.config.quality.options;return n.indexOf(e)>n.indexOf(i)?1:-1})).forEach((function(e){Gr.createMenuItem.call(t,{value:e,list:n,type:i,title:Gr.getLabel.call(t,"quality",e),badge:a(e)})})),Gr.updateSetting.call(this,i,n)}}},setCaptionsMenu:function(){var e=this;if(Xn(this.elements.settings.panels.captions)){var t="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=Zr.getTracks.call(this),r=Boolean(n.length);if(Gr.toggleMenuButton.call(this,t,r),or(i),Gr.checkMenu.call(this),r){var a=n.map((function(t,n){return{value:n,checked:e.captions.toggled&&e.currentTrack===n,title:Zr.getLabel.call(e,t),badge:t.language&&Gr.createBadge.call(e,t.language.toUpperCase()),list:i,type:"language"}}));a.unshift({value:-1,checked:!this.captions.toggled,title:Hr("disabled",this.config),list:i,type:"language"}),a.forEach(Gr.createMenuItem.bind(this)),Gr.updateSetting.call(this,t,i)}}},setSpeedMenu:function(){var e=this;if(Xn(this.elements.settings.panels.speed)){var t="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter((function(t){return t>=e.minimumSpeed&&t<=e.maximumSpeed}));var n=!qn(this.options.speed)&&this.options.speed.length>1;Gr.toggleMenuButton.call(this,t,n),or(i),Gr.checkMenu.call(this),n&&(this.options.speed.forEach((function(n){Gr.createMenuItem.call(e,{value:n,list:i,type:t,title:Gr.getLabel.call(e,"speed",n)})})),Gr.updateSetting.call(this,t,i))}},checkMenu:function(){var e=this.elements.settings.buttons,t=!qn(e)&&Object.values(e).some((function(e){return!e.hidden}));cr(this.elements.settings.menu,!t)},focusFirstMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.elements.settings.popup.hidden){var i=e;Xn(i)||(i=Object.values(this.elements.settings.panels).find((function(e){return!e.hidden})));var n=i.querySelector('[role^="menuitem"]');gr.call(this,n,t)}},toggleMenu:function(e){var t=this.elements.settings.popup,i=this.elements.buttons.settings;if(Xn(t)&&Xn(i)){var n=t.hidden,r=n;if(Yn(e))r=e;else if(Wn(e)&&27===e.which)r=!1;else if(Bn(e)){var a=Hn(e.composedPath)?e.composedPath()[0]:e.target,o=t.contains(a);if(o||!o&&e.target!==i&&r)return}i.setAttribute("aria-expanded",r),cr(t,!r),hr(this.elements.container,this.config.classNames.menu.open,r),r&&Wn(e)?Gr.focusFirstMenuItem.call(this,null,!0):r||n||gr.call(this,i,Wn(e))}},getMenuSize:function(e){var t=e.cloneNode(!0);t.style.position="absolute",t.style.opacity=0,t.removeAttribute("hidden"),e.parentNode.appendChild(t);var i=t.scrollWidth,n=t.scrollHeight;return ar(t),{width:i,height:n}},showMenuPanel:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.elements.container.querySelector("#plyr-settings-".concat(this.id,"-").concat(t));if(Xn(n)){var r=n.parentNode,a=Array.from(r.children).find((function(e){return!e.hidden}));if(vr.transitions&&!vr.reducedMotion){r.style.width="".concat(a.scrollWidth,"px"),r.style.height="".concat(a.scrollHeight,"px");var o=Gr.getMenuSize.call(this,n),s=function t(i){i.target===r&&["width","height"].includes(i.propertyName)&&(r.style.width="",r.style.height="",wr.call(e,r,Zn,t))};xr.call(this,r,Zn,s),r.style.width="".concat(o.width,"px"),r.style.height="".concat(o.height,"px")}cr(a,!0),cr(n,!1),Gr.focusFirstMenuItem.call(this,n,i)}},setDownloadUrl:function(){var e=this.elements.buttons.download;Xn(e)&&e.setAttribute("href",this.download)},create:function(e){var t=this,i=Gr.bindMenuItemShortcuts,n=Gr.createButton,r=Gr.createProgress,a=Gr.createRange,o=Gr.createTime,s=Gr.setQualityMenu,l=Gr.setSpeedMenu,c=Gr.showMenuPanel;this.elements.controls=null,$n(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));var h=nr("div",lr(this.config.selectors.controls.wrapper));this.elements.controls=h;var d={class:"plyr__controls__item"};return Ir($n(this.config.controls)?this.config.controls:[]).forEach((function(s){if("restart"===s&&h.appendChild(n.call(t,"restart",d)),"rewind"===s&&h.appendChild(n.call(t,"rewind",d)),"play"===s&&h.appendChild(n.call(t,"play",d)),"fast-forward"===s&&h.appendChild(n.call(t,"fast-forward",d)),"progress"===s){var l=nr("div",{class:"".concat(d.class," plyr__progress__container")}),u=nr("div",lr(t.config.selectors.progress));if(u.appendChild(a.call(t,"seek",{id:"plyr-seek-".concat(e.id)})),u.appendChild(r.call(t,"buffer")),t.config.tooltips.seek){var p=nr("span",{class:t.config.classNames.tooltip},"00:00");u.appendChild(p),t.elements.display.seekTooltip=p}t.elements.progress=u,l.appendChild(t.elements.progress),h.appendChild(l)}if("current-time"===s&&h.appendChild(o.call(t,"currentTime",d)),"duration"===s&&h.appendChild(o.call(t,"duration",d)),"mute"===s||"volume"===s){var f=t.elements.volume;if(Xn(f)&&h.contains(f)||(f=nr("div",er({},d,{class:"".concat(d.class," plyr__volume").trim()})),t.elements.volume=f,h.appendChild(f)),"mute"===s&&f.appendChild(n.call(t,"mute")),"volume"===s&&!Qn.isIos){var g={max:1,step:.05,value:t.config.volume};f.appendChild(a.call(t,"volume",er(g,{id:"plyr-volume-".concat(e.id)})))}}if("captions"===s&&h.appendChild(n.call(t,"captions",d)),"settings"===s&&!qn(t.config.settings)){var m=nr("div",er({},d,{class:"".concat(d.class," plyr__menu").trim(),hidden:""}));m.appendChild(n.call(t,"settings",{"aria-haspopup":!0,"aria-controls":"plyr-settings-".concat(e.id),"aria-expanded":!1}));var v=nr("div",{class:"plyr__menu__container",id:"plyr-settings-".concat(e.id),hidden:""}),y=nr("div"),b=nr("div",{id:"plyr-settings-".concat(e.id,"-home")}),x=nr("div",{role:"menu"});b.appendChild(x),y.appendChild(b),t.elements.settings.panels.home=b,t.config.settings.forEach((function(n){var r=nr("button",er(lr(t.config.selectors.buttons.settings),{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--forward"),role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(t,r,n),xr.call(t,r,"click",(function(){c.call(t,n,!1)}));var a=nr("span",null,Hr(n,t.config)),o=nr("span",{class:t.config.classNames.menu.value});o.innerHTML=e[n],a.appendChild(o),r.appendChild(a),x.appendChild(r);var s=nr("div",{id:"plyr-settings-".concat(e.id,"-").concat(n),hidden:""}),l=nr("button",{type:"button",class:"".concat(t.config.classNames.control," ").concat(t.config.classNames.control,"--back")});l.appendChild(nr("span",{"aria-hidden":!0},Hr(n,t.config))),l.appendChild(nr("span",{class:t.config.classNames.hidden},Hr("menuBack",t.config))),xr.call(t,s,"keydown",(function(e){37===e.which&&(e.preventDefault(),e.stopPropagation(),c.call(t,"home",!0))}),!1),xr.call(t,l,"click",(function(){c.call(t,"home",!1)})),s.appendChild(l),s.appendChild(nr("div",{role:"menu"})),y.appendChild(s),t.elements.settings.buttons[n]=r,t.elements.settings.panels[n]=s})),v.appendChild(y),m.appendChild(v),h.appendChild(m),t.elements.settings.popup=v,t.elements.settings.menu=m}if("pip"===s&&vr.pip&&h.appendChild(n.call(t,"pip",d)),"airplay"===s&&vr.airplay&&h.appendChild(n.call(t,"airplay",d)),"download"===s){var w=er({},d,{element:"a",href:t.download,target:"_blank"});t.isHTML5&&(w.download="");var k=t.config.urls.download;!Un(k)&&t.isEmbed&&er(w,{icon:"logo-".concat(t.provider),label:t.provider}),h.appendChild(n.call(t,"download",w))}"fullscreen"===s&&h.appendChild(n.call(t,"fullscreen",d))})),this.isHTML5&&s.call(this,Mr.getQualityOptions.call(this)),l.call(this),h},inject:function(){var e=this;if(this.config.loadSprite){var t=Gr.getIconUrl.call(this);t.cors&&Xr(t.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());var i=null;this.elements.controls=null;var n,r={id:this.id,seektime:this.config.seekTime,title:this.config.title},a=!0;if(Hn(this.config.controls)&&(this.config.controls=this.config.controls.call(this,r)),this.config.controls||(this.config.controls=[]),Xn(this.config.controls)||Fn(this.config.controls)?i=this.config.controls:(i=Gr.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:Zr.getLabel.call(this)}),a=!1),a&&Fn(this.config.controls)&&(i=function(e){var t=e;return Object.entries(r).forEach((function(e){var i=Ui(e,2),n=i[0],r=i[1];t=zr(t,"{".concat(n,"}"),r)})),t}(i)),Fn(this.config.selectors.controls.container)&&(n=document.querySelector(this.config.selectors.controls.container)),Xn(n)||(n=this.elements.container),n[Xn(i)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",i),Xn(this.elements.controls)||Gr.findElements.call(this),!qn(this.elements.buttons)){var o=function(t){var i=e.config.classNames.controlPressed;Object.defineProperty(t,"pressed",{enumerable:!0,get:function(){return dr(t,i)},set:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];hr(t,i,e)}})};Object.values(this.elements.buttons).filter(Boolean).forEach((function(e){$n(e)||jn(e)?Array.from(e).filter(Boolean).forEach(o):o(e)}))}if(Qn.isEdge&&Jn(n),this.config.tooltips.controls){var s=this.config,l=s.classNames,c=s.selectors,h="".concat(c.controls.wrapper," ").concat(c.labels," .").concat(l.hidden),d=pr.call(this,h);Array.from(d).forEach((function(t){hr(t,e.config.classNames.hidden,!1),hr(t,e.config.classNames.tooltip,!0)}))}}};function Ur(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e;if(t){var n=document.createElement("a");n.href=i,i=n.href}try{return new URL(i)}catch(e){return null}}function qr(e){var t=new URLSearchParams;return Nn(e)&&Object.entries(e).forEach((function(e){var i=Ui(e,2),n=i[0],r=i[1];t.set(n,r)})),t}var Zr={setup:function(){if(this.supported.ui)if(!this.isVideo||this.isYouTube||this.isHTML5&&!vr.textTracks)$n(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Gr.setCaptionsMenu.call(this);else{if(Xn(this.elements.captions)||(this.elements.captions=nr("div",lr(this.config.selectors.captions)),function(e,t){Xn(e)&&Xn(t)&&t.parentNode.insertBefore(e,t.nextSibling)}(this.elements.captions,this.elements.wrapper)),Qn.isIE&&window.URL){var e=this.media.querySelectorAll("track");Array.from(e).forEach((function(e){var t=e.getAttribute("src"),i=Ur(t);null!==i&&i.hostname!==window.location.href.hostname&&["http:","https:"].includes(i.protocol)&&jr(t,"blob").then((function(t){e.setAttribute("src",window.URL.createObjectURL(t))})).catch((function(){ar(e)}))}))}var t=Ir((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((function(e){return e.split("-")[0]}))),i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();"auto"===i&&(i=Ui(t,1)[0]);var n=this.storage.get("captions");if(Yn(n)||(n=this.config.captions.active),Object.assign(this.captions,{toggled:!1,active:n,language:i,languages:t}),this.isHTML5){var r=this.config.captions.update?"addtrack removetrack":"removetrack";xr.call(this,this.media.textTracks,r,Zr.update.bind(this))}setTimeout(Zr.update.bind(this),0)}},update:function(){var e=this,t=Zr.getTracks.call(this,!0),i=this.captions,n=i.active,r=i.language,a=i.meta,o=i.currentTrackNode,s=Boolean(t.find((function(e){return e.language===r})));this.isHTML5&&this.isVideo&&t.filter((function(e){return!a.get(e)})).forEach((function(t){e.debug.log("Track added",t),a.set(t,{default:"showing"===t.mode}),"showing"===t.mode&&(t.mode="hidden"),xr.call(e,t,"cuechange",(function(){return Zr.updateCues.call(e)}))})),(s&&this.language!==r||!t.includes(o))&&(Zr.setLanguage.call(this,r),Zr.toggle.call(this,n&&s)),hr(this.elements.container,this.config.classNames.captions.enabled,!qn(t)),$n(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&Gr.setCaptionsMenu.call(this)},toggle:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.supported.ui){var n=this.captions.toggled,r=this.config.classNames.captions.active,a=zn(e)?!n:e;if(a!==n){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){var o=Zr.getTracks.call(this),s=Zr.findTrack.call(this,[this.captions.language].concat(qi(this.captions.languages)),!0);return this.captions.language=s.language,void Zr.set.call(this,o.indexOf(s))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),hr(this.elements.container,r,a),this.captions.toggled=a,Gr.updateSetting.call(this,"captions"),_r.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout((function(){a&&t.captions.toggled&&t.captions.currentTrackNode&&(t.captions.currentTrackNode.mode="hidden")}))}},set:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=Zr.getTracks.call(this);if(-1!==e)if(Rn(e))if(e in i){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;var n=i[e],r=n||{},a=r.language;this.captions.currentTrackNode=n,Gr.updateSetting.call(this,"captions"),t||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),_r.call(this,this.media,"languagechange")}Zr.toggle.call(this,!0,t),this.isHTML5&&this.isVideo&&Zr.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else Zr.toggle.call(this,!1,t)},setLanguage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Fn(e)){var i=e.toLowerCase();this.captions.language=i;var n=Zr.getTracks.call(this),r=Zr.findTrack.call(this,[i]);Zr.set.call(this,n.indexOf(r),t)}else this.debug.warn("Invalid language argument",e)},getTracks:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Array.from((this.media||{}).textTracks||[]).filter((function(i){return!e.isHTML5||t||e.captions.meta.has(i)})).filter((function(e){return["captions","subtitles"].includes(e.kind)}))},findTrack:function(e){var t,i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Zr.getTracks.call(this),a=function(e){return Number((i.captions.meta.get(e)||{}).default)},o=Array.from(r).sort((function(e,t){return a(t)-a(e)}));return e.every((function(e){return!(t=o.find((function(t){return t.language===e})))})),t||(n?o[0]:void 0)},getCurrentTrack:function(){return Zr.getTracks.call(this)[this.currentTrack]},getLabel:function(e){var t=e;return!Vn(t)&&vr.textTracks&&this.captions.toggled&&(t=Zr.getCurrentTrack.call(this)),Vn(t)?qn(t.label)?qn(t.language)?Hr("enabled",this.config):e.language.toUpperCase():t.label:Hr("disabled",this.config)},updateCues:function(e){if(this.supported.ui)if(Xn(this.elements.captions))if(zn(e)||Array.isArray(e)){var t=e;if(!t){var i=Zr.getCurrentTrack.call(this);t=Array.from((i||{}).activeCues||[]).map((function(e){return e.getCueAsHTML()})).map(Fr)}var n=t.map((function(e){return e.trim()})).join("\n");if(n!==this.elements.captions.innerHTML){or(this.elements.captions);var r=nr("span",lr(this.config.selectors.caption));r.innerHTML=n,this.elements.captions.appendChild(r),_r.call(this,this.media,"cuechange")}}else this.debug.warn("updateCues: Invalid input",e);else this.debug.warn("No captions element to render to")}},Jr={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.4/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"},auto:"AUTO"},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},Qr="picture-in-picture",Kr="inline",ea={html5:"html5",youtube:"youtube",vimeo:"vimeo"},ta="audio",ia="video";var na=function(){},ra=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Xi(this,e),this.enabled=window.console&&t,this.enabled&&this.log("Debugging enabled")}return Wi(e,[{key:"log",get:function(){return this.enabled?Function.prototype.bind.call(console.log,console):na}},{key:"warn",get:function(){return this.enabled?Function.prototype.bind.call(console.warn,console):na}},{key:"error",get:function(){return this.enabled?Function.prototype.bind.call(console.error,console):na}}]),e}(),aa=function(){function e(t){var i=this;Xi(this,e),en(this,"onChange",(function(){if(i.enabled){var e=i.player.elements.buttons.fullscreen;Xn(e)&&(e.pressed=i.active);var t=i.target===i.player.media?i.target:i.player.elements.container;_r.call(i.player,t,i.active?"enterfullscreen":"exitfullscreen",!0)}})),en(this,"toggleFallback",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e?i.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(i.scrollPosition.x,i.scrollPosition.y),document.body.style.overflow=e?"hidden":"",hr(i.target,i.player.config.classNames.fullscreen.fallback,e),Qn.isIos){var t=document.head.querySelector('meta[name="viewport"]'),n="viewport-fit=cover";t||(t=document.createElement("meta")).setAttribute("name","viewport");var r=Fn(t.content)&&t.content.includes(n);e?(i.cleanupViewport=!r,r||(t.content+=",".concat(n))):i.cleanupViewport&&(t.content=t.content.split(",").filter((function(e){return e.trim()!==n})).join(","))}i.onChange()})),en(this,"trapFocus",(function(e){if(!Qn.isIos&&i.active&&"Tab"===e.key&&9===e.keyCode){var t=document.activeElement,n=pr.call(i.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),r=Ui(n,1)[0],a=n[n.length-1];t!==a||e.shiftKey?t===r&&e.shiftKey&&(a.focus(),e.preventDefault()):(r.focus(),e.preventDefault())}})),en(this,"update",(function(){var t;i.enabled?(t=i.forceFallback?"Fallback (forced)":e.native?"Native":"Fallback",i.player.debug.log("".concat(t," fullscreen enabled"))):i.player.debug.log("Fullscreen not supported and fallback disabled");hr(i.player.elements.container,i.player.config.classNames.fullscreen.enabled,i.enabled)})),en(this,"enter",(function(){i.enabled&&(Qn.isIos&&i.player.config.fullscreen.iosNative?i.player.isVimeo?i.player.embed.requestFullscreen():i.target.webkitEnterFullscreen():!e.native||i.forceFallback?i.toggleFallback(!0):i.prefix?qn(i.prefix)||i.target["".concat(i.prefix,"Request").concat(i.property)]():i.target.requestFullscreen({navigationUI:"hide"}))})),en(this,"exit",(function(){if(i.enabled)if(Qn.isIos&&i.player.config.fullscreen.iosNative)i.target.webkitExitFullscreen(),Cr(i.player.play());else if(!e.native||i.forceFallback)i.toggleFallback(!1);else if(i.prefix){if(!qn(i.prefix)){var t="moz"===i.prefix?"Cancel":"Exit";document["".concat(i.prefix).concat(t).concat(i.property)]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)})),en(this,"toggle",(function(){i.active?i.exit():i.enter()})),this.player=t,this.prefix=e.prefix,this.property=e.property,this.scrollPosition={x:0,y:0},this.forceFallback="force"===t.config.fullscreen.fallback,this.player.elements.fullscreen=t.config.fullscreen.container&&function(e,t){return(Element.prototype.closest||function(){var e=this;do{if(ur.matches(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}).call(e,t)}(this.player.elements.container,t.config.fullscreen.container),xr.call(this.player,document,"ms"===this.prefix?"MSFullscreenChange":"".concat(this.prefix,"fullscreenchange"),(function(){i.onChange()})),xr.call(this.player,this.player.elements.container,"dblclick",(function(e){Xn(i.player.elements.controls)&&i.player.elements.controls.contains(e.target)||i.player.listeners.proxy(e,i.toggle,"fullscreen")})),xr.call(this,this.player.elements.container,"keydown",(function(e){return i.trapFocus(e)})),this.update()}return Wi(e,[{key:"usingNative",get:function(){return e.native&&!this.forceFallback}},{key:"enabled",get:function(){return(e.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}},{key:"active",get:function(){if(!this.enabled)return!1;if(!e.native||this.forceFallback)return dr(this.target,this.player.config.classNames.fullscreen.fallback);var t=this.prefix?document["".concat(this.prefix).concat(this.property,"Element")]:document.fullscreenElement;return t&&t.shadowRoot?t===this.target.getRootNode().host:t===this.target}},{key:"target",get:function(){return Qn.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}],[{key:"native",get:function(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}},{key:"prefix",get:function(){if(Hn(document.exitFullscreen))return"";var e="";return["webkit","moz","ms"].some((function(t){return!(!Hn(document["".concat(t,"ExitFullscreen")])&&!Hn(document["".concat(t,"CancelFullScreen")])||(e=t,0))})),e}},{key:"property",get:function(){return"moz"===this.prefix?"FullScreen":"Fullscreen"}}]),e}();function oa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(i,n){var r=new Image,a=function(){delete r.onload,delete r.onerror,(r.naturalWidth>=t?i:n)(r)};Object.assign(r,{onload:a,onerror:a,src:e})}))}var sa={addStyleHook:function(){hr(this.elements.container,this.config.selectors.container.replace(".",""),!0),hr(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build:function(){var e=this;if(this.listeners.media(),!this.supported.ui)return this.debug.warn("Basic support only for ".concat(this.provider," ").concat(this.type)),void sa.toggleNativeControls.call(this,!0);Xn(this.elements.controls)||(Gr.inject.call(this),this.listeners.controls()),sa.toggleNativeControls.call(this),this.isHTML5&&Zr.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,Gr.updateVolume.call(this),Gr.timeUpdate.call(this),sa.checkPlaying.call(this),hr(this.elements.container,this.config.classNames.pip.supported,vr.pip&&this.isHTML5&&this.isVideo),hr(this.elements.container,this.config.classNames.airplay.supported,vr.airplay&&this.isHTML5),hr(this.elements.container,this.config.classNames.isIos,Qn.isIos),hr(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout((function(){_r.call(e,e.media,"ready")}),0),sa.setTitle.call(this),this.poster&&sa.setPoster.call(this,this.poster,!1).catch((function(){})),this.config.duration&&Gr.durationUpdate.call(this)},setTitle:function(){var e=Hr("play",this.config);if(Fn(this.config.title)&&!qn(this.config.title)&&(e+=", ".concat(this.config.title)),Array.from(this.elements.buttons.play||[]).forEach((function(t){t.setAttribute("aria-label",e)})),this.isEmbed){var t=fr.call(this,"iframe");if(!Xn(t))return;var i=qn(this.config.title)?"video":this.config.title,n=Hr("frameTitle",this.config);t.setAttribute("title",n.replace("{title}",i))}},togglePoster:function(e){hr(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Sr.call(this).then((function(){return oa(e)})).catch((function(i){throw e===t.poster&&sa.togglePoster.call(t,!1),i})).then((function(){if(e!==t.poster)throw new Error("setPoster cancelled by later call to setPoster")})).then((function(){return Object.assign(t.elements.poster.style,{backgroundImage:"url('".concat(e,"')"),backgroundSize:""}),sa.togglePoster.call(t,!0),e})))},checkPlaying:function(e){var t=this;hr(this.elements.container,this.config.classNames.playing,this.playing),hr(this.elements.container,this.config.classNames.paused,this.paused),hr(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach((function(e){Object.assign(e,{pressed:t.playing}),e.setAttribute("aria-label",Hr(t.playing?"pause":"play",t.config))})),Bn(e)&&"timeupdate"===e.type||sa.toggleControls.call(this)},checkLoading:function(e){var t=this;this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout((function(){hr(t.elements.container,t.config.classNames.loading,t.loading),sa.toggleControls.call(t)}),this.loading?250:0)},toggleControls:function(e){var t=this.elements.controls;if(t&&this.config.hideControls){var i=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||t.pressed||t.hover||i))}},migrateStyles:function(){var e=this;Object.values(Hi({},this.media.style)).filter((function(e){return!qn(e)&&Fn(e)&&e.startsWith("--plyr")})).forEach((function(t){e.elements.container.style.setProperty(t,e.media.style.getPropertyValue(t)),e.media.style.removeProperty(t)})),qn(this.media.style)&&this.media.removeAttribute("style")}},la=function(){function e(t){var i=this;Xi(this,e),en(this,"firstTouch",(function(){var e=i.player,t=e.elements;e.touch=!0,hr(t.container,e.config.classNames.isTouch,!0)})),en(this,"setTabFocus",(function(e){var t=i.player,n=t.elements;if(clearTimeout(i.focusTimer),"keydown"!==e.type||9===e.which){"keydown"===e.type&&(i.lastKeyDown=e.timeStamp);var r=e.timeStamp-i.lastKeyDown<=20;("focus"!==e.type||r)&&(function(){var e=t.config.classNames.tabFocus;hr(pr.call(t,".".concat(e)),e,!1)}(),"focusout"!==e.type&&(i.focusTimer=setTimeout((function(){var e=document.activeElement;n.container.contains(e)&&hr(document.activeElement,t.config.classNames.tabFocus,!0)}),10)))}})),en(this,"global",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=i.player;t.config.keyboard.global&&br.call(t,window,"keydown keyup",i.handleKey,e,!1),br.call(t,document.body,"click",i.toggleMenu,e),kr.call(t,document.body,"touchstart",i.firstTouch),br.call(t,document.body,"keydown focus blur focusout",i.setTabFocus,e,!1,!0)})),en(this,"container",(function(){var e=i.player,t=e.config,n=e.elements,r=e.timers;!t.keyboard.global&&t.keyboard.focused&&xr.call(e,n.container,"keydown keyup",i.handleKey,!1),xr.call(e,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",(function(t){var i=n.controls;i&&"enterfullscreen"===t.type&&(i.pressed=!1,i.hover=!1);var a=0;["touchstart","touchmove","mousemove"].includes(t.type)&&(sa.toggleControls.call(e,!0),a=e.touch?3e3:2e3),clearTimeout(r.controls),r.controls=setTimeout((function(){return sa.toggleControls.call(e,!1)}),a)}));var a=function(t){if(!t)return Er.call(e);var i=n.container.getBoundingClientRect(),r=i.width,a=i.height;return Er.call(e,"".concat(r,":").concat(a))},o=function(){clearTimeout(r.resized),r.resized=setTimeout(a,50)};xr.call(e,n.container,"enterfullscreen exitfullscreen",(function(t){var i=e.fullscreen,r=i.target,s=i.usingNative;if(r===n.container&&(e.isEmbed||!qn(e.config.ratio))){var l="enterfullscreen"===t.type;(function(t,i,n){if(e.isVimeo&&!e.config.vimeo.premium){var r=e.elements.wrapper.firstChild,a=Ui(t,2)[1],o=Ui(Lr.call(e),2),s=o[0],l=o[1];r.style.maxWidth=n?a/l*s+"px":null,r.style.margin=n?"0 auto":null}})(a(l).ratio,0,l),l&&setTimeout((function(){return Jn(n.container)}),100),s||(l?xr.call(e,window,"resize",o):wr.call(e,window,"resize",o))}}))})),en(this,"media",(function(){var e=i.player,t=e.elements;if(xr.call(e,e.media,"timeupdate seeking seeked",(function(t){return Gr.timeUpdate.call(e,t)})),xr.call(e,e.media,"durationchange loadeddata loadedmetadata",(function(t){return Gr.durationUpdate.call(e,t)})),xr.call(e,e.media,"ended",(function(){e.isHTML5&&e.isVideo&&e.config.resetOnEnd&&(e.restart(),e.pause())})),xr.call(e,e.media,"progress playing seeking seeked",(function(t){return Gr.updateProgress.call(e,t)})),xr.call(e,e.media,"volumechange",(function(t){return Gr.updateVolume.call(e,t)})),xr.call(e,e.media,"playing play pause ended emptied timeupdate",(function(t){return sa.checkPlaying.call(e,t)})),xr.call(e,e.media,"waiting canplay seeked playing",(function(t){return sa.checkLoading.call(e,t)})),e.supported.ui&&e.config.clickToPlay&&!e.isAudio){var n=fr.call(e,".".concat(e.config.classNames.video));if(!Xn(n))return;xr.call(e,t.container,"click",(function(r){([t.container,n].includes(r.target)||n.contains(r.target))&&(e.touch&&e.config.hideControls||(e.ended?(i.proxy(r,e.restart,"restart"),i.proxy(r,(function(){Cr(e.play())}),"play")):i.proxy(r,(function(){Cr(e.togglePlay())}),"play")))}))}e.supported.ui&&e.config.disableContextMenu&&xr.call(e,t.wrapper,"contextmenu",(function(e){e.preventDefault()}),!1),xr.call(e,e.media,"volumechange",(function(){e.storage.set({volume:e.volume,muted:e.muted})})),xr.call(e,e.media,"ratechange",(function(){Gr.updateSetting.call(e,"speed"),e.storage.set({speed:e.speed})})),xr.call(e,e.media,"qualitychange",(function(t){Gr.updateSetting.call(e,"quality",null,t.detail.quality)})),xr.call(e,e.media,"ready qualitychange",(function(){Gr.setDownloadUrl.call(e)}));var r=e.config.events.concat(["keyup","keydown"]).join(" ");xr.call(e,e.media,r,(function(i){var n=i.detail,r=void 0===n?{}:n;"error"===i.type&&(r=e.media.error),_r.call(e,t.container,i.type,!0,r)}))})),en(this,"proxy",(function(e,t,n){var r=i.player,a=r.config.listeners[n],o=!0;Hn(a)&&(o=a.call(r,e)),!1!==o&&Hn(t)&&t.call(r,e)})),en(this,"bind",(function(e,t,n,r){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=i.player,s=o.config.listeners[r],l=Hn(s);xr.call(o,e,t,(function(e){return i.proxy(e,n,r)}),a&&!l)})),en(this,"controls",(function(){var e=i.player,t=e.elements,n=Qn.isIE?"change":"input";if(t.buttons.play&&Array.from(t.buttons.play).forEach((function(t){i.bind(t,"click",(function(){Cr(e.togglePlay())}),"play")})),i.bind(t.buttons.restart,"click",e.restart,"restart"),i.bind(t.buttons.rewind,"click",(function(){e.lastSeekTime=Date.now(),e.rewind()}),"rewind"),i.bind(t.buttons.fastForward,"click",(function(){e.lastSeekTime=Date.now(),e.forward()}),"fastForward"),i.bind(t.buttons.mute,"click",(function(){e.muted=!e.muted}),"mute"),i.bind(t.buttons.captions,"click",(function(){return e.toggleCaptions()})),i.bind(t.buttons.download,"click",(function(){_r.call(e,e.media,"download")}),"download"),i.bind(t.buttons.fullscreen,"click",(function(){e.fullscreen.toggle()}),"fullscreen"),i.bind(t.buttons.pip,"click",(function(){e.pip="toggle"}),"pip"),i.bind(t.buttons.airplay,"click",e.airplay,"airplay"),i.bind(t.buttons.settings,"click",(function(t){t.stopPropagation(),t.preventDefault(),Gr.toggleMenu.call(e,t)}),null,!1),i.bind(t.buttons.settings,"keyup",(function(t){var i=t.which;[13,32].includes(i)&&(13!==i?(t.preventDefault(),t.stopPropagation(),Gr.toggleMenu.call(e,t)):Gr.focusFirstMenuItem.call(e,null,!0))}),null,!1),i.bind(t.settings.menu,"keydown",(function(t){27===t.which&&Gr.toggleMenu.call(e,t)})),i.bind(t.inputs.seek,"mousedown mousemove",(function(e){var i=t.progress.getBoundingClientRect(),n=100/i.width*(e.pageX-i.left);e.currentTarget.setAttribute("seek-value",n)})),i.bind(t.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",(function(t){var i=t.currentTarget,n=t.keyCode?t.keyCode:t.which,r="play-on-seeked";if(!Wn(t)||39===n||37===n){e.lastSeekTime=Date.now();var a=i.hasAttribute(r),o=["mouseup","touchend","keyup"].includes(t.type);a&&o?(i.removeAttribute(r),Cr(e.play())):!o&&e.playing&&(i.setAttribute(r,""),e.pause())}})),Qn.isIos){var r=pr.call(e,'input[type="range"]');Array.from(r).forEach((function(e){return i.bind(e,n,(function(e){return Jn(e.target)}))}))}i.bind(t.inputs.seek,n,(function(t){var i=t.currentTarget,n=i.getAttribute("seek-value");qn(n)&&(n=i.value),i.removeAttribute("seek-value"),e.currentTime=n/i.max*e.duration}),"seek"),i.bind(t.progress,"mouseenter mouseleave mousemove",(function(t){return Gr.updateSeekTooltip.call(e,t)})),i.bind(t.progress,"mousemove touchmove",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.startMove(t)})),i.bind(t.progress,"mouseleave touchend click",(function(){var t=e.previewThumbnails;t&&t.loaded&&t.endMove(!1,!0)})),i.bind(t.progress,"mousedown touchstart",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.startScrubbing(t)})),i.bind(t.progress,"mouseup touchend",(function(t){var i=e.previewThumbnails;i&&i.loaded&&i.endScrubbing(t)})),Qn.isWebkit&&Array.from(pr.call(e,'input[type="range"]')).forEach((function(t){i.bind(t,"input",(function(t){return Gr.updateRangeFill.call(e,t.target)}))})),e.config.toggleInvert&&!Xn(t.display.duration)&&i.bind(t.display.currentTime,"click",(function(){0!==e.currentTime&&(e.config.invertTime=!e.config.invertTime,Gr.timeUpdate.call(e))})),i.bind(t.inputs.volume,n,(function(t){e.volume=t.target.value}),"volume"),i.bind(t.controls,"mouseenter mouseleave",(function(i){t.controls.hover=!e.touch&&"mouseenter"===i.type})),t.fullscreen&&Array.from(t.fullscreen.children).filter((function(e){return!e.contains(t.container)})).forEach((function(n){i.bind(n,"mouseenter mouseleave",(function(i){t.controls.hover=!e.touch&&"mouseenter"===i.type}))})),i.bind(t.controls,"mousedown mouseup touchstart touchend touchcancel",(function(e){t.controls.pressed=["mousedown","touchstart"].includes(e.type)})),i.bind(t.controls,"focusin",(function(){var n=e.config,r=e.timers;hr(t.controls,n.classNames.noTransition,!0),sa.toggleControls.call(e,!0),setTimeout((function(){hr(t.controls,n.classNames.noTransition,!1)}),0);var a=i.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout((function(){return sa.toggleControls.call(e,!1)}),a)})),i.bind(t.inputs.volume,"wheel",(function(t){var i=t.webkitDirectionInvertedFromDevice,n=Ui([t.deltaX,-t.deltaY].map((function(e){return i?-e:e})),2),r=n[0],a=n[1],o=Math.sign(Math.abs(r)>Math.abs(a)?r:a);e.increaseVolume(o/50);var s=e.media.volume;(1===o&&s<1||-1===o&&s>0)&&t.preventDefault()}),"volume",!1)})),this.player=t,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}return Wi(e,[{key:"handleKey",value:function(e){var t=this.player,i=t.elements,n=e.keyCode?e.keyCode:e.which,r="keydown"===e.type,a=r&&n===this.lastKey;if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&Rn(n))if(r){var o=document.activeElement;if(Xn(o)){var s=t.config.selectors.editable;if(o!==i.inputs.seek&&ur(o,s))return;if(32===e.which&&ur(o,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(n)&&(e.preventDefault(),e.stopPropagation()),n){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:a||(t.currentTime=t.duration/10*(n-48));break;case 32:case 75:a||Cr(t.togglePlay());break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:a||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:a||t.toggleCaptions();break;case 76:t.loop=!t.loop}27===n&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=n}else this.lastKey=null}},{key:"toggleMenu",value:function(e){Gr.toggleMenu.call(this.player,e)}}]),e}();var ca=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function(){},t={},i={},n={};function r(e,t){if(e){var r=n[e];if(i[e]=t,r)for(;r.length;)r[0](e,t),r.splice(0,1)}}function a(t,i){t.call&&(t={success:t}),i.length?(t.error||e)(i):(t.success||e)(t)}function o(t,i,n,r){var a,s,l=document,c=n.async,h=(n.numRetries||0)+1,d=n.before||e,u=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img)!/,"");r=r||0,/(^css!|\.css$)/.test(u)?((s=l.createElement("link")).rel="stylesheet",s.href=p,(a="hideFocus"in s)&&s.relList&&(a=0,s.rel="preload",s.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(u)?(s=l.createElement("img")).src=p:((s=l.createElement("script")).src=t,s.async=void 0===c||c),s.onload=s.onerror=s.onbeforeload=function(e){var l=e.type[0];if(a)try{s.sheet.cssText.length||(l="e")}catch(e){18!=e.code&&(l="e")}if("e"==l){if((r+=1)<h)return o(t,i,n,r)}else if("preload"==s.rel&&"style"==s.as)return s.rel="stylesheet";i(t,l,e.defaultPrevented)},!1!==d(t,s)&&l.head.appendChild(s)}function s(e,t,i){var n,r,a=(e=e.push?e:[e]).length,s=a,l=[];for(n=function(e,i,n){if("e"==i&&l.push(e),"b"==i){if(!n)return;l.push(e)}--a||t(l)},r=0;r<s;r++)o(e[r],n,i)}function l(e,i,n){var o,l;if(i&&i.trim&&(o=i),l=(o?n:i)||{},o){if(o in t)throw"LoadJS";t[o]=!0}function c(t,i){s(e,(function(e){a(l,e),t&&a({success:t,error:i},e),r(o,e)}),l)}if(l.returnPromise)return new Promise(c);c()}return l.ready=function(e,t){return function(e,t){e=e.push?e:[e];var r,a,o,s=[],l=e.length,c=l;for(r=function(e,i){i.length&&s.push(e),--c||t(s)};l--;)a=e[l],(o=i[a])?r(a,o):(n[a]=n[a]||[]).push(r)}(e,(function(e){a(t,e)})),l},l.done=function(e){r(e,[])},l.reset=function(){t={},i={},n={}},l.isDefined=function(e){return e in t},l}()}));function ha(e){return new Promise((function(t,i){ca(e,{success:t,error:i})}))}function da(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,_r.call(this,this.media,e?"play":"pause"))}var ua={setup:function(){var e=this;hr(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Er.call(e),Nn(window.Vimeo)?ua.ready.call(e):ha(e.config.urls.vimeo.sdk).then((function(){ua.ready.call(e)})).catch((function(t){e.debug.warn("Vimeo SDK (player.js) failed to load",t)}))},ready:function(){var e=this,t=this,i=t.config.vimeo,n=i.premium,r=i.referrerPolicy,a=Gi(i,Ki);n&&Object.assign(a,{controls:!1,sidedock:!1});var o=qr(Hi({loop:t.config.loop.active,autoplay:t.autoplay,muted:t.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},a)),s=t.media.getAttribute("src");qn(s)&&(s=t.media.getAttribute(t.config.attributes.embed.id));var l=function(e){return qn(e)?null:Rn(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}(s),c=nr("iframe"),h=Dr(t.config.urls.vimeo.iframe,l,o);if(c.setAttribute("src",h),c.setAttribute("allowfullscreen",""),c.setAttribute("allow",["autoplay","fullscreen","picture-in-picture"].join("; ")),qn(r)||c.setAttribute("referrerPolicy",r),n||!i.customControls)c.setAttribute("data-poster",t.poster),t.media=sr(c,t.media);else{var d=nr("div",{class:t.config.classNames.embedContainer,"data-poster":t.poster});d.appendChild(c),t.media=sr(d,t.media)}i.customControls||jr(Dr(t.config.urls.vimeo.api,h)).then((function(e){!qn(e)&&e.thumbnail_url&&sa.setPoster.call(t,e.thumbnail_url).catch((function(){}))})),t.embed=new window.Vimeo.Player(c,{autopause:t.config.autopause,muted:t.muted}),t.media.paused=!0,t.media.currentTime=0,t.supported.ui&&t.embed.disableTextTrack(),t.media.play=function(){return da.call(t,!0),t.embed.play()},t.media.pause=function(){return da.call(t,!1),t.embed.pause()},t.media.stop=function(){t.pause(),t.currentTime=0};var u=t.media.currentTime;Object.defineProperty(t.media,"currentTime",{get:function(){return u},set:function(e){var i=t.embed,n=t.media,r=t.paused,a=t.volume,o=r&&!i.hasPlayed;n.seeking=!0,_r.call(t,n,"seeking"),Promise.resolve(o&&i.setVolume(0)).then((function(){return i.setCurrentTime(e)})).then((function(){return o&&i.pause()})).then((function(){return o&&i.setVolume(a)})).catch((function(){}))}});var p=t.config.speed.selected;Object.defineProperty(t.media,"playbackRate",{get:function(){return p},set:function(e){t.embed.setPlaybackRate(e).then((function(){p=e,_r.call(t,t.media,"ratechange")})).catch((function(){t.options.speed=[1]}))}});var f=t.config.volume;Object.defineProperty(t.media,"volume",{get:function(){return f},set:function(e){t.embed.setVolume(e).then((function(){f=e,_r.call(t,t.media,"volumechange")}))}});var g=t.config.muted;Object.defineProperty(t.media,"muted",{get:function(){return g},set:function(e){var i=!!Yn(e)&&e;t.embed.setVolume(i?0:t.config.volume).then((function(){g=i,_r.call(t,t.media,"volumechange")}))}});var m,v=t.config.loop;Object.defineProperty(t.media,"loop",{get:function(){return v},set:function(e){var i=Yn(e)?e:t.config.loop.active;t.embed.setLoop(i).then((function(){v=i}))}}),t.embed.getVideoUrl().then((function(e){m=e,Gr.setDownloadUrl.call(t)})).catch((function(t){e.debug.warn(t)})),Object.defineProperty(t.media,"currentSrc",{get:function(){return m}}),Object.defineProperty(t.media,"ended",{get:function(){return t.currentTime===t.duration}}),Promise.all([t.embed.getVideoWidth(),t.embed.getVideoHeight()]).then((function(i){var n=Ui(i,2),r=n[0],a=n[1];t.embed.ratio=[r,a],Er.call(e)})),t.embed.setAutopause(t.config.autopause).then((function(e){t.config.autopause=e})),t.embed.getVideoTitle().then((function(i){t.config.title=i,sa.setTitle.call(e)})),t.embed.getCurrentTime().then((function(e){u=e,_r.call(t,t.media,"timeupdate")})),t.embed.getDuration().then((function(e){t.media.duration=e,_r.call(t,t.media,"durationchange")})),t.embed.getTextTracks().then((function(e){t.media.textTracks=e,Zr.setup.call(t)})),t.embed.on("cuechange",(function(e){var i=e.cues,n=(void 0===i?[]:i).map((function(e){return function(e){var t=document.createDocumentFragment(),i=document.createElement("div");return t.appendChild(i),i.innerHTML=e,t.firstChild.innerText}(e.text)}));Zr.updateCues.call(t,n)})),t.embed.on("loaded",(function(){t.embed.getPaused().then((function(e){da.call(t,!e),e||_r.call(t,t.media,"playing")})),Xn(t.embed.element)&&t.supported.ui&&t.embed.element.setAttribute("tabindex",-1)})),t.embed.on("bufferstart",(function(){_r.call(t,t.media,"waiting")})),t.embed.on("bufferend",(function(){_r.call(t,t.media,"playing")})),t.embed.on("play",(function(){da.call(t,!0),_r.call(t,t.media,"playing")})),t.embed.on("pause",(function(){da.call(t,!1)})),t.embed.on("timeupdate",(function(e){t.media.seeking=!1,u=e.seconds,_r.call(t,t.media,"timeupdate")})),t.embed.on("progress",(function(e){t.media.buffered=e.percent,_r.call(t,t.media,"progress"),1===parseInt(e.percent,10)&&_r.call(t,t.media,"canplaythrough"),t.embed.getDuration().then((function(e){e!==t.media.duration&&(t.media.duration=e,_r.call(t,t.media,"durationchange"))}))})),t.embed.on("seeked",(function(){t.media.seeking=!1,_r.call(t,t.media,"seeked")})),t.embed.on("ended",(function(){t.media.paused=!0,_r.call(t,t.media,"ended")})),t.embed.on("error",(function(e){t.media.error=e,_r.call(t,t.media,"error")})),i.customControls&&setTimeout((function(){return sa.build.call(t)}),0)}};function pa(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,_r.call(this,this.media,e?"play":"pause"))}function fa(e){return e.noCookie?"https://www.youtube-nocookie.com":"http:"===window.location.protocol?"http://www.youtube.com":void 0}var ga={setup:function(){var e=this;if(hr(this.elements.wrapper,this.config.classNames.embed,!0),Nn(window.YT)&&Hn(window.YT.Player))ga.ready.call(this);else{var t=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){Hn(t)&&t(),ga.ready.call(e)},ha(this.config.urls.youtube.sdk).catch((function(t){e.debug.warn("YouTube API failed to load",t)}))}},getTitle:function(e){var t=this;jr(Dr(this.config.urls.youtube.api,e)).then((function(e){if(Nn(e)){var i=e.title,n=e.height,r=e.width;t.config.title=i,sa.setTitle.call(t),t.embed.ratio=[r,n]}Er.call(t)})).catch((function(){Er.call(t)}))},ready:function(){var e=this,t=e.config.youtube,i=e.media&&e.media.getAttribute("id");if(qn(i)||!i.startsWith("youtube-")){var n=e.media.getAttribute("src");qn(n)&&(n=e.media.getAttribute(this.config.attributes.embed.id));var r=function(e){return qn(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}(n),a=nr("div",{id:Or(e.provider),"data-poster":t.customControls?e.poster:void 0});if(e.media=sr(a,e.media),t.customControls){var o=function(e){return"https://i.ytimg.com/vi/".concat(r,"/").concat(e,"default.jpg")};oa(o("maxres"),121).catch((function(){return oa(o("sd"),121)})).catch((function(){return oa(o("hq"))})).then((function(t){return sa.setPoster.call(e,t.src)})).then((function(t){t.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")})).catch((function(){}))}e.embed=new window.YT.Player(e.media,{videoId:r,host:fa(t),playerVars:er({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&t.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},t),events:{onError:function(t){if(!e.media.error){var i=t.data,n={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[i]||"An unknown error occured";e.media.error={code:i,message:n},_r.call(e,e.media,"error")}},onPlaybackRateChange:function(t){var i=t.target;e.media.playbackRate=i.getPlaybackRate(),_r.call(e,e.media,"ratechange")},onReady:function(i){if(!Hn(e.media.play)){var n=i.target;ga.getTitle.call(e,r),e.media.play=function(){pa.call(e,!0),n.playVideo()},e.media.pause=function(){pa.call(e,!1),n.pauseVideo()},e.media.stop=function(){n.stopVideo()},e.media.duration=n.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:function(){return Number(n.getCurrentTime())},set:function(t){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,_r.call(e,e.media,"seeking"),n.seekTo(t)}}),Object.defineProperty(e.media,"playbackRate",{get:function(){return n.getPlaybackRate()},set:function(e){n.setPlaybackRate(e)}});var a=e.config.volume;Object.defineProperty(e.media,"volume",{get:function(){return a},set:function(t){a=t,n.setVolume(100*a),_r.call(e,e.media,"volumechange")}});var o=e.config.muted;Object.defineProperty(e.media,"muted",{get:function(){return o},set:function(t){var i=Yn(t)?t:o;o=i,n[i?"mute":"unMute"](),n.setVolume(100*a),_r.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:function(){return n.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get:function(){return e.currentTime===e.duration}});var s=n.getAvailablePlaybackRates();e.options.speed=s.filter((function(t){return e.config.speed.options.includes(t)})),e.supported.ui&&t.customControls&&e.media.setAttribute("tabindex",-1),_r.call(e,e.media,"timeupdate"),_r.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval((function(){e.media.buffered=n.getVideoLoadedFraction(),(null===e.media.lastBuffered||e.media.lastBuffered<e.media.buffered)&&_r.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,1===e.media.buffered&&(clearInterval(e.timers.buffering),_r.call(e,e.media,"canplaythrough"))}),200),t.customControls&&setTimeout((function(){return sa.build.call(e)}),50)}},onStateChange:function(i){var n=i.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(i.data)&&(e.media.seeking=!1,_r.call(e,e.media,"seeked")),i.data){case-1:_r.call(e,e.media,"timeupdate"),e.media.buffered=n.getVideoLoadedFraction(),_r.call(e,e.media,"progress");break;case 0:pa.call(e,!1),e.media.loop?(n.stopVideo(),n.playVideo()):_r.call(e,e.media,"ended");break;case 1:t.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(pa.call(e,!0),_r.call(e,e.media,"playing"),e.timers.playing=setInterval((function(){_r.call(e,e.media,"timeupdate")}),50),e.media.duration!==n.getDuration()&&(e.media.duration=n.getDuration(),_r.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),pa.call(e,!1);break;case 3:_r.call(e,e.media,"waiting")}_r.call(e,e.elements.container,"statechange",!1,{code:i.data})}}})}}},ma={setup:function(){this.media?(hr(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),hr(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&hr(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=nr("div",{class:this.config.classNames.video}),tr(this.media,this.elements.wrapper),this.elements.poster=nr("div",{class:this.config.classNames.poster,hidden:""}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Mr.setup.call(this):this.isYouTube?ga.setup.call(this):this.isVimeo&&ua.setup.call(this)):this.debug.warn("No media element found!")}},va=function(){function e(t){var i=this;Xi(this,e),en(this,"load",(function(){i.enabled&&(Nn(window.google)&&Nn(window.google.ima)?i.ready():ha(i.player.config.urls.googleIMA.sdk).then((function(){i.ready()})).catch((function(){i.trigger("error",new Error("Google IMA SDK failed to load"))})))})),en(this,"ready",(function(){var e;i.enabled||((e=i).manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()),i.startSafetyTimer(12e3,"ready()"),i.managerPromise.then((function(){i.clearSafetyTimer("onAdsManagerLoaded()")})),i.listeners(),i.setupIMA()})),en(this,"setupIMA",(function(){i.elements.container=nr("div",{class:i.player.config.classNames.ads}),i.player.elements.container.appendChild(i.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(i.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(i.player.config.playsinline),i.elements.displayContainer=new google.ima.AdDisplayContainer(i.elements.container,i.player.media),i.loader=new google.ima.AdsLoader(i.elements.displayContainer),i.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(e){return i.onAdsManagerLoaded(e)}),!1),i.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return i.onAdError(e)}),!1),i.requestAds()})),en(this,"requestAds",(function(){var e=i.player.elements.container;try{var t=new google.ima.AdsRequest;t.adTagUrl=i.tagUrl,t.linearAdSlotWidth=e.offsetWidth,t.linearAdSlotHeight=e.offsetHeight,t.nonLinearAdSlotWidth=e.offsetWidth,t.nonLinearAdSlotHeight=e.offsetHeight,t.forceNonLinearFullSlot=!1,t.setAdWillPlayMuted(!i.player.muted),i.loader.requestAds(t)}catch(e){i.onAdError(e)}})),en(this,"pollCountdown",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return clearInterval(i.countdownTimer),void i.elements.container.removeAttribute("data-badge-text");i.countdownTimer=setInterval((function(){var e=Vr(Math.max(i.manager.getRemainingTime(),0)),t="".concat(Hr("advertisement",i.player.config)," - ").concat(e);i.elements.container.setAttribute("data-badge-text",t)}),100)})),en(this,"onAdsManagerLoaded",(function(e){if(i.enabled){var t=new google.ima.AdsRenderingSettings;t.restoreCustomPlaybackStateOnAdBreakComplete=!0,t.enablePreloading=!0,i.manager=e.getAdsManager(i.player,t),i.cuePoints=i.manager.getCuePoints(),i.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){return i.onAdError(e)})),Object.keys(google.ima.AdEvent.Type).forEach((function(e){i.manager.addEventListener(google.ima.AdEvent.Type[e],(function(e){return i.onAdEvent(e)}))})),i.trigger("loaded")}})),en(this,"addCuePoints",(function(){qn(i.cuePoints)||i.cuePoints.forEach((function(e){if(0!==e&&-1!==e&&e<i.player.duration){var t=i.player.elements.progress;if(Xn(t)){var n=100/i.player.duration*e,r=nr("span",{class:i.player.config.classNames.cues});r.style.left="".concat(n.toString(),"%"),t.appendChild(r)}}}))})),en(this,"onAdEvent",(function(e){var t=i.player.elements.container,n=e.getAd(),r=e.getAdData();switch(function(e){_r.call(i.player,i.player.media,"ads".concat(e.replace(/_/g,"").toLowerCase()))}(e.type),e.type){case google.ima.AdEvent.Type.LOADED:i.trigger("loaded"),i.pollCountdown(!0),n.isLinear()||(n.width=t.offsetWidth,n.height=t.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:i.manager.setVolume(i.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:i.player.ended?i.loadAds():i.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:i.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:i.pollCountdown(),i.resumeContent();break;case google.ima.AdEvent.Type.LOG:r.adError&&i.player.debug.warn("Non-fatal ad error: ".concat(r.adError.getMessage()))}})),en(this,"onAdError",(function(e){i.cancel(),i.player.debug.warn("Ads error",e)})),en(this,"listeners",(function(){var e,t=i.player.elements.container;i.player.on("canplay",(function(){i.addCuePoints()})),i.player.on("ended",(function(){i.loader.contentComplete()})),i.player.on("timeupdate",(function(){e=i.player.currentTime})),i.player.on("seeked",(function(){var t=i.player.currentTime;qn(i.cuePoints)||i.cuePoints.forEach((function(n,r){e<n&&n<t&&(i.manager.discardAdBreak(),i.cuePoints.splice(r,1))}))})),window.addEventListener("resize",(function(){i.manager&&i.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)}))})),en(this,"play",(function(){var e=i.player.elements.container;i.managerPromise||i.resumeContent(),i.managerPromise.then((function(){i.manager.setVolume(i.player.volume),i.elements.displayContainer.initialize();try{i.initialized||(i.manager.init(e.offsetWidth,e.offsetHeight,google.ima.ViewMode.NORMAL),i.manager.start()),i.initialized=!0}catch(e){i.onAdError(e)}})).catch((function(){}))})),en(this,"resumeContent",(function(){i.elements.container.style.zIndex="",i.playing=!1,Cr(i.player.media.play())})),en(this,"pauseContent",(function(){i.elements.container.style.zIndex=3,i.playing=!0,i.player.media.pause()})),en(this,"cancel",(function(){i.initialized&&i.resumeContent(),i.trigger("error"),i.loadAds()})),en(this,"loadAds",(function(){i.managerPromise.then((function(){i.manager&&i.manager.destroy(),i.managerPromise=new Promise((function(e){i.on("loaded",e),i.player.debug.log(i.manager)})),i.initialized=!1,i.requestAds()})).catch((function(){}))})),en(this,"trigger",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=i.events[e];$n(a)&&a.forEach((function(e){Hn(e)&&e.apply(i,n)}))})),en(this,"on",(function(e,t){return $n(i.events[e])||(i.events[e]=[]),i.events[e].push(t),i})),en(this,"startSafetyTimer",(function(e,t){i.player.debug.log("Safety timer invoked from: ".concat(t)),i.safetyTimer=setTimeout((function(){i.cancel(),i.clearSafetyTimer("startSafetyTimer()")}),e)})),en(this,"clearSafetyTimer",(function(e){zn(i.safetyTimer)||(i.player.debug.log("Safety timer cleared from: ".concat(e)),clearTimeout(i.safetyTimer),i.safetyTimer=null)})),this.player=t,this.config=t.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((function(e,t){i.on("loaded",e),i.on("error",t)})),this.load()}return Wi(e,[{key:"enabled",get:function(){var e=this.config;return this.player.isHTML5&&this.player.isVideo&&e.enabled&&(!qn(e.publisherId)||Un(e.tagUrl))}},{key:"tagUrl",get:function(){var e=this.config;return Un(e.tagUrl)?e.tagUrl:"https://go.aniview.com/api/adserver6/vast/?".concat(qr({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:e.publisherId}))}}]),e}(),ya=function(e){var t=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach((function(e){var i={};e.split(/\r\n|\n|\r/).forEach((function(e){if(Rn(i.startTime)){if(!qn(e.trim())&&qn(i.text)){var t,n,r=e.trim().split("#xywh=");t=Ui(r,1),i.text=t[0],r[1]&&(n=Ui(r[1].split(","),4),i.x=n[0],i.y=n[1],i.w=n[2],i.h=n[3])}}else{var a=e.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);a&&(i.startTime=60*Number(a[1]||0)*60+60*Number(a[2])+Number(a[3])+Number("0.".concat(a[4])),i.endTime=60*Number(a[6]||0)*60+60*Number(a[7])+Number(a[8])+Number("0.".concat(a[9])))}})),i.text&&t.push(i)})),t},ba=function(e,t){var i={};return e>t.width/t.height?(i.width=t.width,i.height=1/e*t.width):(i.height=t.height,i.width=e*t.height),i},xa=function(){function e(t){var i=this;Xi(this,e),en(this,"load",(function(){i.player.elements.display.seekTooltip&&(i.player.elements.display.seekTooltip.hidden=i.enabled),i.enabled&&i.getThumbnails().then((function(){i.enabled&&(i.render(),i.determineContainerAutoSizing(),i.loaded=!0)}))})),en(this,"getThumbnails",(function(){return new Promise((function(e){var t=i.player.config.previewThumbnails.src;if(qn(t))throw new Error("Missing previewThumbnails.src config attribute");var n=function(){i.thumbnails.sort((function(e,t){return e.height-t.height})),i.player.debug.log("Preview thumbnails",i.thumbnails),e()};if(Hn(t))t((function(e){i.thumbnails=e,n()}));else{var r=(Fn(t)?[t]:t).map((function(e){return i.getThumbnail(e)}));Promise.all(r).then(n)}}))})),en(this,"getThumbnail",(function(e){return new Promise((function(t){jr(e).then((function(n){var r={frames:ya(n),height:null,urlPrefix:""};r.frames[0].text.startsWith("/")||r.frames[0].text.startsWith("http://")||r.frames[0].text.startsWith("https://")||(r.urlPrefix=e.substring(0,e.lastIndexOf("/")+1));var a=new Image;a.onload=function(){r.height=a.naturalHeight,r.width=a.naturalWidth,i.thumbnails.push(r),t()},a.src=r.urlPrefix+r.frames[0].text}))}))})),en(this,"startMove",(function(e){if(i.loaded&&Bn(e)&&["touchmove","mousemove"].includes(e.type)&&i.player.media.duration){if("touchmove"===e.type)i.seekTime=i.player.media.duration*(i.player.elements.inputs.seek.value/100);else{var t=i.player.elements.progress.getBoundingClientRect(),n=100/t.width*(e.pageX-t.left);i.seekTime=i.player.media.duration*(n/100),i.seekTime<0&&(i.seekTime=0),i.seekTime>i.player.media.duration-1&&(i.seekTime=i.player.media.duration-1),i.mousePosX=e.pageX,i.elements.thumb.time.innerText=Vr(i.seekTime)}i.showImageAtCurrentTime()}})),en(this,"endMove",(function(){i.toggleThumbContainer(!1,!0)})),en(this,"startScrubbing",(function(e){(zn(e.button)||!1===e.button||0===e.button)&&(i.mouseDown=!0,i.player.media.duration&&(i.toggleScrubbingContainer(!0),i.toggleThumbContainer(!1,!0),i.showImageAtCurrentTime()))})),en(this,"endScrubbing",(function(){i.mouseDown=!1,Math.ceil(i.lastTime)===Math.ceil(i.player.media.currentTime)?i.toggleScrubbingContainer(!1):kr.call(i.player,i.player.media,"timeupdate",(function(){i.mouseDown||i.toggleScrubbingContainer(!1)}))})),en(this,"listeners",(function(){i.player.on("play",(function(){i.toggleThumbContainer(!1,!0)})),i.player.on("seeked",(function(){i.toggleThumbContainer(!1)})),i.player.on("timeupdate",(function(){i.lastTime=i.player.media.currentTime}))})),en(this,"render",(function(){i.elements.thumb.container=nr("div",{class:i.player.config.classNames.previewThumbnails.thumbContainer}),i.elements.thumb.imageContainer=nr("div",{class:i.player.config.classNames.previewThumbnails.imageContainer}),i.elements.thumb.container.appendChild(i.elements.thumb.imageContainer);var e=nr("div",{class:i.player.config.classNames.previewThumbnails.timeContainer});i.elements.thumb.time=nr("span",{},"00:00"),e.appendChild(i.elements.thumb.time),i.elements.thumb.container.appendChild(e),Xn(i.player.elements.progress)&&i.player.elements.progress.appendChild(i.elements.thumb.container),i.elements.scrubbing.container=nr("div",{class:i.player.config.classNames.previewThumbnails.scrubbingContainer}),i.player.elements.wrapper.appendChild(i.elements.scrubbing.container)})),en(this,"destroy",(function(){i.elements.thumb.container&&i.elements.thumb.container.remove(),i.elements.scrubbing.container&&i.elements.scrubbing.container.remove()})),en(this,"showImageAtCurrentTime",(function(){i.mouseDown?i.setScrubbingContainerSize():i.setThumbContainerSizeAndPos();var e=i.thumbnails[0].frames.findIndex((function(e){return i.seekTime>=e.startTime&&i.seekTime<=e.endTime})),t=e>=0,n=0;i.mouseDown||i.toggleThumbContainer(t),t&&(i.thumbnails.forEach((function(t,r){i.loadedImages.includes(t.frames[e].text)&&(n=r)})),e!==i.showingThumb&&(i.showingThumb=e,i.loadImage(n)))})),en(this,"loadImage",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=i.showingThumb,n=i.thumbnails[e],r=n.urlPrefix,a=n.frames[t],o=n.frames[t].text,s=r+o;if(i.currentImageElement&&i.currentImageElement.dataset.filename===o)i.showImage(i.currentImageElement,a,e,t,o,!1),i.currentImageElement.dataset.index=t,i.removeOldImages(i.currentImageElement);else{i.loadingImage&&i.usingSprites&&(i.loadingImage.onload=null);var l=new Image;l.src=s,l.dataset.index=t,l.dataset.filename=o,i.showingThumbFilename=o,i.player.debug.log("Loading image: ".concat(s)),l.onload=function(){return i.showImage(l,a,e,t,o,!0)},i.loadingImage=l,i.removeOldImages(l)}})),en(this,"showImage",(function(e,t,n,r,a){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];i.player.debug.log("Showing thumb: ".concat(a,". num: ").concat(r,". qual: ").concat(n,". newimg: ").concat(o)),i.setImageSizeAndOffset(e,t),o&&(i.currentImageContainer.appendChild(e),i.currentImageElement=e,i.loadedImages.includes(a)||i.loadedImages.push(a)),i.preloadNearby(r,!0).then(i.preloadNearby(r,!1)).then(i.getHigherQuality(n,e,t,a))})),en(this,"removeOldImages",(function(e){Array.from(i.currentImageContainer.children).forEach((function(t){if("img"===t.tagName.toLowerCase()){var n=i.usingSprites?500:1e3;if(t.dataset.index!==e.dataset.index&&!t.dataset.deleting){t.dataset.deleting=!0;var r=i.currentImageContainer;setTimeout((function(){r.removeChild(t),i.player.debug.log("Removing thumb: ".concat(t.dataset.filename))}),n)}}}))})),en(this,"preloadNearby",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new Promise((function(n){setTimeout((function(){var r=i.thumbnails[0].frames[e].text;if(i.showingThumbFilename===r){var a;a=t?i.thumbnails[0].frames.slice(e):i.thumbnails[0].frames.slice(0,e).reverse();var o=!1;a.forEach((function(e){var t=e.text;if(t!==r&&!i.loadedImages.includes(t)){o=!0,i.player.debug.log("Preloading thumb filename: ".concat(t));var a=i.thumbnails[0].urlPrefix+t,s=new Image;s.src=a,s.onload=function(){i.player.debug.log("Preloaded thumb filename: ".concat(t)),i.loadedImages.includes(t)||i.loadedImages.push(t),n()}}})),o||n()}}),300)}))})),en(this,"getHigherQuality",(function(e,t,n,r){if(e<i.thumbnails.length-1){var a=t.naturalHeight;i.usingSprites&&(a=n.h),a<i.thumbContainerHeight&&setTimeout((function(){i.showingThumbFilename===r&&(i.player.debug.log("Showing higher quality thumb for: ".concat(r)),i.loadImage(e+1))}),300)}})),en(this,"toggleThumbContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i.player.config.classNames.previewThumbnails.thumbContainerShown;i.elements.thumb.container.classList.toggle(n,e),!e&&t&&(i.showingThumb=null,i.showingThumbFilename=null)})),en(this,"toggleScrubbingContainer",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=i.player.config.classNames.previewThumbnails.scrubbingContainerShown;i.elements.scrubbing.container.classList.toggle(t,e),e||(i.showingThumb=null,i.showingThumbFilename=null)})),en(this,"determineContainerAutoSizing",(function(){(i.elements.thumb.imageContainer.clientHeight>20||i.elements.thumb.imageContainer.clientWidth>20)&&(i.sizeSpecifiedInCSS=!0)})),en(this,"setThumbContainerSizeAndPos",(function(){if(i.sizeSpecifiedInCSS){if(i.elements.thumb.imageContainer.clientHeight>20&&i.elements.thumb.imageContainer.clientWidth<20){var e=Math.floor(i.elements.thumb.imageContainer.clientHeight*i.thumbAspectRatio);i.elements.thumb.imageContainer.style.width="".concat(e,"px")}else if(i.elements.thumb.imageContainer.clientHeight<20&&i.elements.thumb.imageContainer.clientWidth>20){var t=Math.floor(i.elements.thumb.imageContainer.clientWidth/i.thumbAspectRatio);i.elements.thumb.imageContainer.style.height="".concat(t,"px")}}else{var n=Math.floor(i.thumbContainerHeight*i.thumbAspectRatio);i.elements.thumb.imageContainer.style.height="".concat(i.thumbContainerHeight,"px"),i.elements.thumb.imageContainer.style.width="".concat(n,"px")}i.setThumbContainerPos()})),en(this,"setThumbContainerPos",(function(){var e=i.player.elements.progress.getBoundingClientRect(),t=i.player.elements.container.getBoundingClientRect(),n=i.elements.thumb.container,r=t.left-e.left+10,a=t.right-e.left-n.clientWidth-10,o=i.mousePosX-e.left-n.clientWidth/2;o<r&&(o=r),o>a&&(o=a),n.style.left="".concat(o,"px")})),en(this,"setScrubbingContainerSize",(function(){var e=ba(i.thumbAspectRatio,{width:i.player.media.clientWidth,height:i.player.media.clientHeight}),t=e.width,n=e.height;i.elements.scrubbing.container.style.width="".concat(t,"px"),i.elements.scrubbing.container.style.height="".concat(n,"px")})),en(this,"setImageSizeAndOffset",(function(e,t){if(i.usingSprites){var n=i.thumbContainerHeight/t.h;e.style.height=e.naturalHeight*n+"px",e.style.width=e.naturalWidth*n+"px",e.style.left="-".concat(t.x*n,"px"),e.style.top="-".concat(t.y*n,"px")}})),this.player=t,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}return Wi(e,[{key:"enabled",get:function(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}},{key:"currentImageContainer",get:function(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}},{key:"usingSprites",get:function(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}},{key:"thumbAspectRatio",get:function(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}},{key:"thumbContainerHeight",get:function(){return this.mouseDown?ba(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight}).height:this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}},{key:"currentImageElement",get:function(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement},set:function(e){this.mouseDown?this.currentScrubbingImageElement=e:this.currentThumbnailImageElement=e}}]),e}(),wa={insertElements:function(e,t){var i=this;Fn(t)?rr(e,this.media,{src:t}):$n(t)&&t.forEach((function(t){rr(e,i.media,t)}))},change:function(e){var t=this;Kn(e,"sources.length")?(Mr.cancelRequests.call(this),this.destroy.call(this,(function(){t.options.quality=[],ar(t.media),t.media=null,Xn(t.elements.container)&&t.elements.container.removeAttribute("class");var i=e.sources,n=e.type,r=Ui(i,1)[0],a=r.provider,o=void 0===a?ea.html5:a,s=r.src,l="html5"===o?n:"div",c="html5"===o?{}:{src:s};Object.assign(t,{provider:o,type:n,supported:vr.check(n,o,t.config.playsinline),media:nr(l,c)}),t.elements.container.appendChild(t.media),Yn(e.autoplay)&&(t.config.autoplay=e.autoplay),t.isHTML5&&(t.config.crossorigin&&t.media.setAttribute("crossorigin",""),t.config.autoplay&&t.media.setAttribute("autoplay",""),qn(e.poster)||(t.poster=e.poster),t.config.loop.active&&t.media.setAttribute("loop",""),t.config.muted&&t.media.setAttribute("muted",""),t.config.playsinline&&t.media.setAttribute("playsinline","")),sa.addStyleHook.call(t),t.isHTML5&&wa.insertElements.call(t,"source",i),t.config.title=e.title,ma.setup.call(t),t.isHTML5&&Object.keys(e).includes("tracks")&&wa.insertElements.call(t,"track",e.tracks),(t.isHTML5||t.isEmbed&&!t.supported.ui)&&sa.build.call(t),t.isHTML5&&t.media.load(),qn(e.previewThumbnails)||(Object.assign(t.config.previewThumbnails,e.previewThumbnails),t.previewThumbnails&&t.previewThumbnails.loaded&&(t.previewThumbnails.destroy(),t.previewThumbnails=null),t.config.previewThumbnails.enabled&&(t.previewThumbnails=new xa(t))),t.fullscreen.update()}),!0)):this.debug.warn("Invalid source format")}};var ka,_a,Aa,Sa,Ca,Ta,Pa=function(){function e(t,i){var n=this;if(Xi(this,e),en(this,"play",(function(){return Hn(n.media.play)?(n.ads&&n.ads.enabled&&n.ads.managerPromise.then((function(){return n.ads.play()})).catch((function(){return Cr(n.media.play())})),n.media.play()):null})),en(this,"pause",(function(){return n.playing&&Hn(n.media.pause)?n.media.pause():null})),en(this,"togglePlay",(function(e){return(Yn(e)?e:!n.playing)?n.play():n.pause()})),en(this,"stop",(function(){n.isHTML5?(n.pause(),n.restart()):Hn(n.media.stop)&&n.media.stop()})),en(this,"restart",(function(){n.currentTime=0})),en(this,"rewind",(function(e){n.currentTime-=Rn(e)?e:n.config.seekTime})),en(this,"forward",(function(e){n.currentTime+=Rn(e)?e:n.config.seekTime})),en(this,"increaseVolume",(function(e){var t=n.media.muted?0:n.volume;n.volume=t+(Rn(e)?e:0)})),en(this,"decreaseVolume",(function(e){n.increaseVolume(-e)})),en(this,"airplay",(function(){vr.airplay&&n.media.webkitShowPlaybackTargetPicker()})),en(this,"toggleControls",(function(e){if(n.supported.ui&&!n.isAudio){var t=dr(n.elements.container,n.config.classNames.hideControls),i=void 0===e?void 0:!e,r=hr(n.elements.container,n.config.classNames.hideControls,i);if(r&&$n(n.config.controls)&&n.config.controls.includes("settings")&&!qn(n.config.settings)&&Gr.toggleMenu.call(n,!1),r!==t){var a=r?"controlshidden":"controlsshown";_r.call(n,n.media,a)}return!r}return!1})),en(this,"on",(function(e,t){xr.call(n,n.elements.container,e,t)})),en(this,"once",(function(e,t){kr.call(n,n.elements.container,e,t)})),en(this,"off",(function(e,t){wr(n.elements.container,e,t)})),en(this,"destroy",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n.ready){var i=function(){document.body.style.overflow="",n.embed=null,t?(Object.keys(n.elements).length&&(ar(n.elements.buttons.play),ar(n.elements.captions),ar(n.elements.controls),ar(n.elements.wrapper),n.elements.buttons.play=null,n.elements.captions=null,n.elements.controls=null,n.elements.wrapper=null),Hn(e)&&e()):(Ar.call(n),Mr.cancelRequests.call(n),sr(n.elements.original,n.elements.container),_r.call(n,n.elements.original,"destroyed",!0),Hn(e)&&e.call(n.elements.original),n.ready=!1,setTimeout((function(){n.elements=null,n.media=null}),200))};n.stop(),clearTimeout(n.timers.loading),clearTimeout(n.timers.controls),clearTimeout(n.timers.resized),n.isHTML5?(sa.toggleNativeControls.call(n,!0),i()):n.isYouTube?(clearInterval(n.timers.buffering),clearInterval(n.timers.playing),null!==n.embed&&Hn(n.embed.destroy)&&n.embed.destroy(),i()):n.isVimeo&&(null!==n.embed&&n.embed.unload().then(i),setTimeout(i,200))}})),en(this,"supports",(function(e){return vr.mime.call(n,e)})),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=vr.touch,this.media=t,Fn(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||jn(this.media)||$n(this.media))&&(this.media=this.media[0]),this.config=er({},Jr,e.defaults,i||{},function(){try{return JSON.parse(n.media.getAttribute("data-plyr-config"))}catch(e){return{}}}()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new ra(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",vr),!zn(this.media)&&Xn(this.media))if(this.media.plyr)this.debug.warn("Target already setup");else if(this.config.enabled)if(vr.check().api){var r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;var a=this.media.tagName.toLowerCase(),o=null,s=null;switch(a){case"div":if(o=this.media.querySelector("iframe"),Xn(o)){if(s=Ur(o.getAttribute("src")),this.provider=function(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?ea.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?ea.vimeo:null}(s.toString()),this.elements.container=this.media,this.media=o,this.elements.container.className="",s.search.length){var l=["1","true"];l.includes(s.searchParams.get("autoplay"))&&(this.config.autoplay=!0),l.includes(s.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=l.includes(s.searchParams.get("playsinline")),this.config.youtube.hl=s.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(qn(this.provider)||!Object.values(ea).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=ia;break;case"video":case"audio":this.type=a,this.provider=ea.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=vr.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new la(this),this.storage=new $r(this),this.media.plyr=this,Xn(this.elements.container)||(this.elements.container=nr("div",{tabindex:0}),tr(this.media,this.elements.container)),sa.migrateStyles.call(this),sa.addStyleHook.call(this),ma.setup.call(this),this.config.debug&&xr.call(this,this.elements.container,this.config.events.join(" "),(function(e){n.debug.log("event: ".concat(e.type))})),this.fullscreen=new aa(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&sa.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new va(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",(function(){return Cr(n.play())})),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new xa(this))):this.debug.error("Setup failed: no support")}else this.debug.error("Setup failed: no support");else this.debug.error("Setup failed: disabled by config");else this.debug.error("Setup failed: no suitable element passed")}return Wi(e,[{key:"isHTML5",get:function(){return this.provider===ea.html5}},{key:"isEmbed",get:function(){return this.isYouTube||this.isVimeo}},{key:"isYouTube",get:function(){return this.provider===ea.youtube}},{key:"isVimeo",get:function(){return this.provider===ea.vimeo}},{key:"isVideo",get:function(){return this.type===ia}},{key:"isAudio",get:function(){return this.type===ta}},{key:"playing",get:function(){return Boolean(this.ready&&!this.paused&&!this.ended)}},{key:"paused",get:function(){return Boolean(this.media.paused)}},{key:"stopped",get:function(){return Boolean(this.paused&&0===this.currentTime)}},{key:"ended",get:function(){return Boolean(this.media.ended)}},{key:"currentTime",get:function(){return Number(this.media.currentTime)},set:function(e){if(this.duration){var t=Rn(e)&&e>0;this.media.currentTime=t?Math.min(e,this.duration):0,this.debug.log("Seeking to ".concat(this.currentTime," seconds"))}}},{key:"buffered",get:function(){var e=this.media.buffered;return Rn(e)?e:e&&e.length&&this.duration>0?e.end(0)/this.duration:0}},{key:"seeking",get:function(){return Boolean(this.media.seeking)}},{key:"duration",get:function(){var e=parseFloat(this.config.duration),t=(this.media||{}).duration,i=Rn(t)&&t!==1/0?t:0;return e||i}},{key:"volume",get:function(){return Number(this.media.volume)},set:function(e){var t=e;Fn(t)&&(t=Number(t)),Rn(t)||(t=this.storage.get("volume")),Rn(t)||(t=this.config.volume),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!qn(e)&&this.muted&&t>0&&(this.muted=!1)}},{key:"muted",get:function(){return Boolean(this.media.muted)},set:function(e){var t=e;Yn(t)||(t=this.storage.get("muted")),Yn(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}},{key:"hasAudio",get:function(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}},{key:"speed",get:function(){return Number(this.media.playbackRate)},set:function(e){var t=this,i=null;Rn(e)&&(i=e),Rn(i)||(i=this.storage.get("speed")),Rn(i)||(i=this.config.speed.selected);var n=this.minimumSpeed,r=this.maximumSpeed;i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.min(Math.max(e,t),i)}(i,n,r),this.config.speed.selected=i,setTimeout((function(){t.media.playbackRate=i}),0)}},{key:"minimumSpeed",get:function(){return this.isYouTube?Math.min.apply(Math,qi(this.options.speed)):this.isVimeo?.5:.0625}},{key:"maximumSpeed",get:function(){return this.isYouTube?Math.max.apply(Math,qi(this.options.speed)):this.isVimeo?2:16}},{key:"quality",get:function(){return this.media.quality},set:function(e){var t=this.config.quality,i=this.options.quality;if(i.length){var n=[!qn(e)&&Number(e),this.storage.get("quality"),t.selected,t.default].find(Rn),r=!0;if(!i.includes(n)){var a=function(e,t){return $n(e)&&e.length?e.reduce((function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e})):null}(i,n);this.debug.warn("Unsupported quality option: ".concat(n,", using ").concat(a," instead")),n=a,r=!1}t.selected=n,this.media.quality=n,r&&this.storage.set({quality:n})}}},{key:"loop",get:function(){return Boolean(this.media.loop)},set:function(e){var t=Yn(e)?e:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}},{key:"source",get:function(){return this.media.currentSrc},set:function(e){wa.change.call(this,e)}},{key:"download",get:function(){var e=this.config.urls.download;return Un(e)?e:this.source},set:function(e){Un(e)&&(this.config.urls.download=e,Gr.setDownloadUrl.call(this))}},{key:"poster",get:function(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null},set:function(e){this.isVideo?sa.setPoster.call(this,e,!1).catch((function(){})):this.debug.warn("Poster can only be set for video")}},{key:"ratio",get:function(){if(!this.isVideo)return null;var e=Pr(Lr.call(this));return $n(e)?e.join(":"):e},set:function(e){this.isVideo?Fn(e)&&Tr(e)?(this.config.ratio=e,Er.call(this)):this.debug.error("Invalid aspect ratio specified (".concat(e,")")):this.debug.warn("Aspect ratio can only be set for video")}},{key:"autoplay",get:function(){return Boolean(this.config.autoplay)},set:function(e){var t=Yn(e)?e:this.config.autoplay;this.config.autoplay=t}},{key:"toggleCaptions",value:function(e){Zr.toggle.call(this,e,!1)}},{key:"currentTrack",get:function(){var e=this.captions,t=e.toggled,i=e.currentTrack;return t?i:-1},set:function(e){Zr.set.call(this,e,!1)}},{key:"language",get:function(){return(Zr.getCurrentTrack.call(this)||{}).language},set:function(e){Zr.setLanguage.call(this,e,!1)}},{key:"pip",get:function(){return vr.pip?qn(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Qr:null},set:function(e){if(vr.pip){var t=Yn(e)?e:!this.pip;Hn(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Qr:Kr),Hn(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}}}],[{key:"supported",value:function(e,t,i){return vr.check(e,t,i)}},{key:"loadSprite",value:function(e,t){return Xr(e,t)}},{key:"setup",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;return Fn(t)?n=Array.from(document.querySelectorAll(t)):jn(t)?n=Array.from(t):$n(t)&&(n=t.filter(Xn)),qn(n)?null:n.map((function(t){return new e(t,i)}))}}]),e}();function La(e){e.on("timeupdate",(function(){return function(e){var t,i;if(null!=e&&null!==(t=e.config)&&void 0!==t&&null!==(i=t.mutedPreview)&&void 0!==i&&i.enabled)return;!function(e){var t;if(0===e.currentTime)return;if(null==e||null===(t=e.config)||void 0===t||!t.save_player_position)return;localStorage.setItem("player-progress-".concat(Ea(e)),e.currentTime)}(e)}(e)})),e.on("ready",(function(){return Ma(e)})),e.on("loadeddata",(function(){return Ma(e)}))}function Ea(e){var t,i;return null==e||null===(t=e.config)||void 0===t||null===(i=t.blockAttributes)||void 0===i?void 0:i.id}function Ma(e){var t,i,n;if(null!=e&&null!==(t=e.config)&&void 0!==t&&t.save_player_position&&(null==e||null===(i=e.config)||void 0===i||null===(n=i.mutedPreview)||void 0===n||!n.enabled)){var r=function(e){return parseFloat(localStorage.getItem("player-progress-".concat(Ea(e))))}(e);return e.hls&&r>=0&&e.hls.startLoad(r),e.duration&&(r=Math.min(r,e.duration)),!r||r<1?0:(e.currentTime=r,null!=e&&e.isVimeo&&setTimeout((function(){e.embed.setCurrentTime(r||0)}),0),r)}}Pa.defaults=function(e){return JSON.parse(JSON.stringify(e))}(Jr);var Ia,Oa,Da,za,Na=(null===(ka=window)||void 0===ka||null===(_a=ka.prestoPlayer)||void 0===_a||null===(Aa=_a.i18n)||void 0===Aa?void 0:Aa.hide_chapters)||"Hide Chapters",Ra=(null===(Sa=window)||void 0===Sa||null===(Ca=Sa.prestoPlayer)||void 0===Ca||null===(Ta=Ca.i18n)||void 0===Ta?void 0:Ta.show_chapters)||"Show Chapters",Fa='<button class="plyr__controls__item plyr__control" type="button" data-plyr="chapters">\n<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" class="feather feather-list">\n <line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line>\n <line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line>\n <line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>\n</svg>\n<span class="label--pressed plyr__tooltip" role="tooltip">'.concat(Na,'</span>\n<span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(Ra,"</span>\n</button>\n"),Ya='\n<div class="presto-player-toc__wrapper">\n <div class="presto-player-toc__cover" data-player-toc-cover></div>\n <div class="presto-player-toc">\n <div class="presto-player-toc__title">'.concat((null===(Ia=window)||void 0===Ia||null===(Oa=Ia.prestoPlayer)||void 0===Oa||null===(Da=Oa.i18n)||void 0===Da?void 0:Da.chapters)||"Chapters",'</div>\n <div class="presto-player-toc__list" data-player-toc></div>\n </div>\n</div>');function Ha(e){var t,i,n,r,a,o,s,l,c,h,d,u,p,f=0,g={},m=null,v=0;if(r=e.detail.plyr,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!e.length)return e;var t={};return e.forEach((function(e){var i,n=e.time.split(":");n.length>1&&(i=60*parseInt(n[0])),t[parseInt(n[1])+parseInt(i)]=e})),t}((null===(t=r)||void 0===t||null===(i=t.config)||void 0===i?void 0:i.chapters)||[]),"html5"!==r.provider||r.duration){if(n&&Object.keys(n).length){a=jQuery(r.elements.container).closest(".presto-player__wrapper").find(".plyr");var y=(p=jQuery(r.elements.controls)).find(".plyr__time");y=y.length?y:p.find(".plyr__progress__container"),(c=a.find('[data-plyr="chapters"]')).length||(c=jQuery(Fa).insertAfter(y)),(s=a.find(".presto-player-toc__wrapper")).length||(s=jQuery(Ya).appendTo(a)),h=s.find("[data-player-toc-cover]"),l=s.find("[data-player-toc]"),o=a.find(".plyr__progress__container");var b,x=jQuery('<div class="presto-player__chapters"></div>').appendTo(o);d=jQuery('<div class="presto-player__chapter-markers"></div>').appendTo(x),b=0,l.find(".presto-player-toc__chapter").length||(Object.keys(n).forEach((function(e){b++;var t=n[e],i=jQuery(function(e){var t=e.name,i=void 0===t?"Untitled":t,n=e.order,r=void 0===n?1:n,a=e.highlight;return'<div class="presto-player-toc__chapter '.concat(void 0!==a&&a?"is-highlighted":"",'" data-chapter-item>\n \n <span class="presto-player-toc__order">\n ').concat(r,'\n </span>\n <span class="presto-player-toc__name">\n ').concat(i,"\n </div>\n</div>")}({name:t.title,order:b})).appendTo(l);i.data("presto-player-timestamp",e),g[e]=i,i.on("click",(function(){r.currentTime=parseFloat(e),r.play(),S(!1)}))})),u=s.find("[data-chapter-item]")),A(),c.off("click"),c.on("click",S),_(),r.off("timeupdate"),r.on("timeupdate",_),m=window.setInterval(k,100),h.off("click"),h.on("click",(function(){return S(!1)})),l.off("mouseleave"),l.on("mouseleave",w)}}else r.on("loadedmetadata",Ha);function w(){if(r.playing){var e=setTimeout((function(){S(!1),l.off("mouseleave",w)}),2e3);l.on("mouseenter",(function(){clearTimeout(e)}))}}function k(){v++,r.duration&&(A(),window.clearInterval(m)),v>50&&window.clearInterval(m)}function _(){f=r.currentTime;var e=Object.keys(n).filter((function(e){return e<=f})).map((function(e){return parseInt(e,10)})),t=Math.max.apply(Math,qi(e));u&&u.removeClass("is-highlighted"),jQuery(g[t||0]).addClass("is-highlighted")}function A(){r.duration&&(Object.keys(n).forEach((function(e){if(parseInt(e)&&!d.find("[data-timestamp=".concat(e,"]")).length){var t=n[e],i=parseInt(e)/r.duration*100,a=jQuery(function(e){var t=e.position,i=void 0===t?0:t,n=e.name,r=void 0===n?"":n;return'<div class="presto-player-progress__marker plyr__controls__item plyr__control" style="left: '.concat(i,'%" data-timeline-marker>\n <span class="label--not-pressed plyr__tooltip" role="tooltip">').concat(r,"</span>\n </div>")}({position:i,name:"".concat(t.title)})).prependTo(d);a.attr("data-timestamp",e),a.data("timestamp",e),a.on("click",(function(t){r.currentTime=parseInt(e),r.play()}))}})),s.find("[data-timeline-marker]"))}function S(e){void 0!==$i(e)?s.toggleClass("is-showing",e):s.toggleClass("is-showing")}}function $a(e){za=e,jQuery(za.elements.container).closest(".presto-player__wrapper"),za.on("ready",Ha),za.on("controlshidden",ja),za.on("controlsshown",Xa)}function ja(e){var t,i,n;jQuery(null==e||null===(t=e.detail)||void 0===t||null===(i=t.plyr)||void 0===i||null===(n=i.elements)||void 0===n?void 0:n.container).closest(".presto-player__wrapper").addClass("presto-player--hide-controls")}function Xa(e){var t,i,n;jQuery(null==e||null===(t=e.detail)||void 0===t||null===(i=t.plyr)||void 0===i||null===(n=i.elements)||void 0===n?void 0:n.container).closest(".presto-player__wrapper").removeClass("presto-player--hide-controls")}function Ba(e){var t,i;return Hi(Hi(Hi({video_current_time:parseInt((null==e?void 0:e.currentTime)||0),video_provider:(null==e?void 0:e.provider)||"html5"},null!=e&&e.duration?{video_duration:parseInt(null==e?void 0:e.duration)}:{}),null!=e&&e.source?{video_url:null==e?void 0:e.source}:{}),null!=e&&null!==(t=e.config)&&void 0!==t&&t.title?{video_title:null==e||null===(i=e.config)||void 0===i?void 0:i.title}:{})}function Wa(e){var t;null===(t=window)||void 0===t||t.gtag("event","Play",Ba(e))}function Va(e){var t;null===(t=window)||void 0===t||t.gtag("event","Pause",Ba(e))}function Ga(e){var t;null===(t=window)||void 0===t||t.gtag("event","Player Load",Ba(e))}var Ua,qa={25:!1,50:!1,75:!1,100:!1};function Za(e){if(e.currentTime){var t=parseFloat(e.currentTime)/parseFloat(e.duration)*100;Object.keys(qa).forEach((function(i){var n;!qa[i]&&t>=parseInt(i)&&(qa[i]=!0,null===(n=window)||void 0===n||n.gtag("event","".concat(i," Percent Played"),Ba(e)))}))}}var Ja="presto-player.analytics",Qa="";function Ka(e){!function(e){var t,i,n,r,a,o,s,l;if(!Qa)return;var c=new FormData;if(c.append("action","presto_player_progress"),c.append("duration",null==e?void 0:e.video_current_time),c.append("video_id",null===(t=Ua)||void 0===t||null===(i=t.config)||void 0===i?void 0:i.id),c.append("nonce",Qa),!(null!==(n=window)&&void 0!==n&&null!==(r=n.prestoPlayer)&&void 0!==r&&r.debug_navigator)){var h,d;return void navigator.sendBeacon(null===(h=window)||void 0===h||null===(d=h.prestoPlayer)||void 0===d?void 0:d.ajaxurl,c)}jQuery.ajax({type:"POST",url:null===(a=window)||void 0===a||null===(o=a.prestoPlayer)||void 0===o?void 0:o.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress",duration:null==e?void 0:e.video_current_time,video_id:null===(s=Ua)||void 0===s||null===(l=s.config)||void 0===l?void 0:l.id,nonce:Qa}})}(function(e){var t,i;return Hi(Hi(Hi({video_current_time:parseInt((null==e?void 0:e.currentTime)||0),video_provider:(null==e?void 0:e.provider)||"html5"},null!=e&&e.duration?{video_duration:parseInt(null==e?void 0:e.duration)}:{}),null!=e&&e.source?{video_url:null==e?void 0:e.source}:{}),null!=e&&null!==(t=e.config)&&void 0!==t&&t.title?{video_title:null==e||null===(i=e.config)||void 0===i?void 0:i.title}:{})}(e))}function eo(e){var t,i;null!==(t=window)&&void 0!==t&&null!==(i=t.prestoPlayer)&&void 0!==i&&i.isPremium&&(!function(){var e;null!==(e=window)&&void 0!==e&&e.gtag&&(wp.hooks.addAction("presto.playerPlay","presto-player",Wa),wp.hooks.addAction("presto.playerPause","presto-player",Va),wp.hooks.addAction("presto.playerReady","presto-player",Ga),wp.hooks.addAction("presto.playerTimeUpdate","presto-player",Za))}(),(Ua=e).config.analytics&&(wp.hooks.hasAction("presto.nonceRefreshed",Ja)||wp.hooks.addAction("presto.nonceRefreshed",Ja,(function(e){Qa=e})),wp.hooks.hasAction("presto.playerPlay",Ja)||wp.hooks.addAction("presto.playerPlay",Ja,Ka),wp.hooks.hasAction("presto.playerEnded",Ja)||wp.hooks.addAction("presto.playerEnded",Ja,Ka),wp.hooks.hasAction("presto.playerHidden",Ja)||wp.hooks.addAction("presto.playerHidden",Ja,Ka),wp.hooks.hasAction("presto.playerPause",Ja)||wp.hooks.addAction("presto.playerPause",Ja,Ka),wp.hooks.hasAction("presto.playerSeeked",Ja)||wp.hooks.addAction("presto.playerSeeked",Ja,Ka)))}var to=function(e){e.on("ready",(function(){var t,i,n,r;null==e||null===(t=e.config)||void 0===t||!t.logo||null!=e&&null!==(i=e.config)&&void 0!==i&&i.logo_added||(jQuery('<img src="'.concat(null==e||null===(n=e.config)||void 0===n?void 0:n.logo,'" class="presto-player__logo is-bottom-right" part="logo">')).insertBefore(null==e||null===(r=e.elements)||void 0===r?void 0:r.controls),e.config.logo_added=!0)}))};function io(e){var t;null!=e&&null!==(t=e.config)&&void 0!==t&&t.poster&&(e.poster=e.config.poster)}var no=function(e){e.on("ready",(function(){ro("Ready",e)})),e.on("play",(function(){ro("Play",e)})),e.on("playing",(function(){ro("Playing",e)})),e.on("pause",(function(){ro("Pause",e)})),e.on("ended",(function(){ro("Ended",e)})),e.on("seeked",(function(){ro("Seeked",e)})),e.on("timeupdate",(function(){ro("TimeUpdate",e)})),e.on("enterfullscreen",(function(){ro("EnterFullScreen",e)})),e.on("exitfullscreen",(function(){ro("ExitFullScreen",e)})),document.addEventListener("visibilitychange",(function(){ro("hidden"===document.visibilityState?"Hidden":"Visible",e)})),e.on("statechange",(function(t){var i;switch(null==t||null===(i=t.detail)||void 0===i?void 0:i.code){case 0:ro("Ended",e);break;case 1:ro("Play",e);break;case 2:ro("Pause",e)}}))};function ro(e,t){window.wp.hooks.doAction("presto.player".concat(e),t)}var ao,oo=Date.now(),so=function(e){var t,i;if(e.automations){(null===(i=null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.hooks)||void 0===i?void 0:i.hasAction("presto.nonceRefreshed","presto-player.progress"))||window.wp.hooks.addAction("presto.nonceRefreshed","presto-player.progress",(function(e){ao=e})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerTimeUpdate","presto-player",r),null===window||void 0===window||window.wp.hooks.addAction("presto.playerEnded","presto-player",(function(e){return r(e,100)}));var n={0:!1,10:!1,20:!1,30:!1,40:!1,50:!1,60:!1,70:!1,80:!1,90:!1,100:!1}}function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ao&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.ajaxProgress)&&(i||(i=parseFloat(e.currentTime)/parseFloat(e.duration)*100),e.watched=e.watched||{},Object.keys(n).forEach((function(t){var n,r,a,o,s,l,c,h,d,u=parseInt(t);if(!e.watched[u]&&i>=u){e.watched[u]=!0;var p=new FormData;if(p.append("action","presto_player_progress_percent"),p.append("id",null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.id),p.append("percent",u.toString()),p.append("visit_time",oo.toString()),p.append("nonce",ao),(null===(r=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===r?void 0:r.debug)&&console.log("".concat(u," percent watched.")),null===(a=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===a?void 0:a.debug_navigator)window.jQuery.ajax({type:"POST",url:null===(h=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===h?void 0:h.ajaxurl,dataType:"json",cache:!1,data:{action:"presto_player_progress_percent",id:null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.id,visit_time:oo,percent:u,nonce:ao}});else{var f=navigator.sendBeacon(null===(o=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===o?void 0:o.ajaxurl,p);(null===(s=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===s?void 0:s.debug)&&(f?console.log("Successfully queued progress:",{id:null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.id,percent:u,visit_time:oo,nonce:ao}):console.log("Failed to queue progress",{id:null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.id,percent:u,visit_time:oo,nonce:ao}))}}})))}},lo=!1,co=!1;function ho(e){return e.status>=200&&e.status<300?Promise.resolve(e):Promise.reject(new Error(e.statusText))}var uo=function(e){var t,i;(e.config.analytics||e.config.automations)&&(null===(i=null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.hooks)||void 0===i||i.addAction("presto.playerPlaying","presto-player",(function(){null===window||void 0===window||window.wp.hooks.doAction("presto.playerGetNonce")})),null===window||void 0===window||window.wp.hooks.addAction("presto.playerGetNonce","presto-player",(function(){var e;lo||co||(co=!0,fetch("".concat(null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.ajaxurl,"?action=presto_refresh_progress_nonce")).then(ho).then((function(e){return e.json()})).then((function(e){var t=e.data;null===window||void 0===window||window.wp.hooks.doAction("presto.nonceRefreshed",t),lo=!0})).catch((function(e){console.log("Request failed",e)})).finally((function(){co=!1})))})))},po=function(e){var t=window.navigator.userAgent;if(!!t.match(/iPad/i)||!!t.match(/iPhone/i)){var i=function(e,t){for(var i,n=null==e||null===(i=e.elements)||void 0===i?void 0:i.container.getRootNode().host;(null!=n?n.nodeType:void 0)===Node.ELEMENT_NODE&&"BODY"!==n.tagName&&"HTML"!==n.tagName;)t?n.classList.add("presto-player-fullscreen-open"):n.classList.remove("presto-player-fullscreen-open"),n=n.parentNode};wp.hooks.addAction("presto.playerEnterFullScreen","presto-player",(function(){var t;null!=e&&null!==(t=e.fullscreen)&&void 0!==t&&t.active&&i(e,!0)})),wp.hooks.addAction("presto.playerExitFullScreen","presto-player",(function(){var t;null!=e&&null!==(t=e.fullscreen)&&void 0!==t&&t.active||i(e,!1)}))}},fo=function(){var e,t=(e=w.a.mark((function e(t){var n,r,a,o;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("ResizeObserver"in window!=0){e.next=5;break}return e.next=3,i.e(0).then(i.bind(null,46));case 3:a=e.sent,window.ResizeObserver=a.ResizeObserver;case 5:if(o=new ResizeObserver((function(e){var t,i=Qi(e);try{for(i.s();!(t=i.n()).done;){var n=t.value,r=n.contentRect;jQuery(n.target).find(".plyr__menu__container").css({maxHeight:"".concat(r.height-48,"px")})}}catch(e){i.e(e)}finally{i.f()}})),null!=t&&null!==(n=t.elements)&&void 0!==n&&n.container){e.next=8;break}return e.abrupt("return");case 8:o.observe(null==t||null===(r=t.elements)||void 0===r?void 0:r.container),t.on("playing",(function(){var e,i,n=null==t||null===(e=t.elements)||void 0===e?void 0:e.container.getBoundingClientRect();jQuery(null==t||null===(i=t.elements)||void 0===i?void 0:i.container).find(".plyr__menu__container").css({maxHeight:"".concat(n.height-48,"px")})}));case 10:case"end":return e.stop()}}),e)})),function(){var t=this,i=arguments;return new Promise((function(n,r){var a=e.apply(t,i);function o(e){ji(a,n,r,o,s,"next",e)}function s(e){ji(a,n,r,o,s,"throw",e)}o(void 0)}))});return function(e){return t.apply(this,arguments)}}();function go(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=Hi(Hi(Hi({},r),{iconUrl:"".concat(null===(t=window)||void 0===t||null===(n=t.prestoPlayer)||void 0===n?void 0:n.plugin_url,"img/sprite.svg")}),{chapters:(null==r?void 0:r.chapters)||[],controls:(null==r?void 0:r.controls)||[],settings:Object.keys((null==r?void 0:r.settings)||{}).length?r.settings:{}}),o=new Pa(e,a);return"undefined"!=typeof learndash_video_data&&i.e(5).then(i.bind(null,47)).then((function(e){(0,e.default)(o)})),"undefined"!=typeof _tutorobject&&i.e(6).then(i.bind(null,48)).then((function(e){(0,e.default)(o)})),no(o),po(o),fo(o),to(o),io(o),$a(o),prestoPlayer.isAdmin||(uo(o),so(a),La(o),eo(o)),o}function mo(e){return"m3u8"===function(e){return e.split(/[#?]/)[0].split(".").pop().trim()}(e)}var vo=function(e){var t=e.config,n=e.selector,r=e.src,a=e.preload;return r&&mo(r)?i.e(4).then(i.bind(null,49)).then((function(e){return(0,e.default)({config:t,selector:n,src:r,preload:a})})):new Promise((function(e){return e(new go(n,Hi({},t)))}))};var yo=function(e,t){if(t){var i=document.createElement("style");e.shadowRoot.append(i),i.appendChild(document.createTextNode(t))}},bo=function(e){Object(c.a)(k,e);var t,a,h,d,u,p,f,g,m,v,y,b,x=Li(k);function k(){var e;return Object(o.a)(this,k),(e=x.call(this)).__registerHost(),si(Object(l.a)(e)),e.previouslyPlaying=!1,e}return Object(s.a)(k,[{key:"play",value:(b=Object(r.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.shouldLazyLoad=!1,e.abrupt("return",this.player.play());case 2:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"restart",value:(y=Object(r.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.shouldLazyLoad=!1,e.abrupt("return",this.player.restart());case 2:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})},{key:"pause",value:(v=Object(r.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.pause());case 1:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"stop",value:(m=Object(r.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.stop());case 1:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"fullscreenToggle",value:(g=Object(r.a)(w.a.mark((function e(t){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.fullscreen.toggle(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"on",value:(f=Object(r.a)(w.a.mark((function e(t,i){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.on(t,i));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"off",value:(p=Object(r.a)(w.a.mark((function e(t,i){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.player.off(t,i));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"handleStickyChange",value:function(){var e=this;(function(e){for(var t=[];e.parentNode&&"body"!=e.parentNode.nodeName.toLowerCase();)e=e.parentNode,t.push(e);return t})(this.el).forEach((function(t){t.classList.toggle("presto-sticky-parent",e.isSticky)}))}},{key:"getConfig",value:function(){return Object.assign(Object.assign({},function(e){var t,i,r,a,o,s=e.preset,l=void 0===s?{}:s,c=e.chapters,h=e.branding,d=e.src,u=e.analytics,p=e.automations,f=e.autoplay,g=e.blockAttributes,m=void 0===g?{}:g,v=e.provider,y=void 0===v?"":v,b=e.provider_video_id,x=void 0===b?"":b,w=e.youtube,k=e.type,_=e.isAdmin,A=e.i18n,S=e.storage,C=void 0===S?{enabled:!_,key:"presto-player-".concat(l.id)}:S,T=["settings"],P=Object(n.a)(["youtube","vimeo"].includes(y)?["pip"]:[]),L=["play-large","rewind","play","fast-forward","progress","current-time","mute","volume","captions","settings","pip","fullscreen"].filter((function(e){return((null==l?void 0:l[e])||T.includes(e))&&!P.includes(e)}));(null===(t=null==m?void 0:m.mutedPreview)||void 0===t?void 0:t.enabled)&&(C={enabled:!1});var E=Object.assign(Object.assign(Object.assign(Object.assign({id:null==m?void 0:m.id,title:(null==m?void 0:m.title)||"",blockAttributes:Object.assign(Object.assign({},m),{type:k}),src:d,ajaxProgress:!0,analytics:u,automations:p,mutedPreview:{enabled:null===(i=null==m?void 0:m.mutedPreview)||void 0===i?void 0:i.enabled},chapters:c,controls:L,settings:["captions","quality","loop"].concat(Object(n.a)((null==l?void 0:l.speed)?["speed"]:[])),hideControls:null==l?void 0:l.auto_hide,captions:{active:null==l?void 0:l.captions_enabled,language:"auto",update:!1},logo:null==h?void 0:h.logo,logo_width:null==h?void 0:h.logo_width,hide_logo:null==l?void 0:l.hide_logo,lazy_load_youtube:null==l?void 0:l.lazy_load_youtube,save_player_position:!!(null==l?void 0:l.save_player_position),sticky_scroll:null==l?void 0:l.sticky_scroll,play_video_viewport:null==l?void 0:l.play_video_viewport,autoplay:!(!f||(null===(r=window.wp)||void 0===r?void 0:r.blocks)),playsInline:!(!(null==m?void 0:m.playsInline)||(null===(a=window.wp)||void 0===a?void 0:a.blocks))},y?{provider:y}:{}),x?{provider_video_id:x}:{}),(null==m?void 0:m.poster)?{poster:m.poster}:{}),{invertTime:!0,storage:C,resetOnEnd:!!(null==l?void 0:l.reset_on_end),vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!!(null==w?void 0:w.noCookie)},tooltips:{controls:!0,seek:!0},i18n:A});return(null===(o=null===window||void 0===window?void 0:window.wp)||void 0===o?void 0:o.hooks)&&(E=window.wp.hooks.applyFilters("presto.playerSettings",E)),E}({preset:this.preset,chapters:this.chapters,branding:this.branding,analytics:!!this.analytics,automations:!!this.automations,autoplay:!this.isAdmin&&!!this.autoplay,blockAttributes:this.blockAttributes,provider:this.provider,youtube:this.youtube,provider_video_id:this.provider_video_id,i18n:this.i18n})),this.iconUrl?{iconUrl:this.iconUrl}:{})}},{key:"getPlayerData",value:function(){return{selector:this.playerEl,src:this.src||"",preload:this.preload,provider:this.provider,config:this.getConfig(),isAdmin:this.isAdmin}}},{key:"createPlayer",value:(u=Object(r.a)(w.a.mark((function e(){return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vo(this.getPlayerData());case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"handlePlayerElementChange",value:function(){!function(e){var t=e.src,i=e.el,n=e.preload,r=e.currentTime;if(!i.getAttribute("hls_loaded")&&["metadata","none"].includes(n)&&mo(t)){if(r>0)return i.style.height=null,i.style.paddingBottom=null,void i.setAttribute("hls_loaded","1");i.style.height="0px",i.style.paddingBottom="56.25%"}}({src:this.src,el:this.playerEl,preload:this.preload,currentTime:this.currentTime})}},{key:"handleMutedPreview",value:function(e){var t,i,n,r,a,o,s,l=this;this.player&&!this.isAdmin&&(!e&&this.preset.captions_enabled&&setTimeout((function(){var e;l.player.toggleCaptions(null===(e=null==l?void 0:l.preset)||void 0===e?void 0:e.captions_enabled)}),0),(null===(n=null===(i=null===(t=this.originalConfig)||void 0===t?void 0:t.blockAttributes)||void 0===i?void 0:i.mutedPreview)||void 0===n?void 0:n.enabled)&&function(e){var t=e.player,i=e.mutedPreview,n=e.captions,r=e.progress,a=e.savePosition,o=e.onPlay,s=window.navigator.userAgent;if(!s.match(/iPad/i)&&!s.match(/iPhone/i)){t.config.mutedPreview.enabled=i,t.muted=i,t.loop=i,t.config.ajaxProgress=!i&&r,t.config.save_player_position=!i&&a;try{t.toggleCaptions(!!i&&!!n)}catch(e){}return setTimeout((function(){Ma(t)||t.restart(),setTimeout((function(){t.muted=i,o()}),0)}),0),t}console.log("ios device, do not do muted autoplay")}({player:this.player,mutedPreview:this.mutedPreview,captions:!!(null===(a=null===(r=this.blockAttributes)||void 0===r?void 0:r.mutedPreview)||void 0===a?void 0:a.captions),progress:null===(o=this.originalConfig)||void 0===o?void 0:o.ajaxProgress,savePosition:null===(s=this.originalConfig)||void 0===s?void 0:s.save_player_position,onPlay:function(){return l.play()}}))}},{key:"onPlayerReady",value:function(){var e,t,i=this;this.observer&&(this.observer.disconnect(),this.observer.observe(this.el)),this.currentTime=this.player.currentTime,this.duration=this.player.duration,this.mutedPreview=null===(t=null===(e=this.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===t?void 0:t.enabled,this.player.on("timeupdate loadedmetadata",(function(){i.currentTime=i.player.currentTime,i.duration=i.player.duration})),this.player.on("playing",(function(){return i.playClass="presto-player--playing"})),this.player.on("pause",(function(){return i.playClass="presto-player--paused"})),this.player.on("ended",(function(){return i.playClass="presto-player--ended"}))}},{key:"handlePlayerEvents",value:function(e){var t=this;e.on("ready",(function(e){t.player=e.detail.plyr,t.onPlayerReady()}))}},{key:"handleLazyLoadChange",value:function(){var e=this;"youtube"!==this.provider||this.shouldLazyLoad||this.isAdmin||setTimeout((function(){e.onReload("play")}),50)}},{key:"shouldLazyLoadVideo",value:function(){var e,t,i;return"youtube"===this.provider&&!this.autoplay&&!(null===(t=null===(e=this.blockAttributes)||void 0===e?void 0:e.mutedPreview)||void 0===t?void 0:t.enabled)&&!!(null===(i=this.preset)||void 0===i?void 0:i.lazy_load_youtube)}},{key:"componentWillLoad",value:function(){var e,t,i=null===(e=this.el.children)||void 0===e?void 0:e[0];i&&i.classList&&i.classList.contains("presto-iframe-fallback-container")&&i.remove(),this.shouldLazyLoad=this.shouldLazyLoadVideo(),this.i18n=null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.i18n,this.originalConfig||(this.originalConfig=this.getConfig()),this.trackIntersection()}},{key:"componentDidLoad",value:(d=Object(r.a)(w.a.mark((function e(){var t=this;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout((function(){t.initialize()}),0);case 1:case"end":return e.stop()}}),e)}))),function(){return d.apply(this,arguments)})},{key:"initialize",value:(h=Object(r.a)(w.a.mark((function e(){var t;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.createPlayer();case 2:return t=e.sent,this.handlePlayerEvents(t),this.syncVideoHeight(),yo(this.el,this.css),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"onReload",value:(a=Object(r.a)(w.a.mark((function e(t){var i,n=this;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initialize();case 2:i=e.sent,"play"==t&&i.on("ready",(function(){n.play(),i.muted=!0,i.muted=!1,i.off("ready",n.play)}));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"syncVideoHeight",value:(t=Object(r.a)(w.a.mark((function e(){var t,n=this;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("ResizeObserver"in window!=0){e.next=5;break}return e.next=3,i.e(0).then(i.bind(null,46));case 3:t=e.sent,window.ResizeObserver=t.ResizeObserver;case 5:new ResizeObserver((function(){n.isSticky||(n.videoHeight=n.el.getBoundingClientRect().height)})).observe(this.el);case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"playVideoOnlyInViewport",value:function(){var e;!this.isAdmin&&(null===(e=this.preset)||void 0===e?void 0:e.play_video_viewport)&&this.player&&("visible"===document.visibilityState?this.observer.observe(this.el):(this.player.playing&&(this.previouslyPlaying=!0),this.pause(),this.observer.disconnect()))}},{key:"trackIntersection",value:function(){var e=this;this.observer=new IntersectionObserver((function(t){e.handleVisibilityIntersection(null==t?void 0:t[0])})),this.observer.observe(this.el)}},{key:"handleVisibilityIntersection",value:function(e){e&&(this.handleStickyScroll(e),this.handleVisibilityPlayChange(e))}},{key:"handleStickyScroll",value:function(e){var t,i,n=this;if(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll)if(this.isAdmin||this.mutedPreview||!(null===(i=null==this?void 0:this.player)||void 0===i?void 0:i.playing))this.isSticky=!1;else{var r=e.boundingClientRect;if(this.isSticky=r.height<-r.top,"visible"===document.visibilityState&&this.isSticky&&this.player){var a=function e(){window.removeEventListener("scroll",e),n.player.paused&&(n.isSticky=!1)};this.player.once("pause",(function(){window.addEventListener("scroll",a)}))}}}},{key:"handleVisibilityPlayChange",value:function(e){var t;if(!this.isAdmin&&(null===(t=this.preset)||void 0===t?void 0:t.play_video_viewport)&&(!this.player&&this.originalConfig.autoplay&&(this.previouslyPlaying=!0,this.autoplay=!!(null==e?void 0:e.isIntersecting)),this.player))return(null==e?void 0:e.isIntersecting)?(this.originalConfig.autoplay&&(this.autoplay=!0),this.previouslyPlaying&&this.play(),void(this.previouslyPlaying=!1)):void("visible"===document.visibilityState&&this.isSticky||(this.player.playing&&(this.previouslyPlaying=!0),this.pause()))}},{key:"renderMutedOverlay",value:function(){var e,t=this;if(this.player&&this.mutedPreview&&!this.isAdmin)return dt("presto-muted-overlay",{mutedOverlay:null===(e=this.player.config.blockAttributes)||void 0===e?void 0:e.mutedOverlay,onPlayVideo:function(){t.mutedPreview=!1,t.play()}})}},{key:"renderVideo",value:function(){var e,t=this;switch(this.provider){case"vimeo":return dt("presto-vimeo",{player:this.player,getRef:function(e){return t.playerEl=e},poster:this.poster,src:this.src});case"youtube":return dt("presto-youtube",{onReload:function(e){return t.onReload(null==e?void 0:e.detail)},player:this.player,getRef:function(e){return t.playerEl=e},lazyLoad:this.shouldLazyLoad,poster:this.poster,src:this.src});case"bunny":return dt("presto-bunny",{thumbnail:null===(e=null==this?void 0:this.bunny)||void 0===e?void 0:e.thumbnail,getRef:function(e){return t.playerEl=e},player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks});default:return dt("presto-video",{getRef:function(e){return t.playerEl=e},player:this.player,autoplay:this.autoplay,preload:this.preload,poster:this.poster,playsinline:this.playsinline,src:this.src,tracks:this.tracks})}}},{key:"renderCTA",value:function(){var e,t=this;if((null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.isPremium)&&!this.isAdmin)return dt("presto-cta-overlay",{direction:this.direction,player:this.player,preset:this.preset,i18n:this.i18n,onPlayVideo:function(){t.mutedPreview=!1,t.play()},onRewatchVideo:function(){t.mutedPreview=!1},currentTime:this.currentTime,duration:this.duration})}},{key:"renderEmailOverlay",value:function(){var e,t,i=this;if((null===(e=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===e?void 0:e.isPremium)&&!this.isAdmin&&!(null===(t=null===window||void 0===window?void 0:window.prestoPlayer)||void 0===t?void 0:t.logged_in))return dt("presto-email-overlay",{direction:this.direction,player:this.player,preset:this.preset,videoId:this.video_id,i18n:this.i18n,onPlayVideo:function(){i.mutedPreview=!1,i.play()},currentTime:this.currentTime,duration:this.duration})}},{key:"renderActionBar",value:function(){var e,t;if(null===(t=null===(e=this.preset)||void 0===e?void 0:e.action_bar)||void 0===t?void 0:t.enabled)return dt("presto-action-bar",{config:this.preset.action_bar,currentTime:this.currentTime,duration:this.duration,youtube:this.youtube})}},{key:"stickyPositionClass",value:function(){var e,t;return this.isSticky?(null===(e=this.preset)||void 0===e?void 0:e.sticky_scroll_position)?"presto-sticky--".concat(null===(t=this.preset)||void 0===t?void 0:t.sticky_scroll_position.replace(/\s+/g,"-")):"presto-sticky--bottom-right":""}},{key:"render",value:function(){var e,t,i,n,r;return dt(pt,{style:{height:this.isSticky?"".concat(this.videoHeight,"px"):"auto"}},dt("div",{part:"wrapper",dir:this.direction,class:"presto-player__wrapper fitvidsignore\n presto-video-id-".concat(this.video_id,"\n ").concat(this.isSticky?"presto-sticky":"","\n ").concat(this.stickyPositionClass(),"\n ").concat("rtl"===this.direction?"rtl":"","\n ").concat(!!(null===(e=this.preset)||void 0===e?void 0:e.skin)&&"skin-".concat(null===(t=this.preset)||void 0===t?void 0:t.skin),"\n ").concat((null===(i=this.preset)||void 0===i?void 0:i.hide_youtube)?"hide-youtube-ui":"","\n ").concat((null===(n=this.preset)||void 0===n?void 0:n.caption_style)?"caption-style-".concat(null===(r=this.preset)||void 0===r?void 0:r.caption_style):"","\n ").concat(this.mutedPreview?"is-muted-overlay":"","\n ").concat(this.playClass?this.playClass:"")},dt("div",null,dt("slot",{name:"player-start"}),this.renderCTA(),this.renderEmailOverlay(),dt("slot",{name:"player-before-video"}),this.renderVideo(),dt("slot",{name:"player-after-video"}),this.renderActionBar(),this.renderMutedOverlay(),dt("slot",{name:"player-end"}))))}},{key:"el",get:function(){return this}}],[{key:"watchers",get:function(){return{isSticky:["handleStickyChange"],playerEl:["handlePlayerElementChange"],currentTime:["handlePlayerElementChange"],mutedPreview:["handleMutedPreview"],shouldLazyLoad:["handleLazyLoadChange"]}}},{key:"style",get:function(){return'@charset "UTF-8";@keyframes plyr-progress{to{background-position:var(--plyr-progress-loading-size, 25px) 0}}@keyframes plyr-popup{0%{opacity:0.5;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes plyr-fade-in{from{opacity:0}to{opacity:1}}.plyr{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;align-items:center;direction:ltr;display:flex;flex-direction:column;font-family:var(--plyr-font-family, inherit);font-variant-numeric:tabular-nums;font-weight:var(--plyr-font-weight-regular, 400);line-height:var(--plyr-line-height, 1.7);max-width:100%;min-width:200px;position:relative;text-shadow:none;transition:box-shadow 0.3s ease;z-index:0}.plyr video,.plyr audio,.plyr iframe{display:block;height:100%;width:100%}.plyr button{font:inherit;line-height:inherit;width:auto}.plyr:focus{outline:0}.plyr--full-ui{box-sizing:border-box}.plyr--full-ui *,.plyr--full-ui *::after,.plyr--full-ui *::before{box-sizing:inherit}.plyr--full-ui a,.plyr--full-ui button,.plyr--full-ui input,.plyr--full-ui label{touch-action:manipulation}.plyr__badge{background:var(--plyr-badge-background, #4a5464);border-radius:var(--plyr-badge-border-radius, 2px);color:var(--plyr-badge-text-color, #fff);font-size:var(--plyr-font-size-badge, 9px);line-height:1;padding:3px 4px}.plyr--full-ui ::-webkit-media-text-track-container{display:none}.plyr__captions{animation:plyr-fade-in 0.3s ease;bottom:0;display:none;font-size:var(--plyr-font-size-small, 13px);left:0;padding:var(--plyr-control-spacing, 10px);position:absolute;text-align:center;transition:transform 0.4s ease-in-out;width:100%}.plyr__captions span:empty{display:none}@media (min-width: 480px){.plyr__captions{font-size:var(--plyr-font-size-base, 15px);padding:calc(var(--plyr-control-spacing, 10px) * 2)}}@media (min-width: 768px){.plyr__captions{font-size:var(--plyr-font-size-large, 18px)}}.plyr--captions-active .plyr__captions{display:block}.plyr:not(.plyr--hide-controls) .plyr__controls:not(:empty)~.plyr__captions{transform:translateY(calc(var(--plyr-control-spacing, 10px) * -4))}.plyr__caption{background:var(--plyr-captions-background, rgba(0, 0, 0, 0.8));border-radius:2px;box-decoration-break:clone;color:var(--plyr-captions-text-color, #fff);line-height:185%;padding:0.2em 0.5em;white-space:pre-wrap}.plyr__caption div{display:inline}.plyr__control{background:transparent;border:0;border-radius:var(--plyr-control-radius, 3px);color:inherit;cursor:pointer;flex-shrink:0;overflow:visible;padding:calc(var(--plyr-control-spacing, 10px) * 0.7);position:relative;transition:all 0.3s ease}.plyr__control svg{display:block;fill:currentColor;height:var(--plyr-control-icon-size, 18px);pointer-events:none;width:var(--plyr-control-icon-size, 18px)}.plyr__control:focus{outline:0}.plyr__control.plyr__tab-focus{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}a.plyr__control{text-decoration:none}a.plyr__control::after,a.plyr__control::before{display:none}.plyr__control:not(.plyr__control--pressed) .icon--pressed,.plyr__control.plyr__control--pressed .icon--not-pressed,.plyr__control:not(.plyr__control--pressed) .label--pressed,.plyr__control.plyr__control--pressed .label--not-pressed{display:none}.plyr--full-ui ::-webkit-media-controls{display:none}.plyr__controls{align-items:center;display:flex;justify-content:flex-end;text-align:center}.plyr__controls .plyr__progress__container{flex:1;min-width:0}.plyr__controls .plyr__controls__item{margin-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item:first-child{margin-left:0;margin-right:auto}.plyr__controls .plyr__controls__item.plyr__progress__container{padding-left:calc(var(--plyr-control-spacing, 10px) / 4)}.plyr__controls .plyr__controls__item.plyr__time{padding:0 calc(var(--plyr-control-spacing, 10px) / 2)}.plyr__controls .plyr__controls__item.plyr__progress__container:first-child,.plyr__controls .plyr__controls__item.plyr__time:first-child,.plyr__controls .plyr__controls__item.plyr__time+.plyr__time{padding-left:0}.plyr__controls:empty{display:none}.plyr [data-plyr=captions],.plyr [data-plyr=pip],.plyr [data-plyr=airplay],.plyr [data-plyr=fullscreen]{display:none}.plyr--captions-enabled [data-plyr=captions],.plyr--pip-supported [data-plyr=pip],.plyr--airplay-supported [data-plyr=airplay],.plyr--fullscreen-enabled [data-plyr=fullscreen]{display:inline-block}.plyr__menu{display:flex;position:relative}.plyr__menu .plyr__control svg{transition:transform 0.3s ease}.plyr__menu .plyr__control[aria-expanded=true] svg{transform:rotate(90deg)}.plyr__menu .plyr__control[aria-expanded=true] .plyr__tooltip{display:none}.plyr__menu__container{animation:plyr-popup 0.2s ease;background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));border-radius:4px;bottom:100%;box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-menu-color, #4a5464);font-size:var(--plyr-font-size-base, 15px);margin-bottom:10px;position:absolute;right:-3px;text-align:left;white-space:nowrap;z-index:3}.plyr__menu__container>div{overflow:hidden;transition:height 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1)}.plyr__menu__container::after{border:var(--plyr-menu-arrow-size, 4px) solid transparent;border-top-color:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));content:"";height:0;position:absolute;right:calc(((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7)) - (var(--plyr-menu-arrow-size, 4px) / 2));top:100%;width:0}.plyr__menu__container [role=menu]{padding:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container [role=menuitem],.plyr__menu__container [role=menuitemradio]{margin-top:2px}.plyr__menu__container [role=menuitem]:first-child,.plyr__menu__container [role=menuitemradio]:first-child{margin-top:0}.plyr__menu__container .plyr__control{align-items:center;color:var(--plyr-menu-color, #4a5464);display:flex;font-size:var(--plyr-font-size-menu, var(--plyr-font-size-small, 13px));padding-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5);padding-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 1.5);user-select:none;width:100%}.plyr__menu__container .plyr__control>span{align-items:inherit;display:flex;width:100%}.plyr__menu__container .plyr__control::after{border:var(--plyr-menu-item-arrow-size, 4px) solid transparent;content:"";position:absolute;top:50%;transform:translateY(-50%)}.plyr__menu__container .plyr__control--forward{padding-right:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4)}.plyr__menu__container .plyr__control--forward::after{border-left-color:var(--plyr-menu-arrow-color, #728197);right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--forward.plyr__tab-focus::after,.plyr__menu__container .plyr__control--forward:hover::after{border-left-color:currentColor}.plyr__menu__container .plyr__control--back{font-weight:var(--plyr-font-weight-regular, 400);margin:calc(var(--plyr-control-spacing, 10px) * 0.7);margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 4);position:relative;width:calc(100% - (calc(var(--plyr-control-spacing, 10px) * 0.7) * 2))}.plyr__menu__container .plyr__control--back::after{border-right-color:var(--plyr-menu-arrow-color, #728197);left:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) * 1.5) - var(--plyr-menu-item-arrow-size, 4px))}.plyr__menu__container .plyr__control--back::before{background:var(--plyr-menu-back-border-color, #dcdfe5);box-shadow:0 1px 0 var(--plyr-menu-back-border-shadow-color, #fff);content:"";height:1px;left:0;margin-top:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) / 2);overflow:hidden;position:absolute;right:0;top:100%}.plyr__menu__container .plyr__control--back.plyr__tab-focus::after,.plyr__menu__container .plyr__control--back:hover::after{border-right-color:currentColor}.plyr__menu__container .plyr__control[role=menuitemradio]{padding-left:calc(var(--plyr-control-spacing, 10px) * 0.7)}.plyr__menu__container .plyr__control[role=menuitemradio]::before,.plyr__menu__container .plyr__control[role=menuitemradio]::after{border-radius:100%}.plyr__menu__container .plyr__control[role=menuitemradio]::before{background:rgba(0, 0, 0, 0.1);content:"";display:block;flex-shrink:0;height:16px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;width:16px}.plyr__menu__container .plyr__control[role=menuitemradio]::after{background:#fff;border:0;height:6px;left:12px;opacity:0;top:50%;transform:translateY(-50%) scale(0);transition:transform 0.3s ease, opacity 0.3s ease;width:6px}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::before{background:var(--plyr-control-toggle-checked-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)))}.plyr__menu__container .plyr__control[role=menuitemradio][aria-checked=true]::after{opacity:1;transform:translateY(-50%) scale(1)}.plyr__menu__container .plyr__control[role=menuitemradio].plyr__tab-focus::before,.plyr__menu__container .plyr__control[role=menuitemradio]:hover::before{background:rgba(35, 40, 47, 0.1)}.plyr__menu__container .plyr__menu__value{align-items:center;display:flex;margin-left:auto;margin-right:calc((calc(var(--plyr-control-spacing, 10px) * 0.7) - 2) * -1);overflow:hidden;padding-left:calc(calc(var(--plyr-control-spacing, 10px) * 0.7) * 3.5);pointer-events:none}.plyr--full-ui input[type=range]{-webkit-appearance:none;background:transparent;border:0;border-radius:calc(var(--plyr-range-thumb-height, 13px) * 2);color:var(--plyr-range-fill-background, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));display:block;height:calc((var(--plyr-range-thumb-active-shadow-width, 3px) * 2) + var(--plyr-range-thumb-height, 13px));margin:0;min-width:0;padding:0;transition:box-shadow 0.3s ease;width:100%}.plyr--full-ui input[type=range]::-webkit-slider-runnable-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background-image:linear-gradient(to right, currentColor var(--value, 0%), transparent var(--value, 0%))}.plyr--full-ui input[type=range]::-webkit-slider-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);-webkit-appearance:none;margin-top:calc(((var(--plyr-range-thumb-height, 13px) - var(--plyr-range-track-height, 5px)) / 2) * -1)}.plyr--full-ui input[type=range]::-moz-range-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-moz-range-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px)}.plyr--full-ui input[type=range]::-moz-range-progress{background:currentColor;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px)}.plyr--full-ui input[type=range]::-ms-track{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;color:transparent}.plyr--full-ui input[type=range]::-ms-fill-upper{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none}.plyr--full-ui input[type=range]::-ms-fill-lower{background:transparent;border:0;border-radius:calc(var(--plyr-range-track-height, 5px) / 2);height:var(--plyr-range-track-height, 5px);transition:box-shadow 0.3s ease;user-select:none;background:currentColor}.plyr--full-ui input[type=range]::-ms-thumb{background:var(--plyr-range-thumb-background, #fff);border:0;border-radius:100%;box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2));height:var(--plyr-range-thumb-height, 13px);position:relative;transition:all 0.2s ease;width:var(--plyr-range-thumb-height, 13px);margin-top:0}.plyr--full-ui input[type=range]::-ms-tooltip{display:none}.plyr--full-ui input[type=range]:focus{outline:0}.plyr--full-ui input[type=range]::-moz-focus-outer{border:0}.plyr--full-ui input[type=range].plyr__tab-focus::-webkit-slider-runnable-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-moz-range-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr--full-ui input[type=range].plyr__tab-focus::-ms-track{outline-color:var(--plyr-tab-focus-color, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));outline-offset:2px;outline-style:dotted;outline-width:3px}.plyr__poster{background-color:var(--plyr-video-background, var(--plyr-video-background, black));background-position:50% 50%;background-repeat:no-repeat;background-size:contain;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity 0.2s ease;width:100%;z-index:1}.plyr--stopped.plyr__poster-enabled .plyr__poster{opacity:1}.plyr__time{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px))}.plyr__time+.plyr__time::before{content:"⁄";margin-right:var(--plyr-control-spacing, 10px)}@media (max-width: 767px){.plyr__time+.plyr__time{display:none}}.plyr__tooltip{background:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:var(--plyr-tooltip-radius, 3px);bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:var(--plyr-tooltip-color, #4a5464);font-size:var(--plyr-font-size-small, 13px);font-weight:var(--plyr-font-weight-regular, 400);left:50%;line-height:1.3;margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:calc(var(--plyr-control-spacing, 10px) / 2) calc(calc(var(--plyr-control-spacing, 10px) / 2) * 1.5);pointer-events:none;position:absolute;transform:translate(-50%, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;white-space:nowrap;z-index:2}.plyr__tooltip::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr .plyr__control:hover .plyr__tooltip,.plyr .plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__tooltip--visible{opacity:1;transform:translate(-50%, 0) scale(1)}.plyr .plyr__control:hover .plyr__tooltip{z-index:3}.plyr__controls>.plyr__control:first-child .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip{left:0;transform:translate(0, 10px) scale(0.8);transform-origin:0 100%}.plyr__controls>.plyr__control:first-child .plyr__tooltip::before,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip::before{left:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7))}.plyr__controls>.plyr__control:last-child .plyr__tooltip{left:auto;right:0;transform:translate(0, 10px) scale(0.8);transform-origin:100% 100%}.plyr__controls>.plyr__control:last-child .plyr__tooltip::before{left:auto;right:calc((var(--plyr-control-icon-size, 18px) / 2) + calc(var(--plyr-control-spacing, 10px) * 0.7));transform:translateX(50%)}.plyr__controls>.plyr__control:first-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child .plyr__tooltip--visible,.plyr__controls>.plyr__control:first-child+.plyr__control:hover .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:first-child+.plyr__control .plyr__tooltip--visible,.plyr__controls>.plyr__control:last-child:hover .plyr__tooltip,.plyr__controls>.plyr__control:last-child.plyr__tab-focus .plyr__tooltip,.plyr__controls>.plyr__control:last-child .plyr__tooltip--visible{transform:translate(0, 0) scale(1)}.plyr__progress{left:calc(var(--plyr-range-thumb-height, 13px) * 0.5);margin-right:var(--plyr-range-thumb-height, 13px);position:relative}.plyr__progress input[type=range],.plyr__progress__buffer{margin-left:calc(var(--plyr-range-thumb-height, 13px) * -0.5);margin-right:calc(var(--plyr-range-thumb-height, 13px) * -0.5);width:calc(100% + var(--plyr-range-thumb-height, 13px))}.plyr__progress input[type=range]{position:relative;z-index:2}.plyr__progress .plyr__tooltip{font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));left:0}.plyr__progress__buffer{-webkit-appearance:none;background:transparent;border:0;border-radius:100px;height:var(--plyr-range-track-height, 5px);left:0;margin-top:calc((var(--plyr-range-track-height, 5px) / 2) * -1);padding:0;position:absolute;top:50%}.plyr__progress__buffer::-webkit-progress-bar{background:transparent}.plyr__progress__buffer::-webkit-progress-value{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-moz-progress-bar{background:currentColor;border-radius:100px;min-width:var(--plyr-range-track-height, 5px);transition:width 0.2s ease}.plyr__progress__buffer::-ms-fill{border-radius:100px;transition:width 0.2s ease}.plyr--loading .plyr__progress__buffer{animation:plyr-progress 1s linear infinite;background-image:linear-gradient(-45deg, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 25%, transparent 25%, transparent 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 50%, var(--plyr-progress-loading-background, rgba(35, 40, 47, 0.6)) 75%, transparent 75%, transparent);background-repeat:repeat-x;background-size:var(--plyr-progress-loading-size, 25px) var(--plyr-progress-loading-size, 25px);color:transparent}.plyr--video.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr--audio.plyr--loading .plyr__progress__buffer{background-color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr__volume{align-items:center;display:flex;max-width:110px;min-width:80px;position:relative;width:20%}.plyr__volume input[type=range]{margin-left:calc(var(--plyr-control-spacing, 10px) / 2);margin-right:calc(var(--plyr-control-spacing, 10px) / 2);position:relative;z-index:2}.plyr--is-ios .plyr__volume{min-width:0;width:auto}.plyr--audio{display:block}.plyr--audio .plyr__controls{background:var(--plyr-audio-controls-background, #fff);border-radius:inherit;color:var(--plyr-audio-control-color, #4a5464);padding:var(--plyr-control-spacing, 10px)}.plyr--audio .plyr__control.plyr__tab-focus,.plyr--audio .plyr__control:hover,.plyr--audio .plyr__control[aria-expanded=true]{background:var(--plyr-audio-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-audio-control-color-hover, #fff)}.plyr--full-ui.plyr--audio input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-moz-range-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]::-ms-track{background-color:var(--plyr-audio-range-track-background, var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6)))}.plyr--full-ui.plyr--audio input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--full-ui.plyr--audio input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(35, 40, 47, 0.1))}.plyr--audio .plyr__progress__buffer{color:var(--plyr-audio-progress-buffered-background, rgba(193, 200, 209, 0.6))}.plyr--video{background:var(--plyr-video-background, var(--plyr-video-background, black));overflow:hidden}.plyr--video.plyr--menu-open{overflow:visible}.plyr__video-wrapper{background:var(--plyr-video-background, var(--plyr-video-background, black));height:100%;margin:auto;overflow:hidden;position:relative;width:100%}.plyr__video-embed,.plyr__video-wrapper--fixed-ratio{height:0;padding-bottom:56.25%}.plyr__video-embed iframe,.plyr__video-wrapper--fixed-ratio video{border:0;left:0;position:absolute;top:0}.plyr--full-ui .plyr__video-embed>.plyr__video-embed__container{padding-bottom:240%;position:relative;transform:translateY(-38.28125%)}.plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75)));border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;bottom:0;color:var(--plyr-video-control-color, #fff);left:0;padding:calc(var(--plyr-control-spacing, 10px) / 2);padding-top:calc(var(--plyr-control-spacing, 10px) * 2);position:absolute;right:0;transition:opacity 0.4s ease-in-out, transform 0.4s ease-in-out;z-index:3}@media (min-width: 480px){.plyr--video .plyr__controls{padding:var(--plyr-control-spacing, 10px);padding-top:calc(var(--plyr-control-spacing, 10px) * 3.5)}}.plyr--video.plyr--hide-controls .plyr__controls{opacity:0;pointer-events:none;transform:translateY(100%)}.plyr--video .plyr__control.plyr__tab-focus,.plyr--video .plyr__control:hover,.plyr--video .plyr__control[aria-expanded=true]{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:var(--plyr-video-control-color-hover, #fff)}.plyr__control--overlaid{background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));border:0;border-radius:100%;color:var(--plyr-video-control-color, #fff);display:none;left:50%;opacity:0.9;padding:calc(var(--plyr-control-spacing, 10px) * 1.5);position:absolute;top:50%;transform:translate(-50%, -50%);transition:0.3s;z-index:2}.plyr__control--overlaid svg{left:2px;position:relative}.plyr__control--overlaid:hover,.plyr__control--overlaid:focus{opacity:1}.plyr--playing .plyr__control--overlaid{opacity:0;visibility:hidden}.plyr--full-ui.plyr--video .plyr__control--overlaid{display:block}.plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-moz-range-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]::-ms-track{background-color:var(--plyr-video-range-track-background, var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25)))}.plyr--full-ui.plyr--video input[type=range]:active::-webkit-slider-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-moz-range-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--full-ui.plyr--video input[type=range]:active::-ms-thumb{box-shadow:var(--plyr-range-thumb-shadow, 0 1px 1px rgba(35, 40, 47, 0.15), 0 0 0 1px rgba(35, 40, 47, 0.2)), 0 0 0 var(--plyr-range-thumb-active-shadow-width, 3px) var(--plyr-audio-range-thumb-active-shadow-color, rgba(255, 255, 255, 0.5))}.plyr--video .plyr__progress__buffer{color:var(--plyr-video-progress-buffered-background, rgba(255, 255, 255, 0.25))}.plyr:fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:fullscreen video{height:100%}.plyr:fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-webkit-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-webkit-full-screen video{height:100%}.plyr:-webkit-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-webkit-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-webkit-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-webkit-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-webkit-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-moz-full-screen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-moz-full-screen video{height:100%}.plyr:-moz-full-screen .plyr__video-wrapper{height:100%;position:static}.plyr:-moz-full-screen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-moz-full-screen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-moz-full-screen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-moz-full-screen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr:-ms-fullscreen{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%}.plyr:-ms-fullscreen video{height:100%}.plyr:-ms-fullscreen .plyr__video-wrapper{height:100%;position:static}.plyr:-ms-fullscreen.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen{display:block}.plyr:-ms-fullscreen .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr:-ms-fullscreen.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr:-ms-fullscreen .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr--fullscreen-fallback{background:#000;border-radius:0 !important;height:100%;margin:0;width:100%;bottom:0;display:block;left:0;position:fixed;right:0;top:0;z-index:10000000}.plyr--fullscreen-fallback video{height:100%}.plyr--fullscreen-fallback .plyr__video-wrapper{height:100%;position:static}.plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{height:0;position:relative}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen{display:block}.plyr--fullscreen-fallback .plyr__control .icon--exit-fullscreen+svg{display:none}.plyr--fullscreen-fallback.plyr--hide-controls{cursor:none}@media (min-width: 1024px){.plyr--fullscreen-fallback .plyr__captions{font-size:var(--plyr-font-size-xlarge, 21px)}}.plyr__ads{border-radius:inherit;bottom:0;cursor:pointer;left:0;overflow:hidden;position:absolute;right:0;top:0;z-index:-1}.plyr__ads>div,.plyr__ads>div iframe{height:100%;position:absolute;width:100%}.plyr__ads::after{background:#23282f;border-radius:2px;bottom:var(--plyr-control-spacing, 10px);color:#fff;content:attr(data-badge-text);font-size:11px;padding:2px 6px;pointer-events:none;position:absolute;right:var(--plyr-control-spacing, 10px);z-index:3}.plyr__ads::after:empty{display:none}.plyr__cues{background:currentColor;display:block;height:var(--plyr-range-track-height, 5px);left:0;margin:-var(--plyr-range-track-height, 5px)/2 0 0;opacity:0.8;position:absolute;top:50%;width:3px;z-index:3}.plyr__preview-thumb{background-color:var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));border-radius:3px;bottom:100%;box-shadow:var(--plyr-tooltip-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));margin-bottom:calc(calc(var(--plyr-control-spacing, 10px) / 2) * 2);opacity:0;padding:var(--plyr-tooltip-radius, 3px);pointer-events:none;position:absolute;transform:translate(0, 10px) scale(0.8);transform-origin:50% 100%;transition:transform 0.2s 0.1s ease, opacity 0.2s 0.1s ease;z-index:2}.plyr__preview-thumb--is-shown{opacity:1;transform:translate(0, 0) scale(1)}.plyr__preview-thumb::before{border-left:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-right:var(--plyr-tooltip-arrow-size, 4px) solid transparent;border-top:var(--plyr-tooltip-arrow-size, 4px) solid var(--plyr-tooltip-background, rgba(255, 255, 255, 0.9));bottom:calc(var(--plyr-tooltip-arrow-size, 4px) * -1);content:"";height:0;left:50%;position:absolute;transform:translateX(-50%);width:0;z-index:2}.plyr__preview-thumb__image-container{background:#c1c8d1;border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);overflow:hidden;position:relative;z-index:0}.plyr__preview-thumb__image-container img{height:100%;left:0;max-height:none;max-width:none;position:absolute;top:0;width:100%}.plyr__preview-thumb__time-container{bottom:6px;left:0;position:absolute;right:0;white-space:nowrap;z-index:3}.plyr__preview-thumb__time-container span{background-color:rgba(0, 0, 0, 0.55);border-radius:calc(var(--plyr-tooltip-radius, 3px) - 1px);color:#fff;font-size:var(--plyr-font-size-time, var(--plyr-font-size-small, 13px));padding:3px 6px}.plyr__preview-scrubbing{bottom:0;filter:blur(1px);height:100%;left:0;margin:auto;opacity:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;transition:opacity 0.3s ease;width:100%;z-index:1}.plyr__preview-scrubbing--is-shown{opacity:1}.plyr__preview-scrubbing img{height:100%;left:0;max-height:none;max-width:none;object-fit:contain;position:absolute;top:0;width:100%}.plyr--no-transition{transition:none !important}.plyr__sr-only{clip:rect(1px, 1px, 1px, 1px);overflow:hidden;border:0 !important;height:1px !important;padding:0 !important;position:absolute !important;width:1px !important}.plyr [hidden]{display:none !important}video,iframe{max-width:100%}.presto-player__wrapper{position:relative;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper img{max-width:100%}.presto-player__wrapper .plyr.plyr--video.plyr--menu-open{overflow:hidden}.presto-player__wrapper .plyr--fullscreen-fallback.plyr--vimeo .plyr__video-wrapper{top:50%;transform:translateY(-50%)}.presto-player__wrapper .plyr--fullscreen-fallback.plyr{border-radius:0 !important}.presto-player__wrapper .plyr--fullscreen-fallback.plyr iframe{border-radius:0 !important}.presto-player__wrapper .plyr__menu__container{overflow:auto}.presto-player__wrapper .plyr__menu__container:after{display:none}.presto-player__wrapper img{border:none}.presto-player__wrapper video{margin:auto}.presto-player__wrapper iframe{height:100%}.presto-player__wrapper .plyr--video .plyr__control:active,.presto-player__wrapper .plyr--video .plyr__control:focus{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .plyr__poster{background-size:cover;z-index:2}.presto-player__wrapper .presto-player__logo{margin:0;display:block;position:absolute;z-index:3;opacity:0.5;object-fit:contain;transition:bottom 0.4s ease-in-out;max-width:var(--presto-player-logo-width, 75px)}.presto-player__wrapper .presto-player__logo.is-bottom-right{left:auto;right:20px;top:auto;bottom:60px}.presto-player__wrapper .presto-player__logo.is-bottom-left{left:20px;right:auto;top:auto;bottom:60px}@media screen and (min-width: 380px){.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper.presto-player--hide-controls .presto-player__logo.is-bottom-left,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-right,.presto-player__wrapper .plyr--hide-controls .presto-player__logo.is-bottom-left{bottom:20px}}.presto-player__wrapper .presto-player-progress__marker{width:16px;height:16px;padding:0;border:2px solid rgba(255, 255, 255, 0.5);position:absolute;border-radius:9999px;bottom:calc(50% - 8px);z-index:9;margin-left:-8px !important}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__poster{display:none}.presto-player__wrapper.presto-player--ended .plyr--youtube .plyr__control.plyr__control--overlaid{display:none}.presto-player__wrapper button.plyr__control.plyr__control--overlaid:focus{background:inherit;border:none;outline:0;position:absolute;top:50%;transform:translate(-50%, -50%)}.presto-player__wrapper .plyr__controls__item.plyr__progress__container{position:relative}.presto-player__wrapper .plyr--full-ui.plyr--video input[type=range]::-webkit-slider-runnable-track{box-shadow:none}.presto-player__wrapper .plyr--video .plyr__controls{background:var(--plyr-video-controls-background, linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75)))}.presto-player__wrapper .presto-player-toc{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";line-height:1.4;position:absolute;top:auto;right:0;left:0;bottom:0;max-height:calc(100%);max-width:calc(100%);background:rgba(255, 255, 255, 0.9);background:var(--plyr-menu-background, rgba(255, 255, 255, 0.9));left:auto;padding:20px 15px;border-radius:4px;width:100%;z-index:9;box-shadow:0 1px 2px rgba(0, 0, 0, 0.15);box-shadow:var(--plyr-menu-shadow, 0 1px 2px rgba(0, 0, 0, 0.15));color:#4a5464;color:var(--plyr-menu-color, #4a5464);font-size:15px;font-size:var(--plyr-font-size-base, 15px);white-space:nowrap;z-index:3;display:flex;flex-direction:column;transition:bottom 0.25s ease}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc{right:20px;bottom:60px;width:300px;max-height:calc(100% - 80px);max-width:calc(100vw - 70px)}}.presto-player__wrapper .presto-player-toc__wrapper{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3;visibility:hidden;opacity:0;transition:opacity 0.3s ease-in-out, visibility 0.3s ease-in-out}.presto-player__wrapper .presto-player-toc__wrapper.is-showing{visibility:visible;opacity:1}.presto-player__wrapper .presto-player-toc__cover{position:absolute;top:0;left:0;bottom:0;right:0;z-index:3}.presto-player__wrapper .presto-player-toc__list{flex:1;overflow:auto}.presto-player__wrapper .presto-player-toc__title{font-size:12px;font-weight:bold;margin-bottom:10px;margin-left:10px;margin-right:10px;display:none}@media screen and (min-width: 380px){.presto-player__wrapper .presto-player-toc__title{display:block}}.presto-player__wrapper .presto-player-toc__name{white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis}.presto-player__wrapper .presto-player-toc__chapter{padding:12px;border-radius:3px;cursor:pointer;line-height:1;display:flex;align-items:center;transition:background-color 0.4s ease, color 0.4s ease;margin-bottom:2px;position:relative}.presto-player__wrapper .presto-player-toc__chapter:last-child{margin-bottom:0}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted,.presto-player__wrapper .presto-player-toc__chapter:hover{background:#00b3ff;background:var(--plyr-video-control-background-hover, var(--plyr-color-main, var(--plyr-color-main, #00b3ff)));color:#fff;color:var(--plyr-video-control-color-hover, #fff)}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted{padding-right:30px}.presto-player__wrapper .presto-player-toc__chapter.is-highlighted:after{background:rgba(255, 255, 255, 0.5);content:"";display:block;flex-shrink:0;height:8px;width:8px;margin-right:10px;margin-right:var(--plyr-control-spacing, 10px);transition:all 0.3s ease;border-radius:9999px;position:absolute;right:7px}.presto-player__wrapper .presto-player-toc__order{margin-right:12px;opacity:0.5}.presto-player__wrapper.rtl{direction:rtl}.presto-player__wrapper.rtl .presto-player-toc__order{order:2;margin-left:12px;margin-right:0}.presto-player__wrapper.rtl .presto-player-toc__name{direction:rtl}.presto-player__wrapper .presto-player-error{position:absolute;top:0;left:0;bottom:0;right:0;background:rgba(0, 0, 0, 0.9);color:#fff;display:flex;align-items:center;justify-content:center;z-index:10;text-align:center}.presto-player__wrapper .presto-player-error__title{font-size:18px;font-weight:bold;margin-bottom:8px}.presto-player__wrapper .presto-player-error__description{opacity:0.75}.presto-player__wrapper.hide-youtube-ui .plyr__video-embed iframe{top:-50%;height:200%}.presto-player__wrapper .plyr--vimeo.plyr--playing .plyr__video-embed__container{pointer-events:none}.presto-player__wrapper .plyr__control--overlaid{border-radius:6px;padding-left:26px;padding-right:26px;position:absolute !important;top:50% !important}.presto-player__wrapper.skin-stacked .plyr__controls{flex-wrap:wrap}.presto-player__wrapper.skin-stacked .presto-player-progress__marker{transform:scale(0.75)}.presto-player__wrapper.skin-stacked .plyr__controls{justify-content:flex-start}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container{order:-1;flex:1 0 100%}.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+:not(.plyr__time),.presto-player__wrapper.skin-stacked .plyr__controls__item.plyr__progress__container+.plyr__time+*{margin-left:auto}.presto-player__wrapper.skin-stacked .plyr__controls .plyr__controls__item:first-child{margin:0}.presto-player__wrapper.skin-stacked .plyr__progress{height:19px;display:flex;align-items:center}.presto-player__wrapper.skin-stacked .plyr__progress .plyr__progress__buffer{height:3px;transition:all 0.25s ease;position:absolute;top:calc(50% + 1px)}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-track{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-upper{height:3px;transition:all 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-fill-lower{height:3px;transition:height 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-moz-range-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress input[type=range]::-ms-thumb{visibility:hidden;opacity:0;transition:opacity 0.25s ease}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .presto-player-progress__marker{transform:scale(1)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress .plyr__progress__buffer{height:5px;top:calc(50%)}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]{overflow:visible}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-runnable-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-track{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-upper{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-fill-lower{height:5px}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-webkit-slider-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-moz-range-thumb{visibility:visible;opacity:1}.presto-player__wrapper.skin-stacked .plyr__progress__container:hover .plyr__progress input[type=range]::-ms-thumb{visibility:visible;opacity:1}.presto-sticky-parent{z-index:99998}@media screen and (min-width: 960px){.presto-sticky{--presto-sticky-space:15px;position:fixed;z-index:3000;max-width:var(--presto-sticky-width, 380px);width:100vw}.presto-sticky .plyr__controls,.presto-sticky .presto-player-toc__wrapper,.presto-sticky presto-action-bar,.presto-sticky .presto-player__logo{display:none}.presto-sticky--top-left{top:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--top-center{top:var(--presto-sticky-space);left:0;right:0;margin:0 auto}.presto-sticky--top-right{top:var(--presto-sticky-space);right:var(--presto-sticky-space)}.presto-sticky--center-left{top:0;bottom:0;margin:auto 0;left:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--center-center{top:0;bottom:0;right:0;left:0;margin:auto;display:flex;align-items:center}.presto-sticky--center-right{top:0;bottom:0;margin:auto 0;right:var(--presto-sticky-space);display:flex;align-items:center}.presto-sticky--bottom-left{bottom:var(--presto-sticky-space);left:var(--presto-sticky-space)}.presto-sticky--bottom-cent
15
  * Compiled with the help of https://wpack.io
16
  * A zero setup Webpack Bundler Script for WordPress
17
  */
18
+ (window.wpackioprestoPlayeranalyticsJsonp=window.wpackioprestoPlayeranalyticsJsonp||[]).push([[3],[function(e,t,i){e.exports=i(33)},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(20);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,a=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);o=!0);}catch(e){s=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw r}}return a}}(e,t)||Object(n.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,i){"use strict";i.d(t,"a",(function(){return D})),i.d(t,"b",(function(){return z}));var n=i(10),r=i(13);var a=i(9);var o=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t,i=function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(i,t),this.tags.push(i)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{var a=105===e.charCodeAt(1)&&64===e.charCodeAt(0);r.insertRule(e,a?0:r.cssRules.length)}catch(e){0}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}();var s=function(e){function t(e,t,n){var r=t.trim().split(g);t=r;var a=r.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=i(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var c=0;c<o;++c)t[l++]=i(e[c]+" ",r[s],n).trim()}return t}function i(e,t,i){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*i&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,i,n){var o=e+";",s=2*t+3*i+4*n;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===E||2===E&&a(l,1)?"-webkit-"+l+l:l}if(0===E||2===E&&!a(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(C,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return p.test(o)?o.replace(u,":-webkit-")+o.replace(u,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(x,"tb");break;case 232:l=o.replace(x,"tb-rl");break;case 220:l=o.replace(x,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(_,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(_,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===A.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,i,n).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===i+n&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+o}return o}function a(e,t){var i=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?i:10);return i=e.substring(i+1,e.length-1),D(2!==t?n:n.replace(S,"$1"),i,t)}function o(e,t){var i=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return i!==t+";"?i.replace(k," or ($1)").substring(4):"("+t+")"}function s(e,t,i,n,r,a,o,s,l,h){for(var d,u=0,p=t;u<I;++u)switch(d=O[u].call(c,e,p,i,n,r,a,o,s,l,h)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?E=1:(E=2,D=e):E=0),l}function c(e,i){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var l=s(-1,i,n,n,P,T,0,0,0,0);void 0!==l&&"string"==typeof l&&(i=l)}var c=function e(i,n,l,c,u){for(var p,f,g,m,x,k=0,_=0,S=0,A=0,C=0,O=0,D=g=p=0,N=0,R=0,F=0,H=0,Y=l.length,$=Y-1,j="",X="",B="",W="";N<Y;){if(f=l.charCodeAt(N),N===$&&0!==_+A+S+k&&(0!==_&&(f=47===_?10:47),A=S=k=0,Y++,$++),0===_+A+S+k){if(N===$&&(0<R&&(j=j.replace(d,"")),0<j.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:j+=l.charAt(N)}f=59}switch(f){case 123:for(p=(j=j.trim()).charCodeAt(0),g=1,H=++N;N<Y;){switch(f=l.charCodeAt(N)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(N+1)){case 42:case 47:e:{for(D=N+1;D<$;++D)switch(l.charCodeAt(D)){case 47:if(42===f&&42===l.charCodeAt(D-1)&&N+2!==D){N=D+1;break e}break;case 10:if(47===f){N=D+1;break e}}N=D}}break;case 91:f++;case 40:f++;case 34:case 39:for(;N++<$&&l.charCodeAt(N)!==f;);}if(0===g)break;N++}switch(g=l.substring(H,N),0===p&&(p=(j=j.replace(h,"").trim()).charCodeAt(0)),p){case 64:switch(0<R&&(j=j.replace(d,"")),f=j.charCodeAt(1)){case 100:case 109:case 115:case 45:R=n;break;default:R=M}if(H=(g=e(n,R,g,f,u+1)).length,0<I&&(x=s(3,g,R=t(M,j,F),n,P,T,H,f,u,c),j=R.join(""),void 0!==x&&0===(H=(g=x.trim()).length)&&(f=0,g="")),0<H)switch(f){case 115:j=j.replace(w,o);case 100:case 109:case 45:g=j+"{"+g+"}";break;case 107:g=(j=j.replace(v,"$1 $2"))+"{"+g+"}",g=1===E||2===E&&a("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=j+g,112===c&&(X+=g,g="")}else g="";break;default:g=e(n,t(n,j,F),g,c,u+1)}B+=g,g=F=R=D=p=0,j="",f=l.charCodeAt(++N);break;case 125:case 59:if(1<(H=(j=(0<R?j.replace(d,""):j).trim()).length))switch(0===D&&(p=j.charCodeAt(0),45===p||96<p&&123>p)&&(H=(j=j.replace(" ",":")).length),0<I&&void 0!==(x=s(1,j,n,i,P,T,X.length,c,u,c))&&0===(H=(j=x.trim()).length)&&(j="\0\0"),p=j.charCodeAt(0),f=j.charCodeAt(1),p){case 0:break;case 64:if(105===f||99===f){W+=j+l.charAt(N);break}default:58!==j.charCodeAt(H-1)&&(X+=r(j,p,f,j.charCodeAt(2)))}F=R=D=p=0,j="",f=l.charCodeAt(++N)}}switch(f){case 13:case 10:47===_?_=0:0===1+p&&107!==c&&0<j.length&&(R=1,j+="\0"),0<I*z&&s(0,j,n,i,P,T,X.length,c,u,c),T=1,P++;break;case 59:case 125:if(0===_+A+S+k){T++;break}default:switch(T++,m=l.charAt(N),f){case 9:case 32:if(0===A+k+_)switch(C){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===A+_+k&&(R=F=1,m="\f"+m);break;case 108:if(0===A+_+k+L&&0<D)switch(N-D){case 2:112===C&&58===l.charCodeAt(N-3)&&(L=C);case 8:111===O&&(L=O)}break;case 58:0===A+_+k&&(D=N);break;case 44:0===_+S+A+k&&(R=1,m+="\r");break;case 34:case 39:0===_&&(A=A===f?0:0===A?f:A);break;case 91:0===A+_+S&&k++;break;case 93:0===A+_+S&&k--;break;case 41:0===A+_+k&&S--;break;case 40:if(0===A+_+k){if(0===p)switch(2*C+3*O){case 533:break;default:p=1}S++}break;case 64:0===_+S+A+k+D+g&&(g=1);break;case 42:case 47:if(!(0<A+k+S))switch(_){case 0:switch(2*f+3*l.charCodeAt(N+1)){case 235:_=47;break;case 220:H=N,_=42}break;case 42:47===f&&42===C&&H+2!==N&&(33===l.charCodeAt(H+2)&&(X+=l.substring(H,N+1)),m="",_=0)}}0===_&&(j+=m)}O=C,C=f,N++}if(0<(H=X.length)){if(R=n,0<I&&(void 0!==(x=s(2,X,R,i,P,T,H,c,u,c))&&0===(X=x).length))return W+X+B;if(X=R.join(",")+"{"+X+"}",0!=E*L){switch(2!==E||a(X,2)||(L=0),L){case 111:X=X.replace(b,":-moz-$1")+X;break;case 112:X=X.replace(y,"::-webkit-input-$1")+X.replace(y,"::-moz-$1")+X.replace(y,":-ms-input-$1")+X}L=0}}return W+X+B}(M,n,i,0,0);return 0<I&&(void 0!==(l=s(-2,c,n,n,P,T,c.length,0,0,0))&&(c=l)),"",L=0,T=P=1,c}var h=/^\0+/g,d=/[\0\r\f]/g,u=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,_=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,A=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,T=1,P=1,L=0,E=1,M=[],O=[],I=0,D=null,z=0;return c.use=function e(t){switch(t){case void 0:case null:I=O.length=0;break;default:if("function"==typeof t)O[I++]=t;else if("object"===Object(n.a)(t))for(var i=0,r=t.length;i<r;++i)e(t[i]);else z=0|!!t}return e},c.set=l,void 0!==e&&l(e),c};function l(e){e&&c.current.insert(e+"}")}var c={current:null},h=function(e,t,i,n,r,a,o,s,h,d){switch(e){case 1:switch(t.charCodeAt(0)){case 64:return c.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return c.current.insert(i[0]+t),"";default:return t+(0===d?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(l)}},d=function(e){void 0===e&&(e={});var t,i=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var n=new s(t);var r,a={};r=e.container||document.head;var l,d=document.querySelectorAll("style[data-emotion-"+i+"]");Array.prototype.forEach.call(d,(function(e){e.getAttribute("data-emotion-"+i).split(" ").forEach((function(e){a[e]=!0})),e.parentNode!==r&&r.appendChild(e)})),n.use(e.stylisPlugins)(h),l=function(e,t,i,r){var a=t.name;c.current=i,n(e,t.styles),r&&(u.inserted[a]=!0)};var u={key:i,sheet:new o({key:i,container:r,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:a,registered:{},insert:l};return u};i(42);function u(e,t,i){var n="";return i.split(" ").forEach((function(i){void 0!==e[i]?t.push(e[i]):n+=i+" "})),n}var p=function(e,t,i){var n=e.key+"-"+t.name;if(!1===i&&void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var r=t;do{e.insert("."+n,r,e.sheet,!0);r=r.next}while(void 0!==r)}};var f=function(e){for(var t,i=0,n=0,r=e.length;r>=4;++n,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),i=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&i)+(59797*(i>>>16)<<16);switch(r){case 3:i^=(255&e.charCodeAt(n+2))<<16;case 2:i^=(255&e.charCodeAt(n+1))<<8;case 1:i=1540483477*(65535&(i^=255&e.charCodeAt(n)))+(59797*(i>>>16)<<16)}return(((i=1540483477*(65535&(i^=i>>>13))+(59797*(i>>>16)<<16))^i>>>15)>>>0).toString(36)},g={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var m=/[A-Z]|^ms/g,v=/_EMO_([^_]+?)_([^]*?)_EMO_/g,y=function(e){return 45===e.charCodeAt(1)},b=function(e){return null!=e&&"boolean"!=typeof e},x=function(e){var t={};return function(i){return void 0===t[i]&&(t[i]=e(i)),t[i]}}((function(e){return y(e)?e:e.replace(m,"-$&").toLowerCase()})),w=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(v,(function(e,t,i){return _={name:t,styles:i,next:_},t}))}return 1===g[e]||y(e)||"number"!=typeof t||0===t?t:t+"px"};function k(e,t,i,r){if(null==i)return"";if(void 0!==i.__emotion_styles)return i;switch(Object(n.a)(i)){case"boolean":return"";case"object":if(1===i.anim)return _={name:i.name,styles:i.styles,next:_},i.name;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)_={name:a.name,styles:a.styles,next:_},a=a.next;return i.styles+";"}return function(e,t,i){var r="";if(Array.isArray(i))for(var a=0;a<i.length;a++)r+=k(e,t,i[a],!1);else for(var o in i){var s=i[o];if("object"!==Object(n.a)(s))null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":b(s)&&(r+=x(o)+":"+w(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var l=k(e,t,s,!1);switch(o){case"animation":case"animationName":r+=x(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<s.length;c++)b(s[c])&&(r+=x(o)+":"+w(o,s[c])+";")}return r}(e,t,i);case"function":if(void 0!==e){var o=_,s=i(e);return _=o,k(e,t,s,r)}break;case"string":}if(null==t)return i;var l=t[i];return void 0===l||r?i:l}var _,S=/label:\s*([^\s;\n{]+)\s*;/g;var A=function(e,t,i){if(1===e.length&&"object"===Object(n.a)(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";_=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=k(i,t,o,!1)):a+=o[0];for(var s=1;s<e.length;s++)a+=k(i,t,e[s],46===a.charCodeAt(a.length-1)),r&&(a+=o[s]);S.lastIndex=0;for(var l,c="";null!==(l=S.exec(a));)c+="-"+l[1];return{name:f(a)+c,styles:a,next:_}},C=Object.prototype.hasOwnProperty,T=Object(a.createContext)("undefined"!=typeof HTMLElement?d():null),P=Object(a.createContext)({}),L=(T.Provider,function(e){var t=function(t,i){return Object(a.createElement)(T.Consumer,null,(function(n){return e(t,n,i)}))};return Object(a.forwardRef)(t)}),E="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",M=function(e,t){var i={};for(var n in t)C.call(t,n)&&(i[n]=t[n]);return i[E]=e,i},O=function(e,t,i,n){var r=null===i?t.css:t.css(i);"string"==typeof r&&void 0!==e.registered[r]&&(r=e.registered[r]);var o=t[E],s=[r],l="";"string"==typeof t.className?l=u(e.registered,s,t.className):null!=t.className&&(l=t.className+" ");var c=A(s);p(e,c,"string"==typeof o);l+=e.key+"-"+c.name;var h={};for(var d in t)C.call(t,d)&&"css"!==d&&d!==E&&(h[d]=t[d]);return h.ref=n,h.className=l,Object(a.createElement)(o,h)},I=L((function(e,t,i){return"function"==typeof e.css?Object(a.createElement)(P.Consumer,null,(function(n){return O(t,e,n,i)})):O(t,e,null,i)}));var D=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return A(t)},z=function(e,t){var i=arguments;if(null==t||!C.call(t,"css"))return a.createElement.apply(void 0,i);var n=i.length,r=new Array(n);r[0]=I,r[1]=M(e,t);for(var o=2;o<n;o++)r[o]=i[o];return a.createElement.apply(null,r)},N=(a.Component,function e(t){for(var i=t.length,r=0,a="";r<i;r++){var o=t[r];if(null!=o){var s=void 0;switch(Object(n.a)(o)){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var l in s="",o)o[l]&&l&&(s&&(s+=" "),s+=l);break;default:s=o}s&&(a&&(a+=" "),a+=s)}}return a});function R(e,t,i){var n=[],r=u(e,n,i);return n.length<2?i:r+t(n)}L((function(e,t){return Object(a.createElement)(P.Consumer,null,(function(i){var n=function(){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];var r=A(i,t.registered);return p(t,r,!1),t.key+"-"+r.name},r={css:n,cx:function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return R(t.registered,n,N(i))},theme:i},a=e.children(r);return!0,a}))}))},function(e,t,i){"use strict";function n(e,t,i,n,r,a,o){try{var s=e[a](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,r)}function r(e){return function(){var t=this,i=arguments;return new Promise((function(r,a){var o=e.apply(t,i);function s(e){n(o,r,a,s,l,"next",e)}function l(e){n(o,r,a,s,l,"throw",e)}s(void 0)}))}}i.d(t,"a",(function(){return r}))},function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}i.d(t,"a",(function(){return r}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(13);function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(n.a)(e,t)}},function(e,t,i){"use strict";e.exports=i(36)},function(e,t,i){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}i.d(t,"a",(function(){return n}))},function(e,t){function i(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=i=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),i(t)}e.exports=i,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,i){"use strict";function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var n=i(19);var r=i(20);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Object(r.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i(12),r=i.n(n),a=i(5);function o(e,t){return!t||"object"!==r()(t)&&"function"!=typeof t?Object(a.a)(e):t}},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));i(10);function n(e,t){void 0===t&&(t={});for(var i=function(e){for(var t=[],i=0;i<e.length;){var n=e[i];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:i,value:e[i++]});else{var r=1,a="";if("?"===e[s=i+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0===--r){s++;break}}else if("("===e[s]&&(r++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);a+=e[s++]}else a+=e[s++]+e[s++];if(r)throw new TypeError("Unbalanced pattern at "+i);if(!a)throw new TypeError("Missing pattern at "+i);t.push({type:"PATTERN",index:i,value:a}),i=s}else{for(var o="",s=i+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;o+=e[s++]}if(!o)throw new TypeError("Missing parameter name at "+i);t.push({type:"NAME",index:i,value:o}),i=s}else t.push({type:"CLOSE",index:i,value:e[i++]});else t.push({type:"OPEN",index:i,value:e[i++]});else t.push({type:"ESCAPED_CHAR",index:i++,value:e[i++]});else t.push({type:"MODIFIER",index:i,value:e[i++]})}return t.push({type:"END",index:i,value:""}),t}(e),n=t.prefixes,r=void 0===n?"./":n,o="[^"+a(t.delimiter||"/#?")+"]+?",s=[],l=0,c=0,h="",d=function(e){if(c<i.length&&i[c].type===e)return i[c++].value},u=function(e){var t=d(e);if(void 0!==t)return t;var n=i[c],r=n.type,a=n.index;throw new TypeError("Unexpected "+r+" at "+a+", expected "+e)},p=function(){for(var e,t="";e=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};c<i.length;){var f=d("CHAR"),g=d("NAME"),m=d("PATTERN");if(g||m){var v=f||"";-1===r.indexOf(v)&&(h+=v,v=""),h&&(s.push(h),h=""),s.push({name:g||l++,prefix:v,suffix:"",pattern:m||o,modifier:d("MODIFIER")||""})}else{var y=f||d("ESCAPED_CHAR");if(y)h+=y;else if(h&&(s.push(h),h=""),d("OPEN")){v=p();var b=d("NAME")||"",x=d("PATTERN")||"",w=p();u("CLOSE"),s.push({name:b||(x?l++:""),pattern:b&&!x?o:x,prefix:v,suffix:w,modifier:d("MODIFIER")||""})}else u("END")}}return s}function r(e,t){var i=[];return function(e,t,i){void 0===i&&(i={});var n=i.decode,r=void 0===n?function(e){return e}:n;return function(i){var n=e.exec(i);if(!n)return!1;for(var a=n[0],o=n.index,s=Object.create(null),l=function(e){if(void 0===n[e])return"continue";var i=t[e-1];"*"===i.modifier||"+"===i.modifier?s[i.name]=n[e].split(i.prefix+i.suffix).map((function(e){return r(e,i)})):s[i.name]=r(n[e],i)},c=1;c<n.length;c++)l(c);return{path:a,index:o,params:s}}}(l(e,i,t),i,t)}function a(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function o(e){return e&&e.sensitive?"":"i"}function s(e,t,i){return function(e,t,i){void 0===i&&(i={});for(var n=i.strict,r=void 0!==n&&n,s=i.start,l=void 0===s||s,c=i.end,h=void 0===c||c,d=i.encode,u=void 0===d?function(e){return e}:d,p="["+a(i.endsWith||"")+"]|$",f="["+a(i.delimiter||"/#?")+"]",g=l?"^":"",m=0,v=e;m<v.length;m++){var y=v[m];if("string"==typeof y)g+=a(u(y));else{var b=a(u(y.prefix)),x=a(u(y.suffix));if(y.pattern)if(t&&t.push(y),b||x)if("+"===y.modifier||"*"===y.modifier){var w="*"===y.modifier?"?":"";g+="(?:"+b+"((?:"+y.pattern+")(?:"+x+b+"(?:"+y.pattern+"))*)"+x+")"+w}else g+="(?:"+b+"("+y.pattern+")"+x+")"+y.modifier;else g+="("+y.pattern+")"+y.modifier;else g+="(?:"+b+x+")"+y.modifier}}if(h)r||(g+=f+"?"),g+=i.endsWith?"(?="+p+")":"$";else{var k=e[e.length-1],_="string"==typeof k?f.indexOf(k[k.length-1])>-1:void 0===k;r||(g+="(?:"+f+"(?="+p+"))?"),_||(g+="(?="+f+"|"+p+")")}return new RegExp(g,o(i))}(n(e,i),t,i)}function l(e,t,i){return e instanceof RegExp?function(e,t){if(!t)return e;for(var i=/\((?:\?<(.*?)>)?(?!\?)/g,n=0,r=i.exec(e.source);r;)t.push({name:r[1]||n++,prefix:"",suffix:"",modifier:"",pattern:""}),r=i.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,i){var n=e.map((function(e){return l(e,t,i).source}));return new RegExp("(?:"+n.join("|")+")",o(i))}(e,t,i):s(e,t,i)}},function(e,t,i){"use strict";var n=i(12);Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(e){return n(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=d(i(35)),l=i(9),c=d(l),h=d(i(38));function d(e){return e&&e.__esModule?e:{default:e}}window.ApexCharts=s.default;var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=n(t)&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return c.default.createRef?i.chartRef=c.default.createRef():i.setRef=function(e){return i.chartRef=e},i.chart=null,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+n(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,l.Component),o(e,[{key:"render",value:function(){var e=function(e,t){var i={};for(var n in e)0<=t.indexOf(n)||Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n]);return i}(this.props,[]);return c.default.createElement("div",a({ref:c.default.createRef?this.chartRef:this.setRef},e))}},{key:"componentDidMount",value:function(){var e=c.default.createRef?this.chartRef.current:this.chartRef;this.chart=new s.default(e,this.getConfig()),this.chart.render()}},{key:"getConfig",value:function(){var e=this.props,t=e.type,i=e.height,n=e.width,r=e.series,a=e.options,o={chart:{type:t,height:i,width:n},series:r};return this.extend(a,o)}},{key:"isObject",value:function(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)&&null!=e}},{key:"extend",value:function(e,t){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t});var n=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(r){i.isObject(t[r])&&r in e?n[r]=i.extend(e[r],t[r]):Object.assign(n,function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}({},r,t[r]))})),n}},{key:"componentDidUpdate",value:function(e){if(!this.chart)return null;var t=this.props,i=t.options,n=t.series,r=t.height,a=t.width,o=JSON.stringify(e.options),s=JSON.stringify(e.series),l=JSON.stringify(i),c=JSON.stringify(n);o===l&&s===c&&r===e.height&&a===e.width||(s===c?this.chart.updateOptions(this.getConfig()):o===l&&r===e.height&&a===e.width?this.chart.updateSeries(n):this.chart.updateOptions(this.getConfig()))}},{key:"componentWillUnmount",value:function(){this.chart&&"function"==typeof this.chart.destroy&&this.chart.destroy()}}]),e}();(t.default=u).propTypes={type:h.default.string.isRequired,width:h.default.any,height:h.default.any,series:h.default.array.isRequired,options:h.default.object.isRequired},u.defaultProps={type:"line",width:"100%",height:"auto"}},function(e,t,i){"use strict";e.exports=i(44)},function(e,t,i){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}i.d(t,"a",(function(){return n}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));var n=i(19);function r(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Object(n.a)(e,t):void 0}}},function(e,t,i){var n,r=i(12);
19
  /*!
20
  Copyright (c) 2018 Jed Watson.
21
  Licensed under the MIT License (MIT), see
22
  http://jedwatson.github.io/classnames