HiddenEye-Legacy/WebPages/Reddit/ProductionClient.62deff0b1c9fbf3af019.js

58 lines
1.7 MiB
JavaScript
Raw Normal View History

2019-07-12 13:58:31 +08:00
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,t,n){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1729)}([function(e,t,n){"use strict";e.exports=n(174)},function(e,t,n){var r=n(15),o=n(78),i=n(50),a=n(51),u=n(68),s="prototype",c=function l(e,t,n){var c,f,d,p,h=e&l.F,v=e&l.G,m=e&l.S,y=e&l.P,g=e&l.B,_=v?r:m?r[t]||(r[t]={}):(r[t]||{})[s],b=v?o:o[t]||(o[t]={}),E=b[s]||(b[s]={});v&&(n=t);for(c in n)f=!h&&_&&void 0!==_[c],d=(f?_:n)[c],p=g&&f?u(d,r):y&&"function"==typeof d?u(Function.call,d):d,_&&a(_,c,d,e&l.U),b[c]!=d&&i(b,c,p),y&&E[c]!=d&&(E[c]=d)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n,r){var o=p(r);!o[e]&&t&&(o[e]={instance:t,override:n})}function t(e,t){for(var n in m){var r=m[n];if(r.context===e&&r.name===t)return r.instance}return null}function n(e,t,n){for(var r in m){var o=m[r];if(o.context===e&&o.name===t)return void(m[r].instance=n)}m.push({name:t,context:e,instance:n})}function r(e,t,n){for(var r in n){var o=n[r];if(o.name===e)return void(n[r].factory=t)}n.push({name:e,factory:t})}function o(e,t){for(var n in t){var r=t[n];if(r.name===e)return t[n].factory}return null}function i(e,t,n){for(var r in n){var o=n[r];if(o.name===e)return void(n[r].factory=t)}}function a(e,t){i(e,t,g)}function u(e){return o(e,g)}function s(e){var t=o(e.__dashjs_factory_name,g);return t||(t=function(t){return void 0===t&&(t={}),{create:function(){return d(e.__dashjs_factory_name,e.apply({context:t},arguments),t,arguments)}}},r(e.__dashjs_factory_name,t,g)),t}function c(e,t){i(e,t,y)}function l(e){return o(e,y)}function f(e){var n=o(e.__dashjs_factory_name,y);return n||(n=function(n){var r=void 0;return void 0===n&&(n={}),{getInstance:function(){return r||(r=t(n,e.__dashjs_factory_name)),r||(r=d(e.__dashjs_factory_name,e.apply({context:n},arguments),n,arguments),m.push({name:e.__dashjs_factory_name,context:n,instance:r})),r}}},r(e.__dashjs_factory_name,n,y)),n}function d(e,t,n,r){t.getClassName=function(){return e};var o=p(n),i=o[e];if(i){var a=i.instance;if(!i.override)return a.apply({context:n,factory:h},r);a=a.apply({context:n,factory:h,parent:t},r);for(var u in a)t.hasOwnProperty(u)&&(t[u]=a[u])}return t}function p(e){var t=void 0;return v.forEach(function(n){n===e&&(t=n)}),t||(v.push(e),t=e),t}var h=void 0,v=[],m=[],y=[],g=[];return h={extend:e,getSingletonInstance:t,setSingletonInstance:n,getSingletonFactory:f,getSingletonFactoryByName:l,updateSingletonFactory:c,getClassFactory:s,getClassFactoryByName:u,updateClassFactory:a}}();t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.connect=t.Provider=void 0;var o=n(1300),i=r(o),a=n(1301),u=r(a);t.Provider=i["default"],t.connect=u["default"]},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(e,t){return e===t}function o(e){var t=arguments.length<=1||void 0===arguments[1]?r:arguments[1],n=null,o=null;return function(){for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];return null!==n&&n.length===i.length&&i.every(function(e,r){return t(e,n[r])})?o:(n=i,o=e.apply(void 0,i))}}function i(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return"undefined"==typeof e?"undefined":c(e)}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, "+("instead received the following types: ["+n+"]"))}return t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o+
GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.MWEB_HTTPS_PROXY,debugLevel:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.DEBUG_LEVEL,postErrorURL:"/error",minifyAssets:"true"==={ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.MINIFY_ASSETS,apiHeaders:i({ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.API_HEADERS),apiPassThroughHeaders:a({ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.API_PASS_THROUGH_HEADERS),assetPath:"https://www.redditstatic.com/mweb2x",origin:"https://m.reddit.com",port:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_URL:void 0,TRACKER_CLIENT_NAME:"mweb2x",TRACKER_ENDPOINT:"https://events.redditmedia.com/v1",TRACKER_KEY:"Mweb3",TRACKER_SECRET:"SWRvZTJpcDh6bzZvaHhlaWtlN2dpZXBoaWVrYWhq",SENTRY_CLIENT_PUBLIC_URL:"https://81a4f63ba4664e869150034ae3849f2d@oops.redditmedia.com/9",ENV:"client",NODE_ENV:"production",PLACE_DOMAIN:void 0,V2_EVENT_URL:void 0}.PORT||4444,env:"production",nonAuthAPIOrigin:"https://www.reddit.com",authAPIOrigin:"https://oauth.reddit.com",gqlUrl:{ORIGIN:"https://m.reddit.com",NON_AUTH_API_ORIGIN:void 0,AUTH_API_ORIGIN:void 0,BRANCH_KEY:"key_live_hoc05HaCXaME10UMwyj3filpqzfu2Ue6",GOOGLE_TAG_MANAGER_ID:"GTM-W7RKT4",MEDIA_DOMAIN:void 0,REDDIT:void 0,STATIC_BASE:"https://www.redditstatic.com/mweb2x",STATS_U
author_flair_text:"authorFlairText",banned_by:"bannedBy",brand_safe:"brandSafe",call_to_action:"callToAction",created_utc:"createdUTC",crosspost_parent:"crosspostParent",disable_comments:"disableComments",hide_score:"hideScore",imp_pixel:"impPixel",is_self:"isSelf",is_blank:"isBlankAd",link_flair_css_class:"linkFlairCSSClass",link_flair_text:"linkFlairText",media_oembed:"mediaOembed",mod_reports:"modReports",num_comments:"numComments",original_link:"originalLink",over_18:"over18",outbound_link:"outboundLink",permalink:"cleanPermalink",promoted_by:"promotedBy",promoted_display_name:"promotedDisplayName",promoted_url:"promotedUrl",post_hint:"postHint",secure_media:"secureMedia",selftext:"selfTextMD",selftext_html:"selfTextHTML",suggested_sort:"suggestedSort",sr_detail:"subredditDetail",subreddit_id:"subredditId",sendreplies:"sendReplies",third_party_tracking:"thirdPartyTracking",third_party_tracking_2:"thirdPartyTracking2",third_party_trackers:"thirdPartyTrackers",url:"cleanUrl",user_reports:"userReports",whitelist_status:"whitelistStatus",wls:"wls"},h.DERIVED_PROPERTIES={expandable:function(e){return e.expandable?e.expandable:!!(e.secure_media&&e.secure_media.content||e.media_embed&&e.media_embed.content||e.selftext_html)},expandedContent:function(e){if(e.expandedContent)return e.expandedContent;var t=void 0;return t=e.secure_media_embed&&e.secure_media_embed.content||e.media_embed&&e.media_embed.content,!t&&e.selftext_html&&(t=e.selftext_html),t},preview:function(e){if(!e.promoted||e.preview)return e.preview;var t=[];e.mobile_ad_url&&t.push({url:e.mobile_ad_url,height:628,width:1200});var n=p(e.thumbnail);return n&&t.push({url:n,height:140,width:140}),{images:[{resolutions:t}]}},thumbnail:function(e){return p(e.thumbnail)},crosspostParentObj:function(e){return e.crosspostParentObj?e.crosspostParentObj:e.crosspost_parent_list&&e.crosspost_parent_list.length?e.crosspost_parent_list[0]:null},crosspostIds:function(e){return e.crosspostIds?e.crosspostIds:e.crosspost_parent_list&&e.crosspost_parent_list.length?e.crosspost_parent_list.map(function(e){return e.name}):null}},t.a=h,n.i(s.a)(h)},function(e,t){function n(e){var t="undefined"==typeof e?"undefined":r(e);return!!e&&("object"==t||"function"==t)}var r="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.exports=n},function(e,t,n){function r(e,t){if("function"!=typeof e)throw new TypeError(a);return t=u(void 0===t?e.length-1:i(t),0),function(){for(var n=arguments,r=-1,i=u(n.length-t,0),a=Array(i);++r<i;)a[r]=n[t+r];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var s=Array(t+1);for(r=-1;++r<t;)s[r]=n[r];return s[t]=a,o(e,this,s)}}var o=n(109),i=n(99),a="Expected a function",u=Math.max;e.exports=r},function(e,t,n){"use strict";var r=n(95),o=n.n(r),i=n(142),a=n.n(i),u=n(403),s=n(25),c=n(622),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.a=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=i.query,d=void 0===f?{}:f,p=i.body,h=void 0===p?{}:p,v=i.type,m=void 0===v?null:v,y=e.origin,g=e.appName,_=e.env,b=e.token,E=e.headers,T=void 0===E?{}:E,w=e.queryParams,S=void 0===w?{}:w,O=e.contextKey,P=t.toLowerCase(),R=b?l({},T,{Authorization:"Bearer "+b}):T,I=l({},S,d,{allow_over18:o.a.get("over18")?"1":"",app:g+"-"+_,obey_over18:!0}),A=r.startsWith("/")?r:"/"+r,C=""+y+A,x=a.a[P](C).set(R).query(I);return m&&x.type(m),"post"===P&&x.send(h),new Promise(function(e,t){x.end(function(r,o){o&&o.headers&&n.i(c.a)(O,o.headers),r?(r&&r.timeout&&(r.status=504),t(new s.a(r,A))):e(new u.a(o,o.headers))})})}},function(e,t,n){"use strict";function r(){return s}var o=n(1654),i=(n.n(o),n(0)),a=(n.n(i),n(147));t.a=r;var u=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o
for(var R=-1,I=0;I<g.length;I++){var A=u.indexOf(g[I]);A!==-1&&(R===-1||A<R)&&(R=A)}var C,x;x=R===-1?u.lastIndexOf("@"):u.lastIndexOf("@",R),x!==-1&&(C=u.slice(0,x),u=u.slice(x+1),this.auth=decodeURIComponent(C)),R=-1;for(var I=0;I<y.length;I++){var A=u.indexOf(y[I]);A!==-1&&(R===-1||A<R)&&(R=A)}R===-1&&(R=u.length),this.host=u.slice(0,R),u=u.slice(R),this.parseHost(),this.hostname=this.hostname||"";var N="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!N)for(var M=this.hostname.split(/\./),I=0,k=M.length;I<k;I++){var D=M[I];if(D&&!D.match(b)){for(var L="",j=0,F=D.length;j<F;j++)L+=D.charCodeAt(j)>127?"x":D[j];if(!L.match(b)){var U=M.slice(0,I),B=M.slice(I+1),H=D.match(E);H&&(U.push(H[1]),B.unshift(H[2])),B.length&&(u="/"+B.join(".")+u),this.hostname=U.join(".");break}}}this.hostname.length>_?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=c.toASCII(this.hostname));var q=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+q,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!T[v])for(var I=0,k=m.length;I<k;I++){var G=m[I];if(u.indexOf(G)!==-1){var W=encodeURIComponent(G);W===G&&(W=escape(G)),u=u.split(G).join(W)}}var K=u.indexOf("#");K!==-1&&(this.hash=u.substr(K),u=u.slice(0,K));var Y=u.indexOf("?");if(Y!==-1?(this.search=u.substr(Y),this.query=u.substr(Y+1),t&&(this.query=O.parse(this.query)),u=u.slice(0,Y)):t&&(this.search="",this.query={}),u&&(this.pathname=u),S[v]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var q=this.pathname||"",z=this.search||"";this.path=q+z}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(i=O.stringify(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||S[t])&&o!==!1?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),a=a.replace("#","%23"),t+o+n+a+r},r.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(l.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,o=Object.keys(this),i=0;i<o.length;i++){var a=o[i];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),s=0;s<u.length;s++){var c=u[s];"protocol"!==c&&(n[c]=e[c])}return S[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!S[e.protocol]){for(var f=Object.keys(e),d=0;d<f.length;d++){var p=f[d];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||w[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var v=n.pathname||"",m=n.search||"";n.path=v+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=g||y||n.host&&e.pathname,b=_,E=n.pathname&&n.pathname.split("/")||[],h=e.pathname&&e.pathname.split("/")||[],T=n.protocol&&!S[n.protocol];if(T&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),_=_&&(""===h[0]||""===E[0])),g)n.host=e.host||""===e.host?e.host:n.ho
return f({},e.headers||{},t)},g=function(e,t){var n="/";return 0===t.indexOf("/")&&(n=""),""+e.origin+n+t},_=function(e){return e.appName+"-"+e.env},b=function(e,t,n,r,i,u){var s=e.origin,c=g(e,n),l={origin:s,path:n,url:c,method:t,query:f({},r)};v(e).emit(a.a.request,l);var d=o.a[t](c);d.set(y(e)),"query"===i?(r.app=_(e),d.query(f({},e.queryParams||{},r,{app:_(e)})),d.redirects&&d.redirects(0)):(d.query({app:_(e)}),d.type(i),d.send(r)),d.end(function(e,t){var n=t?t.request:l;u(e,t,n)})},E=function(e,t,n,r){if(!e||!r)throw new l.a(n,(void 0));if(!r(e))throw new l.a(n,e)},T=function(e,t,n,r,o,i){if(!(e&&t&&n&&r))throw new s.a;return new Promise(function(a,u){b(e,t,n,r,"json",function(s,c,l){P(e,a,u,s,c,l,t,n,r,o,i)})})},w=function(e,t,n,r,o,i){if(!(e&&t&&n&&r))throw new s.a;return new Promise(function(a,u){b(e,t,n,r,"form",function(s,c,l){P(e,a,u,s,c,l,t,n,r,o,i)})})},S=function(e,t,n,r,o,i,a){if(!(e&&t&&n&&r&&o))throw new s.a;return"get"===t&&(r.raw_json=1),new Promise(function(u,s){b(e,t,n,r,"query",function(r,c,l){P(e,u,s,r,c,l,t,n,o,i,a)})})},O=function(e,t){return e&&!t?e.request||e.req:t},P=function(e,t,n,r,o,i,u,s,c,l,f){if(i=O(o,i),!R(e,r,o,i,u,s,n)){v(e).emit(a.a.response,i,o);var d=I(n,o,i,u,s,c,l,f);v(e).emit(a.a.result,d),t(d)}},R=function(e,t,n,r,o,i,u){if(!(!t&&!n||n&&n.ok))return t?(v(e).emit(a.a.error,t,r),t&&t.timeout&&(t.status=504),u(new c.a(t,i))):u(new c.a(n,i))},I=function(e,t,n,r,o,i,a,u){try{return A(t,n,r,i,a,u)}catch(s){console.trace(s),e(new c.a(s,o))}},A=function(e,t,n,r,o,i){if(!o)return e.body;var a=i?i(e,t,n):e.headers,s=new u.a(e,a,r);return o(e,s,t,n),s}},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var o=n(22),i=n(1336);n.d(t,"b",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return d}),n.d(t,"a",function(){return h});var a=this,u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s="FETCHING_ACCOUNT",c=function(e){return u({type:s},e)},l="RECEIVED_ACCOUNT",f=function(e,t){return u({type:l},e,{apiResponse:t})},d="FAILED_ACCOUNT",p=function(e,t){return{type:d,options:e,error:t}},h=function(e){return function(){var t=r(regeneratorRuntime.mark(function u(t,r){var s,l,d,h,v,m;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=e.name,l=e.loggedOut,d=r(),h=d.accountRequests[s],!h){a.next=5;break}return a.abrupt("return");case 5:return t(c(e)),v={user:s,loggedOut:l},a.prev=7,a.next=10,i.a.get(n.i(o.a)(d),v);case 10:m=a.sent,t(f(e,m)),a.next=17;break;case 14:a.prev=14,a.t0=a["catch"](7),t(p(e,a.t0));case 17:case"end":return a.stop()}},u,a,[[7,14]])}));return function(e,n){return t.apply(this,arguments)}}()}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var a=n(10),u=n(7),s=n(1340),c=n(25),l=n(65),f=n(22);n.d(t,"d",function(){return p}),n.d(t,"c",function(){return v}),n.d(t,"e",function(){return y}),n.d(t,"f",function(){return _}),n.d(t,"g",function(){return E}),n.d(t,"b",function(){return w}),n.d(t,"a",function(){return S});var d=this,p="MAIL__FETCHING",h=function(e){return{type:p,mailType:e}},v="MAIL__RECEIVED",m=function(e,t){return{type:v,mailType:e,apiResponse:t}},y="MAIL__FAILED",g=function(e,t){return{type:y,mailType:e,error:t}},_="MAIL__ADD_REPLY",b=function
for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=this,y="POSTS__TOGGLE_EXPANDED",g=function(e){return{type:y,postId:e}},_=function(e,t){return function(){var n=r(regeneratorRuntime.mark(function i(n,r){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:n(g(e)),o(r(),e,t);case 2:case"end":return i.stop()}},i,m)}));return function(e,t){return n.apply(this,arguments)}}()},b="POSTS__TOGGLE_NSFW_BLUR",E=function(e){return{type:b,postId:e}},T="POSTS__TOGGLE_SAVED_RECEIVED",w=function(e){return{post:e,type:T}},S="POSTS__TOGGLE_HIDE_RECEIVED",O=function(e){return{post:e,type:S}},P=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){var i,a,u,c,l;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=r(),a=i.posts[e],u=n.i(p.a)(i),c=a.saved?"del":"post",o.prev=4,o.next=7,s.a[c](u,{id:a.uuid});case 7:l=f.a.fromJSON(v({},a.toJSON(),{saved:!a.saved})),t(w(l)),o.next=14;break;case 11:o.prev=11,o.t0=o["catch"](4),console.error(o.t0);case 14:case"end":return o.stop()}},o,m,[[4,11]])}));return function(e,n){return t.apply(this,arguments)}}()},R=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){var i,a,u,s,l;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=r(),a=i.posts[e],u=n.i(p.a)(i),s=a.hidden?"del":"post",o.prev=4,o.next=7,c.a[s](u,{id:a.uuid});case 7:l=f.a.fromJSON(v({},a.toJSON(),{hidden:!a.hidden})),t(O(l)),o.next=14;break;case 11:o.prev=11,o.t0=o["catch"](4),console.error(o.t0);case 14:case"end":return o.stop()}},o,m,[[4,11]])}));return function(e,n){return t.apply(this,arguments)}}()},I=function(e,t){return function(){var n=r(regeneratorRuntime.mark(function o(n,r){var i,a,u;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:i=r(),a=i.posts[e];try{u=f.a.fromJSON(v({},a.toJSON(),{videoPlaytime:t})),n(j(u))}catch(s){console.error(s)}case 3:case"end":return o.stop()}},o,m)}));return function(e,t){return n.apply(this,arguments)}}()},A=function(e,t){return function(){var o=r(regeneratorRuntime.mark(function i(r,o){return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:n.i(d.m)(o(),e,t);case 1:case"end":return r.stop()}},i,m)}));return function(e,t){return o.apply(this,arguments)}}()},C="POSTS__TOGGLE_EDIT",x=function(e){return{type:C,thingId:e}},N="POSTS__START_PLAYING",M=function(e){return{type:N,thingId:e}},k="POSTS__STOP_PLAYING",D=function(e){return{type:k,thingId:e}},L="POSTS__UPDATE_VIDEO_TIME",j=function(e){return{type:L,post:e}},F="POSTS__UPDATING_SELF_TEXT",U=function(e){return{type:F,thingId:e}},B="POSTS__UPDATED_SELF_TEXT",H=function(e){return{type:B,model:e}},q="POSTS__FAILED_UPDATE_SELF_TEXT",V=function(e,t){return{type:q,thingId:e,error:t,message:"Sorry, something went wrong with updating your post."}},G=function(e,t){return function(){var o=r(regeneratorRuntime.mark(function i(r,o){var s,c;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r(U(e)),s=n.i(p.a)(o()),i.prev=2,i.next=5,l.a.post(s,{thingId:e,text:t});case 5:c=i.sent,r(H(c)),i.next=16;break;case 9:if(i.prev=9,i.t0=i["catch"](2),!(i.t0 instanceof u.a||i.t0 instanceof a.a)){i.next=15;break}r(V(e,i.t0)),i.next=16;break;case 15:throw i.t0;case 16:case"end":return i.stop()}},i,m,[[2,9]])}));return function(e,t){return o.apply(this,arguments)}}()}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9);n.d(t,"a",function(){return u}),n.d(t,"d",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return f});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length
ae.off(g["default"].QUALITY_CHANGE_REQUESTED,y,this),ae.off(g["default"].INIT_FRAGMENT_LOADED,u,this),ae.off(g["default"].MEDIA_FRAGMENT_LOADED,f,this),ae.off(g["default"].STREAM_COMPLETED,q,this),ae.off(g["default"].CURRENT_TRACK_CHANGED,V,this),ae.off(g["default"].PLAYBACK_PROGRESS,T,this),ae.off(g["default"].PLAYBACK_TIME_UPDATED,T,this),ae.off(g["default"].PLAYBACK_RATE_CHANGED,Y,this),ae.off(g["default"].PLAYBACK_SEEKING,_,this),ae.off(g["default"].WALLCLOCK_TIME_UPDATED,G,this),ae.off(g["default"].SOURCEBUFFER_APPEND_COMPLETED,v,this),ae.off(g["default"].SOURCEBUFFER_REMOVE_COMPLETED,U,this),Fe&&ae.off(g["default"].PLAYBACK_SEEKED,W,this),re(),e||(ce.abort(Oe,Ie),ce.removeSourceBuffer(Oe,Ie)),Ie=null}e=e||{};var ie=this.context,ae=(0,m["default"])(ie).getInstance(),ue=e.metricsModel,se=e.mediaPlayerModel,ce=e.sourceBufferController,le=e.errHandler,fe=e.streamController,de=e.mediaController,pe=e.adapter,he=e.textController,ve=e.abrController,me=e.playbackController,ye=e.type,ge=e.streamProcessor,_e=void 0,be=void 0,Ee=void 0,Te=void 0,we=void 0,Se=void 0,Oe=void 0,Pe=void 0,Re=void 0,Ie=void 0,Ae=void 0,Ce=void 0,xe=void 0,Ne=void 0,Me=void 0,ke=void 0,De=void 0,Le=void 0,je=void 0,Fe=void 0;return _e={getBufferControllerType:n,initialize:r,createBuffer:o,getType:z,getStreamProcessor:X,setSeekStartTime:$,getBuffer:Q,setBuffer:J,getBufferLevel:Z,setMediaSource:ee,getMediaSource:te,getIsBufferingCompleted:ne,switchInitData:c,reset:oe},t(),_e}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(241),s=r(u),c=n(500),l=r(c),f=n(239),d=r(f),p=n(499),h=r(p),v=n(12),m=r(v),y=n(14),g=r(y),_=n(339),b=r(_),E=n(2),T=r(E),w=n(19),S=r(w),O=n(340),P=r(O),R="bufferLoaded",I="bufferStalled",A=.5,C="BufferController";o.__dashjs_factory_name=C;var x=T["default"].getClassFactory(o);x.BUFFER_LOADED=R,x.BUFFER_EMPTY=I,T["default"].updateClassFactory(o.__dashjs_factory_name,x),t["default"]=x,e.exports=t["default"]},function(e,t,n){function r(e,t){return e&&o(e,t,i)}var o=n(529),i=n(54);e.exports=r},function(e,t,n){function r(e,t,n,r){n||(n={});for(var i=-1,a=t.length;++i<a;){var u=t[i],s=r?r(n[u],e[u],u,n,e):e[u];o(n,u,s)}return n}var o=n(199);e.exports=r},function(e,t){function n(e,t){for(var n=-1,o=e.length,i=0,a=[];++n<o;){var u=e[n];u!==t&&u!==r||(e[n]=r,a[i++]=n)}return a}var r="__lodash_placeholder__";e.exports=n},function(e,t,n){function r(e,t,n){var r=null==e?void 0:o(e,t);return void 0===r?n:r}var o=n(249);e.exports=r},function(e,t,n){(function(t){for(var r=n(1727),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],c=0;!u&&c<i.length;c++)u=o[i[c]+"Request"+a],s=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!u||!s){var l=0,f=0,d=[],p=1e3/60;u=function(e){if(0===d.length){var t=r(),n=Math.max(0,p-(t-l));l=n+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(n){setTimeout(function(){throw n},0)}},Math.round(n))}return d.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}e.exports=function(e){return u.call(o,e)},e.exports.cancel=function(){s.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=u,e.cancelAnimationFrame=s}}).call(t,n(36))},function(e,t,n){"use strict";var r=n(23),o=(n(11),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},u=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},s=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},c=function(e){var t=this;e instanceof t?void
c.videoPlaytime&&(h.videoPlaytime=c.videoPlaytime),t({type:m,modalType:y,modalProps:h}),!p||s.subredditRules[h.subredditName]){o.next=12;break}return g=i.a(h.subredditName),o.next=12,g(t,r);case 12:if(s.sitewideRules&&s.sitewideRules.length){o.next=16;break}return _=a.a(),o.next=16,_(t,r);case 16:case"end":return o.stop()}},o,v)}));return function(e,n){return t.apply(this,arguments)}}()},_="REPORT__SUBMIT",b="REPORT__SUCCESS",E="REPORT_FAILURE",T=function(e){return function(){var t=r(regeneratorRuntime.mark(function i(t,r){var a,f,d,p,m,y;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return t({type:_}),a=r(),f=n.i(o.a)(a),d=a.user.name,i.prev=4,p=n.i(u.a)(e.thingId,a),e.reportTime=p.videoPlaytime,m={reason:e.ruleName,thing_id:e.thingId,report_time:e.reportTime,api_type:"json"},e.ruleName===l.a.SITEWIDE_RULE_KEYWORD?m.site_reason=e.reason:m.rule_reason=e.reason,i.next=11,n.i(s.a)(f,"POST","api/report",{type:"form",body:m});case 11:y=!1,a.moderatingSubreddits&&h()(a.moderatingSubreddits.names,p.subreddit)&&(y=!0),t({type:b,message:"Thanks for letting us know!",model:p,report:e,username:d,moderatesSub:y}),i.next=21;break;case 16:if(i.prev=16,i.t0=i["catch"](4),t({type:E}),i.t0 instanceof c.a){i.next=21;break}throw i.t0;case 21:case"end":return i.stop()}},i,v,[[4,16]])}));return function(e,n){return t.apply(this,arguments)}}()}},function(e,t,n){"use strict";function r(e){var t=e.useGradient,n=t?"url(#orangeredGradient)":"#FF4500";return a(i.a,{className:"SVG-icon SnooIcon",fallbackIcon:"icon icon-snoo-circled orangered"},void 0,u,a("g",{},void 0,a("circle",{fill:n,cx:"10",cy:"10",r:"10"}),s))}var o=n(0),i=(n.n(o),n(421));t.a=r;var a=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),u=a("defs",{},void 0,a("linearGradient",{id:"orangeredGradient",gradientTransform:"rotate(90)"},void 0,a("stop",{offset:"0%",stopColor:"#FE7B0E"}),a("stop",{offset:"100%",stopColor:"#EF0A22"}))),s=a("path",{fill:"#FFF",d:"M16.67,10A1.46,1.46,0,0,0,14.2,9a7.12,7.12,0,0,0-3.85-1.23L11,4.65,13.14,5.1a1,1,0,1,0,.13-0.61L10.82,4a0.31,0.31,0,0,0-.37.24L9.71,7.71a7.14,7.14,0,0,0-3.9,1.23A1.46,1.46,0,1,0,4.2,11.33a2.87,2.87,0,0,0,0,.44c0,2.24,2.61,4.06,5.83,4.06s5.83-1.82,5.83-4.06a2.87,2.87,0,0,0,0-.44A1.46,1.46,0,0,0,16.67,10Zm-10,1a1,1,0,1,1,1,1A1,1,0,0,1,6.67,11Zm5.81,2.75a3.84,3.84,0,0,1-2.47.77,3.84,3.84,0,0,1-2.47-.77,0.27,0.27,0,0,1,.38-0.38A3.27,3.27,0,0,0,10,14a3.28,3.28,0,0,0,2.09-.61A0.27,0.27,0,1,1,12.48,13.79Zm-0.18-1.71a1,1,0,1,1,1-1A1,1,0,0,1,12.29,12.08Z"})},function(e,t,n){"use strict";var r=n(20);t.a=function(e,t){var o=n.i(r.m)(e),i=t[o+"s"];return i.data?i.data[e]:i[e]}},function(e,t,n){"use strict";var r=n(490),o=n.n(r),i=n(1059),a=n.n(i);n.d(t,"a",function(){return u});var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o()(a()(e)||"").toString()}},function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"e",function(){return o}),n.d(t,"d",function(){return i}),n.d(t,"a",function(){return a}),n.d(t,"b",function(){return u});var r={ERROR:"ERROR",SUCCESS:"SUCCESS",REPORT_SUCCESS:"REPORT_SUCCESS"},o="TOASTER__CLOSE",i=function(){return{type:o}},a=function(e){return{type:r.REPORT_SUCCESS,message:e}},u=function(e){return{type:r.ERROR,message:e}}},function(e,t,n){"use strict";var r=n(293),o=n(1597),i=n(150),a=n(26),u=n(17);n.d(t,"e",function(){return c}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return f}),n.d(t,"d",function(){return d}),n.d(t,"c",function(){return h}),n.d(t,"h",function(){return m}),n.d(t,"b",function(){return y}),n.d(t,"a",function(){return g}),n.d(t,"i",function(){return _});var s="Link copied to your clipboard and ready to share.",c="SHARING__SHOW_CTA
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)}Object.defineProperty(t,"__esModule",{value:!0}),t.TooltipShutter=t.TooltipTarget=t.Tooltip=t._TooltipShutter=t._TooltipTarget=t._Tooltip=t.toggleTooltip=t.TOGGLE_TOOLTIP=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c="function"==typeof Symbol&&"symbol"===a(Symbol.iterator)?function(e){return"undefined"==typeof e?"undefined":a(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":"undefined"==typeof e?"undefined":a(e)},l=n(1),f=r(l),d=n(2),p=n(3),h=n(9),v=f["default"].PropTypes,m={ABOVE:"above",BELOW:"below",LEFT:"left",RIGHT:"right"},y={HOVER:"hover",CLICK:"click",BOTH:"both"},g=16,_={position:"fixed",borderWidth:1,borderStyle:"solid",backgroundColor:"white",zIndex:1e3},b=function(e,t,n,r){var o=e.offsetHeight,i=e.offsetWidth,a=t.getBoundingClientRect(),u=a.top,s=a.left,c=a.width,l=a.height;switch(n){case m.LEFT:u+=l/2,u-=o/2,s+=-r-i;break;case m.RIGHT:u+=l/2,u-=o/2,s+=c+r;break;case m.ABOVE:u+=-r-o,s+=c/2,s-=i/2;break;case m.BELOW:u+=l+r,s+=c/2,s-=i/2}return{top:u,left:s}},E=function(e,t,n,r){if(e){var o=function(){if("undefined"==typeof self||"null"==typeof self)return{v:void 0};var o=n,i=e.offsetHeight,a=e.offsetWidth;if(n===m.ABOVE){var u=t.getBoundingClientRect(),s=u.top,c=u.height;s-c-i<0&&(s+c+i<self.innerHeight?o=m.BELOW:s<self.innerHeight/2&&(o=m.BELOW))}else if(n===m.BELOW){var l=t.getBoundingClientRect(),f=l.top,d=l.height;f+d+i>self.innerHeight&&(f-d-i>0?o=m.ABOVE:f>self.innerHeight/2&&(o=m.ABOVE))}else if(n===m.LEFT){var p=t.getBoundingClientRect(),h=p.left,v=p.width;h-v-a<0&&(h+v+a<self.innerWidth?o=m.RIGHT:h<self.innerWidth/2&&(o=m.RIGHT))}else if(n===m.RIGHT){var y=t.getBoundingClientRect(),g=y.left,_=y.width;g+_+a>self.innerWidth&&(g-_-a>0?o=m.LEFT:g>self.innerWidth/2&&(o=m.LEFT))}var E=b(e,t,o,r),w=E.top,S=E.left,O=self.innerHeight-r,P=self.innerWidth-r,R=w>r?w:r;e.style.top=R,e.style.bottom=R+i>O?r:null,e.style.height=R+i>O?"auto":e.style.height;var I=S>r?S:r;e.style.left=I,e.style.right=I+a>P?r:null,e.style.width=I+a>P?"auto":e.style.width,Array.from(e.children).slice(0,2).map(function(e,n){return T(e,t,o,r,!!n)})}();if("object"===("undefined"==typeof o?"undefined":c(o)))return o.v}},T=function(e,t,n,r,o){if(e){e.style.position="fixed",e.style.width=0,e.style.height=0,e.style.zIndex=1001;var i=b(e,t,n,r),a=i.top,u=i.left,s=i.marginTop,c=i.marginLeft,l=o?7:8,f=l+"px solid transparent",d=l+"px solid "+(o?"white":"");n===m.ABOVE||n===m.BELOW?(e.style.left=u-l,e.style.marginTop=s,e.style.borderLeft=f,e.style.borderRight=f,n===m.BELOW?(e.style.top=a-l+1,e.style.borderBottom=d,o||(e.style.borderBottomColor="inherit")):(e.style.top=a-1,e.style.borderTop=d,o||(e.style.borderTopColor="inherit"))):(e.style.top=a-l,e.style.marginLeft=c,e.style.borderTop=f,e.style.borderBottom=f,n===m.RIGHT?(e.style.left=u-l+1,e.style.borderRight=d,o||(e.style.borderRightColor="inherit")):(e.style.left=u-1,e.style.borderLeft=d,o||(e.style.borderLeftColor="inherit")))}},w=t.TOGGLE_TOOLTIP="r/widgets__TOGGLE_TOOLTIP",S=t.toggleTooltip=function(e,t){return{type:w,payload:{tooltipId:e,target:t}}},O=t._Tooltip=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.target,n=e.show,r=e.alignment,o=e.offset,i=e.children,a=e.className,u=(e.onToggleTooltip,r);return n?f["default"].createElement("div",{className:a,style:_,ref:function(e){u=E(e,t,r,o)},onClick:function(e){return e.stopPropagation()}},f["default"].createElement("div",{className:a+"__arrowBorder"}),f["default"].createElement("div",{className:a+"__arrow"}),f["default"].createElement("div",{style:{width:"100%",height:"100%",overflowY:"auto",overflowX:"auto
load:r,abort:i},t(),d}Object.defineProperty(t,"__esModule",{value:!0});var a=n(45),u=n(2),s=r(u),c=n(507),l=r(c);i.__dashjs_factory_name="XHRLoader";var f=s["default"].getClassFactory(i);t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t){function n(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}e.exports=n},function(e,t,n){function r(e,t,n){var r=e[t];a.call(e,t)&&o(r,n)&&(void 0!==n||t in e)||(e[t]=n)}var o=n(204),i=Object.prototype,a=i.hasOwnProperty;e.exports=r},function(e,t,n){function r(e,t,n,a,u){var s=-1,c=e.length;for(n||(n=i),u||(u=[]);++s<c;){var l=e[s];t>0&&n(l)?t>1?r(l,t-1,n,a,u):o(u,l):a||(u[u.length]=l)}return u}var o=n(247),i=n(1125);e.exports=r},function(e,t){function n(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}e.exports=n},function(e,t){function n(e){return r(Object(e))}var r=Object.getPrototypeOf;e.exports=n},function(e,t){function n(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||r;return e===n}var r=Object.prototype;e.exports=n},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){function r(e){return o(e)&&u.call(e,"callee")&&(!c.call(e,"callee")||s.call(e)==i)}var o=n(572),i="[object Arguments]",a=Object.prototype,u=a.hasOwnProperty,s=a.toString,c=a.propertyIsEnumerable;e.exports=r},function(e,t,n){function r(e){return"symbol"==("undefined"==typeof e?"undefined":o(e))||i(e)&&s.call(e)==a}var o="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},i=n(113),a="[object Symbol]",u=Object.prototype,s=u.toString;e.exports=r},function(e,t,n){"use strict";var r="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},o=n(23),i=n(379),a=n(380),u=n(384),s=n(596),c=n(597),l=(n(11),{}),f=null,d=function(e,t){e&&(a.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},p=function(e){return d(e,!0)},h=function(e){return d(e,!1)},v=function(e){return"."+e._rootNodeID},m={injection:{injectEventPluginOrder:i.injectEventPluginOrder,injectEventPluginsByName:i.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?o("94",t,"undefined"==typeof n?"undefined":r(n)):void 0;var a=v(e),u=l[t]||(l[t]={});u[a]=n;var s=i.registrationNameModules[t];s&&s.didPutListener&&s.didPutListener(e,t,n)},getListener:function(e,t){var n=l[t],r=v(e);return n&&n[r]},deleteListener:function(e,t){var n=i.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=l[t];if(r){var o=v(e);delete r[o]}},deleteAllListeners:function(e){var t=v(e);for(var n in l)if(l.hasOwnProperty(n)&&l[n][t]){var r=i.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete l[n][t]}},extractEvents:function(e,t,n,r){for(var o,a=i.plugins,u=0;u<a.length;u++){var c=a[u];if(c){var l=c.extractEvents(e,t,n,r);l&&(o=s(o,l))}}return o},enqueueEvents:function(e){e&&(f=s(f,e))},processEventQueue:function(e){var t=f;f=null,e?c(t,p):c(t,h),f?o("95"):void 0,u.rethrowCaughtError()},__purge:function(){l={}},__getListenerBank:function(){return l}};e.exports=m},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return y(e,r)}function o(e,t,n){var o=r(e,n,t);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchInstances=v(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(e._targetInst,o,e)}function a(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?h.getParentInstance(t):null;h.traverseTwoPhase(n,o,e)}}function u(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=y(e,r);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchInstances=v(n
if(ke>0&&De>0){for(;o>0&&r[o]&&ke<r[o].width&&ke-r[o-1].width<r[o].width-ke;)o-=1;r.length-2>=o&&r[o].width===r[o+1].width&&(o=Math.min(e,o+1))}return o}function ve(e){var t=e.request.mediaType;if(H(t)){var n=Ie[t];if(!n)return;var r=(0,T["default"])(me).create({abrController:_e,streamProcessor:n,currentRequest:e.request,useBufferOccupancyABR:re(t)}),o=Ee.shouldAbandonFragment(r);if(o.quality>S["default"].NO_CHANGE){var i=n.getFragmentModel(),a=i.getRequests({state:h["default"].FRAGMENT_MODEL_LOADING,index:e.request.index})[0];a&&(i.abortRequests(),J(t,k),Ve[t].reset(),Ve[t].push({oldValue:ue(t,Te.getActiveStreamInfo()),newValue:o.quality,confidence:1,reason:o.reason}),$(t,Te.getActiveStreamInfo(),o.quality,o.reason),clearTimeout(Ce),Ce=setTimeout(function(){J(t,D),Ce=null},Be.getAbandonLoadTimeout()))}}}var me=this.context,ye=(0,M["default"])(me).getInstance(),ge=(0,m["default"])(me).getInstance(),_e=void 0,be=void 0,Ee=void 0,Te=void 0,we=void 0,Se=void 0,Oe=void 0,Pe=void 0,Re=void 0,Ie=void 0,Ae=void 0,Ce=void 0,xe=void 0,Ne=void 0,Me=void 0,ke=void 0,De=void 0,Le=void 0,je=void 0,Fe=void 0,Ue=void 0,Be=void 0,He=void 0,qe=void 0,Ve=void 0,Ge=void 0,We=void 0,Ke=void 0,Ye=void 0,ze=void 0,Xe=void 0;return _e={isPlayingAtTopQuality:ae,updateTopQualityIndex:ie,getThroughputHistory:oe,getBitrateList:te,getQualityForBitrate:ee,getMaxAllowedBitrateFor:E,getMinAllowedBitrateFor:w,setMaxAllowedBitrateFor:O,setMinAllowedBitrateFor:R,getMaxAllowedIndexFor:A,getMinAllowedIndexFor:N,getMaxAllowedRepresentationRatioFor:U,setMaxAllowedRepresentationRatioFor:B,getInitialBitrateFor:v,setInitialBitrateFor:y,getInitialRepresentationRatioFor:_,setInitialRepresentationRatioFor:b,setAutoSwitchBitrateFor:q,getAutoSwitchBitrateFor:H,getUseDeadTimeLatency:Y,setUseDeadTimeLatency:z,setLimitBitrateByPortal:G,getLimitBitrateByPortal:V,getUsePixelRatioInLimitBitrateByPortal:W,setUsePixelRatioInLimitBitrateByPortal:K,getQualityFor:ue,getAbandonmentStateFor:Z,setPlaybackQuality:$,checkPlaybackQuality:X,getTopQualityIndexFor:p,setElementSize:pe,setWindowResizeEventCalled:de,createAbrRulesCollection:r,registerStreamType:t,unRegisterStreamType:n,setConfig:u,reset:i},e(),_e}Object.defineProperty(t,"__esModule",{value:!0});var i=n(994),a=r(i),u=n(24),s=r(u),c=n(156),l=r(c),f=n(1018),d=r(f),p=n(241),h=r(p),v=n(12),m=r(v),y=n(14),g=r(y),_=n(2),b=r(_),E=n(991),T=r(E),w=n(94),S=r(w),O=n(992),P=r(O),R=n(990),I=r(R),A=n(993),C=r(A),x=n(45),N=n(19),M=r(N),k="abandonload",D="allowload",L=1e3,j=100,F=0;o.__dashjs_factory_name="AbrController";var U=b["default"].getSingletonFactory(o);U.ABANDON_LOAD=k,U.QUALITY_DEFAULT=F,b["default"].updateSingletonFactory(o.__dashjs_factory_name,U),t["default"]=U,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":a(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)}var a="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};Object.defineProperty(t,"__esModule",{value:!0});var u=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;r=!1,null===o&&(o=Function.prototype);var u=Object.getOwnPropertyDescriptor(o,i);if(void 0!==u){if("value"in u)return u.value;var s=u.get;if(void 0===s)return;return s.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=i,n=a,r=!0,u=c=void 0}},s=n(236),c=r(s),l=function(e){function t(){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.METRICS_INITIALISATION_COMPLETE="internal_metricsReportingInitialized",this.BECAME_REPORTING_PLAYER="internal_becameReportingPlayer"}return i(t,e),t
}},m="RECEIVED_SUBREDDITS_BY_POST",y=function(e,t){return{type:m,postId:e,apiResponse:t}},g="FAILED_SUBREDDITS_BY_POST",_=function(e,t){return{type:g,name:e,error:t}},b=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n.i(f.f)(r(),"subreddits_by_post",105,e);case 1:case"end":return t.stop()}},o,d)}));return function(e,n){return t.apply(this,arguments)}}()},E=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;return function(){var c=r(regeneratorRuntime.mark(function f(r,c){var h,m,g,b;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(h=c(),m=l.a.withContext({state:h}),!i()([p],function(e){return m.enabled(e)})){f.next=19;break}return r(v(e.name)),g=n.i(s.a)(h),f.prev=5,f.next=8,a.a.get(g,{link:e.name,variant:"nb",experiment_id:t,max_recs:o});case 8:b=f.sent,r(y(e.name,b)),f.next=19;break;case 12:if(f.prev=12,f.t0=f["catch"](5),!(f.t0 instanceof u.a)){f.next=18;break}r(_(e.name,f.t0)),f.next=19;break;case 18:throw f.t0;case 19:case"end":return f.stop()}},f,d,[[5,12]])}));return function(e,t){return c.apply(this,arguments)}}()}},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var o=n(170),i=n.n(o),a=n(1351),u=n(25),s=n(22),c=n(5),l=n(74),f=n(26);n.d(t,"c",function(){return b}),n.d(t,"b",function(){return S}),n.d(t,"a",function(){return O});var d=this,p=c.h.VARIANT_RECOMMENDED_BY_POST_TOP_ALL,h=c.h.VARIANT_RECOMMENDED_BY_POST_TOP_DAY,v=c.h.VARIANT_RECOMMENDED_BY_POST_TOP_MONTH,m=c.h.VARIANT_RECOMMENDED_BY_POST_HOT,y=[p,h,v,m],g="FETCHING_SUBREDDITS_TO_POSTS_BY_POST",_=function(e){return{type:g,name:e}},b="RECEIVED_SUBREDDITS_TO_POSTS_BY_POST",E=function(e,t){return{type:b,postId:e,apiResponse:t}},T="FAILED_SUBREDDITS_TO_POSTS_BY_POST",w=function(e,t){return{type:T,name:e,error:t}},S=function(e){return function(){var t=r(regeneratorRuntime.mark(function o(t,r){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n.i(f.f)(r(),"subreddits_by_post",105,e);case 1:case"end":return t.stop()}},o,d)}));return function(e,n){return t.apply(this,arguments)}}()},O=function(e,t,o,c){var f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3;return function(){var p=r(regeneratorRuntime.mark(function h(r,p){var v,m,g,b;return regeneratorRuntime.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(v=p(),m=l.a.withContext({state:v}),!i()(y,function(e){return m.enabled(e)})){d.next=19;break}return r(_(e.name)),g=n.i(s.a)(v),d.prev=5,d.next=8,a.a.get(g,{link:e.name,variant:"nb",experiment_id:c,max_recs:f,sort:t,time:o});case 8:b=d.sent,r(E(e.name,b)),d.next=19;break;case 12:if(d.prev=12,d.t0=d["catch"](5),!(d.t0 instanceof u.a)){d.next=18;break}r(w(e.name,d.t0)),d.next=19;break;case 18:throw d.t0;case 19:case"end":return d.stop()}},h,d,[[5,12]])}));return function(e,t){return p.apply(this,arguments)}}()}},function(e,t,n){"use strict";var r=n(1637),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(4)),u=(n.n(a),n(5)),s=n(289),c=n(42),l=n(423),f=this,d=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),p=u.g.NIGHTMODE,h="●",v=function(e){return!!e&&d("div",{className:"CommunityHeader-error row alert alert-danger alert-bar"},void 0,"There was a problem, please try again",d("span",{className:"CommunityHeader-clear-error-icon icon-clear white",onClick:f._removeErrorRow}))},m=function(e,t){var n=e.iconImage,r=e.bannerIm
session:new e(i.session)});case 5:return o.abrupt("return",i);case 6:case"end":return o.stop()}},o,this)}));return t}()}]),l(e,[{key:"refresh",value:function(){function t(){return n.apply(this,arguments)}var n=r(regeneratorRuntime.mark(function o(){var t;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,d();case 2:return t=n.sent,n.abrupt("return",new e(t.session));case 4:case"end":return n.stop()}},o,this)}));return t}()},{key:"toJSON",value:function(){return{accessToken:this.accessToken,tokenType:this.tokenType,expires:new Date(this.expires).getTime(),refreshToken:this.refreshToken,scope:this.scope,unsafeLoggedOut:this.unsafeLoggedOut}}},{key:"tokenString",get:function(){return n.i(u.btoa)(JSON.stringify(this.toJSON()))}},{key:"isValid",get:function(){return(new Date).getTime()<this.expires}},{key:"isLoggedOut",get:function(){return!!this.unsafeLoggedOut}}]),e}();t.a=p},function(e,t,n){"use strict";var r=n(63),o=n.n(r),i=n(95),a=n.n(i),u=n(17);n.d(t,"b",function(){return w}),n.d(t,"c",function(){return S}),n.d(t,"a",function(){return O});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c={app:{name:u.a.appName}},l=function(e){var t=e.platform.currentPage;if(t){if("/"===t.url)return"home";var n=t.urlParams,r=n.subredditName,o=n.pageName,i=n.postId,a=n.postTitle,u=n.commentId,s=n.userName,c=n.commentsOrSubmitted;if(o)switch(o){case"search":return"search"}if(s)switch(c){case"comments":return"profile_comments";case"submitted":return"profile_submitted";default:return"profile_overview"}if(i&&a)return u?"single_comment_thread":"post_detail";if(t.url.includes("/submit"))return"post_submit";if(r){if(r.includes("+"))return"multireddit";switch(r.toLowerCase()){case"popular":return"popular";case"all":return"all";default:return"community"}}}},f=function(e){return{pageType:l(e)}},d=function P(e){var t=e.platform.currentPage,P=t?t.referrer:null;if(P){var n=o.a.parse(P),r=n.hostname;if(!r||P.startsWith("/")){var i=e.meta.protocol;r=e.meta.domain,i&&r||(i=window.location.protocol,r=window.location.hostname),i=i.endsWith(":")?i:i+":",P=i+"//"+r+P}return{domain:r,url:P}}return null},p=function(e){var t=e.platform.currentPage,n=e.meta,r=n.userAgent,o=n.domain,i=n.protocol,a=t?i+"://"+o+t.url:void 0;return{user_agent:r,domain:o,base_url:a}},h=function(e){var t=a.a.get("session_tracker"),n=e.sessionTracker.value,r=(t||n).split("."),i=r[0],u=parseInt(r[2],10),c={},l=e.platform.history;if(l&&l.length){var f=l[0],d=o.a.parse(f.referrer),p=d.hostname;c={referrerDomain:p,referrerUrl:f.referrer}}return s({id:i,createdTimestamp:u},c)},v=1e3,m=60*v,y=60*m,g=24*y,_=/^0*/,b=function(e){return e.replace(_,"")},E=function R(e){var R=e.user,t=e.loid,n=void 0;R.loggedOut||(n=e.accounts[R.name]);var r=n?n.id:b(t.loid),o={id:"t2_"+r,isAdmin:n&&n.isEmployee,isLoggedIn:!!n,cookieCreatedTimestamp:parseInt(t.loidCreated,10),createdTimestamp:n?1e3*n.createdUTC:null};if(n){o.hasPremium=n.isGold,o.isPremiumSubscriber=n.hasGoldSubscription,o.numberCoins=n.coins||0;var i=n,a=i.goldExpiration,u=a?1e3*a-Date.now():0;o.numberPremiumDaysRemaining=u?Math.ceil(u/g):0}return o},T=function(e){return{actionInfo:f(e),referrer:d(e),request:p(e),session:h(e),user:E(e)}},w=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return s({source:t,action:n,noun:r},c,T(e),o)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{installable:t,installed:e.pwaInstalled,pwaInstalledTimestamp:e.pwaInstalledTimestamp}},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{id:e.id,isOverride:t,name:e.experiment_name,variant:e.variant,version:e.version}}},function(e,t,n){"use strict";function r(e){return u.a.isValidElement(e)&&"string"==typeof e.type}function o(e){var t=e||"0px",n=/^-?\d*\.?\d+(px|%)$/,r=t.split(/\s+/).map(function(e){if(!n.test(e))throw new Error("rootMargin must be specified in pixels or percent");return e});return r[1]=r[1
delete y[e],t()}},b=function(e){_.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++m]=function(){u("function"==typeof e?e:Function(e),t)},r(m),m},p=function(e){delete y[e]},"process"==n(67)(f)?r=function(e){f.nextTick(a(_,e,1))}:v&&v.now?r=function(e){v.now(a(_,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r=g in c("script")?function(e){s.appendChild(c("script"))[g]=function(){s.removeChild(this),_.call(e)}}:function(e){setTimeout(a(_,e,1),0)}),e.exports={set:d,clear:p}},function(e,t,n){"use strict";function r(e,t,n){var r,o,i,a=new Array(n),u=8*n-t-1,s=(1<<u)-1,c=s>>1,l=23===t?H(2,-24)-H(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for(e=B(e),e!=e||e===F?(o=e!=e?1:0,r=s):(r=q(V(e)/G),e*(i=H(2,-r))<1&&(r--,i*=2),e+=r+c>=1?l/i:l*H(2,1-c),e*i>=2&&(r++,i/=2),r+c>=s?(o=0,r=s):r+c>=1?(o=(e*i-1)*H(2,t),r+=c):(o=e*H(2,c-1)*H(2,t),r=0));t>=8;a[f++]=255&o,o/=256,t-=8);for(r=r<<t|o,u+=t;u>0;a[f++]=255&r,r/=256,u-=8);return a[--f]|=128*d,a}function o(e,t,n){var r,o=8*n-t-1,i=(1<<o)-1,a=i>>1,u=o-7,s=n-1,c=e[s--],l=127&c;for(c>>=7;u>0;l=256*l+e[s],s--,u-=8);for(r=l&(1<<-u)-1,l>>=-u,u+=t;u>0;r=256*r+e[s],s--,u-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:c?-F:F;r+=H(2,t),l-=a}return(c?-1:1)*r*H(2,l-t)}function i(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function a(e){return[255&e]}function u(e){return[255&e,e>>8&255]}function s(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function c(e){return r(e,52,8)}function l(e){return r(e,23,4)}function f(e,t,n){P(e[x],t,{get:function(){return this[n]}})}function d(e,t,n,r){var o=+n,i=S(o);if(i+t>e[X])throw j(M);var a=e[z]._b,u=i+e[$],s=a.slice(u,u+t);return r?s:s.reverse()}function p(e,t,n,r,o,i){var a=+n,u=S(a);if(u+t>e[X])throw j(M);for(var s=e[z]._b,c=u+e[$],l=r(+o),f=0;f<t;f++)s[c+f]=l[i?f:t-f-1]}var h=n(15),v=n(31),m=n(124),y=n(235),g=n(50),_=n(129),b=n(18),E=n(122),T=n(81),w=n(33),S=n(483),O=n(126).f,P=n(32).f,R=n(300),I=n(153),A="ArrayBuffer",C="DataView",x="prototype",N="Wrong length!",M="Wrong index!",k=h[A],D=h[C],L=h.Math,j=h.RangeError,F=h.Infinity,U=k,B=L.abs,H=L.pow,q=L.floor,V=L.log,G=L.LN2,W="buffer",K="byteLength",Y="byteOffset",z=v?"_b":W,X=v?"_l":K,$=v?"_o":Y;if(y.ABV){if(!b(function(){k(1)})||!b(function(){new k((-1))})||b(function(){return new k,new k(1.5),new k(NaN),k.name!=A})){k=function(e){return E(this,k),new U(S(e))};for(var Q,J=k[x]=U[x],Z=O(U),ee=0;Z.length>ee;)(Q=Z[ee++])in k||g(k,Q,U[Q]);m||(J.constructor=k)}var te=new D(new k(2)),ne=D[x].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||_(D[x],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else k=function(e){E(this,k,A);var t=S(e);this._b=R.call(new Array(t),0),this[X]=t},D=function(e,t,n){E(this,D,C),E(e,k,C);var r=e[X],o=T(t);if(o<0||o>r)throw j("Wrong offset!");if(n=void 0===n?r-o:w(n),o+n>r)throw j(N);this[z]=e,this[$]=o,this[X]=n},v&&(f(k,K,"_l"),f(D,W,"_b"),f(D,K,"_l"),f(D,Y,"_o")),_(D[x],{getInt8:function(e){return d(this,1,e)[0]<<24>>24},getUint8:function(e){return d(this,1,e)[0]},getInt16:function(e){var t=d(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=d(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return i(d(this,4,e,arguments[1]))},getUint32:function(e){return i(d(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return o(d(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return o(d(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){p(this,1,e,a,t)},setUint8:function(e,t){p(this,1,e,a,t)},setInt16:function(e,t){p(this,2,e,u,t,arguments[2])},setUint16:function(e,t){p(this,2,e,u,t,arguments[2])},setInt32:function(e,t){p(this,4,e,s,t,arguments[2])},setUint32:function(e,t){p(this,4,e,s,t,arguments[2])},setFloat32:function(e,t){p(this,4,e,l,t,arguments[2])},setFloat64:function(e,t){p(this,8,e,c,t,arguments[2])}});I(k,A),I(D,C),g(D[x]
return i?(t.thickness=i,t):null},function(t,n,r,o){if("none"===o)return o;var i={};if(null===o.color?i.color=r.styleAttrs[e.byName.color.qname]:i.color=o.color,"%"===o.thickness.unit)i.thickness=r.styleAttrs[e.byName.fontSize.qname]*o.thickness.value/100;else if("em"===o.thickness.unit)i.thickness=r.styleAttrs[e.byName.fontSize.qname]*o.thickness.value;else if("c"===o.thickness.unit)i.thickness=o.thickness.value/t.cellResolution.h;else{if("px"!==o.thickness.unit)return null;i.thickness=o.thickness.value/t.pxDimensions.h}return i}),new r(t.ns_tts,"unicodeBidi","normal",["span","p"],(!1),(!0),function(e){return e},null),new r(t.ns_tts,"visibility","visible",["body","div","p","region","span"],(!0),(!0),function(e){return e},null),new r(t.ns_tts,"wrapOption","wrap",["span"],(!0),(!0),function(e){return e},null),new r(t.ns_tts,"writingMode","lrtb",["region"],(!1),(!0),function(e){return e},null),new r(t.ns_tts,"zIndex","auto",["region"],(!1),(!0),function(e){var t;return"auto"===e?t=e:(t=parseInt(e),isNaN(t)&&(t=null)),t},null),new r(t.ns_ebutts,"linePadding","0c",["p"],(!0),(!1),n.parseLength,function(e,t,n,r){return"c"===r.unit?r.value/e.cellResolution.h:null}),new r(t.ns_ebutts,"multiRowAlign","auto",["p"],(!0),(!1),function(e){return e},null),new r(t.ns_smpte,"backgroundImage",null,["div"],(!1),(!1),function(e){return e},null),new r(t.ns_itts,"forcedDisplay","false",["body","div","p","region","span"],(!0),(!0),function(e){return"true"===e},null)],e.byQName={};for(var o in e.all)e.byQName[e.all[o].qname]=e.all[o];e.byName={};for(var i in e.all)e.byName[e.all[i].name]=e.all[i]}(t,"undefined"==typeof imscNames?n(244):imscNames,"undefined"==typeof imscUtils?n(515):imscUtils)},function(e,t,n){function r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=a,this.__views__=[]}var o=n(161),i=n(354),a=4294967295;r.prototype=o(i.prototype),r.prototype.constructor=r,e.exports=r},function(e,t,n){function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}var o=n(161),i=n(354);r.prototype=o(i.prototype),r.prototype.constructor=r,e.exports=r},function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=n(1134),i=n(1135),a=n(1136),u=n(1137),s=n(1138);r.prototype.clear=o,r.prototype["delete"]=i,r.prototype.get=a,r.prototype.has=u,r.prototype.set=s,e.exports=r},function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.__data__=new o;++t<n;)this.add(e[t])}var o=n(346),i=n(1143),a=n(1144);r.prototype.add=r.prototype.push=i,r.prototype.has=a,e.exports=r},function(e,t,n){var r=n(53),o=r.Symbol;e.exports=o},function(e,t){function n(e,t,n,r){var o=-1,i=e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}e.exports=n},function(e,t,n){function r(e,t){return e&&o(t,i(t),e)}var o=n(136),i=n(54);e.exports=r},function(e,t,n){function r(e,t,n,T,w,S,O){var I;if(T&&(I=S?T(e,w,S,O):T(e)),void 0!==I)return I;if(!_(e))return e;var A=m(e);if(A){if(I=p(e),!t)return c(e,I)}else{var x=d(e),N=x==P||x==R;if(y(e))return s(e,t);if(x==C||x==E||N&&!S){if(g(e))return S?e:{};if(I=v(N?{}:e),!t)return l(e,u(I,e))}else{if(!Y[x])return S?e:{};I=h(e,x,r,t)}}O||(O=new o);var M=O.get(e);if(M)return M;if(O.set(e,I),!A)var k=n?f(e):b(e);return i(k||e,function(o,i){k&&(i=o,o=e[i]),a(I,i,r(o,t,n,T,i,e,O))}),I}var o=n(246),i=n(198),a=n(199),u=n(350),s=n(1095),c=n(201),l=n(1102),f=n(1112),d=n(253),p=n(1122),h=n(1123),v=n(1124),m=n(27),y=n(573),g=n(254),_=n(39),b=n(54),E="[object Arguments]",T="[object Array]",w="[object Boolean]",S="[object Date]",O="[object Error]",P="[object Function]",R="[object GeneratorFunction]",I="[object Map]",A="[object Number]",C="[object Object]",x="[object RegExp]",N="[object Set]",M="[object String]",k="[object Symbol]",D="[object WeakMap]",L="[object ArrayBuffer]",j="[object DataView]",F="[object Float32Array]",U="[object Float64Array]",B="[object Int8Array]",H="[object Int16Array]",q="[object Int32Array]",V="[object Uint8Array]",G="[object Uint8ClampedArray]",W
}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=n(1174),s=n.n(u),c=n(262),l=n.n(c),f=n(20);n.d(t,"a",function(){return h}),n.d(t,"b",function(){return v});var d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(){function e(){var t;a(this,e),this.results=[],this.posts={},this.comments={},this.accounts={},this.messages={},this.sitewide_rules={},this.subreddits={},this.subreddit_rules={},this.wikis={},this.continueThreadObjects={},this.commentLoadMoreObjects={},this.multireddits={},this.typeToTable=(t={},i(t,f.a,this.comments),i(t,f.b,this.commentLoadMoreObjects),i(t,f.c,this.continueThreadObjects),i(t,f.d,this.posts),i(t,f.e,this.accounts),i(t,f.f,this.messages),i(t,f.g,this.sitewide_rules),i(t,f.h,this.subreddits),i(t,f.i,this.subreddit_rules),i(t,f.j,this.wikis),i(t,f.k,this.multireddits),t),this.addResult=this.addResult.bind(this),this.addModel=this.addModel.bind(this),this.makeRecord=this.makeRecord.bind(this),this.addToTable=this.addToTable.bind(this),this.getModelFromRecord=this.getModelFromRecord.bind(this),this.appendResponse=this.appendResponse.bind(this)}return d(e,[{key:"addResult",value:function(e){if(!e)return this;var t=this.makeRecord(e);return t&&(this.results.push(t),this.addToTable(t,e)),this}},{key:"addModel",value:function(e){if(!e)return this;var t=this.makeRecord(e);return t&&this.addToTable(t,e),this}},{key:"makeRecord",value:function(e){if(e.toRecord)return e.toRecord();var t=e.uuid;if(t){var r=f.l[e.kind]||n.i(f.m)(t);if(r)return{type:r,uuid:t}}}},{key:"addToTable",value:function(e,t){var n=this.typeToTable[e.type];return n&&(n[e.uuid]=t),this}},{key:"getModelFromRecord",value:function(e){var t=this.typeToTable[e.type];if(t)return t[e.uuid]}},{key:"appendResponse",value:function(){throw new Error("Not implemented in base class")}}]),e}(),h=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a(this,t);var i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.request=e.req,i.response=e,i.meta=n,i.query=o,i}return o(t,e),d(t,[{key:"appendResponse",value:function(e){return new v([this,e])}}]),t}(p),v=function(e){function t(e){a(this,t);var n=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));n.metas=e.map(function(e){return e.meta}),n.querys=e.map(function(e){return e.query}),n.apiResponses=e;var o=new Set,i=[f.a,f.e,f.d,f.f,f.h];return s()(e,function(e){s()(e.results,function(e){o.has(e.uuid)||(o.add(e.uuid),n.results.push(e))}),s()(i,function(t){var r=n.typeToTable[t];Object.assign(r,e.typeToTable[t])})}),n}return o(t,e),d(t,[{key:"appendResponse",value:function(e){var n=this.apiResponses.slice();return n.push(e),new t(n)}},{key:"lastResponse",get:function(){return l()(this.apiResponses)}},{key:"lastQuery",get:function(){return l()(this.querys)}},{key:"lastMeta",get:function(){return l()(this.meta)}},{key:"query",get:function(){return this.latQuery}}]),t}(p)},function(e,t,n){"use strict";var r=n(170),o=n.n(r),i=n(112),a=n.n(i),u=n(41),s=n(630),c=n(65),l=n(38),f=n(623),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p="BAD_CAPTCHA",h=function(e,t){if(e.user)return"user/"+e.user+"/submitted.json";if(e.id)return"by_id/"+e.id+".json";if(e.ids)return"by_id/"+e.ids.join(",")+".json";if(e.subredditName)return e.sort?"r/"+e.subredditName+"/"+e.sort+".json":"r/"+e.subredditName+".json";if(e.multi&&e.multiUser){var n=t&&e.multiUser.toLowerCase()===t.name.toLowerCase()?"me/m/"+e.multi:"user/"+e.multiUser+"/m/"+e.multi;return e.sort?n+"/"+e.sort+".json":n+".json"}return(e.sort||"hot")+".json"},v=function(e,
break}return i.abrupt("return");case 3:return a=t.pageParamsToCommentsPageParams(this),c=n.i(b.a)(a),l=o.platform.currentPage.urlParams.subredditName,i.next=8,Promise.all([e(p.a(a)),n.i(d.a)(e),e(p.b()),e(p.c(this.urlParams.postId)),e(h.a(l))]);case 8:f=r().posts["t3_"+this.urlParams.postId],!l&&f&&(l=f.subreddit),f&&(N(o,e,f),M(o,e,f),k(o,e,f),e(n.i(E.a)(this.buildTitle(f)))),v=r().commentsPages.api[c],m=v&&v.responseCode?v.responseCode:500,e(n.i(s.l)(m)),y=r(),n.i(T.a)(y,u(y));case 16:case"end":return i.stop()}},i,this)}));return e}()}],[{key:"pageParamsToCommentsPageParams",value:function(e){var t=e.urlParams,r=e.queryParams,o=t.postId,i=t.commentId,a=r.sort,u=r.context;o=C(o);var s=void 0;return i&&(s={comment:i,context:u}),n.i(f.a)({id:o,sort:a,query:s})}}]),t}(c.b);t.b=x;var N=function(e,t,n){var r=105;t(v.a(n,r))},M=function(e,t,n){var r=105;t(m.a(n,r))},k=function(e,t,n){var r=_.a.withContext({state:e}),o=105,i="",a="";r.enabled(O)?(a="top",i="all"):r.enabled(P)?(a="top",i="day"):r.enabled(R)?(a="top",i="month"):r.enabled(I)&&(a="hot",i="all"),t(y.a(n,a,i,o))}},function(e,t,n){"use strict";var r=n(74);n.d(t,"a",function(){return o});var o=function(e){return r.a.withContext({state:e})}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var a=n(0),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(95)),f=n.n(l),d=n(168),p=n.n(d),h=n(189);n.d(t,"b",function(){return g}),n.d(t,"a",function(){return T}),n.d(t,"c",function(){return O});var v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=u.a.PropTypes,y=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.canArchive=!e.tester||e.tester(),n.mounted=!1,n}return i(t,e),v(t,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"shouldComponentUpdate",value:function(e){return this.mounted&&this.updateArchiveFromProps(e),!1}},{key:"updateArchiveFromProps",value:function(e){if(this.canArchive){var t=this.buildDiffFromNextProps(e);t&&e.archiver(t)}}},{key:"buildDiffFromNextProps",value:function(e){for(var t={},n=e.datum,r=Object.keys(n),o=!1,i=0;i<r.length;i++){var a=r[i],u=n[a];u!==this.props.datum[a]&&(t[a]=u,o=!0)}if(o)return t}},{key:"render",value:function(){return!1}}]),t}(u.a.Component);y.propTypes={datum:m.object.isRequired,archiver:m.func.isRequired,tester:m.func};var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],r=arguments[2],o=arguments[3],i=function(){return{datum:t.apply(void 0,arguments),archiver:r,tester:o}},a=n.i(c.createSelector)(e,i);return n.i(s.connect)(a)(y)},_=function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++){var o=n[r],i=e[o];t(o,i)}},b=function(e,t){"undefined"==typeof t?f.a.remove(e):f.a.set(e,t)},E=function(e){_(e,b)},T=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.pop();return g(t,r,E)},w=function(e,t){var n=t;p()(t)&&(n=JSON.stringify(t)),localStorage.setItem(e,n)},S=function(e){_(e,w)},O=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.pop();return g(t,r,S,h.a)};h.a},function(e,t,n){"use strict";var r=n(95),o=n.n(r);n.d(t,"c",function(){return a}),n.d(t,"a",function(){return s});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t
"ios"!==r&&"ipad"!==r||!e.N?"android"===r&&e.J?n+="#branch-banner { position: absolute; }\n#branch-banner .content .left .details .title { font-size: 12px; }\n#branch-mobile-action { white-space: nowrap; }\n#branch-banner .content .left .details .description { font-size: 11px; font-weight: normal; }\n@media only screen and (min-device-width: 320px) and (max-device-width: 350px) { #branch-banner .content .right { max-width: 120px; } }\n@media only screen and (min-device-width: 351px) and (max-device-width: 400px) and (orientation: landscape) { #branch-banner .content .right { max-width: 150px; } }\n@media only screen and (min-device-width: 401px) and (max-device-width: 480px) and (orientation: landscape) { #branch-banner .content .right { max-width: 180px; } }\n#branch-banner #branch-banner-close,#branch-banner .theme-dark #branch-banner-close { height:17px; width: 17px; text-align: center; font-size: 15px; top: 24px; border-radius:14px; border:0; line-height:14px; color:#b1b1b3; background:#efefef; padding: 0; opacity: 1; }\n#branch-banner .button { top: 0; text-decoration:none; border-bottom: 3px solid #A4C639; padding: 0 10px; height: 24px; line-height: 24px; text-align: center; color: #fff; margin-top: 2px; font-weight: bold; background-color: #A4C639; border-radius: 5px; }\n#branch-banner .button:hover { border-bottom:3px solid #8c9c29; background-color: #c1d739; }\n":"blackberry"===r&&e.K?n+="#branch-banner { position: absolute; }\n#branch-banner .content .left .details .title { font-size: 12px; }\n#branch-mobile-action { white-space: nowrap; }\n#branch-banner .content .left .details .description { font-size: 11px; font-weight: normal; }\n@media only screen and (min-device-width: 320px) and (max-device-width: 350px) { #branch-banner .content .right { max-width: 120px; } }\n@media only screen and (min-device-width: 351px) and (max-device-width: 400px) and (orientation: landscape) { #branch-banner .content .right { max-width: 150px; } }\n@media only screen and (min-device-width: 401px) and (max-device-width: 480px) and (orientation: landscape) { #branch-banner .content .right { max-width: 180px; } }\n":"windows_phone"===r&&e.M?n+="#branch-banner { position: absolute; }\n#branch-banner .content .left .details .title { font-size: 12px; }\n#branch-mobile-action { white-space: nowrap; }\n#branch-banner .content .left .details .description { font-size: 11px; font-weight: normal; }\n@media only screen and (min-device-width: 320px) and (max-device-width: 350px) { #branch-banner .content .right { max-width: 120px; } }\n@media only screen and (min-device-width: 351px) and (max-device-width: 400px) and (orientation: landscape) { #branch-banner .content .right { max-width: 150px; } }\n@media only screen and (min-device-width: 401px) and (max-device-width: 480px) and (orientation: landscape) { #branch-banner .content .right { max-width: 180px; } }\n":"kindle"===r&&e.L?n+="#branch-banner { position: absolute; }\n#branch-banner .content .left .details .title { font-size: 12px; }\n#branch-mobile-action { white-space: nowrap; }\n#branch-banner .content .left .details .description { font-size: 11px; font-weight: normal; }\n@media only screen and (min-device-width: 320px) and (max-device-width: 350px) { #branch-banner .content .right { max-width: 120px; } }\n@media only screen and (min-device-width: 351px) and (max-device-width: 400px) and (orientation: landscape) { #branch-banner .content .right { max-width: 150px; } }\n@media only screen and (min-device-width: 401px) and (max-device-width: 480px) and (orientation: landscape) { #branch-banner .content .right { max-width: 180px; } }\n":(n+="#branch-banner { position: fixed; min-width: 600px; }\n#branch-sms-block * { vertical-align: bottom; font-size: 15px; }\n#branch-sms-block { display: inline-block; }\n#branch-banner input{ border: 1px solid #ccc; font-weight: 400; border-radius: 4px; height: 30px; padding: 5px 7px 4px; width: 145px; font-size: 14px;}\n#branch-banner input:focus { outline: none; }\n#branch-banner input.error { color: rgb(194, 0, 0); border-color: rgb(194, 0, 0);
language:navigator.language,screen_width:screen.width||-1,screen_height:screen.height||-1},a||{}),initial_referrer:X(ze(s))},function(r,a){r||"object"!==("undefined"==typeof a?"undefined":i(a))||Be(t,o,a,n,s);try{e(r,o&&_(o))}catch(u){}finally{s.renderFinalize()}})}function a(e){var t={sdk:"2.31.0",branch_key:s.i},n=ue(s.b)||{},r=ue(s.b,!0)||{};r.browser_fingerprint_id&&(t._t=r.browser_fingerprint_id),I()||s.c(lt,t,function(e,t){e&&(s.h=3,s.l=e.message),t&&(n.browser_fingerprint_id=t)}),s.c(St,{browser_fingerprint_id:n.browser_fingerprint_id},function(t,r){t&&(s.h=4,s.l=t.message),t||!r||n.has_app||(n.has_app=!0,ce(s.b,n),Xe(s,"didDownloadApp")),e&&e(null,n)})}function u(e){if(e.link_click_id&&(s.V=e.link_click_id.toString()),e.session_id&&(s.I=e.session_id.toString()),e.identity_id&&(s.v=e.identity_id.toString()),e.link&&(s.W=e.link),e.referring_link){var t=e.referring_link;e.referring_link=t?"http"!==t.substring(0,4)?"https://bnc.lt"+t:t:null}return!e.click_id&&e.referring_link&&(e.click_id=S(e.referring_link)),s.D=e.browser_fingerprint_id,e}var s=this;s.j=1,-1<t.indexOf("key_")?s.i=t:s.P=t,tt=(n=n&&W(n,"object")?n:{})&&n.retries&&Number.isInteger(n.retries)?n.retries:tt,nt=n&&n.retry_delay&&Number.isInteger(n.retry_delay)?n.retry_delay:nt,rt=n&&n.timeout&&Number.isInteger(n.timeout)?n.timeout:rt;var c=ue(s.b),l=n&&n.url||E(),f=(n&&"undefined"!=typeof n.branch_match_id&&null!==n.branch_match_id?n.branch_match_id:null)||A()||P(),d=!c||!c.identity_id;if(s.m=!!s.b.get("branch_view_enabled"),c&&c.session_id&&!f)ce(s.b,{data:""}),ce(s.b,{referring_link:""}),r(),a(o);else{var c={sdk:"2.31.0",branch_key:s.i},p=ue(s.b,!0)||{};p.browser_fingerprint_id&&(c._t=p.browser_fingerprint_id),I()?s.c(ct,{link_identifier:f,browser_fingerprint_id:f||p.browser_fingerprint_id,alternative_browser_fingerprint_id:p.browser_fingerprint_id,options:n,initial_referrer:X(ze(s))},function(e,t){e&&(s.h=2,s.l=e.message),e||"object"!==("undefined"==typeof t?"undefined":i(t))||(s.m=!!t.branch_view_enabled,s.b.set("branch_view_enabled",s.m),f&&(t.click_id=f)),r(),o(e,t)}):s.c(lt,c,function(e,t){return e?(s.h=3,s.l=e.message,o(e,null)):void s.c(ct,{link_identifier:f,browser_fingerprint_id:f||t,alternative_browser_fingerprint_id:p.browser_fingerprint_id,options:n,initial_referrer:X(ze(s))},function(e,t){e&&(s.h=2,s.l=e.message),e||"object"!==("undefined"==typeof t?"undefined":i(t))||(s.m=!!t.branch_view_enabled,s.b.set("branch_view_enabled",s.m),f&&(t.click_id=f)),r(),o(e,t)})})}},!0),Ye.prototype.renderQueue=Ke(0,function(e,t){this.Y?t():(this.o=this.o||[],this.o.push(t)),e(null,null)}),Ye.prototype.renderFinalize=Ke(2,function(e){this.o&&0<this.o.length&&(this.o.forEach(function(e){e.call(this)}),delete this.o),this.Y=!0,e(null,null)}),Ye.prototype.data=Ke(2,function(e){var t=_(ue(this.b));t.referring_link=ze(this),t.data_parsed=t.data&&0!==t.data.length?v(t.data):{},e(null,t)}),Ye.prototype.first=Ke(2,function(e){e(null,_(ue(this.b,!0)))}),Ye.prototype.setIdentity=Ke(2,function(e,t){var n=this;this.c(yt,{identity:t},function(r,o){r&&e(r),o=o||{},n.v=o.identity_id?o.identity_id.toString():null,n.W=o.link,n.G=t,o.referring_data_parsed=o.referring_data?v(o.referring_data):null,ce(n.b,o),e(null,o)})}),Ye.prototype.logout=Ke(1,function(e){var t=this;this.c(mt,{},function(n,r){n&&e(n),r=r||{},r={data_parsed:null,data:null,referring_link:null,click_id:null,link_click_id:null,identity:null,session_id:r.session_id,identity_id:r.identity_id,link:r.link,device_fingerprint_id:t.ta||null},t.W=r.link,t.I=r.session_id,t.v=r.identity_id,t.G=r.identity,ce(t.b,r),e(null)})}),Ye.prototype.track=Ke(1,function(e,t,n,r){var o=this;if(n=n||{},r=r||{},"pageview"===t){var a=Q(L(),n);a&&0<Object.keys(a).length&&(n.hosted_deeplink_data=a)}o.c(Ot,{event:t,metadata:O({url:E(),user_agent:navigator.userAgent,language:navigator.language},n),initial_referrer:X(ze(o))},function(n,a){n||"object"!==("undefined"==typeof a?"undefined":i(a))||"pageview"!==t||Be(o.i,ue(o.b),a,r,o),"function"==typeof e&&e.apply(this,arguments)})}),Ye.prototype.logEvent=Ke(1,function(e,t,n,r){t=W(t,"string")?t
};e.exports={getConstructor:function(e,t,n,c){var l=e(function(e,r){u(e,l,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[v]=0,void 0!=r&&s(r,n,e[c],e)});return i(l.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},"delete":function(e){var n=h(this,t),r=m(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!m(h(this,t),e)}}),d&&r(l.prototype,"size",{get:function(){return h(this,t)[v]}}),l},def:function(e,t,n){var r,o,i=m(e,t);return i?i.v=n:(e._l=i={i:o=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[v]++,"F"!==o&&(e._i[o]=i)),e},getEntry:m,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=h(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?l(0,n.k):"values"==t?l(0,n.v):l(0,[n.k,n.v]):(e._t=void 0,l(1))},n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){var r=n(192),o=n(457);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},function(e,t,n){"use strict";var r=n(129),o=n(106).getWeak,i=n(13),a=n(21),u=n(122),s=n(123),c=n(77),l=n(49),f=n(155),d=c(5),p=c(6),h=0,v=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},y=function(e,t){return d(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},"delete":function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var c=e(function(e,r){u(e,c,t,"_i"),e._t=t,e._i=h++,e._l=void 0,void 0!=r&&s(r,n,e[i],e)});return r(c.prototype,{"delete":function(e){if(!a(e))return!1;var n=o(e);return n===!0?v(f(this,t))["delete"](e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return n===!0?v(f(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=o(i(t),!0);return r===!0?v(e).set(t,n):r[e._i]=n,e},ufstore:v}},function(e,t,n){"use strict";function r(e,t,n,c,l,f,d,p){for(var h,v,m=l,y=0,g=!!d&&u(d,p,3);y<c;){if(y in n){if(h=g?g(n[y],y,t):n[y],v=!1,i(h)&&(v=h[s],v=void 0!==v?!!v:o(h)),v&&f>0)m=r(e,t,h,a(h.length),m,f-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=h}m++}y++}return m}var o=n(226),i=n(21),a=n(33),u=n(68),s=n(28)("isConcatSpreadable");e.exports=r},function(e,t,n){e.exports=!n(31)&&!n(18)(function(){return 7!=Object.defineProperty(n(303)("div"),"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(21),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t,n){var r=n(13);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(i){var a=e["return"];throw void 0!==a&&r(a.call(e)),i}}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r=n(312),o=Math.pow,i=o(2,-52),a=o(2,-23),u=o(2,127)*(2-a),s=o(2,-126),c=function(e){return e+1/i-1/i};e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),l=r(e);return o<s?l*c(o/s/a)*s*a:(t=(1+a/i)*o,n=t-(t-o),n>u||n!=n?l*(1/0):l*n)}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t){e.exports=Math.scale||function(e,t,n,r,o){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||o!=o?NaN:e===1/0||e===-(1/0)?e:(e-t)*(o-r)/(n-t)+r}},function(e,t,n){"use strict";var r=n(127),o=n(230),i=n(194),a=n(37),u=n(19
try{t=n.parseFromString(e,"text/xml"),t.getElementsByTagNameNS("*","parseerror").length>0&&(t=null)}catch(r){t=null}}else 0==e.indexOf("<?")&&(e=e.substr(e.indexOf("?>")+2)),t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e);return t},this.asArray=function(e){return void 0===e||null==e?[]:e instanceof Array?e:[e]},this.toXmlDateTime=function(e){return e instanceof Date?e.toISOString():"number"==typeof e?new Date(e).toISOString():null},this.asDateTime=function(e){return"string"==typeof e?s(e):e},this.xml2json=function(e){return f(e)},this.xml_str2json=function(e){var t=this.parseXmlString(e);return null!=t?this.xml2json(t):null},this.json2xml_str=function(e){return w(e,"")},this.json2xml=function(e){var t=this.json2xml_str(e);return this.parseXmlString(t)},this.getVersion=function(){return S}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(){return r}Object.defineProperty(t,"__esModule",{value:!0}),t.getVersionString=n;var r="2.6.4"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(918),u=r(a),s=function(){function e(t,n,r,i,a){var s=this;o(this,e),this._name=t||"",this._properties=[],this._children=r||[],this._isRoot=i||!1,this._isArray=a||!0,Array.isArray(n)&&n.forEach(function(e){s._properties.push(new u["default"](e))})}return i(e,[{key:"name",get:function(){return this._name}},{key:"isRoot",get:function(){return this._isRoot}},{key:"isArray",get:function(){return this._isArray}},{key:"children",get:function(){return this._children}},{key:"properties",get:function(){return this._properties}}]),e}();t["default"]=s,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=1,o=1,i=function a(e,t,i,u){n(this,a),this.url=e||"",this.serviceLocation=t||e||"",this.dvb_priority=i||r,this.dvb_weight=u||o};i.DEFAULT_DVB_PRIORITY=r,i.DEFAULT_DVB_WEIGHT=o,t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.duration=NaN,this.presentationTime=NaN,this.id=NaN,this.messageData="",this.eventStream=null,this.presentationTimeDelta=NaN};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.schemeIdUri="",this.value=""};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){Cn=!1,xn=!1,Nn=!0,Ln=null,An=null,Un=null,$["default"].extend(J["default"]),Hn=(0,k["default"])(wn).getInstance()}function t(e){e&&(e.capabilities&&(Vn=e.capabilities),e.streamController&&(Gn=e.streamController),e.playbackController&&(Wn=e.playbackController),e.mediaPlayerModel&&(Hn=e.mediaPlayerModel),e.abrController&&(Mn=e.abrController),e.mediaController&&(Dn=e.mediaController))}function n(e,t,n){return Vn||(Vn=(0,T["default"])(wn).getInstance()),qn=(0,b["default"])(wn).getInstance(),Vn.supportsMediaSource()?void(Cn||(Cn=!0,kn=(0,ce["default"])(wn).getInstance(),Mn||(Mn=(0,F["default"])(wn).getInstance()),Wn||(Wn=(0,d["default"])(wn).getInstance()),Dn||(Dn=(0,m["default"])(wn).getInstance()),Un=(0,re["default"])(wn).getInstance(),Yn=(0,ie["default"])(wn).getInstance({mediaController:Dn,timelineConverter:kn,adapter:Un}),zn=(0,N["default"])(wn).getIns
"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){function e(){var e,t;De=[],ke=!1,Me=!0,Fe=!0,Je=l["default"].ABR_STRATEGY_DYNAMIC,Ze=!0,tt=!1,He={enabled:!0,ttl:p},qe={enabled:!0,ttl:h},Le=d,je=void 0,Ue=y,Be=g,Ve=NaN,Ge=E,We=T,Ke=w,Ye=v,ze=m,Qe=C,et={"default":x},nt=[],rt=l["default"].MOVING_AVERAGE_SLIDING_WINDOW,e={},o(e,s.HTTPRequest.MPD_TYPE,P),o(e,s.HTTPRequest.XLINK_EXPANSION_TYPE,I),o(e,s.HTTPRequest.MEDIA_SEGMENT_TYPE,S),o(e,s.HTTPRequest.INIT_SEGMENT_TYPE,S),o(e,s.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,S),o(e,s.HTTPRequest.INDEX_SEGMENT_TYPE,S),o(e,s.HTTPRequest.OTHER_TYPE,S),Xe=e,t={},o(t,s.HTTPRequest.MPD_TYPE,R),o(t,s.HTTPRequest.XLINK_EXPANSION_TYPE,A),o(t,s.HTTPRequest.MEDIA_SEGMENT_TYPE,O),o(t,s.HTTPRequest.INIT_SEGMENT_TYPE,O),o(t,s.HTTPRequest.BITSTREAM_SWITCHING_SEGMENT_TYPE,O),o(t,s.HTTPRequest.INDEX_SEGMENT_TYPE,O),o(t,s.HTTPRequest.OTHER_TYPE,O),$e=t}function t(e){Je=e}function n(){return Je}function r(e){Ze=e}function i(){return Ze}function a(e){var t=void 0;for(t=0;t<nt.length;t++)if(nt[t].rulename===e)return t;return-1}function u(){return nt}function c(e,t,n){var r=a(t);r===-1?nt.push({type:e,rulename:t,rule:n}):(nt[r].type=e,nt[r].rule=n)}function f(e){var t=a(e);t!==-1&&nt.splice(t,1)}function N(){nt=[]}function M(e){Ye=e}function k(){return Ye}function D(e){ze=e}function L(){return ze}function j(e){Ve=e}function F(){return isNaN(Ve)?tt?b:_:Ve}function U(e){Ge=e}function B(){return Ge}function H(e){We=e}function q(){return We}function V(e){Ke=e}function G(){return Ke}function W(e){Ue=e}function K(){return Ue}function Y(e,t){He.enabled=e,void 0===t||isNaN(t)||"number"!=typeof t||(He.ttl=t)}function z(){return He}function X(e,t){qe.enabled=e,void 0===t||isNaN(t)||"number"!=typeof t||(qe.ttl=t)}function $(){return qe}function Q(e){Be=e}function J(){return Be}function Z(e){Xe[s.HTTPRequest.MEDIA_SEGMENT_TYPE]=e}function ee(e){Xe[s.HTTPRequest.MPD_TYPE]=e}function te(e,t){Xe[e]=t}function ne(){return Xe[s.HTTPRequest.MEDIA_SEGMENT_TYPE]}function re(){return Xe[s.HTTPRequest.MPD_TYPE]}function oe(e){return Xe[e]}function ie(e){$e[s.HTTPRequest.MEDIA_SEGMENT_TYPE]=e}function ae(e){$e[s.HTTPRequest.MPD_TYPE]=e}function ue(e,t){$e[e]=t}function se(){return $e[s.HTTPRequest.MEDIA_SEGMENT_TYPE]}function ce(){return $e[s.HTTPRequest.MPD_TYPE]}function le(e){return $e[e]}function fe(e){Qe=e}function de(){return Qe}function pe(e){Fe=e}function he(){return Fe}function ve(e){Le=e}function me(e){je=e}function ye(){return Le}function ge(){return je}function _e(e){Me=e}function be(){return Me}function Ee(e){ke=e}function Te(){return ke}function we(e){De=e}function Se(){return De}function Oe(e,t){e?et[e]=!!t:Object.keys(et).forEach(function(e){Oe(e,t)})}function Pe(e){var t=et[e];return void 0===t?et["default"]:t}function Re(){return tt}function Ie(e){tt=e}function Ae(e){rt=e}function Ce(){return rt}function xe(){}var Ne=void 0,Me=void 0,ke=void 0,De=void 0,Le=void 0,je=void 0,Fe=void 0,Ue=void 0,Be=void 0,He=void 0,qe=void 0,Ve=void 0,Ge=void 0,We=void 0,Ke=void 0,Ye=void 0,ze=void 0,Xe=void 0,$e=void 0,Qe=void 0,Je=void 0,Ze=void 0,et=void 0,tt=void 0,nt=void 0,rt=void 0;return Ne={setABRStrategy:t,getABRStrategy:n,setUseDefaultABRRules:r,getUseDefaultABRRules:i,getABRCustomRules:u,addABRCustomRule:c,removeABRCustomRule:f,removeAllABRCustomRule:N,setBandwidthSafetyFactor:M,getBandwidthSafetyFactor:k,setAbandonLoadTimeout:D,getAbandonLoadTimeout:L,setLastBitrateCachingInfo:Y,getLastBitrateCachingInfo:z,setLastMediaSettingsCachingInfo:X,getLastMediaSettingsCachingInfo:$,setStableBufferTime:j,getStableBufferTime:F,setBufferTimeAtTopQuality:U,getBufferTimeAtTopQuality:B,setBufferTimeAtTopQualityLongForm:H,getBufferTimeAtTopQualityLongForm:q,setLongFormContentDurationThreshold:V,getLongFormContentDurationThreshold:G,setBufferToKeep:W,getBufferToKeep:K,setBufferPruningInterval:Q,getBufferPruningInterval:J,setFragmentRetryAttempts:Z,getFragmentRetryAttempts:ne,set
return r(e)&&null!=t?e+"="+a(t):""},setValueForProperty:function(e,t,n){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(r){var a=r.mutationMethod;if(a)a(e,n);else{if(o(r,n))return void this.deleteValueForProperty(e,t);if(r.mustUseProperty)e[r.propertyName]=n;else{var u=r.attributeName,s=r.attributeNamespace;s?e.setAttributeNS(s,u,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(u,""):e.setAttribute(u,""+n)}}}else if(i.isCustomAttribute(t))return void l.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){if(r(t)){null==n?e.removeAttribute(t):e.setAttribute(t,""+n)}},deleteValueForAttribute:function(e,t){e.removeAttribute(t)},deleteValueForProperty:function(e,t){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseProperty){var o=n.propertyName;n.hasBooleanValue?e[o]=!1:e[o]=""}else e.removeAttribute(n.attributeName)}else i.isCustomAttribute(t)&&e.removeAttribute(t)}};e.exports=l},function(e,t){"use strict";var n={hasCachedChildNodes:1};e.exports=n},function(e,t,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=u.getValue(e);null!=t&&o(this,Boolean(e.multiple),t)}}function o(e,t,n){var r,o,i=s.getNodeFromInstance(e).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<i.length;o++){var a=r.hasOwnProperty(i[o].value);i[o].selected!==a&&(i[o].selected=a)}}else{for(r=""+n,o=0;o<i.length;o++)if(i[o].value===r)return void(i[o].selected=!0);i.length&&(i[0].selected=!0)}}function i(e){var t=this._currentElement.props,n=u.executeOnChange(t,e);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),c.asap(r,this),n}var a=n(29),u=n(382),s=n(35),c=n(84),l=(n(16),!1),f={getHostProps:function(e,t){return a({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=u.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,listeners:null,onChange:i.bind(e),wasMultiple:Boolean(t.multiple)},void 0===t.value||void 0===t.defaultValue||l||(l=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=u.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,o(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?o(e,Boolean(t.multiple),t.defaultValue):o(e,Boolean(t.multiple),t.multiple?[]:""))}};e.exports=f},function(e,t){"use strict";var n,r={injectEmptyComponentFactory:function(e){n=e}},o={create:function(e){return n(e)}};o.injection=r,e.exports=o},function(e,t){"use strict";var n={logTopLevelRenders:!1};e.exports=n},function(e,t,n){"use strict";function r(e){return s?void 0:a("111",e.type),new s(e)}function o(e){return new l(e)}function i(e){return e instanceof l}var a=n(23),u=n(29),s=(n(11),null),c={},l=null,f={injectGenericComponentClass:function(e){s=e},injectTextComponentClass:function(e){l=e},injectComponentClasses:function(e){u(c,e)}},d={createInternalComponent:r,createInstanceForText:o,isTextComponent:i,injection:f};e.exports=d},function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=n(1250),i=n(1044),a=n(512),u=n(513),s={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=u();return{focusedElem:e,selectionRange:s.hasSelectionCapabilities(e)?s.getSelection(e):null}},restoreSelection:function(e){var t=u(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(s.hasSelectionCapabilities(n)&&s.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElemen
if(_)throw new Error("Reducers may not dispatch actions.");try{_=!0,m=v(m,e)}finally{_=!1}for(var t=y=g,n=0;n<t.length;n++)t[n]();return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");v=e,f({type:l.INIT})}function p(){var e,t=s;return e={subscribe:function(e){function n(){e.next&&e.next(a())}if("object"!==("undefined"==typeof e?"undefined":i(e)))throw new TypeError("Expected the observer to be an object.");n();var r=t(n);return{unsubscribe:r}}},e[c["default"]]=function(){return this},e}var h;if("function"==typeof t&&"undefined"==typeof n&&(n=t,t=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var v=e,m=t,y=[],g=y,_=!1;return f({type:l.INIT}),h={dispatch:f,subscribe:s,getState:a,replaceReducer:d},h[c["default"]]=p,h}var 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};t.__esModule=!0,t.ActionTypes=void 0,t["default"]=o;var a=n(168),u=r(a),s=n(1329),c=r(s),l=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}t.__esModule=!0,t["default"]=n},function(e,t){"use strict";function n(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)}function r(e){return"string"==typeof e&&!!e.trim()}function o(e,t){var n=e.split(";").filter(r),o=n.shift().split("="),i=o.shift(),a=o.join("="),u={name:i,value:t.decodeValues?decodeURIComponent(a):a};return n.forEach(function(e){var t=e.split("="),n=t.shift().trimLeft().toLowerCase(),r=t.join("=");"expires"==n?u.expires=new Date(r):"max-age"==n?u.maxAge=parseInt(r,10):"secure"==n?u.secure=!0:"httponly"==n?u.httpOnly=!0:u[n]=r}),u}function i(e,t){if(!e)return[];e.headers&&(e=e.headers["set-cookie"]),Array.isArray(e)||(e=[e]);var i=n({},a);return t=t?n(i,t):i,e.filter(r).map(function(e){return o(e,t)})}var a={decodeValues:!0};e.exports=i,e.exports.parse=i},function(e,t){function n(e){return null!=e&&"object"==("undefined"==typeof e?"undefined":r(e))}var r="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.exports=n},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var o=n(262),i=n.n(o),a=n(403);n.d(t,"a",function(){return l}),n.d(t,"b",function(){return f}),n.d(t,"c",function(){return d});var u=this,s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e,t){var n=void 0,r=void 0;return e instanceof a.b?(n=e.lastQuery,r=e.lastResponse.results):(n=e.query,r=e.results),t(n,r)},l=function(e){return c(e,function(e,t){var n=e.limit||25;return t.length>=n?i()(t).paginationId:null})},f=function(e){return c(e,function(e,t){return e.after?t[0].paginationId:null})},d=function(){var e=r(regeneratorRuntime.mark(function t(e,n,r){var o,i,a,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=s({},r),t.next=3,e(n,o);case 3:i=t.sent,a=c(i);case 5:if(!a){t.next=15;break}return o=s({},o,{after:a}),t.t0=i,t.next=10,e(n,o);case 10:t.t1=t.sent,i=t.t0.appendResponse.call(t.t0,t.t1),a=l(i),t.next=5;break;case 15:return t.abrupt("return",i);case 16:case"end":return t.stop()}},t,u)}));return function(t,n,r){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";var r=n
for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=function(e){function t(){var e,n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.frame=null,a=n,o(i,a)}return i(t,e),b(t,[{key:"defineSlot",value:function(){var e=this.props,t=e.id,r=e.slot,o=e.properties,i=e.sizes,a=e.shouldCollapse,u=e.a9,s=e.whitelistStatus,c=e.wls,l=_({},o,{whitelist_status:s,wls:c});this.destroySlot(),n.i(v.a)(this.frame,{id:t,slot:r,properties:l,shouldCollapse:a,sizes:i,a9:u})}},{key:"destroySlot",value:function(){n.i(v.b)(this.props.id)}},{key:"componentDidMount",value:function(){this.defineSlot()}},{key:"componentDidUpdate",value:function(){this.defineSlot()}},{key:"componentWillUnmount",value:function(){this.destroySlot()}},{key:"shouldComponentUpdate",value:function(e){return e.slot!==this.props.slot||!f()(e.properties,this.props.properties)}},{key:"render",value:function(){var e=this,t=this.props,r=t.id,o=t.slot,i=t.hideAds,a=t.withBottomSpacing;return!o||i?null:g("div",{"data-slot":o,className:n.i(d.a)("BannerAd",{BannerAd__320x50:!this.props.sizes.includes("fluid"),BannerAd__fluid:this.props.sizes.includes("fluid"),BannerAd__bottom:a})},void 0,u.a.createElement("div",{ref:function(t){e.frame=t},id:r}))}}]),t}(u.a.Component);E.defaultProps={sizes:[[320,50]]},E.propTypes={id:a.PropTypes.string,properties:a.PropTypes.object,shouldCollapse:a.PropTypes.bool,sizes:a.PropTypes.array,slot:a.PropTypes.string,a9:a.PropTypes.bool};var T=function(e){var t=n.i(p.a)(e)||"";return e.subreddits[t.toLowerCase()]},w=n.i(c.createStructuredSelector)({hideAds:function(e){return e.preferences.hideAds},theme:function(e){return e.theme},compact:function(e){return e.compact},properties:function(e,t){var r=e.platform.currentPage;return r?n.i(h.a)(t.placement,e.user,T(e,t),e.theme,e.compact):{}},slot:function(e,t){var r=n.i(p.a)(e);return n.i(v.c)(t.listingName,r)}});t.a=n.i(s.connect)(w)(n.i(m.a)(E))},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),i=o("g",{},void 0,o("path",{d:"M18.5 13.17a1.62 1.62 0 0 1-2.35 0c-.31-.3-.48-.73-.48-1.17 0-.44.17-.87.49-1.17a1.7 1.7 0 0 1 2.35 0c.32.3.49.73.49 1.17 0 .44-.17.87-.5 1.17m-4.86-.85c-.03.1-.05.21-.1.32l-.15.28c-.07.1-.14.19-.22.25a1.62 1.62 0 0 1-2.35 0 1.85 1.85 0 0 1-.36-.53c-.05-.1-.07-.21-.1-.32-.01-.1-.03-.21-.03-.32 0-.44.18-.87.5-1.17a1.7 1.7 0 0 1 2.34 0c.32.3.5.73.5 1.17l-.03.32m-5.33 0c-.03.1-.06.21-.11.32-.04.1-.1.2-.15.28-.06.1-.13.19-.21.27a1.67 1.67 0 0 1-2.35 0c-.08-.08-.14-.18-.21-.27a1.85 1.85 0 0 1-.25-.6 1.62 1.62 0 0 1 .47-1.5 1.7 1.7 0 0 1 2.34 0 1.85 1.85 0 0 1 .47.85l.02.33-.02.32M12 0A12.01 12.01 0 0 0 1.99 18.6L.7 22.46a.67.67 0 0 0 .84.84L5.4 22A12.01 12.01 0 0 0 24 12c0-6.62-5.38-12-12-12"}),o("path",{d:"M18.5 13.17a1.62 1.62 0 0 1-2.35 0c-.31-.3-.48-.73-.48-1.17 0-.44.17-.87.49-1.17a1.7 1.7 0 0 1 2.35 0c.32.3.49.73.49 1.17 0 .44-.17.87-.5 1.17",fill:"white"}),o("path",{d:"M13.64 12.32c-.03.1-.05.21-.1.32l-.15.28c-.07.1-.14.19-.22.25a1.62 1.62 0 0 1-2.35 0 1.85 1.85 0 0 1-.36-.53c-.05-.1-.07-.21-.1-.32-.01-.1-.03-.21-.03-.32 0-.44.18-.87.5-1.17a1.7 1.7 0 0 1 2.34 0c.32.3.5.73.5 1.17l-.03.32",fill:"white"}),o("path",{d:"M8.3 12.32a1.85 1.85 0 0 1-.25.6c-.06.1-.13.19-.21.27a1.67 1.67 0 0 1-2.35 0c-.08-.08-.14-.18-.2
return n.state={expanded:e.autoExpanded},n._onClick=n._onClick.bind(n),n}return i(t,e),m(t,[{key:"_onClick",value:function(){var e=!this.state.expanded;this.setState({expanded:e})}},{key:"render",value:function(){var e=this.props,t=this.state.expanded,n=void 0;t&&(n=g("ul",{className:"OverlayMenu-ul list-unstyled"},void 0,e.children));var r=void 0;return r=e.subtext?g("span",{className:"OverlayMenu-row-text with-subtext"},void 0,e.text,w,g("span",{className:"OverlayMenu-row-text subtext"},void 0,e.subtext)):g("span",{className:"OverlayMenu-row-text"},void 0,e.text),g("li",{className:"OverlayMenu-row top-border"},void 0,g("button",{type:"button",className:"OverlayMenu-row-button",onClick:this._onClick},void 0,a(e),r,g("span",{className:"OverlayMenu-row-right-item"},void 0,g("span",{className:"icon "+(t?"icon-nav-arrowup":"icon-nav-arrowdown")}))),n)}}]),t}(f.a.Component);S.propTypes=y({},E,{subtext:b.string,autoExpanded:b.bool}),S.defaultProps={autoExpanded:!1}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){var t=e.post,r=e.isDomainExternal,o=e.compact,u=e.isThumbnail,c=e.interceptListingClick,l=e.renderMediaFullbleed,f=e.showLinksInNewTab,d=n.i(G.a)(n.i(j.a)(t.cleanUrl)),p=new z(d,(!0)),h=s(t,p,e),v=a(e);return h||v||r&&!o?K("div",{className:"PostContent "+(u?"size-compact":"size-default"),onClick:function(e){return c(e,q.u.CONTENT)}},void 0,i(h,u,r,n.i(G.b)(t.domain),d,l,f,t.outboundLink,t.promoted),v):null}function i(e,t,n,r,o,i,a,u,s){return t||!n||i?e:K("div",{className:"PostContent__media-wrapper"},void 0,e,!s&&E(r,o,a,u,s))}function a(e){var t=e.single,r=e.editing,o=e.post;if(t){if(r)return u(o.selfTextMD,e);if(o.selfTextHTML){var i=n.i(j.a)(o.selfTextHTML);return K(B.a,{},void 0,K("div",{className:"PostContent__selftext",dangerouslySetInnerHTML:{__html:i}}))}}}function u(e,t){var n=t.editPending,r=t.onToggleEdit,o=t.onUpdateSelftext;return K(U.a,{startingText:e,editPending:n,onCancelEdit:r,onSaveEdit:o})}function s(e,t,r){var o=r.isPlaying,i=r.isThumbnail,a=r.single,u=r.width,s=r.showNSFW,f=r.onTapExpand,p=r.interceptListingClick,h=r.togglePlaying,v=r.showSpoilers,m=e.media?e.media.oembed:null;if(i&&!e.preview&&!m)return null;var y=n.i(G.c)(e),g=e.spoiler,_=S(y,g,s,v),b=I(e),E=C(e),T=void 0;if((e.preview||m)&&(T=n.i(W.a)(i,e.preview,e.thumbnail,m,u,_)),T&&T.url){var O=n.i(F.a)(T.url);O&&O.poster&&(T.url=O.poster)}var P=void 0;if(P=e.promoted&&!e.isSelf?null:function(e){if(!p(e,q.u.CONTENT)){e.preventDefault();var t="thumbnail";f(t),b!==J.NOT_PLAYABLE&&h()}},i&&T&&T.url)return d(T,E,t,P,_,b,r);if(b!==J.NOT_PLAYABLE&&T&&w(m,E,o)){var R=function(e){p(e,q.u.CONTENT)||(e.preventDefault(),(y||g)&&r.toggleShowNSFW(),h())};return c(T,E,t,R,_,b,r)}if(m)return l(e,E,m,a);if(T||e.media&&e.media.reddit_video){var A=y||g?function(e){p(e,q.u.CONTENT)||(e.preventDefault(),r.toggleShowNSFW())}:null;return c(T,E,t,A,_,b,r)}}function c(e,t,r,o,i,a,u){var s=u.single,c=u.isPlaying,l=u.post;if(c||!i){if(l.media&&l.media.reddit_video){var f=l.media.reddit_video,p=f.width,h=f.height,v=O(s,p,h),g={dash:l.media.reddit_video.dash_url,hls:l.media.reddit_video.hls_url,scrubberThumbSource:l.media.reddit_video.scrubber_media_url,isGif:l.media.reddit_video.is_gif,width:p,height:h};return y(g,e,v,u)}var _=n.i(F.a)(t,e.url);if(c&&_){var b=e.width,E=e.height,T=O(s,b,E);if(_.iframe)return m(_.iframe,T);var w={webm:_.webm,mp4:_.mp4,width:e.width,height:e.height};return y(w,_.poster,T,u)}}return d(e,t,r,o,i,a,u)}function l(e,t,n,r){var o=O(r,n.width,n.height);switch(n.type){case"image":return m(t,o);case"video":return _(e.expandedContent,o);case"rich":return f(n.html,o)}}function f(e,t){var n=e.match(/src="([^"]*)/);if(n&&n[1]){var r=n[1].replace("&amp;","&");return m(r,t)}}function d(e,t,n,r,o,i,a){var u=a.isThumbnail,s=a.single,c=a.showLinksInNewTab,l=a.post,f=a.forceHTTPS,d=a.isPlaying,p=void 0;i&&!o&&(p=b(i,u));var m=void 0;o&&(m=T(u,l));var y=c?"_blank":null;if((null===e||void 0===e)&&l.media&&l.media.reddit_video)return v(null,t,n,g,r,u,p,m,y,l.outboundL
"upvoted m-animated":1===t}),l=n.i(s.a)("VotingBox__downvote icon icon-downvote",{"downvoted m-animated":t===-1}),d=n.i(s.a)("VotingBox__score",{upvoted:1===t,downvoted:t===-1}),p=1===t?0:1,h=t===-1?0:-1;return f("div",{className:"VotingBox"},void 0,f("div",{className:u,onClick:function(e){a(e)||i(p)}}),f("div",{className:d,onClick:function(e){return a(e)}},void 0,o?"●":n.i(c.a)(r)),e.hideDownvote?null:f("div",{className:l,onClick:function(e){a(e)||i(h)}}))}var o=n(1710),i=(n.n(o),n(0)),a=n.n(i),u=n(3),s=(n.n(u),n(30)),c=n(438),l=n(217),f=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=a.a.PropTypes;r.propTypes={thingId:d.string.isRequired,score:d.number.isRequired,voteDirection:d.number.isRequired,hideDownvote:d.bool.isRequired,scoreHidden:d.bool,interceptVote:d.func},r.defaultProps={scoreHidden:!1,interceptVote:function(){return!1}};var p=function(e,t){var n=t.thingId;return{onVote:function(t){return e(l.a(n,t))}}};t.a=n.i(u.connect)(null,p)(r)},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var o=n(3),i=(n.n(o),n(1451)),a=n(89),u=n(5),s=n(43),c=n(57);n.d(t,"a",function(){return p}),n.d(t,"b",function(){return m});var l=this,f=function(e){var t=e.xpromo.listingClick,r=t.active,o=t.clickInfo,i=void 0;if(o){var a=o.postId,u=o.listingClickType;i=n.i(c.k)(e,a,u)}else i=n.i(c.i)(e);return{active:r,link:i}},d={onDismiss:function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(n.i(s.d)()),e(n.i(s.e)()),e(n.i(s.f)());case 3:case"end":return t.stop()}},t,l)}));return function(t){return e.apply(this,arguments)}}()}},p=n.i(o.connect)(f,d)(i.a),h=function(e){var t=n.i(a.a)(e),r=n.i(c.j)(e,e.platform.currentPage.url,{tags:[u.t[u.c.NATIVE]],utm_content:u.t[u.c.NATIVE]}),o=void 0;return o=t===u.c.POST?"this post":n.i(a.c)(e)?"Reddit":"this community",{text:o,link:r,active:!0}},v={onDismiss:function(){return function(){var e=r(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(n.i(s.d)()),e(n.i(s.e)()),e(n.i(s.f)());case 3:case"end":return t.stop()}},t,l)}));return function(t){return e.apply(this,arguments)}}()}},m=n.i(o.connect)(h,v)(i.a)},function(e,t,n){"use strict";function r(e){return e.multi?I.MULTIREDDIT:n.i(S.a)(e.subredditName)?I.FAKE_SUBREDDIT:I.SUBREDDIT}function o(e,t){return P(m.a,{rightLink:e,showWithoutUser:!0},void 0,P(v.a,{sortOptions:t?[b.a.BEST].concat(R):R}))}var i=n(0),a=(n.n(i),n(3)),u=(n.n(a),n(4)),s=(n.n(u),n(279)),c=n(1393),l=n(42),f=n(1445),d=n(420),p=n(655),h=n(661),v=n(422),m=n(666),y=n(1447),g=n(671),_=n(424),b=n(76),E=n(286),T=n(183),w=n(89),S=n(56),O=n(7);n.d(t,"a",function(){return k});var P=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),R=[b.a.HOT,b.a.TOP,b.a.NEW,b.a.CONTROVERSIAL],I={FAKE_SUBREDDIT:"FAKE_SUBREDDIT",MULTIREDDIT:"MULTIREDDIT",SUBREDDIT:"SUBREDDIT"},A=n.i(u.createSelector)(function(e,t){return t},function(e){return e.postsLists},function(e){return e.subreddits},function(e){return e.preferences},fu
return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(u,s){"object"===a(t)&&"object"===a(e)?e.exports=s(n(190),n(90),n(453)):(o=[n(190),n(90),n(453)],r=s,i="function"==typeof r?r.apply(t,o):r,!(void 0!==i&&(e.exports=i)))}(this,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(4),a=n(5),u=n(6),s={tooltip:{id:null,target:null},modal:{id:null},savedScrollPositions:{}};t["default"]=function(){var e=arguments.length<=0||void 0===arguments[0]?s:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];switch(t.type){case i.TOGGLE_TOOLTIP:var n=t.payload,c=n.tooltipId,l=n.target;return c&&l?o({},e,{tooltip:{target:l,id:c}}):o({},e,{tooltip:{target:null,id:null}});case a.TOGGLE_MODAL:var f=t.payload.id;return f?o({},e,{modal:{id:f}}):o({},e,{modal:{id:null}});case u.SAVE_SCROLL_POSITION:var d=t.payload,p=d.id,h=d.scrollPosition;return o({},e,{savedScrollPositions:o({},e.savedScrollPositions,r({},p,h))});default:return e}}},,,,function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n}])})}).call(t,n(64)(e))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":h(t))&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":h(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)}function a(e,t){e.forEach(function(e){var n=d.a.findElement(e,t);n&&n.handleChange(e)})}var u=n(0),s=n.n(u),c=n(376),l=(n.n(c),n(1223)),f=(n.n(l),n(516)),d=(n.n(f),n(700)),p=n(298),h="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},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=["root","rootMargin","threshold"],y=Object.prototype,g=function(e){function t(){var n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(s))),i.handleChange=function(e){i.props.onChange(e),i.props.onlyOnce&&e.isIntersecting&&i.unobserve()},i.handleNode=function(e){"function"==typeof i.props.children.ref&&i.props.children.ref(e),i.currentTarget&&e&&i.currentTarget!==e&&(i.unobserve(),i.shouldResetObserver=!0),i.target=e},a=n,o(i,a)}return i(t,e),t.prototype.observe=function(){this.target=n.i(p.c)(this.target)?this.target:n.i(c.findDOMNode)(this.target),this.observer=d.a.create(a,this.options),d.a.observe(this)},t.prototype.unobserve=function(){d.a.unobserve(this)},t.prototype.reobserve=function(){this.unobserve(),this.props.disabled||this.observe()},t.prototype.componentDidMount=function(){this.props.disabled||this.observe()},t.prototype.componentWillUnmount=function(){this.unobserve()},t.prototype.componentDidUpdate=function(){this.shouldResetObserver&&this.reobserve()},t.prototype.componentWillUpdate=function(e){var t=th
}})},function(e,t,n){"use strict";n(52)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(52)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(52)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";var r=n(1),o=n(317)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(1),o=n(33),i=n(318),a="endsWith",u=""[a];r(r.P+r.F*n(305)(a),"String",{endsWith:function(e){var t=i(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),s=void 0===n?r:Math.min(o(n),r),c=String(e);return u?u.call(t,c,s):t.slice(s-c.length,s)===c}})},function(e,t,n){"use strict";n(52)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(52)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(52)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){var r=n(1),o=n(131),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(((t-=65536)>>10)+55296,t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(1),o=n(318),i="includes";r(r.P+r.F*n(305)(i),"String",{includes:function(e){return!!~o(this,e,i).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n(52)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";var r=n(317)(!0);n(310)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";n(52)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){var r=n(1),o=n(61),i=n(33);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],u=0;n>u;)a.push(String(t[u++])),u<r&&a.push(String(arguments[u]));return a.join("")}})},function(e,t,n){var r=n(1);r(r.P,"String",{repeat:n(319)})},function(e,t,n){"use strict";n(52)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";var r=n(1),o=n(33),i=n(318),a="startsWith",u=""[a];r(r.P+r.F*n(305)(a),"String",{startsWith:function(e){var t=i(this,e,a),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(52)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(52)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(52)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){"use strict";n(154)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var r="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},o=n(15),i=n(49),a=n(31),u=n(1),s=n(51),c=n(106).KEY,l=n(18),f=n(233),d=n(153),p=n(132),h=n(28),v=n(484),m=n(324),y=n(708),g=n(226),_=n(13),b=n(21),E=n(61),T=n(82),w=n(128),S=n(125),O=n(474),P=n(59),R=n(32),I=n(127),A=P.f,C=R.f,x=O.f,N=o.Symbol,M=o.JSON,k=M&&M.stringify,D="prototype",L=h("_hidden"),j=h("toPrimitive"),F={}.propertyIsEnumerable,U=f("symbol-registry"),B=f("symbols"),H=f("op-symbols"),q=Object[D],V="function"==typeof N,G=o.QObject,W=!G||!G[D]||!G[D].findChild,K=a&&l(function(){return 7!=S(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=A(q,t);r&&delete q[t],C(e,t,n),r&&e!==q&&C(q,t,r)}:C,Y=function(e){var t=B[e]=S(N[D]);return t._k=e,t},z=V&&"symbol"==r(N.iterator)?function(e){
d=F.getIndexForAdaptation(l,i,e.index),f=u(B[_][d]),t===a["default"].EMBEDDED_TEXT){var E=f.accessibility.length;for(h=0;h<E;h++)if(f){var T=f.accessibility[h];if(0===T.indexOf("cea-608:")){var w=T.substring(8),S=w.split(";");if("CC"===S[0].substring(0,2))for(h=0;h<S.length;h++)f||(f=u.call(this,B[_][d])),c(f,S[h].substring(0,3),S[h].substring(4)),s.push(f),f=null;else for(h=0;h<S.length;h++)f||(f=u.call(this,B[_][d])),c(f,"CC"+(h+1),S[h]),s.push(f),f=null}else 0===T.indexOf("cea-608")&&(c(f,a["default"].CC1,"eng"),s.push(f),f=null)}}f&&t!==a["default"].EMBEDDED_TEXT&&s.push(f)}return s}function g(){if(!F||!F.hasOwnProperty("getMpd")||!F.hasOwnProperty("getRegularPeriods"))throw new Error("setConfig function has to be called previously")}function _(e){if(!e)return null;g();var t=F.getMpd(e);U=F.getRegularPeriods(t),B={}}function E(e){var t=[],n=U;if(e){g();var r=F.getMpd(e);n=F.getRegularPeriods(r)}for(var o=0;o<n.length;o++)t.push(f(n[o]));return t}function T(e){if(!(e&&e.hasOwnProperty("getRepresentationController")&&e.hasOwnProperty("getIndexHandler")&&e.hasOwnProperty("getMediaInfo")&&e.hasOwnProperty("getType")&&e.hasOwnProperty("getStreamInfo")))throw new Error("streamProcessor parameter is missing or malformed!")}function w(e){if(!e||!e.hasOwnProperty("getRepresentationForQuality")||!e.hasOwnProperty("getCurrentRepresentation"))throw new Error("representationController parameter is missing or malformed!")}function S(e){var t=null!==e&&!isNaN(e)&&e%1===0;if(!t)throw new Error("quality argument is not an integer")}function O(e,t){var n=void 0,r=void 0,o=void 0;return T(e),S(t),n=e.getRepresentationController(),o=e.getIndexHandler(),r=n?n.getRepresentationForQuality(t):null,o?o.getInitRequest(r):null}function P(e,t){var r=void 0,o=void 0,i=void 0;return T(e),r=e.getRepresentationController(),o=n(t,r),i=e.getIndexHandler(),i?i.getNextSegmentRequest(o):null}function R(e,t,r,o){var i=void 0,a=void 0,u=void 0;return T(e),i=e.getRepresentationController(),a=n(t,i),u=e.getIndexHandler(),u?u.getSegmentRequestForTime(a,r,o):null}function I(e,t,r){var o=void 0,i=void 0,a=void 0;return T(e),o=e.getRepresentationController(),i=n(t,o),a=e.getIndexHandler(),a?a.generateSegmentRequestForTime(i,r):null}function A(e){T(e);var t=e.getIndexHandler();return t?t.getCurrentTime():NaN}function C(e,t){T(e);var n=e.getIndexHandler();n&&n.setCurrentTime(t)}function x(e){T(e);var t=o(e.getStreamInfo(),U),n=e.getMediaInfo(),i=r(n),a=e.getType(),u=void 0,s=void 0;u=n?n.id:null,U.length>0&&(s=u?F.getAdaptationForId(u,U[0].mpd.manifest,t.index):F.getAdaptationForIndex(n.index,U[0].mpd.manifest,t.index),e.getRepresentationController().updateData(s,i,a))}function N(e,t){w(e),S(t);var n=e.getRepresentationForQuality(t);return n?i(n):null}function M(e){w(e);var t=e.getCurrentRepresentation();return t?i(t):null}function k(e,t,n){if(!e||!t)return null;var r=new m["default"],o=e.scheme_id_uri,i=e.value,a=e.timescale,u=e.presentation_time_delta,s=e.event_duration,c=e.id,l=e.message_data,f=n*a+u;return t[o]?(r.eventStream=t[o],r.eventStream.value=i,r.eventStream.timescale=a,r.duration=s,r.id=c,r.presentationTime=f,r.messageData=l,r.presentationTimeDelta=u,r):null}function D(e,t){var i=[];if(0===U.length)return i;var a=U[0].mpd.manifest;return e instanceof d["default"]?i=F.getEventsForPeriod(o(e,U)):e instanceof l["default"]?i=F.getEventStreamForAdaptationSet(a,r(e)):e instanceof s["default"]&&(i=F.getEventStreamForRepresentation(a,n(e,t.getRepresentationController()))),i}function L(){U=[],B={}}var j=void 0,F=void 0,U=void 0,B=void 0;return j={convertDataToRepresentationInfo:i,getDataForMedia:r,getStreamsInfo:E,getMediaInfoForType:v,getAllMediaInfoForType:y,getCurrentRepresentationInfo:M,getRepresentationInfoForQuality:N,updateData:x,getInitRequest:O,getNextFragmentRequest:P,getFragmentRequestForTime:R,generateFragmentRequestForTime:I,getIndexHandlerTime:A,setIndexHandlerTime:C,getEventsFor:D,getEvent:k,setConfig:t,updatePeriods:_,reset:L},e(),j}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(1025),s=r(u),c=n(1023),l=r(c),f=n(1026)
return null}function A(e,t,n){var r=t&&t.Period_asArray&&de(n)&&t.Period_asArray[n]?t.Period_asArray[n].AdaptationSet_asArray:null;return r&&de(e)?r[e]:null}function C(e,t,n){var r=t&&t.Period_asArray&&de(n)&&t.Period_asArray[n]?t.Period_asArray[n].AdaptationSet_asArray:[],o=r.length;if(e)for(var i=0;i<o;i++){var a=(0,P["default"])(ae).getInstance();if(a.areEqual(r[i],e))return i}return-1}function x(e,n,r){var o=e&&e.Period_asArray&&de(n)&&e.Period_asArray[n]?e.Period_asArray[n].AdaptationSet_asArray:[],i=void 0,a=void 0,u=[];for(i=0,a=o.length;i<a;i++)t(o[i],r)&&u.push(O(o[i]));return u}function N(e,t,n,r){var o=x(e,t,n);if(!o||0===o.length)return null;if(o.length>1&&r){for(var i=se.getCurrentTrackFor(n,r),a=le.getAllMediaInfoForType(r,n),u=0,s=o.length;u<s;u++)if(i&&se.isTracksEqual(i,a[u]))return o[u];for(var u=0,s=o.length;u<s;u++)if(E(o[u]))return o[u]}return o[0]}function M(e,t){if(e&&e.Representation_asArray&&e.Representation_asArray.length>0){var n=de(t)&&t>=0&&t<e.Representation_asArray.length?e.Representation_asArray[t]:e.Representation_asArray[0];return n.mimeType+';codecs="'+n.codecs+'"'}return null}function k(e){return e&&e.Representation_asArray&&e.Representation_asArray.length>0?e.Representation_asArray[0].mimeType:null}function D(e){return e&&e.hasOwnProperty(s["default"].CENC_DEFAULT_KID)?e[s["default"].CENC_DEFAULT_KID]:null}function L(e){return e&&e.hasOwnProperty(s["default"].CONTENTPROTECTION_ASARRAY)&&0!==e.ContentProtection_asArray.length?e.ContentProtection_asArray:null}function j(e){var t=!1;return e&&e.hasOwnProperty("type")&&(t=e.type===s["default"].DYNAMIC),t}function F(e,t){var n=!1;return e&&e.profiles&&e.profiles.length>0&&(n=e.profiles.indexOf(t)!==-1),n}function U(e){return F(e,fe)}function B(e){var t=void 0;return t=e&&e.hasOwnProperty(s["default"].MEDIA_PRESENTATION_DURATION)?e.mediaPresentationDuration:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE}function H(e){return e&&e.bandwidth?e.bandwidth:NaN}function q(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=NaN;return e&&e.hasOwnProperty(s["default"].MINIMUM_UPDATE_PERIOD)&&(n=e.minimumUpdatePeriod),isNaN(n)?n:Math.max(n-t,1)}function V(e){return e&&e.Representation_asArray&&e.Representation_asArray.length?e.Representation_asArray.length:0}function G(e){if(!e||!e.Representation_asArray||!e.Representation_asArray.length)return null;var t=O(e),n=t.Representation_asArray,r=n.length,o=[],i=0;for(i=0;i<r;i++)o.push({bandwidth:n[i].bandwidth,width:n[i].width||0,height:n[i].height||0,scanType:n[i].scanType||null});return o}function W(e,t){return t&&t.Representation_asArray&&t.Representation_asArray.length>0&&de(e)?t.Representation_asArray[e]:null}function K(e){var t=[],n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,u=void 0,f=void 0;if(e&&e.period&&de(e.period.index)){var d=e.period.mpd.manifest.Period_asArray[e.period.index];d&&d.AdaptationSet_asArray&&de(e.index)&&(i=O(d.AdaptationSet_asArray[e.index]))}for(u=0;i&&u<i.Representation_asArray.length;u++)a=i.Representation_asArray[u],n=new l["default"],n.index=u,n.adaptation=e,a.hasOwnProperty(s["default"].ID)&&(n.id=a.id),a.hasOwnProperty(s["default"].CODECS)&&(n.codecs=a.codecs),a.hasOwnProperty(s["default"].CODEC_PRIVATE_DATA)&&(n.codecPrivateData=a.codecPrivateData),a.hasOwnProperty(s["default"].BANDWITH)&&(n.bandwidth=a.bandwidth),a.hasOwnProperty(s["default"].WIDTH)&&(n.width=a.width),a.hasOwnProperty(s["default"].HEIGHT)&&(n.height=a.height),a.hasOwnProperty(s["default"].SCAN_TYPE)&&(n.scanType=a.scanType),a.hasOwnProperty(s["default"].MAX_PLAYOUT_RATE)&&(n.maxPlayoutRate=a.maxPlayoutRate),a.hasOwnProperty(s["default"].SEGMENT_BASE)?(o=a.SegmentBase,n.segmentInfoType=s["default"].SEGMENT_BASE):a.hasOwnProperty(s["default"].SEGMENT_LIST)?(o=a.SegmentList,o.hasOwnProperty(s["default"].SEGMENT_TIMELINE)?(n.segmentInfoType=s["default"].SEGMENT_TIMELINE,f=o.SegmentTimeline.S_asArray[o.SegmentTimeline.S_asArray.length-1],(!f.hasOwnProperty("r")||f.r>=0)&&(n.useCalculatedLiveEdgeTime=!0)):(n.segmentInfoType=s["default"].SEGMENT_LIST,n.useCalculatedLiveEdgeTime=!0)):a.hasOwnPrope
f=(0,u.replaceTokenForTemplate)(f,"Number",d.replacementNumber),f=(0,u.replaceTokenForTemplate)(f,"Time",d.replacementTime),d.media=f,l.push(d),d=null;return isNaN(s)?e.availableSegmentsNumber=1:e.availableSegmentsNumber=Math.ceil((c.end-c.start)/s),l}var r=e.timelineConverter,o=void 0;return o={getSegments:n}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i),u=n(238);o.__dashjs_factory_name="TemplateSegmentsGetter";var s=a["default"].getClassFactory(o);t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){b(),w.on(s["default"].TIME_SYNCHRONIZATION_COMPLETED,g,this)}function t(){return P}function n(e){P=e}function r(){return O}function o(e){O=e}function i(){return R}function u(e){R=e}function c(e,t,n,r){var o=NaN;return o=r?n&&t.timeShiftBufferDepth!=Number.POSITIVE_INFINITY?new Date(t.availabilityStartTime.getTime()+1e3*(e+t.timeShiftBufferDepth)):t.availabilityEndTime:n?new Date(t.availabilityStartTime.getTime()+1e3*(e-O)):t.availabilityStartTime}function l(e,t,n){return c.call(this,e,t,n)}function f(e,t,n){return c.call(this,e,t,n,!0)}function d(e,t){return(e.getTime()-t.mpd.availabilityStartTime.getTime()+1e3*O)/1e3}function p(e,t){var n=t.adaptation.period.start,r=t.presentationTimeOffset;return e+(n-r)}function h(e,t){var n=t.adaptation.period.start,r=t.presentationTimeOffset;return e-n+r}function v(e,t){var n=void 0,r=void 0,o=void 0;return t&&(n=e.representation.adaptation.period.mpd.suggestedPresentationDelay,r=e.presentationStartTime+n,o=new Date(e.availabilityStartTime.getTime()+1e3*r)),o}function m(e,t){var n=e.adaptation.period,r={start:n.start,end:n.start+n.duration};if(!t)return r;if(!P&&e.segmentAvailabilityRange)return e.segmentAvailabilityRange;var o=e.segmentDuration||(e.segments&&e.segments.length?e.segments[e.segments.length-1].duration:0),i=d(new Date,n),a=n.start+n.duration;return r.start=Math.max(i-n.mpd.timeShiftBufferDepth,n.start),r.end=i>=a&&i-o<a?a-o:i-o,r}function y(e,t){var n=e.adaptation.period.start;return t-n}function g(e){P||void 0!==e.offset&&(o(e.offset/1e3),P=!0)}function _(e){var t=e.presentationTimeOffset,n=e.adaptation.period.start;return n-t}function b(){O=0,P=!1,R=NaN}function E(){w.off(s["default"].TIME_SYNCHRONIZATION_COMPLETED,g,this),b()}var T=this.context,w=(0,a["default"])(T).getInstance(),S=void 0,O=void 0,P=void 0,R=void 0;return S={initialize:e,isTimeSyncCompleted:t,setTimeSyncCompleted:n,getClientTimeOffset:r,setClientTimeOffset:o,getExpectedLiveEdge:i,setExpectedLiveEdge:u,calcAvailabilityStartTimeFromPresentationTime:l,calcAvailabilityEndTimeFromPresentationTime:f,calcPresentationTimeFromWallTime:d,calcPresentationTimeFromMediaTime:p,calcPeriodRelativeTimeFromMpdRelativeTime:y,calcMediaTimeFromPresentationTime:h,calcSegmentAvailabilityRange:m,calcWallTimeForSegment:v,calcMSETimeOffset:_,reset:E}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=r(i),u=n(14),s=r(u),c=n(2),l=r(c);o.__dashjs_factory_name="TimelineConverter",t["default"]=l["default"].getSingletonFactory(o),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){function n(){if(!(o&&o.hasOwnProperty("calcMediaTimeFromPresentationTime")&&o.hasOwnProperty("calcSegmentAvailabilityRange")&&o.hasOwnProperty("calcMediaTimeFromPresentationTime")))throw new Error("Missing config parameter(s)")}function r(e,r,i,a){if(n(),!e)throw new Error("no representation");void 0===r&&(r=null);var s=e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentTemplate||e.adaptation.period.mpd.manifest.Period_asArray[e.adaptation.period.index].AdaptationSet_asArray[e.adaptation.index].Representation_asArray[e.index].SegmentList,c=s.SegmentTimeline,l=s.SegmentURL_asArray,f=e.availableSegmentsNumber>0,d=void 0;d=a?a:i>-1||null!==r?10:1/0;var p=0,h=0,v=-1,m=[],y=null,g=void 0,_=void 0,b=void 0,E=void 0,T=void 0,w=void 0,S=void 0,O=void 0,P=void 0,R=vo
r.start=t.startTime,r.duration=t.duration,r.end=r.start+r.duration,r.bytes=e,r.index=t.index,r.quality=t.quality,r.representationId=t.representationId,r}function l(e){if(S[e.request.mediaType]===e.sender){var t=e.request,n=e.response,o=r(t),i=t.mediaInfo.streamInfo;if(e.error&&(e.request.mediaType!==a["default"].AUDIO&&e.request.mediaType!==a["default"].VIDEO||m.trigger(_["default"].SERVICE_LOCATION_BLACKLIST_ADD,{entry:e.request.serviceLocation})),!n||!i)return void h("No "+t.mediaType+" bytes to push or stream is inactive.");var u=s(n,t,i.id);m.trigger(o?_["default"].INIT_FRAGMENT_LOADED:_["default"].MEDIA_FRAGMENT_LOADED,{chunk:u,fragmentModel:e.sender})}}e=e||{};var d=this.context,h=(0,w["default"])(d).getInstance().log,m=(0,y["default"])(d).getInstance(),g=e.errHandler,b=e.mediaPlayerModel,E=e.metricsModel,T=void 0,S=void 0;return T={getModel:n,isInitializationRequest:r,reset:i},t(),T}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(45),s=n(1019),c=r(s),l=n(241),f=r(l),d=n(935),p=r(d),h=n(243),v=r(h),m=n(12),y=r(m),g=n(14),_=r(g),b=n(2),E=r(b),T=n(19),w=r(T);o.__dashjs_factory_name="FragmentController",t["default"]=E["default"].getClassFactory(o),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){var e="WebKitMediaSource"in window,t="MediaSource"in window;return t?new MediaSource:e?new WebKitMediaSource:null}function t(e,t){var n=window.URL.createObjectURL(e);return t.setSource(n),n}function n(e){e.setSource(null)}function r(e,t){return e.duration!=t&&(e.duration=t),e.duration}function o(e,t,n){"function"==typeof e.setLiveSeekableRange&&"function"==typeof e.clearLiveSeekableRange&&"open"===e.readyState&&t>=0&&t<n&&(e.clearLiveSeekableRange(),e.setLiveSeekableRange(t,n))}function i(e){var t=e.sourceBuffers,n=t.length;if("open"===e.readyState){for(var r=0;r<n;r++){if(t[r].updating)return;if(0===t[r].buffered.length)return}e.endOfStream()}}var a=void 0;return a={createMediaSource:e,attachMediaSource:t,detachMediaSource:n,setDuration:r,setSeekable:o,signalEndOfStream:i}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="MediaSourceController",t["default"]=a["default"].getSingletonFactory(o),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(){P()}function t(e){me=e,Q(),ye=me.manifestInfo.isDynamic,fe=me.start,te.on(h["default"].DATA_UPDATE_COMPLETED,M,this),te.on(h["default"].BYTES_APPENDED,X,this),te.on(h["default"].BUFFER_LEVEL_STATE_CHANGED,$,this),te.on(h["default"].PERIOD_SWITCH_STARTED,n,this),_e&&(_e=!1,o())}function n(e){!ye&&e.fromStreamInfo&&void 0!==pe[e.fromStreamInfo.id]&&(delete ve[e.fromStreamInfo.id],delete pe[e.fromStreamInfo.id])}function r(){var e=I(!0),t=ye?e-me.start:0;return e+(me.duration-t)-p()}function o(){ce&&ce.getElement()?ce.play():_e=!0}function i(){return ce?ce.isPaused():null}function u(){ce&&ce.pause()}function c(){return ce?ce.isSeeking():null}function f(e){ce&&(te.trigger(h["default"].PLAYBACK_SEEK_ASKED),ee("Requesting seek to time: "+e),ce.setCurrentTime(e))}function p(){return ce?ce.getTime():null}function v(){return ce?ce.getPlaybackRate():null}function m(){return ce?ce.getPlayedRanges():null}function y(){return ce?ce.getEnded():null}function b(){return ye}function E(){return re}function T(e){fe=e}function w(){return fe}function S(e,t){var n=ue.getMpd(ae.getValue()),r=void 0,o=void 0,i=10;if(r=ge.getUseSuggestedPresentationDelay()&&n.hasOwnProperty(a["default"].SUGGESTED_PRESENTATION_DELAY)?n.suggestedPresentationDelay:ge.getLiveDelay()?ge.getLiveDelay():isNaN(e)?2*me.manifestInfo.minBufferTime:e*ge.getLiveDelayFragmentCount(),t>0){var u=Math.max(t-i,t/2);o=Math.min(r,u)}else o=r;return he=o,o}function O(){return he}function P(){le=0,fe=NaN,de=null,_e=!1,pe={},he=0,ve={},ce&&(te.off(h["default"].DATA_UPDATE_COMPLETED,M,this),te.off(h["default"].BUFFER_LEVEL_STATE_CHANGED,$,this),te.off(h["default"].BYTES_APPENDED,X,this),x(),J()),ce=null,me=null,ye=null}functio
var n=t||0,o=e[n],i=function(e,t){var n=!e||!t;n&&D?S():O(n,e,t)};r(!0),o?L.hasOwnProperty(o.schemeIdUri)?L[o.schemeIdUri](o.value,function(e){var t=(new Date).getTime(),n=e-t;u(n),A("Local time: "+new Date(t)),A("Server time: "+new Date(e)),A("Difference (ms): "+n),i(e,n)},function(){P(e,n+1)}):P(e,n+1):(u(0),i())}function R(){i(!1),r(!1)}var I=this.context,A=(0,y["default"])(I).getInstance().log,C=(0,f["default"])(I).getInstance(),x=void 0,N=void 0,M=void 0,k=void 0,D=void 0,L=void 0,j=void 0,F=void 0;return x={initialize:e,getOffsetToDeviceTimeMs:n,setConfig:t,reset:R}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(108),s=r(u),c=n(45),l=n(12),f=r(l),d=n(14),p=r(d),h=n(2),v=r(h),m=n(19),y=r(m),g=1,_=5e3;o.__dashjs_factory_name="TimeSyncController";var b=v["default"].getSingletonFactory(o);b.TIME_SYNC_FAILED_ERROR_CODE=g,b.HTTP_TIMEOUT_MS=_,v["default"].updateSingletonFactory(o.__dashjs_factory_name,b),t["default"]=b,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(){P.on(l["default"].XLINK_ELEMENT_LOADED,c,I),M=(0,a["default"])(O).create({errHandler:e.errHandler,metricsModel:e.metricsModel,mediaPlayerModel:e.mediaPlayerModel,requestModifier:e.requestModifier})}function n(e){e&&(A=e)}function r(e){e&&(C=e)}function o(e){var t=void 0;N=new h["default"]({escapeMode:!1,attributePrefix:"",arrayAccessForm:"property",emptyNodeForm:"object",stripWhitespaces:!1,enableToStringFunc:!1,ignoreRoot:!0,matchers:A}),x=e,t=d(x.Period_asArray,x,_,y),u(t,_,y)}function i(){P.off(l["default"].XLINK_ELEMENT_LOADED,c,I),M&&(M.reset(),M=null)}function u(e,t,n){var r={},o=void 0,i=void 0;r.elements=e,r.type=t,r.resolveType=n,0===r.elements.length&&f(r);for(var a=0;a<r.elements.length;a++)o=r.elements[a],i=R.isHTTPURL(o.url)?o.url:o.originalContent.BaseURL+o.url,M.load(i,o,r)}function c(e){var t=void 0,n=void 0,r="<response>",o="</response>",i="";if(t=e.element,n=e.resolveObject,t.resolvedContent){var a=0;0===t.resolvedContent.indexOf("<?xml")&&(a=t.resolvedContent.indexOf("?>")+2),i=t.resolvedContent.substr(0,a)+r+t.resolvedContent.substr(a)+o,t.resolvedContent=N.xml_str2json(i)}w(n)&&f(n)}function f(e){var t=[],n=void 0,r=void 0;if(p(e),e.resolveType===g&&P.trigger(l["default"].XLINK_READY,{manifest:x}),e.resolveType===y)switch(e.type){case _:for(n=0;n<x[_+"_asArray"].length;n++)r=x[_+"_asArray"][n],r.hasOwnProperty(b+"_asArray")&&(t=t.concat(d(r[b+"_asArray"],r,b,y))),r.hasOwnProperty(E+"_asArray")&&(t=t.concat(d(r[E+"_asArray"],r,E,y)));u(t,b,y);break;case b:P.trigger(l["default"].XLINK_READY,{manifest:x})}}function d(e,t,n,r){var o=[],i=void 0,a=void 0,u=void 0;for(a=e.length-1;a>=0;a--)i=e[a],i.hasOwnProperty("xlink:href")&&i["xlink:href"]===T&&e.splice(a,1);for(a=0;a<e.length;a++)i=e[a],i.hasOwnProperty("xlink:href")&&i.hasOwnProperty("xlink:actuate")&&i["xlink:actuate"]===r&&(u=v(i["xlink:href"],t,n,a,r,i),o.push(u));return o}function p(e){var t=[],n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,u=void 0;for(i=e.elements.length-1;i>=0;i--){if(n=e.elements[i],r=n.type+"_asArray",!n.resolvedContent||S())delete n.originalContent["xlink:actuate"],delete n.originalContent["xlink:href"],t.push(n.originalContent);else if(n.resolvedContent)for(a=0;a<n.resolvedContent[r].length;a++)o=n.resolvedContent[r][a],t.push(o);for(n.parentElement[r].splice(n.index,1),u=0;u<t.length;u++)n.parentElement[r].splice(n.index+u,0,t[u]);t=[]}e.elements.length>0&&C.run(x)}function v(e,t,n,r,o,i){return{url:e,parentElement:t,type:n,index:r,resolveType:o,originalContent:i,resolvedContent:null,resolved:!1}}function w(e){var t=void 0,n=void 0;for(t=0;t<e.elements.length;t++)if(n=e.elements[t],n.resolved===!1)return!1;return!0}function S(){return!1}e=e||{};var O=this.context,P=(0,s["default"])(O).getInstance(),R=(0,m["default"])(O).getInstance(),I=void 0,A=void 0,C=void 0,x=void 0,N=void 0,M=void 0;return I={resolveManifestOnLoad:o,setMatchers:n,setIron:r,reset:i},t(),I}Object.defineProperty(t,"__esModule",{value:!0});var i=n(941),a=r(i),u=n(12),s=r(u),c=n(
needkey:"needkey",keyerror:"keyerror",keyadded:"keyadded",keymessage:"keymessage"},{generateKeyRequest:"webkitGenerateKeyRequest",addKey:"webkitAddKey",cancelKeyRequest:"webkitCancelKeyRequest",needkey:"webkitneedkey",keyerror:"webkitkeyerror",keyadded:"webkitkeyadded",keymessage:"webkitkeymessage"}],g=[{setMediaKeys:"setMediaKeys",MediaKeys:"MediaKeys",release:"close",needkey:"needkey",error:"keyerror",message:"keymessage",ready:"keyadded",close:"keyclose"},{setMediaKeys:"msSetMediaKeys",MediaKeys:"MSMediaKeys",release:"close",needkey:"msneedkey",error:"mskeyerror",message:"mskeymessage",ready:"mskeyadded",close:"mskeyclose"}];o.__dashjs_factory_name="Protection";var _=dashjs.FactoryMaker.getClassFactory(o);_.events=l["default"],dashjs.FactoryMaker.updateClassFactory(o.__dashjs_factory_name,_),t["default"]=_,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":a(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)}var a="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};Object.defineProperty(t,"__esModule",{value:!0});var u=function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;r=!1,null===o&&(o=Function.prototype);var u=Object.getOwnPropertyDescriptor(o,i);if(void 0!==u){if("value"in u)return u.value;var s=u.get;if(void 0===s)return;return s.call(a)}var c=Object.getPrototypeOf(o);if(null===c)return;e=c,t=i,n=a,r=!0,u=c=void 0}},s=n(236),c=r(s),l=function(e){function t(){o(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.INTERNAL_KEY_MESSAGE="internalKeyMessage",this.INTERNAL_KEY_SYSTEM_SELECTED="internalKeySystemSelected",this.KEY_ADDED="public_keyAdded",this.KEY_ERROR="public_keyError",this.KEY_MESSAGE="public_keyMessage",this.KEY_SESSION_CLOSED="public_keySessionClosed",this.KEY_SESSION_CREATED="public_keySessionCreated",this.KEY_SESSION_REMOVED="public_keySessionRemoved",this.KEY_STATUSES_CHANGED="public_keyStatusesChanged",this.KEY_SYSTEM_ACCESS_COMPLETE="keySystemAccessComplete",this.KEY_SYSTEM_SELECTED="public_keySystemSelected",this.LICENSE_REQUEST_COMPLETE="public_licenseRequestComplete",this.NEED_KEY="needkey",this.PROTECTION_CREATED="public_protectioncreated",this.PROTECTION_DESTROYED="public_protectiondestroyed",this.SERVER_CERTIFICATE_UPDATED="serverCertificateUpdated",this.TEARDOWN_COMPLETE="protectionTeardownComplete",this.VIDEO_ELEMENT_SELECTED="videoElementSelected"}return i(t,e),t}(c["default"]),f=new l;t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(){k=[],F=!1,U="temporary",B=""}function n(e,t,n){if(!F){var r=void 0;t||n||(r=R.getStreamsInfo()[0]),D=t||(r?R.getMediaInfoForType(r,N.AUDIO):null),L=n||(r?R.getMediaInfoForType(r,N.VIDEO):null);var o=L?L:D,i=O.getSupportedKeySystemsFromContentProtection(o.contentProtection);i&&i.length>0&&b(i,!0),F=!0}}function r(e){return O.getSupportedKeySystemsFromContentProtection(e)}function o(e,t){var n=u["default"].getPSSHForKeySystem(H,e),r=g(H);if(n){for(var o=P.getAllInitData(),i=0;i<o.length;i++)if(O.initDataEquals(n,o[i]))return void C("DRM: Ignoring initData because we have already seen it!");try{P.createKeySession(n,r,U,t)}catch(a){I.trigger(A.KEY_SESSION_CREATED,{data:null,error:"Error creating key session! "+a.message})}}else e?P.createKeySession(e,r,U,t):I.trigger(A.KEY_SESSION_CREATED,{data:null,error:"Selected key system is "+H.systemString+". needkey/encrypted event contains no initData corresponding to that key system!"})}function a(e){P.loadKeySess
return I={getAllInitData:o,requestKeySystemAccess:i,getKeySystem:r,selectKeySystem:u,setMediaElement:c,createKeySession:f,updateKeySession:p,closeKeySession:v,setServerCertificate:y,loadKeySession:g,removeKeySession:_,reset:n},t(),I}Object.defineProperty(t,"__esModule",{value:!0});var i=n(242),a=r(i),u=n(337),s=r(u),c=n(332),l=r(c),f=n(333),d=r(f),p=n(336),h=r(p),v=n(335),m=r(v);o.__dashjs_factory_name="ProtectionModel_3Feb2014",t["default"]=dashjs.FactoryMaker.getClassFactory(o),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e,t){var n=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(t)));e+="/?";for(var r=0;r<n.kids.length;r++)e+=n.kids[r]+"&";return e=e.substring(0,e.length-1)}function t(){return"GET"}function n(){return"json"}function r(e){if(!e.hasOwnProperty("keys"))return null;for(var t=[],n=0;n<e.keys.length;n++){var r=e.keys[n],o=r.kid.replace(/=/g,""),i=r.k.replace(/=/g,"");t.push(new a["default"](o,i))}return new s["default"](t)}function o(e){return String.fromCharCode.apply(null,new Uint8Array(e))}var i=void 0;return i={getServerURLFromMessage:e,getHTTPMethod:t,getResponseType:n,getLicenseMessage:r,getErrorResponse:o}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(334),a=r(i),u=n(331),s=r(u);o.__dashjs_factory_name="ClearKey",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(){if(!s||!s.hasOwnProperty("decodeArray"))throw new Error("Missing config parameter(s)")}function n(e){return e}function r(){return"POST"}function o(e){return c[e].responseType}function i(e,n){return t(),c[n].getLicenseMessage(e)}function u(e,t){return c[t].getErrorResponse(e)}e=e||{};var s=e.BASE64,c={};c[a["default"].WIDEVINE_KEYSTEM_STRING]={responseType:"json",getLicenseMessage:function(e){return s.decodeArray(e.license)},getErrorResponse:function(e){return e}},c[a["default"].PLAYREADY_KEYSTEM_STRING]={responseType:"arraybuffer",getLicenseMessage:function(e){return e},getErrorResponse:function(e){return String.fromCharCode.apply(null,new Uint8Array(e))}};var l=void 0;return l={getServerURLFromMessage:n,getHTTPMethod:r,getResponseType:o,getLicenseMessage:i,getErrorResponse:u}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(133),a=r(i);o.__dashjs_factory_name="DRMToday",t["default"]=dashjs.FactoryMaker.getSingletonFactory(o),e.exports=t["default"]},function(e,t){"use strict";function n(){function e(e){var t=String.fromCharCode.apply(null,new Uint8Array(e)),n=decodeURIComponent(escape(t));return n}function t(t){if(window.DOMParser){var n=e(t),r=new window.DOMParser,o=r.parseFromString(n,"text/xml"),i=o?o.getElementsByTagNameNS(c,"Envelope")[0]:null,a=i?i.getElementsByTagNameNS(c,"Body")[0]:null,u=a?a.getElementsByTagNameNS(c,"Fault")[0]:null;if(u)return null}return t}function n(t){var n="",r="",o="",i=-1,a=-1;if(window.DOMParser){var u=e(t),s=new window.DOMParser,l=s.parseFromString(u,"text/xml"),f=l?l.getElementsByTagNameNS(c,"Envelope")[0]:null,d=f?f.getElementsByTagNameNS(c,"Body")[0]:null,p=d?d.getElementsByTagNameNS(c,"Fault")[0]:null,h=p?p.getElementsByTagName("detail")[0]:null,v=h?h.getElementsByTagName("Exception")[0]:null,m=null;if(null===p)return u;m=p.getElementsByTagName("faultstring")[0].firstChild,n=m?m.nodeValue:null,null!==v&&(m=v.getElementsByTagName("StatusCode")[0],r=m?m.firstChild.nodeValue:null,m=v.getElementsByTagName("Message")[0],o=m?m.firstChild.nodeValue:null,i=o?o.lastIndexOf("[")+1:-1,a=o?o.indexOf("]"):-1,o=o?o.substring(i,a):"")}var y="code: "+r+", name: "+n;return o&&(y+=", message: "+o),y}function r(e){return e}function o(){return"POST"}function i(){return"arraybuffer"}function a(e){return t.call(this,e)}function u(e){return n.call(this,e)}var s=void 0,c="http://schemas.xmlsoap.org/soap/envelope/";return s={getServerURLFromMessage:r,getHTTPMethod:o,getResponseType:i,getLicenseMessage:a,getErrorResponse:u}}Object.defineProperty(t,"__esModule",{value:!0}),n.__dashj
D.style.cssText="unicode-bidi: normal; direction: ltr;";for(var L=0;L<C.p.length;++L){var j=C.p[L],F=0;for(b=0;b<j.spans.length;++b){var U=j.spans[b];if(U.line.length>0){if(0!==b&&F!=U.row){var B=document.createElement("br");B.className="lineBreak",D.appendChild(B)}var H=!1;F===U.row&&(H=!0),F=U.row;var q=y[U.name],V=document.createElement("span");V.className="spanPadding "+U.name+" customSpanColor",V.style.cssText=r(n,q),0!==b&&H?b===j.spans.length-1?V.textContent=i(U.line):V.textContent=U.line:j.spans.length>1&&b<j.spans.length-1&&U.row===j.spans[b+1].row?V.textContent=o(U.line):V.textContent=U.line.trim(),D.appendChild(V)}}}k.appendChild(D),N.appendChild(k);var G={bodyStyle:["%",90]};for(b in y)y.hasOwnProperty(b)&&(G[b]=["%",90]);A.push({type:"html",start:a,end:s,cueHTMLElement:N,cueID:x,cellResolution:[32,15],isFromCEA608:!0,regions:g,regionID:C.name,videoHeight:n.videoHeight,videoWidth:n.videoWidth,fontSize:G,lineHeight:{},linePadding:{}})}return A}var u=0,s=void 0;return s={createHTMLCaptionsFromScreen:a}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),a=r(i);o.__dashjs_factory_name="EmbeddedTextHtmlRender",t["default"]=a["default"].getSingletonFactory(o),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(){N=!1,M=null,k=null,L=null,x=!1,O.on(l["default"].DATA_UPDATE_COMPLETED,E,this),O.on(l["default"].INIT_FRAGMENT_LOADED,T,this)}function n(){return v}function r(e){f(e),L=A.getRepresentationController(),j=(0,h["default"])(S).getInstance()}function o(e){try{k=P.createSourceBuffer(M,e),N||(k.hasOwnProperty(a["default"].INITIALIZE)&&k.initialize(I,A),N=!0)}catch(t){R.mediaSourceError("Error creating "+I+" source buffer.")}return k}function i(){return I}function u(){return k}function c(e){k=e}function f(e){M=e}function d(){return M}function p(){return A}function m(e){D=e}function y(){return D}function g(){return 0}function _(){return x}function b(e){O.off(l["default"].DATA_UPDATE_COMPLETED,E,this),O.off(l["default"].INIT_FRAGMENT_LOADED,T,this),e||(P.abort(M,k),P.removeSourceBuffer(M,k))}function E(e){e.sender.getStreamProcessor()===A&&O.trigger(l["default"].TIMED_TEXT_REQUESTED,{index:0,sender:e.sender})}function T(e){e.fragmentModel===A.getFragmentModel()&&e.chunk.bytes&&(j.save(e.chunk),P.append(k,e.chunk))}function w(e,t){var n=j.extract(e,t);n?P.append(k,n):O.trigger(l["default"].INIT_REQUESTED,{sender:C})}e=e||{};var S=this.context,O=(0,s["default"])(S).getInstance(),P=e.sourceBufferController,R=e.errHandler,I=e.type,A=e.streamProcessor,C=void 0,x=void 0,N=void 0,M=void 0,k=void 0,D=void 0,L=void 0,j=void 0;return C={getBufferControllerType:n,initialize:r,createBuffer:o,getType:i,getStreamProcessor:p,setSeekStartTime:m,getSeekStartTime:y,getBuffer:u,setBuffer:c,getBufferLevel:g,setMediaSource:f,getMediaSource:d,getIsBufferingCompleted:_,switchInitData:w,reset:b},t(),C}Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),a=r(i),u=n(12),s=r(u),c=n(14),l=r(c),f=n(2),d=r(f),p=n(340),h=r(p),v="NotFragmentedTextBufferController";o.__dashjs_factory_name=v,t["default"]=d["default"].getClassFactory(o),e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(){b=e.type===a["default"].FRAGMENTED_TEXT?(0,l["default"])(_).create({type:e.type,metricsModel:e.metricsModel,mediaPlayerModel:e.mediaPlayerModel,manifestModel:e.manifestModel,sourceBufferController:e.sourceBufferController,errHandler:e.errHandler,streamController:e.streamController,mediaController:e.mediaController,adapter:e.adapter,textController:e.textController,abrController:e.abrController,playbackController:e.playbackController,streamProcessor:e.streamProcessor}):(0,d["default"])(_).create({type:e.type,errHandler:e.errHandler,sourceBufferController:e.sourceBufferController,streamProcessor:e.streamProcessor})}function n(){return b.getBufferControllerType()}function r(e,t){return b.initialize(e,t)}function o(e){return b.createBuffer(e)}function i(){return b.getType()}function u(){return b.ge
}},{key:"getChildBoxes",value:function(e){for(var t=[],n=0;n<this.boxes.length;n++)this.boxes[n].type===e&&t.push(this.boxes[n]);return t}}]),e}();t["default"]=o,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.DVRWindowSize=NaN,this.loadedTime=null,this.availableFrom=null,this.minBufferTime=NaN,this.duration=NaN,this.isDynamic=!1,this.maxFragmentDuration=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.id=null,this.index=null,this.type=null,this.streamInfo=null,this.representationCount=0,this.lang=null,this.viewpoint=null,this.accessibility=null,this.audioChannelConfiguration=null,this.roles=null,this.codec=null,this.mimeType=null,this.contentProtection=null,this.isText=!1,this.KID=null,this.bitrateList=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.TcpList=[],this.HttpList=[],this.RepSwitchList=[],this.BufferLevel=[],this.BufferState=[],this.PlayList=[],this.DroppedFrames=[],this.SchedulingInfo=[],this.DVRInfo=[],this.ManifestUpdate=[],this.RequestsQueue=null,this.DVBErrors=[]};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.id=null,this.quality=null,this.DVRWindow=null,this.fragmentDuration=null,this.mediaInfo=null,this.MSETimeOffset=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.id=null,this.index=null,this.start=NaN,this.duration=NaN,this.manifestInfo=null,this.isLast=!0};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.captionData=null,this.label=null,this.lang=null,this.defaultTrack=!1,this.kind=null,this.isFragmented=!1,this.isEmbedded=!1};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.t=null,this.xywh=null,this.track=null,this.id=null,this.s=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.t=null,this.level=null};t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=n(134),a=r(i),u=function s(){o(this,s),this.target=null,this.state=a["default"].BUFFER_EMPTY};t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function o(){n(this,o),this.time=null,this.range=null,this.manifestInfo=null};t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=funct
}var f=document.createElement("div");f.style.position="relative",f.style.width=c+"px",f.style.height=s+"px",f.style.margin="auto",f.style.top=0,f.style.bottom=0,f.style.left=0,f.style.right=0,f.style.zIndex=0;var d={h:s,w:c,regionH:null,regionW:null,imgResolver:n,displayForcedOnlyMode:a||!1,isd:e,errorHandler:u};t.appendChild(f);for(var p in e.contents)r(d,f,e.contents[p])};var f=[new c("http://www.w3.org/ns/ttml#styling backgroundColor",function(e,t,n,r){t.style.backgroundColor="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")"}),new c("http://www.w3.org/ns/ttml#styling color",function(e,t,n,r){t.style.color="rgba("+r[0].toString()+","+r[1].toString()+","+r[2].toString()+","+(r[3]/255).toString()+")"}),new c("http://www.w3.org/ns/ttml#styling direction",function(e,t,n,r){t.style.direction=r}),new c("http://www.w3.org/ns/ttml#styling display",function(e,t,n,r){}),new c("http://www.w3.org/ns/ttml#styling displayAlign",function(e,t,n,r){t.style.display="flex",t.style.flexDirection="column","before"===r?t.style.justifyContent="flex-start":"center"===r?t.style.justifyContent="center":"after"===r&&(t.style.justifyContent="flex-end")}),new c("http://www.w3.org/ns/ttml#styling extent",function(e,t,n,r){e.regionH=r.h*e.h,e.regionW=r.w*e.w;var o=0,i=0,a=n.styleAttrs["http://www.w3.org/ns/ttml#styling padding"];a&&(o=(a[0]+a[2])*e.h,i=(a[1]+a[3])*e.w),t.style.height=e.regionH-o+"px",t.style.width=e.regionW-i+"px"}),new c("http://www.w3.org/ns/ttml#styling fontFamily",function(e,t,n,r){var o=[];for(var i in r)"monospaceSerif"===r[i]?(o.push("Courier New"),o.push('"Liberation Mono"'),o.push("Courier"),o.push("monospace")):"proportionalSansSerif"===r[i]?(o.push("Arial"),o.push("Helvetica"),o.push('"Liberation Sans"'),o.push("sans-serif")):"monospace"===r[i]?o.push("monospace"):"sansSerif"===r[i]?o.push("sans-serif"):"serif"===r[i]?o.push("serif"):"monospaceSansSerif"===r[i]?(o.push("Consolas"),o.push("monospace")):"proportionalSerif"===r[i]?o.push("serif"):o.push(r[i]);t.style.fontFamily=o.join(",")}),new c("http://www.w3.org/ns/ttml#styling fontSize",function(e,t,n,r){t.style.fontSize=r*e.h+"px"}),new c("http://www.w3.org/ns/ttml#styling fontStyle",function(e,t,n,r){t.style.fontStyle=r}),new c("http://www.w3.org/ns/ttml#styling fontWeight",function(e,t,n,r){t.style.fontWeight=r}),new c("http://www.w3.org/ns/ttml#styling lineHeight",function(e,t,n,r){"normal"===r?t.style.lineHeight="normal":t.style.lineHeight=r*e.h+"px"}),new c("http://www.w3.org/ns/ttml#styling opacity",function(e,t,n,r){t.style.opacity=r}),new c("http://www.w3.org/ns/ttml#styling origin",function(e,t,n,r){t.style.top=r.h*e.h+"px",t.style.left=r.w*e.w+"px"}),new c("http://www.w3.org/ns/ttml#styling overflow",function(e,t,n,r){t.style.overflow=r}),new c("http://www.w3.org/ns/ttml#styling padding",function(e,t,n,r){var o=[];o[0]=r[0]*e.h+"px",o[1]=r[3]*e.w+"px",o[2]=r[2]*e.h+"px",o[3]=r[1]*e.w+"px",t.style.padding=o.join(" ")}),new c("http://www.w3.org/ns/ttml#styling showBackground",null),new c("http://www.w3.org/ns/ttml#styling textAlign",function(e,t,r,o){var i,a=r.styleAttrs[n.byName.direction.qname];i="start"===o?"rtl"===a?"right":"left":"end"===o?"rtl"===a?"left":"right":o,t.style.textAlign=i}),new c("http://www.w3.org/ns/ttml#styling textDecoration",function(e,t,n,r){t.style.textDecoration=r.join(" ").replace("lineThrough","line-through")}),new c("http://www.w3.org/ns/ttml#styling textOutline",function(e,t,n,r){"none"===r?t.style.textShadow="":t.style.textShadow="rgba("+r.color[0].toString()+","+r.color[1].toString()+","+r.color[2].toString()+","+(r.color[3]/255).toString()+") 0px 0px "+r.thickness*e.h+"px"}),new c("http://www.w3.org/ns/ttml#styling unicodeBidi",function(e,t,n,r){var o;o="bidiOverride"===r?"bidi-override":r,t.style.unicodeBidi=o}),new c("http://www.w3.org/ns/ttml#styling visibility",function(e,t,n,r){t.style.visibility=r}),new c("http://www.w3.org/ns/ttml#styling wrapOption",function(e,t,n,r){"wrap"===r?"preserve"===n.space?t.style.whiteSpace="pre-wrap":t.style.whiteSpace="normal":"preserve"===n.space
r.placeholder={},e.exports=r},function(e,t,n){var r=n(109),o=n(1070),i=n(363),a=n(40),u=a(function(e){return e.push(void 0,o),r(i,void 0,e)});e.exports=u},function(e,t,n){var r=n(109),o=n(1140),i=n(575),a=n(40),u=a(function(e){return e.push(void 0,o),r(i,void 0,e)});e.exports=u},function(e,t,n){var r=n(527),o=n(40),i=o(function(e,t){return r(e,1,t)});e.exports=i},function(e,t,n){var r=n(527),o=n(40),i=n(373),a=o(function(e,t,n){return r(e,i(t)||0,n)});e.exports=a},function(e,t,n){e.exports=n(374)},function(e,t,n){e.exports=n(581)},function(e,t,n){function r(e,t,n){var r=u(e)?o:i;return n&&s(e,t,n)&&(t=void 0),r(e,a(t,3))}var o=n(1069),i=n(1073),a=n(34),u=n(27),s=n(255);e.exports=r},function(e,t,n){e.exports=n(565)},function(e,t,n){e.exports=n(363)},function(e,t,n){function r(e,t){var n=u(e)?o:i;return n(e,a(t,3))}var o=n(522),i=n(1075),a=n(34),u=n(27);e.exports=r},function(e,t,n){function r(e,t){return e&&e.length?o(e,i(t,3)):-1}var o=n(528),i=n(34);e.exports=r},function(e,t,n){function r(e,t){return o(e,a(t,3),i,!0)}var o=n(352),i=n(530),a=n(34);e.exports=r},function(e,t,n){function r(e){return o(e,i)}var o=n(96),i=512;e.exports=r},function(e,t,n){var r=n(1107),o=r();e.exports=o},function(e,t,n){function r(e,t){var n=u(e)?o:i;return n(e,a(t,3))}var o=n(198),i=n(162),a=n(34),u=n(27);e.exports=r},function(e,t,n){function r(e,t){return null==e?e:o(e,i(t,3),a)}var o=n(529),i=n(34),a=n(71);e.exports=r},function(e,t,n){function r(e,t){return null==e?e:o(e,i(t,3),a)}var o=n(531),i=n(34),a=n(71);e.exports=r},function(e,t,n){function r(e,t){return e&&o(e,i(t,3))}var o=n(135),i=n(34);e.exports=r},function(e,t,n){function r(e,t){return e&&o(e,i(t,3))}var o=n(530),i=n(34);e.exports=r},function(e,t,n){function r(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}function o(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function i(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function a(e){return function(t){return e({},t)}}function u(e,t){return function(){var n=arguments.length;if(!n)return o;for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}function s(e,t,n,d){function p(e,t){t=B(t);for(var n=-1,r=t.length,o=r-1,i=N(Object(e)),a=i;null!=a&&++n<r;){var u=t[n],s=a[u];null!=s&&(a[t[n]]=N(n==o?s:Object(s))),a=a[u]}return i}function h(e){return V.runInContext.convert(e)(void 0)}function v(e,t){var n=d;return function(r){var o=E?I:A,i=E?I[e]:t,a=x(x({},n),r);return s(o,e,i,a)}}function m(e,t){return g(e,function(e){return"function"==typeof e?o(e,t):e})}function y(e,t){return g(e,function(e){var n=t.length;return r(F(o(e,n),t),n)})}function g(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=w.rearg?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function _(e,t){e=c.aliasToReal[e]||e;var n,r=t,o=q[e];return o?r=o(t):w.immutable&&(l.array[e]?r=u(t,i):l.object[e]?r=u(t,a(t)):l.set[e]&&(r=u(t,p))),k(H,function(t){return k(c.aryMethod[t],function(o){if(e==o){var i=!E&&c.iterateeAry[e],a=c.iterateeRearg[e],u=c.methodSpread[e];return n=r,!w.fixed||!O&&c.skipFixed[e]||(n=void 0===u?C(n,t):U(n,u)),w.rearg&&t>1&&(P||!c.skipRearg[e])&&(n=F(n,c.methodRearg[e]||c.aryRearg[t])),w.cap&&(a?n=y(n,a):i&&(n=m(n,i))),(S||w.curry&&t>1)&&(S&&console.log(S,e),n=M(n,t)),!1}}),!n}),n||(n=r),n==t&&(n=S?M(n,1):function(){return t.apply(this,arguments)}),n.convert=v(e,t),c.placeholder[e]&&(b=!0,n.placeholder=t.placeholder=R),n}var b,E="function"==typeof t,T=t===Object(t);if(T&&(d=n,n=t,t=void 0),null==n)throw new TypeError;d||(d={});var w={cap:!("cap"in d)||d.cap,curry:!("curry"in d)||d.curry,fixed:!("fixed"in d)||d.fixed,immutable:!("immutable"in d)||d.immutable,rearg:!("rearg"in d)||d.rearg},S="curry"in d&&d.curry,O="fixed"in d&&d.fixed,P="rearg"in d&&d.rearg,R=E?n:f,I=E?n.runInContext():void 0,A=E?n:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isFunction:e.isFunction,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,
target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,"typeof":0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};e.exports=c},function(e,t,n){"use strict";(function(t){function r(e,t,n,r){var o=void 0===e[n];null!=t&&o&&(e[n]=i(t,!0))}var o=n(173),i=n(600),a=(n(381),n(391)),u=n(603),s=(n(16),{instantiateChildren:function(e,t,n,o){if(null==e)return null;var i={};return u(e,r,i),i},updateChildren:function(e,t,n,r,u,s,c,l,f){if(t||e){var d,p;for(d in t)if(t.hasOwnProperty(d)){p=e&&e[d];var h=p&&p._currentElement,v=t[d];if(null!=p&&a(h,v))o.receiveComponent(p,v,u,l),t[d]=p;else{p&&(r[d]=o.getHostNode(p),o.unmountComponent(p,!1));var m=i(v,!0);t[d]=m;var y=o.mountComponent(m,u,s,c,l,f);n.push(y)}}for(d in e)!e.hasOwnProperty(d)||t&&t.hasOwnProperty(d)||(p=e[d],r[d]=o.getHostNode(p),o.unmountComponent(p,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];o.unmountComponent(r,t)}}});e.exports=s}).call(t,n(114))},function(e,t,n){"use strict";var r=n(377),o=n(1247),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";function r(e){}function o(e,t){}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var u="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},s=n(23),c=n(29),l=n(174),f=n(383),d=n(101),p=n(384),h=n(210),v=(n(72),n(594)),m=n(173),y=n(197),g=(n(11),n(342)),_=n(391),b=(n(16),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var e=h.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return o(e,t),t};var E=1,T={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,c){this._context=c,this._mountOrder=E++,this._hostParent=t,this._hostContainerInfo=n;var f,d=this._currentElement.props,p=this._processContext(c),v=this._currentElement.type,m=e.getUpdateQueue(),g=i(v),_=this._constructComponent(g,d,p,m);g||null!=_&&null!=_.render?a(v)?this._compositeType=b.PureClass:this._compositeType=b.ImpureClass:(f=_,o(v,f),null===_||_===!1||l.isValidElement(_)?void 0:s("105",v.displayName||v.name||"Component"),_=new r(v),this._compositeType=b.StatelessFunctional);_.props=d,_.context=p,_.refs=y,_.updater=m,this._instance=_,h.set(_,this);var T=_.state;void 0===T&&(_.state=T=null),"object"!==("undefined"==typeof T?"undefined":u(T))||Array.isArray(T)?s("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=_.unstable_handleError?this.performInitialMountWithErrorHandling(f,t,n,e,c):this.performInitialMount(f,t,n,e,c),_.componentDidMount&&e.getReactMountReady().enqueue(_.componentDidMount,_),w},_constructComponent:function(e,t,n,r){return this._constructComponentWithoutOwner(e,t,n,r)},_constructComponentWithoutOwner:function(e,t,n,r){var o=this._currentElement.type;return e?new o(t,n,r):o(t,n,r)},performInitialMountWithErrorHandling:function(e,t,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,o)}catch(u){r.rollback(a),this._instance.unstable_handleError(
var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:c.canUseDOM?window:null,setHandleTopLevel:function(e){v._handleTopLevel=e},setEnabled:function(e){v._enabled=!!e},isEnabled:function(){return v._enabled},trapBubbledEvent:function(e,t,n){return n?s.listen(n,t,v.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?s.capture(n,t,v.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=a.bind(null,e);s.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(v._enabled){var n=o.getPooled(e,t);try{d.batchedUpdates(i,n)}finally{o.release(n)}}}};e.exports=v},function(e,t,n){"use strict";var r=n(172),o=n(208),i=n(380),a=n(383),u=n(589),s=n(266),c=n(591),l=n(84),f={Component:a.injection,DOMProperty:r.injection,EmptyComponent:u.injection,EventPluginHub:o.injection,EventPluginUtils:i.injection,EventEmitter:s.injection,HostComponent:c.injection,Updates:l.injection};e.exports=f},function(e,t,n){"use strict";var r=n(1282),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};e.exports=a},function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function o(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:d.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e,t){return t&&(e=e||[],e.push(t)),e}function c(e,t){f.processChildrenUpdates(e,t)}var l=n(23),f=n(383),d=(n(210),n(72),n(101),n(173)),p=n(1239),h=(n(62),n(1285)),v=(n(11),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return p.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,i){var a,u=0;return a=h(t,u),p.updateChildren(e,a,n,r,o,this,this._hostContainerInfo,i,u),a},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var u=r[a],s=0,c=d.mountComponent(u,t,this,this._hostContainerInfo,n,s);u._mountIndex=i++,o.push(c)}return o},updateTextContent:function(e){var t=this._renderedChildren;p.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");var r=[u(e)];c(this,r)},updateMarkup:function(e){var t=this._renderedChildren;p.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&l("118");var r=[a(e)];c(this,r)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,e,i,o,t,n);if(a||r){var u,l=null,f=0,p=0,h=0,v=null;for(u in a)if(a.hasOwnProperty(u)){var m=r&&r[u],y=a[u];m===y?(l=s(l,this.moveChild(m,v,f,p)),p=Math.max(m._mountIndex,p),m._mountIndex=f):(m&&(p=Math.max(m._mountIndex,p)),l=s(l,this._mountChildAtIndex(y,i[h],v,f,t,n)),h++),f++,v=d.getHostNode(y)}for(u in o)o.hasOwnProperty(u)&&(l=s(l,this._unmountChild(r[u],o[u])));l&&c(this,l),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;p.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex<r)return o(e,t,n)},createChild:function(e,t,n){return r(n,t,e._mountIndex)},removeChild:function(e,t){return i(e,t)},_mountChildAtIndex:function(e,t,n,r,o,i){return e._mountIndex=r,this.createChild(e,n,t)},_unmountChild:function(e,t){var n=this.removeChild(e,t);return e._mountIndex=null,n}}});e.exports=v},function(e,t,n){"use strict";function r(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var o=n(23),i=(n(11),{addComponentAsRefTo:function(e,t,n){r(n)?void 0:o("119")
return{willEnter:function(e){return f["default"](e.style)},willLeave:function(){return null}}},getInitialState:function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=e.willEnter,o=e.willLeave,i="function"==typeof n?n(t):n,u=void 0;u=null==t?i:t.map(function(e){for(var t=0;t<i.length;t++)if(i[t].key===e.key)return i[t];return e});var s=null==t?i.map(function(e){return f["default"](e.style)}):t.map(function(e){return f["default"](e.style)}),l=null==t?i.map(function(e){return c["default"](e.style)}):t.map(function(e){return c["default"](e.style)}),d=a(r,o,u,i,s,l,s,l),p=d[0],h=d[1],v=d[2],m=d[3],y=d[4];return{currentStyles:h,currentVelocities:v,lastIdealStyles:m,lastIdealVelocities:y,mergedPropsStyles:p}},animationID:null,prevTime:0,accumulatedTime:0,unreadPropStyles:null,clearUnreadPropStyle:function(e){for(var t=a(this.props.willEnter,this.props.willLeave,this.state.mergedPropsStyles,e,this.state.currentStyles,this.state.currentVelocities,this.state.lastIdealStyles,this.state.lastIdealVelocities),n=t[0],r=t[1],o=t[2],i=t[3],s=t[4],c=0;c<e.length;c++){var l=e[c].style,f=!1;for(var d in l)if(l.hasOwnProperty(d)){var p=l[d];"number"==typeof p&&(f||(f=!0,r[c]=u({},r[c]),o[c]=u({},o[c]),i[c]=u({},i[c]),s[c]=u({},s[c]),n[c]={key:n[c].key,data:n[c].data,style:u({},n[c].style)}),r[c][d]=p,o[c][d]=0,i[c][d]=p,s[c][d]=0,n[c].style[d]=p)}}this.setState({currentStyles:r,currentVelocities:o,mergedPropsStyles:n,lastIdealStyles:i,lastIdealVelocities:s})},startAnimationIfNecessary:function(){var e=this;this.animationID=_["default"](function(){var t=e.props.styles,n="function"==typeof t?t(o(e.state.mergedPropsStyles,e.unreadPropStyles,e.state.lastIdealStyles)):t;if(i(e.state.currentStyles,n,e.state.currentVelocities,e.state.mergedPropsStyles))return e.animationID=null,void(e.accumulatedTime=0);var r=y["default"](),u=r-e.prevTime;if(e.prevTime=r,e.accumulatedTime=e.accumulatedTime+u,e.accumulatedTime>10*S&&(e.accumulatedTime=0),0===e.accumulatedTime)return e.animationID=null,void e.startAnimationIfNecessary();for(var s=(e.accumulatedTime-Math.floor(e.accumulatedTime/S)*S)/S,c=Math.floor(e.accumulatedTime/S),l=a(e.props.willEnter,e.props.willLeave,e.state.mergedPropsStyles,n,e.state.currentStyles,e.state.currentVelocities,e.state.lastIdealStyles,e.state.lastIdealVelocities),f=l[0],d=l[1],h=l[2],v=l[3],m=l[4],g=0;g<f.length;g++){var _=f[g].style,b={},E={},T={},w={};for(var O in _)if(_.hasOwnProperty(O)){var P=_[O];if("number"==typeof P)b[O]=P,E[O]=0,T[O]=P,w[O]=0;else{for(var R=v[g][O],I=m[g][O],A=0;A<c;A++){var C=p["default"](S/1e3,R,I,P.val,P.stiffness,P.damping,P.precision);R=C[0],I=C[1]}var x=p["default"](S/1e3,R,I,P.val,P.stiffness,P.damping,P.precision),N=x[0],M=x[1];b[O]=R+(N-R)*s,E[O]=I+(M-I)*s,T[O]=R,w[O]=I}}v[g]=T,m[g]=w,d[g]=b,h[g]=E}e.animationID=null,e.accumulatedTime-=c*S,e.setState({currentStyles:d,currentVelocities:h,lastIdealStyles:v,lastIdealVelocities:m,mergedPropsStyles:f}),e.unreadPropStyles=null,e.startAnimationIfNecessary()})},componentDidMount:function(){this.prevTime=y["default"](),this.startAnimationIfNecessary()},componentWillReceiveProps:function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),"function"==typeof e.styles?this.unreadPropStyles=e.styles(o(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):this.unreadPropStyles=e.styles,null==this.animationID&&(this.prevTime=y["default"](),this.startAnimationIfNecessary())},componentWillUnmount:function(){null!=this.animationID&&(_["default"].cancel(this.animationID),this.animationID=null)},render:function(){var e=o(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&w["default"].Children.only(t)}});t["default"]=O,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){for(var r={},o=0;o<e.length;o++)r[e[o].key]=o;for(var i={},o=0;o<t.length;o++)i[t[o].key]=o;for(var a=[],o=0;o<t.length;o++)a[o]=t[o];for(var o=0;o<e.length;o++)if(!i.hasOwnProperty(e[o].key)){var u=n(o,e[o]);null!=u&&a.push(u)}return a.sort(function(e,n){var o=i[e.key],
var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+u.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function a(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}var u,s=Object.keys(n);try{i(n)}catch(c){u=c}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(u)throw u;for(var r=!1,i={},a=0;a<s.length;a++){var c=s[a],l=n[c],f=e[c],d=l(f,t);if("undefined"==typeof d){var p=o(c,t);throw new Error(p)}i[c]=d,r=r||d!==f}return r?i:e}}t.__esModule=!0,t["default"]=a;var u=n(617),s=n(168),c=(r(s),n(618));r(c)},function(e,t){var n=t.decimalAdjust=function(e,t,n){return"undefined"==typeof n||0===+n?Math[e](t):(t=+t,n=+n,isNaN(t)||"number"!=typeof n||n%1!==0?NaN:(t=t.toString().split("e"),t=Math[e](+(t[0]+"e"+(t[1]?+t[1]-n:-n))),t=t.toString().split("e"),+(t[0]+"e"+(t[1]?+t[1]+n:n))))};e.exports={round10:function(e,t){return n("round",e,t)},floor10:function(e,t){return n("floor",e,t)},ceil10:function(e,t){return n("ceil",e,t)}},e.exports.polyfill=function(){Math.round10||(Math.round10=e.exports.round10),Math.floor10||(Math.floor10=e.exports.floor10),Math.ceil10||(Math.ceil10=e.exports.ceil10)}},function(e,t,n){function r(){o.call(this)}e.exports=r;var o=n(341).EventEmitter,i=n(160);i(r,o),r.Readable=n(400),r.Writable=n(1320),r.Duplex=n(1315),r.Transform=n(1319),r.PassThrough=n(1318),r.Stream=r,r.prototype.pipe=function(e,t){function n(t){e.writable&&!1===e.write(t)&&c.pause&&c.pause()}function r(){c.readable&&c.resume&&c.resume()}function i(){l||(l=!0,e.end())}function a(){l||(l=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(s(),0===o.listenerCount(this,"error"))throw e}function s(){c.removeListener("data",n),e.removeListener("drain",r),c.removeListener("end",i),c.removeListener("close",a),c.removeListener("error",u),e.removeListener("error",u),c.removeListener("end",s),c.removeListener("close",s),e.removeListener("close",s)}var c=this;c.on("data",n),e.on("drain",r),e._isStdio||t&&t.end===!1||(c.on("end",i),c.on("close",a));var l=!1;return c.on("error",u),e.on("error",u),c.on("end",s),c.on("close",s),e.on("close",s),e.emit("pipe",c),e}},function(e,t,n){var r=n(620);t.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},t.parse=function(e){return this._parser=e,this},t.timeout=function(e){return this._timeout=e,this},t.then=function(e,t){return this.end(function(n,r){n?t(n):e(r)})},t.use=function(e){return e(this),this},t.get=function(e){return this._header[e.toLowerCase()]},t.getHeader=t.get,t.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},t.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},t.field=function(e,t){return this._getFormData().append(e,t),this}},function(e,t){function n(e,t,n){return"function"==typeof n?new e("GET",t).end(n):2==arguments.length?new e("GET",t):new e(t,n)}e.exports=n},function(e,t,n){"use strict";(function(t){e.exports=n(1330)(t||window||this)}).call(t,n(36))},function(e,t){"use strict";e.exports=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}},function(e,t){"use strict";var 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.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===("undefined"==typeof e?"undefined"
var t=e.id;return t?"/message/messages/"+t:null}},t.a=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var a=n(66),u=n(20),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=a.a.Types,l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"makeUUID",value:function(e){return e.path}}]),t}(a.a);l.type=u.k,l.PROPERTIES={descriptionHTML:c.string,displayName:c.string,over18:c.bool,name:c.string,owner:c.string,url:c.string,icon:c.string,subredditCount:c.number},l.API_ALIASES={description_html:"descriptionHTML",display_name:"displayName",name:"name",path:"url",owner:"owner",over_18:"over18",icon_url:"icon"},l.DERIVED_PROPERTIES={subredditCount:function(e){var t=e.subreddits;return t?t.length:null}},t.a=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var a=n(66),u=n(20),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=a.a.Types,l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),s(t,[{key:"makeUUID",value:function(e){return e.path}}]),t}(a.a);l.type=u.j,l.PROPERTIES={contentHTML:c.string,contentMD:c.string,path:c.string,mayRevise:c.bool,revisionBy:c.nop,revisionDate:c.number},l.API_ALIASES={content_html:"contentHTML",content_md:"contentMD",may_revise:"mayRevise",revision_by:"revisionBy",revision_date:"revisionDate"},t.a=l},function(e,t,n){"use strict";t.a=function(e,t){Object.keys(t).map(function(n){e.prototype[n]=t[n]});var n=e.constructor;e.constructor=function(){var e=this;Object.keys(t).map(function(t){e[t]=e[t].bind(e)}),n.apply(void 0,arguments)}}},function(e,t,n){"use strict";function r(){return'<h1>This is a header or something</h1><sup><sup>TM</sup></sup><a href="https://www.reddit.com/r/reactjs">reactjs subreddit</a>'}t.a=r},function(e,t,n){"use strict";function r(){var e=Math.toFixed(10*Math.random());return e<=3?"https://www.reddit.com/r/theonion":e<=6?"https://www.reddit.com/r/nothteonion":"https://www.theonion.com"}t.a=r},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r="SET_API_REQUEST_HEADERS"},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}var o=n(7),i=n(10),a=n(55),u=n(143);n.d(t,"a",function(){return f});var s=this,c=function(e,t){t(o.e(i.a.GET,"/r/"+e,{}))},l=function(e,t){return!!t.subreddits[e]}
if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),v=function(e,t){var n=e.length;return n>1?n+" Communities":1===n?"1 Community":t?"Loading My Communities":"No Communities"},m=function(e,t,n){return h(f.a,{autoExpanded:!0,icon:"icon-settings",text:"My communities",subtext:v(e,t)},"communities-row",s()(e,function(e){var t=e.displayNamePrefixed.split("/"),r=p(t,2),o=r[0],i=r[1];return h(f.b,{href:e.url,icon:"OverlayMenu-icon-following-snoo",text:h("span",{},void 0,h("span",{className:"CommunityRow__rSlash"},void 0,o,"/"),i,e.over18?c.a:null),iconURL:e.iconImage,iconBackgroundColor:e.keyColor||"",theme:n},"OverlayMenu-row-subscription-"+e.url)}))},y=h(d.a,{}),g=h(f.b,{text:"Home",href:"/",icon:"icon-snoo-circled icon-xl orangered"},"front-page-row"),_=h(f.b,{text:"Popular",href:"/r/popular",icon:"icon-rising mint-circled-xl"},"popular-link"),b=h(f.b,{text:"All",href:"/r/all",icon:"icon-bar-chart orangered-circled-xl"},"all-link"),E=h(f.b,{text:"Popular",href:"/",icon:"icon-rising mint-circled-xl"},"popular-link"),T=h(f.b,{text:"All",href:"/r/all",icon:"icon-bar-chart orangered-circled-xl"},"all-link"),w=function(e){var t=e.user,n=e.subscriptions,r=e.subscriptionsLoading,i=e.theme;return h(l.a,{},void 0,y,t.loggedOut?o.a.Children.toArray([E,T]):o.a.Children.toArray([g,_,b]),m(n,r,i))},S=function(e){return e.subscribedSubreddits.subreddits},O=function(e){return e.subscribedSubreddits.fetching},P=function(e){return e.subreddits},R=function(e){return e.theme},I=function(e){return e.user},A=function(e,t){var n=e.displayName.toUpperCase(),r=t.displayName.toUpperCase();return n<r?-1:n>r?1:0},C=function(e,t,n,r,o){var i=s()(e,function(e){return n[e.uuid]});return i.sort(A),{subscriptions:i,subscriptionsLoading:t,theme:r,user:o}},x=n.i(a.createSelector)(S,O,P,R,I,C);t.a=n.i(i.connect)(x)(w)},function(e,t,n){"use strict";var r=n(1638),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(4)),u=(n.n(a),n(6)),s=n(654),c=n(423),l=n(5),f=n(289),d=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{!r&&u["return"]&&u["return"]()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),h=l.g.NIGHTMODE,v=function(e,t,n,r){var o=void 0;return n&&(o=r!==h||e?{backgroundColor:n}:{borderColor:n}),p(u.b,{className:"CommunityRow__icon",href:t},void 0,e?p("img",{className:"CommunityRow__iconImg",src:e,style:o}):p("div",{className:"CommunityRow__iconBlank",style:o}))},m=function(e){var t=e.accountsActive,n=e.displayNamePrefixed,r=e.over18,o=e.subscribers,i=e.url,a=n.split("/"),c=d(a,2),l=c[0],h=c[1];return p(u.b,{className:"CommunityRow__details",href:i},void 0,p("div",{className:"CommunityRow__name"},void 0,p("span",{className:"CommunityRow__rSlash"},void 0,l,"/"),h,r?s.a:null),p("div",{className:"CommunityRow__counts"},void 0,[o,t].filter(function(e){return!!e}).map(f.a).map(function(e,t){return 0===t?e+" followers":e+" online"}).join(" • ")))},y=p("button",{className:"CommunityRow__subscriptionButton icon icon-check-circled lime"}),g=p("button",{className:"CommunityRow__subscriptionButton icon icon-follow blue"}),_=function(e){return e?y:g},b=function(e){return p(c.a,{subredditName:e,className:"CommunityRow__add",renderBody:_})},E=function(e){var t=e.subreddit,n=e.theme;return p("div",{className:"CommunityRow"},v
var e=s.refs.HTML5StreamPlayerVideo;if(s.drawBufferBar(e),s.state.currentlyScrubbing!==!0){var t=s.state.totalServedTime;if(null!==s.state.lastUpdate&&s.videoIsPaused()===!1&&s.state.wasPlaying===!0&&(t+=performance.now()-s.state.lastUpdate),e.currentTime&&e.duration){s.setState({videoPosition:e.currentTime/e.duration*100,currentTime:s.secondsToMinutes(e.currentTime),totalTime:s.secondsToMinutes(e.duration),lastUpdate:performance.now(),totalServedTime:t,wasPlaying:!s.videoIsPaused(),scrubPosition:e.currentTime/e.duration*100}),s.trackVideoWatchedTime(t/1e3,e.duration);var n=e.currentTime===e.duration||s.didSeek&&s.state.scrubPosition>99;n&&s.sendTrackVideoWatchedPercent(100),s.props.onUpdatePostPlaytime(e.currentTime)}}},s.scrubEnd=function(){var e=s.refs.HTML5StreamPlayerVideo,t=s.refs.scrubberThumbnail;t.pause(),e.currentTime=e.duration/100*s.state.scrubPosition,s.sendTrackVideoEvent(g.I.SEEK),s.didSeek=!0,s.latestStartTime=e.currentTime,s.sendVideoSeekedStatus(),s.state.wasPlaying&&e.play(),s.setState({wasPlaying:!1,currentlyScrubbing:!1,videoPosition:s.state.scrubPosition}),s.updateTime()},s.scrubStart=function(){var e=s.refs.scrubBuffer;s.setState({currentlyScrubbing:!0,thumbPosition:(e.clientWidth-16)*s.state.videoPosition/100+2});var t=s.refs.HTML5StreamPlayerVideo;t.pause()},s.getPostId=function(){return s.props.postData.name},s.isPromoted=function(){return s.props.postData.promoted},s.state={videoScrollPaused:!1,videoMuted:!0,videoPosition:0,videoFullScreen:!1,debounceFunc:null,videoWasInView:!1,currentTime:"00:00",totalTime:"00:00",currentlyScrubbing:!1,scrubPosition:0,thumbPosition:0,mediaPlayer:null,videoLoaded:!1,autoPlay:!0,lastUpdate:null,totalServedTime:0,isLoading:!1,buffered:0},s.percentWatchedInterval=null,s.percentagePixelsTriggered=(a={},r(a,g.C,null),r(a,g.D,null),r(a,g.E,null),r(a,g.F,null),r(a,g.M,null),a),s.timePixelsTriggered=(u={},r(u,g.G,null),r(u,g.H,null),r(u,g.K,null),u),s.didSeek=!1,s.latestStartTime=0,s}return a(t,e),w(t,[{key:"getMobileOperatingSystem",value:function(){var e=navigator.userAgent||navigator.vendor||window.opera;return/android/i.test(e)?"Android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"iOS":"unknown"}},{key:"isIOS",value:function(){return"iOS"===this.getMobileOperatingSystem()}},{key:"isAndroid",value:function(){return"Android"===this.getMobileOperatingSystem()}},{key:"secondsToMinutes",value:function(e){var t=Math.floor(e/60).toString(),n=Math.trunc(e%60).toString();return 1===t.length&&(t="0"+t),1===n.length&&(n="0"+n),t+":"+n}},{key:"componentDidMount",value:function(){var e=this.refs.HTML5StreamPlayerVideo,t=d.a.MediaPlayerFactory.create(e);document.addEventListener("webkitfullscreenchange",this.exitHandler,!1),document.addEventListener("mozfullscreenchange",this.exitHandler,!1),document.addEventListener("fullscreenchange",this.exitHandler,!1),document.addEventListener("MSFullscreenChange",this.exitHandler,!1),e.addEventListener("canplay",this.videoDidLoad,!1),e.addEventListener("ended",this.updateTime,!1),e.readyState>=3?this.videoDidLoad():0===e.readyState&&this.isScrolledIntoView();try{t.setMaxAllowedBitrateFor("video",g.N)}catch(n){}this.drawBufferBar();var r=s()(this.isScrolledIntoView,50);window.addEventListener("scroll",r),this.trackVideoWatchedPercent(),this.setState({debounceFunc:r,mediaPlayer:t})}},{key:"componentWillMount",value:function(){this.props.postData.videoPlaytime&&this.setState({autoPlay:!1})}},{key:"componentWillUnmount",value:function(){this.state.totalServedTime>0&&this.sendTrackVideoEvent(g.I.SERVED_VIDEO,this.getPercentServed());var e=this.refs.HTML5StreamPlayerVideo;e.removeEventListener("canplay",this.videoDidLoad,!1),e.removeEventListener("ended",this.updateTime,!1),window.removeEventListener("scroll",this.state.debounceFunc),document.removeEventListener("webkitfullscreenchange",this.exitHandler,!1),document.removeEventListener("mozfullscreenchange",this.exitHandler,!1),document.removeEventListener("fullscreenchange",this.exitHandler,!1),document.removeEventListener("MSFullscreenChange",this.exitHandler,!1)}},{key:"componentDidUpdate"
className:"MessagesNav__icon icon "+o}),s("div",{className:"MessagesNav__text"},void 0,r))}},function(e,t,n){"use strict";function r(){return a("div",{className:"MessagesPost"},void 0)}var o=n(1663),i=(n.n(o),n(0));n.n(i);t.a=r;var a=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()},function(e,t,n){"use strict";function r(e){var t=e.messages,n=e.comments,r=e.posts,o=e.currentPage,i=e.mailData,a=e.mailType,u=i.meta,s=b(o,u),l=s.prevUrl,d=s.nextUrl;return m("div",{className:"Messages"},void 0,g,m("div",{className:"Messages__nav"},void 0,m(f.a,{currentMailType:a})),_,m("div",{className:"Messages__content"},void 0,i.order.map(function(e){var o=e.type,i=e.uuid;return m("div",{className:"Messages__item"},void 0,E(o,i,t,n,r))})),m(c.a,{compact:!0,preventUrlCreation:!0,prevUrl:l,nextUrl:d}))}var o=n(1664),i=(n.n(o),n(0)),a=n.n(i),u=n(3),s=(n.n(u),n(4)),c=(n.n(s),n(282)),l=n(1413),f=n(1415),d=n(1412),p=n(1414),h=n(1416),v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),y=a.a.PropTypes,g=m("div",{className:"Messages__header"},void 0,m(l.a,{})),_=m("div",{className:"Messages__divider"});r.propTypes={messages:y.object.isRequired,comments:y.object.isRequired,posts:y.object.isRequired,mailData:y.object.isRequired,mailType:y.string.isRequired};var b=function(e,t){var n=e.url,r=t.before,o=t.after,i={};return r&&(i.prevUrl=n+"?count=25&before="+r),o&&(i.nextUrl=n+"?count=25&after="+o),i},E=function(e,t,n,r,o){switch(e){case"comment":return m(d.a,{comment:r[t]});case"message":return m(p.a,{message:n[t]});case"post":return m(h.a,{post:o[t]});default:return null}},T=n.i(s.createSelector)(function(e){return e.messages},function(e){return e.comments.data},function(e){return e.posts},function(e){return e.platform.currentPage},function(e,t){return e.mail[t.urlParams.mailType]},function(e,t,n,r,o){return{messages:e,comments:t,posts:n,currentPage:r,mailData:o}}),w=function(e,t,n){return v({},e,t,{mailType:n.urlParams.mailType})};t.a=n.i(u.connect)(T,null,w)(r)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(3),a=(n.n(i),n(4)),u=(n.n(a),n(1436)),s=n(1437),c=n(146),l=n(179),f=function(e){switch(e.modal.type){case c.d:return o.a.createElement(u.a,e.modal);case l.d:return o.a.createElement(s.a,e.modal.props);default:return null}},d=n.i(a.createSelector)(function(e){return e.modal},function(e){return{modal:e}});t.a=n.i(i.connect)(d)(f)},function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arg
}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var a=n(0),u=n.n(a),s=n(1166),c=n.n(s),l=n(58),f=n.n(l),d=n(3),p=(n.n(d),n(4)),h=(n.n(p),n(63)),v=(n.n(h),n(6)),m=n(30),y=n(1603),g=n(652),_=n(1431),b=n(413),E=n(1680),T=(n.n(E),function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),w=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),S=u.a.PropTypes,O={self:"Text",link:"Link"},P="Select a community",R="Add an interesting title",I="Posting this link saves the image or gif to Reddit",A=/\b(gfycat\.com|imgur\.com)$/i,C=/\.(gif|jpeg|jpg|png|tiff)$/,x=T("div",{className:"PostSubmitModal__safeHarborText"},void 0,I),N=T("div",{className:"icon icon-nav-arrowdown"}),M=function(e){function t(){var e,i,a,u;r(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return i=a=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.isUrlScraped=function(e){var t=n.i(h.parse)(n.i(y.a)(e));return!(!t.hostname||!A.test(t.hostname))||!(!t.pathname||!C.test(t.pathname))},u=i,o(a,u)}return i(t,e),w(t,[{key:"render",value:function(){var e=this.props,t=e.meta,r=e.submissionType,o=e.readyToPost,i=e.onSubmit,a=e.onFieldUpdate,u=e.onRecaptchaLoaded,s=e.showCaptcha,c=e.onCloseCaptcha,l=e.title,f=O[r],d=n.i(m.a)("PostSubmitModal__submit-button",{ready:o}),p=this.isUrlScraped(t);return T(g.a,{exitTo:"/",titleText:f},void 0,T(v.c,{onSubmit:i,className:"PostSubmitModal"},void 0,T("div",{className:"PostSubmitModal__submit"},void 0,T("button",{type:"submit",className:d},void 0,"POST")),this.renderSubredditButton(),T("div",{className:"PostSubmitModal__title"},void 0,T("input",{value:l,placeholder:R,onChange:a.bind(this,"title")})),T("div",{className:"PostSubmitModal__content"},void 0,this.chooseContentInput(r))),s?T(_.a,{onCloseCaptcha:c,onRecaptchaLoaded:u,onSubmit:i}):null,p?x:null)}},{key:"chooseContentInput",value:function(){switch(this.props.submissionType){case"self":return this.renderTextInput();case"link":return this.renderLinkInput();default:return this.renderTextInput()}}},{key:"renderTextInput",value:function(){return T("div",{className:"PostSubmitModal__content-text"},void 0,T("textarea",{rows:"5",value:this.props.meta,placeholder:"Add your text...",onChange:this.props.onFieldUpdate.bind(this,"meta")}))}},{key:"renderLinkInput",value:function(){return T("div",{className:"PostSubmitModal__content-link"},void 0,T("input",{value:this.props.meta,placeholder:"Paste your link here...",onChange:this.props.onFieldUpdate.bind(this,"meta")}))}},{key:"renderSubredditButton",value:function(){var e=this.props,t=e.subreddit,r=t.name,o=t.iconUrl,i=e.submissionType,a=o?{backgroundImage:"url("+o+")"}:null,u=r?r:P,s=n.i(m.a)("PostSubmitModal__community-text",{greyed:!r});return T("div",{className:"PostSubmitModal__community"},void 0,T("div",{className:"PostSubmitModal__community-snoo-icon"},void 0,T("div",{className:"PostSubmitModal__community-snoo",style:a})),T(v.b,{href:"/submit/to_community?type="+i},void 0,T("div",{className:s},void 0,u,N)))}}]),t}(u.a.Component);M.propTypes={readyToPost:S.bool.isRequired,subreddit:S.object.isRequired,title:S.string.isRequired,meta:S.oneOfType([S.string,S.instanceOf(e.File)]).isRequired,showCaptcha:S.bool.isRequired,submissionType:S.string.isRequired,o
},function(e){return{rules:e}});t.a=n.i(s.connect)(_,o)(r)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}function a(e){e&&e.focus()}var u=n(1694),s=(n.n(u),n(0)),c=n.n(s),l=n(6),f=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=c.a.PropTypes,h=function(e){function t(e){r(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleResetInput=n.handleResetInput.bind(n),n}return i(t,e),d(t,[{key:"componentDidMount",value:function(){a(this.refs.input)}},{key:"handleResetInput",value:function(){this.refs.input.value="",a(this.refs.input)}},{key:"render",value:function(){var e=this.props,t=e.placeholder,n=e.initialValue,r=e.subreddit;return f(l.d,{className:"SearchBar",action:"/search"},void 0,f("input",{type:"hidden",name:"subreddit",value:r},"search-hidden"),c.a.createElement("input",{key:"search",className:"SearchBar__input",defaultValue:n,name:"q",placeholder:t,ref:"input",type:"search"}),f("div",{className:"SearchBar__reset icon icon-x-circled",onClick:this.handleResetInput}))}}]),t}(c.a.Component);h.propTypes={subreddit:p.string,initialValue:p.string,placeholder:p.string},h.defaultProps={subreddit:"",initialValue:"",placeholder:"Search Reddit"},t.a=h},function(e,t,n){"use strict";var r=n(1695),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(4)),u=(n.n(a),n(177)),s=n(281),c=n(1438),l=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=l("span",{className:"icon icon-nav-arrowback"}),d=function(e){var t=e.pageData,n=e.closeSearchBar,r=t.queryParams,o=t.urlParams,i=o.subredditName,a=r.q;return l(s.a,{fullscreen:!0,onCloseOverlay:n},void 0,l("div",{className:"SearchBarOverlay__searchArea"},void 0,l("div",{className:"SearchBarOverlay__close",onClick:n},void 0,f),l("div",{className:"SearchBarOverlay__barContainer"},void 0,l(c.a,{subreddit:i,initialValue:a?decodeURIComponent(a):""}))))};t.a=n.i(i.connect)(n.i(a.createSelector)(function(e){return e.platform.currentPage},function(e){return{pageData:e}}),function(e){return{closeSearchBar:function(){return e(u.i())}}})(d)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(3),a=(n.n(i),n(4)),u=(n.n(a),n(95)),s=n.n(u),c=n(1617),l=n(293),f=n(281),d=n(657),p=n(1382),h=n(1724),v=n.n(h),m=n(5),y=n(88),g=n(46),_=n(431),b=n(411),E=n(17),T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,
large:r,"m-safari":n.i(u.a)()}),href:t,style:{backgroundImage:"url('"+p(r)+"')"}}))};t.a=v(y)},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(1422)),i=n(147),a=n(5),u=n(1715),s=(n.n(u),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),c=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),l=a.g.NIGHTMODE,f=c(o.a,{}),d=c(i.a,{}),p=function(e){var t=e.subreddit,n=e.theme;return t?t.iconImage?c("div",{className:"Avatar",style:s({},n===l&&{borderColor:t.keyColor},{backgroundImage:"url('"+t.iconImage+"')"})}):f:d};t.a=p},function(e,t,n){"use strict";var r=n(0),o=(n.n(r),n(17)),i=n(1380),a=n(644),u=n(1453),s=n(438),c=n(1716),l=(n.n(c),function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}()),f=l(a.a,{}),d=l("h3",{className:"xPromoChat__title"},void 0,"Switch to the Reddit App"),p=l("p",{className:"xPromoChat__description"},void 0,"Get the Reddit app to view your chatrooms."),h=function(e){var t=e.appLink,r=e.subreddit,a=e.theme,c=r&&r.accountsActive;return l("div",{className:"xPromoChat"},void 0,l(i.a,{large:!0},void 0,l(u.a,{subreddit:r,theme:a}),f),d,p,!!c&&l("div",{className:"xPromoChat__activeUsers"},void 0,l("img",{className:"xPromoChat__usersIcon",src:o.a.assetPath+"/img/snoovatars.png"}),l("span",{className:"xPromoChat__number"},void 0,n.i(s.a)(c)+" active members")),l("a",{className:"xPromoChat__button",href:t},void 0,"Join reddit chat"))};t.a=h},function(e,t,n){"use strict";var r=n(1718),o=(n.n(r),n(0)),i=(n.n(o),n(3)),a=(n.n(i),n(89)),u=n(57),s=n(5),c=n(46),l=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),f=function(e){return{isOptOut:n.i(c.g)(e),isWikiPage:n.i(a.g)(e),link:n.i(u.j)(e,e.platform.currentPage.url,{tags:[s.t[s.c.TOPBUTTON]],utm_content:s.t[s.c.TOPBUTTON]})}},d=function(e){var t=e.isOptOut,n=e.isWikiPage,r=e.link;return t||n?null:l("a",{className:"TopButton",href:r},void 0,"USE APP")};t.a=n.i(i.connect)(f)(d)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var a=n(0),u=n.n(a),s=n(3),c=(n.n(s),n(372)),l=n.n(c),f=n(4),d=(n.n(f),n(1618)),p=n(43),h=n(46),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(e){function t(e){
var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.e:case r.h:var n=t.payload.continueThreadObjects;return i({},e,n);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(20),i=n(48),a=n(73),u=n(117),s=n(8),c=n(217),l=n(87),f=n(145),d=n(118),p=n(180),h=n(213),v=n(116),m=n(115),y=n(184),g=n(284),_=n(9),b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case s.b:case s.c:return E;case i.e:case a.h:var T=t.payload.comments;return b({},e,T);case u.c:var w=t.model;return b({},e,r({},w.uuid,w));case a.i:case a.j:var S=t.comment;return n.i(y.a)(e,r({},S.uuid,S));case m.e:case v.e:case h.b:case p.b:case d.b:case l.c:var O=t.apiResponse.comments;return n.i(y.a)(e,O);case a.k:var P=t.model;return n.i(_.a)(e,r({},P.uuid,P));case c.b:case c.c:return n.i(g.a)(e,t,{restrictType:o.a});case f.j:var R=t.thing,I=t.username;return R.type===o.a?n.i(g.a)(e,{model:R.set({approved:!0,removed:!1,spam:!1,approvedBy:I})}):e;case f.k:var A=t.thing,C=t.spam,x=t.username;return A.type===o.a?n.i(g.a)(e,{model:A.set({approved:!1,removed:!C,spam:C,bannedBy:x})}):e;case f.l:var N=t.thing,M=t.distinguishType;return N.type===o.a?n.i(g.a)(e,{model:N.set({distinguished:M})}):e;case f.m:var k=t.thing,D=t.isStickied;return k.type!==o.a?e:n.i(g.a)(e,{model:k.set({stickied:D})});default:return e}}},function(e,t,n){"use strict";var r=n(212),o=(n.n(r),n(1480)),i=n(1481),a=n(1482),u=n(1484),s=n(1485),c=n(1479);t.a=n.i(r.combineReducers)({collapsed:o.a,continueThread:i.a,data:a.a,loadMore:u.a,loadMorePending:s.a,ad:c.a})},function(e,t,n){"use strict";var r=n(73),o=n(48),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.e:case r.h:var n=t.payload.commentLoadMoreObjects;return i({},e,n);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(73),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.l:var n=t.payload.loadMoreId;return i({},e,r({},n,!0));case o.h:case o.m:var u=t.payload.loadMoreId;return i({},e,r({},u,!1));default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(48),i=n(8),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:case i.c:return u;case o.e:var n=t.payload,s=n.pageId,c=n.response;return a({},e,r({},s,{responseCode:c.status,pending:!1,errors:{}}));case o.h:var l=t.payload,f=l.commentsPageId,d=l.error,p=d&&d.status?d.status:500;return a({},e,r({},f,{responseCode:p,errors:d,pending:!1}));case o.i:var h=t.payload.commentsPageId;return a({},e,r({},h,{pending:!0,errors:{}}));default:return e}}},fun
switch(t.type){case i.b:case i.c:return s;case a.c:var c=t.name,l=e[c];return l&&l.loading?e:n.i(o.a)(e,r({},c,n.i(u.a)(c)));case a.b:var f=t.name,d=e[f];return d&&d.loading?n.i(o.a)(e,r({},f,{loading:!1})):e;case a.d:var p=t.name,h=e[p];return h&&h.loading?n.i(o.a)(e,r({},p,{loading:!1,failed:!0})):e;default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8),i=n(215),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case o.b:case o.c:return u;case i.b:var n=t.subredditName,s=t.subredditRules;return a(r({},n,s),e);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(215),a=n(1461),u={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.c:var s=t.subredditName,c=e[s];return c&&c.loading?e:n.i(o.a)(e,r({},s,n.i(a.a)(s)));case i.b:var l=t.subredditName,f=e[l];return f&&f.loading?n.i(o.a)(e,r({},l,{loading:!1})):e;case i.d:var d=t.subredditName,p=e[d];return p&&p.loading?n.i(o.a)(e,r({},d,{loading:!1,failed:!0})):e;default:return e}}},function(e,t,n){"use strict";var r=n(184),o=n(284),i=n(86),a=n(8),u=n(636),s=n(277),c=n(118),l=n(55),f=n(216),d={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case a.b:case a.c:return d;case i.c:case u.a:case c.b:case s.c:case f.c:var p=t.apiResponse.subreddits;return n.i(r.a)(e,p);case l.b:case f.d:return n.i(o.a)(e,t);default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(277),a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.c:return n.i(o.a)(e,r({},t.postId,t.apiResponse.results.map(function(e){return e.uuid})));default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(278),a={};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.c:return n.i(o.a)(e,r({},t.postId,t.apiResponse.results.map(function(e){return e.uuid})));default:return e}}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(9),i=n(8),a=n(118),u=n(55),s=n(216),c=n(1462),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n.i(c.a)(),d=function(e,t){var n=Object.keys(t);if(!n.length)return e;var r=l({},e.subreddits),o=!1;return n.forEach(function(e){var n=t[e];!n.userIsSubscriber&&r[e]?(o=!0,delete r[e]):n.userIsSubscriber&&!r[e]&&(o=!0,r[e]=n.toRecord())}),o?l({},e,{subreddits:r}):e};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case i.b:case i.c:return f;case s.e:return e.fetching?e:n.i(o.a)(e,{fetching:!0});case s.c:var c=t.apiResponse,p=c.results.reduce(function(e,t){return l({},e,r({},t.uuid,t))},{});return n.i(o.a)(e,{subreddits:p,loaded:!0});case a.b:if(!e.loaded)return e;var h=t.apiResponse.subreddits;return d(e,h);case u.b:case s.d:if(!e.loaded)return e;var v=t.model;return d(e,r({},v.uuid,v));default:r
}var u=n(10),s=n(415),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:u.a.POST,value:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e(n.i(s.a)());case 1:case"end":return t.stop()}},o,this)}));return e}()}]),t}(u.b);t.a=l},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var u=n(20),s=n(10),c=n(7),l=n(179),f=n(55),d=n(5),p=n(74),h=n(75),v=n(26);n.d(t,"a",function(){return y}),n.d(t,"b",function(){return g});var m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),m(t,[{key:s.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r,i,a,s,f,m,y,g,_,b;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t(),r.session.isValid){o.next=4;break}return e(c.a(d.B)),o.abrupt("return");case 4:return o.next=6,n.i(h.a)(e);case 6:if(n.i(v.a)(t()),i=r.platform.currentPage.urlParams.subredditName,a="rules_modal_on_submit",s=l.a(a,i),!r.platform.shell){o.next=12;break}return o.abrupt("return");case 12:if(i){o.next=14;break}return o.abrupt("return");case 14:if(!r.rulesModal[s]){o.next=16;break}return o.abrupt("return");case 16:if(f=p.a.withContext({state:r}),m=f.enabled(d.h.RULES_MODAL_ON_SUBMIT_CLICK_ANYWHERE),y=f.enabled(d.h.RULES_MODAL_ON_SUBMIT_CLICK_BUTTON),m||y){o.next=21;break}return o.abrupt("return");case 21:g=y,_=u.d,b=function(e){return e(c.e("get","/r/"+i))},e(l.b(a,i,_,g,b));case 25:case"end":return o.stop()}},o,this)}));return e}()}]),t}(s.b),g=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),m(t,[{key:s.a.GET,value:function(){function e(e,n){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function o(e,t){var r;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r=t(),r.session.isValid){o.next=4;break}return e(c.a(d.B)),o.abrupt("return");case 4:return r.recentSubreddits.forEach(function(t){e(f.a(t))}),o.next=7,n.i(h.a)(e);case 7:n.i(v.a)(t());case 8:case"end":return o.stop()}},o,this)}));return e}()}]),t}(s.b)},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),u=a.value}catch(s){return void n(s)}return a.done?void e(u):Promise.resolve(u).then(function(e){r("next",e)},function(e){r("throw",e)})}return r("next")})}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}fu
value:function(){window.addEventListener("scroll",this.callMeasureScrollPosition)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.callMeasureScrollPosition)}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"callMeasureScrollPosition",value:function(){f()(this.measureScrollPosition)}},{key:"measureScrollPosition",value:function(){this.setState({scrollY:document.body.scrollTop})}},{key:"componentWillReceiveProps",value:function(e){if(e.url!==this.state.url){this.props.onSaveScrollPosition(this.state.url,this.state.scrollY);var t=e.url,n=e.scrollY;this.setState({url:t,scrollY:n}),f()(function(){document.body.scrollTop=n})}}},{key:"render",value:function(){return null}}]),t}(u.a.Component),m=function(e){return n.i(d.b)(e)},y=n.i(c.createSelector)(function(e){return m(e.platform.currentPage)},function(e){var t=e.scrollPositions,n=e.platform.currentPage;return t[m(n)]||0},function(e,t){return{url:e,scrollY:t}}),g=function(e){return{onSaveScrollPosition:function(t,n){e(p.a(t,n))}}};t.a=n.i(s.connect)(y,g)(v)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var a=n(0),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(1612)),f=n(638),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=3e5,h=function(e){function t(){var e,n,i,a;r(this,t);for(var u=arguments.length,s=Array(u),c=0;c<u;c++)s[c]=arguments[c];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.refreshTimer=null,a=n,o(i,a)}return i(t,e),d(t,[{key:"componentDidMount",value:function(){var e=this;this.refreshSession(),n.i(l.a)(function(){return e.refreshSession({expiredOnly:!0})})}},{key:"componentDidUpdate",value:function(){this.startRefreshTimer()}},{key:"startRefreshTimer",value:function(){var e=this;clearTimeout(this.refreshTimer);var t=Math.max(.9*(this.props.session.expires-Date.now()),p);this.refreshTimer=setTimeout(function(){return e.refreshSession()},t)}},{key:"refreshSession",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.expiredOnly,n=void 0!==t&&t;if(this.props.session.refreshToken){if(n&&this.props.session.isValid)return;this.props.refreshSession()}}},{key:"render",value:function(){return null}}]),t}(u.a.Component),v=n.i(c.createSelector)(function(e){return e.session},function(e){return{session:e}}),m=function(e){return{refreshSession:function(){return e(f.a())}}};t.a=n.i(s.connect)(v,m)(h)},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var a=n(0),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(63)),f=n.n(l),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}
url:g,urlParams:_,queryParams:b,hashParams:E,status:S,referrer:O};return c({},e,{currentPageIndex:e.currentPageIndex+1,history:P.concat([R]),currentPage:R});case s.c:var I=t.payload.pageIndex;return c({},e,{currentPageIndex:I,currentPage:e.history[I]});case s.j:return n.i(a.a)(e,{shell:t.shell});default:return e}}},function(e,t,n){"use strict";function r(e,t,n,r){var o="undefined"!=typeof history&&history.back&&history.state,a=e&&e.length>1&&e.length>t;if(o&&a){var u=e[t-1];if(i()(u.url,n)&&i()(u.queryParams,r))return!0}return!1}var o=n(368),i=n.n(o);t.a=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof 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)}var a=n(0),u=n.n(a),s=n(3),c=(n.n(s),n(4)),l=(n.n(c),n(583)),f=n.n(l);n.d(t,"a",function(){return v}),n.d(t,"b",function(){return g});var d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=u.a.PropTypes,h=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.exec,n=e.pageProperties;return t(n)}}]),t}(u.a.Component);h.propTypes={url:p.string.isRequired,exec:p.func.isRequired,pageProperties:p.object};var v=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.component,n=e.pageProperties;return u.a.createElement(t,n)}}]),t}(u.a.Component);v.propTypes={url:p.string.isRequired,pageProperties:p.object};var m=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),d(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.currentPage,r=Array.isArray(t)?t:[t],o=null,i=!0,a=!1,s=void 0;try{for(var c,l=r[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var d=c.value,p=d.props.url,h=f()(p),v=h.exec(n.url);if(v){o=d;break}}}catch(m){a=!0,s=m}finally{try{!i&&l["return"]&&l["return"]()}finally{if(a)throw s}}return!!o&&u.a.cloneElement(o,{pageProperties:n})}}]),t}(u.a.Component);m.propTypes={children:p.oneOfType([p.arrayOf(p.element),p.object]),currentPage:p.object.isRequired};var y=n.i(c.createSelector)(function(e){return e.platform.currentPage},function(e){return{currentPage:e}}),g=n.i(s.connect)(y)(m)},function(e,t,n){"use strict";var r=n(5);n.d(t,"a",function(){return i});var o=r.g.DAYMODE,i=function(e){return e===o?"dayMode":"nightMode"}},function(e,t,n){(function(t){!function(t){"use strict";function n(e,t,n,r){var i=t&&t.prototype instanceof o?t:o,a=Object.create(i.prototype),u=new p(r||[]);return a._invoke=c(e,n,u),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}function o(){}function i(){}function a(){}function u(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function s(e){function n(t,o,i,a){var u=r(e[t],e,o);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&g.call(c,"__await")?Promise.resolve(c.__await).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):Promise.resolve(c).then(function(e){s.value=e,i(s)},a)}a(u.arg)}function o(e,t){function r(){return new Promise(function(r,o){n(e,t,r,o)})}return i=i?i.then(r,r):r()}"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n));var i;this._invoke=o}function c(e,t
var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var u in i)void 0===n[u]&&(n[u]=i[u]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var s=Array(a),c=0;c<a;c++)s[c]=arguments[c+3];n.children=s}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),B=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H=Date.now(),q=void 0;window.onload=function(){var e=Date.now();n.i(I.a)(H,e,q),n.i(w.b)(),n.i(S.d)()};var V={log:E.a.postErrorURL,hivemind:E.a.statsURL},G={SHOULD_RETHROW:!1},W=function(){var e=window.location,t=e.pathname,n=e.search,r=e.hash;return""+t+n+r},K=function(){return{userAgent:window.navigator.userAgent,requestUrl:W()}},Y=function(){},z=window.onerror||Y;window.onerror=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0],i=t[1],a=t[2],u=t[3],s=t[4];n.i(T.a)(B({},K(),{error:s,message:o,url:i,line:a,column:u}),V,G),z.apply(void 0,t)},window.onunhandledrejection=function(e){n.i(T.a)(B({},K(),{rejection:e}),V,G)};var X=n.i(c.a)({routes:O.a,reducers:P.a,reduxMiddleware:R.a,modifyData:function(e){if(u()(e.session)||(e.session=new A.a(e.session),window.session=e.session),e.preferences=C.a.fromJSON(e.preferences),e.meta.env="CLIENT",n.i(s.a)()){try{var t=window.localStorage.collapsedComments;void 0!==t&&(e.comments.collapsed=JSON.parse(t))}catch(r){console.warn(r)}try{var o=window.localStorage.expandedPosts;void 0!==o&&(e.expandedPosts=JSON.parse(o))}catch(r){console.warn(r)}try{var i=window.localStorage.visitedPosts;void 0!==i&&(i.startsWith("[")?e.visitedPosts=JSON.parse(i):e.visitedPosts=i.split(","))}catch(r){console.warn(r)}try{var a=window.localStorage.optOuts;void 0!==a&&(e.optOuts=JSON.parse(a))}catch(r){console.warn(r)}try{var c=window.localStorage.rulesModal;void 0!==c&&(e.rulesModal=JSON.parse(c))}catch(r){console.warn(r)}try{var l=window.localStorage.pwaInstalledTimestamp;void 0!==l&&(e.pwaInstalledTimestamp=JSON.parse(l))}catch(r){console.warn(r)}}return e},appComponent:U(b.a,{}),debug:!1,onHandlerComplete:I.b})();n.i(M.b)({dispatch:X.dispatch},X.getState().contextKey),q=X.getState().platform.shell,X.dispatch(l.o());var $=n.i(L.b)();X.dispatch(d.f($));var Q=X.getState();if(Q.pwaInstalled){var J={pwa:n.i(D.c)(Q)};n.i(f.a)(n.i(D.b)(X.getState(),"global","view","screen",J))}(Q.pwaInstalled||n.i(_.e)(Q))&&X.dispatch(n.i(v.b)()),q&&!$&&X.dispatch(x.a()),X.dispatch(n.i(h.I)()),X.dispatch(p.h()),Q=X.getState();var Z=n.i(g.i)(Q);n.i(k.p)(Q),n.i(N.a)().then(function(e){e&&X.dispatch(l.p())}),Z&&X.dispatch(n.i(m.a)(y.Y)),p.i.link=function(e,t){return F.a.link(e,t)}}]);
//# sourceMappingURL=ProductionClient.62deff0b1c9fbf3af019.js.map