2 lines
78 KiB
JavaScript
2 lines
78 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["Profile~ProfileHomepage~ProfilePostComments~R2CommentsPage~R2Listing~Reddit"],{"./src/lib/prettyPrintNumber/index.ts":function(e,t,i){"use strict";i.d(t,"a",function(){return o}),i.d(t,"b",function(){return h});const o=e=>{const t=e.split(".");return[t[0].replace(/\B(?=(\d{3})+(?!\d))/g,",")].concat(t.slice(1)).join(".")},s=1e3,r=100*s,n=10*r,a=100*n,l=10*a,c=100*l,d=51;function h(e,t){return t?o(e.toString()):e>=c-d?`${Math.floor(e/n)}b`:e>=l-d&&e<c-d?`${(e/l).toFixed(1)}b`:e>=a-d&&e<l-d?`${Math.floor(e/n)}m`:e>=n-d&&e<a-d?`${(e/n).toFixed(1)}m`:e>=r-d&&e<n-d?`${Math.floor(e/s)}k`:e>=s&&e<r-d?`${(e/s).toFixed(1)}k`:String(e)}},"./src/lib/timeAgo/index.ts":function(e,t,i){"use strict";i.d(t,"b",function(){return c}),i.d(t,"a",function(){return d});var o=i("./src/app/strings/index.ts"),s=i("./src/lib/constants/index.ts");const r={[s.kb]:s.Wb,[s.N]:s.kb,[s.y]:s.N,[s.lb]:s.y,[s.Dc]:s.lb},n={[s.Wb]:"time.seconds",[s.kb]:"time.minutes",[s.N]:"time.hours",[s.y]:"time.days",[s.lb]:"time.months",[s.Dc]:"time.years"},a={[s.Wb]:"time.ago.seconds",[s.kb]:"time.ago.minutes",[s.N]:"time.ago.hours",[s.y]:"time.ago.days",[s.lb]:"time.ago.months",[s.Dc]:"time.ago.years"},l={[s.Wb]:"time.short.seconds",[s.kb]:"time.short.minutes",[s.N]:"time.short.hours",[s.y]:"time.short.days",[s.lb]:"time.short.months",[s.Dc]:"time.short.years"};function c(e,t,i,c){const d=Date.now(),h="number"==typeof t?t:new Date(t).valueOf(),u=Math.abs(d-1e3*h);if(u<s.kb)return Object(o.a)(e,"time.justNow");const p=i?n:a;for(const n of[s.N,s.y,s.lb,s.Dc])if(u<n){const t=Math.floor(u/r[n]);return c?`${t}${Object(o.a)(e,l[r[n]])}`:Object(o.d)(e,p[r[n]],t)}const f=Math.floor(u/s.Dc);return c?`${f}${Object(o.a)(e,l[s.Dc])}`:Object(o.d)(e,p[s.Dc],f)}function d(e){const t=Date.now(),i="number"==typeof e?e:new Date(e).valueOf(),o=Math.abs(t-1e3*i);return Math.floor(o/s.y)}},"./src/reddit/components/HTML5StreamPlayer/SeekBar/seekbar.css":function(e,t,i){},"./src/reddit/components/HTML5StreamPlayer/SettingControl/settingcontrol.less":function(e,t,i){},"./src/reddit/components/HTML5StreamPlayer/VolumeControl/volumecontrol.css":function(e,t,i){},"./src/reddit/components/HTML5StreamPlayer/index.tsx":function(e,t,i){"use strict";var o=i("./node_modules/bowser/src/bowser.js"),s=i.n(o),r=i("./node_modules/crypto-js/sha256.js"),n=i.n(r),a=i("./node_modules/lodash/debounce.js"),l=i.n(a),c=i("./node_modules/react/index.js"),d=i.n(c),h=i("./node_modules/react-redux/es/index.js"),u=i("./node_modules/reselect/lib/index.js"),p=i("./src/reddit/helpers/overlay/index.ts"),f=i("./src/lib/classNames/index.ts"),m=i("./src/lib/domUtils/index.ts");const v=()=>{const e=navigator.userAgent||navigator.vendor||window.opera;return/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"iOS":"unknown"},g=()=>"Android"===v()||"iOS"===v();var y=i("./src/lib/loadWithRetries/index.ts"),b=i("./src/reddit/actions/media.ts"),w=i("./src/reddit/actions/preferences.ts"),S=i("./src/reddit/actions/video.ts"),x=i("./src/reddit/components/Media/LoadingIcon/index.tsx"),P=i("./src/reddit/components/PlayButton/index.tsx"),C=i("./src/reddit/components/TrackingHelper/index.tsx"),k=i("./src/reddit/constants/video.ts"),M=i("./src/reddit/contexts/InsideOverlay.tsx"),T=i("./src/reddit/selectors/telemetry.ts");const F=(e,t,i)=>o=>({source:"videoplayer",action:t,noun:i,post:T.post(o,e),media:T.media(o,e),profile:T.profile(o),subreddit:T.subreddit(o),actionInfo:T.mediaActionInfo(o,e)}),I=(e,t,i,o,s,r,n)=>a=>({source:"videoplayer",action:"download",noun:"fragment",post:T.post(a,e),profile:T.profile(a),subreddit:T.subreddit(a),actionInfo:T.mediaActionInfo(a,e),media:Object.assign({},T.media(a,e,r),{cdnName:i,cdnRegion:o,destinationRegion:s,url:t,size:n})}),B=e=>t=>({source:"videoplayer",action:"underrun",noun:"playback",post:T.post(t,e),profile:T.profile(t),subreddit:T.subreddit(t),actionInfo:T.mediaActionInfo(t,e),media:T.media(t,e)}),V=(e,t,i)=>o=>Object.assign({},F(e,t,i)(o),{timer:T.videoPlayerFirstFrameTimer(o,e),media:Object.assign({},T.media(o,e),T.videoPlayerMaxTimeServed(o,e))});var A,L=i("./src/reddit/selectors/media.ts"),O=i("./src/reddit/selectors/platform.ts"),j=i("./src/reddit/selectors/user.ts"),R=i("./src/reddit/selectors/video.ts"),N=i("./bundled-modules/styled-components/styled-components.min.js"),$=i.n(N),E=$.a.img.withConfig({componentId:"ake3aw-0"})(["position: absolute;left: 0;top: 0;width: 100%;height: 100%;filter: blur(20px) brightness(0.8);"]),H=i("./src/app/strings/index.ts"),_=(A="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,i,o){var s=e&&e.defaultProps,r=arguments.length-3;if(t||0===r||(t={}),t&&s)for(var n in s)void 0===t[n]&&(t[n]=s[n]);else t||(t=s||{});if(1===r)t.children=o;else if(r>1){for(var a=Array(r),l=0;l<r;l++)a[l]=arguments[l+3];t.children=a}return{$$typeof:A,type:e,key:void 0===i?null:""+i,ref:null,props:t,_owner:null}}),z=e=>_("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,_("path",{d:"M14.41,13H17a1,1,0,0,0,0-2H12a1,1,0,0,0-1,1v5a1,1,0,0,0,2,0V14.41l3.24,3.24a1,1,0,0,0,1.41-1.41Z",fill:"#FFFFFF"}),_("path",{d:"M8,2A1,1,0,0,0,7,3V5.59L3.76,2.34A1,1,0,0,0,2.34,3.76L5.59,7H3A1,1,0,0,0,3,9H8A1,1,0,0,0,9,8V3A1,1,0,0,0,8,2Z",fill:"#FFFFFF"})),D=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}(),U=e=>D("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,D("path",{d:"M9,3A1,1,0,0,0,8,2H3A1,1,0,0,0,2,3V8A1,1,0,0,0,4,8V5.41L7.24,8.66A1,1,0,0,0,8.66,7.24L5.41,4H8A1,1,0,0,0,9,3Z",fill:"#FFFFFF"}),D("path",{d:"M17,11a1,1,0,0,0-1,1v2.59l-3.24-3.24a1,1,0,0,0-1.41,1.41L14.59,16H12a1,1,0,0,0,0,2h5a1,1,0,0,0,1-1V12A1,1,0,0,0,17,11Z",fill:"#FFFFFF"})),W=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}(),q=e=>W("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,W("path",{d:"M16.41,10.5l1.79-1.79a1,1,0,0,0-1.41-1.41L15,9.09,13.21,7.29a1,1,0,0,0-1.41,1.41l1.79,1.79-1.79,1.79a1,1,0,1,0,1.41,1.41L15,11.91l1.79,1.79a1,1,0,0,0,1.41-1.41Z",fill:"#FFFFFF"}),W("path",{d:"M9.7,1.54a.5.5,0,0,0-.54.09L3.81,6.5H1.5A.5.5,0,0,0,1,7v6a.5.5,0,0,0,.5.5H3.81l5.36,4.87a.5.5,0,0,0,.34.13.49.49,0,0,0,.2,0A.5.5,0,0,0,10,18V2A.5.5,0,0,0,9.7,1.54Z",fill:"#FFFFFF"})),K=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}(),Z=e=>K("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,K("rect",{x:"11",y:"2",width:"6",height:"16",rx:"1",ry:"1",fill:"#FFFFFF"}),K("rect",{x:"3",y:"2",width:"6",height:"16",rx:"1",ry:"1",fill:"#FFFFFF"})),Q=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}(),G=e=>Q("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,Q("path",{d:"M18.5,9.14l-12-7A1,1,0,0,0,5,3V17a1,1,0,0,0,1.5.86l12-7a1,1,0,0,0,0-1.73Z",fill:"#FFFFFF"})),J=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var Y=$()(e=>J("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,J("path",{d:"M18.5,8.94,16.32,8.5h0a6.46,6.46,0,0,0-.79-1.9h0l1.23-1.85a1.08,1.08,0,0,0-1.5-1.5L13.41,4.47h0a6.45,6.45,0,0,0-1.9-.79h0L11.06,1.5a1.08,1.08,0,0,0-2.12,0L8.5,3.68h0a6.45,6.45,0,0,0-1.9.79h0L4.74,3.24a1.08,1.08,0,0,0-1.5,1.5L4.47,6.59h0a6.45,6.45,0,0,0-.79,1.9h0L1.5,8.94a1.08,1.08,0,0,0,0,2.12l2.18.44h0a6.45,6.45,0,0,0,.79,1.9h0L3.24,15.26a1.08,1.08,0,0,0,1.5,1.5l1.85-1.23h0a6.45,6.45,0,0,0,1.9.79h0l.44,2.18a1.08,1.08,0,0,0,2.12,0l.44-2.18h0a6.45,6.45,0,0,0,1.9-.79h0l1.85,1.23a1.08,1.08,0,0,0,1.5-1.5l-1.23-1.85h0a6.45,6.45,0,0,0,.79-1.9h0l2.18-.44a1.08,1.08,0,0,0,0-2.12ZM10,13.5A3.5,3.5,0,1,1,13.5,10,3.5,3.5,0,0,1,10,13.5Z"}))).withConfig({componentId:"s1scmfqc-0"})(["fill: white;"]),X=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}(),ee=e=>X("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},void 0,X("path",{d:"M12.67,3.1a1,1,0,0,0-.33,2,5,5,0,0,1,0,9.85,1,1,0,0,0,.17,2h.17a7,7,0,0,0,0-13.79Z",fill:"#FFFFFF"}),X("path",{d:"M9.7,1.54a.5.5,0,0,0-.54.09L3.81,6.5H1.5A.5.5,0,0,0,1,7v6a.5.5,0,0,0,.5.5H3.81l5.36,4.87a.5.5,0,0,0,.34.13.49.49,0,0,0,.2,0A.5.5,0,0,0,10,18V2A.5.5,0,0,0,9.7,1.54Z",fill:"#FFFFFF"}),X("path",{d:"M12,10.86a1,1,0,0,0,1,1.73,3,3,0,0,0,0-5.17,1,1,0,0,0-1,1.73,1,1,0,0,1,0,1.72Z",fill:"#FFFFFF"})),te=$.a.div.withConfig({componentId:"s8wv86c-0"})(["position: absolute;height: 100%;left: 0;right: 0;bottom: 0;background: linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.5) 100%);"]),ie=i("./node_modules/react-router-dom/es/index.js"),oe=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var se=$()(e=>oe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"16px",viewBox:"0 0 20 20"},void 0,oe("g",{fill:"none",fillRule:"evenodd"},void 0,oe("polygon",{points:"0 20 20 20 20 0 0 0"}),oe("path",{fill:"#FFF",d:"M13.43,13.02125 C12.5683333,13.02125 11.8675,12.3204167 11.8675,11.45875 C11.8675,10.5970833 12.5683333,9.89583333 13.43,9.89583333 C14.2916667,9.89583333 14.9925,10.5970833 14.9925,11.45875 C14.9925,12.3204167 14.2916667,13.02125 13.43,13.02125 M13.705,15.5875 C12.63875,16.6525 10.595,16.735 9.99416667,16.735 C9.39333333,16.735 7.34958333,16.6525 6.28458333,15.5870833 C6.12625,15.4291667 6.12625,15.1725 6.28458333,15.0145833 C6.4425,14.8566667 6.69916667,14.85625 6.85708333,15.0145833 C7.52916667,15.6866667 8.96708333,15.9254167 9.99416667,15.9254167 C11.02125,15.9254167 12.4595833,15.6866667 13.1329167,15.0141667 C13.29125,14.85625 13.5475,14.8566667 13.7054167,15.0145833 C13.8633333,15.1729167 13.8633333,15.4291667 13.705,15.5875 M4.9925,11.45875 C4.9925,10.5970833 5.69375,9.89583333 6.55583333,9.89583333 C7.41666667,9.89583333 8.1175,10.5970833 8.1175,11.45875 C8.1175,12.32 7.41666667,13.0208333 6.55583333,13.0208333 C5.69375,13.0208333 4.9925,12.32 4.9925,11.45875 M19.99,9.89583333 C19.99,8.68791667 19.0108333,7.70833333 17.8025,7.70833333 C17.2129167,7.70833333 16.67875,7.94291667 16.2854167,8.32208333 C14.79,7.24333333 12.73,6.54625 10.4354167,6.46625 L11.4316667,1.77833333 L14.6875,2.47041667 C14.7270833,3.29791667 15.405,3.95833333 16.2425,3.95833333 C17.1054167,3.95833333 17.805,3.25875 17.805,2.39583333 C17.805,1.53291667 17.1054167,0.833333333 16.2425,0.833333333 C15.62875,0.833333333 15.1029167,1.19083333 14.8475,1.70541667 L11.2120833,0.932916667 C11.1108333,0.910833333 11.005,0.930833333 10.9183333,0.987083333 C10.83125,1.04375 10.7704167,1.1325 10.74875,1.23375 L9.65541667,6.37791667 C9.64916667,6.4075 9.65416667,6.43541667 9.65458333,6.46458333 C7.31875,6.52583333 5.21875,7.22458333 3.7,8.31833333 C3.30708333,7.94125 2.775,7.70833333 2.1875,7.70833333 C0.979166667,7.70833333 0,8.68791667 0,9.89583333 C0,10.785 0.530833333,11.5483333 1.29208333,11.8904167 C1.25833333,12.1079167 1.24,12.32875 1.24,12.5520833 C1.24,15.9179167 5.1575,18.6458333 9.99,18.6458333 C14.8225,18.6458333 18.74,15.9179167 18.74,12.5520833 C18.74,12.33 18.7220833,12.1108333 18.68875,11.895 C19.455,11.5545833 19.99,10.7883333 19.99,9.89583333"})))).withConfig({componentId:"yyp2gw-0"})(["fill: white;"]),re=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var ne=$()(e=>re("div",{className:e.className},void 0,"string"==typeof e.postUrl?re("a",{href:e.postUrl},void 0,re(se,{})):re(ie.a,{to:e.postUrl},void 0,re(se,{})))).withConfig({componentId:"soruwm-0"})(["height: 16px;margin: 0px 5px;padding: 4px;width: 16px;&:hover {background: #fd471e;border-radius: 12px;}"]),ae=i("./src/lib/fastdom/index.ts"),le=i("./src/reddit/helpers/styles/mixins/fonts.tsx"),ce=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}(),de=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},he=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&(i[o[s]]=e[o[s]])}return i};const ue=8,pe=$.a.span.withConfig({componentId:"ab5hgu-0"})(["","position: absolute;visibility: hidden;height: auto;width: auto;bottom: 50%;margin-bottom: 20px;padding: 8px;background: black;border-radius: 4px;color: white;white-space: nowrap;"],le.titleFontH6),fe=Object(N.css)(["&:hover,.using-keys &:focus-within {",' {visibility: visible;}&:after {content: "";position: absolute;left: 50%;bottom: 50%;transform: translate(-50%, 3px);margin-bottom: 20px;border: solid;border-color: black transparent;border-width: 3px 3px 0 3px;}}'],pe),me=$()(e=>{var t=e.setRef,i=(e.disable,he(e,["setRef","disable"]));return d.a.createElement("div",de({ref:t},i))}).withConfig({componentId:"ab5hgu-1"})(["position: relative;",";"],e=>e.disable?"":fe);var ve=i("./src/reddit/constants/zIndex.ts"),ge=i("./node_modules/lodash/clamp.js"),ye=i.n(ge),be=i("./node_modules/react-dom/index.js"),we=i.n(be);const Se=e=>{const t=Math.floor(e/60).toString();let i=Math.trunc(e%60).toString();return`${t}:${i=`0${i}`.slice(-2)}`},xe=(e,t)=>{let i=Math.floor(e/60).toString(),o=Math.trunc(e%60).toString();const s=Math.floor(t/60).toString();return i.length<s.length&&(i=`0${i}`.slice(-2)),`${i}:${o=`0${o}`.slice(-2)}`};var Pe=i("./src/reddit/constants/keycodes.ts"),Ce=(i("./src/reddit/components/HTML5StreamPlayer/SeekBar/seekbar.css"),function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}());const ke=$.a.div.withConfig({componentId:"tafi1v-0"})(["background: #0079D3;border-radius: 50%;bottom 0;height: 16px;position: absolute;top: 0;transition: opacity 0.2s ease-out;width: 16px;"]),Me=$.a.div.withConfig({componentId:"tafi1v-1"})(["position: absolute;width: 100%;top: 6px;height: 4px;border-radius: 2px;background: #0079D3;"]),Te=$.a.div.withConfig({componentId:"tafi1v-2"})(["position: absolute;bottom: 20px;left: 0;display: flex;flex-flow: column nowrap;visibility: hidden;"]),Fe=$.a.video.withConfig({componentId:"tafi1v-3"})(["height: 54px;width: 96px;background: #000000;border: 1px solid #545452;"]),Ie=$.a.div.withConfig({componentId:"tafi1v-4"})(["align-self: center;margin-top: 5px;padding: 0 5px;height: 20px;background: rgba(0, 0, 0, 0.6);border-radius: 4px;font-family: Helvetica;font-size: 12px;line-height: 20px;color: #FFFFFF;"]),Be=$.a.div.withConfig({componentId:"tafi1v-5"})(["position: relative;flex-grow: 1;margin: auto 8px;height: 16px;cursor: pointer;&:hover, &:active {"," {visibility: visible;display: flex;}}"],Te);class Ve extends d.a.PureComponent{constructor(e){super(e),this.setParentRect=(e=>this.parentRect=e),this.setPreviewThumbnailContainer=(e=>this.previewThumbnailContainer=e),this.setPreviewThumbnailVideo=(e=>this.previewThumbnailVideo=e),this.setPreviewThumbnailTime=(e=>this.previewThumbnailTime=e),this.setProgressBar=(e=>this.progressBar=e),this.handleMouseDown=(e=>{if(0===e.button&&this.parentRect){const t=this.parentRect.getBoundingClientRect();let i=(e.clientX-t.left)/t.width*100;i=Math.min(Math.max(i,0),100),this.setProgress(i,!0)}}),this.handleMouseMove=(e=>{if(e.stopPropagation(),this.parentRect){const t=this.parentRect.getBoundingClientRect();let i=(e.clientX-t.left)/t.width*100;i=Math.min(Math.max(i,0),100),this.setLookahead(i),this.props.active&&this.setProgress(i,!0)}}),this.handleMouseUp=(e=>{this.props.active&&(this.props.updatePosition(this.state.progressPercent),this.progressBar&&this.progressThumb&&(this.progressBar.style.width=null,this.progressThumb.style.marginLeft=null))}),this.handleMouseLeave=(e=>{this.setLookahead(0)}),this.handleKeyDown=(e=>{switch(e.key){case Pe.b.ArrowRight:return void this.jumpPlayback(5);case Pe.b.ArrowLeft:return void this.jumpPlayback(-5);case Pe.b.Space:return this.props.playPauseVideo(),void e.preventDefault()}}),this.setProgressThumbRef=(e=>{this.progressThumb=e,e&&ae.a.read(()=>{const t=e.getBoundingClientRect().width/2;ae.a.write(()=>{this.setState({thumbOffset:t})})})}),this.state={thumbMargin:"",thumbOffset:null,isMouseDown:!1,progressPercent:0,percent:0}}jumpPlayback(e){var t=this.props;const i=t.currentTime,o=t.totalTime,s=ye()(i+e,0,o);if(s!==i){const e=100*s/o;this.props.updatePosition(e)}}getCurrentPercent(){var e=this.props;const t=e.currentTime,i=e.totalTime;return t&&i?100*t/i:0}setProgress(e,t=!1){(!this.props.active||t)&&this.progressBar&&this.progressThumb&&(this.progressBar.style.width="calc("+e+"% + "+this.state.thumbOffset+"px)",this.progressThumb.style.marginLeft="calc("+e+"% - "+this.state.thumbOffset+"px)",this.setState({progressPercent:e}),this.props.updateContinuousStartTime(1e3*this.props.currentTime))}getThumbMargin(e){return this.props.active&&this.progressThumb?this.progressThumb.style.marginLeft||"0":`calc(${e}% - ${this.state.thumbOffset}px)`}getProgressWidth(e){return this.props.active&&this.progressBar?this.progressBar.style.width:`${e}%`}setLookahead(e){if(this.lookaheadBar&&this.previewThumbnailContainer&&this.previewThumbnailTime&&this.parentRect){this.lookaheadBar.style.width=e+"%";const t=this.props.totalTime,i=t*(e/100);isNaN(i)||(this.previewThumbnailVideo&&(this.previewThumbnailVideo.currentTime=i),this.previewThumbnailTime.innerHTML=xe(i,t));const o=we.a.findDOMNode(this);if(!o||!o.parentNode)return;const s=o.parentNode;if(!(s instanceof Element))return;const r=s.getBoundingClientRect(),n=this.parentRect.getBoundingClientRect(),a=this.previewThumbnailContainer.getBoundingClientRect(),l=r.left-n.left,c=r.right-n.left-a.width,d=e/100*n.width-a.width/2;this.previewThumbnailContainer.style.left=Math.max(l,Math.min(d,c))+"px"}}getBufferedStyle(){const e=this.props.bufferedRanges,t=this.state.progressPercent,i=this.getCurrentPercent();let o=t;for(let s=0;s<e.length;s++)e[s].start<=i&&(o=e[s].end);return{width:`${o=ye()(o,0,100)}%`}}render(){const e=this.props.active,t=this.state.progressPercent,i=this.getCurrentPercent();let o=e?t:i;o=ye()(o,0,100);const s={width:this.getProgressWidth(o)||"0"},r={marginLeft:this.getThumbMargin(o),opacity:e?1:0};return Ce(Be,{innerRef:this.setParentRect,onKeyDown:this.handleKeyDown,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove},void 0,Ce("div",{"aria-label":Object(H.a)(this.props.language,"video.seekBarLabel"),"aria-valuemax":Math.round(this.props.totalTime),"aria-valuemin":0,"aria-valuenow":this.props.currentTime,className:"mainbar",role:"slider",tabIndex:0},void 0,Ce("div",{className:"bar background"}),d.a.createElement("div",{className:"bar lookahead",ref:e=>this.lookaheadBar=e}),Ce("div",{className:"bar buffered",style:this.getBufferedStyle()}),Ce(Me,{innerRef:this.setProgressBar,style:s})),Ce(ke,{innerRef:this.setProgressThumbRef,style:r}),!this.props.controlBarIsHidden&&Ce(Te,{innerRef:this.setPreviewThumbnailContainer},void 0,this.props.thumbSource&&Ce(Fe,{innerRef:this.setPreviewThumbnailVideo,src:this.props.thumbSource}),Ce(Ie,{innerRef:this.setPreviewThumbnailTime})))}}var Ae=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}(),Le=e=>Ae("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 77.06 60"},void 0,Ae("g",{fill:"none"},void 0,Ae("path",{d:"M75.17,11.35l-44.9,46.7a6.17,6.17,0,0,1-9,0L1.88,37.55a6.83,6.83,0,0,1,0-9.4,6.17,6.17,0,0,1,9,0l15,15.8L66.27,2a6.17,6.17,0,0,1,9,0A6.93,6.93,0,0,1,75.17,11.35Z",fill:"#FFFFFF"}))),Oe=(i("./src/reddit/components/HTML5StreamPlayer/SettingControl/settingcontrol.less"),function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}());const je=0,Re=[1080,720],Ne=[...Re,...[480,360,240],je],$e=e=>Oe("button",{"aria-checked":e.isChecked,className:"set-autoplay-button",onClick:e.onClick,role:"checkbox",tabIndex:0},void 0,Oe(Le,{}),Oe("div",{className:"autoplay-description"},void 0,"Autoplay")),Ee=e=>{const t=e.resolution,i=e.onClick,o=e.isChecked;return Oe("button",{"aria-checked":o,className:"video-resolution-button",onClick:i,role:"radio",tabIndex:0},void 0,Oe(Le,{}),Oe("div",{className:"video-resolution-description"},void 0,t===je?Object(H.a)("en","video.auto"):Oe(d.a.Fragment,{},void 0,Oe("span",{},void 0,t,"p"),Re.includes(t)&&Oe("span",{className:"video-hd"},void 0," HD"))))},He=$.a.div.withConfig({componentId:"s548yfd-0"})(["opacity: ",";visibility: ",";transition: visibility 0s ease-out 0.2s, opacity 0.2s ease-out;",""],e=>e.isActive?"1":"0",e=>e.isActive?"visible":"hidden",e=>e.isActive?"transition-delay: 0s;":"");class _e extends c.Component{constructor(){super(...arguments),this.container=null,this.state={autoplayPref:this.props.autoplayPref},this.setContainerRef=(e=>this.container=e),this.setResolution=(e=>{this.props.setResolution(e)}),this.setAutoplay=(e=>{const t=!this.state.autoplayPref;this.setState({autoplayPref:t}),this.props.setAutoplay(t)})}componentDidMount(){if(this.container){const e=this.container.querySelector("[tabindex]");e&&e.focus()}}render(){var e=this.props;const t=e.active,i=e.bitrateInfo,o=e.isLoggedIn,s=e.resolution,r=[...i.map(e=>e.height),je];return Oe(He,{innerRef:this.setContainerRef,className:"video-setting-container",isActive:t},void 0,o&&Oe("div",{className:"autoplay-container"},void 0,Oe($e,{isChecked:this.state.autoplayPref,onClick:this.setAutoplay})),Oe("div",{className:"video-resolution-container",role:"radiogroup"},void 0,Ne.map((e,t)=>r.includes(e)?Oe(Ee,{resolution:e,onClick:()=>this.setResolution(e),isChecked:s===e},t):null)))}}i("./src/reddit/components/HTML5StreamPlayer/VolumeControl/volumecontrol.css");var ze=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();class De extends c.Component{constructor(e){super(e),this.step=.1,this.max=1,this.min=0,this.handleMouseDown=(e=>{if(0===e.button&&this.track){e.preventDefault(),this.setState({isMouseDown:!0});const t=this.track.getBoundingClientRect(),i=100-(e.clientY-t.top)/t.height*100,o=(this.max-this.min)*(i/100);this.setState({value:this.adjustValue(o)})}}),this.handleMouseMove=(e=>{if(this.state.isMouseDown&&this.track){const t=this.track.getBoundingClientRect(),i=100-(e.clientY-t.top)/t.height*100,o=(this.max-this.min)*(i/100);this.setState({value:this.adjustValue(o)})}}),this.handleMouseUp=(e=>{this.state.isMouseDown&&this.setState({isMouseDown:!1}),this.props.setVolume(this.state.value,!0)}),this.state={isMouseDown:!1,value:0}}convertVolumeToPercent(e){if("number"!=typeof e)return 100;const t=ye()(e,this.min,this.max);let i=0;if(t){i=20*Math.log10(t)/40+1}return this.calculatePercent(i)}calculatePercent(e){return(e-this.min)/(this.max-this.min)*100}adjustValue(e){const t=ye()(e,this.min,this.max);let i;if(1===t||0===t)i=t;else{const e=40*(t-1);i=Math.pow(10,e/20)}return this.props.setVolume(i,!1),i}render(){var e=this.props;const t=e.active,i=e.isMuted,o=e.volume,s=this.state.value,r=i?0:t?s:o,n=this.convertVolumeToPercent(r);return d.a.createElement("div",{className:"slider-container",ref:e=>this.container=e},d.a.createElement("div",{className:"slider-track slider-bar",ref:e=>this.track=e},d.a.createElement("div",{className:"slider-progress slider-bar",ref:e=>this.progress=e,style:{height:`${n}%`}},ze("div",{className:"slider-thumb"}))))}}var Ue=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();const We=Object(H.a)("en","video.snooTooltip"),qe=Object(H.a)("en","video.playTooltip"),Ke=Object(H.a)("en","video.pauseTooltip"),Ze=Object(H.a)("en","video.settingTooltip"),Qe=Object(H.a)("en","video.exitFullscreenTooltip"),Ge=Object(H.a)("en","video.fullscreenTooltip"),Je=Object(N.css)(["position relative;display: flex;align-items: center;height: 100%;margin: auto 8px;outline: none;z-index: ",";"],ve.e+1),Ye=Object(N.css)(["svg {display: block;height: 18px;width: 18px;fill-opacity: 0.95;cursor: pointer;transition: all 0.2s linear;&:hover {fill-opacity: 1;}&:active {transform: scale(0.9);}}"]),Xe=$()(class extends c.Component{constructor(){super(...arguments),this.onMouseEnter=(()=>{ae.a.read(this.setPosition)}),this.setPosition=(()=>{const e=this.container,t=this.tooltipContainer;if(e&&t&&this.props.tooltip){const i=t.getBoundingClientRect(),o=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect(),r=s.left-o.left+ue,n=s.right-o.left-i.width-ue,a=o.width/2-i.width/2;ae.a.write(()=>{t.style.left=Math.max(r,Math.min(a,n))+"px"})}})}componentDidMount(){this.container&&this.container.addEventListener("focusin",this.setPosition)}componentWillUnmount(){this.container&&this.container.removeEventListener("focusin",this.setPosition)}render(){var e=this.props;const t=e.className,i=e.children,o=e.disable,s=e.tooltip;return ce(me,{onMouseEnter:this.onMouseEnter,setRef:e=>this.container=e,className:t,disable:o},void 0,ce(pe,{innerRef:e=>this.tooltipContainer=e},void 0,s),i)}}).withConfig({componentId:"s1zkczq-0"})(["",""],Je),et=$.a.div.withConfig({componentId:"s1zkczq-1"})(["",""],Je),tt=$()(Xe).withConfig({componentId:"s1zkczq-2"})(["","margin-left: 4px;margin-right: 0;svg {height: auto;width: auto;}"],Ye),it=$()(Xe).withConfig({componentId:"s1zkczq-3"})(["",""],Ye),ot=$()(et).withConfig({componentId:"s1zkczq-4"})(["color: #FFFFFF;font-family: verdana;font-size: 12px;white-space: nowrap;"]),st=$()(ot).withConfig({componentId:"s1zkczq-5"})(["margin-right: 0px;"]),rt=$()(ot).withConfig({componentId:"s1zkczq-6"})(["margin-left: 0px;"]),nt=$()(et).withConfig({componentId:"s1zkczq-7"})(["position: relative;flex-grow: 1;margin: auto 8px;width: 100%;height: auto;"]),at=$()(et).withConfig({componentId:"s1zkczq-8"})(["",".slider-container {display: block;position: absolute;margin: 0;height: 96px;width: 24px;top: -103px;opacity: 0;visibility: hidden;transition: visibility 0s ease-out 0.2s, opacity 0.2s ease-out;&:after {position: absolute;content: '';height: 7px;width: 100%;top: 100%;}}&:hover, &:active {.slider-container {opacity: 1;visibility: visible;transition-delay: 0s;}}"],Ye),lt=$()(Xe).withConfig({componentId:"s1zkczq-9"})(["",'button[aria-expanded="true"] {'," {transform: rotate(45deg);&:active {transform: rotate(45deg) scale(0.9);}}}.video-setting-container {position: absolute;display: block;padding: 5px;height: auto;width: auto;bottom: 0px;left: 50%;transform: translate(-50%, -32px);}"],Ye,Y),ct=$()(Xe).withConfig({componentId:"s1zkczq-10"})(["",""],Ye),dt=$()(Xe).withConfig({componentId:"s1zkczq-11"})(["",""],Ye),ht=$.a.div.withConfig({componentId:"s1zkczq-12"})(["position: absolute;display: flex;justify-content: space-between;align-items: flex-end;padding: 12px 8px;height: 25px;bottom: 0;left: ",";right: ",";user-select: none;/* Hide everything except volume control */& > :not(",") {",";}"],e=>e.isFullScreen?"10px":"0",e=>e.isFullScreen?"10px":"0",at,e=>e.zeroOpacity?"opacity: 0;":"");var ut=class extends d.a.Component{constructor(e){super(e),this.state={currentTime:e.currentTime,bufferedRanges:[]}}setCurrentTime(e){this.setState({currentTime:e})}setBufferedRanges(e){this.setState({bufferedRanges:e})}renderContent(){var e=this.props;const t=e.postUrl,i=e.isListing,o=e.settingChange,s=e.showSettingsIcon,r=this.state.currentTime,n=this.props.isPaused?qe:Ke;return[Ue(te,{},"gradient"),t&&i&&Ue(tt,{tooltip:We},"snoo",Ue("div",{onClick:this.props.clickSnoo},void 0,Ue(ne,{postUrl:t}))),Ue(it,{tooltip:n},"play",Ue("button",{"aria-label":n,onClick:this.props.playPauseVideo},void 0,this.props.isPaused?Ue(G,{}):Ue(Z,{}))),Ue(st,{},"left-time",xe(r,this.props.totalTime)),Ue(nt,{},"scrubber",d.a.createElement(Ve,{active:o===ii.SeekBar,bufferedRanges:this.state.bufferedRanges,controlBarIsHidden:this.props.hideControlBar,currentTime:r,language:this.props.language,ref:this.props.seekBarRef,thumbSource:this.props.scrubberThumbSource,totalTime:this.props.totalTime,playPauseVideo:this.props.playPauseVideo,updatePosition:this.props.setVideoPosition,updateContinuousStartTime:this.props.updateContinuousStartTime})),Ue(rt,{},"right-time",Se(this.props.totalTime)),s&&Ue(lt,{tooltip:Ze,disable:o===ii.Settings},"setting",o===ii.Settings&&d.a.createElement(_e,{isLoggedIn:this.props.isLoggedIn,autoplayPref:this.props.autoplayPref,active:o===ii.Settings,ref:e=>this.props.settingRef(e),resolution:this.props.resolution,setResolution:this.props.setResolution,setAutoplay:this.props.setAutoplay,bitrateInfo:this.props.bitrateInfo}),Ue("button",{"aria-expanded":o===ii.Settings,"aria-haspopup":!0,"aria-label":Ze,onClick:this.props.toggleSetting},void 0,Ue(Y,{}))),this.props.isFullScreen?Ue(dt,{tooltip:Qe},"collapse",Ue("button",{"aria-label":Qe,onClick:this.props.exitFullScreen},void 0,Ue(z,{}))):Ue(ct,{tooltip:Ge},"expand",Ue("button",{"aria-label":Ge,onClick:this.props.enterFullScreen},void 0,Ue(U,{})))]}render(){return Ue(ht,{innerRef:this.props.controlBarRef,className:"video-control-bar",isFullScreen:this.props.isFullScreen,zeroOpacity:this.props.hideControlBar},void 0,this.renderContent(),!this.props.isGif&&Ue(at,{className:this.props.showVolumeIcon?"disableHide":""},void 0,d.a.createElement(De,{ref:e=>this.props.volumeRef(e),active:this.props.settingChange===ii.Volume,isMuted:this.props.isMuted,setVolume:this.props.setVolume,volume:this.props.volume}),Ue("button",{onClick:this.props.toggleMute},void 0,this.props.isMuted?Ue(q,{}):Ue(ee,{}))))}},pt=i("./src/reddit/controls/OutboundLink/styled.tsx"),ft=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var mt=$()(e=>ft("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,ft("g",{transform:"translate(1 1)"},void 0,ft("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),ft("path",{fill:"#fff",d:"M27.7 20.4h-7.4c-.2 0-.4-.2-.4-.4s.2-.5.5-.5h7.3c.3 0 .5.2.5.5s-.3.4-.5.4m0 3.1h-7.4c-.2 0-.4-.3-.4-.5 0-.3.2-.5.5-.5h7.3c.3 0 .5.2.5.5-.1.2-.3.5-.5.5m0 3h-7.4c-.2 0-.4-.2-.4-.5s.2-.5.5-.5h7.3c.3 0 .5.2.5.5-.1.3-.3.5-.5.5m0 3h-7.4c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h7.3c.3 0 .5.2.5.5s-.2.5-.4.5m2-12.2h-2.2c-.3-.6-1-1-1.7-1h-3.6c-.7 0-1.4.4-1.7 1h-2.2c-.5 0-1 .4-1 1v12.5c0 .5.4 1 1 1h11.5c.5 0 1-.4 1-1V18.2c-.1-.5-.5-.9-1.1-.9"})))).withConfig({componentId:"s15d3wzq-0"})(["fill: white;height: 50px;width: 50px;"]),vt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var gt=$()(e=>vt("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,vt("g",{transform:"translate(1 1)"},void 0,vt("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),vt("path",{fill:"#fff",d:"M34.5 23.7s-.1 0 0 0c-.1 0-.1 0 0 0-.1 0-.1 0 0 0-.1-.1-.1-.1-.2-.1l-15.4-7.2c-.1-.1-.3-.1-.5 0-.1.1-.2.2-.2.4v4.3c0 .2.2.4.4.5l10.3 1.9H18.2c-.1 0-.2 0-.2.1L15.6 25c-.2.1-.3.3-.2.6.1.2.2.3.5.3l2.4-.2v5.5c0 .2.1.3.2.4.1 0 .2.1.3.1h.2l15.4-7.2s.1 0 .1-.1c0 0 .1 0 .1-.1.1-.1.1-.2.1-.3-.1-.1-.2-.2-.2-.3"})))).withConfig({componentId:"znmpmm-0"})(["fill: white;height: 50px;width: 50px;"]),yt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var bt=$()(e=>yt("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,yt("g",{transform:"translate(1 1)"},void 0,yt("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),yt("path",{fill:"#fff",d:"M19.5 17.3h3.1l-1.8 5h2.3v6.5h-6.8v-6l3.2-5.5zm8.5 0h3.1l-1.8 5h2.3v6.5h-6.8v-6l3.2-5.5z"})))).withConfig({componentId:"s166oh9x-0"})(["fill: white;height: 50px;width: 50px;"]),wt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var St=$()(e=>wt("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,wt("g",{transform:"translate(1 1)"},void 0,wt("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),wt("path",{fill:"#fff",d:"M32.2 20.3c-.3-.2-.7-.2-1 0l-2.4 1.4v-1.5c0-1.1-.9-1.9-1.9-1.9h-7.7c-1.1 0-1.9.9-1.9 1.9v7.7c0 1.1.9 1.9 1.9 1.9h7.7c1.1 0 1.9-.9 1.9-1.9v-1.6l2.4 1.4c.2.1.3.1.5.1s.3 0 .5-.1c.3-.2.5-.5.5-.8v-5.8c-.1-.3-.2-.6-.5-.8"})))).withConfig({componentId:"s1rfp9rc-0"})(["margin-left: 14px;fill: white;height: 50px;width: 50px;"]),xt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var Pt=$()(e=>xt("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,xt("g",{transform:"translate(1 1)"},void 0,xt("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),xt("path",{fill:"#fff",d:"M30.7 25c.5 0 1 .4 1 1v2.9c0 1.6-1.3 2.9-2.9 2.9h-9.6c-1.6 0-2.9-1.3-2.9-2.9v-3c0-.5.4-1 1-1s1 .4 1 1v2.9c0 .5.4 1 1 1h9.6c.5 0 1-.4 1-1v-2.9c-.1-.5.3-.9.8-.9zm-7.4 1.6l-2.9-2.9c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0l1.2 1.3v-6.3c0-.5.4-1 1-1 .5 0 1 .4 1 1v6.3l1.2-1.2c.4-.4 1-.4 1.4 0 .4.4.4 1 0 1.4l-2.9 2.8c-.1.1-.2.2-.3.2-.2.1-.3.1-.4.1-.1 0-.2 0-.4-.1-.1 0-.2-.1-.3-.2z"})))).withConfig({componentId:"s1qp735r-0"})(["fill: white;height: 50px;width: 50px;"]),Ct=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var kt=$()(e=>Ct("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,Ct("g",{transform:"translate(1 1)"},void 0,Ct("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),Ct("path",{fill:"#fff",d:"M25.4 24c0 .8-.6 1.4-1.4 1.4s-1.4-.6-1.4-1.4.6-1.4 1.4-1.4 1.4.6 1.4 1.4zm5.3 0c0 .8-.6 1.4-1.4 1.4-.8 0-1.4-.6-1.4-1.4s.6-1.4 1.4-1.4c.8 0 1.4.6 1.4 1.4zm-10.5 0c0 .8-.6 1.4-1.4 1.4s-1.5-.6-1.5-1.4.6-1.4 1.4-1.4 1.5.6 1.5 1.4z"})))).withConfig({componentId:"s1anl3v2-0"})(["fill: white;height: 50px;width: 50px;"]),Mt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var Tt=$()(e=>Mt("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,Mt("g",{transform:"translate(1 1)"},void 0,Mt("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),Mt("path",{fill:"#fff",d:"M32.5,23.5c-0.7,0-1.4-0.6-1.4-1.4c0-0.7,0.6-1.4,1.4-1.4s1.4,0.6,1.4,1.4 C33.8,22.8,33.2,23.5,32.5,23.5 M29.8,26.2c-0.7,0-1.4-0.6-1.4-1.4c0-0.7,0.6-1.4,1.4-1.4c0.7,0,1.4,0.6,1.4,1.4 C31.1,25.6,30.5,26.2,29.8,26.2 M27.1,23.5c-0.7,0-1.4-0.6-1.4-1.4c0-0.7,0.6-1.4,1.4-1.4c0.7,0,1.4,0.6,1.4,1.4 C28.4,22.8,27.8,23.5,27.1,23.5 M21.6,23.1H20v1.7c0,0.6-0.5,1-1,1s-1-0.5-1-1v-1.7h-1.7c-0.6,0-1-0.5-1-1c0-0.6,0.5-1,1-1H18 v-1.7c0-0.6,0.5-1,1-1s1,0.5,1,1v1.7h1.7c0.6,0,1,0.5,1,1C22.7,22.7,22.2,23.1,21.6,23.1 M29.8,18c0.7,0,1.4,0.6,1.4,1.4 c0,0.7-0.6,1.4-1.4,1.4c-0.7,0-1.4-0.6-1.4-1.4C28.4,18.6,29,18,29.8,18 M37.3,28.1l-1.7-9.5c-0.4-1.9-2-3.3-4-3.3H17.1 c-2,0-3.6,1.4-4,3.3l-1.7,9.5c-0.2,1.2,0.1,2.4,0.9,3.3c0.8,0.9,1.9,1.5,3.1,1.5h0.2c1.8,0,3.3-1.1,3.9-2.8l0.4-1.3h8.9 l0.4,1.3c0.6,1.7,2.1,2.8,3.9,2.8h0.2c1.2,0,2.3-0.5,3.1-1.5C37.2,30.5,37.5,29.3,37.3,28.1"})))).withConfig({componentId:"xhi01f-0"})(["fill: white;height: 50px;width: 50px;"]),Ft=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var It=$()(e=>Ft("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,Ft("g",{transform:"translate(1 1)"},void 0,Ft("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),Ft("path",{fill:"#fff",d:"M29.3 20.2h-5.8c-.2 0-.5-.3-.5-.5 0-.3.2-.5.5-.5h5.8c.3 0 .5.2.5.5 0 .2-.3.5-.5.5zm0 4.3h-5.8c-.2 0-.5-.2-.5-.5s.2-.5.5-.5h5.8c.3 0 .5.2.5.5s-.3.5-.5.5zm0 4.3h-5.8c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h5.8c.3 0 .5.2.5.5s-.3.5-.5.5zm-8.2-8.2c0 .3-.2.5-.5.5h-1.9c-.3 0-.5-.2-.5-.5v-1.9c0-.3.2-.5.5-.5h1.9c.3 0 .5.2.5.5v1.9zm0 4.4c0 .3-.2.5-.5.5h-1.9c-.3 0-.5-.2-.5-.5v-2c0-.3.2-.5.5-.5h1.9c.3 0 .5.2.5.5v2zm0 4.3c0 .3-.2.5-.5.5h-1.9c-.3 0-.5-.2-.5-.5v-1.9c0-.3.2-.5.5-.5h1.9c.3 0 .5.2.5.5v1.9zm8.7-13H18.2c-1.1 0-1.9.9-1.9 1.9v11.5c0 1.1.9 1.9 1.9 1.9h11.5c1.1 0 1.9-.9 1.9-1.9V18.2c.1-1-.8-1.9-1.8-1.9z"})))).withConfig({componentId:"s10epjbs-0"})(["fill: white;height: 50px;width: 50px;"]),Bt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var Vt=$()(e=>Bt("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,Bt("g",{transform:"translate(1 1)"},void 0,Bt("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),Bt("path",{fill:"#fff",d:"M29 26c-.6 0-1-.4-1-1 0-.5.4-1 1-1s1 .4 1 1-.5 1-1 1zm-6.9-6c0-.5.4-1 1-1H27c.6 0 1 .4 1 1v2.1h-5.9V20zM21 26c-.6 0-1-.4-1-1 0-.5.4-1 1-1s1 .4 1 1-.5 1-1 1zm11.7-3.6c-.2-.2-.5-.3-.7-.3h-2V20c0-1.6-1.3-3-3-3h-3.9c-1.7 0-3 1.3-3 3v2.1H18c-.3 0-.6.1-.7.3-.2.2-.3.5-.2.8l1 9c.1.5.5.9 1 .9h12c.5 0 .9-.4 1-.9l1-9c-.1-.4-.2-.6-.4-.8z"})))).withConfig({componentId:"s13v8ivd-0"})(["fill: white;height: 50px;width: 50px;"]),At=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var Lt=$()(e=>At("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,At("g",{transform:"translate(1 1)"},void 0,At("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),At("path",{fill:"#fff",d:"M27.7 20.4h-7.4c-.2 0-.4-.2-.4-.4s.2-.5.5-.5h7.3c.3 0 .5.2.5.5s-.3.4-.5.4m0 3.1h-7.4c-.2 0-.4-.3-.4-.5 0-.3.2-.5.5-.5h7.3c.3 0 .5.2.5.5-.1.2-.3.5-.5.5m0 3h-7.4c-.2 0-.4-.2-.4-.5s.2-.5.5-.5h7.3c.3 0 .5.2.5.5-.1.3-.3.5-.5.5m0 3h-7.4c-.3 0-.5-.2-.5-.5s.2-.5.5-.5h7.3c.3 0 .5.2.5.5s-.2.5-.4.5m2-12.2h-2.2c-.3-.6-1-1-1.7-1h-3.6c-.7 0-1.4.4-1.7 1h-2.2c-.5 0-1 .4-1 1v12.5c0 .5.4 1 1 1h11.5c.5 0 1-.4 1-1V18.2c-.1-.5-.5-.9-1.1-.9"})))).withConfig({componentId:"s1dhajfs-0"})(["fill: white;height: 50px;width: 50px;"]),Ot=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var jt=$()(e=>Ot("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,Ot("g",{transform:"translate(1 1)"},void 0,Ot("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),Ot("path",{fill:"#fff",d:"M29.8 23H25v-4.8c0-.5-.4-1-1-1s-1 .4-1 1V23h-4.8c-.5 0-1 .4-1 1s.4 1 1 1H23v4.8c0 .5.4 1 1 1s1-.4 1-1V25h4.8c.5 0 1-.4 1-1s-.5-1-1-1"})))).withConfig({componentId:"hj4pri-0"})(["fill: white;height: 50px;width: 50px;"]),Rt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var Nt=$()(e=>Rt("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,Rt("g",{transform:"translate(1 1)"},void 0,Rt("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),Rt("path",{fill:"#fff",d:"M32.2 20.3c-.3-.2-.7-.2-1 0l-2.4 1.4v-1.5c0-1.1-.9-1.9-1.9-1.9h-7.7c-1.1 0-1.9.9-1.9 1.9v7.7c0 1.1.9 1.9 1.9 1.9h7.7c1.1 0 1.9-.9 1.9-1.9v-1.6l2.4 1.4c.2.1.3.1.5.1s.3 0 .5-.1c.3-.2.5-.5.5-.8v-5.8c-.1-.3-.2-.6-.5-.8"})))).withConfig({componentId:"z74jit-0"})(["fill: white;height: 50px;width: 50px;"]),$t=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();const Et=$()(pt.a).withConfig({componentId:"s1bnpio3-0"})(["&:hover{text-decoration: none;}"]),Ht=$.a.span.withConfig({componentId:"s1bnpio3-1"})(["display: flex;align-items: center;","color: #FFF;text-align: center;margin-left: 10px;"],le.smallButtonFont),_t=$.a.div.withConfig({componentId:"s1bnpio3-2"})(["display: flex;justify-content: inherit;margin-top: 20px;"]),zt={"Apply Now":$t(mt,{}),"Contact Us":$t(gt,{}),"Learn More":$t(kt,{}),"Get a Quote":$t(bt,{}),"Get Showtimes":$t(St,{}),Install:$t(Pt,{}),Download:$t(Pt,{}),"Learn More":$t(kt,{}),"Play Now":$t(Tt,{}),"See Menu":$t(It,{}),"Shop Now":$t(Vt,{}),"Sign Up":$t(Lt,{}),"View More":$t(jt,{}),"Watch Now":$t(Nt,{})};var Dt=Object(C.b)(e=>{const t=e.callToAction,i=e.sendEvent,o=e.source;return $t(Et,{onClick:e=>i(e=>Object.assign({},Object(T.defaults)(e),{source:"videoplayer",action:"click",noun:"callToAction"})),href:o.url,isSponsored:!0,source:o},void 0,$t(_t,{},void 0,(e=>zt[e=e||"Learn More"])(t),$t(Ht,{},void 0,t||"Learn More")))}),Ut=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();var Wt=$()(e=>Ut("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,Ut("g",{transform:"translate(1 1)"},void 0,Ut("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),Ut("path",{fill:"#fff",d:"M32.5 23.3c-.7 0-1.2.5-1.2 1.2 0 4-3.2 7.2-7.2 7.2s-7.2-3.2-7.2-7.2c0-3.6 2.7-6.6 6.2-7.1v1.7c0 .2.1.4.3.5.1 0 .2.1.3.1.1 0 .3 0 .4-.1l3.6-3c.1-.1.2-.3.2-.5s-.1-.3-.2-.5l-3.7-3c-.2-.1-.4-.2-.6-.1-.2.1-.4.3-.4.6V15c-4.8.5-8.6 4.6-8.6 9.5 0 5.3 4.3 9.6 9.6 9.6s9.6-4.3 9.6-9.6c.1-.7-.5-1.2-1.1-1.2"})))).withConfig({componentId:"s1hg8ftt-0"})(["fill: white;width: 50px;height: 50px;"]),qt=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();const Kt=$.a.div.withConfig({componentId:"bs1rs8-0"})(["height: auto;width: auto;opacity: 0.95;transition: all 0.1s linear;&:hover {opacity: 1;}"]),Zt=$.a.div.withConfig({componentId:"bs1rs8-1"})(["position: absolute;display: flex;height: 100%;width: 100%;align-items: center;justify-content: center;background: rgba(0, 0, 0, 0.4);opacity: 1;transition: all 0.2s ease-in-out;cursor: pointer;&:active "," {transform: scale(0.9);}"],Kt),Qt=$.a.span.withConfig({componentId:"bs1rs8-2"})(["display: flex;align-items: center;","margin-left: 10px;color: #FFF;text-align: center;"],le.smallButtonFont),Gt=$.a.button.withConfig({componentId:"bs1rs8-3"})(["align-items: center;display: flex;justify-content: center;"]);var Jt=e=>{const t=e.onClick,i=e.source,o=e.callToAction;return qt(Zt,{onClick:t},void 0,qt(Kt,{},void 0,qt(Gt,{},void 0,qt(Wt,{}),qt(Qt,{className:"replay-video"},void 0,Object(H.a)("en","video.replay"))),i&&o&&qt(Dt,{callToAction:o,source:i})))},Yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},Xt=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&(i[o[s]]=e[o[s]])}return i},ei=$()(e=>{e.isVisible;var t=e.setRef,i=Xt(e,["isVisible","setRef"]);return d.a.createElement("div",Yt({ref:t},i))}).withConfig({componentId:"s1cwfoiu-0"})(["max-width: 100%;max-height: 100%;position: relative;background-color: #000;",""],e=>e.isVisible?"":"visibility: hidden;"),ti=$.a.div.withConfig({componentId:"e0lqz0-0"})(["position: absolute;top: 0;bottom: 0;left: 0;right: 0;"]);i("./src/reddit/components/HTML5StreamPlayer/styles.less");i.d(t,"a",function(){return ii});var ii,oi=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();!function(e){e[e.SeekBar=0]="SeekBar",e[e.Settings=1]="Settings",e[e.Volume=2]="Volume"}(ii||(ii={}));const si=3e3,ri=6e3,ni=100,ai=Object(h.connect)(()=>Object(u.createStructuredSelector)({isLoggedIn:j.F,autoplayPref:j.b,currentTime:R.d,isMutedPreference:L.a,isOverlayOpen:O.h,language:j.M,loadTimes:R.f,metadata:R.g,started:R.i,volume:L.b}),(e,t)=>({exitVideoFullscreen:()=>e(S.z()),onLoadStarted:i=>e(S.v(t.postId,i)),onMetadataReceived:t=>e(S.H({metadata:t,postId:t.id})),onPlayable:i=>e(S.E(t.postId,i)),onUpdateVideoTime:l()(i=>{e(S.L({postId:t.postId,time:i}))},k.k,{maxWait:k.l}),openLightbox:()=>e(Object(p.a)(t.postUrl)),setPlaying:i=>e(S.K({postId:t.postId,isPlaying:i})),setAutoplayPref:t=>e(w.p(t)),setVideoFullscreen:()=>e(S.J(t.postId)),setVideoMuted:i=>e(b.c(i,t.postId)),setVideoVolume:t=>e(b.d(t)),onWatchedPercent:i=>e(S.P(i,t.postId)),onWatchedSeconds:i=>e(S.Q(i,t.postId)),onUpdateContinuousViewStartTime:i=>e(S.y({postId:t.postId,time:i})),onVideoStarted:()=>e(S.O(t.postId))}));class li extends c.Component{constructor(e){super(e),this.percentagePixelsFired={[k.b]:!1,[k.c]:!1,[k.d]:!1,[k.e]:!1,[k.a]:!1},this.timePixelsFired={[k.g]:!1,[k.h]:!1,[k.f]:!1},this.sendEvent=((e,t,i=!1)=>{if(this.HTML5StreamPlayerVideo&&null!=this.props.postId){const o=i?V(this.props.postId,e,t):F(this.props.postId,e,t);this.props.sendEvent(o)}}),this.getVideoQualityList=(()=>{if(this.dashPlayer){const e=this.dashPlayer.getBitrateInfoListFor("video");this.setState({bitrateInfo:e})}}),this.handleKeyDown=(e=>{this.updateUsingKeyStatus(e)}),this.handleKeyUp=(e=>{this.updateUsingKeyStatus(e)}),this.handleMouseEnter=(e=>{const t=this.HTML5StreamPlayerVideo;t&&this.controlBarApi&&this.controlBarApi.setCurrentTime(t.currentTime),this.resetControlBarFadeTimer()}),this.handleMouseDown=(e=>{e.stopPropagation();const t=this.seekBar,i=this.volumeControl;i&&i.container&&i.container.contains(e.target)?(this.setState({settingChange:ii.Volume}),i.handleMouseDown(e)):t&&t.parentRect&&t.parentRect.contains(e.target)&&(this.setState({settingChange:ii.SeekBar}),t.handleMouseDown(e)),this.state.usingKeys&&this.setState({usingKeys:!1})}),this.handleMouseMove=(e=>{const t=this.controlBar,i=this.seekBar,o=this.volumeControl;switch(this.setState({hasHovered:!0}),t&&t.contains(e.target)?this.clearControlBarFadeTimer():this.resetControlBarFadeTimer(),this.state.settingChange){case ii.SeekBar:i&&i.handleMouseMove(e);break;case ii.Volume:o&&o.handleMouseMove(e);break;case ii.Settings:}}),this.handleMouseUp=(e=>{e.stopPropagation();const t=this.controlBar,i=this.seekBar,o=this.volumeControl;switch(this.state.settingChange){case ii.SeekBar:if(i){this.setState({ignoreUnderrunsUntil:Date.now()+ni}),i.handleMouseUp(e),this.sendEvent("click","seek");const t=this.HTML5StreamPlayerVideo;this.state.videoEnded&&t&&t.currentTime!==t.duration&&this.playVideo()}break;case ii.Volume:o&&(o.handleMouseUp(e),this.sendEvent("click","volume"));break;case ii.Settings:if(t&&t.contains(e.target))return;break;default:if(t&&!t.contains(e.target)){var s=this.props.playerClickPlay;const t=void 0===s||s;if(this.props.trackPostClick&&this.props.trackPostClick("media")(),this.resetControlBarFadeTimer(),this.state.videoEnded)return;this.props.isGif&&this.props.isListing&&!this.state.videoPaused?this.props.openLightbox():!t&&this.state.videoPaused||this.playPauseVideo(e)}}this.setState({settingChange:void 0})}),this.handleMouseLeave=(e=>{switch(this.clearControlBarFadeTimer(),this.setState({hideControlBar:!0}),this.state.settingChange){case ii.SeekBar:case ii.Volume:case ii.Settings:default:this.setState({settingChange:void 0})}}),this.handleClick=(e=>{e.stopPropagation()}),this.setContainerRef=(e=>this.HTML5StreamPlayerContainer=e),this.setControlBarRef=(e=>this.controlBar=e),this.setControlBarApi=(e=>this.controlBarApi=e),this.setVolumeRef=(e=>this.volumeControl=e),this.setSeekBarRef=(e=>this.seekBar=e),this.setSettingRef=(e=>this.settingControl=e),this.onCanPlay=(()=>{if(this.HTML5StreamPlayerVideo&&!this.state.videoLoaded){this.setState({videoLoaded:!0,videoWaiting:!1});let t=!0;try{const i=localStorage.getItem("preview_video");(t=!i||JSON.parse(i))||this.props.setVideoMuted(!1)}catch(e){}this.props.autoPlay&&(this.props.autoplayPref||this.props.shouldIgnoreAutoplayPref)||this.props.isExpando?this.playVideo():this.pauseVideo()}}),this.clearControlBarFadeTimer=(()=>{const e=this.controlBarFadeTimer;e&&clearTimeout(e)}),this.resetControlBarFadeTimer=((e=si)=>{this.clearControlBarFadeTimer(),this.setState({hideControlBar:!1}),this.controlBarFadeTimer=window.setTimeout(()=>{this.setState({hideControlBar:!0})},e)}),this.exitHandler=(()=>{this.state.videoFullScreen&&!Object(m.b)()&&this.exitFullScreen()}),this.playPauseVideo=(e=>{const t=this.HTML5StreamPlayerVideo;t&&(t.paused&&this.state.videoPaused?(this.playVideo(),this.sendEvent("click","play"),this.setState({videoManualPaused:!1})):(this.pauseVideo(),this.sendEvent("click","pause"),this.setState({videoManualPaused:!0})))}),this.playVideo=(async()=>{const e=this.HTML5StreamPlayerVideo;if(e)try{await e.play(),e.currentTime<1&&this.props.onVideoStarted(),this.setVideoMute(this.state.isMuted),this.props.setPlaying(!0),this.setState({videoEnded:!1})}catch(t){}}),this.pauseVideo=(()=>{const e=this.HTML5StreamPlayerVideo;e&&(e.pause(),this.props.setPlaying(!1),this.setState({videoPaused:!0}))}),this.resetVideo=(e=>{this.state.videoEnded&&(this.playVideo(),this.sendEvent("click","replay"),this.setState({ignoreUnderrunsUntil:Date.now()+ni,videoEnded:!1,videoManualPaused:!1}))}),this.exitFullScreen=(()=>{document.exitFullScreen?document.exitFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),this.setState({videoFullScreen:!1}),null!=this.props.postId&&(this.sendEvent("change","pagetype",!0),this.props.exitVideoFullscreen())}),this.enterFullScreen=(()=>{const e=this.HTML5StreamPlayerContainer;e&&(e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()),this.setState({videoFullScreen:!0}),this.sendEvent("click","fullscreen"),null!=this.props.postId&&(this.sendEvent("change","pagetype",!0),this.props.setVideoFullscreen())}),this.setVolume=((e,t)=>{const i=this.HTML5StreamPlayerVideo;i&&(t?0!==e&&this.props.setVideoVolume(e):(i.volume=e,e||this.state.isMuted?e&&this.state.isMuted&&this.setVideoMute(!1):this.setVideoMute(!0)))}),this.toggleMuteVideo=(e=>{if(e.stopPropagation(),this.HTML5StreamPlayerVideo){const e=!this.state.isMuted;this.setVideoMute(e);const t=e?"mute":"unmute";this.sendEvent("click",t);const i=e?"true":"false";localStorage.setItem("preview_video",i)}}),this.setVideoMute=(e=>{const t=this.HTML5StreamPlayerVideo;this.setState({isMuted:e}),this.props.setVideoMuted(e),t&&(t.muted=e,e||(t.volume=this.props.volume))}),this.clickSnoo=(e=>{this.sendEvent("click","snoo")}),this.setAutoplay=(e=>{this.props.setAutoplayPref(e),e?this.sendEvent("click","video_autoplay_on"):this.sendEvent("click","video_autoplay_off")}),this.setResolution=(e=>{const t=this.state.bitrateInfo;if(t&&this.dashPlayer){if(e===je)this.dashPlayer.setAutoSwitchQualityFor("video",!0);else{const i=t.findIndex(t=>t.height===e);this.dashPlayer.setAutoSwitchQualityFor("video",!1),this.dashPlayer.setQualityFor("video",i)}this.setState({resolution:e})}}),this.toggleSetting=(e=>{this.state.settingChange===ii.Settings?this.setState({settingChange:void 0}):this.setState({settingChange:ii.Settings})}),this.setVideoPos=(e=>{const t=this.HTML5StreamPlayerVideo;if(t&&Number.isFinite(t.duration)){const i=t.duration/100*e;this.controlBarApi&&!this.state.hideControlBar&&this.controlBarApi.setCurrentTime(i),t.currentTime=i}}),this.updateTime=(()=>{const e=performance.now(),t=this.HTML5StreamPlayerVideo;if(t){let i=this.state.maxTimeServed;if(this.state.lastUpdate&&!this.state.videoPaused&&(i+=e-this.state.lastUpdate),t.currentTime&&t.duration){let o=!1;this.triggerAdWatchedPixels(t.currentTime,t.duration,i/1e3),t.currentTime>=t.duration&&(this.props.isGif||(o=!0,this.pauseVideo())),this.controlBarApi&&!this.state.hideControlBar&&this.controlBarApi.setCurrentTime(t.currentTime),this.setState({videoEnded:o,maxTimeServed:i,lastUpdate:e})}if(this.props.postId){const e={currentTime:1e3*t.currentTime,maxTimeServed:i};this.props.onUpdateVideoTime(e)}}}),this.triggerAdWatchedPixels=((e,t,i)=>{const o=this.getWatchedPercentRange(e,t);i>=t&&this.triggerPercentagePixels(k.a),this.triggerPercentagePixels(o);i/t>=.95&&this.triggerTimeWatchedPixels(k.f),this.triggerTimeWatchedPixels(i)}),this.updateContinuousStartTime=(e=>{this.props.onUpdateContinuousViewStartTime(e)}),this.onVideoPlayable=(e=>{this.props.metadata||this.sendTransformedMetadata(e)}),this.onPlaying=(e=>{const t=performance.now();this.props.metadata||this.sendTransformedMetadata(e),this.setState({videoWaiting:!1,videoPaused:!1,lastUpdate:t})}),this.sendTransformedMetadata=(e=>{null!=this.props.postId&&this.props.onMetadataReceived({id:this.props.postId,length:1e3*e.target.duration,originalHeight:e.target.videoHeight,originalWidth:e.target.videoWidth}),this.setState({totalTime:e.target.duration})}),li.dashjs||(li.dashjs=Object(y.a)(()=>i.e("vendors~dashjs").then(i.t.bind(null,"./node_modules/dashjs/build/es5/index.js",7)))),this.state={bitrateInfo:[],hasHovered:!1,hideControlBar:!0,isMuted:e.isListing||e.isMutedPreference,lastUpdate:null,ignoreUnderrunsUntil:0,maxTimeServed:0,post:e.post,resolution:je,scrubPosition:0,settingChange:void 0,settingSeekBar:!1,settingVolume:!1,thumbPosition:0,totalTime:0,videoEnded:!1,videoFullScreen:!1,videoInView:!1,videoLoaded:!1,videoManualPaused:!1,videoPaused:!e.autoPlay,videoScrollPaused:!0,videoWaiting:!0,usingKeys:!1}}componentDidMount(){li.dashjs.then(e=>{const t=this.HTML5StreamPlayerVideo,i=this.props.mpegDashSource;if(t&&i){this.dashPlayer=e.MediaPlayer().create(),this.dashPlayer.getDebug().setLogToBrowserConsole(!1);try{this.dashPlayer.initialize(t,i,t.autoplay),this.dashPlayer.setFastSwitchEnabled(!0),this.dashPlayer.setInitialBitrateFor("video",999999999),this.dashPlayer.setAutoSwitchQualityFor("video",!0)}catch(o){return}null!=this.props.postId&&this.props.onLoadStarted(performance.now()),this.dashPlayer.on(e.MediaPlayer.events.STREAM_INITIALIZED,()=>{this.getVideoQualityList(),null!=this.props.postId&&this.props.onPlayable(performance.now()),this.controlBarApi&&!this.state.hideControlBar&&this.controlBarApi.setCurrentTime(0)}),this.dashPlayer.on(e.MediaPlayer.events.BUFFER_EMPTY,e=>{if(null!=this.props.postId&&Date.now()>this.state.ignoreUnderrunsUntil){const e=B(this.props.postId);this.props.sendEvent(e),this.setState({ignoreUnderrunsUntil:Date.now()+ni})}}),this.dashPlayer.on(e.MediaPlayer.events.METRIC_ADDED,e=>{if(null==this.props.postId)return;if(parseInt(n()(this.props.postId).toString(),16)%100>10)return;if(!e||!e.value||!e.metric)return;if("HttpList"!==e.metric)return;const t=e.value;if("MediaSegment"!==t.type)return;const i=t._responseHeaders,o=t.range;let s,r,a,l;if(void 0!==o){const e=o.split("-");2===e.length&&(s=parseInt(e[1])-parseInt(e[0])+1)}if(i.split("\n").forEach(e=>{const t=e.split(":");if(2!==t.length)return;const i=t[0].trim(),o=t[1].trim();"x-cdn-server-region"===i&&(r=o),"x-cdn-client-region"===i&&(a=o),"x-cdn-name"===i&&(l=o)}),!r||!a||!l)return;const c=I(this.props.postId,t.url,l,r,a,t.interval,s);this.props.sendEvent(c)})}});const e=this.HTML5StreamPlayerVideo;document.addEventListener("webkitfullscreenchange",this.exitHandler,!1),document.addEventListener("fullscreenchange",this.exitHandler,!1),document.addEventListener("mozfullscreenchange",this.exitHandler,!1),document.addEventListener("MSFullscreenChange",this.exitHandler,!1),e&&(g()?e.play():s.a.safari&&!this.props.mpegDashSource&&setTimeout(async()=>{try{await e.play()}catch(t){}finally{e.pause()}}),e.oncanplay=(()=>this.onCanPlay()),e.onprogress=(()=>this.setBuffered()),e.onseeked=(()=>this.setState({videoWaiting:!1})),e.onwaiting=(()=>this.setState({videoWaiting:!0})),e.onplaying=(e=>this.onPlaying(e)),e.onloadeddata=(e=>this.onVideoPlayable(e)),e.onloadedmetadata=(e=>this.sendTransformedMetadata(e)),this.props.currentTime&&(e.currentTime=this.props.currentTime))}resetMediaPlayer(){this.dashPlayer&&this.dashPlayer.reset()}componentWillUnmount(){document.removeEventListener("webkitfullscreenchange",this.exitHandler,!1),document.removeEventListener("fullscreenchange",this.exitHandler,!1),document.removeEventListener("mozfullscreenchange",this.exitHandler,!1),document.removeEventListener("MSFullscreenChange",this.exitHandler,!1),this.resetMediaPlayer(),this.clearControlBarFadeTimer(),null==this.props.postId||this.state.videoScrollPaused||this.sendEvent("served","video",!0)}shouldComponentUpdate(e,t){const i=!!this.props.isListing&&!this.props.isOverlayOpen&&e.isOverlayOpen,o=!!this.props.isListing&&this.props.isOverlayOpen&&!e.isOverlayOpen,s=this.props.isOverlayOpen!==e.isOverlayOpen;return t.videoFullScreen!==this.state.videoFullScreen||t.videoPaused!==this.state.videoPaused||t.isMuted!==this.state.isMuted||t.hideControlBar!==this.state.hideControlBar||t.settingChange!==this.state.settingChange||t.videoScrollPaused!==this.state.videoScrollPaused||t.videoWaiting!==this.state.videoWaiting||e.shouldPause!==this.props.shouldPause||e.shouldStop!==this.props.shouldStop||t.videoLoaded!==this.state.videoLoaded||t.usingKeys!==this.state.usingKeys||t.resolution!==this.state.resolution||i||o||s}componentWillReceiveProps(e){const t=this.HTML5StreamPlayerVideo,i=t&&!t.paused,o=!e.shouldStop&&this.props.shouldStop,s=e.shouldStop&&!this.props.shouldStop,r=!e.shouldPause&&this.props.shouldPause,n=e.shouldPause&&!this.props.shouldPause,a=!this.props.shouldPause&&!this.props.shouldStop,l=!e.isOverlay&&!this.props.isOverlay,c=e.isOverlayOpen&&!this.props.isOverlayOpen,d=!e.isOverlayOpen&&this.props.isOverlayOpen,h=(a||i)&&l&&c,u=a&&l&&d;if(o&&(this.setState({videoScrollPaused:!1}),this.sendEvent("view","autoplay")),(r||u)&&(!this.state.videoManualPaused&&t&&t.currentTime<t.duration&&(e.currentTime&&(t.currentTime=e.currentTime),(this.props.autoplayPref||this.props.shouldIgnoreAutoplayPref||this.props.isOverlay)&&this.playVideo()),u&&this.sendEvent("change","pagetype",!0)),(n||h)&&(this.pauseVideo(),h&&this.sendEvent("change","pagetype",!0)),s&&(this.setState({videoScrollPaused:!0}),this.sendEvent("served","video",!0),this.state.videoEnded||(this.sendEvent("scroll","pause"),this.setVideoMute(!0))),e.mpegDashSource&&this.props.mpegDashSource!==e.mpegDashSource){const t=this.dashPlayer;try{t.setAutoPlay(e.autoPlay),t.attachSource(e.mpegDashSource)}catch(p){}}}updateUsingKeyStatus(e){if(0!==e.location)return;this.state.usingKeys||this.setState({usingKeys:!0});let t=ri;this.state.settingChange===ii.Settings&&(t=5*ri),this.resetControlBarFadeTimer(t)}setBuffered(){const e=this.HTML5StreamPlayerVideo;if(e&&this.controlBarApi){const t=[];for(let i=0;i<e.buffered.length;i++){const o={start:e.buffered.start(i)/e.duration*100,end:e.buffered.end(i)/e.duration*100};t.push(o)}this.controlBarApi.setBufferedRanges(t)}}getWatchedPercentRange(e,t){const i=e/t;return 1===i?k.a:i>=.95?k.e:i>=.75?k.d:i>=.5?k.c:i>=.25?k.b:0}triggerPercentagePixels(e){k.i.forEach(t=>{t<=e&&!this.percentagePixelsFired[t]&&(this.props.onWatchedPercent(t),this.percentagePixelsFired[t]=!0)})}triggerTimeWatchedPixels(e){k.j.forEach(t=>{t<=e&&!this.timePixelsFired[t]&&(this.props.onWatchedSeconds(t),this.timePixelsFired[t]=!0)})}render(){var e=this.props;const t=e.className,i=e.hideUntilLoaded;var o=e.playerClickPlay;const s=void 0===o||o;var r=e.showControlBar;const n=void 0===r||r;var a=e.showSettingsIcon;const l=void 0===a||a;var c=this.state;const h=c.hasHovered,u=c.hideControlBar,p=c.isMuted,m=c.settingChange,v=c.videoEnded,g=c.videoLoaded,y=this.HTML5StreamPlayerVideo,b=m===ii.SeekBar,w=g||!i,S=w&&y&&0!==y.currentTime,C=!h&&p,k=v&&!b;return oi(ei,{setRef:this.setContainerRef,className:Object(f.a)(t,`reddit-video-player-root${this.state.videoFullScreen?"__fullscreen":""}`,this.state.usingKeys?"using-keys":null),isVisible:w,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp},void 0,this.props.blurImageSrc&&oi(E,{src:this.props.blurImageSrc}),d.a.createElement("video",{poster:this.props.posterUrl,loop:this.props.isGif,autoPlay:this.props.autoPlay,muted:p,onTimeUpdate:this.updateTime,preload:"metadata",ref:e=>this.HTML5StreamPlayerVideo=e,className:this.state.videoFullScreen?"HTML5StreamPlayer__video__fullscreen":"HTML5StreamPlayer__video__regular"},this.props.hlsSource&&oi("source",{src:this.props.hlsSource,type:"application/vnd.apple.mpegURL"}),this.props.otherSource&&oi("source",{src:this.props.otherSource})),k?oi(Jt,{onClick:this.resetVideo,source:this.props.callToActionSource,callToAction:this.props.callToActionText}):oi(ti,{}),this.state.videoWaiting?S&&oi(x.a,{}):this.state.videoPaused&&!k&&oi(P.b,{onClick:s?void 0:this.playPauseVideo}),n&&d.a.createElement(ut,{isLoggedIn:this.props.isLoggedIn,autoplayPref:this.props.autoplayPref,bitrateInfo:this.state.bitrateInfo,clickSnoo:this.clickSnoo,controlBarRef:this.setControlBarRef,currentTime:y?y.currentTime:0,updateContinuousStartTime:this.updateContinuousStartTime,enterFullScreen:this.enterFullScreen,exitFullScreen:this.exitFullScreen,hideControlBar:u,isFullScreen:this.state.videoFullScreen,isGif:this.props.isGif,isListing:this.props.isListing,isMuted:this.state.isMuted,isPaused:this.state.videoPaused,language:this.props.language,playPauseVideo:this.playPauseVideo,postUrl:this.props.postUrl,ref:this.setControlBarApi,resolution:this.state.resolution,scrubberThumbSource:this.props.scrubberThumbSource,seekBarRef:this.setSeekBarRef,setAutoplay:this.setAutoplay,setResolution:this.setResolution,settingChange:m,settingRef:this.setSettingRef,setVideoPosition:this.setVideoPos,setVolume:this.setVolume,showSettingsIcon:l,showVolumeIcon:C,toggleMute:this.toggleMuteVideo,toggleSetting:this.toggleSetting,totalTime:this.state.totalTime,volume:this.props.volume,volumeRef:this.setVolumeRef}))}}t.b=ai(Object(C.b)(Object(M.b)(li)))},"./src/reddit/components/HTML5StreamPlayer/styles.less":function(e,t,i){},"./src/reddit/components/Media/LoadingIcon/index.tsx":function(e,t,i){"use strict";i("./node_modules/react/index.js");var o,s=i("./bundled-modules/styled-components/styled-components.min.js"),r=i.n(s),n=i("./src/config.ts"),a=(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,i,s){var r=e&&e.defaultProps,n=arguments.length-3;if(t||0===n||(t={}),t&&r)for(var a in r)void 0===t[a]&&(t[a]=r[a]);else t||(t=r||{});if(1===n)t.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];t.children=l}return{$$typeof:o,type:e,key:void 0===i?null:""+i,ref:null,props:t,_owner:null}});const l=r.a.img.withConfig({componentId:"s1ffkmua-0"})(["position: absolute;top: 50%;left: 50%;margin-top: -","px;margin-left: -","px;height: ","px;width: ","px;"],44,44,88,88),c=`${n.a.assetPath}/img/loading.gif`;t.a=(()=>a(l,{src:c}))},"./src/reddit/components/PlayButton/index.tsx":function(e,t,i){"use strict";i("./node_modules/react/index.js");var o,s=i("./bundled-modules/styled-components/styled-components.min.js"),r=i.n(s),n=(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,i,s){var r=e&&e.defaultProps,n=arguments.length-3;if(t||0===n||(t={}),t&&r)for(var a in r)void 0===t[a]&&(t[a]=r[a]);else t||(t=r||{});if(1===n)t.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];t.children=l}return{$$typeof:o,type:e,key:void 0===i?null:""+i,ref:null,props:t,_owner:null}});var a=r()(e=>n("svg",{className:e.className,viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},void 0,n("g",{transform:"translate(1 1)"},void 0,n("circle",{cx:"24",cy:"24",r:"24",fill:"none",stroke:"#fff",strokeWidth:"1.92"}),n("path",{fill:"#fff",d:"M33.1 22.2l-11.5-6.7c-.3-.2-.7-.2-1 0-.3.2-.4.5-.4.8v13.4c0 .3.2.7.5.8.1.1.3.1.5.1s.3 0 .5-.1l11.5-6.7c.3-.2.5-.5.5-.8-.1-.3-.3-.6-.6-.8"})))).withConfig({componentId:"s1e4nlpz-0"})(["fill: white;height: 50px;width: 50px;"]);i.d(t,"a",function(){return d});var l=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,i,o,s){var r=t&&t.defaultProps,n=arguments.length-3;if(i||0===n||(i={}),i&&r)for(var a in r)void 0===i[a]&&(i[a]=r[a]);else i||(i=r||{});if(1===n)i.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];i.children=l}return{$$typeof:e,type:t,key:void 0===o?null:""+o,ref:null,props:i,_owner:null}}}();const c=r()(a).withConfig({componentId:"s1k1tpap-0"})(["height: 50px;width: 50px;opacity: 0.95;transition: all 0.1s linear;"]),d=r.a.div.withConfig({componentId:"s1k1tpap-1"})(["position: absolute;top: 50%;left: 50%;margin-left: -30px;margin-top: -30px;&:hover "," {opacity: 1;}&:active "," {transform: scale(0.9);}"],c,c);t.b=(e=>l(d,{onClick:e.onClick},void 0,l(c,{})))},"./src/reddit/constants/keycodes.ts":function(e,t,i){"use strict";var o,s;i.d(t,"a",function(){return o}),i.d(t,"b",function(){return s}),function(e){e[e.ArrowDown=40]="ArrowDown",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Delete=46]="Delete",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.K=75]="K",e[e.Space=32]="Space",e[e.Tab=9]="Tab",e[e.Comma=188]="Comma"}(o||(o={})),function(e){e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Escape="Escape",e.Tab="Tab",e.Space=" ",e.Comma=","}(s||(s={}))},"./src/reddit/constants/zIndex.ts":function(e,t,i){"use strict";i.d(t,"q",function(){return o}),i.d(t,"g",function(){return s}),i.d(t,"e",function(){return r}),i.d(t,"s",function(){return n}),i.d(t,"h",function(){return a}),i.d(t,"k",function(){return l}),i.d(t,"d",function(){return c}),i.d(t,"n",function(){return d}),i.d(t,"l",function(){return h}),i.d(t,"o",function(){return u}),i.d(t,"p",function(){return p}),i.d(t,"i",function(){return f}),i.d(t,"f",function(){return m}),i.d(t,"c",function(){return v}),i.d(t,"j",function(){return g}),i.d(t,"a",function(){return y}),i.d(t,"t",function(){return b}),i.d(t,"r",function(){return w}),i.d(t,"u",function(){return S}),i.d(t,"b",function(){return x}),i.d(t,"m",function(){return P});const o=1,s=2,r=3,n=4,a=10,l=30,c=40,d=50,h=55,u=60,p=70,f=80,m=85,v=90,g=90,y=94,b=95,w=99,S=100,x=110,P=100},"./src/reddit/contexts/InsideOverlay.tsx":function(e,t,i){"use strict";i.d(t,"a",function(){return l}),i.d(t,"b",function(){return c});var o,s=i("./node_modules/react/index.js"),r=i.n(s),n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},a=(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,i,s){var r=e&&e.defaultProps,n=arguments.length-3;if(t||0===n||(t={}),t&&r)for(var a in r)void 0===t[a]&&(t[a]=r[a]);else t||(t=r||{});if(1===n)t.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];t.children=l}return{$$typeof:o,type:e,key:void 0===i?null:""+i,ref:null,props:t,_owner:null}});const l=r.a.createContext(!1);function c(e){return class extends r.a.Component{render(){return a(l.Consumer,{},void 0,t=>r.a.createElement(e,n({},this.props,{isOverlay:t})))}}}},"./src/reddit/controls/OutboundLink/index.tsx":function(e,t,i){"use strict";var o=i("./node_modules/lodash/omit.js"),s=i.n(o),r=i("./node_modules/react/index.js"),n=i.n(r),a=i("./node_modules/react-redux/es/index.js"),l=i("./node_modules/reselect/lib/index.js"),c=i("./src/lib/addQueryParams/index.ts");var d=(e,t)=>t?Object(c.a)(e,{user_id:t}):e,h=i("./src/lib/redditId/index.ts"),u=i("./src/reddit/selectors/user.ts"),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e};const f=Object(l.createSelector)(u.a,u.j,(e,t)=>({allowClickTracking:e,userId:t?Object(h.a)(t.id):null})),m=Object(a.connect)(f,{}),v=(e,t,i,o)=>{o&&t.outboundUrl&&t.outboundUrlExpiration&&t.outboundUrlExpiration>Date.now()&&(e.href=d(t.outboundUrl,i))},g=m(e=>{const t=e.allowClickTracking,i=e.href,o=e.isSponsored,r=e.source,a=e.userId;let l=s()(e,["allowClickTracking","isSponsored","source","userId"]);const c=r&&r.outboundUrl&&o?r.outboundUrl:i;return l=Object.assign({},l,{href:c,rel:"noopener noreferrer",target:"_blank"}),!r||(e=>{const t=e.outboundUrlCreated,i=e.outboundUrlReceived;return!(!t||!i)&&(t>i+3e5||t<i-36e5)})(r)?n.a.createElement("a",l):n.a.createElement("a",p({},l,{onMouseDown:e=>{if(1===e.button||2===e.button||e.ctrlKey)return!0;v(e.currentTarget,r,a,t)},onMouseLeave:e=>((e,t)=>{e.href=t})(e.currentTarget,c),onTouchStart:e=>v(e.currentTarget,r,a,t)}))});t.a=g},"./src/reddit/controls/OutboundLink/styled.tsx":function(e,t,i){"use strict";var o=i("./node_modules/polished/dist/polished.es.js"),s=i("./bundled-modules/styled-components/styled-components.min.js"),r=i.n(s),n=i("./src/reddit/controls/OutboundLink/index.tsx"),a=i("./src/reddit/helpers/styles/mixins/fonts.tsx"),l=i("./src/reddit/models/Theme/NewColorSystem/index.ts");t.a=r()(n.a).withConfig({componentId:"b5szba-0"})(["","margin: 4px 8px;white-space: nowrap;color: ",";fill: ",";&:visited {color: ",";fill: ",";}&:hover {text-decoration: underline;}"],a.metadataFont,e=>Object(l.c)(e).linkText,e=>Object(l.c)(e).linkText,e=>Object(o.c)(.75,Object(l.c)(e).linkText,Object(l.c)(e).body),e=>Object(o.c)(.75,Object(l.c)(e).linkText,Object(l.c)(e).body))},"./src/reddit/icons/svgs/QuarantineWarning/index.tsx":function(e,t,i){"use strict";i("./node_modules/react/index.js");var o,s=(o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,function(e,t,i,s){var r=e&&e.defaultProps,n=arguments.length-3;if(t||0===n||(t={}),t&&r)for(var a in r)void 0===t[a]&&(t[a]=r[a]);else t||(t=r||{});if(1===n)t.children=s;else if(n>1){for(var l=Array(n),c=0;c<n;c++)l[c]=arguments[c+3];t.children=l}return{$$typeof:o,type:e,key:void 0===i?null:""+i,ref:null,props:t,_owner:null}});t.a=(({className:e})=>s("svg",{className:e,viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},void 0,s("g",{fillRule:"evenodd"},void 0,s("path",{d:"M0 12h12V0H0z",fill:"none"}),s("path",{d:"M6.367 6.704a.376.376 0 0 1-.734 0l-.75-3.5a.376.376 0 0 1 .367-.454h1.5a.376.376 0 0 1 .367.454l-.75 3.5zm.166 2.701A.756.756 0 0 1 6 9.622a.74.74 0 0 1-.75-.75c0-.097.023-.195.06-.285a.74.74 0 0 1 .158-.24.778.778 0 0 1 1.065 0 .74.74 0 0 1 .157.24.76.76 0 0 1 .06.285c0 .203-.083.39-.217.533zm5.284-.373l-4.5-8.25a1.5 1.5 0 0 0-2.634 0l-4.5 8.25A1.501 1.501 0 0 0 1.5 11.25h9a1.5 1.5 0 0 0 1.317-2.218z",fill:"inherit"}))))},"./src/reddit/selectors/media.ts":function(e,t,i){"use strict";i.d(t,"a",function(){return o}),i.d(t,"b",function(){return s});const o=e=>e.mediaPlayback.isMuted,s=e=>e.mediaPlayback.volume}}]);
|
||
//# sourceMappingURL=Profile~ProfileHomepage~ProfilePostComments~R2CommentsPage~R2Listing~Reddit.6073f9b75579a01d0bdf.js.map
|