!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=46)}([function(e,t,n){"use strict";e.exports=n(54)},function(e,t,n){var r; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;tr.createElement("span",{className:i.default("icon_rour3d",e.className,e.display||"inline"),onClick:e.onClick},"number"==typeof e.badge?r.createElement(a.default,{count:e.badge}):null,r.createElement("svg",{className:"icon"},e.title?r.createElement("title",null,e.title):null,r.createElement("use",{xlinkHref:"#icon-"+e.name})))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiscordInviteLink=void 0;const r=n(0),i=n(1),a=n(2),o=n(11),s=n(19),l=n(14),u=n(9);function c(e){return"string"==typeof e.href}function d(e){return"number"==typeof e.screen}class h extends r.Component{constructor(){super(...arguments),this._handleClick=e=>{e.preventDefault(),null!=this.props.stopPropagation&&!1!==this.props.stopPropagation&&e.stopPropagation(),"busy"!==this.props.state&&"disabled"!==this.props.state&&(c(this.props)?this.props.onClick(this.props.href):d(this.props)?this.props.onClick({key:this.props.screen,params:this.props.params}):this.props.onClick())}}render(){var e;const t=i.default("link_ke15oa",this.props.className,{disabled:"disabled"===this.props.state,busy:"busy"===this.props.state}),n=null!==(e=this.props.text)&&void 0!==e?e:this.props.children,h=r.createElement(r.Fragment,null,"busy"===this.props.state?r.createElement(o.default,{key:"spinner"}):this.props.iconLeft?r.createElement(a.default,{className:"icon-left",badge:this.props.badge,key:"icon-left",name:this.props.iconLeft}):null,n?r.createElement("span",null,n):null,this.props.iconRight?r.createElement(a.default,{className:"icon-right",badge:this.props.badge,key:"icon-right",name:this.props.iconRight}):null,null!=this.props.badge?r.createElement(s.default,{count:this.props.badge}):null),p=c(this.props)?this.props.href:d(this.props)?l.findRouteByKey(u.default,this.props.screen).createUrl(this.props.params):null;return p?r.createElement("a",{onAnimationEnd:this.props.onAnimationEnd,className:t,href:p,onClick:this._handleClick},h):r.createElement("span",{onAnimationEnd:this.props.onAnimationEnd,className:t,onClick:this._handleClick},h)}}t.default=h,t.DiscordInviteLink=e=>r.createElement(h,{onClick:e.onClick,href:"https://discord.gg/XQZa8pHdVs"},e.children)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(1),a=n(2),o=n(11),s=n(19);class l extends r.PureComponent{constructor(){super(...arguments),this._click=e=>{this.props.href&&this.props.hrefPreventDefault&&e.preventDefault(),this.props.stopPropagation&&e.stopPropagation(),!this.props.onClick||this.props.state&&"normal"!==this.props.state&&"selected"!==this.props.state||this.props.onClick(e)}}render(){let e,t;switch(this.props.state){case"busy":e=r.createElement(o.default,null);break;case"set":e=r.createElement(a.default,{name:"checkmark"})}"number"==typeof this.props.badge&&(t=this.props.badge);const n={children:r.createElement(r.Fragment,null,this.props.iconLeft?r.createElement(a.default,{badge:t,name:this.props.iconLeft}):null,r.createElement("span",{className:"text"},this.props.text,!t||this.props.iconLeft||this.props.iconRight?"beta"===this.props.badge?r.createElement("span",{className:"beta-badge"},"Beta"):null:r.createElement(s.default,{count:t})),this.props.iconRight?r.createElement(a.default,{badge:t,name:this.props.iconRight}):null,e?r.createElement("span",{className:"overlay"},e):null),className:i.default("button_ovrlmi",this.props.className,this.props.style,this.props.size,this.props.display,this.props.align,this.props.intent,this.props.state,{indicator:this.props.showIndicator,overlay:!!e}),onClick:this._click,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave};return this.props.href?r.createElement("a",Object.assign({},Object.assign(Object.assign({},n),{href:this.props.href}))):r.createElement("button",Object.assign({},n))}}t.default=l,l.defaultProps={align:"left",display:"inline",hrefPreventDefault:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapPromiseErrorToResultIfNotCancelled=t.getPromiseErrorMessage=t.generateRandomString=t.pad=t.formatCountable=t.formatPossessive=t.truncateText=t.formatTimestamp=t.formatProblemDetails=t.formatList=t.formatFetchable=t.formatIsoDateAsUtc=t.formatIsoDateAsDotNet=t.formatCurrency=void 0;const r=n(26),i=n(51);function a(e){var t;return null!==(t=e.detail)&&void 0!==t?t:e.title}function o(e){return e?r.isProblemDetails(e)?a(e):Array.isArray(e)&&"string"==typeof e[0]?e[0]:"message"in e?e.message:"string"==typeof e?e:"An unknown error occurred.":"An unknown error occurred."}t.formatCurrency=function(e){return(e/100).toLocaleString("en-US",{style:"currency",currency:"usd"})},t.formatIsoDateAsDotNet=function(e){return e.replace(/z$/i,"")},t.formatIsoDateAsUtc=function(e){return e.endsWith("Z")?e:e+"Z"},t.formatFetchable=function(e,t,n,r){return e.isLoading?n:e.errors?r:t(e.value)},t.formatList=function(e){return e&&0!==e.length?1===e.length?e[0]:`${e.slice(0,e.length-1).join(", ")} & ${e[e.length-1]}`:""},t.formatProblemDetails=a,t.formatTimestamp=function(e){return!e||e.length<10?e:parseInt(e.substr(5,2))+"/"+parseInt(e.substr(8,2))+"/"+e.substr(2,2)},t.truncateText=function(e,t){return e&&e.length>t?e.substring(0,t-1)+"…":e},t.formatPossessive=function(e){return`${e}'${e.endsWith("s")?"":"s"}`},t.formatCountable=function(e,t,n){return 1===e?t:n||t+"s"},t.pad=function(e,t,n,r){for(;n.lengthe+t.toString(16),"")},t.getPromiseErrorMessage=o,t.mapPromiseErrorToResultIfNotCancelled=function(e,t){var n;(null===(n=e)||void 0===n?void 0:n.isCancelled)||t({type:i.ResultType.Failure,error:o(e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this._animationFrameHandles=[],this._cancellationTokens=[],this._cancellationDelegates=[],this._intervalHandles=[],this._timeoutHandles=[]}createCancellationToken(e){const t={isCancelled:!1,tag:e};return this._cancellationTokens.push(t),t}removeCancellationToken(e){this._cancellationTokens.splice(this._cancellationTokens.indexOf(e,1))}addAnimationFrame(e){return this._animationFrameHandles.push(e),e}addCallback(e,t){const n=this.createCancellationToken(t);return t=>{this.removeCancellationToken(n),n.isCancelled||e(t)}}addCancellationDelegate(...e){this._cancellationDelegates.splice(this._cancellationDelegates.length-1,0,...e)}addInterval(e){return this._intervalHandles.push(e),e}addPromise(e,t){const n=this.createCancellationToken(t);return new Promise((t,r)=>e.then(e=>{this.removeCancellationToken(n),n.isCancelled?r({isCancelled:!0}):t(e)}).catch(e=>{this.removeCancellationToken(n),n.isCancelled?r({isCancelled:!0}):r(e)}))}addTimeout(e){return this._timeoutHandles.push(e),e}cancelAll(e){if(e)this._cancellationTokens.forEach(t=>{t.tag===e&&(t.isCancelled=!0)});else{for(;this._animationFrameHandles.length;)window.cancelAnimationFrame(this._animationFrameHandles.splice(0,1)[0]);for(;this._cancellationDelegates.length;)this._cancellationDelegates.splice(0,1)[0]();for(this._cancellationTokens.forEach(e=>{e.isCancelled=!0});this._intervalHandles.length;)window.clearInterval(this._intervalHandles.splice(0,1)[0]);for(;this._timeoutHandles.length;)window.clearTimeout(this._timeoutHandles.splice(0,1)[0])}}removeCancellationDelegate(e){const t=this._cancellationDelegates.findIndex(t=>t===e);t>-1&&this._cancellationDelegates.splice(t,1)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unroutableQueryStringKeys=t.subscribeQueryStringKey=t.referrerUrlQueryStringKey=t.marketingVariantQueryStringKey=t.marketingScreenVariantQueryStringKey=t.messageQueryStringKey=t.extensionInstalledQueryStringKey=t.authenticateQueryStringKey=t.deviceTypeQueryStringKey=t.clientTypeQueryStringKey=t.authServiceTokenQueryStringKey=t.appVersion=t.appReferralQueryStringKey=t.appPlatformQueryStringKey=t.createQueryString=t.parseQueryString=void 0,t.parseQueryString=function(e){return e?(e.startsWith("?")&&(e=e.substring(1)),e.split("&").reduce((e,t)=>{const n=t.split("=");return e[decodeURIComponent(n[0])]=decodeURIComponent(n[1]),e},{})):{}},t.createQueryString=function(e){if(e){const t=Object.keys(e).reduce((t,n)=>{const r=encodeURIComponent(n),i=e[n];return null==i?t.push(r):"string"==typeof i||"number"==typeof i||"boolean"==typeof i?t.push(r+"="+encodeURIComponent(i)):Array.isArray(i)&&i.forEach(e=>{t.push(r+"="+encodeURIComponent(e))}),t},[]);if(t.length)return"?"+t.join("&")}return""},t.appPlatformQueryStringKey="appPlatform",t.appReferralQueryStringKey="appReferral",t.appVersion="appVersion",t.authServiceTokenQueryStringKey="authServiceToken",t.clientTypeQueryStringKey="clientType",t.deviceTypeQueryStringKey="deviceType",t.authenticateQueryStringKey="authenticate",t.extensionInstalledQueryStringKey="extensionInstalled",t.messageQueryStringKey="message",t.marketingScreenVariantQueryStringKey="marketingScreenVariant",t.marketingVariantQueryStringKey="marketingVariant",t.referrerUrlQueryStringKey="referrerUrl",t.subscribeQueryStringKey="subscribe",t.unroutableQueryStringKeys=[t.appPlatformQueryStringKey,t.appReferralQueryStringKey,t.appVersion,t.clientTypeQueryStringKey,t.deviceTypeQueryStringKey,t.messageQueryStringKey,t.marketingScreenVariantQueryStringKey,t.marketingVariantQueryStringKey,t.referrerUrlQueryStringKey,t.subscribeQueryStringKey]},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Apple=0]="Apple",e[e.Twitter=1]="Twitter"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createArticleSlug=void 0;const r=n(78),i=n(15),a=n(79),o=n(7),s=[{createUrl:()=>"/",pathRegExp:/^\/$/,screenKey:i.default.Home},{createUrl:()=>"/about",pathRegExp:/^\/about$/,screenKey:i.default.About},{createUrl:e=>`/?reset-password&email=${e.email}&token=${e.token}`,dialogKey:r.default.ResetPassword,pathRegExp:/^\/$/,queryStringKeys:["reset-password","email","token"],screenKey:i.default.Home},{createUrl:e=>`/?${o.authServiceTokenQueryStringKey}=${e[o.authServiceTokenQueryStringKey]}`,dialogKey:r.default.CreateAuthServiceAccount,pathRegExp:/^\/$/,queryStringKeys:[o.authServiceTokenQueryStringKey],screenKey:i.default.Home},{createUrl:e=>`/?${o.authenticateQueryStringKey}=${e[o.authenticateQueryStringKey]}`,dialogKey:r.default.Authenticate,pathRegExp:/^\/$/,queryStringKeys:[o.authenticateQueryStringKey],screenKey:i.default.Home},{createUrl:()=>"/?"+o.extensionInstalledQueryStringKey,dialogKey:r.default.ExtensionInstalled,pathRegExp:/^\/$/,queryStringKeys:[o.extensionInstalledQueryStringKey],screenKey:i.default.Home},{authLevel:a.default.Admin,createUrl:()=>"/admin",pathRegExp:/^\/admin$/,screenKey:i.default.Admin},{createUrl:()=>"/aotd/history",pathRegExp:/^\/aotd\/history$/,screenKey:i.default.AotdHistory},{createUrl:()=>"/top-articles-of-all-time",pathRegExp:/^\/top-articles-of-all-time$/,screenKey:i.default.BestEver},{createUrl:()=>"/blog",noIndex:()=>!0,pathRegExp:/^\/blog$/,screenKey:i.default.Blog},function(){const e=/^\/comments\/([^/]+)\/([^/]+)(?:\/([^/]+))?$/;return{createUrl:e=>{let t=`/comments/${e.sourceSlug}/${e.articleSlug}`;return e.commentId&&(t+="/"+e.commentId),t},getPathParams:t=>{const[,n,r,i]=t.match(e);let a={articleSlug:r,sourceSlug:n};return null!=i&&(a.commentId=i),a},pathRegExp:e,screenKey:i.default.Comments}}(),{createUrl:()=>"/contenders",pathRegExp:/^\/contenders$/,screenKey:i.default.Contenders},{createUrl:e=>"/email/confirm/"+e.result,noIndex:()=>!0,pathRegExp:/^\/email\/confirm\/([^/]+)$/,screenKey:i.default.EmailConfirmation},{createUrl:e=>"/email/subscriptions?token="+e.token,noIndex:()=>!0,pathRegExp:/^\/email\/subscriptions$/,queryStringKeys:["token"],screenKey:i.default.EmailSubscriptions},{createUrl:()=>"/extension/uninstall",noIndex:()=>!0,pathRegExp:/^\/extension\/uninstall$/,screenKey:i.default.ExtensionRemoval},{createUrl:e=>"/extension/uninstall?installationId="+e.installationId,noIndex:()=>!0,pathRegExp:/^\/extension\/uninstall$/,queryStringKeys:["installationId"],screenKey:i.default.ExtensionRemoval},{createUrl:()=>"/faq",pathRegExp:/^\/faq$/,screenKey:i.default.Faq},{createUrl:()=>"/my-feed",pathRegExp:/^\/my-feed$/,screenKey:i.default.MyFeed},function(){const e=/^\/leaderboards\/?(writers|readers)?$/;return{createUrl:e=>!e||"writers"!==e.view&&"readers"!==e.view?"/leaderboards/writers":"/leaderboards/"+e.view,getPathParams:t=>{const[,n]=t.match(e);return{view:"readers"===n?n:"writers"}},pathRegExp:e,screenKey:i.default.Leaderboards}}(),{authLevel:a.default.Regular,createUrl:()=>"/notifications",pathRegExp:/^\/notifications$/,screenKey:i.default.Notifications},function(){const e=/^\/(starred|history)$/;return{createUrl:e=>!e||"starred"!==e.view&&"history"!==e.view?"/starred":"/"+e.view,getPathParams:t=>{const[,n]=t.match(e);return{view:"history"===n?n:"starred"}},pathRegExp:e,screenKey:i.default.MyReads}}(),{createUrl:e=>`/password/${e.action}/${e.result}`,noIndex:()=>!0,pathRegExp:/^\/password\/([^/]+)\/([^/]+)$/,screenKey:i.default.Password},{createUrl:()=>"/privacy",pathRegExp:/^\/privacy$/,screenKey:i.default.PrivacyPolicy},function(){const e=/^\/@([^/]+)(?:\/(comment|post)\/([^/]+))?$/;return{createUrl:e=>{let t="/@"+e.userName;return e.highlightedType&&("comment"===e.highlightedType||"post"===e.highlightedType)&&e.highlightedId&&(t+=`/${e.highlightedType}/${e.highlightedId}`),t},getPathParams:t=>{const[,n,r,i]=t.match(e),a={userName:n};return"comment"!==r&&"post"!==r||(a.highlightedType=r),i&&(a.highlightedId=i),a},pathRegExp:e,screenKey:i.default.Profile}}(),function(){const e=/^\/read\/([^/]+)\/([^/]+)$/;return{createUrl:e=>`/read/${e.sourceSlug}/${e.articleSlug}`,getPathParams:t=>{const[,n,r]=t.match(e);return{articleSlug:r,sourceSlug:n}},noIndex:()=>!0,pathRegExp:e,screenKey:i.default.Read}}(),{authLevel:a.default.Regular,createUrl:()=>"/search",pathRegExp:/^\/search$/,screenKey:i.default.Search},{authLevel:a.default.Regular,createUrl:()=>"/settings",pathRegExp:/^\/settings$/,screenKey:i.default.Settings},{authLevel:a.default.Regular,createUrl:()=>"/stats",pathRegExp:/^\/stats$/,screenKey:i.default.Stats},function(){const e=/^\/writers\/([^/]+)$/;return{createUrl:e=>"/writers/"+e.slug,getPathParams:t=>({slug:decodeURIComponent(t.match(e)[1])}),pathRegExp:e,screenKey:i.default.Author}}()];t.default=s,t.createArticleSlug=function(e){return e.sourceSlug+"_"+e.articleSlug}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Intent=void 0;const r=n(0),i=n(1);var a;!function(e){e[e.Success=0]="Success",e[e.Danger=1]="Danger",e[e.Neutral=2]="Neutral"}(a=t.Intent||(t.Intent={}));const o={[a.Success]:"success",[a.Danger]:"danger",[a.Neutral]:"neutral"};class s extends r.PureComponent{constructor(){super(...arguments),this._removeToast=e=>{"toaster_2zbeib-pop-out"===e.animationName&&this.props.onRemoveToast(parseInt(e.currentTarget.getAttribute("data-timeout-handle")))}}render(){return r.createElement("div",{className:"toaster_2zbeib"},r.createElement("ul",{className:"toasts"},this.props.toasts.map(e=>r.createElement("li",{className:i.default("toast",o[e.intent],{remove:e.remove}),key:e.timeoutHandle,"data-timeout-handle":e.timeoutHandle,onAnimationEnd:this._removeToast},e.content))))}}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(2),a=n(1);t.default=e=>r.createElement(i.default,{badge:!1,className:a.default("spinner-icon_6s5uk2",e.className),name:"spinner"})},function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(c(Error)),f=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return a(t,e),t}(p),m=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return a(t,e),t}(p),g=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return a(t,e),t}(p),v=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(p),y=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return a(t,e),t}(p),b=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(p),_=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return a(t,e),t}(p),w="numeric",E="short",S="long",k={year:w,month:w,day:w},C={year:w,month:E,day:w},x={year:w,month:E,day:w,weekday:E},T={year:w,month:S,day:w},M={year:w,month:S,day:w,weekday:S},D={hour:w,minute:w},A={hour:w,minute:w,second:w},N={hour:w,minute:w,second:w,timeZoneName:E},P={hour:w,minute:w,second:w,timeZoneName:S},O={hour:w,minute:w,hour12:!1},L={hour:w,minute:w,second:w,hour12:!1},z={hour:w,minute:w,second:w,hour12:!1,timeZoneName:E},F={hour:w,minute:w,second:w,hour12:!1,timeZoneName:S},R={year:w,month:w,day:w,hour:w,minute:w},I={year:w,month:w,day:w,hour:w,minute:w,second:w},j={year:w,month:E,day:w,hour:w,minute:w},B={year:w,month:E,day:w,hour:w,minute:w,second:w},q={year:w,month:E,day:w,weekday:E,hour:w,minute:w},U={year:w,month:S,day:w,hour:w,minute:w,timeZoneName:E},V={year:w,month:S,day:w,hour:w,minute:w,second:w,timeZoneName:E},H={year:w,month:S,day:w,weekday:S,hour:w,minute:w,timeZoneName:S},W={year:w,month:S,day:w,weekday:S,hour:w,minute:w,second:w,timeZoneName:S};function $(e){return void 0===e}function Z(e){return"number"==typeof e}function K(e){return"number"==typeof e&&e%1==0}function Q(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function G(){return!$(Intl.DateTimeFormat.prototype.formatToParts)}function Y(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function J(e,t,n){if(0!==e.length)return e.reduce((function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function X(e,t){return t.reduce((function(t,n){return t[n]=e[n],t}),{})}function ee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function te(e,t,n){return K(e)&&e>=t&&e<=n}function ne(e,t){void 0===t&&(t=2);var n=e<0?"-":"",r=n?-1*e:e;return""+n+(r.toString().length=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ce(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function de(e){return e>99?e:e>60?1900+e:2e3+e}function he(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),a={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);var o=Object.assign({timeZoneName:t},a),s=Q();if(s&&G()){var l=new Intl.DateTimeFormat(n,o).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return l?l.value:null}if(s){var u=new Intl.DateTimeFormat(n,a).format(i);return new Intl.DateTimeFormat(n,o).format(i).substring(u.length).replace(/^[, \u200e]+/,"")}return null}function pe(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function fe(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new b("Invalid unit value "+e);return t}function me(e,t,n){var r={};for(var i in e)if(ee(e,i)){if(n.indexOf(i)>=0)continue;var a=e[i];if(null==a)continue;r[t(i)]=fe(a)}return r}function ge(e,t){var n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+ne(n,2)+":"+ne(r,2);case"narrow":return""+i+n+(r>0?":"+r:"");case"techie":return""+i+ne(n,2)+ne(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function ve(e){return X(e,["hour","minute","second","millisecond"])}var ye=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function be(e){return JSON.stringify(e,Object.keys(e).sort())}var _e=["January","February","March","April","May","June","July","August","September","October","November","December"],we=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ee=["J","F","M","A","M","J","J","A","S","O","N","D"];function Se(e){switch(e){case"narrow":return Ee;case"short":return we;case"long":return _e;case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var ke=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ce=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],xe=["M","T","W","T","F","S","S"];function Te(e){switch(e){case"narrow":return xe;case"short":return Ce;case"long":return ke;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Me=["AM","PM"],De=["Before Christ","Anno Domini"],Ae=["BC","AD"],Ne=["B","A"];function Pe(e){switch(e){case"narrow":return Ne;case"short":return Ae;case"long":return De;default:return null}}function Oe(e,t){for(var n,r="",i=h(e);!(n=i()).done;){var a=n.value;a.literal?r+=a.val:r+=t(a.val)}return r}var Le={D:k,DD:C,DDD:T,DDDD:M,t:D,tt:A,ttt:N,tttt:P,T:O,TT:L,TTT:z,TTTT:F,f:R,ff:j,fff:U,ffff:H,F:I,FF:B,FFF:V,FFFF:W},ze=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],a=0;a0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:!1,val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return Le[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return ne(e,t);var n=Object.assign({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),a=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&G(),o=function(e,n){return r.loc.extract(t,e,n)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},l=function(){return i?function(e){return Me[e.hour<12?0:1]}(t):o({hour:"numeric",hour12:!0},"dayperiod")},u=function(e,n){return i?function(e,t){return Se(t)[e.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,n){return i?function(e,t){return Te(t)[e.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},d=function(e){return i?function(e,t){return Pe(t)[e.year<0?0:1]}(t,e):o({era:e},"era")};return Oe(e.parseFormat(n),(function(n){switch(n){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return s({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return l();case"d":return a?o({day:"numeric"},"day"):r.num(t.day);case"dd":return a?o({day:"2-digit"},"day"):r.num(t.day,2);case"c":return r.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return r.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return a?o({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return a?o({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return a?o({month:"numeric"},"month"):r.num(t.month);case"MM":return a?o({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return a?o({year:"numeric"},"year"):r.num(t.year);case"yy":return a?o({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return a?o({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return a?o({year:"numeric"},"year"):r.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n}(n)}}))},t.formatDurationFromString=function(t,n){var r,i=this,a=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=e.parseFormat(n),s=o.reduce((function(e,t){var n=t.literal,r=t.val;return n?e:e.concat(r)}),[]),l=t.shiftTo.apply(t,s.map(a).filter((function(e){return e})));return Oe(o,(r=l,function(e){var t=a(e);return t?i.num(r.get(t),e.length):e}))},e}(),Fe=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Re=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new _},t.formatOffset=function(e,t){throw new _},t.offset=function(e){throw new _},t.equals=function(e){throw new _},i(e,[{key:"type",get:function(){throw new _}},{key:"name",get:function(){throw new _}},{key:"universal",get:function(){throw new _}},{key:"isValid",get:function(){throw new _}}]),e}(),Ie=null,je=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.offsetName=function(e,t){return he(e,t.format,t.locale)},n.formatOffset=function(e,t){return ge(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},i(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return Q()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Ie&&(Ie=new t),Ie}}]),t}(Re),Be=RegExp("^"+ye.source+"$"),qe={};var Ue={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ve={},He=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}a(t,e),t.create=function(e){return Ve[e]||(Ve[e]=new t(e)),Ve[e]},t.resetCache=function(){Ve={},qe={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Be))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var n=t.prototype;return n.offsetName=function(e,t){return he(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return ge(this.offset(e),t)},n.offset=function(e){var t,n=new Date(e),r=(t=this.name,qe[t]||(qe[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),qe[t]),i=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i=0?c:1e3+c))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},i(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Re),We=null,$e=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}a(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(pe(n[1],n[2]))}return null},i(t,null,[{key:"utcInstance",get:function(){return null===We&&(We=new t(0)),We}}]);var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return ge(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},i(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+ge(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Re),Ze=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}a(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},i(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Re);function Ke(e,t){var n;if($(e)||null===e)return t;if(e instanceof Re)return e;if("string"==typeof e){var r=e.toLowerCase();return"local"===r?t:"utc"===r||"gmt"===r?$e.utcInstance:null!=(n=He.parseGMTOffset(e))?$e.instance(n):He.isValidSpecifier(r)?He.create(e):$e.parseSpecifier(r)||new Ze(e)}return Z(e)?$e.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Ze(e)}var Qe=function(){return Date.now()},Ge=null,Ye=null,Je=null,Xe=null,et=!1,tt=function(){function e(){}return e.resetCaches=function(){ht.resetCache(),He.resetCache()},i(e,null,[{key:"now",get:function(){return Qe},set:function(e){Qe=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){Ge=e?Ke(e):null}},{key:"defaultZone",get:function(){return Ge||je.instance}},{key:"defaultLocale",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultNumberingSystem",get:function(){return Je},set:function(e){Je=e}},{key:"defaultOutputCalendar",get:function(){return Xe},set:function(e){Xe=e}},{key:"throwOnInvalid",get:function(){return et},set:function(e){et=e}}]),e}(),nt={};function rt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=nt[n];return r||(r=new Intl.DateTimeFormat(e,t),nt[n]=r),r}var it={};var at={};function ot(e,t){void 0===t&&(t={});var n=t,r=(n.base,function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(n,["base"])),i=JSON.stringify([e,r]),a=at[i];return a||(a=new Intl.RelativeTimeFormat(e,t),at[i]=a),a}var st=null;function lt(e,t,n,r,i){var a=e.listingMode(n);return"error"===a?null:"en"===a?r(t):i(t)}var ut=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&Q()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=it[n];return r||(r=new Intl.NumberFormat(e,t),it[n]=r),r}(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return ne(this.floor?Math.floor(e):ae(e,3),this.padTo)},e}(),ct=function(){function e(e,t,n){var r;if(this.opts=n,this.hasIntl=Q(),e.zone.universal&&this.hasIntl){var i=e.offset/60*-1;i>=-14&&i<=12&&i%1==0?(r=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:cr.fromMillis(e.ts+60*e.offset*1e3))}else"local"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);if(this.hasIntl){var a=Object.assign({},this.opts);r&&(a.timeZone=r),this.dtf=rt(t,a)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){switch(be(X(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case be(k):return"M/d/yyyy";case be(C):return"LLL d, yyyy";case be(x):return"EEE, LLL d, yyyy";case be(T):return"LLLL d, yyyy";case be(M):return"EEEE, LLLL d, yyyy";case be(D):return"h:mm a";case be(A):return"h:mm:ss a";case be(N):case be(P):return"h:mm a";case be(O):return"HH:mm";case be(L):return"HH:mm:ss";case be(z):case be(F):return"HH:mm";case be(R):return"M/d/yyyy, h:mm a";case be(j):return"LLL d, yyyy, h:mm a";case be(U):return"LLLL d, yyyy, h:mm a";case be(H):return"EEEE, LLLL d, yyyy, h:mm a";case be(I):return"M/d/yyyy, h:mm:ss a";case be(B):return"LLL d, yyyy, h:mm:ss a";case be(q):return"EEE, d LLL yyyy, h:mm a";case be(V):return"LLLL d, yyyy, h:mm:ss a";case be(W):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return"EEEE, LLLL d, yyyy, h:mm a"}}(this.opts),t=ht.create("en-US");return ze.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&G()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),dt=function(){function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&Y()&&(this.rtf=ot(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&a){var o="days"===e;switch(t){case 1:return o?"tomorrow":"next "+i[e][0];case-1:return o?"yesterday":"last "+i[e][0];case 0:return o?"today":"this "+i[e][0]}}var s=Object.is(t,-0)||t<0,l=Math.abs(t),u=1===l,c=i[e],d=r?u?c[1]:c[2]||c[1]:u?i[e][0]:e;return s?l+" "+d+" ago":"in "+l+" "+d}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),ht=function(){function e(e,t,n,r){var i=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=rt(e).resolvedOptions()}catch(e){n=rt(r).resolvedOptions()}var i=n;return[r,i.numberingSystem,i.calendar]}(e),a=i[0],o=i[1],s=i[2];this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=n||s||null,this.intl=function(e,t,n){return Q()?n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var a=t||tt.defaultLocale;return new e(a||(i?"en-US":function(){if(st)return st;if(Q()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return st=e&&"und"!==e?e:"en-US"}return st="en-US"}()),n||tt.defaultNumberingSystem,r||tt.defaultOutputCalendar,a)},e.resetCache=function(){st=null,nt={},it={},at={}},e.fromObject=function(t){var n=void 0===t?{}:t,r=n.locale,i=n.numberingSystem,a=n.outputCalendar;return e.create(r,i,a)};var t=e.prototype;return t.listingMode=function(e){void 0===e&&(e=!0);var t=Q()&&G(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),lt(this,e,n,Se,(function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=cr.utc(2016,n,1);t.push(e(r))}return t}((function(e){return r.extract(e,n,"month")}))),r.monthsCache[i][e]}))},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),lt(this,e,n,Te,(function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=cr.utc(2016,11,13+n);t.push(e(r))}return t}((function(e){return r.extract(e,n,"weekday")}))),r.weekdaysCache[i][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),lt(this,void 0,e,(function(){return Me}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hour12:!0};t.meridiemCache=[cr.utc(2016,11,13,9),cr.utc(2016,11,13,19)].map((function(n){return t.extract(n,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),lt(this,e,t,Pe,(function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[cr.utc(-40,1,1),cr.utc(2017,1,1)].map((function(e){return n.extract(e,t,"era")}))),n.eraCache[e]}))},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===n}));return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new ut(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ct(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new dt(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Q()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||Q()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function pt(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r3?ke.indexOf(e)+1:Ce.indexOf(e)+1),s}var zt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ft(e){var t,n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],d=e[10],h=e[11],p=Lt(n,a,i,r,o,s,l);return t=u?Ot[u]:c?0:pe(d,h),[p,new $e(t)]}var Rt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,It=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,jt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Bt(e){var t=e[1],n=e[2],r=e[3];return[Lt(t,e[4],r,n,e[5],e[6],e[7]),$e.utcInstance]}function qt(e){var t=e[1],n=e[2],r=e[3],i=e[4],a=e[5],o=e[6];return[Lt(t,e[7],n,r,i,a,o),$e.utcInstance]}var Ut=pt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,_t),Vt=pt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,_t),Ht=pt(/(\d{4})-?(\d{3})/,_t),Wt=pt(bt),$t=ft(xt,Tt,Mt),Zt=ft(wt,Tt,Mt),Kt=ft(Et,Tt),Qt=ft(Tt,Mt);var Gt=ft(Tt);var Yt=pt(/(\d{4})-(\d\d)-(\d\d)/,kt),Jt=pt(St),Xt=ft(xt,Tt,Mt,Dt),en=ft(Tt,Mt,Dt);var tn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},nn=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},tn),rn=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},tn),an=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],on=an.slice(0).reverse();function sn(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new un(r)}function ln(e,t,n,r,i){var a=e[i][n],o=t[n]/a,s=!(Math.sign(o)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(o)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(o):Math.trunc(o);r[i]+=s,t[n]-=s*a}var un=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||ht.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?rn:nn,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject(Object.assign({milliseconds:t},n))},e.fromObject=function(t){if(null==t||"object"!=typeof t)throw new b("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:me(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:ht.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,n){var r=function(e){return mt(e,[Nt,Pt])}(t)[0];if(r){var i=Object.assign(r,n);return e.fromObject(i)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(t,n){var r=function(e){return mt(e,[At,Gt])}(t)[0];if(r){var i=Object.assign(r,n);return e.fromObject(i)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new b("need to specify a reason the Duration is invalid");var r=t instanceof Fe?t:new Fe(t,n);if(tt.throwOnInvalid)throw new g(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new y(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?ze.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ae(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));var i=n.toFormat(r);return e.includePrefix&&(i="T"+i),i},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(e){if(!this.isValid)return this;for(var t,n=cn(e),r={},i=h(an);!(t=i()).done;){var a=t.value;(ee(n.values,a)||ee(this.values,a))&&(r[a]=n.get(a)+this.get(a))}return sn(this,{values:r},!0)},t.minus=function(e){if(!this.isValid)return this;var t=cn(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n=0){i=c;var d=0;for(var p in s)d+=this.matrix[p][c]*s[p],s[p]=0;Z(l[c])&&(d+=l[c]);var f=Math.trunc(d);for(var m in o[c]=f,s[c]=d-f,l)an.indexOf(m)>an.indexOf(c)&&ln(this.matrix,l,m,o,c)}else Z(l[c])&&(s[c]=l[c])}for(var g in s)0!==s[g]&&(o[i]+=g===i?s[g]:s[g]/this.matrix[i][g]);return sn(this,{values:o},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},t.set=function(t){var n=void 0===t?{}:t,r=n.start,i=n.end;return this.isValid?e.fromDateTimes(r||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i+this.e?this.e:u;o.push(e.fromDateTimes(s,c)),s=c,l+=1}return o},t.splitBy=function(t){var n=cn(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i,a=this.s,o=[];a+this.e?this.e:r,o.push(e.fromDateTimes(a,i)),a=i;return o},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e)},t.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.er?null:e.fromDateTimes(n,r)},t.union=function(t){if(!this.isValid)return this;var n=this.st.e?this.e:t.e;return e.fromDateTimes(n,r)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]}),[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,a=0,o=[],s=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),l=h((n=Array.prototype).concat.apply(n,s).sort((function(e,t){return e.time-t.time})));!(r=l()).done;){var u=r.value;1===(a+="s"===u.type?1:-1)?i=u.time:(i&&+i!=+u.time&&o.push(e.fromDateTimes(i,u.time)),i=null)}return e.merge(o)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i=0){var d;r=u;var h,p=c(e,t);if((i=e.plus(((d={})[u]=p,d)))>t)e=e.plus(((h={})[u]=p-1,h)),p-=1;else e=i;a[u]=p}}return[e,a,i,r]}(e,t,n),a=i[0],o=i[1],s=i[2],l=i[3],u=t-a,c=n.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));if(0===c.length){var d;if(s0?(h=un.fromMillis(u,r)).shiftTo.apply(h,c).plus(p):p}var vn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},yn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},bn=vn.hanidec.replace(/[\[|\]]/g,"").split("");function _n(e,t){var n=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+vn[n||"latn"]+t)}function wn(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var n=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var n=0;n=o&&r<=s&&(t+=r-o)}}return parseInt(t,10)}return t}(n))}}}var En="( |"+String.fromCharCode(160)+")",Sn=new RegExp(En,"g");function kn(e){return e.replace(/\./g,"\\.?").replace(Sn,En)}function Cn(e){return e.replace(/\./g,"").replace(Sn," ").toLowerCase()}function xn(e,t){return null===e?null:{regex:RegExp(e.map(kn).join("|")),deser:function(n){var r=n[0];return e.findIndex((function(e){return Cn(r)===Cn(e)}))+t}}}function Tn(e,t){return{regex:e,deser:function(e){return pe(e[1],e[2])},groups:t}}function Mn(e){return{regex:e,deser:function(e){return e[0]}}}var Dn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var An=null;function Nn(e,t){if(e.literal)return e;var n=ze.macroTokenToFormatOpts(e.val);if(!n)return e;var r=ze.create(t,n).formatDateTimeParts((An||(An=cr.fromMillis(1555555555555)),An)).map((function(e){return function(e,t,n){var r=e.type,i=e.value;if("literal"===r)return{literal:!0,val:i};var a=n[r],o=Dn[r];return"object"==typeof o&&(o=o[a]),o?{literal:!1,val:o}:void 0}(e,0,n)}));return r.includes(void 0)?e:r}function Pn(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map((function(e){return Nn(e,t)})))}(ze.parseFormat(n),e),i=r.map((function(t){return n=t,i=_n(r=e),a=_n(r,"{2}"),o=_n(r,"{3}"),s=_n(r,"{4}"),l=_n(r,"{6}"),u=_n(r,"{1,2}"),c=_n(r,"{1,3}"),d=_n(r,"{1,6}"),h=_n(r,"{1,9}"),p=_n(r,"{2,4}"),f=_n(r,"{4,6}"),m=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(g=function(e){if(n.literal)return m(e);switch(e.val){case"G":return xn(r.eras("short",!1),0);case"GG":return xn(r.eras("long",!1),0);case"y":return wn(d);case"yy":return wn(p,de);case"yyyy":return wn(s);case"yyyyy":return wn(f);case"yyyyyy":return wn(l);case"M":return wn(u);case"MM":return wn(a);case"MMM":return xn(r.months("short",!0,!1),1);case"MMMM":return xn(r.months("long",!0,!1),1);case"L":return wn(u);case"LL":return wn(a);case"LLL":return xn(r.months("short",!1,!1),1);case"LLLL":return xn(r.months("long",!1,!1),1);case"d":return wn(u);case"dd":return wn(a);case"o":return wn(c);case"ooo":return wn(o);case"HH":return wn(a);case"H":return wn(u);case"hh":return wn(a);case"h":return wn(u);case"mm":return wn(a);case"m":case"q":return wn(u);case"qq":return wn(a);case"s":return wn(u);case"ss":return wn(a);case"S":return wn(c);case"SSS":return wn(o);case"u":return Mn(h);case"a":return xn(r.meridiems(),0);case"kkkk":return wn(s);case"kk":return wn(p,de);case"W":return wn(u);case"WW":return wn(a);case"E":case"c":return wn(i);case"EEE":return xn(r.weekdays("short",!1,!1),1);case"EEEE":return xn(r.weekdays("long",!1,!1),1);case"ccc":return xn(r.weekdays("short",!0,!1),1);case"cccc":return xn(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Tn(new RegExp("([+-]"+u.source+")(?::("+a.source+"))?"),2);case"ZZZ":return Tn(new RegExp("([+-]"+u.source+")("+a.source+")?"),2);case"z":return Mn(/[a-z_+-/]{1,256}?/i);default:return m(e)}}(n)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=n,g;var n,r,i,a,o,s,l,u,c,d,h,p,f,m,g})),a=i.find((function(e){return e.invalidReason}));if(a)return{input:t,tokens:r,invalidReason:a.invalidReason};var o=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(i),s=o[0],l=o[1],u=RegExp(s,"i"),c=function(e,t,n){var r=e.match(t);if(r){var i={},a=1;for(var o in n)if(ee(n,o)){var s=n[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(a,a+l))),a+=l}return[r,i]}return[r,{}]}(t,u,l),d=c[0],h=c[1],p=h?function(e){var t;return t=$(e.Z)?$(e.z)?null:He.create(e.z):new $e(e.Z),$(e.q)||(e.M=3*(e.q-1)+1),$(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),$(e.u)||(e.S=ie(e.u)),[Object.keys(e).reduce((function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t}),{}),t]}(h):[null,null],f=p[0],m=p[1];if(ee(h,"a")&&ee(h,"H"))throw new v("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:u,rawMatches:d,matches:h,result:f,zone:m}}var On=[0,31,59,90,120,151,181,212,243,273,304,334],Ln=[0,31,60,91,121,152,182,213,244,274,305,335];function zn(e,t){return new Fe("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Fn(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function Rn(e,t,n){return n+(oe(e)?Ln:On)[t-1]}function In(e,t){var n=oe(e)?Ln:On,r=n.findIndex((function(e){return ece(n)?(t=n+1,s=1):t=n,Object.assign({weekYear:t,weekNumber:s,weekday:o},ve(e))}function Bn(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,a=Fn(n,1,4),o=se(n),s=7*r+i-a-3;s<1?s+=se(t=n-1):s>o?(t=n+1,s-=se(n)):t=n;var l=In(t,s),u=l.month,c=l.day;return Object.assign({year:t,month:u,day:c},ve(e))}function qn(e){var t=e.year,n=Rn(t,e.month,e.day);return Object.assign({year:t,ordinal:n},ve(e))}function Un(e){var t=e.year,n=In(t,e.ordinal),r=n.month,i=n.day;return Object.assign({year:t,month:r,day:i},ve(e))}function Vn(e){var t=K(e.year),n=te(e.month,1,12),r=te(e.day,1,le(e.year,e.month));return t?n?!r&&zn("day",e.day):zn("month",e.month):zn("year",e.year)}function Hn(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,a=te(t,0,23)||24===t&&0===n&&0===r&&0===i,o=te(n,0,59),s=te(r,0,59),l=te(i,0,999);return a?o?s?!l&&zn("millisecond",i):zn("second",r):zn("minute",n):zn("hour",t)}function Wn(e){return new Fe("unsupported zone",'the zone "'+e.name+'" is not supported')}function $n(e){return null===e.weekData&&(e.weekData=jn(e.c)),e.weekData}function Zn(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new cr(Object.assign({},n,t,{old:n}))}function Kn(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;var a=n.offset(r);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}function Qn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Gn(e,t,n){return Kn(ue(e),t,n)}function Yn(e,t){var n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a=Object.assign({},e.c,{year:r,month:i,day:Math.min(e.c.day,le(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),o=un.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Kn(ue(a),n,e.zone),l=s[0],u=s[1];return 0!==o&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function Jn(e,t,n,r,i){var a=n.setZone,o=n.zone;if(e&&0!==Object.keys(e).length){var s=t||o,l=cr.fromObject(Object.assign(e,n,{zone:s,setZone:void 0}));return a?l:l.setZone(o)}return cr.invalid(new Fe("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function Xn(e,t,n){return void 0===n&&(n=!0),e.isValid?ze.create(ht.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function er(e,t){var n=t.suppressSeconds,r=void 0!==n&&n,i=t.suppressMilliseconds,a=void 0!==i&&i,o=t.includeOffset,s=t.includePrefix,l=void 0!==s&&s,u=t.includeZone,c=void 0!==u&&u,d=t.spaceZone,h=void 0!==d&&d,p=t.format,f=void 0===p?"extended":p,m="basic"===f?"HHmm":"HH:mm";r&&0===e.second&&0===e.millisecond||(m+="basic"===f?"ss":":ss",a&&0===e.millisecond||(m+=".SSS")),(c||o)&&h&&(m+=" "),c?m+="z":o&&(m+="basic"===f?"ZZZ":"ZZ");var g=Xn(e,m);return l&&(g="T"+g),g}var tr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},nr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},rr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ir=["year","month","day","hour","minute","second","millisecond"],ar=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],or=["year","ordinal","hour","minute","second","millisecond"];function sr(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new y(e);return t}function lr(e,t){for(var n,r=h(ir);!(n=r()).done;){var i=n.value;$(e[i])&&(e[i]=tr[i])}var a=Vn(e)||Hn(e);if(a)return cr.invalid(a);var o=tt.now(),s=Gn(e,t.offset(o),t),l=s[0],u=s[1];return new cr({ts:l,zone:t,o:u})}function ur(e,t,n){var r=!!$(n.round)||n.round,i=function(e,i){return e=ae(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},a=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(a(n.unit),n.unit);for(var o,s=h(n.units);!(o=s()).done;){var l=o.value,u=a(l);if(Math.abs(u)>=1)return i(u,l)}return i(0,n.units[n.units.length-1])}var cr=function(){function e(e){var t=e.zone||tt.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Fe("invalid input"):null)||(t.isValid?null:Wn(t));this.ts=$(e.ts)?tt.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var a=[e.old.c,e.old.o];r=a[0],i=a[1]}else{var o=t.offset(this.ts);r=Qn(this.ts,o),r=(n=Number.isNaN(r.year)?new Fe("invalid input"):null)?null:r,i=n?null:o}this._zone=t,this.loc=e.loc||ht.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(t,n,r,i,a,o,s){return $(t)?new e({}):lr({year:t,month:n,day:r,hour:i,minute:a,second:o,millisecond:s},tt.defaultZone)},e.utc=function(t,n,r,i,a,o,s){return $(t)?new e({ts:tt.now(),zone:$e.utcInstance}):lr({year:t,month:n,day:r,hour:i,minute:a,second:o,millisecond:s},$e.utcInstance)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r,i=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var a=Ke(n.zone,tt.defaultZone);return a.isValid?new e({ts:i,zone:a,loc:ht.fromObject(n)}):e.invalid(Wn(a))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),Z(t))return t<-864e13||t>864e13?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ke(n.zone,tt.defaultZone),loc:ht.fromObject(n)});throw new b("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),Z(t))return new e({ts:1e3*t,zone:Ke(n.zone,tt.defaultZone),loc:ht.fromObject(n)});throw new b("fromSeconds requires a numerical input")},e.fromObject=function(t){var n=Ke(t.zone,tt.defaultZone);if(!n.isValid)return e.invalid(Wn(n));var r=tt.now(),i=n.offset(r),a=me(t,sr,["zone","locale","outputCalendar","numberingSystem"]),o=!$(a.ordinal),s=!$(a.year),l=!$(a.month)||!$(a.day),u=s||l,c=a.weekYear||a.weekNumber,d=ht.fromObject(t);if((u||o)&&c)throw new v("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new v("Can't mix ordinal dates with month/day");var p,f,m=c||a.weekday&&!u,g=Qn(r,i);m?(p=ar,f=nr,g=jn(g)):o?(p=or,f=rr,g=qn(g)):(p=ir,f=tr);for(var y,b=!1,_=h(p);!(y=_()).done;){var w=y.value;$(a[w])?a[w]=b?f[w]:g[w]:b=!0}var E=(m?function(e){var t=K(e.weekYear),n=te(e.weekNumber,1,ce(e.weekYear)),r=te(e.weekday,1,7);return t?n?!r&&zn("weekday",e.weekday):zn("week",e.week):zn("weekYear",e.weekYear)}(a):o?function(e){var t=K(e.year),n=te(e.ordinal,1,se(e.year));return t?!n&&zn("ordinal",e.ordinal):zn("year",e.year)}(a):Vn(a))||Hn(a);if(E)return e.invalid(E);var S=Gn(m?Bn(a):o?Un(a):a,i,n),k=new e({ts:S[0],zone:n,o:S[1],loc:d});return a.weekday&&u&&t.weekday!==k.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+a.weekday+" and a date of "+k.toISO()):k},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return mt(e,[Ut,$t],[Vt,Zt],[Ht,Kt],[Wt,Qt])}(e);return Jn(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return mt(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[zt,Ft])}(e);return Jn(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return mt(e,[Rt,Bt],[It,Bt],[jt,qt])}(e);return Jn(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),$(t)||$(n))throw new b("fromFormat requires an input string and a format");var i=r,a=i.locale,o=void 0===a?null:a,s=i.numberingSystem,l=void 0===s?null:s,u=function(e,t,n){var r=Pn(e,t,n);return[r.result,r.zone,r.invalidReason]}(ht.fromOpts({locale:o,numberingSystem:l,defaultToEN:!0}),t,n),c=u[0],d=u[1],h=u[2];return h?e.invalid(h):Jn(c,d,r,"format "+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return mt(e,[Yt,Xt],[Jt,en])}(e);return Jn(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new b("need to specify a reason the DateTime is invalid");var r=t instanceof Fe?t:new Fe(t,n);if(tt.throwOnInvalid)throw new f(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=ze.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone($e.instance(e),t)},t.toLocal=function(){return this.setZone(tt.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,a=void 0!==i&&i,o=r.keepCalendarTime,s=void 0!==o&&o;if((t=Ke(t,tt.defaultZone)).equals(this.zone))return this;if(t.isValid){var l=this.ts;if(a||s){var u=t.offset(this.ts);l=Gn(this.toObject(),u,t)[0]}return Zn(this,{ts:l,zone:t})}return e.invalid(Wn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,n=t.locale,r=t.numberingSystem,i=t.outputCalendar;return Zn(this,{loc:this.loc.clone({locale:n,numberingSystem:r,outputCalendar:i})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=me(e,sr,[]);!$(n.weekYear)||!$(n.weekNumber)||!$(n.weekday)?t=Bn(Object.assign(jn(this.c),n)):$(n.ordinal)?(t=Object.assign(this.toObject(),n),$(n.day)&&(t.day=Math.min(le(t.year,t.month),t.day))):t=Un(Object.assign(qn(this.c),n));var r=Gn(t,this.o,this.zone);return Zn(this,{ts:r[0],o:r[1]})},t.plus=function(e){return this.isValid?Zn(this,Yn(this,cn(e))):this},t.minus=function(e){return this.isValid?Zn(this,Yn(this,cn(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=un.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?ze.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):"Invalid DateTime"},t.toLocaleString=function(e){return void 0===e&&(e=k),this.isValid?ze.create(this.loc.clone(e),e).formatDateTime(this):"Invalid DateTime"},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?ze.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),Xn(this,n)},t.toISOWeekDate=function(){return Xn(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=void 0!==n&&n,i=t.suppressSeconds,a=void 0!==i&&i,o=t.includeOffset,s=void 0===o||o,l=t.includePrefix,u=void 0!==l&&l,c=t.format;return er(this,{suppressSeconds:a,suppressMilliseconds:r,includeOffset:s,includePrefix:u,format:void 0===c?"extended":c})},t.toRFC2822=function(){return Xn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Xn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Xn(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=void 0===n||n,i=t.includeZone;return er(this,{includeOffset:r,includeZone:void 0!==i&&i,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():"Invalid DateTime"},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return un.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var r,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),a=(r=t,Array.isArray(r)?r:[r]).map(un.normalizeUnit),o=e.valueOf()>this.valueOf(),s=gn(o?this:e,o?e:this,a,i);return o?s.negate():s},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.now(),t,n)},t.until=function(e){return this.isValid?pn.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;var n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({zone:this.zone}),r=t.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return oe(this.year)}},{key:"daysInMonth",get:function(){return le(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?se(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ce(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return k}},{key:"DATE_MED",get:function(){return C}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return x}},{key:"DATE_FULL",get:function(){return T}},{key:"DATE_HUGE",get:function(){return M}},{key:"TIME_SIMPLE",get:function(){return D}},{key:"TIME_WITH_SECONDS",get:function(){return A}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return N}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return P}},{key:"TIME_24_SIMPLE",get:function(){return O}},{key:"TIME_24_WITH_SECONDS",get:function(){return L}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return z}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return F}},{key:"DATETIME_SHORT",get:function(){return R}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return I}},{key:"DATETIME_MED",get:function(){return j}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return B}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return q}},{key:"DATETIME_FULL",get:function(){return U}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return V}},{key:"DATETIME_HUGE",get:function(){return H}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return W}}]),e}();function dr(e){if(cr.isDateTime(e))return e;if(e&&e.valueOf&&Z(e.valueOf()))return cr.fromJSDate(e);if(e&&"object"==typeof e)return cr.fromObject(e);throw new b("Unknown datetime argument: "+e+", of type "+typeof e)}t.DateTime=cr,t.Duration=un,t.FixedOffsetZone=$e,t.IANAZone=He,t.Info=fn,t.Interval=pn,t.InvalidZone=Ze,t.LocalZone=je,t.Settings=tt,t.VERSION="1.26.0",t.Zone=Re},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipLineages=t.zipContentLineages=t.isValidImgElement=t.isReadupElement=t.isImageContainerElement=t.isElement=t.isBlockElement=t.getWordCount=t.findWordsInAttributes=t.buildLineage=void 0,t.buildLineage=function({ancestor:e,descendant:t}){const n=[t];for(;n[0]!==e;)n.unshift(n[0].parentElement);return n};const r=/[A-Z]?[a-z]+/g;t.findWordsInAttributes=function(e){return(`${e.id} ${e.classList.value}`.match(r)||[]).map(e=>e.toLowerCase())};const i=/\S+/g;t.getWordCount=function(e){return(e.textContent.match(i)||[]).length};const a=["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DETAILS","DIALOG","DD","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","LI","MAIN","NAV","OL","P","PRE","SECTION","TABLE","UL"];function o(e){return e.reduce((e,t)=>(t.forEach((t,n)=>{e[n].includes(t)||e[n].push(t)}),e),Array.from(new Array(Math.max(...e.map(e=>e.length)))).map(()=>[]))}t.isBlockElement=function(e){return a.includes(e.nodeName)},t.isElement=function(e){return e.nodeType===Node.ELEMENT_NODE},t.isImageContainerElement=function(e){return"FIGURE"===e.nodeName||"IMG"===e.nodeName||"PICTURE"===e.nodeName},t.isReadupElement=function(e){return(e.getAttribute("id")||"").startsWith("com_readup_")},t.isValidImgElement=function(e){return e.naturalWidth<=1&&e.naturalHeight<=1||e.naturalWidth>=200&&e.naturalHeight>=100||e.naturalWidth>=100&&e.naturalHeight>=200},t.zipContentLineages=function(e){return o(e.reduce((e,t)=>e.concat(t.contentLineages),[]))},t.zipLineages=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrlForRoute=t.findRouteByKey=t.findRouteByLocation=void 0;const r=n(7),i=n(9);function a(e,t,n){let i,a=e.filter(e=>e.pathRegExp.test(t.path));return a?(a=t.queryString&&(i=Object.keys(r.parseQueryString(t.queryString)).filter(e=>!(n||[]).includes(e))).length?a.filter(e=>e.queryStringKeys&&e.queryStringKeys.length===i.length&&e.queryStringKeys.every(e=>i.includes(e))):a.filter(e=>!e.queryStringKeys),1===a.length?a[0]:null):null}t.findRouteByLocation=a,t.findRouteByKey=function(e,t,n){let r=e.filter(e=>e.screenKey===t);return r?(r=null!=n?r.filter(e=>e.dialogKey===n):r.filter(e=>null==e.dialogKey),r.length?r[0]:null):null},t.parseUrlForRoute=function(e){try{const t=new URL(e);if(/^(dev\.)?(readup\.(com|org)|reallyread\.it)$/.test(t.hostname)){const e=a(i.default,{path:t.pathname,queryString:t.search},r.unroutableQueryStringKeys);return e?{isInternal:!0,route:e,url:t}:{isInternal:!0,route:null,url:t}}return{isInternal:!1,route:null,url:t}}catch(e){return{isInternal:!1,route:null,url:null}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.About=0]="About",e[e.Admin=1]="Admin",e[e.AotdHistory=2]="AotdHistory",e[e.Author=3]="Author",e[e.BestEver=4]="BestEver",e[e.Blog=5]="Blog",e[e.Comments=6]="Comments",e[e.Contenders=7]="Contenders",e[e.EmailConfirmation=8]="EmailConfirmation",e[e.EmailSubscriptions=9]="EmailSubscriptions",e[e.ExtensionRemoval=10]="ExtensionRemoval",e[e.Faq=11]="Faq",e[e.Home=12]="Home",e[e.Leaderboards=13]="Leaderboards",e[e.MyFeed=14]="MyFeed",e[e.MyReads=15]="MyReads",e[e.Notifications=16]="Notifications",e[e.Password=17]="Password",e[e.PrivacyPolicy=18]="PrivacyPolicy",e[e.Profile=19]="Profile",e[e.Read=20]="Read",e[e.Search=21]="Search",e[e.Settings=22]="Settings",e[e.Stats=23]="Stats"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(22);t.default=e=>r.createElement(i.default,{className:"markdown-dialog_1fmodc",closeButtonText:"Ok",onClose:e.onClose,title:"Formatting Guide"},r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",null,"Text entered as..."),r.createElement("th",null,"Will display as..."))),r.createElement("tbody",null,r.createElement("tr",null,r.createElement("td",null,"*italics*"),r.createElement("td",null,r.createElement("em",null,"italics"))),r.createElement("tr",null,r.createElement("td",null,"**bold**"),r.createElement("td",null,r.createElement("strong",null,"bold"))),r.createElement("tr",null,r.createElement("td",null,"[link](https://link.com)"),r.createElement("td",null,r.createElement("span",{className:"link"},"link"))),r.createElement("tr",null,r.createElement("td",null,"> Quoted text"),r.createElement("td",null,r.createElement("blockquote",null,"Quoted text"))),r.createElement("tr",null,r.createElement("td",null,"- List Item 1",r.createElement("br",null),"- List Item 2"),r.createElement("td",null,r.createElement("ul",null,r.createElement("li",null,"List Item 1"),r.createElement("li",null,"List Item 2")))))))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(1),a=n(97);t.default=e=>{const t=i.default("content-box_kkp9lc",e.className);return e.highlight?r.createElement(a.default,{className:t,highlight:e.highlight},e.children):r.createElement("div",{className:t,onClick:e.onClick},e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encode=t.decodeStrict=t.decode=void 0;var r=n(36),i=n(39);t.decode=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var a=n(39);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var o=n(36);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return o.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return o.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return o.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return o.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return o.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return o.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return o.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return o.decodeXML}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(1);class a extends r.PureComponent{constructor(e){super(e),this._handleAnimationEnd=e=>{"alert-badge_ejzklr-scale-down"===e.animationName&&this.setState({visibility:"hidden"})},this.state={visibility:e.count?"visible":"hidden"}}componentDidUpdate(e){this.props.count&&!e.count?this.setState({visibility:"visible"}):!this.props.count&&e.count&&this.setState({visibility:"hiding"})}render(){return r.createElement("span",{className:i.default("alert-badge_ejzklr",this.state.visibility),onAnimationEnd:this._handleAnimationEnd},this.props.count)}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createUrl=void 0;const r=n(7),i=[{protocol:"http",port:80},{protocol:"https",port:443}];function a(e){return e.startsWith("/")?e:"/"+e}t.createUrl=function(e,t,n){let o=e.protocol+"://"+e.host;if(null!=e.port){const t=i.filter(t=>t.protocol===e.protocol)[0];t&&t.port===e.port||(o+=":"+e.port)}return e.path&&(o+=a(e.path)),t&&(o+=a(t)),n&&(o+=r.createQueryString(n)),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCommentThread=void 0,t.createCommentThread=function(e){return{id:e.comment&&e.comment.id||"",dateCreated:e.date,text:e.comment&&e.comment.text||"",addenda:e.comment&&e.comment.addenda||[],articleId:e.article.id,articleTitle:e.article.title,articleSlug:e.article.slug,userAccount:e.userName,badge:e.badge,isAuthor:!1,parentCommentId:null,dateDeleted:e.dateDeleted,children:[]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(1),a=n(4);class o extends r.PureComponent{constructor(e){super(e),this._close=()=>{this.props.onClose()},this._submit=()=>{this.setState({isSubmitting:!0}),this.props.onSubmit().then(()=>{this.props.onClose?this.props.onClose():this.setState({isSubmitting:!1})}).catch(()=>{this.setState({isSubmitting:!1})})},this.state={isSubmitting:!1}}render(){return r.createElement("div",{className:i.default("form-dialog_jnqz4n",this.props.className,{small:"small"===this.props.size})},r.createElement("div",{className:"header"},this.props.title),r.createElement("div",{className:i.default("children",this.props.textAlign||"left")},this.props.children),r.createElement("div",{className:i.default("buttons",this.props.onClose&&this.props.onSubmit?"double":"single")},this.props.onClose?r.createElement(a.default,{onClick:this._close,state:this.props.buttonsDisabled||this.state.isSubmitting?"disabled":"normal",text:this.props.closeButtonText||"Close"}):null,this.props.onSubmit?r.createElement(a.default,{onClick:this._submit,state:this.state.isSubmitting?"busy":this.props.buttonsDisabled?"disabled":"normal",style:"preferred",text:this.props.submitButtonText||"Submit"}):null),this.props.footer)}}t.default=o},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i{const{className:t,labelPosition:n}=e,l=r(e,["className","labelPosition"]);return i.createElement(a.default,{label:e.label,className:s.default(e.className,"input-field"),labelPosition:e.labelPosition,subtext:e.subtext},i.createElement(o.default,Object.assign({},l)))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(23);t.default=e=>r.createElement(i.default,{autoFocus:e.autoFocus,error:e.error,label:"Email",labelPosition:e.labelPosition,maxLength:256,onChange:e.onChange,onEnterKeyPressed:e.onEnterKeyPressed,required:!0,showError:e.showError,type:"email",value:e.value})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e){const t=e.match(/(\d+)\.(\d+)\.(\d+)/);if(!t)throw new Error("Invalid version format");this._major=parseInt(t[1]),this._minor=parseInt(t[2]),this._patch=parseInt(t[3])}static greatest(...e){return e.sort((e,t)=>t.compareTo(e))[0]}canUpgradeTo(e){return e.major===this._major&&(e.minor>this._minor||e.minor===this._minor&&e.patch>this._patch)}compareTo(e){return this._major!==e._major?this._major-e._major:this._minor!==e._minor?this._minor-e._minor:this._patch!==e._patch?this._patch-e._patch:0}toString(){return`${this._major}.${this._minor}.${this._patch}`}get major(){return this._major}get minor(){return this._minor}get patch(){return this._patch}}},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&("string"==typeof e.title&&"string"==typeof e.type)}Object.defineProperty(t,"__esModule",{value:!0}),t.isHttpProblemDetails=t.isProblemDetails=void 0,t.isProblemDetails=r,t.isHttpProblemDetails=function(e){return!!r(e)&&("number"==typeof e.status&&"string"==typeof e.traceId)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExitReason=void 0;const r=n(0),i=n(2),a=n(55);var o;!function(e){e[e.Aborted=0]="Aborted",e[e.Completed=1]="Completed"}(o=t.ExitReason||(t.ExitReason={}));class s extends r.Component{constructor(e){super(e),this._completeStepTransition=()=>{this.setState({goingToStep:null,step:this.state.goingToStep})},this._abort=()=>{this.props.onClose(o.Aborted)},this._complete=()=>{this.props.onClose(o.Completed)},this.state={exitReason:null,goingToStep:null,step:null}}shouldAllowCancellation(){return!0}goToStep(e){this.setState({goingToStep:e})}render(){return r.createElement("div",{className:"flow_fhdgte"},r.createElement("div",{className:"steps"},r.createElement("div",{className:"titlebar"},r.createElement("div",{className:"icon-right"},this.shouldAllowCancellation()?r.createElement(i.default,{display:"block",name:"cancel",onClick:this._abort}):null)),r.createElement(a.default,{isTransitioning:null!=this.state.goingToStep,onTransitionComplete:this._completeStepTransition},r.createElement("div",{className:"content"},this.getStepRenderer(this.state.step)(this.props.user)))))}}t.default=s},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=o(e),u=1;ue.trim()).filter(e=>!!e).join("

")}t.createMetadataElements=function(e,t,n){if(t&&(!e||t!==e)){const r=document.createElement("div");r.classList.add("com_readup_article_image_credit"),r.textContent=t,e&&(r.textContent=r.textContent.replace(e,"")),r.innerHTML=i(r.textContent),n.insertAdjacentElement("afterend",r)}if(e){const r=document.createElement("div");r.classList.add("com_readup_article_image_caption"),r.textContent=e,t&&e!==t&&(r.textContent=r.textContent.replace(t,"")),r.innerHTML=i(r.textContent),n.insertAdjacentElement("afterend",r)}},t.isValidContent=function(e,t){return!t.nodeNameBlacklist.some(t=>e.nodeName===t)&&(t.nodeNameWhitelist.some(t=>e.nodeName===t||!!e.getElementsByTagName(t).length)||!function(e){let t="";for(const n of e.childNodes)n.nodeType===Node.TEXT_NODE&&(t+=n.textContent);return t}(e).trim())&&!r.findWordsInAttributes(e).some(e=>t.attributeBlacklist.includes(e))&&("IMG"!==e.nodeName||r.isValidImgElement(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){if(e[0]instanceof r){const n=e;this._state=n[0]._state.slice();for(var t=1;t1&&(this._state=this._state.concat(n[t]._state.slice(1)))):this._state=this._state.concat(n[t]._state)}else this._state=e;this._updateCountCache()}_updateCountCache(){this._wordCount=0,this._wordsRead=0;for(var e=0;e0&&(this._wordsRead+=this._state[e])}getPercentComplete(){return 100*this._wordsRead/this._wordCount}isComplete(){return this._wordsRead===this._wordCount}readWord(){return!this.isComplete()&&(-1===this._state[0]?(this._state.splice(0,1),this._state[0]?this._state[0]++:this._state[0]=1):(this._state[0]>0?this._state[0]++:this._state.unshift(1),-1===this._state[1]?(this._state.splice(1,1),this._state.length>=2&&(this._state[0]+=this._state.splice(1,1)[0])):this._state[1]++),this._wordsRead++,!0)}slice(e,t){for(var n,i,a=0,o=0,s=0,l=[];o+Math.abs(this._state[a])<=e;)o+=Math.abs(this._state[a++]);for(;s!==t;)n=Math.min(Math.abs(this._state[a])-(e-o),t-s),(i=Math.sign(this._state[a]))===Math.sign(l[l.length-1])?l[l.length-1]+=i*n:l.push(i*n),o+=e-o,s+=n,a++;return new r(l)}get wordCount(){return this._wordCount}get wordsRead(){return this._wordsRead}get readStateArray(){return this._state}}t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Clipboard=0]="Clipboard",e[e.Email=1]="Email",e[e.Twitter=2]="Twitter"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.State=void 0;const r=n(0),i=n(11),a=n(2),o=n(1);var s;!function(e){e[e.None=0]="None",e[e.Saving=1]="Saving",e[e.Saved=2]="Saved"}(s=t.State||(t.State={})),t.default=e=>e.state===s.Saving?r.createElement(i.default,{className:"save-indicator_5lgdsz"}):r.createElement(a.default,{className:o.default("save-indicator_5lgdsz",{none:e.state===s.None,saved:e.state===s.Saved}),name:"checkmark"})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.LongestRead=1]="LongestRead",e[e.ReadCount=2]="ReadCount",e[e.Scout=4]="Scout",e[e.Scribe=8]="Scribe",e[e.Streak=16]="Streak",e[e.WeeklyReadCount=32]="WeeklyReadCount"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MenuState=t.MenuPosition=void 0;const r=n(0),i=n(1),a=n(101);var o;!function(e){e.TopLeft="top/left",e.TopCenter="top/center",e.TopRight="top/right",e.RightTop="right/top",e.RightMiddle="right/middle",e.RightBottom="right/bottom",e.BottomLeft="bottom/left",e.BottomCenter="bottom/center",e.BottomRight="bottom/right",e.LeftTop="left/top",e.LeftMiddle="left/middle",e.LeftBottom="left/bottom"}(t.MenuPosition||(t.MenuPosition={})),function(e){e[e.Closed=0]="Closed",e[e.Closing=1]="Closing",e[e.Opened=2]="Opened"}(o=t.MenuState||(t.MenuState={}));class s extends r.PureComponent{constructor(){super(...arguments),this._childElementWillReceiveFocus=!1,this._handleAnimationEnd=e=>{e.animationName.startsWith("menu_qla37i-pop-out")&&this.props.onClose()},this._handleBlur=()=>{this._childElementWillReceiveFocus?this._childElementWillReceiveFocus=!1:this.props.menuState===o.Opened&&this.props.onBeginClosing()},this._handleChildrenClick=e=>{this.props.stopPropagation&&e.stopPropagation(),this.props.menuState===o.Opened?this.props.onBeginClosing():this.props.onOpen(e)},this._registerImpendingChildFocusTransition=()=>{this._childElementWillReceiveFocus=!0}}render(){return r.createElement("span",{className:i.default("popover_r7v81v",this.props.className),onAnimationEnd:this._handleAnimationEnd,onBlur:this._handleBlur,tabIndex:-1},r.createElement("span",{className:"children",onClick:this._handleChildrenClick},this.props.children),this.props.menuState!==o.Closed?r.createElement(a.default,{isClosing:this.props.menuState===o.Closing,onMouseDown:this._registerImpendingChildFocusTransition,position:this.props.menuPosition,stopPropagation:this.props.stopPropagation},this.props.menuChildren):null)}}t.default=s},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var i=r(n(37)),a=r(n(106)),o=r(n(38)),s=r(n(107));function l(e){var t=Object.keys(e).join("|"),n=c(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}t.decodeXML=l(o.default),t.decodeHTMLStrict=l(i.default);var u=function(e,t){return e","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},function(e){e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escape=t.encodeHTML=t.encodeXML=void 0;var i=l(r(n(38)).default),a=u(i);t.encodeXML=h(i,a);var o=l(r(n(37)).default),s=u(o);function l(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function u(e){for(var t=[],n=[],r=0,i=Object.keys(e);rr.createElement(i.default,{autoCapitalize:"none",autoFocus:e.autoFocus,error:e.error,label:"Reader Name",labelPosition:e.labelPosition,minLength:3,maxLength:30,onChange:e.onChange,onEnterKeyPressed:e.onEnterKeyPressed,required:!0,showError:e.showError,subtext:"Your reader name will be public, but you can choose to be as anonymous as you wish. (ex: JenFox or Human123)",type:"username",value:e.value})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(23);t.default=e=>r.createElement(i.default,{error:e.error,label:"Password",labelPosition:e.labelPosition,minLength:8,maxLength:256,onChange:e.onChange,onEnterKeyPressed:e.onEnterKeyPressed,required:!0,showError:e.showError,type:"password",value:e.value})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);t.default=()=>r.createElement("div",{className:"form-partition_eo32pq"},"or")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(6),a=n(8),o=n(11),s=n(1);class l extends r.PureComponent{constructor(e){super(e),this._asyncTracker=new i.default,this._submit=()=>{this.setState(e=>{if(e.isSubmitting)return null;const t=this.props.onClick(this.props.provider);return t?(this._asyncTracker.addPromise(t).then(this._stopSubmitting).catch(e=>{var t;(null===(t=e)||void 0===t?void 0:t.isCancelled)||this._stopSubmitting()}),{isSubmitting:!0}):null})},this._stopSubmitting=()=>{this.setState({isSubmitting:!1})},this.state={isSubmitting:!1}}getContent(){var e,t;let n;switch(this.props.provider){case a.default.Apple:n=r.createElement("span",{className:"content"}," ",null!==(e=this.props.text)&&void 0!==e?e:"Sign in with Apple");break;case a.default.Twitter:n=r.createElement("span",{className:"content"},r.createElement("span",{className:"icon"})," ",null!==(t=this.props.text)&&void 0!==t?t:"Sign in with Twitter")}return n}componentWillUnmount(){this._asyncTracker.cancelAll()}render(){let e;switch(this.props.provider){case a.default.Apple:e="apple";break;case a.default.Twitter:e="twitter"}return r.createElement("div",{className:s("auth-service-button_bj12nx",e),onClick:this._submit},this.state.isSubmitting?r.createElement(o.default,null):this.getContent())}}t.default=l},function(e,t,n){"use strict";var r={};function i(e,t,n){var a,o,s,l,u,c="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),u=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&l<=57343){c+=encodeURIComponent(e[a]+e[a+1]),a++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[a]);return c}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(12),i=n(6),a=n(47),o=n(52),s=n(27),l=n(56),u=n(67),c=n(20),d=n(68),h=n(70),p=n(71),f=n(8),m=n(72),g=n(21),v=n(73),y=n(74),b=n(77),_=n(14),w=n(9),E=n(15),S=n(25),k=n(80),C=n(82),x=n(83),T=n(84),M=n(32),D=n(85),A=n(87),N=n(125),P=n(132),O=n(26),L=n(133),z=n(7),F=n(134),R=n(0),I=n(135),j=n(142),B=new D.default({clientVersion:new S.default("1.0.3"),endpoint:Object({protocol:"https",host:"api.readup.org"})});Promise.all([new Promise(e=>{window.addEventListener("DOMContentLoaded",()=>{e()})}),B.initialize({url:window.location.href})]).then(e=>{const t=e[1];t.action===m.InitializationAction.Activate&&function(e){const t=new y.default(l.default({url:window.location}).primaryTextContainers);t.setReadState(e.userArticle.readState),new b.default(t=>{B.updateReadProgress({articleId:e.article.id,readState:t.readStateArray}).then(e=>{K({article:e.article}),m.articleUpdated({article:e.article,isCompletionCommit:t.isCompletionCommit})})}).loadPage(t),window.addEventListener("message",e=>{var n;if(/(\/\/|\.)readup\.org$/.test(e.origin))switch((null===(n=e.data)||void 0===n?void 0:n.type)||null){case"toggleVisualDebugging":t.toggleVisualDebugging()}});const n=new P.default({onMessagePosted:e=>{D.sendMessage({type:"browser",data:e})}}),m=new a.default(n).addListener("articleUpdated",e=>{K({article:e.article})}).addListener("authServiceLinkCompleted",e=>{p.isAuthServiceBrowserLinkSuccessResponse(e)&&e.association.provider===f.default.Twitter&&!Z.user.hasLinkedTwitterAccount&&K({user:Object.assign(Object.assign({},Z.user),{hasLinkedTwitterAccount:!0})})}).addListener("commentPosted",t=>{t.articleId===e.article.id&&J.commentPosted(t)}).addListener("commentUpdated",t=>{t.articleId===e.article.id&&J.commentUpdated(t)}).addListener("userSignedIn",e=>{let t;t="userAccount"in e?e.userAccount:e,K({user:t})}).addListener("userSignedOut",()=>{K({error:"You were signed out in another tab."})}).addListener("userUpdated",e=>{K({user:e})}),S=document.createElement("iframe");S.src=c.createUrl(Object({protocol:"https",host:"readup.org"}),"/embed-iframe-bridge/index.html"),S.style.display="none",document.body.appendChild(S);const D=new d.default(S.contentWindow,"https://readup.org");D.addListener(e=>{switch(e.type){case"browser":n.relayMessage(e.data)}});const q=new k.default((e,t)=>{$.addToast(e,t)}),U=e=>c.createUrl(Object({protocol:"https",host:"readup.org"}),e),V=new C.default({setState:(e,t)=>{K(e(Z)).then(t)}}),H=new u.default,W=e=>{window.open(e,"_blank")},$=new x.default({asyncTracker:new i.default,setState:e=>{K(e(Z))}});let Z={article:e.article,dialogs:[],error:null,toasts:[],user:e.user};function K(e){Z=Object.assign(Object.assign({},Z),e);const t=[()=>Q.setState(Z)];return("article"in e||"user"in e)&&t.push(()=>J.setState({article:Z.article,user:Z.user})),Promise.all(t.map(e=>e()))}T.default(c.createUrl(Object({protocol:"https",host:"static.readup.org"}),"/common/fonts/"),[{family:"SF Pro Text",fileName:"sf-pro-text.woff"}]);const Q=new N.default({domAttachmentDelegate:e=>{e.style.position="fixed",e.style.bottom="0",e.style.left="0",e.style.width="0",e.style.height="0",e.style.margin="0",e.style.padding="0",e.style.transform="none",e.style.zIndex="2147483647",document.body.appendChild(e)},services:{clipboardService:q,dialogService:V,onOpenProgressInfoDialog:()=>{V.openDialog(R.createElement(j.default,{onClose:V.closeDialog,showLearnMoreLink:"blogreadupcom_how-readup-knows-whether-or-not-youve-read-an-article"!==Z.article.slug}))},toasterService:$},state:{article:Z.article,dialogs:Z.dialogs,error:Z.error,toasts:Z.toasts}});Q.attach();const G=t.elements[t.elements.length-1].element;if("IntersectionObserver"in window){new IntersectionObserver((e,t)=>{const n=e[0];n&&n.isIntersecting&&(t.unobserve(n.target),Y())}).observe(G)}else Y();function Y(){J.attach(),B.getComments(e.article.slug).then(e=>{J.setState({comments:{isLoading:!1,value:e}})})}const J=new A.default({domAttachmentDelegate:e=>{const t=document.createElement("div");t.style.margin="2em 0 0 0",t.append(e),G.insertAdjacentElement("afterend",t)},services:{dialogService:V,onAuthenticationRequired:(e,t)=>(V.openDialog(t=>R.createElement(I.default,{analyticsAction:e,captcha:new o.default(null,e=>{}),onClose:e=>{V.closeDialog(),e!==s.ExitReason.Aborted&&H.triggerEvent("onOnboardingCompleted",null),H.removeListeners("onOnboardingCompleted")},onCreateAccount:e=>B.createUserAccount({name:e.name,email:e.email,password:e.password,captchaResponse:e.captchaResponse,timeZoneName:r.DateTime.local().zoneName,theme:v.getClientPreferredColorScheme(),analytics:{action:e.analyticsAction,currentPath:window.location.pathname,initialPath:window.location.pathname,referrerUrl:window.document.referrer},pushDevice:null}).then(e=>(m.userSignedIn(e),K({user:e.userAccount}))),onCreateAuthServiceAccount:e=>B.createAuthServiceAccount({name:e.name,pushDevice:null,theme:v.getClientPreferredColorScheme(),timeZoneName:r.DateTime.local().zoneName,analytics:{action:e.analyticsAction,currentPath:window.location.pathname,initialPath:window.location.pathname,referrerUrl:window.document.referrer},token:e.token}).then(e=>(m.userSignedIn(e),K({user:e.userAccount}))),onRequestPasswordReset:e=>B.requestPasswordReset(e),onShowToast:(e,t)=>{$.addToast(e,t)},onSignIn:e=>B.signIn({authServiceToken:e.authServiceToken,email:e.email,password:e.password,pushDevice:null}).then(e=>(m.userSignedIn(e),K({user:e.userAccount}))),onSignInWithAuthService:e=>{const t=new L.default;return t.open(),B.requestAuthServiceBrowserPopupRequest({provider:e}).then(e=>t.load(e.popupUrl).then(()=>B.getAuthServiceBrowserPopupResponse({requestId:e.requestId}).then(e=>e.userProfile?(m.userSignedIn(e.userProfile),K({user:e.userProfile.userAccount}).then(()=>e)):e).catch(e=>{if(O.isHttpProblemDetails(e)&&404===e.status)return{association:null,authServiceToken:null,error:h.default.Cancelled,userProfile:null};throw e})))},user:t.user})),H.addListener("onOnboardingCompleted",t)),onCreateAbsoluteUrl:U,onDeleteComment:e=>B.deleteComment(e).then(e=>(m.commentUpdated(e),e)),onLinkAuthServiceAccount:e=>{const t=new L.default;return t.open(),B.requestAuthServiceBrowserPopupRequest({provider:e}).then(e=>t.load(e.popupUrl).then(()=>B.getAuthServiceBrowserPopupResponse({requestId:e.requestId}).then(e=>{if(e.association)return m.authServiceLinkCompleted({association:e.association,error:e.error,requestToken:""}),e.association;throw new Error(null!=e.error?e.error===h.default.Cancelled?"Cancelled":h.errorMessage[e.error]:"BrowserPopupResponseResponse.association is null.")}).catch(e=>{if(O.isHttpProblemDetails(e)&&404===e.status)throw new Error("Cancelled");throw e})))},onNavTo:e=>{const t=_.parseUrlForRoute(e);return!!(t.isInternal&&t.route||!t.isInternal&&t.url)&&(W(t.url.href),!0)},onPostArticle:e=>B.postArticle(e).then(e=>(K({article:e.article}),m.articlePosted(e),m.articleUpdated({article:e.article,isCompletionCommit:!1}),e.comment&&m.commentPosted(g.createCommentThread(e)),e)),onPostComment:e=>B.postComment(e).then(e=>(K({article:e.article}),m.articleUpdated({article:e.article,isCompletionCommit:!1}),m.commentPosted(e.comment),e)),onPostCommentAddendum:e=>B.postCommentAddendum(e).then(e=>(m.commentUpdated(e),e)),onPostCommentRevision:e=>B.postCommentRevision(e).then(e=>(m.commentUpdated(e),e)),onShare:()=>({channels:[M.default.Clipboard,M.default.Email,M.default.Twitter]}),onShareViaChannel:e=>{switch(e.channel){case M.default.Clipboard:q.copyText(e.text,"Link copied to clipboard");break;case M.default.Email:window.open("mailto:"+z.createQueryString({body:e.body,subject:e.subject}),"_blank");break;case M.default.Twitter:F.openTweetComposerBrowserWindow(e)}},onViewProfile:e=>{W(U(_.findRouteByKey(w.default,E.default.Profile).createUrl({userName:e})))},toasterService:$},state:{article:Z.article,comments:{isLoading:!0},user:Z.user}})}(t)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastChannelMessenger=void 0;const r=n(48),i=n(25),a=n(50);class o{constructor(){this._listeners=[];"BroadcastChannel"in window?this._channel=new BroadcastChannel("BrowserApi"):this._channel=new a.default("BrowserApi"),this._channel.addEventListener("message",e=>{this._listeners.forEach(t=>{t(e.data)})})}addListener(e){this._listeners.push(e)}postMessage(e){this._channel.postMessage(e)}}t.BroadcastChannelMessenger=o;class s extends r.default{constructor(e=new o){super(),this._messenger=e,this._messenger.addListener(e=>{switch(e.type){case"extensionInstallationChanged":const t=e.data;let n;switch(t.type){case"installed":n=Object.assign(Object.assign({},t),{version:new i.default(t.version)});break;case"uninstalled":n=t}this.emitEvent(e.type,n);break;case"updateAvailable":this.emitEvent(e.type,new i.default(e.data));break;default:this.emitEvent(e.type,e.data)}})}broadcastUpdate(e,t){this._messenger.postMessage({type:e,data:t})}articleUpdated(e){this.broadcastUpdate("articleUpdated",e)}articlePosted(e){this.broadcastUpdate("articlePosted",e)}authServiceLinkCompleted(e){this.broadcastUpdate("authServiceLinkCompleted",e)}commentPosted(e){this.broadcastUpdate("commentPosted",e)}commentUpdated(e){this.broadcastUpdate("commentUpdated",e)}displayPreferenceChanged(e){this.broadcastUpdate("displayPreferenceChanged",e)}extensionInstallationChanged(e){let t;switch(e.type){case"installed":t=Object.assign(Object.assign({},e),{version:e.version.toString()});break;case"uninstalled":t=e}this.broadcastUpdate("extensionInstallationChanged",t)}notificationPreferenceChanged(e){this.broadcastUpdate("notificationPreferenceChanged",e)}setTitle(e){var t;window.document.title=null!==(t=e.seo)&&void 0!==t?t:e.default}updateAvailable(e){this.broadcastUpdate("updateAvailable",e.toString())}userSignedIn(e){this.broadcastUpdate("userSignedIn",Object.assign(Object.assign({},e.userAccount),e))}userSignedOut(){this.broadcastUpdate("userSignedOut")}userUpdated(e){this.broadcastUpdate("userUpdated",e)}}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(49);class i extends r.default{}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this.listeners=[]}getListener(e,t){return this.listeners.filter(n=>n.type===e&&n.delegate===t)[0]}emitEvent(e,t){this.listeners.filter(t=>t.type===e).forEach(e=>e.delegate(t))}addListener(e,t){return void 0===this.getListener(e,t)&&this.listeners.push({type:e,delegate:t}),this}removeListener(e,t){const n=this.getListener(e,t);return void 0!==n&&this.listeners.splice(this.listeners.indexOf(n),1),this}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(5);t.default=class{constructor(e){this._listeners=[],this._keyPrefix="_broadcast",this._keySeparator="|",this._timeToLive=500,this._name=e,this._keyRegex=new RegExp(["^"+this._keyPrefix,this._name,"(\\d+)","[0-9a-z]+$"].join("\\"+this._keySeparator)),window.addEventListener("storage",e=>{if(e.key.match(this._keyRegex)&&null!=e.newValue)try{const t=JSON.parse(e.newValue);this._listeners.forEach(e=>{e({data:t})})}catch(e){console.error(e)}}),this.cleanupExpiredItems()}cleanupExpiredItems(){const e=Date.now();Object.keys(localStorage).map(e=>e.match(this._keyRegex)).filter(t=>2===(null==t?void 0:t.length)&&e-parseInt(t[1])>this._timeToLive).forEach(e=>{localStorage.removeItem(e[0])})}generateKey(){return[this._keyPrefix,this._name,Date.now().toString(),r.generateRandomString(4)].join(this._keySeparator)}addEventListener(e,t){this._listeners.push(t)}postMessage(e){const t=this.generateKey();localStorage.setItem(t,JSON.stringify(e)),window.setTimeout(()=>{localStorage.removeItem(t)},this._timeToLive)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.mapResult=t.ResultType=void 0,function(e){e[e.Success=1]="Success",e[e.Failure=2]="Failure",e[e.Loading=3]="Loading"}(r=t.ResultType||(t.ResultType={})),t.mapResult=function(e,t,n){switch(e.type){case r.Success:return{type:r.Success,value:t(e.value)};case r.Failure:return{type:r.Failure,error:n(e.error)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(53);class i extends r.default{constructor(e,t){super(),this._captcha=null,this._queue=[],this._siteKey=e,e&&t(e=>{for(this._captcha=e;this._queue.length;)this._queue.splice(0,1)[0](e)})}execute(e){return this._siteKey?this._captcha?new Promise(t=>{this._captcha.execute(this._siteKey,{action:e}).then(e=>{t(e)})}):new Promise(t=>{this._queue.push(n=>{n.execute(this._siteKey,{action:e}).then(e=>{t(e)})})}):Promise.resolve("")}hideBadge(){window.document.body.classList.remove("show-captcha"),window.document.body.classList.add("hide-captcha")}showBadge(){window.document.body.classList.remove("hide-captcha"),window.document.body.classList.add("show-captcha")}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{}},function(e,t,n){"use strict"; /** @license React v17.0.2 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(28),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var d=Symbol.for;i=d("react.element"),a=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),o=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var h="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n{e.stopPropagation(),"transition-container_ko0vbz-fade-out"===e.animationName&&this.setState({hasChanged:!0},this.props.onTransitionComplete)},this.state={hasChanged:!1}}render(){return r.createElement("div",{className:i("transition-container_ko0vbz",{changing:this.props.isTransitioning,changed:!this.props.isTransitioning&&this.state.hasChanged}),onAnimationEnd:this._handleAnimationEnd},this.props.children)}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(57),i=n(58),a=n(59),o=n(60),s=n(61),l=n(62),u=n(13),c=n(30),d=n(63),h=n(64),p=n(66),f=/^[^.!?]+[.!?'"]*$/,m=/^[^:]+:.+$/;function g(e,t){return t.map(t=>e.querySelectorAll(t)).reduce((e,t)=>e.concat(Array.from(t)),[])}function v(e,t){for(let n=e.length-1;n>=0;n--){const r=e[n];if(t(r,n))return r}return null}function y(e){return Array.isArray(e)?e.reduce((e,t)=>e.concat(y(t)),[]):"string"==typeof e?Array.from(document.querySelectorAll(e)):e()}function b(e,t){const n=u.findWordsInAttributes(e);return!n.some(e=>(t.attributeFullWordBlacklist.includes(e)||t.attributeWordPartBlacklist.some(t=>e.includes(t)))&&!n.some(e=>t.attributeFullWordWhitelist.includes(e)))}function _(e,t){const n=e.getElementsByTagName("a");if(!n.length)return!0;if(1===n.length&&n[0].textContent===e.textContent&&e.textContent.toUpperCase()===e.textContent)return!1;const r=e.textContent.trim();if(t.regexBlacklist.some(e=>e.test(r)))return!1;if(r.match(f)){if(m.test(r))return!1;const e=r.toLowerCase();return!t.singleSentenceOpenerBlacklist.some(t=>e.startsWith(t))}return!0}function w(e,t){return!t.nodeNameBlacklist.some(t=>e.nodeName===t)&&!t.selectorBlacklist.some(t=>e.matches(t))}const E=function(){function e(e,t,n,r){const i=function(e,t){return v(e,(n,r)=>u.isElement(n)&&t.nodeNameWhitelist.includes(n.nodeName)&&!e.slice(0,r).some(e=>t.ancestorNodeNameBlacklist.includes(e.nodeName)))}(t,n.textContainerSelection);if(i&&!n.textContainerSearch.descendantNodeNameBlacklist.some(e=>!!i.getElementsByTagName(e).length)){let a;const o=n?n.transpositions.find(e=>e.elements.some(e=>e===i)):null;a=o?o.lineage.concat(i):t.slice(0,t.indexOf(i)+1);const s=new l.default(a,[t.concat(e)],u.getWordCount(e)),c=r.find(e=>e.containerElement===i);c?c.mergeContent(s):r.push(s)}}return function(t,n,r,i=[]){if(u.isElement(t)&&(!n.length||w(t,r.textContainerSearch))){const a=n.concat(t);for(const n of t.childNodes)n.nodeType===Node.TEXT_NODE?e(n,a,r,i):E(n,a,r,i)}return i}}();const S=function(){function e(e){for(const t of e)if(t instanceof HTMLElement){const e=t.innerText.trim();if(e)return e}return null}function t(e,n,r=[]){if(c.isValidContent(e,n)){r.push(e);for(const i of e.children)t(i,n,r)}return r}return function(n,r,i,a,s,l=[]){if(u.isElement(n)&&w(n,s.imageContainerSearch)){const c=r.concat(n);C(n,r.length,i,a).forEach(n=>{u.isImageContainerElement(n.node)?function(n,r,i,a){if(w(n,i.imageContainerSearch)&&!i.imageContainerSearch.descendantNodeNameBlacklist.some(e=>!!n.getElementsByTagName(e).length)){const s=Array.from("IMG"===n.nodeName?[n]:n.getElementsByTagName("img")),l=s.filter(e=>u.isValidImgElement(e));if(!s.length||l.length){let s,l;switch(n.nodeName){case"PICTURE":s=n,l=Array.from(n.children).filter(e=>"SOURCE"===e.nodeName||"META"===e.nodeName||"IMG"===e.nodeName);break;case"FIGURE":s=n,l=[];for(const e of n.children)t(e,i.imageContainerContent,l);break;case"IMG":s=n,l=[n]}const c=v(r,(e,t)=>{if(0===t)return!1;const n=r[t-1];return(n.previousElementSibling||n.nextElementSibling)&&!u.findWordsInAttributes(n).some(e=>i.imageContainerMetadata.imageWrapperAttributeWordParts.some(t=>e.includes(t)))})||n;a.push(new o.default(s?r.concat(s):[],l.map(e=>r.concat(u.buildLineage({descendant:e,ancestor:n}))),e(g(c,i.imageContainerMetadata.captionSelectors)),e(g(c,i.imageContainerMetadata.creditSelectors))))}}}(n.node,c,s,l):S(n.node,c,n.edge,a,s,l)})}return l}}(),k=function(e,t,n,r,i=[]){if(u.isElement(e)){const a=t.concat(e);C(e,t.length,n,r).forEach(e=>{if("PRE"===e.node.nodeName){const t=a.concat(e.node);i.push(new l.default(t,function e(t,n,r=[]){for(let i of t.childNodes)u.isElement(i)?e(i,n.concat(i),r):i.nodeType===Node.TEXT_NODE&&r.push(n.concat(i));return r}(e.node,t),u.getWordCount(e.node)))}else k(e.node,a,e.edge,r,i)})}return i};function C(e,t,n,r){const i=Array.from(e.childNodes);if(n!==s.default.None&&te.includes(t))),n&s.default.Right&&(o=i.length-1-i.reverse().findIndex(t=>e.includes(t)),i.reverse()),i.filter((e,t)=>(null==a||t>=a)&&(null==o||t<=o)).map((e,t,r)=>{let i=s.default.None;return n&s.default.Left&&0===t&&(i|=s.default.Left),n&s.default.Right&&t===r.length-1&&(i|=s.default.Right),{node:e,edge:i}})}return i.map(e=>({node:e,edge:s.default.None}))}t.default=function(e){const t=p.findPublisherConfig(h.default.publishers,e.url.hostname);let n;(null==t?void 0:t.preprocessor)&&t.preprocessor(),t&&t.contentSearchRootElementSelector&&(n=document.querySelector(t.contentSearchRootElementSelector)),n||(n=document.body);const o=new d.default(h.default.universal,t,n),l=y(o.textContainerFilter.blacklistSelectors);let c=E(n,[],o).filter(e=>e.wordCount>0&&!l.some(t=>t===e.containerElement)&&_(e.containerElement,o.textContainerFilter));const f=c.filter(e=>b(e.containerElement,o.textContainerFilter));f.length/c.length>.5&&(c=f);const m=c.reduce((e,t)=>{const n=t.containerLineage.length,i=e.find(e=>e.depth===n);return i?i.add(t):e.push(new r.default(n,t)),e},[]),g=m.sort((e,t)=>t.wordCount-e.wordCount)[0],v=(x=g).members.map((e,t,n)=>{const r=n.filter(t=>t!==e),o=[new a.default({hops:0,frequency:1,wordCount:e.wordCount})];for(let t=1;t<=x.depth&&r.length;t++){const n=x.depth-t,i=r.filter(t=>t.containerLineage[n]===e.containerLineage[n]);i.length&&(o.push(new a.default({hops:2*t,frequency:i.length,wordCount:i.reduce((e,t)=>e+t.wordCount,0)})),i.forEach(e=>{r.splice(r.indexOf(e),1)}))}return new i.default(e,o)});var x;let T=v.reduce((e,t)=>{const n=e.find(e=>e.preferredPathHopCount===t.getPreferredPath().hops);return n?(n.searchResults.push(t),n.wordCount+=t.textContainer.wordCount):e.push({preferredPathHopCount:t.getPreferredPath().hops,searchResults:[t],wordCount:t.textContainer.wordCount}),e},[]).sort((e,t)=>t.wordCount-e.wordCount).reduce((e,t)=>(e.reduce((e,t)=>e+t.wordCount,0)e.concat(t.searchResults),[]);const M=v.filter(e=>!T.includes(e));if(M.length){const e=T.reduce((e,t)=>{const n=e.find(e=>e.nodeName===t.textContainer.containerElement.nodeName);return n?(n.searchResults.push(t),n.wordCount+=t.textContainer.wordCount):e.push({nodeName:t.textContainer.containerElement.nodeName,searchResults:[t],wordCount:t.textContainer.wordCount}),e},[]).sort((e,t)=>t.wordCount-e.wordCount)[0];"P"===e.nodeName&&(T=T.concat(M.filter(t=>t.textContainer.containerElement.nodeName===e.nodeName)))}const D=T[0].textContainer.containerLineage[T[0].textContainer.containerLineage.length-Math.max(Math.max(...T.map(e=>e.getPreferredPath().hops))/2,1)],A=u.zipContentLineages(T.map(e=>e.textContainer)).slice(u.buildLineage({ancestor:n,descendant:D}).length-1),N=y(o.imageContainerFilter.blacklistSelectors),P=S(D,[],s.default.Left|s.default.Right,A,o).filter(e=>!N.some(t=>t===e.containerElement)&&b(e.containerElement,o.imageContainerFilter)&&function(e,t){const n=(e.caption||"")+" "+(e.credit||"");return!(t.contentRegexBlacklist.some(e=>e.test(n))&&!t.contentRegexWhitelist.some(e=>e.test(n)))}(e,o.imageContainerMetadata)),O=k(D,[],s.default.Left|s.default.Right,A),L=function e(t,n,r,i,a,o,s,l=[]){return u.isElement(t)&&!s.additionalContentNodeNameBlacklist.includes(t.nodeName)&&w(t,s)&&!o.includes(t)&&C(t,n.length,r,i).forEach(r=>{let c;u.isElement(r.node)&&(c=a.find(e=>e.containerElement===r.node))?o.some(e=>e===r.node||r.node.contains(e))||l.push(c):e(r.node,[t,...n],r.edge,i,a,o,s,l)}),l}(D,[],s.default.Left|s.default.Right,A,m.filter(e=>e.depth!==g.depth&&e.depth>=g.depth-o.textContainerSearch.additionalContentMaxDepthDecrease&&e.depth<=g.depth+o.textContainerSearch.additionalContentMaxDepthIncrease).reduce((e,t)=>e.concat(t.members),[]).concat(v.filter(e=>!T.includes(e)).map(e=>e.textContainer)),P.map(e=>e.containerElement),o.textContainerSearch).filter(e=>_(e.containerElement,o.textContainerFilter));return{contentSearchRootElement:n,depthGroupWithMostWords:g,primaryTextContainerSearchResults:T,additionalPrimaryTextContainers:L,primaryTextRootNode:D,primaryTextContainers:T.map(e=>e.textContainer).concat(L),imageContainers:P,preformattedTextContainers:O}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e,...t){this._wordCount=0,this._depth=e,this._members=t,this._wordCount=t.reduce((e,t)=>e+t.wordCount,0)}add(e){const t=this._members.find(t=>t.containerElement===e.containerElement);t?t.mergeContent(e):this._members.push(e),this._wordCount+=e.wordCount}get depth(){return this._depth}get members(){return this._members}get wordCount(){return this._wordCount}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e,t){this._textContainer=e,this._paths=t}getPreferredPath(){return this._preferredPath||(this._preferredPath=this._paths.sort((e,t)=>e.wordCount!==t.wordCount?t.wordCount-e.wordCount:e.hops-t.hops)[0]),this._preferredPath}get textContainer(){return this._textContainer}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor({hops:e,frequency:t,wordCount:n}){this._hops=e,this._frequency=t,this._wordCount=n}add({frequency:e,wordCount:t}){return new r({hops:this._hops,frequency:this._frequency+e,wordCount:this._wordCount+t})}get frequency(){return this._frequency}get hops(){return this._hops}get wordCount(){return this._wordCount}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29);class i extends r.default{constructor(e,t,n,r){super(e,t),this._caption=n,this._credit=r}get caption(){return this._caption}get credit(){return this._credit}}t.default=i},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.Left=1]="Left",e[e.Right=2]="Right"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(29);class i extends r.default{constructor(e,t,n){super(e,t),this._wordCount=n}mergeContent(e){this._contentLineages.push(...e._contentLineages),this._wordCount+=e.wordCount}get wordCount(){return this._wordCount}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(13);t.default=class{constructor(e,t,n){this._textContainerFilter=e.textContainerFilter,this._imageContainerMetadata=e.imageContainerMetadata,this._imageContainerContent=e.imageContainerContent,this._textContainerSelection=e.textContainerSelection,this._wordCountTraversalPathSearchLimitMultiplier=e.wordCountTraversalPathSearchLimitMultiplier,t?(t.textContainerSearch?this._textContainerSearch=Object.assign(Object.assign({},e.textContainerSearch),{selectorBlacklist:e.textContainerSearch.selectorBlacklist.concat(t.textContainerSearch.selectorBlacklist||[])}):this._textContainerSearch=e.textContainerSearch,t.textContainerFilter?this._textContainerFilter=Object.assign(Object.assign({},e.textContainerFilter),{attributeFullWordBlacklist:e.textContainerFilter.attributeFullWordBlacklist.concat(t.textContainerFilter.attributeFullWordBlacklist||[]),attributeFullWordWhitelist:t.textContainerFilter.attributeFullWordWhitelist||[],blacklistSelectors:e.textContainerFilter.blacklistSelectors.concat(t.textContainerFilter.blacklistSelectors||[])}):this._textContainerFilter=Object.assign(Object.assign({},e.textContainerFilter),{attributeFullWordWhitelist:[]}),t.imageContainerSearch?this._imageContainerSearch=Object.assign(Object.assign({},e.imageContainerSearch),{selectorBlacklist:e.imageContainerSearch.selectorBlacklist.concat(t.imageContainerSearch.selectorBlacklist||[])}):this._imageContainerSearch=e.imageContainerSearch,t.imageContainerFilter?this._imageContainerFilter=Object.assign(Object.assign({},e.imageContainerFilter),{attributeFullWordBlacklist:e.imageContainerFilter.attributeFullWordBlacklist.concat(t.imageContainerFilter.attributeFullWordBlacklist||[]),attributeFullWordWhitelist:t.imageContainerFilter.attributeFullWordWhitelist||[],blacklistSelectors:e.imageContainerFilter.blacklistSelectors.concat(t.imageContainerFilter.blacklistSelectors||[])}):this._imageContainerFilter=Object.assign(Object.assign({},e.imageContainerFilter),{attributeFullWordWhitelist:[]}),this._contentSearchRootElementSelector=t.contentSearchRootElementSelector,t.transpositions?this._transpositions=t.transpositions.map(e=>{const t=document.querySelector(e.parentElementSelector),i=e.elementSelectors.reduce((e,t)=>e.concat(Array.from(document.querySelectorAll(t))),[]);return t&&i.length?{elements:i,lineage:r.buildLineage({ancestor:n,descendant:t})}:null}).filter(e=>!!e):this._transpositions=[],this._imageStrategy=t.imageStrategy):(this._textContainerSearch=e.textContainerSearch,this._textContainerFilter=Object.assign(Object.assign({},e.textContainerFilter),{attributeFullWordWhitelist:[]}),this._imageContainerSearch=e.imageContainerSearch,this._imageContainerFilter=Object.assign(Object.assign({},e.imageContainerFilter),{attributeFullWordWhitelist:[]}),this._transpositions=[])}get textContainerSearch(){return this._textContainerSearch}get textContainerFilter(){return this._textContainerFilter}get imageContainerSearch(){return this._imageContainerSearch}get imageContainerFilter(){return this._imageContainerFilter}get imageContainerMetadata(){return this._imageContainerMetadata}get imageContainerContent(){return this._imageContainerContent}get textContainerSelection(){return this._textContainerSelection}get contentSearchRootElementSelector(){return this._contentSearchRootElementSelector}get transpositions(){return this._transpositions}get wordCountTraversalPathSearchLimitMultiplier(){return this._wordCountTraversalPathSearchLimitMultiplier}get imageStrategy(){return this._imageStrategy}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(65);t.default={universal:{textContainerSearch:{additionalContentNodeNameBlacklist:["ASIDE","FOOTER","HEADER"],additionalContentMaxDepthDecrease:1,additionalContentMaxDepthIncrease:1,descendantNodeNameBlacklist:["FORM"],nodeNameBlacklist:["BUTTON","FIGURE","FORM","HEAD","IFRAME","NAV","NOSCRIPT","PICTURE","PRE","SCRIPT","STYLE","svg"],selectorBlacklist:['[itemprop="author"], [itemprop="datePublished"]']},textContainerFilter:{attributeFullWordBlacklist:["ad","carousel","gallery","related","share","subscribe","subscription"],attributeWordPartBlacklist:["byline","caption","comment","download","interlude","image","meta","newsletter","photo","promo","pullquote","recirc","video"],blacklistSelectors:[],regexBlacklist:[/^\[[^\]]+\]$/],singleSentenceOpenerBlacklist:["►","click here","check out","don't miss","listen to","read more","related article:","sign up for","sponsored:","this article appears in","watch:"]},imageContainerSearch:{descendantNodeNameBlacklist:["FORM","IFRAME"],nodeNameBlacklist:["FORM","HEAD","IFRAME","NAV","SCRIPT","STYLE"],selectorBlacklist:[]},imageContainerFilter:{attributeFullWordBlacklist:["ad","related","share","subscribe","subscription"],attributeWordPartBlacklist:["interlude","newsletter","promo","recirc","video"],blacklistSelectors:[]},imageContainerMetadata:{contentRegexBlacklist:[/audm/i],contentRegexWhitelist:[],captionSelectors:["figcaption",'[class*="caption"i]','[itemProp*="caption"i]','[itemProp*="description"i]'],creditSelectors:['[class*="credit"i]','[class*="source"i]','[itemProp*="copyrightHolder"i]'],imageWrapperAttributeWordParts:["image","img","photo"]},imageContainerContent:{nodeNameBlacklist:["BUTTON"],nodeNameWhitelist:["IMG","META","PICTURE","SOURCE"],attributeBlacklist:["expand","icon","share"]},textContainerSelection:{nodeNameWhitelist:["ASIDE","BLOCKQUOTE","DIV","H1","H2","H3","H4","H5","H6","OL","P","PRE","TABLE","UL"],ancestorNodeNameBlacklist:["BLOCKQUOTE","LI","P"]},wordCountTraversalPathSearchLimitMultiplier:.75},publishers:[{hostname:"ablogtowatch.com",textContainerSearch:{selectorBlacklist:[".ablog-adlabel"]}},{hostname:"99u.adobe.com",textContainerFilter:{attributeFullWordBlacklist:["blockquote"]}},{hostname:"aljazeera.com",contentSearchRootElementSelector:"div.main-article-body"},{hostname:"bloomberg.com",preprocessor:()=>{var e;const t=document.querySelector('script[data-component-props="FeatureBody"]'),n=document.querySelector('[data-component-root="FeatureBody"]');if(!t||!n)return;let r;try{r=JSON.parse(t.textContent)}catch(e){return}(null!==(e=Array.from(n.children).find(e=>e.classList.contains("body-copy")||e.classList.contains("fence-body")))&&void 0!==e?e:n).innerHTML=r.body}},{hostname:"bostonglobe.com",transpositions:[{elementSelectors:[".article > .lead > *"],parentElementSelector:".article > .body"}]},{hostname:"cnbc.com",contentSearchRootElementSelector:".ArticleBody-articleBody"},{hostname:"cnn.com",transpositions:[{elementSelectors:[".el__leafmedia--sourced-paragraph > .zn-body__paragraph",".l-container > .zn-body__paragraph:not(.zn-body__footer)",".l-container > .zn-body__paragraph > h3"],parentElementSelector:".zn-body__read-all"}]},{hostname:"gizmodo.com",imageStrategy:r.LazyImageStrategy.GizmodoImgUrl},{hostname:"abcnews.go.com",textContainerSearch:{selectorBlacklist:['[class*="insert"]']}},{hostname:"governing.com",imageStrategy:r.LazyImageStrategy.GoverningImgSrcCorrection},{hostname:"hackaday.com",contentSearchRootElementSelector:'div[itemprop="articleBody"]'},{hostname:"huffpost.com",transpositions:[{elementSelectors:['#entry-text [data-rapid-subsec="paragraph"] > :not([data-rapid-subsec="paragraph"])'],parentElementSelector:"#entry-text"}]},{hostname:"insider.com",imageStrategy:r.LazyImageStrategy.PostLoadImgTag},{hostname:"invisionapp.com",imageContainerSearch:{selectorBlacklist:['div[class^="TweetQuotecomponent"]']}},{hostname:"longreads.com",textContainerSearch:{selectorBlacklist:[".in-story"]}},{hostname:"junkyardofthemind.com",contentSearchRootElementSelector:'div[data-layout-label="Post Body"]'},{hostname:"medium.com",textContainerFilter:{attributeFullWordWhitelist:["ad"]},imageStrategy:r.LazyImageStrategy.MediumScaleUp},{hostname:"devblogs.microsoft.com",contentSearchRootElementSelector:"article"},{hostname:"nationalreview.com",contentSearchRootElementSelector:"div.article-content"},{hostname:"newyorker.com",textContainerSearch:{selectorBlacklist:[".persistent-top"]},transpositions:[{elementSelectors:["inline-embed p"],parentElementSelector:".article__body"}]},{hostname:"nymag.com",contentSearchRootElementSelector:".article-content"},{hostname:"nytimes.com",transpositions:[{elementSelectors:[".story-body-1 > .story-body-text"],parentElementSelector:".story-body-2"}],imageStrategy:r.LazyImageStrategy.NytFigureMulti,textContainerSearch:{selectorBlacklist:['[id*="ad"], .epkadsg3, .etfikam0, .ez3869y0']},imageContainerSearch:{selectorBlacklist:['[id*="ad"], .epkadsg3, .etfikam0, .ez3869y0']}},{hostname:"politico.com",imageContainerSearch:{selectorBlacklist:[".social-tools"]}},{hostname:"qsrmagazine.com",contentSearchRootElementSelector:".post"},{hostname:"raptitude.com",contentSearchRootElementSelector:".entry-content"},{hostname:"article-test.dev.readup.org",transpositions:[{elementSelectors:[".lead"],parentElementSelector:".lead + div"}],imageStrategy:r.LazyImageStrategy.PostLoadImgTag},{hostname:"sciencedaily.com",transpositions:[{elementSelectors:["p.lead"],parentElementSelector:"div#text"}]},{hostname:"sinocism.com",textContainerFilter:{blacklistSelectors:[()=>{const e=Array.from(document.getElementsByTagName("p")).find(e=>e.textContent.toLowerCase().startsWith("this week’s issues of sinocism"));return e?[e,...Array.from(e.parentElement.children).filter(t=>e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)]:[]}]}},{hostname:"taosnews.com",contentSearchRootElementSelector:'[itemprop="articleBody"]'},{hostname:"techcrunch.com",contentSearchRootElementSelector:".article-content"},{hostname:"techrepublic.com",textContainerFilter:{blacklistSelectors:[()=>{const e=Array.from(document.getElementsByTagName("h2")).find(e=>e.textContent.toLowerCase().startsWith("also see"));return e&&e.nextElementSibling?[e,e.nextElementSibling]:[]}]}},{hostname:"theatlantic.com",contentSearchRootElementSelector:".article-body",transpositions:[{elementSelectors:[".article-body > section > div > p"],parentElementSelector:".article-body > section:last-of-type"}],imageContainerSearch:{selectorBlacklist:[".callout"]},textContainerSearch:{selectorBlacklist:[".c-nudge__spacing-container"]},textContainerFilter:{blacklistSelectors:[()=>{const e=Array.from(document.querySelectorAll("p > strong")).find(e=>"related video"===e.textContent.trim().toLowerCase());return e?[e.parentElement]:[]}]}},{hostname:"thecorrespondent.com",textContainerSearch:{selectorBlacklist:[".contentitem-infocard__toggle-icon",".contentitem-sidenote__note"]}},{hostname:"thecut.com",contentSearchRootElementSelector:'[itemprop="articleBody"]',textContainerSearch:{selectorBlacklist:["aside"]}},{hostname:"thedailybeast.com",contentSearchRootElementSelector:"article.Body"},{hostname:"theguardian.com",textContainerSearch:{selectorBlacklist:[".contributions__epic"]}},{hostname:"thenewatlantis.com",textContainerSearch:{selectorBlacklist:['.author, .epigraph, [style*="BellMT"], h2']},imageContainerSearch:{selectorBlacklist:['[style*="BellMT"]']}},{hostname:"theverge.com",contentSearchRootElementSelector:".c-entry-content",textContainerSearch:{selectorBlacklist:["aside"]}},{hostname:"variety.com",contentSearchRootElementSelector:"article.c-content"},{hostname:"vice.com",contentSearchRootElementSelector:".article__body"},{hostname:"washingtonpost.com",imageStrategy:r.LazyImageStrategy.WashingtonPostScaleUp,textContainerSearch:{selectorBlacklist:[".pg-navigation",".pg-article-bottom",".utility-bar",'[data-qa="article-body-ad"]',".hide-for-print",".annotation-details"]},textContainerFilter:{attributeFullWordBlacklist:["helper","interstitial"]},transpositions:[{elementSelectors:["article header#pg-content p.pg-body-copy"],parentElementSelector:"article .article-body"}],imageContainerSearch:{selectorBlacklist:[".annotation-details"]}},{hostname:"wired.com",textContainerFilter:{attributeFullWordBlacklist:["inset"],blacklistSelectors:[()=>{const e=Array.from(document.getElementsByTagName("h3")).find(e=>e.textContent.toLowerCase().startsWith("more great wired stories"));return e&&e.nextElementSibling?[e,e.nextElementSibling]:[]}]},imageContainerSearch:{selectorBlacklist:[".inset"]}},{hostname:"finance.yahoo.com",contentSearchRootElementSelector:'article[itemprop="articleBody"]',transpositions:[{elementSelectors:['div[class*="readmore"] p'],parentElementSelector:'article[itemprop="articleBody"] div[class~="canvas-body"]'}]},{hostname:"gsd.harvard.edu",contentSearchRootElementSelector:'div[class~="article-body"]'},{hostname:"news.harvard.edu",textContainerFilter:{attributeFullWordBlacklist:["explore"]}},{hostname:"nih.gov",contentSearchRootElementSelector:"#maincontent",textContainerSearch:{selectorBlacklist:[".goto",".largeobj-link"]},textContainerFilter:{blacklistSelectors:[()=>{const e=Array.from(document.getElementsByTagName("h2")).find(e=>"Footnotes"===e.textContent);return e&&e.parentElement.classList.contains("sec")?Array.from(e.parentElement.parentElement.children).filter(t=>e.parentElement===t||e.parentElement.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING).reduce((e,t)=>e.concat(Array.from(t.querySelectorAll("*"))),[]):[]}]},transpositions:[{elementSelectors:[".sec > .sec > *",".sec > .table > *",".sec > .table > .caption > *",".sec > .table > * > table",".sec > .table > .tblwrap-foot > *"],parentElementSelector:"#maincontent .sec + .sec"}]},{hostname:"hackster.io",contentSearchRootElementSelector:"#story"},{hostname:"dark-mountain.net",transpositions:[{elementSelectors:[".entry-content > div > .component--drop-cap",".entry-content > div > p"],parentElementSelector:".entry-content"}]},{hostname:"mcsweeneys.net",contentSearchRootElementSelector:".article-body"},{hostname:"churchofjesuschrist.org",transpositions:[{elementSelectors:[".body-block > p",".body-block > section:first-of-type > header > h2"],parentElementSelector:".body-block > section:first-of-type"}]},{hostname:"quantamagazine.org",imageStrategy:r.LazyImageStrategy.QuantaScriptTemplate,imageContainerSearch:{selectorBlacklist:[".post__sidebar"]}},{hostname:"dailymail.co.uk",contentSearchRootElementSelector:'div[itemprop="articleBody"]',textContainerSearch:{selectorBlacklist:[".art-insert"]}},{hostname:"lrb.co.uk",transpositions:[{elementSelectors:[".article-body > .dropcap"],parentElementSelector:"#article-body"}]},{hostname:"telegraph.co.uk",transpositions:[{elementSelectors:['#mainBodyArea > div[class$="Par"] > *'],parentElementSelector:"#mainBodyArea > .body"}]},{hostname:"nautil.us",contentSearchRootElementSelector:'[itemprop="articleBody"]',imageStrategy:r.LazyImageStrategy.NautilusHostSwap,textContainerSearch:{selectorBlacklist:[".pull-quote"]},imageContainerSearch:{selectorBlacklist:[".reco"]}}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LazyImageStrategy=void 0;const r=n(30);var i;function a(e,t){if(e.length)if("IntersectionObserver"in window){const n=new IntersectionObserver((e,n)=>{e.forEach(e=>{e.isIntersecting&&(n.unobserve(e.target),t(e.target))})},{rootMargin:"0px 0px 200px 0px"});e.forEach(e=>{n.observe(e)})}else e.forEach(t)}!function(e){e[e.DataSrcSrcset=0]="DataSrcSrcset",e[e.GizmodoImgUrl=1]="GizmodoImgUrl",e[e.GoverningImgSrcCorrection=2]="GoverningImgSrcCorrection",e[e.HttpToHttps=3]="HttpToHttps",e[e.MediumScaleUp=4]="MediumScaleUp",e[e.NautilusHostSwap=5]="NautilusHostSwap",e[e.NoscriptImgContent=6]="NoscriptImgContent",e[e.NytFigureMulti=7]="NytFigureMulti",e[e.PostLoadImgTag=8]="PostLoadImgTag",e[e.QuantaScriptTemplate=9]="QuantaScriptTemplate",e[e.WashingtonPostScaleUp=10]="WashingtonPostScaleUp"}(i=t.LazyImageStrategy||(t.LazyImageStrategy={}));const o="img[data-src], img[data-srcset], source[data-src], source[data-srcset]";function s(e){const t=e.slice().sort((e,t)=>e-t),n=window.screen.availWidth*window.devicePixelRatio;return t.find(e=>e>=n)||t[t.length-1]}t.default=function e(t){switch(t){case i.DataSrcSrcset:a(Array.from(document.querySelectorAll(o)).map(e=>e.parentElement),e=>{Array.from(e.querySelectorAll(o)).forEach(e=>{e.hasAttribute("data-src")&&e.getAttribute("data-src")!==e.getAttribute("src")&&e.setAttribute("src",e.getAttribute("data-src")),e.hasAttribute("data-srcset")&&e.getAttribute("data-srcset")!==e.getAttribute("srcset")&&e.setAttribute("srcset",e.getAttribute("data-srcset")),e.hasAttribute("src")&&e.getAttribute("src").startsWith("data:")&&e.removeAttribute("src")})});break;case i.GizmodoImgUrl:a(Array.from(document.querySelectorAll("figure[data-id][data-format]")),e=>{const t=e.getElementsByTagName("img")[0];t&&t.src.startsWith("data:")&&(t.src=`https://i.kinja-img.com/gawker-media/image/upload/c_scale,f_auto,fl_progressive,q_80,w_${s([80,320,470,800,1600])}/${e.dataset.id}.${e.dataset.format.toLowerCase()}`)});break;case i.GoverningImgSrcCorrection:a(Array.from(document.querySelectorAll("img")),e=>{e.src=e.src.replace(/^http:/,"https:").replace(/&.*$/,"")});break;case i.HttpToHttps:a(Array.from(document.getElementsByTagName("img")),e=>{e.src=e.src.replace(/^http:/,"https:")});break;case i.MediumScaleUp:a(Array.from(document.querySelectorAll("figure")),e=>{const t=e.getElementsByTagName("img")[0];if(t.src){const e=t.src.match(/(https:\/\/[^\/]+)\/.*\/([^\/?]+)/);e&&(t.src=`${e[1]}/max/${t.getAttribute("width")}/${e[2]}`)}});break;case i.NautilusHostSwap:a(Array.from(document.getElementsByTagName("figure")),e=>{Array.from(e.getElementsByTagName("img")).forEach(e=>{e.src.match(/https?:\/\/static\.nautil\.us\//)&&(e.src=e.src.replace(/https?:\/\/static\.nautil\.us\//,"https://d3chnh8fr629l6.cloudfront.net/"))})});break;case i.NoscriptImgContent:let t;try{t=new RegExp(/^\s*<\s*img\s.+\s*>\s*$/,"is")}catch(e){t=new RegExp(/^\s*<\s*img\s.+\s*>\s*$/,"i")}a(Array.from(document.getElementsByTagName("noscript")).map(e=>e.parentElement),e=>{Array.from(e.getElementsByTagName("noscript")).forEach(e=>{if(t.test(e.textContent)){const t=document.createElement("div");t.innerHTML=e.textContent;const n=t.firstElementChild,r=e.parentElement.getElementsByClassName("com_readup_article_image_container")[0];r?"FIGURE"===r.nodeName?r.append(n):(n.classList.add("com_readup_article_image_container"),r.replaceWith(n)):e.replaceWith(n)}})});break;case i.NytFigureMulti:const n=Array.from(document.getElementsByTagName("figure")).filter(e=>"http://schema.org/ImageObject"===e.getAttribute("itemType"));n.length&&a(n,e=>{if(!e.getElementsByTagName("img").length){const t=document.createElement("img");t.src=e.getAttribute("itemID"),e.prepend(t)}});const l=Array.from(document.querySelectorAll("img[data-pattern][data-widths]"));l.length&&a(l,e=>{let t;try{let n=JSON.parse(e.dataset.widths);if(Array.isArray(n))t=e.dataset.pattern.replace("{{size}}",s(n).toString());else{const r=s(n.master.map(e=>e.size));t=e.dataset.pattern.replace("{{file}}",n.master.find(e=>e.size===r).filename)}}catch(n){t=e.dataset.mediaviewerSrc}t&&(e.src=t)});break;case i.PostLoadImgTag:a(Array.from(document.getElementsByTagName("postload-img")),e=>{const t=document.createElement("img");!function(e,t,...n){n.forEach(n=>{let r,i;"string"==typeof n?(r=n,i=n):(r=n[0],i=n[1]),e.hasAttribute(r)&&t.setAttribute(i,e.getAttribute(r))})}(e,t,...["data-alt","data-class","data-sizes","data-src","data-srcset","data-title"].map(e=>[e,e.split("-")[1]])),e.replaceWith(t)});break;case i.QuantaScriptTemplate:const u=document.querySelectorAll('div[id^="component-"] script');u.length&&a(Array.from(u).map(e=>e.parentElement),e=>{const t=e.getElementsByTagName("script")[0];if(t)try{const e=JSON.parse(t.textContent),n=document.createElement("img");if(n.src=e.data.src,t.replaceWith(n),e.data.attribution||e.data.caption){let t,i;const a=document.createElement("div");e.data.attribution&&(a.innerHTML=e.data.attribution,i=a.textContent),e.data.caption&&(a.innerHTML=e.data.caption,t=a.textContent),r.createMetadataElements(t,i,n)}}catch(e){}});break;case i.WashingtonPostScaleUp:a(Array.from(document.querySelectorAll("img[data-hi-res-src]")),e=>{e.src=e.getAttribute("data-hi-res-src")});break;default:let c;if(c=document.querySelectorAll('figure img[src^="https://miro.medium.com"]'),c.length)return e(i.MediumScaleUp);if(c=document.querySelectorAll(o),c.length)return e(i.DataSrcSrcset);if(c=document.querySelectorAll('img[src^="http:"]'),c.length)return e(i.HttpToHttps);if(c=document.querySelectorAll("noscript"),c.length)return e(i.NoscriptImgContent)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findPublisherConfig=void 0,t.findPublisherConfig=function(e,t){return e.find(e=>t.endsWith(e.hostname))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this._listeners=[]}addListener(e,t){const n={key:e,value:t};return this._listeners.push(n),()=>{const e=this._listeners.findIndex(e=>e===n);e>-1&&this._listeners.splice(e,1)}}removeListeners(e){this._listeners=this._listeners.filter(t=>t.key!==e)}triggerEvent(e,t){this._listeners.filter(t=>t.key===e).forEach(e=>{e.value(t)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(69);class i extends r.default{constructor(e,t){super(),this._targetWindow=e,this._targetOrigin=t,this._messageListener=e=>{"*"!==this._targetOrigin&&e.origin!==this._targetOrigin||this.processMessage(e.data)},window.addEventListener("message",this._messageListener)}postMessage(e){this._targetWindow.postMessage(e,this._targetOrigin)}destruct(){window.removeEventListener("message",this._messageListener)}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this._callbackId=1,this._onMessageListeners=[],this._responseCallbacks=[]}isResponseEnvelope(e){return null!=e.id}processMessage(e){if(this.isResponseEnvelope(e))this._responseCallbacks.splice(this._responseCallbacks.findIndex(t=>t.id===e.id),1)[0].function(e.data);else{let t;t=null!=e.callbackId?t=>{this.postMessage({id:e.callbackId,data:t})}:()=>{},this._onMessageListeners.forEach(n=>{n(e.data,t)})}}addListener(e){this._onMessageListeners.push(e)}sendMessage(e,t){let n=null;t&&this._responseCallbacks.push({id:n=this._callbackId++,function:t}),this.postMessage({data:e,callbackId:n})}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessage=void 0,function(e){e[e.Cancelled=1]="Cancelled",e[e.InvalidAuthToken=2]="InvalidAuthToken",e[e.InvalidSessionId=3]="InvalidSessionId",e[e.EmailAddressRequired=4]="EmailAddressRequired",e[e.Unknown=5]="Unknown"}(r||(r={})),t.errorMessage={[r.Cancelled]:"Authentication Cancelled",[r.InvalidAuthToken]:"Account Must Have Email Address",[r.InvalidSessionId]:"Invalid Auth Token",[r.EmailAddressRequired]:"Invalid Session ID",[r.Unknown]:"An Unknown Error Occurred"},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAuthServiceBrowserLinkSuccessResponse=void 0,t.isAuthServiceBrowserLinkSuccessResponse=function(e){return!e.error}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializationAction=void 0,function(e){e[e.Activate=0]="Activate",e[e.Deactivate=1]="Deactivate"}(t.InitializationAction||(t.InitializationAction={}))},function(e,t,n){"use strict";var r;function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?r.Dark:r.Light}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisplayPreferenceChangeMessage=t.getClientDefaultDisplayPreference=t.getClientPreferredColorScheme=t.areEqual=t.DisplayTheme=void 0,function(e){e[e.Light=1]="Light",e[e.Dark=2]="Dark"}(r=t.DisplayTheme||(t.DisplayTheme={})),t.areEqual=function(e,t){return e.hideLinks===t.hideLinks&&e.textSize===t.textSize&&e.theme===t.theme},t.getClientPreferredColorScheme=i,t.getClientDefaultDisplayPreference=function(){return{hideLinks:!0,textSize:1,theme:i()}},t.getDisplayPreferenceChangeMessage=function(e,t){let n;return t.hideLinks!==e.hideLinks?n="Links "+(t.hideLinks?"Disabled":"Enabled"):t.textSize!==e.textSize?n="Text Size "+(t.textSize>e.textSize?"Increased":"Decreased"):t.theme!==e.theme&&(n=(t.theme===r.Dark?"Dark":"Light")+" Theme Enabled"),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(31),i=n(75),a=n(13);function o(e,t=[]){let n=!1,r=!1;for(let t of e.childNodes)t.nodeType===Node.TEXT_NODE&&t.textContent.trim().length?n=!0:a.isBlockElement(t)&&(r=!0);if(n||!r)t.push(new i.default(e,function e(t){let n=0;for(const r of t.childNodes)r.nodeType===Node.TEXT_NODE?n+=a.getWordCount(r):a.isElement(r)&&(n+=e(r));return n}(e)));else for(let n of e.children)o(n,t);return t}t.default=class{constructor(e){this._contentEls=e.reduce((e,t)=>e.concat(o(t.containerElement)),[]).sort((e,t)=>e.offsetTop-t.offsetTop)}setReadState(e){const t=new r.default(e);let n=0;return this._contentEls.forEach((function(e){const i=t.wordCount-n;i>=e.wordCount?e.setReadState(t.slice(n,e.wordCount)):i>0?e.setReadState(new r.default([t.slice(n,i),new r.default([-(e.wordCount-i)])])):e.setReadState(new r.default([-e.wordCount])),n+=e.wordCount})),this}getReadState(){return new r.default(this._contentEls.map(e=>e.getReadState()))}updateLineHeight(){this._contentEls.forEach(e=>{e.setLineHeight()})}updateOffset(){this._contentEls.forEach(e=>e.updateOffset())}isRead(){return!this._contentEls.some(e=>!e.isRead())}readWord(){var e=this._contentEls.find(e=>e.isReadable());return!!e&&e.readWord()}getBookmarkScrollTop(){this.updateOffset();const e=this.getReadState(),t=this._contentEls.reduce((e,t)=>e.concat(t.lines),[]).reduce((t,n)=>t.reduce((e,t)=>e+t.readState.wordCount,0)e.readState.wordsRead>0);return t?Math.max(0,this._contentEls.find(e=>e.lines.includes(t)).offsetTop+t.top-window.innerHeight):0}toggleVisualDebugging(){this._contentEls.forEach(e=>e.toggleVisualDebugging())}unload(){for(const e of this._contentEls)e.stopVisualDebugging(),e.removeVisualDebuggingElements()}get elements(){return this._contentEls}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(31),i=n(76);t.default=class{constructor(e,t){this._isDebugging=!1,this._debugElements=[],this._element=e,this._contentOffset=this._getContentOffset(),this._contentRect=this._getContentRect(),this.setLineHeight(),this._wordCount=t,this._setLines(new r.default([-this._wordCount]))}_createListItemOrSpanElement(){let e;return e="OL"===this._element.nodeName||"UL"===this._element.nodeName?"li":"span",document.createElement(e)}isLineReadable(e){return this._contentRect.top+e.top>=window.pageYOffset&&this._contentRect.top+e.top<=window.innerHeight+window.pageYOffset&&!e.isRead()}_setLines(e){var t=Math.max(1,Math.floor(this._contentRect.height/this._lineHeight)),n=Math.floor(this._wordCount/t),r=this._wordCount%t;this._lines=[];for(var a=0,o=0;a0?r- --r:0);this._lines.push(new i.default(this._lineHeight*a,this._lineHeight,e.slice(o,s))),o+=s}this._syncDebugDisplay()}_getContentOffset(){const e=window.getComputedStyle(this._element),t=parseInt(e.borderTopWidth),n=parseInt(e.borderRightWidth),r=parseInt(e.borderBottomWidth),i=parseInt(e.borderLeftWidth);return{top:t+parseInt(e.paddingTop),right:n+parseInt(e.paddingRight),bottom:r+parseInt(e.paddingBottom),left:i+parseInt(e.paddingLeft)}}_getContentRect(){const e=this._element.getBoundingClientRect();return{top:window.pageYOffset+e.top+this._contentOffset.top,left:e.left+this._contentOffset.left,width:e.width-(this._contentOffset.left+this._contentOffset.right),height:e.height-(this._contentOffset.top+this._contentOffset.bottom)}}_syncDebugDisplay(){if(!this._isDebugging)return;const e=this._lines.length,t=this._debugElements.length;if(e>t)for(let n=0;n{e.remove()})}this._lines.forEach((e,t)=>{const n=this._debugElements[t],r=e.readState.getPercentComplete();n.style.top=e.top+"px",n.style.backgroundImage=`linear-gradient(to right, rgba(0, 255, 0, 0.5) ${r}%, transparent ${r}%)`})}setLineHeight(){const e=this._createListItemOrSpanElement();"LI"===e.nodeName&&(e.style.display="inline"),e.style.whiteSpace="pre",e.innerHTML=" \n ",this._element.appendChild(e);const t=e.getClientRects();let n;t.length&&(n=t[t.length-1].top-t[0].top),e.remove(),this._lineHeight=n||this._contentRect.height||1}updateOffset(){const e=this._getContentRect();e.top===this._contentRect.top&&e.left===this._contentRect.left&&e.width===this._contentRect.width&&e.height===this._contentRect.height||(this._contentRect=e,this._setLines(this.getReadState()))}toggleVisualDebugging(){this._isDebugging?this.stopVisualDebugging():this.startVisualDebugging()}startVisualDebugging(){this._isDebugging||(this._isDebugging=!0,this._element.style.position="relative",this._element.style.boxShadow="0 0 0 2px green",this._debugElements.forEach(e=>{e.style.display="block"}),this._syncDebugDisplay())}stopVisualDebugging(){this._isDebugging&&(this._isDebugging=!1,this._element.style.boxShadow="",this._debugElements.forEach(e=>{e.style.display="none"}))}removeVisualDebuggingElements(){for(;this._debugElements.length;)this._debugElements.pop().remove()}isReadable(){return this._lines.some(e=>this.isLineReadable(e))}readWord(){const e=this._lines.find(e=>this.isLineReadable(e));if(e){const t=e.readWord();return t&&this._syncDebugDisplay(),t}return!1}getReadState(){return new r.default(this._lines.map((function(e){return e.readState})))}setReadState(e){this._setLines(e)}isRead(){return!this._lines.some((function(e){return!e.isRead()}))}get element(){return this._element}get lines(){return this._lines}get offsetTop(){return this._contentRect.top}get wordCount(){return this._wordCount}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e,t,n){this._top=e,this._readState=n}isRead(){return this._readState.isComplete()}readWord(){return this._readState.readWord()}get readState(){return this._readState}get top(){return this._top}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e){this._isReading=!1,this._lastCommitPercentComplete=0,this._read=()=>{if(this._isReading){const e=Date.now(),t=e-(this._lastReadTimestamp||e-300),n=Math.floor(t/100);for(let e=0;e{this._page&&(window.document.hidden?this.stopReading():this.startReading())})}commitReadState(){const e=this._page.getReadState(),t=e.getPercentComplete();if(t>this._lastCommitPercentComplete){const n=t>=90;this._onCommitReadState({isCompletionCommit:this._lastCommitPercentComplete<90&&n,isRead:n,percentComplete:t,readStateArray:e.readStateArray}),this._lastCommitPercentComplete=t}}startReading(){this._isReading||this._page.isRead()||(this._isReading=!0,this._commitInterval=window.setInterval(()=>{this.commitReadState()},3e3),this._offsetUpdateInterval=window.setInterval(()=>{this._page.updateOffset()},3e3),this._read())}stopReading(){this._isReading&&(this._isReading=!1,this._lastReadTimestamp=null,window.clearInterval(this._commitInterval),window.clearInterval(this._offsetUpdateInterval))}loadPage(e){this._page=e,"visible"===window.document.visibilityState&&this.startReading()}unloadPage(){this.stopReading(),this._page=null,this._lastCommitPercentComplete=0}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Authenticate=0]="Authenticate",e[e.CreateAuthServiceAccount=1]="CreateAuthServiceAccount",e[e.ExtensionInstalled=2]="ExtensionInstalled",e[e.ResetPassword=3]="ResetPassword"}(r||(r={})),t.default=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Regular=0]="Regular",e[e.Admin=1]="Admin"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(10),i=n(81);t.default=class{constructor(e){this.copyText=(e,t)=>{this._clipboardTextInput&&(this._clipboardTextInput.value=e,this.setTextSelection(),window.document.execCommand("copy"),this._clipboardTextInput.value="",t&&this._addToast(t,r.Intent.Success))},this.setTextInputRef=e=>{this._clipboardTextInput=e},this._addToast=e}setTextSelection(){if(i.getDeviceType(window.navigator.userAgent)===i.DeviceType.Ios){const e=window.document.createRange(),t=window.getSelection();e.selectNodeContents(this._clipboardTextInput),t.removeAllRanges(),t.addRange(e),this._clipboardTextInput.setSelectionRange(0,999999)}else this._clipboardTextInput.select()}}},function(e,t,n){"use strict";var r;function i(e){return e===r.DesktopChrome||e===r.DesktopEdge||e===r.DesktopFirefox||e===r.DesktopSafari}Object.defineProperty(t,"__esModule",{value:!0}),t.isMobileDevice=t.isCompatibleDevice=t.isCompatibleBrowser=t.getBrowserIconName=t.getStoreUrl=t.getExtensionName=t.getDeviceType=t.DeviceType=void 0,function(e){e.Unknown="Unknown Browser",e.Ios="iOS",e.Android="Android",e.DesktopChrome="Chrome",e.DesktopFirefox="Firefox",e.DesktopSafari="Safari",e.DesktopEdge="Edge"}(r=t.DeviceType||(t.DeviceType={})),t.getDeviceType=function(e){return/(iphone|ipad|ipod)/i.test(e)?r.Ios:/(android)/i.test(e)?r.Android:/(firefox)/i.test(e)?r.DesktopFirefox:/(edg)/i.test(e)?r.DesktopEdge:/(chrome)/i.test(e)?r.DesktopChrome:/(safari)/i.test(e)?r.DesktopSafari:r.Unknown},t.getExtensionName=function(e){switch(e){case r.DesktopChrome:return"extension";case r.DesktopEdge:return"add-on";case r.DesktopSafari:return"extension";case r.DesktopFirefox:return"add-on"}},t.getStoreUrl=function(e){switch(e){case r.DesktopChrome:return"https://chrome.google.com/webstore/detail/readup/mkeiglkfdfamdjehidenkklibndmljfi";case r.DesktopEdge:return"https://microsoftedge.microsoft.com/addons/detail/readup/nnnlnihiejbbkikldbfeeefljhpplhcm";case r.DesktopFirefox:return"https://addons.mozilla.org/en-US/firefox/addon/readup/";case r.DesktopSafari:case r.Ios:return"https://apps.apple.com/us/app/readup-social-reading/id1441825432"}},t.getBrowserIconName=function(e){switch(e){case r.DesktopChrome:return"chrome";case r.DesktopEdge:return"edge";case r.DesktopFirefox:return"firefox";case r.DesktopSafari:return"safari"}},t.isCompatibleBrowser=i,t.isCompatibleDevice=function(e){return i(e)||e===r.Ios},t.isMobileDevice=function(e){return e===r.Android||e===r.Ios}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor({setState:e}){this._key=0,this._renderers=[],this.closeDialog=()=>{this._setState(e=>{const t=e.dialogs.slice();return t.splice(t.length-1,1,Object.assign(Object.assign({},t[t.length-1]),{value:{stage:"closing"}})),{dialogs:t}})},this.getDialogRenderer=e=>this._renderers.find(t=>t.key===e).value,this.handleTransitionCompletion=(e,t)=>{switch(t){case"closing":this._setState(t=>{const n=t.dialogs.slice();return n.splice(n.findIndex(t=>t.key===e),1),{dialogs:n}},()=>{this._renderers.splice(this._renderers.findIndex(t=>t.key===e),1)});break;case"opening":this._setState(t=>{const n=t.dialogs.slice(),r=n.find(t=>t.key===e);return n.splice(n.indexOf(r),1,Object.assign(Object.assign({},r),{value:{stage:"opened"}})),{dialogs:n}})}},this.openDialog=(e,t="replace")=>{this._setState(n=>{const r=n.dialogs.slice();return r.push(this.createDialog(e)),"replace"===t&&r.length>1&&r.splice(r.length-2,1,Object.assign(Object.assign({},r[r.length-2]),{value:{stage:"closing"}})),{dialogs:r}})},this._setState=e}createDialog(e){const t=this._key++;return this._renderers.push({key:t,value:"function"==typeof e?e:()=>e}),{key:t,value:{stage:"opening"}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(e){this.addToast=(e,t,n=!0)=>{const r={content:e,intent:t,timeoutHandle:n?this._asyncTracker.addTimeout(window.setTimeout(()=>{this._setState(e=>{const t=e.toasts.slice();return t[t.indexOf(r)]=Object.assign(Object.assign({},r),{remove:!0}),{toasts:t}})},5e3)):0,remove:!1};this._setState(e=>({toasts:[...e.toasts,r]}))},this.removeToast=e=>{this._setState(t=>({toasts:t.toasts.filter(t=>t.timeoutHandle!==e)}))},this._asyncTracker=e.asyncTracker,this._setState=e.setState}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[{family:"Cambria (bold)",fileName:"cambria-bold.ttf"},{family:"Cambria (regular)",fileName:"cambria-regular.ttf"},{family:"Museo Sans (100)",fileName:"museo-sans-100.ttf"},{family:"Museo Sans (300)",fileName:"museo-sans-300.ttf"},{family:"Museo Sans (500)",fileName:"museo-sans-500.ttf"},{family:"Museo Sans (700)",fileName:"museo-sans-700.ttf"},{family:"Museo Sans (900)",fileName:"museo-sans-900.ttf"}];t.default=function(e,t=[]){const n=document.createElement("style");n.textContent=r.concat(t).map(t=>`@font-face { font-family: '${t.family}'; src: url('${e+t.fileName}'); }`).join("\n"),document.body.append(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(20),i=n(86);t.default=class{constructor({clientVersion:e,endpoint:t}){this._clientVersion=e,this._endpoint=t}fetch(e,t,n){let a;const o={credentials:"include",headers:new Headers({"X-Readup-Client":"web/embed@"+this._clientVersion.toString()}),method:e};switch(e){case i.default.Get:a=r.createUrl(this._endpoint,t,n);break;case i.default.Post:a=r.createUrl(this._endpoint,t),n&&(o.headers.append("Content-Type","application/json"),o.body=JSON.stringify(n))}return fetch(a,o).then(e=>{const t=e.headers.get("content-type");if((null==t?void 0:t.includes("application/json"))||(null==t?void 0:t.includes("application/problem+json")))return e.json().then(t=>{if(!e.ok)throw t||[];return t});if(!e.ok){const t=new Error;throw t.name=e.status.toString(),t}return null})}createAuthServiceAccount(e){return this.fetch(i.default.Post,"/UserAccounts/AuthServiceAccount",e)}createUserAccount(e){return this.fetch(i.default.Post,"/UserAccounts/CreateAccount",e)}deleteComment(e){return this.fetch(i.default.Post,"/Social/CommentDeletion",e)}getAuthServiceBrowserPopupResponse(e){return this.fetch(i.default.Get,"/Auth/BrowserPopupResponse",e)}getComments(e){return this.fetch(i.default.Get,"/Articles/ListComments",{slug:e})}initialize(e){return this.fetch(i.default.Post,"/Embed/Initialization",e)}postArticle(e){return this.fetch(i.default.Post,"/Social/Post",e)}postComment(e){return this.fetch(i.default.Post,"/Social/Comment",e)}postCommentAddendum(e){return this.fetch(i.default.Post,"/Social/CommentAddendum",e)}postCommentRevision(e){return this.fetch(i.default.Post,"/Social/CommentRevision",e)}requestAuthServiceBrowserPopupRequest(e){return this.fetch(i.default.Post,"/Auth/BrowserPopupRequest",e)}requestPasswordReset(e){return this.fetch(i.default.Post,"/UserAccounts/RequestPasswordReset",e)}signIn(e){return this.fetch(i.default.Post,"/UserAccounts/SignIn",e)}updateReadProgress(e){return this.fetch(i.default.Post,"/Embed/ReadProgress",e)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Get="get",e.Post="post"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(88),i=n(118),a=n(40),o=n(21);class s extends a.default{constructor(e){super(e),this._component=r.default,this._services=Object.assign(Object.assign({},e.services),{onDeleteComment:t=>e.services.onDeleteComment(t).then(e=>(this.commentUpdated(e),e)),onPostArticle:t=>e.services.onPostArticle(t).then(e=>(e.comment&&this.commentPosted(o.createCommentThread(e)),e)),onPostComment:t=>e.services.onPostComment(t).then(e=>{this.commentPosted(e.comment)}),onPostCommentAddendum:t=>e.services.onPostCommentAddendum(t).then(e=>(this.commentUpdated(e),e)),onPostCommentRevision:t=>e.services.onPostCommentRevision(t).then(e=>(this.commentUpdated(e),e))}),this.setState(e.state)}commentPosted(e){this._state.comments.isLoading||this.setState({comments:Object.assign(Object.assign({},this._state.comments),{value:i.mergeComment(e,this._state.comments.value)})})}commentUpdated(e){this._state.comments.isLoading||this.setState({comments:Object.assign(Object.assign({},this._state.comments),{value:i.updateComment(e,this._state.comments.value)})})}}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(89),a=n(94),o=n(117),s=n(17),l=n(11),u=n(3);class c extends r.Component{constructor(){super(...arguments),this._openPostDialog=e=>{const t=e=>{this.props.dialogService.openDialog(r.createElement(i.default,{article:e,onCloseDialog:this.props.dialogService.closeDialog,onLinkAuthServiceAccount:this.props.onLinkAuthServiceAccount,onOpenDialog:this.props.dialogService.openDialog,onShowToast:this.props.toasterService.addToast,onSubmit:this.props.onPostArticle,user:this.props.user}))};if(this.props.user)t(e);else{const n=this.props.onAuthenticationRequired("EmbedPost",()=>{n(),t(e)})}},this._requireAuthenticationForReply=e=>this.props.onAuthenticationRequired("EmbedReply",e)}render(){return r.createElement("div",{className:"embed-comments-section_40yiiy"},this.props.article.isRead?r.createElement(o.default,{article:this.props.article,onPost:this._openPostDialog,promptMessage:"Post this article on Readup."}):null,this.props.comments.isLoading?r.createElement(s.default,{className:"loading-comments"},r.createElement(l.default,null)," Loading comments..."):r.createElement(r.Fragment,null,r.createElement(a.default,{article:this.props.article,comments:this.props.comments.value,noCommentsMessage:"No comments on this article yet.",onAuthenticationRequired:this._requireAuthenticationForReply,onCloseDialog:this.props.dialogService.closeDialog,onCreateAbsoluteUrl:this.props.onCreateAbsoluteUrl,onDeleteComment:this.props.onDeleteComment,onNavTo:this.props.onNavTo,onOpenDialog:this.props.dialogService.openDialog,onPostComment:this.props.onPostComment,onPostCommentAddendum:this.props.onPostCommentAddendum,onPostCommentRevision:this.props.onPostCommentRevision,onShare:this.props.onShare,onShareViaChannel:this.props.onShareViaChannel,onViewProfile:this.props.onViewProfile,user:this.props.user}),r.createElement("div",{className:"embed-solicitation"},"Want a reader-only comments section like this on your blog?"," ",r.createElement(u.DiscordInviteLink,{onClick:this.props.onNavTo},"Help our community achieve it."))))}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(22),a=n(90),o=n(10),s=n(3),l=n(16),u=n(91),c=n(8);class d extends r.PureComponent{constructor(e){super(e),this._changeCommentText=e=>{this._isLinkingTwitterAccount||this.setState({commentText:e.currentTarget.value})},this._changeRatingScore=e=>{this._isLinkingTwitterAccount||this.setState({ratingScore:e})},this._changeTweet=(e,t)=>{if(this.setState({tweet:t}),t&&!this.props.user.hasLinkedTwitterAccount&&!this._hasLinkedTwitterAccount)return this._isLinkingTwitterAccount=!0,this.setState({isLinkingTwitterAccount:!0}),this.props.onLinkAuthServiceAccount(c.default.Twitter).then(()=>{this._isLinkingTwitterAccount=!1,this._hasLinkedTwitterAccount=!0,this.setState({isLinkingTwitterAccount:!1}),this.props.onShowToast("Account Linked",o.Intent.Success)}).catch(e=>{var t;this._isLinkingTwitterAccount=!1,this.setState({isLinkingTwitterAccount:!1,tweet:!1});const n=null===(t=e)||void 0===t?void 0:t.message;if("Unsupported"!==n){let e,t;"Cancelled"===n?(e="Authentication Cancelled",t=o.Intent.Neutral):(e="Error: "+(null!=n?n:"Unknown error")+".",t=o.Intent.Danger),this.props.onShowToast(e,t)}throw e})},this._hasLinkedTwitterAccount=!1,this._isLinkingTwitterAccount=!1,this._openMarkdownDialog=()=>{this.props.onOpenDialog(r.createElement(l.default,{onClose:this.props.onCloseDialog}),"push")},this._submit=()=>this.props.onSubmit({articleId:this.props.article.id,ratingScore:this.state.ratingScore,commentText:this.state.commentText,tweet:this.state.tweet}).then(()=>{this.props.onShowToast("Article Posted",o.Intent.Success)}),this.state={commentText:"",isLinkingTwitterAccount:!1,ratingScore:e.article.ratingScore,tweet:e.user.hasLinkedTwitterAccount}}render(){return r.createElement(i.default,{buttonsDisabled:this.state.isLinkingTwitterAccount,className:"post-dialog_to9nib",closeButtonText:"Cancel",onClose:this.props.onCloseDialog,onSubmit:this._submit,title:"Post Article"},r.createElement("div",{className:"rating"},r.createElement(a.default,{allowDeselect:null==this.props.article.ratingScore,onChange:this._changeRatingScore,showLabels:!0,promptText:"Would you recommend this article to others?",value:this.state.ratingScore})),r.createElement("textarea",{onChange:this._changeCommentText,placeholder:"Optional: Share your thoughts or ask a question.",value:this.state.commentText}),r.createElement(s.default,{iconLeft:"question-circle",onClick:this._openMarkdownDialog,state:this.state.isLinkingTwitterAccount?"disabled":"normal",text:"Formatting Guide"}),r.createElement(u.default,{isEnabled:this.state.tweet,onChange:this._changeTweet,title:"Tweet this post"}))}}t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(1);class a extends r.PureComponent{constructor(){super(...arguments),this._selectRating=e=>{const t=parseInt(e.currentTarget.value);(t!==this.props.value||this.props.allowDeselect)&&this.props.onChange(t!==this.props.value?t:null)}}render(){return r.createElement("div",{className:"rating-selector_epcgq9"},this.props.promptText?r.createElement("div",{className:"prompt-text"},r.createElement("strong",null,this.props.promptText)):null,r.createElement("div",{className:"rating-bar"},this.props.showLabels?r.createElement("label",null,"No"):null,r.createElement("div",{className:"buttons"},Array.from(new Array(10)).map((e,t)=>{const n=t+1;return r.createElement("button",{className:i.default("rating-button",{selected:n===this.props.value}),key:t,onClick:this._selectRating,value:n},n)})),this.props.showLabels?r.createElement("label",null,"Yes"):null))}}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(6),a=n(33),o=n(92),s=n(1);class l extends r.PureComponent{constructor(e){super(e),this._asyncTracker=new i.default,this._isSaving=!1,this._toggleEnabled=e=>{if(this._isSaving)return;const t=this.props.onChange(this.props.value,e);t&&(this._isSaving=!0,this.setState({indicator:a.State.Saving}),this._asyncTracker.addPromise(t).then(()=>{this._isSaving=!1,this.setState({indicator:a.State.Saved})}).catch(e=>{var t;(null===(t=e)||void 0===t?void 0:t.isCancelled)||(this._isSaving=!1,this.setState({indicator:a.State.None}))}))},this.state={indicator:a.State.None}}componentWillUnmount(){this._asyncTracker.cancelAll()}render(){return r.createElement(o.default,{className:s("toggle-switch-input_hnmxln",this.props.className),isEnabled:this.props.isEnabled,onChange:this._toggleEnabled,saveIndicator:this.state.indicator,subtitle:this.props.subtitle,title:this.props.title})}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(93),a=n(33),o=n(1);class s extends r.PureComponent{constructor(){super(...arguments),this._toggleEnabled=()=>{this.props.onChange(!this.props.isEnabled)}}render(){return r.createElement("div",{className:o("toggle-switch-expandable-input_i54wnk",this.props.className)},r.createElement("div",{className:"switch-container"},r.createElement(i.default,{isChecked:this.props.isEnabled,onChange:this._toggleEnabled})),r.createElement("div",{className:"controls"},r.createElement("div",{className:"header"},r.createElement("label",{onClick:this._toggleEnabled},this.props.title),this.props.subtitle?r.createElement("span",null,this.props.subtitle):null,r.createElement(a.default,{state:this.props.saveIndicator})),r.createElement("div",{className:"children"},this.props.children)))}}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);class i extends r.PureComponent{constructor(){super(...arguments),this._change=e=>{this.props.onChange(e.currentTarget.checked)}}render(){return r.createElement("label",{className:"toggle-switch_t7od1q"},r.createElement("input",{type:"checkbox",checked:this.props.isChecked,onChange:this._change}),r.createElement("span",{className:"switch"}))}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(95),a=n(17),o=n(2);t.default=e=>{const t=e.article.isRead;return r.createElement("div",{className:"comments-section_mqmgnd"},t?null:r.createElement(a.default,{className:"post"},r.createElement("div",{className:"locked"},r.createElement(o.default,{className:"padlock",display:"block",name:"padlock"}),"You must read the article before you can comment on it.")),e.comments.length?r.createElement("ul",{className:"comments"},e.comments.map(n=>r.createElement("li",{key:n.id},r.createElement(i.default,{comment:n,highlightedCommentId:e.highlightedCommentId,onAuthenticationRequired:e.onAuthenticationRequired,onCloseDialog:e.onCloseDialog,onCreateAbsoluteUrl:e.onCreateAbsoluteUrl,onDeleteComment:t?e.onDeleteComment:null,onNavTo:e.onNavTo,onOpenDialog:e.onOpenDialog,onPostComment:t?e.onPostComment:null,onPostCommentAddendum:t?e.onPostCommentAddendum:null,onPostCommentRevision:t?e.onPostCommentRevision:null,onShare:e.onShare,onShareViaChannel:e.onShareViaChannel,onViewProfile:e.onViewProfile,user:e.user})))):r.createElement(a.default,{className:"no-comments"},e.noCommentsMessage))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(96),a=n(3),o=n(1),s=n(6),l=n(5),u=n(17),c=n(98),d=n(103),h=n(22),p=n(104),f=n(12),m=n(105),g=n(116);var v;!function(e){e[e.None=0]="None",e[e.Reply=1]="Reply",e[e.Revision=2]="Revision",e[e.Addendum=3]="Addendum"}(v||(v={}));class y extends g.default{constructor(e){super(e),this._asyncTracker=new s.default,this._openEditComposer=()=>{-1*f.DateTime.fromISO(l.formatIsoDateAsUtc(this.props.comment.dateCreated)).diffNow("seconds").seconds<170?this.setState({compositionState:v.Revision}):this.setState({compositionState:v.Addendum})},this._openReplyComposer=()=>{const e=()=>{this.setState({compositionState:v.Reply})};if(this.props.user)e();else if(this.props.onAuthenticationRequired){const t=this.props.onAuthenticationRequired(()=>{t(),this._asyncTracker.removeCancellationDelegate(t),e()});this._asyncTracker.addCancellationDelegate(t)}},this._closeComposer=()=>{this.setState({compositionState:v.None})},this._openDeleteDialog=()=>{this.props.onOpenDialog(r.createElement(h.default,{closeButtonText:"Cancel",onClose:this.props.onCloseDialog,onSubmit:()=>this.props.onDeleteComment({commentId:this.props.comment.id}),size:"small",textAlign:"center",title:"Delete Comment"},r.createElement("p",null,"Are you sure?"),r.createElement("p",null,"Comment deletion is permanent. You can't undo this action.")))},this._navTo=e=>{const t=this.props.onNavTo(e);return t||this.props.onOpenDialog(r.createElement(h.default,{closeButtonText:"Ok",onClose:this.props.onCloseDialog,size:"small",textAlign:"center",title:"Navigation Error"},r.createElement("p",null,"This link is invalid."))),t},this._postComment=e=>this.props.onPostComment(e).then(this._asyncTracker.addCallback(()=>{this.setState({compositionState:v.None})})),this._postCommentRevision=e=>this._asyncTracker.addPromise(this.props.onPostCommentRevision(e)).then(e=>(this.setState({compositionState:v.None}),e)),this._postCommentAddendum=e=>this._asyncTracker.addPromise(this.props.onPostCommentAddendum(e)).then(e=>(this.setState({compositionState:v.None}),e)),this._viewThread=()=>{this.props.onViewThread(this.props.comment)},this.state={compositionState:v.None},this.props.onPostComment&&this.props.user&&this.props.user.name===this.props.comment.userAccount&&(this._textDivRef=r.createRef())}componentWillUnmount(){this._asyncTracker.cancelAll()}render(){var e;const t=this.props.comment.dateDeleted?"This comment was deleted on "+f.DateTime.fromISO(l.formatIsoDateAsUtc(this.props.comment.dateDeleted)).toLocaleString(f.DateTime.DATE_SHORT):this.props.comment.text;return r.createElement(u.default,{className:"comment-details_qker1u",highlight:this.props.highlightedCommentId===this.props.comment.id},this.props.showPostHeader?r.createElement(c.default,{userName:this.props.comment.userAccount,leaderboardBadge:this.props.comment.badge,isAuthor:this.props.comment.isAuthor,date:this.props.comment.dateCreated,onCreateAbsoluteUrl:this.props.onCreateAbsoluteUrl,onGetShareData:this._getShareData,onShare:this.props.onShare,onShareViaChannel:this.props.onShareViaChannel,onViewProfile:this.props.onViewProfile}):null,this.state.compositionState===v.Revision?r.createElement(d.default,{comment:this.props.comment,initialHeight:this._textDivRef.current&&this._textDivRef.current.offsetHeight+30||0,onClose:this._closeComposer,onCloseDialog:this.props.onCloseDialog,onCreateAddendum:this._openEditComposer,onOpenDialog:this.props.onOpenDialog,onPostRevision:this._postCommentRevision}):r.createElement(r.Fragment,null,r.createElement("div",{className:"text-wrapper",ref:this._textDivRef},r.createElement(m.default,{className:o.default("text",{deleted:!!this.props.comment.dateDeleted}),onNavTo:this._navTo,text:t})),this.props.comment.addenda.length?r.createElement("ol",{className:"addenda"},this.props.comment.addenda.map(e=>r.createElement("li",{className:"addendum",key:e.dateCreated},r.createElement("span",{className:"date"},"Update (",f.DateTime.fromISO(l.formatIsoDateAsUtc(e.dateCreated)).toLocaleString(f.DateTime.DATE_SHORT),"):"),r.createElement(m.default,{className:"text",onNavTo:this._navTo,text:e.textContent})))):null),this.state.compositionState===v.Addendum?r.createElement(p.default,{comment:this.props.comment,onClose:this._closeComposer,onCloseDialog:this.props.onCloseDialog,onOpenDialog:this.props.onOpenDialog,onPostAddendum:this._postCommentAddendum}):null,this.state.compositionState===v.Reply?r.createElement(i.default,{articleId:this.props.comment.articleId,onCancel:this._closeComposer,onCloseDialog:this.props.onCloseDialog,onOpenDialog:this.props.onOpenDialog,onPostComment:this._postComment,parentCommentId:this.props.comment.id}):null,this.state.compositionState!==v.None||!this.props.onPostComment&&!this.props.onViewThread||this.props.comment.dateDeleted?null:r.createElement("div",{className:"actions"},this.props.onPostComment?(null===(e=this.props.user)||void 0===e?void 0:e.name)===this.props.comment.userAccount?r.createElement(r.Fragment,null,r.createElement(a.default,{text:"Edit",onClick:this._openEditComposer}),r.createElement(a.default,{text:"Delete",onClick:this._openDeleteDialog})):r.createElement(a.default,{text:"Reply",onClick:this._openReplyComposer}):this.props.onViewThread?r.createElement(a.default,{href:this.getCommentAbsoluteUrl(),text:"View Thread",onClick:this._viewThread}):null),this.props.comment.children.length?r.createElement("ul",{className:"replies"},this.props.comment.children.map(e=>r.createElement("li",{key:e.id},r.createElement(y,{comment:e,highlightedCommentId:this.props.highlightedCommentId,onAuthenticationRequired:this.props.onAuthenticationRequired,onCloseDialog:this.props.onCloseDialog,onCreateAbsoluteUrl:this.props.onCreateAbsoluteUrl,onDeleteComment:this.props.onDeleteComment,onNavTo:this.props.onNavTo,onOpenDialog:this.props.onOpenDialog,onPostComment:this.props.onPostComment,onPostCommentAddendum:this.props.onPostCommentAddendum,onPostCommentRevision:this.props.onPostCommentRevision,onShare:this.props.onShare,onShareViaChannel:this.props.onShareViaChannel,onViewProfile:this.props.onViewProfile,onViewThread:this.props.onViewThread,parentCommentId:this.props.comment.id,user:this.props.user})))):null)}}t.default=y,y.defaultProps={showPostHeader:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(4),a=n(1),o=n(6),s=n(3),l=n(16);class u extends r.PureComponent{constructor(e){super(e),this._asyncTracker=new o.default,this._updateCommentText=e=>this.setState({commentText:e.currentTarget.value,hasContent:""!==e.currentTarget.value.trim()}),this._mousedown=()=>this.setState({isMousedown:!0}),this._mousemove=()=>this.setState(e=>({isResizing:e.isMousedown})),this._mouseup=()=>this.setState({isMousedown:!1,isResizing:!1}),this._focus=()=>{this.setState({hasFocus:!0}),window.reallyreadit&&window.reallyreadit.app&&(window.reallyreadit.app.isFocusedOnField=!0)},this._blur=()=>{this.setState({hasFocus:!1}),window.reallyreadit&&window.reallyreadit.app&&(window.reallyreadit.app.isFocusedOnField=!1,window.setTimeout(()=>{window.reallyreadit.app.isFocusedOnField||0===window.scrollY||window.scrollTo(0,0)},100))},this._openMarkdownDialog=()=>{this.props.onOpenDialog(r.createElement(l.default,{onClose:this.props.onCloseDialog}))},this._postComment=()=>{this.setState({isPosting:!0}),this.props.onPostComment({text:this.state.commentText,articleId:this.props.articleId,parentCommentId:this.props.parentCommentId}).then(this._asyncTracker.addCallback(()=>{this.setState({commentText:"",hasContent:!1,isPosting:!1})}))},this._cancel=()=>{this.setState({commentText:"",hasContent:!1}),this.props.onCancel&&this.props.onCancel()},this.state={commentText:"",hasContent:!1,hasFocus:!1,isMousedown:!1,isResizing:!1,isPosting:!1}}componentWillUnmount(){this._asyncTracker.cancelAll()}render(){const e={};return this.state.hasFocus||this.state.hasContent||(e.width="100%",e.height=this.props.parentCommentId?"130px":"64px"),r.createElement("div",{className:"comment-composer_fgo1ny"},r.createElement("textarea",{className:a.default({expanded:!!(this.props.parentCommentId||this.state.hasFocus||this.state.hasContent),resizing:this.state.isResizing}),value:this.state.commentText,onChange:this._updateCommentText,autoFocus:!!this.props.parentCommentId,onFocus:this._focus,onBlur:this._blur,onMouseDown:this._mousedown,onMouseMove:this._mousemove,onMouseUp:this._mouseup,placeholder:"Share your thoughts.",style:e}),r.createElement("div",{className:"controls"},r.createElement(s.default,{iconLeft:"question-circle",onClick:this._openMarkdownDialog,text:"Formatting Guide"}),r.createElement("div",{className:"buttons"},this.props.parentCommentId?r.createElement(i.default,{text:"Cancel",state:this.state.isPosting?"disabled":"normal",onClick:this._cancel}):null,r.createElement(i.default,{text:"Post "+(this.props.parentCommentId?"Reply":"Comment"),style:"preferred",state:this.state.isPosting?"busy":this.state.hasContent?"normal":"disabled",onClick:this._postComment}))))}}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(1),a=n(6);class o extends r.PureComponent{constructor(e){super(e),this._asyncTracker=new a.default,this.state={fadeHighlight:!1},e.highlight&&(this._elementRef=r.createRef())}componentDidMount(){this.props.highlight&&this._asyncTracker.addTimeout(window.setTimeout(()=>{"IntersectionObserver"in window&&(this._intersectionObserver=new IntersectionObserver(e=>{const t=e[0];t&&t.isIntersecting&&(this.setState({fadeHighlight:!0}),this._intersectionObserver.unobserve(t.target))}),this._intersectionObserver.observe(this._elementRef.current));const e=this._elementRef.current.getBoundingClientRect();(e.top<0||e.bottom>window.innerHeight)&&this._elementRef.current.scrollIntoView({behavior:"smooth",block:"start"})},100))}componentWillUnmount(){this._asyncTracker.cancelAll(),this._intersectionObserver&&this._intersectionObserver.disconnect()}render(){return r.createElement("div",{className:i.default("highlighter_trojkf",this.props.className,{"fade-highlight":this.state.fadeHighlight,highlight:this.props.highlight}),ref:this._elementRef},this.props.children)}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(34),a=n(99),o=n(145),s=n(100),l=n(2),u=n(102),c=n(1);function d(e){return"boolean"==typeof e.verbose}const h=e=>r.createElement("div",{className:c("post-header_f4a846",{"has-flair":e.isAuthor,"is-verbose":d(e)&&e.verbose})},!e.userName||e.user&&e.user.name===e.userName?r.createElement("span",{className:"user-name"},e.userName||"[user]"):r.createElement(u.default,{className:"user-name",onCreateAbsoluteUrl:e.onCreateAbsoluteUrl,onViewProfile:e.onViewProfile,userName:e.userName}),e.leaderboardBadge!==i.default.None?r.createElement(a.default,{badge:e.leaderboardBadge}):null,d(e)&&e.verbose?r.createElement("span",{className:"posted-copy"},function(e){return e.isReply?"replied":e.userName===e.article.firstPoster?"scouted":e.isComment?"commented":"read"}(e)):null,r.createElement("span",{className:"age"},o.format(e.date.replace(/([^Z])$/,"$1Z"))),e.userName&&e.onGetShareData&&e.onShare&&e.onShareViaChannel?r.createElement(s.default,{menuPosition:s.MenuPosition.RightMiddle,onGetData:e.onGetShareData,onShare:e.onShare,onShareViaChannel:e.onShareViaChannel},r.createElement(l.default,{display:"block",name:"share"})):null,e.isAuthor?r.createElement("span",{className:"author"},r.createElement(l.default,{name:"verified-user"}),r.createElement("span",null,"Writer")):null);h.defaultProps={verbose:!1},t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(34),a=n(2);t.default=e=>{let t=[];return e.badge&i.default.WeeklyReadCount&&t.push({iconName:"power",title:"Top reader this week"}),e.badge&i.default.ReadCount&&t.push({iconName:"medal",title:"Top reader of all time"}),e.badge&i.default.Streak&&t.push({iconName:"fire",title:"Reading streak"}),e.badge&i.default.LongestRead&&t.push({iconName:"graduation",title:"Longest recent read"}),e.badge&i.default.Scout&&t.push({iconName:"binoculars",title:"Scout"}),e.badge&i.default.Scribe&&t.push({iconName:"quill",title:"Scribe"}),r.createElement("div",{className:"leaderboard-badges_s4o6nj"},t.map(e=>r.createElement(a.default,{className:"badge",key:e.iconName,name:e.iconName,title:e.title})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(2),a=n(32),o=n(5),s=n(35);var l=n(35);Object.defineProperty(t,"MenuPosition",{enumerable:!0,get:function(){return l.MenuPosition}});class u extends r.PureComponent{constructor(e){super(e),this._beginClosingMenu=()=>{this.setState({menuState:s.MenuState.Closing})},this._copyLink=()=>{this.props.onShareViaChannel({channel:a.default.Clipboard,text:this.props.onGetData().url}),this.completeWithActivityType("Copy")},this._closeMenu=()=>{this.setState({data:null,menuState:s.MenuState.Closed,shareChannels:[]}),this._shareResponseCompletionHandler=null},this._openMenu=e=>{const t=this.props.onGetData(),n=e.currentTarget.getBoundingClientRect(),r=this.props.onShare(Object.assign(Object.assign({},t),{selection:{x:n.x,y:n.y,width:n.width,height:n.height}}));r.channels.length&&(this.setState({data:t,menuState:s.MenuState.Opened,shareChannels:r.channels}),r.completionHandler&&(this._shareResponseCompletionHandler=r.completionHandler))},this._openEmailComposer=()=>{this.props.onShareViaChannel({channel:a.default.Email,body:this.state.data.email.body,subject:this.state.data.email.subject}),this.completeWithActivityType("Email")},this._openTweetComposer=()=>{this.props.onShareViaChannel({channel:a.default.Twitter,text:o.truncateText(this.state.data.text,255),url:this.state.data.url,hashtags:["ReadOnReadup"],via:"ReadupDotCom"}),this.completeWithActivityType("Twitter")},this.state={data:null,menuState:s.MenuState.Closed,shareChannels:[]}}completeWithActivityType(e){if(this._beginClosingMenu(),this.props.onComplete||this._shareResponseCompletionHandler){const t={id:null,action:this.state.data.action,activityType:e,completed:null,error:null};this.props.onComplete&&this.props.onComplete(t),this._shareResponseCompletionHandler&&this._shareResponseCompletionHandler(t)}}render(){return r.createElement(s.default,{className:"share-control_mnbspk",menuChildren:r.createElement(r.Fragment,null,this.state.shareChannels.includes(a.default.Clipboard)?r.createElement("button",{className:"button",onClick:this._copyLink},r.createElement(i.default,{name:"link"}),r.createElement("label",null,"Copy Link")):null,this.state.shareChannels.includes(a.default.Email)?r.createElement("button",{className:"button",onClick:this._openEmailComposer},r.createElement(i.default,{name:"paper-plane"}),r.createElement("label",null,"Email")):null,this.state.shareChannels.includes(a.default.Twitter)?r.createElement("button",{className:"button",onClick:this._openTweetComposer},r.createElement(i.default,{name:"twitter"}),r.createElement("label",null,"Tweet")):null),menuPosition:this.props.menuPosition,menuState:this.state.menuState,onBeginClosing:this._beginClosingMenu,onClose:this._closeMenu,onOpen:this._openMenu,stopPropagation:this.props.stopPropagation},this.props.children)}}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(1);t.default=e=>{const t=e.position.split("/");return r.createElement("span",{className:i.default("menu_qla37i","menu","position-"+t[0],"align-"+t[1],{closing:e.isClosing}),onMouseDown:e.onMouseDown,onClick:t=>{e.stopPropagation&&t.stopPropagation()}},e.children)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(3),a=n(1),o=n(14),s=n(9),l=n(15),u=o.findRouteByKey(s.default,l.default.Profile);class c extends r.Component{constructor(){super(...arguments),this._viewProfile=()=>{this.props.onViewProfile(this.props.userName)}}render(){return r.createElement(i.default,{className:a.default("profile-link_7fs028",this.props.className),href:this.props.onCreateAbsoluteUrl(u.createUrl({userName:this.props.userName})),onClick:this._viewProfile,text:this.props.userName})}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(4),a=n(5),o=n(12),s=n(6),l=n(3),u=n(16);class c extends r.PureComponent{constructor(e){super(e),this._asyncTracker=new s.default,this._changeText=e=>{this.setState({text:e.currentTarget.value})},this._openMarkdownDialog=()=>{this.props.onOpenDialog(r.createElement(u.default,{onClose:this.props.onCloseDialog}))},this._postRevision=()=>{this.setState({isPosting:!0}),this.props.onPostRevision({commentId:this.props.comment.id,text:this.state.text})},this._timeoutDate=o.DateTime.fromISO(a.formatIsoDateAsUtc(e.comment.dateCreated)).plus({minutes:3}),this.state={isPosting:!1,text:e.comment.text,timeRemaining:this.getTimeRemaining()},this._timerInterval=this._asyncTracker.addInterval(window.setInterval(()=>{const e=this.getTimeRemaining();this.setState({timeRemaining:e}),e.seconds<=0&&window.clearInterval(this._timerInterval)},1e3))}getTimeRemaining(){return this._timeoutDate.diffNow(["minutes","seconds"])}componentWillUnmount(){this._asyncTracker.cancelAll()}render(){const e=this.state.text.trim();return r.createElement("div",{className:"comment-revision-composer_dnzrxr"},r.createElement("textarea",{autoFocus:!0,onChange:this._changeText,value:this.state.text,style:{minHeight:this.props.initialHeight}}),r.createElement("div",{className:"controls"},r.createElement("div",{className:"left-group"},r.createElement(l.default,{iconLeft:"question-circle",onClick:this._openMarkdownDialog,text:"Formatting Guide"}),r.createElement("div",{className:"timer"},this.state.isPosting?null:this.state.timeRemaining.seconds>0?r.createElement(r.Fragment,null,r.createElement("div",null,"You have"," ",this.state.timeRemaining.minutes>0?r.createElement("span",null,this.state.timeRemaining.minutes,"m "):null,Math.floor(this.state.timeRemaining.seconds),"s remaining to fix typos. After that you can add updates.")):r.createElement(r.Fragment,null,r.createElement("div",null,"The typo timer ran out. Copy your work and"," ",r.createElement(l.default,{text:"add an update",onClick:this.props.onCreateAddendum})," ","instead.")))),r.createElement("div",{className:"buttons"},r.createElement(i.default,{text:"Cancel",state:this.state.isPosting?"disabled":"normal",onClick:this.props.onClose}),r.createElement(i.default,{text:"Save Changes",style:"preferred",state:this.state.isPosting?"busy":this.state.timeRemaining.seconds>0&&e&&e!==this.props.comment.text?"normal":"disabled",onClick:this._postRevision}))))}}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(4),a=n(12),o=n(3),s=n(16);class l extends r.PureComponent{constructor(e){super(e),this._changeText=e=>{this.setState({text:e.currentTarget.value})},this._openMarkdownDialog=()=>{this.props.onOpenDialog(r.createElement(s.default,{onClose:this.props.onCloseDialog}))},this._postAddendum=()=>{this.setState({isPosting:!0}),this.props.onPostAddendum({commentId:this.props.comment.id,text:this.state.text})},this._updateDate=a.DateTime.local().toLocaleString(a.DateTime.DATE_SHORT),this.state={isPosting:!1,text:""}}render(){return r.createElement("div",{className:"comment-addendum-composer_z77dhy"},r.createElement("div",null,"Update (",this._updateDate,"):"),r.createElement("textarea",{autoFocus:!0,onChange:this._changeText,value:this.state.text}),r.createElement("div",{className:"controls"},r.createElement(o.default,{iconLeft:"question-circle",onClick:this._openMarkdownDialog,text:"Formatting Guide"}),r.createElement("div",{className:"buttons"},r.createElement(i.default,{text:"Cancel",state:this.state.isPosting?"disabled":"normal",onClick:this.props.onClose}),r.createElement(i.default,{text:"Post Update",style:"preferred",state:this.state.isPosting?"busy":this.state.text.trim()?"normal":"disabled",onClick:this._postAddendum}))))}}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(1),a=n(144),o=n(110),s=new a.Parser,l=new a.HtmlRenderer({safe:!0}),u=new o({"ftp:":null,"mailto:":null,"//:":null});function c(e){const t=new a.Node("text");return t.literal=e,t}function d(e,t){const n=new a.Node("link");return n.destination=e,n.appendChild(c(t)),n}function h(e){const t=s.parse(e),n=t.walker();let r;for(;r=n.next();){let e;if(r.entering&&"text"===r.node.type&&r.node.literal&&(e=u.match(r.node.literal))){let t=0;for(const n of e)n.index>t&&r.node.insertBefore(c(r.node.literal.substring(t,n.index))),r.node.insertBefore(d(n.url,n.text)),t=n.lastIndex;t{e.preventDefault(),e.stopPropagation();let t=e.target;for(;t&&"A"!==t.tagName;)t=t.parentElement;t&&this.props.onNavTo(t.href)}}render(){return r.createElement("div",{className:i.default("markdown-content_cculki",this.props.className),dangerouslySetInnerHTML:{__html:h(this.props.text)},onClick:this._handleClick})}}t.default=p},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(108));t.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in i.default&&(e=i.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},function(e){e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(e,t){ /*! http://mths.be/repeat v0.2.0 by @mathias */ String.prototype.repeat||function(){"use strict";var e=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),t=function(e){if(null==this)throw TypeError();var t=String(this),n=e?Number(e):0;if(n!=n&&(n=0),n<0||n==1/0)throw RangeError();for(var r="";n;)n%2==1&&(r+=t),n>1&&(t+=t),n>>=1;return r};e?e(String.prototype,"repeat",{value:t,configurable:!0,writable:!0}):String.prototype.repeat=t}()},function(e,t,n){"use strict";function r(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function i(e){return Object.prototype.toString.call(e)}function a(e){return"[object Function]"===i(e)}function o(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var s={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var l={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},u="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function c(e){var t=e.re=n(111)(e.__opts__),r=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===i(n))return!function(e){return"[object RegExp]"===i(e)}(n.validate)?a(n.validate)?r.validate=n.validate:u(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(a(n.normalize)?r.normalize=n.normalize:n.normalize?u(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===i(e)}(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var c=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+c+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function d(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function h(e,t){var n=new d(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function p(e,t){if(!(this instanceof p))return new p(e,t);var n;t||(n=e,Object.keys(n||{}).reduce((function(e,t){return e||s.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=r({},s,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},l,e),this.__compiled__={},this.__tlds__=u,this.__tlds_replaced__=!1,this.re={},c(this)}p.prototype.add=function(e,t){return this.__schemas__[e]=t,c(this),this},p.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},p.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,a,o,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,o=r.index+r[0].length,(this.__index__<0||athis.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=o)),this.__index__>=0},p.prototype.pretest=function(e){return this.re.pretest.test(e)},p.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},p.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(h(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(h(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},p.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),c(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,c(this),this)},p.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},p.prototype.onCompile=function(){},e.exports=p},function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n(112).source,t.src_Cc=n(113).source,t.src_Z=n(114).source,t.src_P=n(115).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},function(e,t){e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/},function(e,t){e.exports=/[\0-\x1F\x7F-\x9F]/},function(e,t){e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(5),a=n(21),o=n(14),s=n(9),l=n(15);class u extends r.Component{constructor(){super(...arguments),this._commentsScreenRoute=o.findRouteByKey(s.default,l.default.Comments),this._hasComment=()=>!!this.props.post.comment,this._getCommentThread=()=>this.props.post&&this.props.post.comment?a.createCommentThread(this.props.post):this.props.comment?this.props.comment:void 0,this._getShareData=()=>{const e=this._getCommentThread().articleTitle,t=this._getCommentThread().userAccount,n=this._getCommentThread().text.split(/\n\n+/).map((e,t,n)=>`"${e}${t===n.length-1?'"':""}`).join("\n\n"),r=this.getCommentAbsoluteUrl();return{action:"Comment",email:{body:`${n}\n\n${r}`,subject:this.props.user&&this.props.user.name===t?`My comment on "${e}"`:`Check out ${i.formatPossessive(t)} comment on "${e}"`},text:this.props.user&&this.props.user.name===t?this._getCommentThread().text:`Check out ${i.formatPossessive(t)} comment on "${e}"`,url:r}}}getCommentAbsoluteUrl(){const[e,t]=this._getCommentThread().articleSlug.split("_");return this.props.onCreateAbsoluteUrl(this._commentsScreenRoute.createUrl({articleSlug:t,commentId:this._getCommentThread().id,sourceSlug:e}))}}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(17),a=n(5),o=n(3),s=n(4);class l extends r.PureComponent{constructor(){super(...arguments),this._post=()=>{this.props.onPost(this.props.article)}}render(){return r.createElement(i.default,{className:"post-prompt_de6v6u"},this.props.article.datesPosted.length?r.createElement(r.Fragment,null,r.createElement("p",null,"You posted this article on"," ",a.formatList(this.props.article.datesPosted.map(a.formatTimestamp)),"."),r.createElement(o.default,{text:"Post Again",onClick:this._post})):r.createElement(r.Fragment,null,r.createElement("p",null,this.props.promptMessage),r.createElement(s.default,{intent:"success",onClick:this._post,text:"Post"})))}}t.default=l},function(e,t,n){"use strict";function r(e,t){for(const n of t){if(n.id===e)return n;const t=r(e,n.children);if(t)return t}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.updateComment=t.mergeComment=t.findComment=void 0,t.findComment=r,t.mergeComment=function(e,t){return e.parentCommentId?r(e.parentCommentId,t).children.unshift(e):t.unshift(e),t},t.updateComment=function(e,t){const n=function e(t,n){if(n.some(e=>e.id===t))return n;for(const r of n){const n=e(t,r.children);if(n)return n}return null}(e.id,t);if(n){const t=n.find(t=>t.id===e.id);n.splice(n.indexOf(t),1,Object.assign(Object.assign(Object.assign({},t),e),{children:e.children.length?e.children:t.children}))}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),i=n(120),a=n(124);t.default=class{constructor({domAttachmentDelegate:e}){this._isAttached=!1,this._domAttachmentDelegate=e,this._reactContainer=document.createElement("div"),this._shadowHost=document.createElement("div"),this._shadowHost.style.visibility="hidden",this.setTheme(),window.addEventListener("com.readup.themechange",()=>{this.setTheme()}),this._shadowRoot=this._shadowHost.attachShadow({mode:"open"})}setTheme(){this._shadowHost.dataset.com_readup_theme=document.documentElement.dataset.com_readup_theme}attach(){if(this._isAttached)return;this._isAttached=!0;const e=document.createElement("link");e.rel="stylesheet",e.href=this.getStylesheetUrl();const t=document.createElement("div");t.innerHTML=a.default,this._shadowRoot.append(e,t,this._reactContainer),this._domAttachmentDelegate(this._shadowHost)}setState(e){return new Promise(t=>{i.render(r.createElement(this._component,Object.assign(Object.assign({},this._services),this._state=Object.assign(Object.assign({},this._state),e))),this._reactContainer,t)})}}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(121)},function(e,t,n){"use strict"; /** @license React v17.0.2 * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(0),i=n(28),a=n(122);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n