mirror of
https://github.com/thegeneralist01/books
synced 2026-01-09 23:00:25 +01:00
2 lines
No EOL
190 KiB
JavaScript
2 lines
No EOL
190 KiB
JavaScript
!function(e){function t(t){for(var n,i,o=t[0],l=t[1],c=t[2],_=0,u=[];_<o.length;_++)i=o[_],Object.prototype.hasOwnProperty.call(s,i)&&s[i]&&u.push(s[i][0]),s[i]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);for(d&&d(t);u.length;)u.shift()();return a.push.apply(a,c||[]),r()}function r(){for(var e,t=0;t<a.length;t++){for(var r=a[t],n=!0,i=1;i<r.length;i++){var l=r[i];0!==s[l]&&(n=!1)}n&&(a.splice(t--,1),e=o(o.s=r[0]))}return e}var n={},i={45:0},s={45:0},a=[];function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[];i[e]?t.push(i[e]):0!==i[e]&&{86:1,87:1,92:1,96:1,98:1,99:1}[e]&&t.push(i[e]=new Promise((function(t,r){for(var n=({}[e]||e)+"."+{12:"31d6cfe0d16ae931b73c",13:"31d6cfe0d16ae931b73c",14:"31d6cfe0d16ae931b73c",15:"31d6cfe0d16ae931b73c",86:"7ad7ba19626fc383b73a",87:"55238a62ae5d98ad80bf",92:"01edf6cb00c581c46bfe",96:"c29c083849795bfada52",98:"d97f9ba54f2c8fa93f07",99:"639092ad842f2057b5d3"}[e]+".css",s=o.p+n,a=document.getElementsByTagName("link"),l=0;l<a.length;l++){var c=(d=a[l]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(c===n||c===s))return t()}var _=document.getElementsByTagName("style");for(l=0;l<_.length;l++){var d;if((c=(d=_[l]).getAttribute("data-href"))===n||c===s)return t()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=t,u.onerror=function(t){var n=t&&t.target&&t.target.src||s,a=new Error("Loading CSS chunk "+e+" failed.\n("+n+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=n,delete i[e],u.parentNode.removeChild(u),r(a)},u.href=s,document.getElementsByTagName("head")[0].appendChild(u)})).then((function(){i[e]=0})));var r=s[e];if(0!==r)if(r)t.push(r[2]);else{var n=new Promise((function(t,n){r=s[e]=[t,n]}));t.push(r[2]=n);var a,l=document.createElement("script");l.charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.src=function(e){return o.p+""+({}[e]||e)+"."+{12:"23ef273d2737e1929624",13:"f18c8bd5172ea40c73a2",14:"c7fbe9c5b970be23926f",15:"9d4cd9b47af35bf56e45",86:"332a9f0abd44d148e363",87:"6713de990d126133a402",92:"5424497671faa3a5a7a1",96:"6f766a0f63509a6f07d6",98:"5315e36e353dd936c01e",99:"fb631fb387a9324fe2f1"}[e]+".js"}(e);var c=new Error;a=function(t){l.onerror=l.onload=null,clearTimeout(_);var r=s[e];if(0!==r){if(r){var n=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+i+")",c.name="ChunkLoadError",c.type=n,c.request=i,r[1](c)}s[e]=void 0}};var _=setTimeout((function(){a({type:"timeout",target:l})}),12e4);l.onerror=l.onload=a,document.head.appendChild(l)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,function(t){return e[t]}.bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var l=window.webpackJsonp=window.webpackJsonp||[],c=l.push.bind(l);l.push=t,l=l.slice();for(var _=0;_<l.length;_++)t(l[_]);var d=c;a.push([1736,0,1,2,3,4,7,8,9,10,11]),r()}({0:function(e,t,r){e.exports=r(13)(0)},101:function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"DownloadActions",(function(){return c}));var n=r(4),i=r(3),s=(r(194),r(123)),a=r(124),o=r(21),l=r(104);r.d(t,"toolbarParams",(function(){return l.a}));const c={register_download_attempt:(e,t,r,n)=>($.ajax(Scribd.download_document.register_download_attempt_path,{type:"post",data:{doc_id:n.id,next_screen:r,source:e}}),"search"===e?Object(i.trackEvent)("analytics.search.document.download",{title:n.title}):Object(i.trackEvent)("analytics.sidebar.document.download",{title:n.title})),download_attempt(e,t,r,s){const a="read"===t?"toolbar_download":void 0,l=!(Scribd.logged_in||null!=Scribd._anonymous_current_user),c=encodeURIComponent(JSON.stringify({context:s.signup_context,page:t,action:a,platform:"web",logged_in:!l}));if(!s.show_archive_paywall)return l?(this.register_download_attempt(t,a,"login_lightbox",s),(new i.Auth0FeatureFlag).inTest()&&Scribd.download_document.oauthSignupUrl?void Object(i.redirect)(Scribd.download_document.oauthSignupUrl):Object(o.default)({loginParam:{source:"download",context:Scribd.current_ca,doc_signup_context:(null!=Scribd.current_doc?Scribd.current_doc.signup_context:void 0)||s.signup_context,document_id:(null!=Scribd.current_doc?Scribd.current_doc.id:void 0)||s.id},nextUrl:s.url+"#download",trackingData:{loc:r},userAction:n.ACCOUNT_CREATION.USER_ACTIONS.DOWNLOAD})):(this.register_download_attempt(t,a,"download_lightbox",s),e(s));{const e=`doc=${s.id}&metadata=${c}`;if(l)this.register_download_attempt(t,a,"login_lightbox",s),(new i.Auth0FeatureFlag).inTest()&&Scribd.download_document.oauthSignupUrl?Object(i.redirect)(Scribd.download_document.oauthSignupUrl):Object(o.default)({trackingData:{loc:r},nextUrl:`/archive/plans?${e}`,userAction:n.ACCOUNT_CREATION.USER_ACTIONS.DOWNLOAD});else{const r=()=>(this.register_download_attempt(t,a,"paywall",s),window.location=`/archive/plans?${e}`);Scribd.FacebookSession.attempt_facebook_upgrade(r)}}},download_dialog_lightbox:(e,t)=>(null==t&&(t=!0),$.ajax({type:"POST",url:Scribd.download_document.download_dialog_path,data:$.extend({},Object(l.a)(e),{show_after_download_suggestions:t}),success:e=>c.render_lightbox(e.props,e.show_receipt_lightbox)})),download(e,t,r,n){const i=n||this.download_dialog_lightbox;return(null!=Scribd.current_doc?Scribd.current_doc.id:void 0)===e?c.download_attempt(i,t,r,Scribd.current_doc):$.ajax(Scribd.download_document.request_document_for_download_path,{type:"post",data:{id:e},success:e=>c.download_attempt(i,t,r,e)})},render_lightbox(t,r){const n=r?e.createElement(a.a,t):e.createElement(s.a,t);return Scribd.Lightbox.open_react("document_download_lb",n)}}}.call(this,r(0))},103:function(e,t,r){"use strict";r(55),r(56),r(63),r(62),r(64),r(65)},104:function(e,t,r){"use strict";function n(e){(null!=Scribd.current_doc?Scribd.current_doc.id:void 0)===e.id&&(e=Scribd.current_doc);const t={id:e.id};return e.secret_password&&(t.secret_password=e.secret_password),t}r.d(t,"a",(function(){return n}))},107:function(e,t,r){"use strict";var n=r(17),i=r(18);r(35),r(109),r(110);Object(n.renderReact)("Shared.SlideshareHeader",i.f)},109:function(e,t,r){},11:function(e,t,r){"use strict";r.d(t,"b",(function(){return p})),r.d(t,"a",(function(){return h}));var n,i,s,a,o=r(5),l=r.n(o),c=r(0),_=r.n(c),d=r(6);r(7);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}class p extends d.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_common_button")}render(){const e=this.get_tag(),t=l()(this.props.className,"flat_btn",this.get_component_classname(),{disabled:this.props.disabled||this.props.loading,loading:this.props.loading});return _.a.createElement(e,u({className:t,title:this.props.title,onClick:this.props.onClick,onKeyPress:this.props.onKeyPress,disabled:this.props.disabled,"aria-disabled":this.props.disabled||this.props.loading?"true":null,role:this.props.role,type:"button"===e?this.props.type:null,target:this.props.target,"data-tooltip":this.props["data-tooltip"]||null,href:this.props.href,id:this.props.id},this.get_data_props(),this.get_aria_props(),{ref:this.props.node_ref}),this.render_content(),this.render_spinner(),this.props.text,this.render_visually_hidden_text())}render_visually_hidden_text(){if(this.props.visually_hidden_text)return _.a.createElement("span",{className:"visually_hidden"},this.props.visually_hidden_text)}render_spinner(){if(!this.props.className||!this.props.className.match(/text_btn/))return _.a.createElement("div",{key:"spinner","aria-hidden":"true",className:"scribd_spinner","data-size":30})}render_content(){let e=_.a.Children.toArray(this.props.children)||[];return this.props.is_facebook_button||/\bfacebook\b/.test(this.props.className)?e.unshift(this.render_facebook_icon()):(this.props.is_google_button||/\bgoogle\b/.test(this.props.className))&&e.unshift(this.render_google_icon()),e}render_facebook_icon(){return _.a.createElement("span",{key:"facebook_icon","aria-hidden":"true",className:"icon icon-ic_facebook"})}render_google_icon(){return _.a.createElement("span",{key:"google_icon","aria-hidden":"true",className:"icon icon-google"})}get_tag(){let e="button";return void 0===this.props.href&&void 0===this.props.target||(e="a",void 0!==this.props.disabled&&console.error("You can't disable anchors")),e}get_data_props(){let e={};return this.props.data_props&&Object.keys(this.props.data_props).forEach((t=>{const r=this.props.data_props[t];e[`data-${t}`]=r})),e}get_aria_props(){let e={};return this.props.aria_props&&Object.keys(this.props.aria_props).forEach((t=>{const r=this.props.aria_props[t];e[`aria-${t}`]=r})),e}}function h(e){const t=Object.assign({},e);return t.className=l()(e.className,"text_btn"),_.a.createElement(p,t)}n=p,s={type:"button",is_facebook_button:!1,is_google_button:!1,data_props:{},aria_props:{},loading:!1},(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i="defaultProps","string"))?a:a+"")in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s;d.a},110:function(e,t,r){},113:function(e,t,r){"use strict";function n(){let e=!1;try{let t=Object.defineProperty({},"passive",{get:function(){return e=!0,e}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}return e}r.r(t),r.d(t,"default",(function(){return n}))},114:function(e,t,r){e.exports=r(13)(25)},117:function(e,t,r){},118:function(e,t,r){},119:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"c",(function(){return s}));const n=e=>{const t=window.open(e,"_blank");t&&void 0!==t||console.error("popup blocked")},i=(e=0)=>{if(e&&"number"==typeof e){let t=Math.floor(e%60),r=Math.floor(e/60)%60,n=Math.floor(e/3600);return r=r<10?"0"+r:r,t=t<10?"0"+t:t,n?`${n}:${r}:${t}`:`${r}:${t}`}return"00:00"};function s(e){if(e&&e.offset_type){if("ms"===e.offset_type)return{...e,offset:e.offset/1e3,offset_type:"seconds"};throw new Error(`Invalid offset_type == '${e.offset_type}' in Audiobook reading_progress ${JSON.stringify(e)}`)}}},1190:function(e,t,r){(function(e,t){var n,i,s,a,o;r(1738),r(1739),r(1740),r(60),r(55),s=r(2257).renderBlur,i=r(3),a=i.trackEvent,o=i.trackPageLoadPerformance,n=function(){function r(t,r){var n,i,s;this.opts=r,this.append_url_frag=(n=this.append_url_frag,i=this,function(){return n.apply(i,arguments)}),this.container=$(t),this.view_mode=this.opts.view_mode||"scroll",this.document=$.extend(this.opts.document,{total_pages:this.get_highest_page()}),this.opts.is_embed_preview&&this.setup_blurs(),this.setup_mobile(),this.render_toolbar(),this.setup_events(),this.setup_sizing(),this.setup_buy_manager(),this.is_mobile()||Scribd.hook_tooltips(this.container.parent()),this.send_events(),this.setup_scroll_tracking(),e.defer((s=this,function(){if(s.opts.start_page&&s.opts.start_page>1)return docManager.gotoPage(s.opts.start_page)}));try{$("#embed_dialog .scribd_iframe_embed",window.parent.document.body).attr("tabindex","-1")}catch(e){}o("embed_content",Scribd.logged_in,Scribd.is_bot)}return r.min_zoom=.6,r.max_zoom=2.5,r.prototype.setup_blurs=function(){if(window.__app_loaded=!0,window.render_blur_promo=s,window.__pages_to_blur)return window.__pages_to_blur.forEach((function(e){return e()}))},r.prototype.setup_mobile=function(){if(this.is_mobile())return this.has_mobile_overlay=!0,this.container.addClass("show_mobile_overlay"),this.container.find("[data-mobile_doc_href]").attr("href",this.opts.document.mobile_url)},r.prototype.send_events=function(){return this.container.on("click",".mobile_overlay_btn",(function(){return a("embed:overlay_button:click")})),e.defer((t=this,function(){return a("embed:view",{width:$(window).width(),height:$(window).height(),doc_type:t.opts.document_type_for_tracking,view_mode:t.view_mode,mobile_overlay:t.container.find(".mobile_overlay").is(":visible")})}));var t},r.prototype.append_url_frag=function(e,t){var r;return(r=e.split("#"))[1]=r[1]?r[1]+"&"+t:t,r.join("#")},r.prototype.setup_events=function(){var e;return"undefined"!=typeof docManager&&null!==docManager&&docManager.addEvent("expectedFirstPageChanged",(e=this,function(t){return e.current_page=t,e.render()})),"undefined"!=typeof docManager&&null!==docManager&&docManager.addEvent("pageView",(function(e){return a("fourgen.viewchange",e)})),new Scribd.ReadingProgress.Pdf({scroll_node:docManager.scrollParent||document.body,total_pages:this.document.total_pages,doc_id:this.document.id,container:this.container.find(".document_scroller"),is_embed:!0})},r.prototype.setup_scroll_tracking=function(){var e,t;return t=this.container.find(".document_scroller"),setTimeout((function(){return t.one("scroll",(function(){return a("embed:scroll")}))}),500),e=function(){var r;if(r=t[0].scrollHeight,t.scrollTop()/(r-t.height())>.98)return a("embed:scroll_end"),t.off("scroll",e)},t.on("scroll",e)},r.prototype.setup_sizing=function(){var t,r,n,i;return r=this.container.find(".document_scroller"),n=$(window),i=this,t=function(){var e,t;return"scroll"===i.view_mode?Math.min(1e3,r.width()-60):(t=(e=docManager.pages[docManager.currentPageNum()]).origWidth/e.origHeight,Math.min(1e3,r.width()-60,(r.height()-30)*t))},docManager.setViewManager(this.view_mode,function(r){return function(){return r.update_page_width=function(){var e;if(docManager.setDefaultWidth(t()),e=r.narrow,r.narrow=n.width()<520,e!==r.narrow)return r.render()},r.update_page_width(),$(window).on("resize",e.debounce((function(){return r.update_page_width()}),50))}}(this))},r.prototype.render=function(){if(window.docManager)return this.current_zoom=docManager._currentViewManager._currentZoomMultiplier,this.render_toolbar(),this.container.toggleClass("view_mode_scroll","scroll"===this.view_mode).toggleClass("view_mode_slideshow","slideshow"===this.view_mode)},r.prototype.render_toolbar=function(){var e,r;return this.toolbar_drop||(this.toolbar_drop=this.container.find(".toolbar_drop")),e=$.extend({},this.opts.toolbar,{view_mode:this.view_mode,document:this.document,is_mobile:this.is_mobile(),hide_controls:this.has_mobile_overlay||this.narrow,current_zoom:this.current_zoom,current_page:this.current_page||1,on_first_page:1===this.current_page,on_last_page:this.current_page===this.get_highest_page(),goto_page:(r=this,function(e,t){var n,i;return null==t&&(t=!1),n=e>r.current_page?1:-1,i=docManager.getClosestPageNumber(e,n),docManager.gotoPage(i,{direction:n})}),next_page:function(){return docManager.gotoNextPage()},previous_page:function(){return docManager.gotoPreviousPage()},zoom_in:function(e){return function(){if(!(e.current_zoom>=e.constructor.max_zoom))return"undefined"!=typeof docManager&&null!==docManager&&docManager.zoom(1.25),e.render()}}(this),zoom_out:function(e){return function(){if(!(e.current_zoom<=e.constructor.min_zoom))return"undefined"!=typeof docManager&&null!==docManager&&docManager.zoom(.8),e.render()}}(this)}),this.toolbar=ReactDOM.render(t.createElement(Scribd.Embeds.New.Toolbar,e),this.toolbar_drop[0])},r.prototype.get_highest_page=function(){var e,t,r;if(!window.docManager)return 0;if(!(e=null!=(r=Scribd.current_doc)?r.page_count:void 0))for(t in e=0,docManager.pages)e=Math.max(e,t);return this.get_highest_page=function(){return e},e},r.prototype.setup_buy_manager=function(){return Scribd.BuyDocManager.for_current_doc()},r.prototype.is_mobile=function(){return!!navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i)},r}(),Scribd.addComponent("EmbedsShow",n)}).call(this,r(12),r(0))},123:function(e,t,r){"use strict";var n=r(14),i=r.n(n);t.a=i()({loader:()=>r.e(87).then(r.bind(null,324)),loading:()=>null})},124:function(e,t,r){"use strict";var n=r(14),i=r.n(n);t.a=i()({loader:()=>r.e(86).then(r.bind(null,325)),loading:()=>null})},127:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return d}));var n=r(0),i=r.n(n),s=r(2),a=r(6),o=r(7),l=r(4),c=r(3);r(220);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(this,arguments)}class d extends a.a{constructor(t){super(t),this.enclosing_class("auto__shared_react_star_ratings"),this.state={user_rating:this.props.user_rating||0,selected_star:0,inform_saved:!1},this.lit="icon-ic_star_small_fill light_lit",this.unlit="icon-ic_star_small_outline",this.half_lit="icon-ic_star_small_halffill light_lit",this.post_rating_request=e.debounce(this.post_rating_request,300),this.ariaRegion={}}component_classes(){let e="star_ratings";return this.props.active&&this.props.current_user||(e+=" static"),this.props.current_user&&(e+=" current_user"),this.state.selected_star>0&&(e+=" selecting"),this.state.user_rating>0&&(e+=" rated"),e}componentDidUpdate(e){e.user_rating!==this.props.user_rating&&this.props.user_rating!==this.state.user_rating&&this.setState({user_rating:this.props.user_rating})}handle_blur(){Scribd.is_mobile||this.props.active&&this.setState({selected_star:0})}handle_clear_rating(e){e.preventDefault(),this.rate_title(0),this.props.handle_clear_rating&&this.props.handle_clear_rating()}handle_rating(e){this.props.active&&"right"!==e.type&&(e.preventDefault(),(Scribd.is_mobile||this.state.user_rating!==this.state.selected_star)&&this.rate_title($(e.target).data("value")))}handle_star_mouseover(e){!Scribd.is_mobile&&this.props.active&&this.setState({selected_star:e})}handle_star_focus(e){this.props.active&&this.setState({selected_star:e})}can_be_interactive(){return this.props.use_system_rating&&this.props.untabbable?"-1":"0"}get_success_aria_message(){const e=this.state.user_rating;return s.default.t("shared.react.star_ratings.state_user_rating_star_rating_saved",{state_user_rating:e})+" "+s.default.t("shared.react.star_ratings.average_rating")+" "+this.get_rating_label_text()}rate_title(e){const t={trackingData:{loc:"star_ratings"},userAction:l.ACCOUNT_CREATION.USER_ACTIONS.RATE};Scribd.with_login(t,(()=>{const t=this.state.user_rating;this.setState({user_rating:e,inform_saved:!0},(()=>{Object(c.trackEvent)("ratings:rating:update",{word_document_id:this.props.doc_id,rating:this.state.user_rating})})),window.setTimeout((()=>{this.setState({inform_saved:!1})}),1e3),"function"==typeof this.props.handle_rating_update?this.props.handle_rating_update(e):this.post_rating_request(e,t)}))}post_rating_request(e,t){this.postRequest&&this.postRequest.abort(),this.postRequest=c.xhr.post({url:this.props.ratings_path,body:{rated:e}},((e,r)=>{const n=document.querySelector(".flash.standard.error");(e||200!==r.statusCode)&&(n||Scribd.Flasher.standard("error",s.default.t("shared.react.star_ratings.your_rating_was_not_saved_please")),this.setState({user_rating:t}))}))}update_live_region(){this.props.active&&Object(c.updateAriaLiveRegion)(this.get_success_aria_message(),"star_rating_stats",this.ariaRegion)}get_rating_label_text(){let e=this.props.rating_count,t="";return this.state.user_rating&&e++,t=this.props.use_system_rating?`(${this.props.system_rating}/5)`:this.props.user_rating?`(${this.props.user_rating}/5)`:e||0===e?i.a.createElement("span",{dangerouslySetInnerHTML:{__html:this.get_html_label(e)}}):"(0/5)",t}get_html_label(e){return s.default.t("shared.star_ratings.label_html",{rating:this.props.system_rating,count:e})}get_tip(e){switch(e){case 1:return s.default.t("shared.react.star_ratings.i_didn_t_like_it_at_all");case 2:return s.default.t("shared.react.star_ratings.i_didn_t_like_it_that_much");case 3:return s.default.t("shared.react.star_ratings.i_thought_it_was_ok");case 4:return s.default.t("shared.react.star_ratings.i_liked_it");default:return s.default.t("shared.react.star_ratings.i_loved_it")}}render_inform_saved(){return this.update_live_region(),i.a.createElement("span",{className:"inform_saved"},s.default.t("shared.react.star_ratings.saved"))}render_star(e){const t=this.props.current_user_rating_only?0:this.props.system_rating,r=this.state.selected_star||this.state.user_rating||t;let n;n=e<=r?this.lit:e===r+.5?this.half_lit:this.unlit;let a="";this.state.user_rating===e&&(a=`. ${s.default.t("shared.react.star_ratings.selected")}`);const o=`, ${this.get_tip(e)}`;let l;this.props.active&&(l=i.a.createElement("span",{className:"visually_hidden"},s.default.t("shared.react.star_ratings.rate_as_value_out_of_5",{value:e})+o+a));const c={className:`rating_star ${n}`,role:this.props.active?"button":null,"aria-hidden":this.props.active?"false":"true","data-value":e,onMouseOver:this.handle_star_mouseover.bind(this,e),onFocus:this.handle_star_focus.bind(this,e),onClick:this.handle_rating,onTouchStart:this.handle_rating,key:`star${e}`};return this.props.use_button?i.a.createElement("button",_({type:"button"},c),l):i.a.createElement("span",c,l)}render_stars(){const e=this.props.current_user_rating_only?0:this.props.system_rating,t=this.state.selected_star||this.state.user_rating||e,r=[1,2,3,4,5].map(this.render_star);return r.push(i.a.createElement("span",{className:"visually_hidden",key:"rating_to_display_text"},s.default.t("shared.star_ratings.rating_rating_to_display_out_of_5_stars",{ratingToDisplay:t}))),i.a.createElement("span",{className:"stars",onMouseLeave:this.handle_blur,onBlur:this.handle_blur},r)}render_stats(){if(!this.props.show_stats)return;const e=this.get_rating_label_text(),t=this.can_be_interactive();return i.a.createElement("span",{className:"stats",tabIndex:t},e)}render_tips(){if(this.props.active&&this.props.show_tips&&this.state.selected_star>0)return this.state.inform_saved?this.render_inform_saved():i.a.createElement("span",{className:"tips"},i.a.createElement("span",{className:"tip"},this.get_tip(this.state.selected_star)))}should_render_clear_rating(){return!this.props.hide_clear_rating&&this.props.active&&0===this.state.selected_star&&this.state.user_rating>0}render_clear_rating(){if(this.should_render_clear_rating())return this.state.inform_saved?this.render_inform_saved():i.a.createElement(o.Z,{type:"button",className:"clear_rating text_btn",onClick:this.handle_clear_rating},s.default.t("shared.react.star_ratings.clear_rating"))}render_rating_required(){if(!(!this.props.active||!this.props.rating_required||this.state.selected_star>0||this.state.user_rating>0))return i.a.createElement("span",{className:"rating_required_message"},i.a.createElement("span",{className:"icon-ic_warn","aria-hidden":"true"}),i.a.createElement("span",{className:"message"},s.default.t("shared.react.star_ratings.rating_required")))}render_content(){return i.a.createElement("span",null,this.render_rating_required(),this.render_stars(),this.render_stats(),this.render_tips(),this.render_clear_rating())}}}).call(this,r(12))},128:function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return o}));var i=r(6),s=r(3);r(235);function a(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends i.a{constructor(t){super(t),a(this,"handle_focus",(()=>{this.setState({focused:!0})})),a(this,"handle_key_press",(e=>{e.which===s.keyMappings.enter&&this.props.handle_skip()})),a(this,"render_skip_link",(()=>{if("function"!=typeof this.props.handle_skip)return;const t="function"==typeof this.props.handle_skip&&Scribd.using_keyboard&&this.state.focused;return e.createElement("a",{className:classNames("skip_link",{transparent:!t}),href:"#skip_carousel",onKeyDown:this.handle_key_press,onFocus:this.handle_focus,"data-skip-idx":`${this.props.skip_idx}`},I18n.t("shared.carousels.skip_carousel"))})),this.enclosing_class("auto__shared_react_content_carousel"),this.state={render_back_paddle:!1,render_forward_paddle:!1,focused:!1},this.throttled_scroll_handler=n.throttle(this.handle_carousel_scroll,80)}componentDidMount(){this.cell_width=this.get_cell_width(),this.align_carousel_paddles(),this.carousel_scrolling.addEventListener("scroll",this.throttled_scroll_handler),window.addEventListener("resize",this.throttled_scroll_handler)}componentWillUnmount(){this.carousel_scrolling.removeEventListener("scroll",this.throttled_scroll_handler),window.removeEventListener("resize",this.throttled_scroll_handler)}component_classes(){const{render_back_paddle:e,render_forward_paddle:t}=this.state;return classNames("has_paddles has_document_cells carousel_widget",this.props.className,{paddles_visible:e||t})}handle_carousel_scroll(){this.align_carousel_paddles(),this.scroll_handler(this.props.content_type)}scroll_handler(e){"function"==typeof this.props.scroll_handler&&this.props.scroll_handler(e)}align_carousel_paddles(){this.setState({render_back_paddle:this.is_not_at_scroll_start(),render_forward_paddle:this.is_at_scroll_end()})}get_cell_width(){if(null==this.carousel_scrolling.querySelector("ul > li"))throw new Error("ContentCarousel needs a <ul> containing an <li> in order to run");const e=this.carousel_scrolling.querySelector("li"),t=window.getComputedStyle(e);return e.getBoundingClientRect().width+parseInt(t.marginLeft)+parseInt(t.marginRight)}on_animation_complete(){this.manage_focus_between_paddles(),this.scroll_handler(this.props.content_type)}scroll_to(e){$(this.carousel_scrolling).animate({scrollLeft:e},{easing:"smoothstep",complete:this.on_animation_complete})}manage_focus_between_paddles(){this.is_not_at_scroll_start()?this.is_at_scroll_end()||this.back_paddle.focus():this.forward_paddle.focus()}get_number_of_cells_in_view(){let e=Math.floor(this.carousel_scrolling.clientWidth/this.cell_width);return 0===e&&(e=1),e}get_forward_paddle_scroll_position(e){e.preventDefault();const t=this.get_number_of_cells_in_view(),r=this.carousel_scrolling.scrollLeft+this.cell_width*t;this.scroll_to(r)}get_back_paddle_scroll_position(e){e.preventDefault();const t=this.get_number_of_cells_in_view(),r=this.carousel_scrolling.scrollLeft-this.cell_width*t;this.scroll_to(r)}is_not_at_scroll_start(){return this.carousel_scrolling.scrollLeft>0}is_at_scroll_end(){const{scrollLeft:e,clientWidth:t,scrollWidth:r}=this.carousel_scrolling;return e+t<r}render_back_paddle(){if(this.state.render_back_paddle)return e.createElement("a",{onClick:this.get_back_paddle_scroll_position,ref:e=>this.back_paddle=e,href:"#",className:"paddle page_left back_paddle"},e.createElement("span",{className:"paddle_icon icon left icon-ic_right_caret_alt"}),e.createElement("span",{className:"visually_hidden"},I18n.t("shared.carousels.carousel_previous")))}render_forward_paddle(){if(this.state.render_forward_paddle)return e.createElement("a",{href:"#",className:"paddle page_right forward_paddle",ref:e=>this.forward_paddle=e,onClick:this.get_forward_paddle_scroll_position},e.createElement("span",{className:"paddle_icon icon icon-ic_right_caret_alt"}),e.createElement("span",{className:"visually_hidden"},I18n.t("shared.carousels.carousel_next")))}render_content(){const{render_back_paddle:t,render_forward_paddle:r}=this.state;return e.createElement("div",{className:"carousel_wrap"},this.render_skip_link(),e.createElement("div",{className:"carousel_outer"},e.createElement("div",{className:"paddles_container all_paddles"},this.render_back_paddle(),this.render_forward_paddle()),e.createElement("div",{className:classNames("carousel",{right_paddle:r,left_paddle:t}),tabIndex:"-1"},e.createElement("div",{tabIndex:"-1",ref:e=>this.carousel_scrolling=e,className:"carousel_scrolling"},this.props.children))))}}a(o,"defaultProps",{scroll_handler:e=>e,className:""}),Scribd.addComponent("Shared.React.ContentCarousel",o)}).call(this,r(0),r(12))},129:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n,i,s,a,o=r(2),l=r(0),c=r.n(l),_=r(6);r(212);class d extends _.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_reading_progress_bar")}component_classes(){return"reading_progress_wrapper"}render_content(){const e=o.default.t("shared.react.reading_progress_bar.math_round_props_percentage_0_of_props_short_title_completed",{math_round_props_percentage_0:Math.round(this.props.percentage||0),props_short_title:this.props.short_title});return c.a.createElement("div",{className:"reading_progress_outer"},c.a.createElement("div",{style:{width:`${this.props.percentage||0}%`},className:"reading_progress_outer_dark_overlay","aria-label":e}))}}n=d,s={short_title:"",percentage:0},(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i="defaultProps","string"))?a:a+"")in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s},13:function(e,t){e.exports=react16},130:function(e,t,r){"use strict";r.d(t,"a",(function(){return _}));var n=r(2),i=r(0),s=r.n(i),a=r(19),o=r(48),l=r(170),c=r(171);r(229);class _ extends a.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_cells_document"),this.page_width=window.innerWidth}handle_download_click(e,t){return this.track_rats("search:download_button:click",{document_id:t})}render_reading_progress(){if(!["sheet_music","sheet_music_chapter"].includes(this.props.item.type))return super.render_reading_progress()}render_star_ratings(){if("sheet_music_chapter"===this.props.item.type)return super.render_star_ratings()}render_upvotes(){if(!this.props.item.upvote_props)return;if("sheet_music_chapter"===this.props.item.type)return;const e={...this.props.item.upvote_props,use_in_carousel:this.props.use_in_carousel};return s.a.createElement(l.a,e)}render_document_uploaded_by(){const e=this.props.item.author,t="string"==typeof e?e:null==e?void 0:e.name,r=this.props.item.uploader_avatar_url||this.props.uploader_avatar_url;return s.a.createElement("div",{className:"uploaded_by_container"},s.a.createElement("p",{className:"uploaded_by_text"},n.default.t("shared.react.cells.base.uploaded_by")),s.a.createElement("div",{className:"uploader_container"},s.a.createElement("div",{className:"icon_and_name"},s.a.createElement("img",{className:"icon doc_avatar",src:r,alt:""}),s.a.createElement("span",{className:"uploader author"},t))))}render_controls(e=!0,t=!0){if(this.props.controls)return this.props.controls;if(!this.props.no_controls){const r={...this.props.item.download_button_props,on_click:this.handle_download_click,document_title:this.props.item.title,oauthSignupUrl:this.props.oauthSignupUrl};let n,i;return e&&(n=s.a.createElement(c.a,r)),t&&(i=s.a.createElement(o.default,{item:this.props.item,show_text:!1,on_remove:this.remove_cell,on_save:this.unremove_cell,oauthSignupUrl:this.props.oauthSignupUrl})),s.a.createElement("div",{className:"controls"},n,i)}}render_list_item_content(){return[this.render_image(),s.a.createElement("div",{className:"metadata",key:`metadata_${this.props.item.id}`},s.a.createElement("div",{className:"title_author"},this.render_cross_brand_heading(),this.render_title(),this.render_document_uploaded_by()),this.render_reading_progress(),this.render_reading_time_estimate())]}}},131:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),i=r.n(n),s=r(19);r(230);class a extends s.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_cells_issue")}render_list_item_content(){return[this.render_image(),i.a.createElement("div",{className:"metadata",key:"metadata"},this.render_catalog_label(),i.a.createElement("div",{className:"title_author"},this.render_author(!1),this.render_cross_brand_heading(),this.render_title()),this.render_reading_time_estimate())]}}},133:function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"default",(function(){return k}));var n,i,s,a,o=r(5),l=r.n(o),c=r(0),_=r.n(c),d=r(98),u=r(186),p=r(6),h=r(182),m=r(130),f=r(131),g=r(183),b=r(184),v=r(22),y=r.n(v),w=r(185);r(216);class k extends p.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_lists_list_items")}static is_narrow(){return $(window).width()<951}componentDidMount(){this.setup_tracking(this.props.rec_tracking_json)}componentDidUpdate(e){this.setup_tracking(e.rec_tracking_json)}component_classes(){const{display_type:e,content_type:t,use_in_carousel:r}=this.props;return l()(e,"list_items",{in_carousel:r,not_in_carousel:!r,[`content_type_${t}`]:!!t})}setup_tracking(e){!this.props.use_in_carousel&&this.props.setup_tracking&&e&&(this.recommendationTracking=new y.a.Module(this.container,{widget_name:"list_items",compilation_id:e.compilation_id,module_id:e.uuid,on_tracking:e=>{this.tracking=e,this.props.handle_tracking&&this.props.handle_tracking(e)},on_in_view:e=>{this.setup_items_tracking(e)}}))}setup_items_tracking(e){return $(this.container).find(".object_cell:not(.visibility_tracked)").on("inview",(t=>{const r=$(t.currentTarget);if(!r.hasClass("visibility_tracked"))return y.a.track_obj_view(e.view_id,r.data("track_uuid"),e.widget_name),r.addClass("visibility_tracked")}))}get_aria_label(){if(this.props.aria_label)return this.props.aria_label}get_aria_labelled_by(){if(!1!==this.props.aria_labelled_by)return this.props.aria_labelled_by?this.props.aria_labelled_by:this.uid("list_labelledby")}no_controls(e){return this.props.no_controls?this.props.no_controls:e.flag&&"not_available"===e.flag.type}render_controls(e,t){return"function"==typeof this.props.controls?this.props.controls(e,t):null}get_base_props(e,t){const r=this.props.rec_tracking_json;return{brand:this.props.brand,compilation_id:r?r.compilation_id:null,controls:this.render_controls(e,t),display_type:this.props.display_type,hide_hover_cta:this.props.hide_hover_cta||!1,item:e,key:e.id,module_id:r?r.uuid:null,narrow:this.props.narrow||!1,no_clamp:this.props.no_clamp,no_controls:this.no_controls(e),oauthSignupUrl:this.props.oauthSignupUrl,page:this.props.page,paused:this.props.paused,payment_fix_url:this.props.payment_fix_url,plans_enabled:this.props.plans_enabled,pre_rendered:this.props.pre_rendered,rec_uuid:r&&r.recs?r.recs[t]:"",undo_label:this.props.undo_label,undo_xhr:this.props.undo_xhr,use_in_carousel:this.props.use_in_carousel,uploader_avatar_url:this.props.uploader_avatar_url,user_id:this.props.user_id}}renderCell(e,t){switch(e){case"article":return _.a.createElement(d.a,t);case"author":return _.a.createElement(u.a,t);case"publication_issue":return _.a.createElement(f.a,t);case"audiobook":case"book":case"sheet_music":case"sheet_music_chapter":return _.a.createElement(h.a,t);case"summary_canonical":return _.a.createElement(w.a,t);case"podcast_episode":return _.a.createElement(g.a,t);case"podcast":return _.a.createElement(b.a,t);default:return _.a.createElement(m.a,t)}}render_cells(){const t=this.props.items_json||this.props.documents;return e.map(t,((e,t)=>{const r=this.get_base_props(e,t);return this.renderCell(e.type,r,t)}))}render_content(){return _.a.createElement("ul",{"aria-labelledby":this.props.aria_labelled_by?this.get_aria_labelled_by():"","aria-label":this.get_aria_label(),className:this.props.extra_classes,id:this.props.list_id,key:"list_items"},this.render_cells())}}n=k,s={brand:null,content_type:"",display_type:"grid",use_in_carousel:!1,setup_tracking:!0,page:"",plans_enabled:!1,pre_rendered:!1,uploader_avatar_url:"/images/document_cells/metadata_cards/avatar.png",user_id:null},(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i="defaultProps","string"))?a:a+"")in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s,Scribd.addComponent("Shared.React.Lists.ListItems",k)}.call(this,r(12))},134:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(2),i=r(0),s=r.n(i),a=r(4),o=r(3),l=r(67),c=r.n(l);const _=e=>{switch(e){case a.DOCUMENT_TYPES.AUDIOBOOK:case a.DOCUMENT_TYPES.SUMMARY_CANONICAL:return n.default.t("shared.react.circular_progress_indicator.listened");default:return n.default.t("shared.react.circular_progress_indicator.read")}},d=(e,t)=>e*(e=>1-e/100)(t);function u({contentType:e,percentCompleted:t,perimeter:r,thickness:n}){const i=(r+n)/2,a=r+n,l=`${Math.round(t)}% ${_(e)}`,u=Object(o.uuid)(),p=r/2,h=Math.PI*p*2;return s.a.createElement("span",{style:{height:r+n}},s.a.createElement("div",{className:c.a.circularProgressContainer},s.a.createElement("svg",{role:"img",className:c.a.svgContainer,"aria-labelledby":u,width:a,height:a},s.a.createElement("title",{id:u},l),s.a.createElement("circle",{className:c.a.progressOutlineRing,cx:i,cy:i,fill:"none",r:p,strokeWidth:n}),s.a.createElement("circle",{className:c.a.progressFillRing,cx:i,cy:i,fill:"none",r:p,strokeDasharray:h,style:{strokeDashoffset:d(h,t)},strokeWidth:n}))))}u.defaultProps={contentType:a.DOCUMENT_TYPES.BOOK,percentCompleted:0,perimeter:15,thickness:3}},137:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s}));r(247);var n=r(40),i=r(98);class s extends i.a{constructor(e){super(e),this.enclosing_class("auto__recommenders_modules_article_tile")}handle_resize(){}enclosing_tag(){return"div"}render_interest(){let t=this.props.item.interest?this.props.item.interest:I18n.t("recommenders.modules.article_tile.top_picks");return e.createElement("div",{className:"interest"},t)}render_image(t=!0){return e.createElement("div",{className:classNames("image",{is_book:this.props.item.is_book}),key:`image_${this.props.item.id}`},e.createElement("a",{href:this.props.item.publication_url,className:"publication_link"},this.render_image_flag(),e.createElement(n.a,{alt_text:this.get_image_alt_text(),image_url:this.props.item.image_url,lazy_load:t,retina_image_url:this.props.item.retina_image_url,use_in_carousel:this.props.use_in_carousel}),this.render_image_cta()))}render_list_item_content(){return e.createElement("div",{className:"wrapper"},this.render_article_image(),e.createElement("div",{className:"body"},this.render_interest(),this.render_title()))}handle_meta_data_click(){window.location.href=this.get_content_url()}render_header(){return e.createElement("div",{className:"header"},this.render_image(!1),e.createElement("div",{className:"metadata",onClick:this.handle_meta_data_click.bind(this),"aria-hidden":"true"},this.render_author(!1),this.render_reading_time_estimate()))}render_list_item_wrapper(){return e.createElement("div",{className:"list_anchor_container"},this.render_header(),e.createElement("a",{className:classNames("list_anchor",{book_link:this.should_show_book_preview_lightbox(),new_item:this.props.item.new_item}),href:this.get_content_url(),id:this.props.item.id},this.render_new_indicator(),this.render_list_item_content()),this.render_controls())}}Scribd.addComponent("Recommenders.Modules.ArticleTile",s)}).call(this,r(0))},138:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),i=r.n(n),s=r(6);class a extends s.a{constructor(e){super(e),this.enclosing_class("auto__shared_availability_notice")}render_content(){return i.a.createElement("div",{className:`availability_info ${this.props.flag_class} ${this.props.extra_classes}`,"data-e2e":"availability-notice"},i.a.createElement("span",{className:`icon ${this.props.icon}`}),i.a.createElement("span",{className:"availability_text"},this.props.text))}}},14:function(e,t,r){e.exports=r(13)(18)},15:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),i=r.n(n),s=r(6);class a extends s.a{constructor(e){super(e),this.state={lightbox:null}}componentDidMount(){const e=$(this.container);if(e.on("Scribd:lightbox:closed",this.handle_click_close),e.on("Scribd:lightbox:opened",this.handle_opened),!e.closest("#lightboxes").length&&!e.closest(".inline_lightbox").length&&"test"!==Scribd.rails_env)throw new Error("Tried to render a react lightbox not inside #lightboxes");const t=this.props.stacked?Scribd.StackedLightbox:Scribd.Lightbox,r=this.state.lightbox||new t(this.container,!1);$(this.container).hide(),this.setState({lightbox:r}),r.show()}component_classes(){return classNames("lightbox",{no_fullscreen:this.props.no_fullscreen,lite:this.props.render_lite},this.props.className)}enclosing_element_args(){return{"aria-describedby":this.props.aria_describedby,"aria-hidden":"true","aria-label":this.get_aria_label(),"aria-labelledby":this.get_aria_labelled_by(),onBlur:this.handle_blur,role:"dialog",tabIndex:"-1"}}handle_blur(e){e.stopPropagation(),$(this.container).attr("tabindex",null)}handle_click_close(e){e.preventDefault(),this.props.handle_click_close&&this.props.handle_click_close()}handle_opened(e){e.preventDefault(),this.props.onCloseFocusSelector&&(Scribd.Lightbox.last_focused_element=document.querySelector(this.props.onCloseFocusSelector))}get_aria_labelled_by(){return this.props.aria_labelled_by||this.uid("lightbox")}get_aria_label(){if(this.props.aria_label)return this.props.aria_label}render_close_button(){if(!1!==this.props.show_close)return i.a.createElement("a",{href:"#",className:"close_button"},i.a.createElement("span",{className:"icon icon-ic_close_small"},i.a.createElement("span",{className:"visually_hidden"},I18n.t("shared.react.lightbox.close_dialog"))))}render_title(){if(this.props.title)return i.a.createElement("h2",{className:"title",id:this.get_aria_labelled_by()},this.props.title)}render_content(){let e=this.props.children;return this.props.render_lite||(e=i.a.createElement(i.a.Fragment,null,this.render_close_button(),i.a.createElement("div",{className:"content"},this.render_title(),this.props.children))),i.a.createElement("div",{className:"wrapper"},e)}}a.defaultProps={render_lite:!1},Scribd.addComponent("Shared.Lightbox",a)},169:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(3);function i(e,t,r,i,s=["unknown"]){return Object(n.trackRats)(`${e}:available_soon:view`,{document_id:t,document_type:r,user_id:i,restricted_credit_types:s})}},17:function(e,t,r){e.exports=r(13)(21)},170:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return g}));var n,i=r(5),s=r.n(i),a=r(2),o=r(0),l=r.n(o),c=r(42),_=r(4),d=r(3),u=(r(47),r(6)),p=r(20),h=r.n(p);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function f(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class g extends u.a{constructor(e){super(e),this.enclosing_class(h.a.wrapper),this.state={initial_rating:e.user_rating,user_rating:e.user_rating,upvotes:e.upvote_count,downvotes:e.downvote_count}}componentDidMount(){g.instances.push(this),g.bind_global_handlers()}component_classes(){return"upvotes_container"}enclosing_element_args(e={}){return this.props.active&&(e.href="#",e.onClick=e=>e.preventDefault()),e}upvote(){this.rate_title(5)}downvote(){this.rate_title(1)}showTooltip(e){$(e.target.children[0]).trigger("mouseenter")}hideTooltip(e){$(e.target.children[0]).trigger("mouseleave")}rate_title(e){if(!this.props.active)return;const t={trackingData:{loc:"upvotes"},userAction:_.ACCOUNT_CREATION.USER_ACTIONS.RATE};Scribd&&Scribd.with_login(t,this.handle_rating.bind(this,e))}handle_rating(e){const t=this.state.user_rating;this.setState({user_rating:e},(()=>{const e=[this,0===t];$(this.container).trigger("scribd:upvote_update",e)})),$.post(this.props.ratings_path,{rated:e,source:4}).fail((()=>{Scribd&&Scribd.Flasher&&Scribd.Flasher.standard("error",a.default.t("shared.react.star_ratings.your_rating_was_not_saved_please")),this.setState({user_rating:t},(function(){$(this.container).trigger("scribd:upvote_update",this)}))})).always((()=>{Object(d.trackEvent)("ratings:upvote:update",{word_document_id:this.props.doc_id,rating:this.state.user_rating})}))}get_upvotes_hidden_msg(e){const{user_upvoted_hidden:t,user_not_upvoted_hidden:r}=this.props.thumbs_up_labels;return e?t:r}get_downvotes_hidden_msg(e){const{user_downvoted_hidden:t,user_not_downvoted_hidden:r}=this.props.thumbs_down_labels;return e?t:r}render_content(){return this.props.render_stats_first?[this.render_stats(),this.render_upvotes()]:[this.render_upvotes(),this.render_stats()]}render_live_region(e){const{marked_as_upvoted:t,marked_as_downvoted:r}=this.props.has_selection_labels,n=e?t:r;return l.a.createElement("span",{"aria-atomic":"true","aria-live":"polite",className:"upVotesLiveRegion visually_hidden",key:"upvotes_live_region",role:"status"},n)}get_icons(e,t,r){let n={upvote:g.ICON_PATHS.UPVOTE.OUTLINE,downvote:g.ICON_PATHS.DOWNVOTE.OUTLINE};return e&&t&&(n.upvote=g.ICON_PATHS.UPVOTE.FILL),e&&r&&(n.downvote=g.ICON_PATHS.DOWNVOTE.FILL),n}get_thumbs_label(e,t){return e&&e.label?e.label:t.LABEL}render_upvotes(){let{user_rating:e,upvotes:t,downvotes:r}=this.state;const n=this.props.user_rating,i=5===e,a=1===e;e!==n&&(n?i?(r--,t++):(r++,t--):i?t++:r++);const o=Boolean(i||a),_=this.get_icons(o,i,a),d=this.get_thumbs_label(this.props.thumbs_up_labels,c.c),u=this.get_thumbs_label(this.props.thumbs_down_labels,c.b),p={onFocus:this.showTooltip,onBlur:this.hideTooltip,onMouseLeave:this.hideTooltip},f={key:"upvotes_thumbs_up",className:s()("vote","upvote",h.a.vote,{[h.a.voteButton]:this.props.active,[h.a.selected]:i,[h.a.hasSelection]:o}),onClick:this.upvote,children:[l.a.createElement("span",{"aria-disabled":Boolean(i),"aria-hidden":"true","aria-label":d,className:s()("thumbs_up","icon",_.upvote),"data-tooltip":!this.props.hide_tooltips,key:"icon",role:"presentation"}),l.a.createElement("span",{className:s()("label",{hidden:!this.props.showLabel}),key:"label"},d),l.a.createElement("span",{className:s()(h.a.count,{hidden:this.props.showLabel}),key:"count"},t),l.a.createElement("span",{key:"count_hidden_msg",className:"visually_hidden"},this.get_upvotes_hidden_msg(i))]},g={key:"upvotes_thumbs_down",className:s()("vote","downvote",h.a.vote,{[h.a.voteButton]:this.props.active,[h.a.selected]:a,[h.a.hasSelection]:o}),onClick:this.downvote,children:[l.a.createElement("span",{"aria-disabled":Boolean(a),"aria-hidden":"true","aria-label":u,className:s()("thumbs_down","icon",_.downvote),"data-tooltip":!this.props.hide_tooltips,key:"icon",role:"presentation"}),l.a.createElement("span",{className:s()("label",{hidden:!this.props.showLabel}),key:"label"},u),l.a.createElement("span",{className:s()(h.a.count,{hidden:this.props.showLabel}),key:"count"},r),l.a.createElement("span",{key:"count_hidden_msg",className:"visually_hidden"},this.get_downvotes_hidden_msg(a))]};let b=[];return this.props.active?(b.push(l.a.createElement("button",m({type:"button"},p,f))),b.push(l.a.createElement("button",m({type:"button"},p,g)))):(b.push(l.a.createElement("span",m({},p,f))),b.push(l.a.createElement("span",m({},p,g)))),l.a.createElement("div",{key:"upvotes_actions",className:s()("upvotes",h.a.upvotes,{[h.a.disabled]:!this.props.active})},l.a.createElement("div",{className:"votes_inner_container"},b,o&&this.render_live_region(i)))}render_stats(){if(!this.props.show_stats)return;let e=null;return this.props.score&&(e=l.a.createElement("div",{className:s()("score",h.a.score)},a.default.t("shared.react.upvotes.props_score_5_score",{props_score:this.props.score}))),l.a.createElement("div",{key:"upvote-stats",className:h.a.stats},l.a.createElement("div",null,l.a.createElement("div",null,a.default.t("shared.react.upvotes.props_views_views",{props_views:this.props.views})),e))}}n=g,f(g,"ICON_PATHS",{UPVOTE:{FILL:"icon-ic_thumbsup_fill_small",OUTLINE:"icon-ic_thumbsup_outline_small"},DOWNVOTE:{FILL:"icon-ic_thumbsdown_fill_small",OUTLINE:"icon-ic_thumbsdown_outline_small"}}),f(g,"instances",[]),f(g,"bind_global_handlers",e.once((()=>{$(window).on("scribd:upvote_update",((e,t)=>{const r=Array.from(n.instances);for(let e of r)e!==t&&t.props.doc_id===e.props.doc_id&&e.setState({user_rating:t.state.user_rating})})),$(window).on("scribd:upvote_update:pdf_reader",((e,t)=>{const r=Array.from(n.instances);for(let e of r)t.doc_id===e.props.doc_id&&e.setState({user_rating:t.rating})}))}))),g.defaultProps={downvote_count:0,force_outline_icon:!1,has_selection_labels:{marked_as_upvoted:c.a.MARKED_AS_UPVOTED,marked_as_downvoted:c.a.MARKED_AS_DOWNVOTED},render_stats_first:!1,showLabel:!1,thumbs_down_labels:{user_downvoted_hidden:c.b.USER_DOWNOVOTED_HIDDEN,user_not_downvoted_hidden:c.b.USER_NOT_DOWNOVOTED_HIDDEN},thumbs_up_labels:{user_upvoted_hidden:c.c.USER_UPVOTED_HIDDEN,user_not_upvoted_hidden:c.c.USER_NOT_UPVOTED_HIDDEN},upvote_count:0,user_rating:0}}).call(this,r(12))},171:function(e,t,r){"use strict";r.d(t,"a",(function(){return _}));var n=r(2),i=r(0),s=r.n(i),a=r(93),o=r(101),l=r(6),c=r(11);r(228);class _ extends l.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_download_button"),this.state={downloadable:!0,isMobile:!1}}component_classes(){return"download_button_container"}componentDidMount(){this.setState({isMobile:Scribd.is_mobile})}handle_click(e){"function"==typeof this.props.on_click&&this.props.on_click(e,this.props.document_id),this.props.dunning_lock_restrict_doc_download?$.get(`${this.props.dunning_lock_downloadable_status_url}?document_id=${this.props.document_id}`).then((e=>{e&&!e.downloadable?Object(a.async_render_lock_shock_roadblock)({payment_fix_url:this.props.payment_fix_url}):this.initiate_download()})).fail((()=>{Scribd.Flasher.toast("error",n.default.t("shared.react.download_button.unable_to_download_please_try_again"))})):this.initiate_download()}initiate_download(){Scribd.Lightbox.show_loading(),o.DownloadActions.download(this.props.document_id,"search","results",(e=>{e.downloadable?o.DownloadActions.download_dialog_lightbox(e,this.props.show_after_download_suggestions):(Scribd.Lightbox.close(),Scribd.Flasher.toast("error",n.default.t("shared.react.download_button.this_document_is_not_available_for")),this.setState({downloadable:!1}))}))}render_content(){if(!this.state.downloadable)return;const e=this.state.isMobile?null:n.default.t("shared.react.download_button.download");return s.a.createElement(c.b,{type:"button","data-tooltip":e,className:"download_button text_btn",onClick:this.handle_click},s.a.createElement("span",{className:"icon icon-ic_download_with_line","aria-hidden":"true"}),s.a.createElement("span",{className:"visually_hidden"},`${n.default.t("shared.react.download_button.download")} ${this.props.document_title}`))}}},1736:function(e,t,r){r(126),e.exports=r(1737)},1737:function(e,t,r){"use strict";r.r(t);r(74),r(107),r(103),r(291),r(1190),r(1741),r(1743)},1738:function(e,t,r){},1739:function(e,t,r){(function(e){var t,n,i=function(e,t){return function(){return e.apply(t,arguments)}},s={}.hasOwnProperty;r(607),n=r(3).trackEvent,t=function(){function t(e){var r;this.opts=null!=e?e:{},this.update=i(this.update,this),this.handle_input=i(this.handle_input,this),this.setup_events=i(this.setup_events,this),t.__super__.constructor.call(this,this.opts),this.container=$(this.opts.container),this.doc_id=this.opts.doc_id,this.is_embed=this.opts.is_embed||!1,this.setup=!1,$(this.opts.scroll_node).off(this.events.scroll).on(this.events.scroll,this.update),setTimeout((r=this,function(){return r.container.on("scroll",r.handle_input),$(window).on("resize",r.handle_input),r.container.on("click",r.setup_events)}),250),this.is_embed||this.setup_events()}return function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,Scribd.ReadingProgress.Base),t.prototype.enabled=function(){return!!window.docManager&&(!!this.opts.scroll_node&&t.__super__.enabled.apply(this,arguments))},t.prototype.default_opts=function(){return e.extend(t.__super__.default_opts.apply(this,arguments),{scroll_node:null})},t.prototype.setup_events=function(){var t;if(!this.setup)return this.setup=!0,this.track_view(),setTimeout((t=this,function(){return t.tracking_enabled=!0,t.track_view()}),1e3),this.tick_track_later=e.debounce(function(e){return function(){return e.tick_track.apply(e,arguments)}}(this),1e3),setInterval(function(e){return function(){if(e.current_event)return new Date-e.current_event.time>6e5?e.flush_current_event():void 0}}(this),5e3),$(window).on("beforeunload unload",function(e){return function(){return e.flush_current_event()}}(this))},t.prototype.handle_input=function(e){return this.is_embed&&this.setup_events(),this.track_view()},t.prototype.update=function(){var e;if(this.enabled())return this.updated=!0,e=window.docManager.currentPageNum()-1,this.offset_type="page",this.offset=e,this.percentage=e/this.opts.total_pages*100,this.throttled_post_handler()},t.prototype.flush_current_event=function(){if(this.current_event)return n("doc:view_end",{top_view_position:this.current_event.left,bottom_view_position:this.current_event.right,duration:(new Date-this.current_event.time)/1e3,doc_id:this.opts.doc_id,is_embed:this.is_embed}),this.current_event=null},t.prototype.tick_track=function(e,t){return this.flush_current_event(),this.current_event={left:e,right:t,time:+new Date},n("doc:view",{top_view_position:e,bottom_view_position:t,doc_id:this.opts.doc_id,is_embed:this.is_embed})},t.prototype.track_view=function(){var e,t,r,n,i,s;if(this.tracking_enabled&&this.container.is(":visible")&&(t=this.container[0],e=this.container.find(".document_container")[0],s=t.scrollTop,r=e.scrollHeight,(n=Math.max(0,Math.min(1,s/r)))!==(i=Math.max(0,Math.min(1,(s+t.offsetHeight)/r)))))return this.tick_track_later(Math.floor(100*n),Math.floor(100*i))},t}(),Scribd.addComponent("ReadingProgress.Pdf",t)}).call(this,r(12))},1740:function(e,t,r){var n,i,s;r(194),n=r(21).default,i=r(101).toolbarParams,s=r(3).trackEvent,Scribd.BuyDocManager=function(){function e(){}return e.for_current_doc=function(e,t,r){var n,i,s;return null==e&&(e=null),null==t&&(t=null),null==r&&(r=null),this.buy_manager||(n=Scribd.current_doc,this.buy_manager=new Scribd.BuyDocManager,s=this,i=function(){var e,t,r;return t=I18n.t("shared.buy_doc_manager.you_re_reading_a_preview_unlock_full"),e=I18n.t("shared.buy_doc_manager.download_with_free_trial"),r=I18n.t("shared.buy_doc_manager.unlock_full_access_with_a_free"),s.buy_manager.setup_buy_buttons(e),s.buy_manager.setup_missing_page_title(t,r)},"loading"!==n.readyState?i():n.addEventListener("DOMContentLoaded",i)),this.buy_manager},e.prototype.setup_buy_buttons=function(e){return Scribd.current_doc.show_archive_paywall?$(".missing_page_buy_link .btn_inner").text(e):$(".missing_page_buy_button").hide(),this.setup_buy_buttons_callbacks()},e.prototype.setup_buy_buttons_callbacks=function(){var e;return e=Scribd.current_doc.is_pmp?this.get_premium_callback("missing_page_signup"):Scribd.current_doc.view_restricted?this.get_archive_callback("missing_page_signup"):void 0,$(document).dispatch("click",{missing_page_buy_button:function(t,r){var n;return(n=t.closest(".page_missing_explanation").length?"doc:read_full_version_link:click":t.closest(".page_blur_promo").length?"doc:free_preview_blur_button:click":void 0)&&s(n,{doc_id:Scribd.current_doc.id}),e(r)}})},e.prototype.setup_missing_page_title=function(e,t){if(Scribd.current_doc.is_pmp||Scribd.current_doc.can_purchase||Scribd.current_doc.show_archive_paywall)return $(".missing_page_number_title").text(e)},e.prototype.get_subscription_callback=function(e,t){return function(){var r,s,a;return r={context:Scribd.current_doc.signup_context,page:"read",action:e,platform:"web",logged_in:!!Scribd.logged_in},r=encodeURIComponent(JSON.stringify(r)),s="doc="+Scribd.current_doc.id+"&metadata="+r,a=function(){return window.location.href=t+"?"+s},Scribd.logged_in?Scribd.FacebookSession.attempt_facebook_upgrade(a):$.ajax({url:Scribd.archive_login_url+"?"+s,type:"post",data:i(Scribd.current_doc),dataType:"json"}).done(n),!1}},e.prototype.get_premium_callback=function(e){return this.get_subscription_callback(e,"/archive/pmp_checkout")},e.prototype.get_archive_callback=function(e){return this.get_subscription_callback(e,"/archive/plans")},e}()},1741:function(e,t,r){"use strict";(function(e){var t=r(7),n=r(3),i=r(637),s=r(2),a=r(6),o=(r(1742),r(1190),r(391),r(4));function l(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const c=({onClick:t})=>e.createElement("a",{"aria-label":s.default.t("embeds.new.toolbar.view_on_scribd_com"),"data-tooltip":s.default.t("embeds.new.toolbar.view_on_scribd_com"),href:"/",onClick:t,className:"scribd_logo",target:"_blank"},e.createElement("span",{className:"scribd_logo_img"},e.createElement("img",{src:Object(i.a)("/images/scribd_logo_horiz_small.svg"),alt:"Scribd",role:"img"})));class _ extends a.a{constructor(t){super(t),l(this,"scrolling","scroll"===this.props.view_mode),l(this,"documentScroller",null),l(this,"renderDownloadItem",(()=>{const{downloadable:t,is_mobile:r,document:{url:n}}=this.props;if(t&&!r)return e.createElement("a",{"aria-label":s.default.t("embeds.new.toolbar.download"),className:"toolbar_download download",href:`${n}#download&from_embed`,onClick:this.handle_download_click,target:"_blank"},"Download this PDF")})),l(this,"get_share_popup_ref",(e=>{this.share_popup=e})),l(this,"renderPaddle",((t,r,n,i)=>{if(!this.props.hide_controls&&"slideshow"===this.props.view_mode&&!i)return e.createElement("div",{className:`pagination_paddle ${n}`,onClick:t},e.createElement("span",{className:`icon ${r}`}))})),l(this,"renderToolbarItems",(()=>e.createElement("div",{className:"toolbar_items"},this.renderDownloadItem(),this.render_center_tools(),e.createElement("div",{className:"right_tools"},this.render_right_tools())))),this.enclosing_class("auto__embeds_new_toolbar"),this.state={share_open:!1},this.shareButtonRef=e.createRef()}widget_css_classes(e){return classNames(e,`view_mode_${this.props.view_mode}`,{can_shrink_logo:this.props.current_user||this.props.buy_url})}componentDidMount(){new Scribd.SharingButtons(this.container,this.props.share_opts);const e={"scribd:share:email":"embed:share_email:click","scribd:share:facebook":"embed:share_facebook:click","scribd:share:twitter":"embed:share_twitter:click","scribd:share:pinterest":"embed:share_pinterest:click"};for(let t in e){let r=e[t];$(this.container).on(t,(()=>Object(n.trackEvent)(r)))}return $(document.body).on("click",(e=>{if(this.props.hide_controls||!this.state.share_open)return;$(e.target).closest([this.share_popup,this.shareButtonRef]).length||this.setState({share_open:!1})}))}number_format(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}handle_embed_logo_click(){Object(n.trackEvent)("embed:logo:click")}handle_left_paddle_click(){Object(n.trackEvent)("embed:previous_page:click",{location:"paddle"}),this.props.previous_page()}handle_right_paddle_click(){Object(n.trackEvent)("embed:next_page:click",{location:"paddle"}),this.props.next_page()}handle_share_close_click(){this.setState({share_open:!1})}handle_blur(e){if(void 0!==this.state.changing_to_page){if(e.target.value.match(/\d/)){const t=parseInt(e.target.value,10);t!==this.props.current_page&&this.props.goto_page(t)}this.setState({changing_to_page:void 0})}}handle_focus(){Object(n.trackEvent)("embed:page_num_box:click")}handle_key_down(e){if(this.state.changing_to_page)switch(e.keyCode){case n.keyMappings.enter:return this.props.goto_page(parseInt(e.target.value,10)),this.setState({changing_to_page:void 0});case n.keyMappings.esc:return this.setState({changing_to_page:void 0});default:return}}handle_change(e){this.setState({changing_to_page:e.target.value})}handle_zoom_in_click(){if(this.props.current_zoom>=Scribd.EmbedsShow.max_zoom)return null;Object(n.trackEvent)("embed:zoom_in:click"),this.props.zoom_in()}handleZoomInKeyDown(e){if(e.keyCode===n.keyMappings.enter){if(this.props.current_zoom>=Scribd.EmbedsShow.max_zoom)return null;Object(n.trackEvent)("embed:zoom_in:click"),this.props.zoom_in()}}handle_zoom_out_click(){if(this.props.current_zoom<=Scribd.EmbedsShow.min_zoom)return null;Object(n.trackEvent)("embed:zoom_out:click"),this.props.zoom_out()}handleZoomOutKeyDown(e){if(e.keyCode===n.keyMappings.enter){if(this.props.current_zoom<=Scribd.EmbedsShow.min_zoom)return null;Object(n.trackEvent)("embed:zoom_out:click"),this.props.zoom_out()}}handle_left_arrow_click(){this.props.on_first_page||(Object(n.trackEvent)("embed:previous_page:click",{location:"toolbar"}),this.props.previous_page())}handle_right_arrow_click(){this.props.on_last_page||(Object(n.trackEvent)("embed:next_page:click",{location:"toolbar"}),this.props.next_page())}handle_download_click(){Object(n.setCheckoutEntryPointCookie)(o.NAMED_ENTRY_POINT_BUTTONS.EMBED_DOWNLOAD),Object(n.trackEvent)("embed:download:click",Object(n.getCheckoutEntryPointCookie)())}handleEmbedsShareKeyDown(e){e.keyCode===n.keyMappings.enter&&(Object(n.trackEvent)("embed:share:click"),this.setState({share_open:!this.state.share_open}))}handle_embeds_share_click(){Object(n.trackEvent)("embed:share:click"),this.setState({share_open:!this.state.share_open})}handle_fullscreen_click(){Object(n.trackEvent)("embed:fullscreen:click")}render_share_wrapper(){let r;return this.state.share_open&&!this.props.hide_controls&&(r=this.render_share_popup()),e.createElement("div",{className:"share_wrapper"},e.createElement(t.Z,{"aria-label":s.default.t("embeds.new.toolbar.share"),className:classNames("toolbar_btn","share_btn","icon-ic_share_web",{active:this.state.share_open}),"data-tooltip":s.default.t("embeds.new.toolbar.share"),onClick:this.handle_embeds_share_click,onKeyDown:this.handleEmbedsShareKeyDown,nodeRef:this.shareButtonRef,tabIndex:"0"}),r)}render_fullscreen_btn(){return e.createElement("a",{"aria-label":s.default.t("embeds.new.toolbar.fullscreen"),className:"toolbar_btn fullscreen","data-tooltip":s.default.t("embeds.new.toolbar.fullscreen"),href:`${this.props.document.url}#fullscreen&from_embed`,onClick:this.handle_fullscreen_click,target:"_blank"},e.createElement(t.v,{icon:"fullscreen_window"}))}render_right_tools(){let t;return"slideshow"!==this.props.view_mode||this.props.hide_controls||(t=this.render_zoomers()),e.createElement(e.Fragment,null,t,this.render_share_wrapper(),this.render_fullscreen_btn())}render_center_tools(){return this.props.hide_controls&&this.props.is_mobile?e.createElement("div",{className:"center_tools"},this.render_page_display()):e.createElement("div",{className:"center_tools"},!this.scrolling&&this.render_left_arrow(),this.render_pager(),!this.scrolling&&this.render_right_arrow())}render_page_display(){return e.createElement("div",{className:"flex_row narrow_center"},!this.scrolling&&this.render_left_arrow(),e.createElement("div",{className:"page_display"},s.default.t("embeds.new.toolbar.props_current_page_of_numberformat_props_document_total_pages",{props_current_page:this.props.current_page,numberformat_props_document_total_pages:this.number_format(this.props.document.page_count)})),!this.scrolling&&this.render_right_arrow())}render_left_arrow(){return e.createElement("div",{"aria-label":s.default.t("embeds.new.toolbar.previous_page"),className:classNames("toolbar_btn icon-ic_slide_back left_arrow",{disabled:this.props.on_first_page}),"data-tooltip":s.default.t("embeds.new.toolbar.previous_page"),onClick:this.handle_left_arrow_click,tabIndex:"0"})}render_right_arrow(){return e.createElement("div",{"aria-label":s.default.t("embeds.new.toolbar.next_page"),className:classNames("toolbar_btn icon-ic_slide_fwd right_arrow",{disabled:this.props.on_last_page}),"data-tooltip":s.default.t("embeds.new.toolbar.next_page"),onClick:this.handle_right_arrow_click,tabIndex:"0"})}render_zoomers(){const r=this.props.current_zoom<=Scribd.EmbedsShow.min_zoom,n=this.props.current_zoom>=Scribd.EmbedsShow.max_zoom;return[e.createElement(t.Z,{"aria-label":s.default.t("embeds.new.toolbar.zoom_in"),className:classNames("toolbar_btn zoom_btn icon-ic_zoom_in_default zoom_in",{disabled:n}),"data-tooltip":s.default.t("embeds.new.toolbar.zoom_in"),key:"zoom_in",onClick:this.handle_zoom_in_click,onKeyDown:this.handleZoomInKeyDown,tabIndex:"0"}),e.createElement(t.Z,{"aria-label":s.default.t("embeds.new.toolbar.zoom_out"),className:classNames("toolbar_btn zoom_btn icon-ic_zoom_out_default zoom_out",{disabled:r}),"data-tooltip":s.default.t("embeds.new.toolbar.zoom_out"),key:"zoom_out",onClick:this.handle_zoom_out_click,onKeyDown:this.handleZoomOutKeyDown,tabIndex:"0"})]}render_pager(){let t=this.props.current_page;return void 0!==this.state.changing_to_page&&(t=this.state.changing_to_page),e.createElement("div",{className:"toolbar_pager"},e.createElement("input",{"aria-label":s.default.t("embeds.new.toolbar.visually_hidden.jump_to_page"),className:"page_input",onBlur:this.handle_blur,onChange:this.handle_change,onFocus:this.handle_focus,onKeyDown:this.handle_key_down,type:"text",value:t}),e.createElement("span",{className:"total_pages"},s.default.t("embeds.new.toolbar.of_numberformat_props_document_total_pages",{numberformat_props_document_total_pages:this.number_format(this.props.document.page_count)})))}render_share_buttons(){return e.createElement("div",{className:"share_buttons"},e.createElement(t.Z,{"aria-label":"Facebook",className:"icon icon-ic_facebook share_facebook_btn"}),e.createElement(t.Z,{"aria-label":"Pinterest",className:"icon icon-ic_pinterest share_pinterest_btn"}),e.createElement(t.Z,{"aria-label":"Twitter",className:"icon icon-ic_twitter share_twitter_btn"}),e.createElement("a",{"aria-label":s.default.t("embeds.new.toolbar.visually_hidden.email"),target:"_blank",href:this.props.share_opts.mailto_url},e.createElement(t.v,{icon:"email"})))}render_share_overlay(){if(this.state.share_open&&this.props.hide_controls)return e.createElement("div",{className:"share_box"},e.createElement("div",{className:"icon icon-ic_close close_btn",onClick:this.handle_share_close_click}),e.createElement("div",{className:"centered_content"},e.createElement("div",{className:"share_label"},s.default.t("embeds.new.toolbar.share")),this.render_share_buttons()))}render_share_popup(){return e.createElement("div",{ref:this.get_share_popup_ref,className:"share_popup"},this.render_share_buttons())}render_content(){return e.createElement(e.Fragment,null,e.createElement("div",{className:"toolbar_top"},e.createElement(c,{onClick:this.handle_embed_logo_click})),e.createElement("div",{className:"toolbar_bottom"},this.render_share_overlay(),this.renderPaddle(this.handle_left_paddle_click,"icon-ic_arrow_small_left_alt","paddle_left",this.props.on_first_page),this.renderPaddle(this.handle_right_paddle_click,"icon-ic_right_caret_alt","paddle_right",this.props.on_last_page),this.renderToolbarItems()))}}Scribd.addComponent("Embeds.New.Toolbar",_)}).call(this,r(0))},1742:function(e,t,r){},1743:function(e,t,r){},181:function(e,t,r){},182:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),i=r.n(n),s=r(169),a=r(19);r(221);class o extends a.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_cells_book")}componentDidMount(){this.setupAvailableSoonBannerTracking(),super.componentDidMount()}setupAvailableSoonBannerTracking(){const{item:e,page:t,user_id:r}=this.props;e.flag&&e.flag.label&&$(this.container).find(".is_available_soon").one("inview",(()=>{Object(s.a)(t,e.id,e.type,r,e.restricted_credit_types)}))}get_image_aria_label_text(){let e=super.get_image_aria_label_text();return this.props.item.series&&(e+=" series"),e}render_list_item_content(){return[this.render_image(),i.a.createElement("div",{className:"metadata",key:`metadata_${this.props.item.id}`},i.a.createElement("div",{className:"title_author"},this.render_availability_notice(),this.render_cross_brand_heading(),this.render_catalog_label(),this.render_title(),this.render_author()),this.render_reading_progress(),this.render_star_ratings(),this.render_reading_time_estimate())]}}},183:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),i=r.n(n),s=r(19);class a extends s.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_cells_podcast_episode")}render_list_item_content(){return[this.render_image(),i.a.createElement("div",{className:"metadata",key:`metadata_${this.props.item.id}`},i.a.createElement("div",{className:"title_author"},this.render_availability_notice(),this.render_cross_brand_heading(),this.render_catalog_label(),this.render_title(),this.render_author()),this.render_reading_time_estimate())]}}},184:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),i=r.n(n),s=r(2),a=r(19);r(231);class o extends a.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_cells_podcast_series")}render_list_item_content(){const{item:e}=this.props;return i.a.createElement(i.a.Fragment,null,this.render_image(),i.a.createElement("div",{className:"metadata podcast_series"},i.a.createElement("div",{className:"title_author"},this.render_cross_brand_heading(),this.render_catalog_label(),this.render_title()),i.a.createElement("div",{className:"sub_text"},s.default.t("shared.podcast_series.num_podcast_episodes",{count:e.podcastEpisodeCount}))))}}},185:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),i=r.n(n),s=r(19);r(232);class a extends s.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_cells_summary")}render_finished(){return this.props.is_finished?this.render_marked_as_finished():this.render_reading_time_estimate()}render_list_item_content(){return[this.render_image(),i.a.createElement("div",{className:"metadata",key:`metadata_${this.props.item.id}`},i.a.createElement("div",{className:"title_author"},this.render_availability_notice(),this.render_snapshot_author(),this.render_title()),this.render_reading_time_estimate())]}}},186:function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(0),i=r.n(n),s=r(3),a=r(19),o=r(5),l=r.n(o),c=r(6);r(226);class _ extends c.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_persona_icon")}component_classes(){const{author:e,extra_css_classes:t,image_url:r,is_top_results_author:n,size:i}=this.props;return l()("persona_icon",i,t,{top_results_author_image:e&&n,"icon-ic_userofficial_60":e&&!r&&n,"icon-ic_user_circle":!e&&!r})}enclosing_element_args(){return{"aria-hidden":!0}}renderInitials(){return this.props.image_url||!this.props.author||this.props.is_top_results_author?null:i.a.createElement("span",{"aria-hidden":"true"},this.props.initials)}renderImage(){return this.props.image_url?i.a.createElement("img",{src:this.props.image_url,srcSet:`${this.props.retina_image_url} 2x`,alt:""}):null}render_content(){return i.a.createElement(i.a.Fragment,null,this.renderImage(),this.renderInitials())}}_.defaultProps={extra_css_classes:"",image_url:"",is_top_results_author:!1,retina_image_url:"",initials:""},Scribd.addComponent("Shared.React.PersonaIcon",_);var d=r(7);r(227);function u(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class p extends a.a{constructor(e){super(e),u(this,"handleClick",(()=>{const{author:e,authorUrl:t,page:r}=this.props.item;Object(s.trackRats)("seo_crosslinks:click",{page:r,author:{id:e.id,slug:e.slug},location:window.location.href,destination:t})})),this.enclosing_class("auto__shared_react_cells_author")}render_list_item_wrapper(){const{author:e,authorUrl:t}=this.props.item;return i.a.createElement("div",{className:"list_anchor_container"},i.a.createElement("a",{id:e.id,href:t,className:"list_anchor author_link",onClick:this.handleClick},this.render_list_item_content()))}render_list_item_content(){const{author:e,image_url:t,retina_image_url:r,initials:n}=this.props.item;return i.a.createElement(i.a.Fragment,null,i.a.createElement(_,{author:null!==e,image_url:t,retina_image_url:r,initials:n,size:"large"}),i.a.createElement("div",{className:"metadata"},i.a.createElement(d.Z,{href:this.props.readingListUrl,className:"author_name",onClick:this.handleClick,text:e.name})))}}},188:function(e,t,r){},189:function(e,t,r){},19:function(e,t,r){"use strict";r.d(t,"a",(function(){return D}));var n=r(5),i=r.n(n),s=r(2),a=r(0),o=r.n(a),l=(r(219),r(93)),c=r(119),_=r(138),d=r(6),u=r(134),p=r(11),h=r(40),m=r(129),f=r(48),g=r(127),b=r(4),v=r(44),y=r(24),w=r(191),k=r(7);function E(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const S=b.DOCUMENT_TYPES.ARTICLE,N=b.DOCUMENT_TYPES.AUDIOBOOK,x=b.DOCUMENT_TYPES.BOOK,O=b.DOCUMENT_TYPES.PODCAST_EPISODE,C=b.DOCUMENT_TYPES.PUBLICATION_ISSUE,j=b.DOCUMENT_TYPES.SHEET_MUSIC,T=b.DOCUMENT_TYPES.SHEET_MUSIC_CHAPTER,P=b.DOCUMENT_TYPES.SUMMARY_CANONICAL;class D extends d.a{constructor(e){super(e),E(this,"handle_dunning_lock_anchor_click",(()=>(Object(l.async_render_lock_shock_roadblock)({payment_fix_url:this.props.payment_fix_url}),!1))),E(this,"handle_audio_anchor_click",(e=>{e.preventDefault();const{docType:t}=this.props,r=t===O?O:void 0;Object(c.b)(e.currentTarget.href,r)})),this.enclosing_class("auto__shared_react_cells_base"),this.state={undo_loading:!1,removed:e.item.removed,isMobile:!1},this.update_removed_state=this.update_removed_state.bind(this),this.handle_removed_event=this.handle_removed_event.bind(this),this.remove_cell=this.remove_cell.bind(this),this.unremove_cell=this.unremove_cell.bind(this),this.focus_unsaved_tile=this.focus_unsaved_tile.bind(this)}enclosing_tag(){return this.props.enclosing_tag}enclosing_element_args(){return{"data-track_uuid":this.props.rec_uuid,"data-track":!0}}component_classes(){return`react_cell_base object_cell list_item ${this.props.item.type}`}componentDidMount(){$(this.container).on("shared:react:lists:list_item:removed",this.handle_removed_event),this.setState({isMobile:Scribd.is_mobile})}componentWillUnmount(){$(this.container).off("shared:react:lists:list_item:removed",this.handle_removed_event)}componentDidUpdate(e,t){this.state.removed?$(this.container).find(".undo_btn").focus():t.removed&&$(this.container).find(".list_anchor").focus()}handle_removed_event(e,t){this.update_removed_state(t)}update_removed_state(e,t=e=>e){this.setState({removed:e},t)}should_open_in_reader(){return!(this.state.removed&&!this.alwaysUseReaderUrl())&&(this.props.item.open_in_reader||this.alwaysUseReaderUrl())}alwaysUseReaderUrl(){return![x,N,O,j,T,P,b.DOCUMENT_TYPES.PODCAST].includes(this.props.item.type)}remove_cell(){this.update_removed_state(!0)}unremove_cell(){this.update_removed_state(!1)}cell_under_dunning_lock(){return this.props.item.cell_under_dunning_lock&&this.props.payment_fix_url}handle_removed_cell_click(){this.setState({undo_loading:!0}),this.props.undo_xhr(this.props.item).done((()=>{$(this.container).trigger("shared:react:lists:list_item:removed",[!1,this.props.item.id])})).fail((()=>{$(this.container).trigger("shared:react:lists:list_item:removed",[!0,this.props.item.id]),Scribd.Flasher.standard("error",s.default.t("shared.react.cells.base.failed_to_undo_action"))})).always((()=>{this.setState({undo_loading:!1})}))}isAudioType(e){return[N,O].includes(e)}get_content_url(){if(!this.props.no_anchors)return this.cell_under_dunning_lock()?"#":this.should_open_in_reader()?this.props.item.reader_url:this.props.item.book_preview_url}get_list_anchor_click(){const{item:e,handle_list_anchor_click:t}=this.props;return this.cell_under_dunning_lock()?this.handle_dunning_lock_anchor_click:t||(this.isAudioType(e.type)&&e.open_in_reader?this.handle_audio_anchor_click:void 0)}get_image_aria_label_text(){if(!this.props.item.type)return;const e=this.props.item.type.toLowerCase(),t={book:s.default.t("shared.react.cells.base.book"),audiobook:s.default.t("shared.react.cells.base.audiobook"),publication_issue:s.default.t("shared.react.cells.base.publication_issue"),sheet_music:s.default.t("shared.react.cells.base.sheet_music"),sheet_music_chapter:s.default.t("shared.react.cells.base.sheet_music_chapter"),article:s.default.t("shared.react.cells.base.article_in_props_item_author",{props_item_author:this.props.item.author}),document:s.default.t("shared.react.cells.base.pdf_document"),podcast_episode:s.default.t("shared.react.cells.base.podcast_episode"),podcast:s.default.t("book_preview.modules.rich_header.podcast"),summary_canonical:s.default.t("shared.react.cells.base.summary_key_insights")};return Object.prototype.hasOwnProperty.call(t,e)?t[e]:e}get_image_alt_text(){return this.props.item.title}get image_url(){return this.props.use_custom_url?this.props.item.custom_image_url:this.props.item.image_url}get retina_image_url(){return this.props.use_custom_url?this.props.item.custom_retina_image_url:this.props.item.retina_image_url}focus_unsaved_tile(){this.unsaved_tile&&this.unsaved_tile.focus()}should_show_book_preview_lightbox(){return!this.props.item.open_in_reader&&(!this.state.isMobile&&(!!this.props.item.is_book&&![S,C,T].includes(this.props.item.type)))}can_show_removed(){return this.props.show_removed||"list"===this.props.display_type}shouldCrossLinkToEverand(){return this.props.brand===b.BRANDS.SCRIBD&&this.props.item.type!==b.DOCUMENT_TYPES.DOCUMENT}shouldCrossLinkToScribd(){return this.props.brand===b.BRANDS.EVERAND&&this.props.item.type===b.DOCUMENT_TYPES.DOCUMENT}shouldCrossLink(){return this.shouldCrossLinkToEverand()||this.shouldCrossLinkToScribd()}render_removed(){return o.a.createElement("div",{className:"undo_container"},o.a.createElement("div",{className:"undo"},o.a.createElement("div",{className:"undo_btn_label"},o.a.createElement("span",null,this.props.undo_label)),o.a.createElement(p.b,{ref:this.props.item.id,type:"button",text:s.default.t("shared.react.cells.base.undo"),disabled:this.state.undo_loading,"aria-disabled":this.state.undo_loading,tabIndex:"0",className:i()("undo_btn text_btn",{loading:this.state.undo_loading}),onClick:this.handle_removed_cell_click.bind(this)},o.a.createElement("span",{className:"visually_hidden"},s.default.t("shared.react.cells.base.props_item_title_-_removed_from_saved",{props_item_title:this.props.item.title})))))}render_new_indicator(){if(this.props.item.new_item&&!this.props.is_finished)return o.a.createElement("span",{className:"new_items_indicator"},o.a.createElement("span",{className:"visually_hidden"},s.default.t("shared.react.cells.base.new")))}render_catalog_label(){var e,t,r,n,i,a,l,c,_,d;if(!this.props.plans_enabled)return null;const u=(null===(e=this.props.item)||void 0===e||null===(t=e.catalog)||void 0===t?void 0:t.tier)===b.CATALOG_TIERS.PLUS,p=(null===(r=this.props.item)||void 0===r||null===(n=r.catalog)||void 0===n?void 0:n.tier)===b.CATALOG_TIERS.UNLIMITED,h=(null===(i=this.props.item)||void 0===i?void 0:i.isUnlocked)||this.props.is_unlocked,m=null===(a=this.props.item)||void 0===a||null===(l=a.catalog)||void 0===l?void 0:l.transitionStatus,f=(null===(c=this.props.item)||void 0===c?void 0:c.series)&&((null===(_=this.props.item)||void 0===_?void 0:_.type)===N||(null===(d=this.props.item)||void 0===d?void 0:d.type)===x);return(u||p||h)&&!f?o.a.createElement(y.a,{className:"catalog_label",size:y.b.SMALL,label:h?s.default.t("shared.plans.unlocked").toUpperCase():u?s.default.t("shared.plan_type.plus").toUpperCase():s.default.t("shared.plans.unlimited").toUpperCase(),type:h?y.c.UNLOCKED:u?y.c.PLUS:y.c.UNLIMITED}):this.props.item.flag.type===b.RESTRICTION_TYPES.EXPIRING?o.a.createElement("div",{className:"transition_label"},o.a.createElement(k.W,{documentRestriction:b.RESTRICTION_TYPES.EXPIRING,expiryDate:this.props.item.availability.expiry_date})):m?o.a.createElement("div",{className:"transition_label"},o.a.createElement(w.a,{date:m.date,to:m.to})):void 0}render_title(){return o.a.createElement("div",{className:"title document_title"},this.props.item.title)}render_author(e=!0){const t=this.props.item.author,r="string"==typeof t?t:null==t?void 0:t.name,n=e?o.a.createElement("span",{className:"visually_hidden"},s.default.t("shared.react.cells.base.author")):null;return o.a.createElement("div",{className:"author_container"},n,o.a.createElement("span",{className:"author"},r))}render_snapshot_author(){const e={__html:s.default.t("shared.react.cells.base.key_insights_from_authors_html",{author_possessive:this.props.item.author_possessive})};return o.a.createElement("div",{className:"author_container snapshot_author"},o.a.createElement("span",{className:"author",dangerouslySetInnerHTML:e}))}render_reading_progress(){if(this.props.item.reading_progress_bar_props)return o.a.createElement(m.a,this.props.item.reading_progress_bar_props)}render_star_ratings(){if(this.props.item.star_rating_props)return o.a.createElement(g.a,this.props.item.star_rating_props)}render_image_flag(){if(this.props.item.flag&&this.props.item.flag.label)return o.a.createElement("div",{className:`banner_flag flag ${this.props.item.flag.classes}`},this.props.item.flag.label)}render_image_cta(){if(this.props.hide_hover_cta)return;let e=s.default.t("shared.react.cells.base.read_now");return this.props.item.type===N?e=s.default.t("shared.react.cells.base.listen_now"):this.props.item.type===O?e=s.default.t("shared.react.cells.base.listen"):this.props.item.type===b.DOCUMENT_TYPES.PODCAST&&(e=s.default.t("book_preview.show.about")),o.a.createElement("div",{role:"presentation",className:"hover_cta reader"},e)}render_image(e=!0){return o.a.createElement("div",{className:i()("image",{is_book:this.props.item.is_book}),key:`image_${this.props.item.id}`},this.render_image_flag(),o.a.createElement(h.a,{alt_text:this.get_image_alt_text(),aria_label_text:this.get_image_aria_label_text(),image_url:this.image_url,lazy_load:e,retina_image_url:this.retina_image_url,use_in_carousel:this.props.use_in_carousel}),this.render_image_cta())}render_marked_as_finished(){if(this.props.is_finished)return o.a.createElement("div",{className:"marked_as_finished_container"},o.a.createElement("span",{className:"icon icon-ic_finished_small","aria-hidden":"true"}),o.a.createElement("span",{className:"finished_text"},s.default.t("shared.react.cells.base.finished")))}render_reading_time_estimate(e=!0){if(!this.props.item.read_time_estimate)return;const t=o.a.createElement("span",{className:"visually_hidden"},s.default.t("shared.react.cells.base.total"));return o.a.createElement("div",{className:"read_time_estimate"},o.a.createElement("span",null,o.a.createElement("span",null,this.props.item.read_time_estimate),e?t:null))}render_availability_notice(){if("list"===this.props.display_type&&this.props.item.availability&&!this.props.plans_enabled)return o.a.createElement(_.a,{icon:this.props.item.availability.icon,text:this.props.item.availability.text,flag_class:this.props.item.flag.classes})}render_author_container(e){return o.a.createElement("div",{className:"author_container"},o.a.createElement("span",{className:"author"},e))}render_secondary_subtitle(){const{secondary_subtitle:e}=this.props.item;if(e)return this.render_author_container(e)}render_series_name(){if(this.props.item.series)return o.a.createElement("span",{className:"series"},this.render_author_container(s.default.t("shared.react.cells.base.series")))}render_saved_carousel_unsaved(){const e=this.props.no_anchors?"span":"a";return o.a.createElement(e,{className:"unsaved",href:this.get_content_url(),ref:e=>this.unsaved_tile=e},o.a.createElement("div",{className:"removed_indicator_text"},o.a.createElement("p",{className:"document_title"},this.props.item.title),o.a.createElement("p",{className:"subtitle"},s.default.t("shared.react.cells.base.removed_from_saved"))))}render_content_progress(){const{content_progress:e}=this.props.item;if(!e)return;const t=s.default.t("shared.react.cells.base.content_to_go",{duration:e});return this.render_author_container(t)}renderProgressElements(){const{reading_progress_bar_props:e,content_progress:t}=this.props.item;let r=0;return e&&"number"==typeof e.percentage&&(r=e.percentage),o.a.createElement("div",{className:"progress_elements"},o.a.createElement(u.a,{percentCompleted:r}),t?o.a.createElement("span",{className:"content_left_text"},this.props.item.content_progress):null)}render_controls(){if(this.props.controls)return this.props.controls;if(!this.props.no_controls){const e=!this.props.item.star_rating_props;return o.a.createElement("div",{className:"controls"},o.a.createElement(f.default,{item:this.props.item,show_text:!1,classes:i()({no_star_ratings:e}),oauthSignupUrl:this.props.oauthSignupUrl,on_save:this.unremove_cell,on_remove:this.remove_cell}))}}render_list_item_content(){}render_list_item_wrapper(){const{item:e}=this.props,t={className:i()("list_anchor",{book_link:this.should_show_book_preview_lightbox(),new_item:e.new_item}),onClick:this.props.no_anchors?void 0:this.get_list_anchor_click(),href:this.get_content_url(),"data-item_id":e.id,target:this.shouldCrossLink()?"_blank":void 0};!this.cell_under_dunning_lock()&&this.isAudioType(e.type)&&e.open_in_reader&&(t.target="_blank");const r=this.props.no_anchors?"span":"a";return o.a.createElement("div",{className:"list_anchor_container"},o.a.createElement(r,t,this.render_new_indicator(),this.render_list_item_content()),this.render_controls())}render_cross_brand_heading(){return this.shouldCrossLinkToEverand()?o.a.createElement("div",{className:"crossLinkHeading"},o.a.createElement(v.s,null)," ",s.default.t("everand.shared.cross_link_message")):this.shouldCrossLinkToScribd()?o.a.createElement("div",{className:"crossLinkHeading"},o.a.createElement(v.J,null)," ",s.default.t("scribd.shared.cross_link_message")):null}render_content(){return this.can_show_removed()&&this.state.removed?this.render_removed():this.render_list_item_wrapper()}}D.defaultProps={brand:null,enclosing_tag:"li",no_anchors:!1,no_controls:!1,series:!1,show_removed:!1,use_custom_url:!1,plans_enabled:!1}},194:function(e,t,r){var n;(n=window.Scribd||{}).FacebookSession={getUserId:function(){var e;if(e=FB.getAuthResponse())return e.userID},correct:function(){return!(!window.facebookUser||void 0===window.facebookUserId)&&this.getUserId()===facebookUserId},verifyExec:function(e,t){var r;if(window.facebookUser)return(r=this).correct()?e():t?FB.getLoginStatus((function(t){return t.authResponse?FB.logout((function(t){return FB.login((function(t){return r.withValid(e)}))})):FB.login((function(t){return r.withValid(e)}))})):void 0},ensureValid:function(e){return this.verifyExec(e,!0)},withValid:function(e){return this.verifyExec(e,!1)},attempt_facebook_upgrade:function(e,t){return t||(t=e),n.with_named_current_user((function(){var r;return(r=n.named_current_user())&&r.is_facebook_user&&!r.has_email?n.facebook.login((function(r){return r&&r.authResponse?($("#loading_lb").length&&n.Lightbox&&n.Lightbox.open("loading_lb"),$.ajax({url:"/facebook_session",type:"post",dataType:"json",success:e})):t()})):e()}))}}},195:function(e,t,r){var n,i,s=function(e,t){return function(){return e.apply(t,arguments)}};i=r(22),(0,r(27).default)("Recommenders.Modules.Base",n=function(){function e(e,t){var r;this.opts=null!=t?t:{},this.track_recommendations=s(this.track_recommendations,this),this.ready=s(this.ready,this),this.container=$(e),this.opts.on_in_view||(this.opts.on_in_view=(r=this,function(e){return r.tracking=e,r.track_recommendations(r.container.find("[data-track_uuid]"))})),this.ready()}return e.prototype.ready=function(){return new i.Module(this.container,{compilation_id:this.opts.compilation_id,widget_name:this.opts.widget_name,module_id:this.opts.module_id,on_in_view:this.opts.on_in_view})},e.prototype.track_recommendations=function(e){return $(e).each((t=this,function(e,r){return $(r).one("inview",(function(){return i.track_obj_view(t.tracking.view_id,$(r).data("track_uuid"))}))}));var t},e}()),e.exports=n},2:function(e,t,r){e.exports=r(13)(26)},20:function(e,t,r){e.exports={wrapper:"_11OEbj",count:"_3GRguS",prerender:"_3wHkfv",score:"_2XT-7C",stats:"_2CmoNq",upvotes:"_29emT4",disabled:"_2kqY2E",vote:"ND5b9i",hasSelection:"_3jA_zE",selected:"gx5-D8",voteButton:"_2_vWB_"}},208:function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n,i,s,a,o=r(0),l=r.n(o),c=r(5),_=r.n(c),d=r(2),u=(r(213),r(6));class p extends u.a{constructor(e){super(e),this.enclosing_class("auto__shared_message_promo")}componentDidMount(){this.props.on_mount()}component_classes(){return"message_promo"}handle_close(e){e.preventDefault(),this.props.on_close(e)}render_content(){const e=_()("promo_banner_wrapper",this.props.extra_classes,{hidden:this.props.hidden});return l.a.createElement("div",{className:e},l.a.createElement("div",{className:"promo_banner_container"},l.a.createElement("div",{className:"styling_triangle"}),l.a.createElement("a",{className:"icon icon-ic_close",onClick:this.handle_close,href:"#"},l.a.createElement("span",{className:"visually_hidden"},d.default.t("shared.message_promo.dismiss_message"))),l.a.createElement("h2",{className:"promo_header"},this.props.header),l.a.createElement("span",{className:"promo_sub_header"},this.props.subheader)))}}n=p,s={on_mount:()=>{},on_close:()=>{},extra_classes:""},(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i="defaultProps","string"))?a:a+"")in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s,Scribd.addComponent("Shared.MessagePromo",p)},21:function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"default",(function(){return a}));var n=r(68),i=r.n(n),s=(r(30),r(35));function a(t={}){const r=document.getElementById("lightboxes");Scribd.data.deferredLocationData.then((n=>{const a=i()({},Scribd.data.accountCreation,t,{inEU:n.is_in_eu,inModal:!0,language:n.prefix,userCountry:n.current_user_country,reCaptchaEnabled:n.reCaptchaEnabled});let o=r.querySelector("#login_drop");o?ReactDOM.unmountComponentAtNode(o):(o=document.createElement("div"),o.id="login_drop",r.appendChild(o)),Scribd.Lightbox.open_react("login_drop",e.createElement(s.a,a))}))}}.call(this,r(0))},211:function(e,t,r){},212:function(e,t,r){},213:function(e,t,r){},216:function(e,t,r){},219:function(e,t,r){},22:function(e,t,r){(function(t){var r,n=[].slice;r=function(){function e(){throw"RecommendationTracking is not instantiatable"}return e._page_count=0,e._compilation_ids={},e._seen_rv_events={},e.Module=function(){function t(t,r){var n,i,s;this.opts=null!=r?r:{},this.ready=(n=this.ready,i=this,function(){return n.apply(i,arguments)}),this.container=$(t),this.container.on("scribd:enclosing_tracking_module",(s=this,function(e,t){return t(s)})),this.with_tracking=$.Deferred(function(e){return function(t){return t.done((function(t){var r;return e.tracking=t,"function"==typeof(r=e.opts).on_tracking?r.on_tracking(e.tracking):void 0}))}}(this)),this.opts.compilation_id?e.page_view_deferred(this.opts.compilation_id).done(function(e){return function(t){return e.ready(t,e.opts.widget_name)}}(this)):this.container.on("scribd:setup_tracking",function(e){return function(t,r,n){return e.ready(r,n)}}(this))}return t.prototype.setup_inview_tracking=function(){return null==this.tracking?"undefined"!=typeof console&&null!==console?console.error("missing tracking"):void 0:(this.container.one("inview",(t=this,function(){var r;return e.track_module_view(t.tracking.view_id,t.tracking.module_id,t.tracking.widget_name),null!=(r=t.opts.on_in_view)?r.call(t,t.tracking):void 0})),e.trigger_inview_check());var t},t.prototype.setup_click_tracking=function(e){var t,r,n,i,s,a,o;if(null==e&&(e=this.container.find("[data-track_uuid]")),null==this.tracking)return"undefined"!=typeof console&&null!==console?console.error("missing tracking"):void 0;for(this.container.data("track_uuid")&&(e=e.add(this.container)),a=[],n=0,i=e.length;n<i;n++)t=e[n],s="mc"===(r=(t=$(t)).data("track_rats")||"rc")?"mi":"ri",(o={vi:this.tracking.view_id})[s]=t.data("track_uuid"),t.attr("data-track_rats",r),a.push(t.attr("data-track_rats_value",JSON.stringify(o)));return a},t.prototype.ready=function(e,t){var r;if(r=this.opts.module_id||this.container.data("track_uuid"))return this.with_tracking.resolve({widget_name:t,view_id:e,module_id:r}),this.setup_inview_tracking(),this.setup_click_tracking()},t.prototype.track_module_click=function(){var t;return t=1<=arguments.length?n.call(arguments,0):[],this.with_tracking.done((function(r){return e.track_module_click.apply(e,[r.view_id,r.module_id].concat(n.call(t)))}))},t}(),e.page_view_deferred=function(t){var r,n;return t?(e._view_id_deferred||(e._view_id_deferred={}),(r=e._view_id_deferred[t])||(r=$.Deferred(),e._view_id_deferred[t]=r,n=setInterval((function(){if($rat)return clearInterval(n),e.track_page_view(t,(function(e){return r.resolve(e)}),1e3)}))),r):(console.debug("attempted page view without compilation id"),$.Deferred())},e.track_page_view=function(e,t){var r;return null==(r=this._compilation_ids[e])&&(r=this._compilation_ids[e]=this._page_count++),$rat.root().withVid((function(n){return n=n+"."+r,$rat("pv",{vi:n,ci:e}),"function"==typeof t?t(n):void 0}))},e.track_module_view=function(e,t,r){var n;if(!this.seen_event(e,t))return n={vi:e,mi:t},null!=r&&(n.w=r),$rat("mv",n)},e.track_module_click=function(e,t,r){var n;return n={vi:e,mi:t},null!=r&&(n.t=r),$rat("mc",n)},e.track_obj_view=function(e,t){if(!this.seen_event(e,t))return $rat("rv",{vi:e,ri:t})},e.seen_event=function(e,t){var r;return r=e+"#"+t,!!this._seen_rv_events[r]||(this._seen_rv_events[r]=!0,!1)},e.track_obj_click=function(e,t){return $rat("rc",{vi:e,ri:t})},e.trigger_inview_check=function(){return this.trigger_inview_check=t.debounce((function(){return $.event.special.inview.run()}),0),this.trigger_inview_check()},e}(),e.exports=r}).call(this,r(12))},220:function(e,t,r){},221:function(e,t,r){},223:function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"default",(function(){return c}));var n,i,s,a,o=r(6),l=r(11);r(236);class c extends o.a{constructor(e){super(e),this.enclosing_class("auto__shared_promos_app_download_promo"),this.state={dismissed:!1,input_value:"",loading:!1,error:"",content_height:""}}error(e){return null==this.errors&&(this.errors={generic:I18n.t("shared.app_download_promo.module.an_error_occurred_please_try_again"),input:I18n.t("shared.app_download_promo.module.please_enter_a_valid_phone_number"),email:I18n.t("shared.app_download_promo.module.please_enter_a_valid_email"),phone:I18n.t("shared.app_download_promo.module.please_enter_a_valid_phone_number_"),twilio:I18n.t("shared.app_download_promo.module.an_error_occurred_please_try_an")}),this.props.twilio_enabled?this.errors[e]:["input","email","phone"].includes(e)?this.errors.email:"twilio"===e?this.errors.generic:void 0}component_classes(){return classNames(this.props.extra_classes,{dismissed:this.state.dismissed})}componentDidMount(){if(!this.props.lightbox&&($(this.container).one("inview",this.track_view),this.content_inner)){const e=this.container.offsetHeight/2-this.content_inner.offsetHeight/2;this.setState({content_height:`${e}px`})}}handle_close_promo(){return $(this.container).trigger("close_promo_wrapper"),this.setState({dismissed:!0}),this.props.promo_id&&$.post(this.props.close_promo_url,{id:this.props.promo_id}),this.track("click",{item:"close banner"})}handle_key_down(e){if(this.typing_email_address()&&("Tab"===e.key&&e.preventDefault(),["Tab","Enter","ArrowRight"].includes(e.key)))return this.setState({input_value:this.props.email_address})}handle_key_up(e){"Enter"===e.key&&this.submit()}handle_change(e){this.setState({input_value:e.target.value})}handle_response(e,t){let r="server_error";"phone"===t.type?r="text_sent":"email"===t.type&&(r="email_sent"),t.success?this.flash(e,"success"):this.setState({error:e}),this.track(r,{success:t.success,input_text:this.state.input_value},"response")}track_app_store(){this.track("click",{item:"app store"})}track_play_store(){this.track("click",{item:"google play store"})}track_view(e,t){t&&(this.track("view"),$(this.container).off("inview"))}track(e,t={},r=null){const n=this.props.doc_id?{doc_id:this.props.doc_id}:{},i={...t,...this.props.lightbox?{page:this.props.track_page}:{},...n};r||(r=this.props.lightbox?"lightbox":"banner"),this.track_rats(`download_app_promo:${r}:${e}`,i)}client_error(e){this.focus_input_and_mark_invalid(),this.setState({error:e}),this.track("click",{item:"send link",input_valid:!1,input_text:this.state.input_value})}success(e){this.flash(e,"success")}flash(e,t){this.props.lightbox?Scribd.Flasher.toast(t,e,{container:$(`#${this.props.lightbox_id}`)[0]}):Scribd.Flasher.toast(t,e)}focus_input_and_mark_invalid(){$(this.container).find(".email_phone_input").attr("aria-invalid",!0).focus()}submit(){if(this.state.loading)return;let e=this.state.input_value.replace(c.REGEX.spaces,"");this.props.twilio_enabled&&e.match(c.REGEX.type.phone)?(e=e.replace(c.REGEX.non_digits,""),e.match(c.REGEX.valid.phone)?this.send(e):this.client_error(this.error("phone"))):e.match(c.REGEX.type.email)?e.match(c.REGEX.valid.email)?this.send(e):this.client_error(this.error("email")):this.client_error(this.error("input"))}send(e){this.track("click",{item:"send link",input_valid:!0,input_text:this.state.input_value}),this.setState({loading:!0}),this.trigger("scribd:app_download:send_link"),$.post(this.props.app_download_link,{phone_or_email:e}).done(this.handle_send_complete).fail(this.handle_post_failure)}handle_send_complete(e){e.success?(this.handle_response(I18n.t("shared.app_download_promo.module.link_sent_please_check_your_mobile"),e),this.props.lightbox&&Scribd.AppDownloadPromoLightbox.close()):this.handle_response(this.errors[e.error]||this.errors.generic,e),this.setState({loading:!1})}handle_post_failure(){this.handle_response(this.error("generic"),{success:!1,type:"server"}),this.setState({loading:!1})}typing_email_address(){return!!this.props.email_address&&(this.state.input_value.length&&0===this.props.email_address.indexOf(this.state.input_value))}placeholder(){return this.props.twilio_enabled?I18n.t("shared.app_download_promo.module.phone_number_or_email"):I18n.t("shared.app_download_promo.module.enter_your_email")}render_store_link(t,r,n){return[e.createElement("a",{key:"store-link",href:r,target:"_blank",onClick:n},t,e.createElement("span",{className:"visually_hidden"},I18n.t("shared.app_download_promo.module.opens_new_window"))),e.createElement("span",{key:"store-link-text",className:"app_store_link_just_text"},t)]}render_header(){return e.createElement("div",{className:"header"},e.createElement("h2",{id:"download_promo_content_header"},I18n.t("shared.app_download_promo.module.read_anytime_everywhere_you_go")),e.createElement("p",null,e.createElement("span",null,I18n.t("shared.app_download_promo.module.scribd_is_available_on_the")," "),this.render_store_link(I18n.t("shared.app_download_promo.module.app_store"),this.props.iosStoreUrl,this.track_app_store),e.createElement("span",null," ",I18n.t("shared.app_download_promo.module.and")," "),this.render_store_link(I18n.t("shared.app_download_promo.module.google_play_store"),this.props.androidStoreUrl,this.track_play_store)))}render_form(){let t=null,r=null;return this.typing_email_address()&&(t=e.createElement("input",{className:"email_suggestion",placeholder:this.props.email_address,type:"text",defaultValue:"","aria-label":this.placeholder(),"aria-required":"true","aria-invalid":!1})),this.state.error&&(r=e.createElement("span",{className:"error_msg"},e.createElement("span",{className:"icon-ic_warn","aria-hidden":"true"}),e.createElement("span",{className:"visually_hidden"},"Error"),e.createElement("span",null,this.state.error))),e.createElement("div",{className:"form"},e.createElement("label",{className:classNames("input_container",{suggesting:this.typing_email_address(),has_error:this.state.error}),htmlFor:"email_phone_input"},e.createElement("div",{className:"label"},I18n.t("shared.app_download_promo.module.enter_your_phone_number_or_email")),t,e.createElement("input",{type:"text",placeholder:this.placeholder(),className:"email_phone_input",id:"email_phone_input",value:this.state.input_value,"aria-label":this.placeholder(),"aria-required":"true","aria-invalid":!1,onKeyDown:this.handle_key_down,onKeyUp:this.handle_key_up,onChange:this.handle_change}),e.createElement(l.b,{className:classNames("send_link_btn",{loading:this.state.loading}),disable:this.state.loading,onClick:this.submit},I18n.t("shared.app_download_promo.module.send_link"))),r)}render_app_download_badges(){return e.createElement("div",{className:"app_download_badges_container"},e.createElement("a",{className:"android_store_download_badge_link left",href:this.props.androidStoreUrl},e.createElement("img",{className:"android_store_badge",src:this.props.android_app_badge_img_src,alt:I18n.t("shared.app_download_promo.module.android_app_store_badge")})),e.createElement("a",{className:"ios_store_download_badge_link",href:this.props.iosStoreUrl},e.createElement("img",{className:"ios_store_badge",src:this.props.ios_app_badge_img_src,alt:I18n.t("shared.app_download_promo.module.ios_app_store_badge")})))}render_content(){if(this.state.dismissed)return null;let t=null,r=null,n={};const i=e.createElement("div",{className:"devices_container"},e.createElement("div",{className:"devices"}));return this.props.lightbox?t=i:(r=i,this.state.content_height&&(n.top=this.state.content_height)),[e.createElement("button",{key:"close_promo","aria-label":I18n.t("shared.app_download_promo.module.hide_promo_content"),className:"close_promo_btn",onClick:this.handle_close_promo,type:"button"},e.createElement("span",{className:"icon-ic_close","aria-hidden":"true"})),e.createElement("section",{key:"promo_content",className:"app_download_promo_content","aria-labelledby":"download_promo_content_header"},t,e.createElement("div",{className:"content_inner",ref:e=>{this.content_inner=e},style:n},e.createElement("div",{className:"header_and_form_container"},this.render_header(),this.render_form(),this.render_app_download_badges())),r)]}}n=c,s={valid:{email:/^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i,phone:/^\+?\d{10,15}$/},type:{email:/@/,phone:/^\+?[\d\-_\(\).]*\d[\d\-_\(\).]*$/},spaces:/\s/g,non_digits:/[^\d+]/g},(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i="REGEX","string"))?a:a+"")in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s,Scribd.addComponent("Shared.Promos.AppDownloadPromo.Module",c)}.call(this,r(0))},225:function(e,t,r){},2257:function(e,t,r){"use strict";r.r(t),r.d(t,"renderBlur",(function(){return d}));var n=r(0),i=r.n(n),s=r(37),a=r.n(s),o=r(2),l=r(778),c=r.n(l);function _(){return i.a.createElement("div",{className:c.a.wrapper},i.a.createElement("section",{className:c.a.card},i.a.createElement("h2",{className:c.a.title},o.default.t("embeds.preview.page_hidden_in_preview")),i.a.createElement("p",{className:c.a.subtitle},o.default.t("embeds.preview.hidden_pages_will_be_visible"))))}const d=({promoDivElement:e})=>{a.a.render(i.a.createElement(_,null),e)}},226:function(e,t,r){},227:function(e,t,r){},228:function(e,t,r){},229:function(e,t,r){},230:function(e,t,r){},231:function(e,t,r){},232:function(e,t,r){},234:function(e,t,r){var n,i,s,a,o={}.hasOwnProperty;r(263),s=r(27).default,n=r(195),a=r(3).trackEvent,i=function(e){function t(e,r){var n,i;this.opts=null!=r?r:{},this.track_view=(n=this.track_view,i=this,function(){return n.apply(i,arguments)}),t.__super__.constructor.apply(this,arguments),this.setup_events()}return function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.setup_events=function(){return this.container.one("inview",this.track_view),this.container.dispatch("click",{close_btn:(e=this,function(t){return e.close()})});var e},t.prototype.close=function(){return this.container.trigger("close_promo_wrapper"),this.container.hide(),$.ajax({type:"POST",url:this.opts.close_url,data:{id:this.opts.promo_id}})},t.prototype.track_view=function(e,t){var r,n,i,s,o;if(t){for(a(this.opts.promo_type+":banner:view",{loc:this.opts.track_category}),o=[],r=0,i=(s=this.container[0].querySelectorAll("img[data-src]")).length;r<i;r++)n=s[r],o.push(n.src=n.dataset.src);return o}},t}(n),s("Recommenders.Modules.Promo",i),e.exports=i},235:function(e,t,r){},236:function(e,t,r){},237:function(e,t,r){},238:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0),i=r.n(n),s=r(6),a=r(7);r(250);class o extends s.a{constructor(e){super(e),this.enclosing_class("auto__recommenders_modules_browse_dropdown")}render_menu(){const e=this.props.content_types.map(this.render_menu_item);return i.a.createElement("ul",{className:"menu_list"},e)}render_menu_item(e,t){return i.a.createElement("li",{className:"menu_item",key:t},i.a.createElement(a.Z,{className:"content_buttons",href:e.url,text:e.title,dataProps:e.data_props}))}render_button(){return i.a.createElement(a.Z,{"data-e2e":"content_dropdown",className:"label_btn",data_props:this.props.data_props},i.a.createElement("span",{"data-e2e":"label_title",key:"label_title",className:"label_title"},this.props.label),i.a.createElement("span",{key:"icon_down_arrow",className:"icon icon-ic_dropdown_1px"}))}render_content(){const{content_types:e}=this.props;return 1===e.length?i.a.createElement("span",{className:"label_no_options"},i.a.createElement("span",{className:"label_title"},e[0].title)):i.a.createElement(a.f,{autoClose:this.props.autoclose,button:this.render_button(),forcePosition:"bottom",menu:this.render_menu()})}}o.defaultProps={content_types:[]},Scribd.addComponent("Recommenders.Modules.BrowseDropdown",o)},239:function(e,t,r){(function(t){var n,i,s,a={}.hasOwnProperty;n=r(55),s=r(133).default,r(251),i=function(e){function r(e,t){var n,i;this.opts=t,this.mount_react_cells=(n=this.mount_react_cells,i=this,function(){return n.apply(i,arguments)}),this.container=$(e),this.mount_react_cells(),r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r.prototype.mount_react_cells=function(){var e,r;return r=this.container.find(".react_carousel_mount")[0],e=t.createElement(s,{aria_label:this.opts.aria_label,aria_labelled_by:!1,content_type:this.opts.content_type,documents:this.opts.documents,hide_hover_cta:!0,pre_rendered:this.opts.pre_rendered,plans_enabled:this.opts.plans_enabled,rec_tracking_json:this.opts.rec_tracking_json,use_in_carousel:!0,user_id:this.opts.user_id,page:this.opts.page,oauthSignupUrl:this.opts.oauthSignupUrl}),ReactDOM.render(e,r)},r}(n),Scribd.addComponent("Recommenders.Modules.ContentCohesiveCarousel",i),e.exports=i}).call(this,r(0))},240:function(e,t,r){var n,i={}.hasOwnProperty;r(266),n=function(e){function t(e,r){this.container=e,this.opts=null!=r?r:{},this.container=$(this.container),this.setup_click_events(),t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.setup_click_events=function(){return this.container.dispatch("click",{open_lightbox:function(e,t){return t.preventDefault(),Scribd.Lightbox.open("publications_dialog")}})},t}(r(55)),Scribd.addComponent("Recommenders.Modules.PublicationsCarousel",n),e.exports=n},242:function(e,t,r){},243:function(e,t,r){},245:function(e,t,r){var n;r(246),r(361),n=function(e){this.container=$(e),this.article_text=this.container.find(".article_text"),this.article_text.dotdotdot()},Scribd.addComponent("Recommenders.Modules.ArticleRow",n)},246:function(e,t,r){},247:function(e,t,r){},248:function(e,t,r){"use strict";(function(e){var t=r(1),n=r.n(t),i=(r(249),r(94)),s=r(137);class a extends i.a{constructor(e){super(e),this.enclosing_class("auto__recommenders_article_tiles_row")}static get propTypes(){return Object.assign({},super.propTypes,{aria_label:n.a.string,documents:n.a.arrayOf(n.a.shape({article_image_url:n.a.string,author:n.a.shape({name:n.a.string,url:n.a.string}),image_url:n.a.string,in_library:n.a.bool,interest:n.a.string,is_book:n.a.bool,publication_date:n.a.string,read_time_estimate:n.a.string,reader_url:n.a.string,retina_article_image_url:n.a.string,retina_image_url:n.a.string,show_reading_time_estimate:n.a.bool,short_title:n.a.string})),default_img_urls:n.a.arrayOf(n.a.string),rec_uuids:n.a.arrayOf(n.a.string)})}enclosing_tag(){return"ul"}component_classes(){return"article_tile_row"}remove_default_image(e){let t=this.props.default_img_urls.indexOf(e);this.props.default_img_urls.splice(t,1)}get_random_index(){return Math.floor(Math.random()*this.props.default_img_urls.length)}sub_default_thumbnail_url(e){let t=this.props.default_img_urls[this.get_random_index()];return this.remove_default_image(t),e.article_image_url=t,e.retina_article_image_url=t,e}render_content(){const{documents:t,rec_uuids:r}=this.props;return t.map(((t,n)=>(t.article_image_url||this.sub_default_thumbnail_url(t),e.createElement("li",{className:"article_tile_list_item",key:n,"data-track":!0,"data-track_uuid":r[n]},e.createElement(s.a,{item:t,no_clamp:!0})))))}}Scribd.addComponent("Recommenders.Modules.ArticleTilesRow",a)}).call(this,r(0))},249:function(e,t,r){},250:function(e,t,r){},251:function(e,t,r){},252:function(e,t,r){"use strict";(function(e){r(253);var t=r(6);function n(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class i extends t.a{constructor(e){super(e),n(this,"MESSAGES",{left:I18n.t("recommenders.modules.doc_education_banner.court_filings"),center:I18n.t("recommenders.modules.doc_education_banner.academic_papers"),right:I18n.t("recommenders.modules.doc_education_banner.business_templates")}),n(this,"SUB_MESSAGES",{left:I18n.t("recommenders.modules.doc_education_banner.get_the_facts_on_landmark_cases"),center:I18n.t("recommenders.modules.doc_education_banner.learn_from_scholars_around_the_world"),right:I18n.t("recommenders.modules.doc_education_banner.customize_proposals_contracts_business_plans_and")}),this.enclosing_class("auto__recommenders_modules_doc_education_banner")}componentDidMount(){$.post(this.props.close_promo_url,{id:this.props.promo_id})}component_classes(){return"module_row doc_education_banner"}render_title(){return e.createElement("h2",{className:"title"},this.props.title)}render_subtitle(){return e.createElement("span",{className:"subtitle"},this.props.subtitle)}render_image(t){return e.createElement("li",{className:`image_container ${t}`},e.createElement("img",{className:`image_${t}`,src:this.props.image_paths[t],alt:"",role:"presentation"}),e.createElement("span",{className:`message ${t}`},this.MESSAGES[t]),e.createElement("span",{className:`sub_message ${t}`},this.SUB_MESSAGES[t]))}render_images(){return e.createElement("ul",{className:"images_container"},this.render_image("left"),this.render_image("center"),this.render_image("right"))}render_content(){return e.createElement("div",null,this.render_title(),this.render_subtitle(),this.render_images())}}Scribd.addComponent("Recommenders.Modules.DocEducationBanner",i)}).call(this,r(0))},253:function(e,t,r){},254:function(e,t,r){},255:function(e,t,r){},256:function(e,t,r){},257:function(e,t,r){var n,i,s,a,o=function(e,t){return function(){return e.apply(t,arguments)}},l={}.hasOwnProperty;r(258),i=r(55),n=r(3).AndroidJsBridge,r(22),a=r(241).trackModuleClick,s=function(e){function t(e,r){this.opts=null!=r?r:{},this.track_all_interests_btn_mc=o(this.track_all_interests_btn_mc,this),this.open_all_interests=o(this.open_all_interests,this),this.send_android_bridge=o(this.send_android_bridge,this),this.container=$(e),this.container.dispatch("click",{all_interests_btn:this.open_all_interests,interest_link:this.send_android_bridge}),t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)l.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.send_android_bridge=function(e,t){var r,i;return n.present()?(t.preventDefault(),r=e.data("object_id"),i=e.find(".interest_title").text(),n.send("openInterest",r,i)):"continue"},t.prototype.open_all_interests=function(){var e;return e=this.opts.lightbox_url+"?content_type="+this.opts.content_type,this.track_all_interests_btn_mc(),Scribd.Lightbox.remote_open("interests_lightbox",e)},t.prototype.track_all_interests_btn_mc=function(){return a(this.opts.module_id)},t}(i),Scribd.addComponent("Recommenders.Modules.InterestTilesCarousel",s),e.exports=s},258:function(e,t,r){},259:function(e,t,r){"use strict";(function(e){var t=r(6),n=r(11);r(260);class i extends t.a{constructor(e){super(e),this.state={hidden:!1,loading:!1,reading_history_data:null},this.enclosing_class("auto__looking_for_jump_back_in_promo")}componentDidMount(){this.submit_close_request(!1)}handle_close_click(e){e.preventDefault(),this.setState({hidden:!0}),this.submit_close_request(!0)}fetch_reading_history(e){return e.preventDefault(),this.state.reading_history_data?this.render_history_hero_modal():(this.setState({loading:!0}),$.get(this.props.reading_history_url).then((({data:e})=>{this.setState({reading_history_data:e},this.render_history_hero_modal)})).fail(this.flash_fetch_error).always((()=>this.setState({loading:!1}))))}submit_close_request(e){let t={id:this.props.promo_id};return!0===e&&(t=Object.assign({},t,{hard_close:!0})),$.post(this.props.close_promo_url,t)}flash_fetch_error(){Scribd.Flasher.toast("error","recommenders.modules.looking_for_jump_back_in_promo.error_retrieving_reading_history")}render_history_hero_modal(){const{HeroModal:t}=Scribd.Home.LoggedIn.History;Scribd.Lightbox.open_react("history_hero_modal",e.createElement(t,{items:this.state.reading_history_data,on_remove:this.update_removed_item,on_save:this.update_saved_item}))}get_item(e,t){return e.reading_history_data.documents.find((e=>e.id===t))}update_saved_item(e){let t=Object.assign({},this.state);this.get_item(t,e).in_library=!0,this.setState(t)}update_removed_item(e){let t=Object.assign({},this.state);this.get_item(t,e).in_library=!1,this.setState(t)}render_content(){return e.createElement("div",{className:classNames("looking_for_jump_back_in_promo_wrapper",{hidden:this.state.hidden})},e.createElement("a",{className:"close_link",onClick:this.handle_close_click,href:"#"},e.createElement("span",{className:"icon icon-ic_close","aria-hidden":"true"}),e.createElement("span",{className:"visually_hidden"},I18n.t("recommenders.modules.looking_for_jump_back_in_promo.dismiss_message"))),e.createElement("h2",{className:"title"},I18n.t("recommenders.modules.looking_for_jump_back_in_promo.title")),e.createElement("p",{className:"description"},I18n.t("recommenders.modules.looking_for_jump_back_in_promo.description")),e.createElement("div",{className:"button_container"},e.createElement(n.b,{className:"flat_btn outline_btn slim",text:I18n.t("recommenders.modules.looking_for_jump_back_in_promo.find_out_more"),onClick:this.fetch_reading_history,disabled:this.state.loading})))}}Scribd.addComponent("Recommenders.Modules.LookingForJumpBackInPromo",i)}).call(this,r(0))},26:function(e,t,r){"use strict";t.a={add:function(e){return $.ajax({type:"POST",dataType:"json",data:{id:e},url:"/saved/add"})},markAsFinished:function(e){return $.ajax({type:"POST",dataType:"json",data:{id:e,state:"finished_reading"},url:"/saved/finish"})},remove:function(e){return $.ajax({type:"DELETE",dataType:"json",data:{id:e},url:"/saved/remove"})},unmarkAsFinished:function(e){return $.ajax({type:"POST",dataType:"json",data:{id:e,state:"saved"},url:"/saved/finish"})}}},260:function(e,t,r){},261:function(e,t,r){var n={}.hasOwnProperty;r(262),Scribd.Recommenders.Modules.ProfileBanner=function(){function e(t,r){this.opts=null!=r?r:{},e.__super__.constructor.call(this,t,this.opts),this.setup_events()}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(e,Scribd.Recommenders.Modules.Base),e.prototype.setup_events=function(){var e;return e=this.container.find(".description_wrapper"),this.container.dispatch("click",{read_more:function(t){return e.toggleClass("show_full")},read_less:function(t){return e.toggleClass("show_full")}})},e}()},262:function(e,t,r){},263:function(e,t,r){},264:function(e,t,r){var n={}.hasOwnProperty;r(265),Scribd.Recommenders.Modules.PublicationList=function(){function e(e){this.container=$(e),this.setup_click_events()}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(e,Scribd.Recommenders.Modules.Base),e.prototype.setup_click_events=function(){return this.container.dispatch("click",{open_lightbox:function(e,t){return t.preventDefault(),Scribd.Lightbox.open("publications_dialog")}})},e}()},265:function(e,t,r){},266:function(e,t,r){},267:function(e,t,r){"use strict";(function(e){var t=r(128),n=r(22),i=r.n(n);class s extends t.a{constructor(e){super(e),this.bind_carousel_functions(),this.enclosing_class("auto__recommenders_modules_recommended_carousel")}bind_carousel_functions(){this.align_carousel_paddles=this.align_carousel_paddles.bind(this),this.get_forward_paddle_scroll_position=this.get_forward_paddle_scroll_position.bind(this),this.get_back_paddle_scroll_position=this.get_back_paddle_scroll_position.bind(this)}componentDidMount(){super.componentDidMount(),this.carousel_tracking=new i.a.Module(this.container,{compilation_id:this.props.compilation_id,widget_name:this.props.widget_name,module_id:this.props.module_id})}track_and_get_back_paddle_scroll_position(e){e.preventDefault(),this.carousel_tracking.track_module_click("ap"),this.get_back_paddle_scroll_position(e)}track_and_get_forward_paddle_scroll_position(e){e.preventDefault(),this.carousel_tracking.track_module_click("an"),this.get_forward_paddle_scroll_position(e)}render_back_paddle(){if(this.state.render_back_paddle)return e.createElement("a",{onClick:this.track_and_get_back_paddle_scroll_position,ref:e=>this.back_paddle=e,href:"#",className:"paddle page_left back_paddle"},e.createElement("span",{className:"paddle_icon icon left icon-ic_right_caret_alt"}),e.createElement("span",{className:"visually_hidden"},I18n.t("shared.carousels.carousel_previous")))}render_forward_paddle(){if(this.state.render_forward_paddle)return e.createElement("a",{href:"#",ref:e=>this.forward_paddle=e,className:"paddle page_right forward_paddle",onClick:this.track_and_get_forward_paddle_scroll_position},e.createElement("span",{className:"paddle_icon icon icon-ic_right_caret_alt"}),e.createElement("span",{className:"visually_hidden"},I18n.t("shared.carousels.carousel_next")))}}Scribd.addComponent("Recommenders.Modules.RecommendedCarousel",s)}).call(this,r(0))},268:function(e,t,r){(function(e){var t={}.hasOwnProperty;r(269),Scribd.Recommenders.Modules.SidebarDocumentCells=function(){function r(e,t){var n;this.opts=null!=t?t:{},r.__super__.constructor.call(this,e,this.opts),this.container.find("img[data-src]").one("inview",(n=this,function(e){return n.show_image(e.currentTarget)}))}return function(e,r){for(var n in r)t.call(r,n)&&(e[n]=r[n]);function i(){this.constructor=e}i.prototype=r.prototype,e.prototype=new i,e.__super__=r.prototype}(r,Scribd.Recommenders.Modules.Base),r.prototype.show_image=function(e){var t,r,n,i;if(r=(t=(e=$(e)).data()).src,n=t.srcset,r)return e.attr("src",""),e.on("load",(i=this,function(t){return i._load_queue||(i._load_queue=[]),i._load_queue.push(e[0]),i.flush_images()})),e.attr("src",r),e.attr("srcset",n),e.removeData("src"),e.removeData("srcset")},r.prototype.flush_images=function(){var t,r;return r=this,t=function(){var e;if(null!=(e=r._load_queue)?e.length:void 0)return $(r._load_queue).addClass("loaded"),r._load_queue=[]},this.flush_images=e.debounce(t,10),this.flush_images()},r}()}).call(this,r(12))},269:function(e,t,r){},27:function(e,t,r){"use strict";function n(e,t){let r=Scribd,n=e.split(/\/|\./),i=n.pop();n.length>0&&n.reduce((function(e,t){return void 0===e[t]&&(e[t]={}),r=e[t],r}),Scribd),r[i]&&null===Scribd.rails_env.match(/production/)&&console.warn("Whoops! "+e+" is already defined. Make sure you're not overwriting something!"),r[i]=t}r.r(t),r.d(t,"default",(function(){return n})),window.Scribd=window.Scribd||{},Scribd.addComponent=n},270:function(e,t,r){},271:function(e,t){Scribd.Recommenders=Scribd.Recommenders||{},Scribd.Recommenders.Modules=Scribd.Recommenders.Modules||{},Scribd.Recommenders.UI=Scribd.Recommenders.UI||{}},272:function(e,t,r){},273:function(e,t,r){},274:function(e,t,r){},275:function(e,t,r){},276:function(e,t,r){},277:function(e,t,r){},278:function(e,t,r){},279:function(e,t,r){},280:function(e,t,r){},281:function(e,t,r){},282:function(e,t,r){},283:function(e,t,r){},284:function(e,t,r){},285:function(e,t,r){},286:function(e,t,r){},287:function(e,t,r){},288:function(e,t,r){},289:function(e,t,r){},29:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(0),i=r.n(n),s=r(6),a=r(26),o=r(15),l=r(7),c=r(3);r(72);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(this,arguments)}function d(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class u extends s.a{constructor(e){super(e),d(this,"handleLightboxClose",(()=>{this.props.isSubscriber&&this.props.doc_id&&this.saveTitleForSubscriber(),Scribd.StackedLightbox.close()})),d(this,"handleSuccessMessage",(e=>{Scribd.Flasher.toast("success",e),this.handleLightboxClose()})),this.enclosing_class("auto__shared_native_apps_lightbox")}componentDidMount(){this.track("show")}track(e,t={}){let r=Object.assign({},t,{doc_id:this.props.doc_id,page:this.props.track_page});this.track_rats(`get_app_modal:${e}`,r)}saveTitleForSubscriber(){a.a.add(this.props.doc_id).always((()=>{this.props.handleDownloadToAppClick()}))}render_content(){let e=Object.assign({},this.props,{showKindle:!1});return i.a.createElement(o.a,{aria_labelled_by:"get_app_modal_header",stacked:!0,handle_click_close:()=>this.track("close:click"),className:"get_app_modal"},i.a.createElement(l.t,_({},e,{track:this.track,handleLightboxClose:this.handleLightboxClose,handleSuccessMessage:this.handleSuccessMessage})))}}Scribd.addComponent("NativeApps.Lightbox",u),u.defaultProps={document:{},handleDownloadToAppClick:c.noop,isSubscriber:!1}},290:function(e,t,r){},291:function(e,t,r){"use strict";r(103),r(245),r(137),r(248),r(195),r(238),r(239),r(252);var n=r(57),i=r(5),s=r.n(i),a=r(0),o=r.n(a);r(255);class l extends n.a{render(){return o.a.createElement("div",{className:s()("wrapper__recommenders_modules_hero_content_type_banner",n.a.WRAPPER_CLASS)},o.a.createElement("section",{className:"banner_wrapper single_banner"},o.a.createElement("div",{className:"hero_banner content_type_banner"},o.a.createElement("div",{className:"header_content content_type"},o.a.createElement("div",{className:`icon ${this.props.icon_class}`}),o.a.createElement("div",{className:"header_title"},o.a.createElement("h1",{className:"title"},this.props.title),o.a.createElement("span",{className:"sub_title"},this.props.subtitle)))),this.renderBreadcrumbs()))}}Scribd.addComponent("Recommenders.Modules.HeroContentTypeBanner",l);var c=r(2),_=(r(256),r(24));class d extends n.a{render_publication_header(){return o.a.createElement("a",{href:this.props.publication_url,"data-object_type":"publication","data-object_id":this.props.recommendation_id,"data-track":!0,"data-track_uuid":this.props.recommendation_uuid},o.a.createElement("img",{src:this.props.img_url,srcSet:this.props.retina_url,alt:this.props.publication_name}))}render(){return o.a.createElement("div",{className:s()("wrapper__recommenders_modules_hero_publication_banner",n.a.WRAPPER_CLASS)},o.a.createElement("div",{className:"banner_wrapper single_banner"},o.a.createElement("div",{className:"hero_banner"},o.a.createElement("div",{className:"header_content publication"},this.props.v2_plans_enabled&&this.props.is_unlimited_title?o.a.createElement(_.a,{className:"content_label",label:c.default.t("shared.plans.unlimited").toUpperCase(),size:_.b.SMALL,type:_.c.UNLIMITED}):null,o.a.createElement("h1",{className:"title publication"},this.render_publication_header()),o.a.createElement("em",{className:"sub_title publication"},this.props.subtitle)))))}}d.defaultProps={v2_plans_enabled:!1},Scribd.addComponent("Recommenders.Modules.HeroPublicationBanner",d);r(257),r(259),r(261),r(234),r(264),r(240),r(267);var u=r(94),p=(r(268),r(1)),h=r.n(p),m=(r(270),r(40));class f extends u.a{constructor(e){super(e),this.enclosing_class("auto__recommenders_modules_trending_now")}static get propTypes(){return Object.assign({},super.propTypes,{title:h.a.string.isRequired,items:h.a.arrayOf(h.a.object).isRequired,rec_uuids:h.a.arrayOf(h.a.string).isRequired})}componentDidUpdate(e){this.props.items!==e.items&&super.instantiate_tracking()}render_cell(e,t){const{rec_uuids:r}=this.props,{book_preview_url:n,image_url:i,retina_image_url:a,short_title:l,description:c,open_in_reader:_,reader_url:d,editorial_title:u,type:p}=e,h={alt_text:l,aria_label_text:p,image_url:i,lazy_load:!1,retina_image_url:a};return o.a.createElement("li",{className:s()("trending_cell",{is_audiobook:"audiobook"===p}),key:t,"data-track":!0,"data-track_uuid":r[t]},o.a.createElement("a",{href:_?d:n,className:s()("cell_link",{book_link:!_})},o.a.createElement(m.a,h),o.a.createElement("div",{className:"title_description"},o.a.createElement("div",{className:"list_name"},o.a.createElement("span",null,u)),o.a.createElement("div",null,o.a.createElement("h3",{className:"title"},l)),o.a.createElement("div",null,o.a.createElement("p",{className:"description"},c)))))}render_cells(){return o.a.createElement("ul",{className:"trending_cells"},this.props.items.map(((e,t)=>this.render_cell(e,t))))}render_content(){return o.a.createElement("div",{className:"trending_now_container"},o.a.createElement("h2",{className:"title"},this.props.title),this.render_cells())}}Scribd.addComponent("Recommenders.Modules.TrendingNow",f);r(271),r(208),r(38),r(128),r(223),r(242),r(58),r(243),r(272),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(280),r(281),r(282),r(237),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(290)},338:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>e.startsWith("data:")?e:"https://s-f.scribdassets.com"+e},35:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(14);const i=r.n(n)()({loader:()=>Promise.all([r.e(3),r.e(7),r.e(12),r.e(13),r.e(14),r.e(15),r.e(98)]).then(r.bind(null,2320)),loading:()=>null});Scribd.addComponent("AccountCreation",i);var s=i},37:function(e,t,r){e.exports=r(13)(2)},38:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return _}));var n=r(5),i=r.n(n),s=r(0),a=r.n(s),o=(r(87),r(6)),l=r(7);function c(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class _ extends o.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_button_menu"),this.state={menu_open:this.props.is_open||!1,position:""}}static close_all(e=null){for(let t of _.instances)t!==e&&t.hide_menu()}component_classes(){return"button_menu_container"}componentDidMount(){_.instances.push(this),$(document.body).on("click",this.handle_body_click)}componentWillUnmount(){const{instances:e}=_;$(document.body).off("click",this.handle_body_click),e.splice(e.indexOf(this),1)}componentDidUpdate(e,t){const r=this.get_position();t.position!==r&&this.setState({position:r}),this.props.is_open!==e.is_open&&this.props.is_open!==this.state.menu_open&&this.setState({menu_open:this.props.is_open}),Scribd.using_keyboard&&(this.state.menu_open&&!t.menu_open?$(this.get_buttons()[0]).focus():!this.state.menu_open&&t.menu_open&&($(this.container).find("[aria-haspopup]").focus(),"function"==typeof this.props.hide_tooltip&&this.props.hide_tooltip()))}get_buttons(){return $(this.container).focusable_children().not(".menu_handle")}handle_body_click(e){if(!$(e.target).closest(".button_menu_container").length)return _.close_all()}handle_key_down(e){if(!this.state.menu_open)return;const t=this.get_buttons(),r=t[0],n=t[t.length-1],i=t.index(document.activeElement);switch(e.keyCode){case 27:return this.hide_menu();case 40:e.preventDefault(),n===document.activeElement?r.focus():t[i+1].focus();break;case 38:e.preventDefault(),r===document.activeElement?n.focus():t[i-1].focus();break;case 9:e.shiftKey?(e.preventDefault(),r===document.activeElement?this.hide_menu():t[i-1].focus()):n===document.activeElement&&this.hide_menu()}}handle_close_btn(e){e.preventDefault(),this.hide_menu()}handle_container_click(){this.props.autoclose&&this.toggle_visible()}get_position(){if(!this.state.menu_open)return;if(null!=this.props.force_position)return this.props.force_position;const e=this.container.querySelectorAll(".button_menu")[0],t=e.getBoundingClientRect();return`${window.innerWeight-t.right>e.offsetWidth?"right":"left"} ${window.innerHeight-t.bottom>e.offsetHeight?"bottom":"top"}`}toggle_visible(e){this.state.menu_open?this.hide_menu(e):this.show_menu(e)}show_menu(e){if(_.close_all(this),!this.state.menu_open)return"function"==typeof this.props.on_show&&this.props.on_show(),this.setState({menu_open:!0},(()=>{"function"==typeof e&&e()}))}hide_menu(e){if(this.state.menu_open)return"function"==typeof this.props.on_hide&&this.props.on_hide(),this.setState({menu_open:!1,current_focus:0},(()=>{"function"==typeof e&&e()}))}get_aria_and_data_props(e){return{aria_props:{...e.aria_props,expanded:this.state.menu_open,haspopup:!0},data_props:{button:!0}}}render_button(){const e=Object.assign({},this.props.button),t=e.props.onClick;if(this.props.skip_aria_and_data_props)e.props={...e.props};else{const{aria_props:t,data_props:r}=this.get_aria_and_data_props(e.props);e.props={...e.props,aria_props:t,data_props:r}}return e.props.className=i()(e.props.className,"menu_handle"),e.props.onClick=e=>{e.preventDefault(),e.stopPropagation(),this.toggle_visible((()=>{Scribd.using_keyboard&&this.container.querySelectorAll(".button_menu")[0].focus()})),t&&t(e,this.state.menu_open)},e}render_arrow(){if(this.props.has_arrow)return a.a.createElement("div",{className:"button_menu_arrow","aria-hidden":"true"})}render_menu(){if(!this.state.menu_open)return;const e=this.props.no_fullscreen;return a.a.createElement("div",{onKeyDown:this.handle_key_down,className:i()("button_menu",this.state.position,this.props.extra_classes,{no_fullscreen:e})},this.render_arrow(),a.a.createElement(l.Z,{href:"#",className:"close_btn icon_btn",onClick:this.handle_close_btn},a.a.createElement("span",{className:"icon-ic_close","aria-hidden":"true"},a.a.createElement("span",{className:"visually_hidden"},I18n.t("shared.react.button_menu.close_menu")))),this.props.menu)}render_content(){return a.a.createElement("div",{onClick:this.handle_container_click},this.render_button(),this.render_menu())}}c(_,"defaultProps",{autoclose:!0,no_fullscreen:!1,has_arrow:!0,skip_aria_and_data_props:!1}),c(_,"instances",[]),Scribd.addComponent("Shared.React.ButtonMenu",_)},391:function(e,t,r){var n=function(e,t){return function(){return e.apply(t,arguments)}};r(392),Scribd.SharingButtons=function(){var e;function t(e,t){var r;this.opts=t,this.share_pinterest=n(this.share_pinterest,this),this.share_twitter=n(this.share_twitter,this),this.share_facebook=n(this.share_facebook,this),this.share_linkedin=n(this.share_linkedin,this),this.container=$(e),this.container.dispatch("click",{share_facebook_btn:this.share_facebook,share_twitter_btn:this.share_twitter,share_pinterest_btn:this.share_pinterest,share_linkedin_btn:this.share_linkedin}),this.container.dispatch("keypress",{share_facebook_btn:this.share_facebook,share_linkedin_btn:this.share_linkedin,share_pinterest_btn:this.share_pinterest,share_twitter_btn:this.share_twitter}),this.container.on("click",".email a, .share_email_btn",(r=this,function(e){var t;r.trigger_share("email"),"function"==typeof(t=r.opts).click_fn&&t.click_fn("email")}))}return e=function(e,t,r){var n;return null==t&&(t=500),null==r&&(r=450),"function"==typeof(n=window.open(e,"","width="+t+",height="+r+",resizable=1,scrollbars=1")).focus?n.focus():void 0},t.prototype.isNotEnterKeyPress=function(e){return"keypress"===e.type&&13!==e.keyCode},t.prototype.trigger_share=function(e){return this.container.trigger("scribd:share:"+e),this.container.trigger("scribd:share",[e])},t.prototype.share_linkedin=function(t,r){var n;return this.isNotEnterKeyPress(r)?null:(this.trigger_share("linkedin"),e("http://www.linkedin.com/shareArticle?"+$.param({title:this.opts.title,url:this.opts.url,source:"Scribd",summary:this.opts.description&&Scribd.truncate(this.opts.description)})),"function"==typeof(n=this.opts).click_fn?n.click_fn("linkedin"):void 0)},t.prototype.share_facebook=function(e,t){var r;if(this.isNotEnterKeyPress(t))return null;if(this.trigger_share("facebook"),"share"===this.opts.facebook_share_type)FB.ui({method:"share",href:this.opts.url,display:"popup"});else FB.ui({method:"feed",name:this.opts.title,link:this.opts.url,picture:this.opts.thumbnail_url,display:"popup"});return"function"==typeof(r=this.opts).click_fn?r.click_fn("facebook"):void 0},t.prototype.share_twitter=function(t,r){var n,i;return this.isNotEnterKeyPress(r)?null:(this.trigger_share("twitter"),i=t.data("text")||this.opts.twitter_message,e("https://twitter.com/share?"+$.param({text:i,url:this.opts.url,original_referer:this.opts.url})),"function"==typeof(n=this.opts).click_fn?n.click_fn("twitter"):void 0)},t.prototype.share_pinterest=function(t,r){var n,i;return this.isNotEnterKeyPress(r)?null:(this.trigger_share("pinterest"),i=this.opts.message||this.opts.title+" on Scribd",e("http://www.pinterest.com/pin/create/button/?"+$.param({url:this.opts.url,media:this.opts.thumbnail_url,description:i})),"function"==typeof(n=this.opts).click_fn?n.click_fn("pinterest"):void 0)},t}()},392:function(e,t,r){},40:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(5),i=r.n(n),s=r(0),a=r.n(s),o=r(6);r(211);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}class c extends o.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_document_image"),this.state={loaded:!1}}component_classes(e=""){return i()(e,"react_document_image")}componentDidMount(){if(this.props.lazy_load&&!this.props.use_in_carousel)return $(this.container).one("inview",this.handle_load)}componentWillUnmount(){if(this.props.lazy_load&&!this.props.use_in_carousel)return $(this.container).off("inview",this.handle_load)}handle_load(e,t){t&&this.setState({loaded:!0})}get_image_opts(){const e=this.retina_image_url();let t={"aria-label":this.props.aria_label_text,role:this.props.role};return!this.state.loaded&&this.props.lazy_load||this.props.use_in_carousel?{...t,"data-src":this.props.image_url,"data-srcset":e}:{...t,className:"loaded",src:this.props.image_url,srcSet:e}}retina_image_url(){return this.props.retina_image_url?`${this.props.retina_image_url} 2x`:""}render_content(){return a.a.createElement("img",l({},this.get_image_opts(),{alt:this.props.alt_text}))}}},42:function(e,t,r){"use strict";r.d(t,"c",(function(){return i})),r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return a}));var n=r(2);const i={get LABEL(){return n.default.t("shared.react.upvotes.useful")},get USER_UPVOTED_HIDDEN(){return n.default.t("shared.react.upvotes.upvotes_you_marked_this_as_useful")},get USER_NOT_UPVOTED_HIDDEN(){return n.default.t("shared.react.upvotes.up_votes_mark_as_useful")}},s={get LABEL(){return n.default.t("shared.react.upvotes.not_useful")},get USER_DOWNOVOTED_HIDDEN(){return n.default.t("shared.react.upvotes.down_votes_you_marked_this_as_not_useful")},get USER_NOT_DOWNOVOTED_HIDDEN(){return n.default.t("shared.react.upvotes.down_votes_mark_as_not_useful")}},a={get MARKED_AS_UPVOTED(){return n.default.t("shared.react.upvotes.document_is_marked_as_useful")},get MARKED_AS_DOWNVOTED(){return n.default.t("shared.react.upvotes.document_is_marked_as_not_useful")}}},45:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(3);const i=e=>{let t=document.createElement("script");return e.path&&(t.src=e.path),e.crossorigin&&(t.crossOrigin=e.crossorigin),e.integrity&&(t.integrity=e.integrity),e.content&&(t.innerHTML=e.content),e.id&&(t.id=e.id),e.defer?t.defer=1:e.async&&(t.async=1),e.onload&&(t.onload=e.onload),(e.element||document.head).appendChild(t)},s=e=>{const t=window.Scribd&&window.Scribd.Sentry;if(!t)return;const{disabled:r,dsn:s,environment:a,page:o,release:l}=t;if(r)return;const c={async:!0,crossorigin:"anonymous",id:"sentry_rewriteframe_script_tag",path:"https://browser.sentry-cdn.com/7.19.0/rewriteframes.min.js",onload:()=>{window.Sentry.init({allowUrls:[/^https?:\/\/(\w+\.)*scribd\.com/,/^https?:\/\/(\w+\.)*everand\.com/,/^https?:\/\/.*\.scribdassets\.com/],ignoreErrors:["AbortError"],dsn:s,environment:a,release:l,integrations:[new window.Sentry.Integrations.RewriteFrames({iteratee:e=>(e.filename&&(/embeds\/\d+\/content/.test(e.filename)?e.module="embeds/ID/content":/read\/\d+\/(\w|-)+/.test(e.filename)?e.module="read/ID/SLUG":/audiobook\/\d+\/(\w|-)+/.test(e.filename)?e.module="audiobook/ID/SLUG":/document\/\d+\/(\w|-)+/.test(e.filename)?e.module="document/ID/SLUG":/fullscreen\/\d+/.test(e.filename)?e.module="fullscreen/ID":/\w+\/pages\/\d+/.test(e.filename)?e.module="SHA/pages/N":/webpack\/doc_page\/init.\w+.js/.test(e.filename)?e.module="webpack/doc_page/init.SHA.js":/webpack\/doc_page\/app.\w+.js/.test(e.filename)&&(e.module="webpack/doc_page/app.SHA.js")),e)})]}),Object(n.configurePage)(o),Object(n.configureBrand)(e),Object(n.reportEnqueuedErrorsAndMessages)()}};return i({async:!0,crossorigin:"anonymous",id:"sentry_script_tag",integrity:"sha384-ztBHD5Kyf+YJqkbZijnUhyS5dYdQDCEfB2QjYao1rVJ1qBpQn+WMbafstDcVTHnB",path:"https://browser.sentry-cdn.com/7.19.0/bundle.min.js",onload:()=>{i(c)}})}},47:function(e,t,r){(function(e,t){var n,i,s;i=r(73).default,n=r(66).default,(s=window.Scribd).Flasher=function(){function r(){}return r.prototype.toast_node=null,r.prototype.mount_node=function(e){return $("<div />",{role:"alert"}).appendTo(e)[0]},r.prototype.bind_lightbox_close=e.once((function(){return $(document.body).on("Scribd:lightbox:closed Scribd:stacked_lightbox:closed",(function(){if(!s.Lightbox.current_open)return $(r.lightbox_container()).find(".flash").each((function(){return ReactDOM.unmountComponentAtNode(this.parentElement)}))}))})),r.global_container=function(){return $("#flash_container")[0]},r.lightbox_container=function(){return $("#lightbox_flash_container")[0]},r.toast=function(e,r,n){var s,a,o,l,c,_,d,u;return null==n&&(n={}),s=null!=n.dismiss_speed?n.dismiss_speed:(l=60*(n.raw?$("<div />",{html:r}).text().length:r.length),l=Math.max(l,4e3),Math.min(l,11e3)),a=t.createElement(i,{content:r,type:e,raw:null!=(c=n.raw)&&c,dismiss_speed:s,animation_speed:null!=(_=n.animation_speed)?_:500,class_name:null!=(d=n.class_name)?d:""}),o=null!=(u=this.toast_node)?u:this.prototype.mount_node(this.global_container()),ReactDOM.unmountComponentAtNode(o),ReactDOM.render(a,o)},r.build_standard=function(e,r,i){var s,a,o,l,c,_;return null==i&&(i={}),t.createElement(n,{content:r,render_content:i.render_content,type:e,raw:null!=(s=i.raw)&&s,user_dismiss:null==(a=i.user_dismiss)||a,animation_speed:null!=(o=i.animation_speed)?o:250,class_name:null!=(l=i.class_name)?l:"",should_focus:null!=(c=i.should_focus)&&c,full_border:null!=(_=i.full_border)&&_,handle_close:i.handle_close})},r.standard=function(e,t,r){var n,i,a;return null==r&&(r={}),n=s.StackedLightbox.instances[0]||s.Lightbox.current_open?this.lightbox_container():this.global_container(),r.container&&(n=r.container),i=this.build_standard(e,t,r),(a=this.prototype.mount_node(n)).getBoundingClientRect().top>$(window).height()||$(n).hasClass("fixed")?ReactDOM.render(i,a):(n=s.Lightbox.current_open?$("#lightbox_area"):document.body,$(n).animate({scrollTop:0},"slow",(function(){return ReactDOM.render(i,a)}))),this.prototype.bind_lightbox_close()},r}()}).call(this,r(12),r(0))},48:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return b}));var n=r(5),i=r.n(n),s=r(2),a=r(0),o=r.n(a),l=r(4),c=r(7),_=r(3),d=r(6),u=r(69),p=r(61),h=r(15);r(188);class m extends d.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_lists_modals_delete_item_in_list"),this.state={selected:!1}}componentDidMount(){return $(this.container).on("Scribd:lightbox:closed",(()=>{this.handle_loading(!1)}))}handle_loading(e){"function"==typeof this.props.on_loading&&this.props.on_loading(e)}handle_checked(e){e.persist(),this.setState({selected:e.target.checked},(()=>{new CookieJar({expires:""}).put("library:confirm_delete_item_in_list",!e.target.checked)}))}handle_cancel_button_click(e){e.preventDefault(),Scribd.StackedLightbox.close(),this.handle_loading(!1)}handle_confirm_click(e){e.preventDefault(),Scribd.StackedLightbox.close(),"function"==typeof this.props.on_confirm&&this.props.on_confirm(),this.handle_loading(!1)}render_content(){return o.a.createElement(h.a,{stacked:!0,title:I18n.t("shared.react.modals.delete_item_in_list.this_title_is_also_in_a")},this.render_note(),this.render_form())}render_note(){return o.a.createElement("div",{className:"note"},I18n.t("shared.react.modals.delete_item_in_list.removing_from_saved_will_also_delete"))}render_form(){return o.a.createElement("form",null,o.a.createElement(p.a,null,o.a.createElement(c.j,{name:"confirm_delete",labelText:I18n.t("shared.react.modals.delete_item_in_list.do_not_ask_me_again"),selected:this.state.selected,onChange:this.handle_checked})),this.render_actions())}render_actions(){return o.a.createElement("div",{className:"actions"},o.a.createElement(c.Z,{className:"text_btn cancel_btn",onClick:this.handle_cancel_button_click,type:"button"},I18n.t("shared.react.modals.delete_item_in_list.cancel")),o.a.createElement(c.Z,{type:"button",className:"delete_btn",onClick:this.handle_confirm_click},I18n.t("shared.react.modals.delete_item_in_list.delete")))}}Scribd.addComponent("Shared.React.Lists.Modals.DeleteItemInList",m);var f=r(26);r(189);function g(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class b extends d.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_save_button"),this.state={item:this.props.item,loading:!1},this.set_loading=this.set_loading.bind(this),this.handle_update_done=this.handle_update_done.bind(this),this.handle_click=this.handle_click.bind(this)}component_classes(){return i()(this.props.classes,"save_button",{with_icon:this.props.show_icon})}componentWillReceiveProps(e){e.item!==this.props.item&&this.setState({item:e.item}),e.loading!==this.state.loading&&this.set_loading(e.loading)}componentDidMount(){Object(_.getCookie)(b.COOKIE_NAME)||Object(_.setCookie)(b.COOKIE_NAME,!0)}should_confirm_delete(){return"true"===Object(_.getCookie)(b.COOKIE_NAME)}set_loading(e){this.props.in_menu||this.setState({loading:e}),this.props.on_loading&&this.props.on_loading(e)}set_in_library_state(e){this.props.in_menu||this.setState({item:Object.assign({},this.state.item,{in_library:e})})}get_tooltip_text(){if(!this.props.show_tooltip)return;let e;return this.state.item.in_library?(e=s.default.t("shared.react.save_button.remove_from_saved_cap"),this.props.cta_remove||e):(e=s.default.t("shared.react.save_button.save_for_later_cap"),this.props.cta_save||e)}manual_clamp(e=""){return e&&e.length>150?`${e.slice(0,150)}…`:e}get_short_title(){return this.state.item.short_title||this.manual_clamp(this.state.item.title)}get_save_cta(){return this.props.cta_save?this.props.cta_save:s.default.t("shared.react.save_button.save_for_later_cap")}get_remove_cta(){return this.props.cta_remove?this.props.cta_remove:s.default.t("shared.react.save_button.remove_from_saved_cap")}get_cta_text(){if(this.props.show_text)return this.state.item.in_library?this.get_remove_cta():this.get_save_cta()}get_aria_text(){return this.state.item.in_library?s.default.t("shared.react.save_button.remove_short_title_from_saved",{short_title:this.get_short_title()}):s.default.t("shared.react.save_button.save_short_title_for_later",{short_title:this.get_short_title()})}get_save_icon_class_name(){const e=this.props.use_thick_icon?"2px":"1px";return`icon icon-ic_${this.state.item.in_library?"saved":"save"}_for_later_${e}`}handle_xhr_fail(e){"function"==typeof this.props.on_error?this.props.on_error(this.state.item.id):Scribd.Flasher.standard("error",e)}handle_add_success(){this.set_in_library_state(!0),this.props.on_save&&this.props.on_save(this.state.item.id)}handle_add_failure(){this.set_in_library_state(!1),this.handle_xhr_fail(s.default.t("shared.react.save_button.failed_to_save_title"))}handle_remove_success(e,t){this.set_in_library_state(!1),this.props.on_remove&&this.props.on_remove(e,t)}handle_remove_failure(){this.set_in_library_state(!0),this.handle_xhr_fail(s.default.t("shared.react.save_button.failed_to_remove_title")),this.set_loading(!1)}handle_update_done(){this.set_loading(!1)}handle_update(){this.state.item.in_library?this.handle_remove_from_saved():this.handle_add_to_saved()}handle_remove_from_saved(e){f.a.remove(this.state.item.id).done((()=>this.handle_remove_success(this.state.item.id,e))).fail(this.handle_remove_failure).always(this.handle_update_done)}handle_add_to_saved(){f.a.add(this.state.item.id).done(this.handle_add_success).fail(this.handle_add_failure).always(this.handle_update_done)}open_delete_confirmation_modal(e){e.collection_ids.length?(this.set_loading(!1),Scribd.Lightbox.open_react("delete_item_in_list",o.a.createElement(m,{on_confirm:()=>{this.handle_remove_from_saved(e.collection_ids)},on_loading:this.set_loading}))):this.handle_update()}handle_save_or_remove(){this.set_loading(!0),Scribd.kill_tooltips(),this.state.item.in_library&&this.should_confirm_delete()?u.default.collectionsContainingDocument(this.state.item.id).done((e=>this.open_delete_confirmation_modal(e))).fail(this.handle_remove_failure):this.handle_update()}handle_click(e){this.props.on_click&&this.props.on_click(e),Object(_.trackEvent)("library_btn:add_to_library:click",{doc_id:this.state.item.id,action:this.state.item.in_library?"remove":"add"}),Scribd.with_login(this.loginParams(),this.handle_save_or_remove)}loginParams(){const e={oauthSignupUrl:this.props.oauthSignupUrl,trackingData:{loc:"add_to_library"},userAction:l.ACCOUNT_CREATION.USER_ACTIONS.SAVE};return Scribd.logged_in||(e.loginParams={add_to_library:this.state.item.id}),e}render_icon(){if(this.props.show_icon)return o.a.createElement("span",{className:this.get_save_icon_class_name(),"aria-hidden":"true",key:"icon"})}render_aria_span(){return o.a.createElement("span",{className:"visually_hidden"},this.get_aria_text())}render_content(){const{addSavedClass:e,"data-e2e":t,text_btn:r,show_text:n}=this.props;return o.a.createElement(c.p,{type:"button",className:i()("edit_saved_btn flat_btn",{loading:this.state.loading,disabled:this.state.loading,text_btn:r,icon_only:!n,saved:this.state.item.in_library&&e}),onClick:this.handle_click,"data-e2e":t,"data-tooltip":this.get_tooltip_text(),"data-label":this.get_tooltip_text(),"aria-label":this.get_aria_text()},this.render_icon(),this.get_cta_text(),this.render_aria_span())}}g(b,"COOKIE_NAME","library:confirm_delete_item_in_list"),g(b,"defaultProps",{cta_remove:"",cta_save:"","data-e2e":null,show_icon:!0,show_text:!0,show_tooltip:!0,text_btn:!0,use_thick_icon:!1}),Scribd.addComponent("Shared.React.SaveButton",b)},5:function(e,t,r){e.exports=r(13)(17)},55:function(e,t,r){(function(t){var n,i,s,a,o,l,c;r(118),r(63),r(62),r(64),r(65),r(30),o=r(27).default,l=r(56).default,n=r(3).AndroidJsBridge,s=r(22),c=r(113).default,(a=a||{}).UI=a.UI||{},o("UI.tabbing_user",!1),o("UI.backwards_tab",!1),o("UI.tabbing_selector","a:visible, input:visible, button:visible"),(i=function(){function e(r,n){var i;this.container=r,this.opts=null!=n?n:{},t.defer((i=this,function(){var r;return e.carousels.push(i),i.container=$(i.container).data("carousel",i),i.container.addClass("on_first_page"),i.images_loaded=!i.container.data("lazy_images"),i.container.hasClass("cache_widget")&&(i.container=i.container.find(".carousel_widget")),i.carousel=i.container.find(".carousel"),i.scrolling=i.carousel.find(".carousel_scrolling"),r=i.check_items_inview,i.check_items_inview=t.debounce((function(){return r.apply(i)}),500),i.title=i.container.find(".carousel_title"),i.title_link=i.container.find(".title_link"),i.carousel_skip_link=i.container.find(i.carousel_skip_selector),i.container.on("scribd:reshape_carousel",(function(){return i.reshape()})),$(window).on("resize",t.debounce((function(){var t,r,n,i,s;for(s=[],r=0,n=(i=e.carousels).length;r<n;r++)t=i[r],s.push(t.reshape());return s}),500)),!1!==i.opts.tracking_module&&(i.tracking_module=new s.Module(i.container,{compilation_id:i.opts.compilation_id,widget_name:i.opts.widget_name,module_id:i.opts.module_id,on_tracking:function(e){i.tracking=e},on_in_view:function(){return i.check_items_inview()}})),i.setup_events(),i.setup_scrollbar(),i.setup_flags(),i.show_paddles(),i.reshape(),i.setup_viewport_scrolling(),i.enable_skip_links()}))}return e.prototype.anim_speed=200,e.prototype.easing="ease_in_out_cubic",e.prototype.images_loaded=!1,e.prototype.mobile_size=450,e.prototype.carousel_skip_selector=".carousel_skip_link, .skip_link",e.prototype.setup_viewport_scrolling=function(){var e,r,n,i,s,a,o,l,_,d,u;if(!this.images_loaded)return d=$(window),l=this.container.closest(".carousel_scroll_parent"),n=!1,l.length?(i=l,_=0,e=t.throttle((u=this,function(){return _=u.container.offset().top+l[0].scrollTop-l.offset().top-l.height()}),1e3,{trailing:!1}),r=function(t){return function(){var r;if(null!==(null!=(r=t.container[0])?r.offsetParent:void 0))return e(),l[0].scrollTop>_}}(this)):(i=d,_=null,r=function(e){return function(){var t;if(null!==(null!=(t=e.container[0])?t.offsetParent:void 0))return _||(_=e.container.offset().top),d.scrollTop()+d.height()>_||void 0}}(this)),s=function(e){return function(){if(n)return e.show_visible_images()}}(this),o=function(){return c()?(window.removeEventListener("scroll",a,{passive:!0}),i.off("resize",a)):i.off("scroll resize",a)},a=function(e){return function(){if(r())return n=!0,e.show_visible_images(),o()}}(this),d.on("resize",t.debounce(s,100)),c()?(i[0].addEventListener("scroll",a,{passive:!0}),i.on("resize",a)):i.on("scroll resize",a),t.defer(a)},e.prototype.setup_events=function(){var e;if(!this.opts.disable_click)return this.container.dispatch("click",{carousel_prev:(e=this,function(){var t;return e.on_interact(),e.scroll_items(-e.cells_to_scroll()),null!=(t=e.tracking_module)?t.track_module_click("ap"):void 0}),carousel_next:function(e){return function(){var t;return e.on_interact(),e.scroll_items(e.cells_to_scroll()),null!=(t=e.tracking_module)?t.track_module_click("an"):void 0}}(this),carousel_skip_link:function(e){return function(){var t;if((t=e.get_next_tabbed_element(e.container)).length)return t.hasClass("carousel_skip_link")&&t.css("display","inline-block"),t.focus(),!1}}(this),document_cell:function(e){return function(t,r){return $(r.target).trigger("scribd:doc_link_clicked"),e.send_android_bridge(t,r),"continue"}}(this)})},e.prototype.send_android_bridge=function(e,t){var r,i;if(r=e.data("object_id"),i=e.find(".under_title").text(),n.present())return t.preventDefault(),n.send("openDoc",r,i)},e.prototype.get_next_tabbed_element=function(e){var t,r;return(t=e.nextAll().find(a.UI.tabbing_selector+", "+this.carousel_skip_selector).first()).length?t:e.parent().length?(r=e.parent()).is(".lightbox")?$():this.get_next_tabbed_element(r):$()},e.prototype.enable_skip_links=t.once((function(){var e,t;return t=this,e=function(e){var r,n,i,s,o,l,c;switch(l=$(e.target),e.type){case"keydown":return 9===e.keyCode&&(a.UI.tabbing_user=!0),a.UI.backwards_tab=e.shiftKey,!0;case"click":return a.UI.tabbing_user=!1,!0;case"focusin":if(!a.UI.tabbing_user)return;for(s=0,o=(r=document.querySelectorAll(".auto__shared_carousels_carousel, .wrapper__carousel")).length;s<o;s++)if(n=r[s],i=$(n.querySelector(".carousel_skip_link, .skip_link")),c=$(n.querySelector(".title_link")),$.contains(n,l.get(0))){if(t.get_next_tabbed_element($(n)).length&&!i.is(":visible")){if(n.classList.add("has_skip_link"),i.css({display:"inline-block"}),a.Lightbox&&l.is(a.Lightbox.last_focused_element))return;a.UI.backwards_tab||(c.length?c.focus():i.focus())}}else n.classList.remove("has_skip_link"),i.hide()}},$(window).on("keydown.carousel_skip_link, click.carousel_skip_link, focusin.carousel_skip_link",e)})),e.prototype.setup_scrollbar=function(){var e,r;return e=t.debounce((r=this,function(e,t,n){return r.container.toggleClass("on_first_page",0===e),r.container.toggleClass("on_last_page",e+t===n)}),100),this.update_scrollbar=function(t){return function(){var r,n,i;return r=t.scroll_width(),i=t.scrolling.innerWidth(),n=t.scrolling.scrollLeft(),e(n,i,r)}}(this),this.scrolling.on("scroll",function(e){return function(){return e.on_interact(),e.update_scrollbar(),e.check_items_inview()}}(this)),this.update_scrollbar()},e.prototype.scroll_items=function(e){var t,r,n,i,s;if(0!==(s=this.cell_width())&&!this.scrolling.is(":animated")&&(t=this.scrolling.scrollLeft(),n=this.get_target(e),(r=this.scroll_width()-this.scrolling.innerWidth())-(n=Math.max(0,Math.min(n,r)))<15&&(n=r),n<15&&(n=0),t!==n))return i=Math.floor(this.anim_speed*Math.abs((t-n)/s)),this.scrolling.animate({scrollLeft:n},{duration:i,easing:"smoothstep"})},e.prototype.cells_to_scroll=function(){var e,t,r,n;return r=Math.min(this.scrolling.width(),window.innerWidth),(n=this.get_visible_cells(r))<=1.5?1:(e=Math.ceil(n),t=Math.abs(n-e),Math.abs(n-e+.5)>t?e:e-1)},e.prototype.get_visible_cells=function(e){var t,r,n,i,s;for(n=this.current_idx(),t=0,r=0;r<=e&&n<this.object_cells().length&&!(r+(s=$(this.object_cells()[n]).outerWidth(!0))>e);)r+=s,t++,n++;return i=Math.min(this.object_cells().length-1,n),t+(e-r)/$(this.object_cells()[i]).outerWidth(!0)},e.prototype.get_target=function(e){var t,r,n;return t=this.current_idx(),n=Math.max(t+e,0),r=this.object_cells().slice(0,n),Array.from(r).reduce((function(e,t){return e+$(t).outerWidth(!0)}),0)},e.prototype.current_idx=function(){var e,t,r;for(r=this.scrolling.scrollLeft(),t=0,e=0;e<r&&t<this.object_cells().length;)e+=$(this.object_cells()[t]).outerWidth(!0),t++;return t},e.prototype.cell_width=function(){return $(this.object_cells()[0]).outerWidth(!0)},e.prototype.object_cells=function(){return this.cells?this.cells:this.cells=this.carousel.find(".object_cell")},e.prototype.scroll_width=function(){var e;return(null!=(e=this.scrolling[0])?e.scrollWidth:void 0)||0},e.prototype.reshape=function(){var e,t;return e=this.scroll_width(),t=this.scrolling.innerWidth(),this.container.toggleClass("has_no_scrolling",e-t<10),"function"==typeof this.update_scrollbar?this.update_scrollbar():void 0},e.prototype.show_visible_images=function(){var e,t,r,n,i,s;if(!this.images_loaded){for(r=this.scrolling.innerWidth(),i=[],e=0,t=(n=this.carousel.find("img[data-src]")).length;e<t&&(s=n[e]).offsetParent&&$(s.offsetParent).position().left<r;e++)i.push(this.show_image($(s)));return i}},e.prototype.show_all_images=function(){var e,t,r,n,i;if(!this.images_loaded){for(this.images_loaded=!0,n=[],e=0,t=(r=this.carousel.find("img[data-src]")).length;e<t;e++)i=r[e],n.push(this.show_image($(i)));return n}},e.prototype.setup_flags=function(){return l(this.container)},e.prototype.flush_images=function(){var e,r;return r=this,e=function(){var e;if(null!=(e=r._load_queue)?e.length:void 0)return $(r._load_queue).addClass("loaded"),r._load_queue=[]},this.flush_images=t.debounce(e,10),this.flush_images()},e.prototype.show_image=function(e){var t,r,n,i;if(r=(t=(e=$(e)).data()).src,n=t.srcset,r)return e.attr("src",""),e.on("load",(i=this,function(t){return i._load_queue||(i._load_queue=[]),i._load_queue.push(e[0]),i.flush_images()})),e.attr("src",r),e.attr("srcset",n),e.removeData("src"),e.removeData("srcset")},e.prototype.show_paddles=function(e){return null==e&&(e=!0),this.container.toggleClass("paddles_visible",!!e)},e.prototype.on_interact=function(){return this.on_interact=function(){},this.show_all_images()},e.prototype.check_items_inview=function(){var e,t,r,n,i,a,o,l,c;if(null!=this.tracking){for(a=this.scrolling.innerWidth(),r=t=0,i=(l=this.container.find(".object_cell[data-track_uuid]")).length;t<i;r=++t)e=l[r],(e=$(e)).is(".visibility_tracked")||(n=e.position().left,n+=parseInt(e.css("marginLeft")),c=e.width(),n+50>=0&&n+c-50<=a&&(o=e.closest("[data-track_uuid]").data("track_uuid"),s.track_obj_view(this.tracking.view_id,o),e.addClass("visibility_tracked")));return null}},e}()).carousels=[],o("UI.Carousel",i),e.exports=i}).call(this,r(12))},56:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return n}));r(117);function n(e,t){null==t&&(t=".document_cell.has_flag");const r=[];for(let n of e.find(t).add(e.filter(t))){const e=$(n).find(".flag");let t=e.data("text");t?r.push(e.append(`<span>${t}</span>`)):r.push(void 0)}return r}},57:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n,i,s,a,o=r(0),l=r.n(o),c=r(7),_=r(22),d=r.n(_);r(254);class u extends l.a.Component{componentDidMount(){this.recommendation_tracking=new d.a.Module(this.container,{compilation_id:this.props.compilation_id,widget_name:this.props.widget_name,module_id:this.props.module_id,on_in_view:()=>{}})}renderBreadcrumbs(){if(this.props.crumbs)return l.a.createElement(c.d,{crumbs:this.props.crumbs,disableLastCrumb:!0})}render(){return l.a.createElement("div",{className:this.WRAPPER_CLASS},"Override")}}n=u,s="wrapper__recommenders_modules_hero_banner",(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i="WRAPPER_CLASS","string"))?a:a+"")in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s,u.defaultProps={crumbs:[]},Scribd.addComponent("Recommenders.Modules.HeroBanner",u)},58:function(e,t,r){},6:function(e,t,r){"use strict";var n=r(0),i=r.n(n);var s,a,o,l,c=r(3);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_.apply(this,arguments)}class d extends i.a.Component{constructor(e){super(e),this.bindMethodsToThis(),this.enclosing_class("auto__base_component"),this.name=this.constructor.name,this.element_uids={}}track_rats(e,t){Object(c.trackEvent)(e,t)}trigger(e,t){t?$(this.container).trigger(e,t):$(this.container).trigger(e)}uid(e=""){return this.props.uid_generator?this.props.uid_generator(e):(this.element_uids[e]||(this.element_uids[e]=function(e,t=""){return`${e}_${t}_${Math.floor(1e6*Math.random())}`}(this.name,e)),this.element_uids[e])}image_url(e){return`${Scribd.asset_host}/images/${e.trim().replace(/\/+/g,"/")}`}get_focusable_children(){if(!this.container)return[];const e=d.FOCUSABLE_CHILDREN.map((e=>e+":not(.visually_hidden)"));return Array.from(this.container.querySelectorAll(e.join(", ")))}enclosing_class(e=null){return this._enclosing_classes=this._enclosing_classes||[],e&&this._enclosing_classes.push(e),this._enclosing_classes.join(" ")}component_classes(e=""){return e}get_component_classname(){return`${this.enclosing_class()} ${this.component_classes()}`}getMethodNames(){const e=["bindMethodsToThis","componentDidMount","componentDidUpdate","componentWillMount","componentWillReceiveProps","componentWillUnmount","componentWillUpdate","constructor","render","shouldComponentUpdate"],t=Object.getOwnPropertyNames(this.constructor.prototype),r=[];for(let n of t){"function"==typeof this[n]&&-1===e.indexOf(n)&&r.push(n)}return r}bindMethodsToThis(){this.getMethodNames().forEach((e=>{this[e]=this[e].bind(this)}))}enclosing_tag(){return"div"}enclosing_element_args(){return{}}render_content(){"test"!==Scribd.rails_env&&console.log(`${this.constructor.name} needs render_content method instead of render for auto_encapsulation`)}render(){const e=this.enclosing_tag();return i.a.createElement(e,_({ref:e=>{this.container=e,this.props.node_ref&&this.props.node_ref(e)},className:this.get_component_classname()},this.enclosing_element_args()),this.render_content())}hook_tooltips(){Scribd.hook_tooltips($(this.container))}render_visually_hidden(e,t="span",r={}){return r.className?r.className=`${r.className} visually_hidden`:r.className="visually_hidden",i.a.createElement(t,r,e)}render_icon(e,t="",r="span"){let n=null;return t.length&&(n=this.render_visually_hidden(t)),i.a.createElement(r,{className:`icon icon-ic_${e}`,"aria-hidden":"true"},n)}}s=d,o=["button","[href]","input","select","textarea","[tabindex]:not([tabindex='-1'])"],(a="symbol"==typeof(l=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(a="FOCUSABLE_CHILDREN","string"))?l:l+"")in s?Object.defineProperty(s,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[a]=o,Scribd.addComponent("Shared.BaseComponent",d);t.a=d},60:function(e,t,r){(function(e){var t,n;r(89),n=function(e,t){var r,n,i,s,a,o;return null==t&&(t={}),t=$.extend({tooltip_container:"tooltip_container",template:Scribd.Tooltips.Default.template,position:Scribd.Tooltips.Default.position,sticky:!1},t),(s=$("<div class='"+t.tooltip_container+"'></div>").appendTo(e)).data("hover_count",0),r=function(e){return t.sticky?setTimeout((function(){if(0===s.data("hover_count"))return e()}),200):e()},n=function(){return s.empty()},o=Scribd.kill_tooltips,Scribd.kill_tooltips=function(){return"function"==typeof o&&o(),n()},i=function(e){var r,n,i,a,o,l,c;if(!e.is(".disabled")){if(o=e.data("tooltip_elm"),a=e.attr("data-label")||e.attr("aria-label")||e.attr("data-tooltip"),!o||a!==e.data("tooltip_elm_content")){if("{"===a[0]&&(a=JSON.parse(a)),$.isPlainObject(a))for(r in a=(c=a).default,c)if(l=c[r],e.is("."+r)){a=l;break}i=(null!=(n=Scribd.Tooltips[e.data("tooltip_template")])?n.template:void 0)||t.template,o=$(i({content:a})),e.data("tooltip_elm",o),e.data("tooltip_elm_content",a)}return o.appendTo(s),t.position(e,o),o.addClass("opaque")}},a=Scribd.is_mobile?"focusin focusout":"mouseenter mouseleave focusin focusout",t.sticky&&s.on(a,(function(e){var t;return t="mouseleave"===e.type||"focusout"===e.type?-1:1,"mouseleave"!==e.type&&"focusout"!==e.type||r(n),s.data("hover_count",s.data("hover_count")+t)})),e.on(a,"[data-tooltip]",(function(e){var t,n;return n=$(e.currentTarget),t="mouseleave"===e.type||"focusout"===e.type?-1:1,"mouseleave"===e.type||"focusout"===e.type?r((function(){var e;return null!=(e=n.data("tooltip_elm"))?e.removeClass("opaque").remove():void 0})):i(n),s.data("hover_count",s.data("hover_count")+t)})),e.on("scribd:update_tooltip","[data-tooltip]",(function(e,t){var r,n,s;if(r=$(e.currentTarget),t&&r.data("tooltip",t),s=!1,(n=r.data("tooltip_elm"))&&(s=0!==n.closest("body").length,n.removeClass("opaque").remove()),r.removeData("tooltip_elm"),s)return i(r)}))},(t=r(27).default)("Tooltips",{Fancy:{template:e.template('<div class="fancy_tip">\n <div class="tip_arrow sprite popup_arrow"></div>\n <div class="tip_inner" role="tooltip">\n {{& content }}\n </div>\n</div>'),position:function(e,t){var r;return r=e.offset(),t.css({left:Math.floor(r.left-t.outerWidth()/2+e.outerWidth()/2),top:Math.floor(r.top+12+e.outerHeight())})}},Default:{template:e.template('<div class="new_tip">\n <div class="tip_inner" role="tooltip">{{ content }}</div>\n</div>'),position:function(e,t){var r,n,i,s,a,o,l;return n=e.offset(),r=t.outerHeight(),s=t.outerWidth(),a=e.outerWidth(),o=n.left-(s-a)/2,(l=n.top-r-4)<0&&(l=n.top+e.outerHeight()+4),o=Math.max(2,o),o=Math.min($(window).width()-2-s,o),i=t.parent().offsetParent().offset(),t.css({left:o-i.left,top:l-i.top})}},Under:{position:function(e,t){var r,n,i,s;return n=e.offset(),r=t.height(),i=t.width(),s=e.width(),t.css({width:500,left:n.left+Math.floor((s-i)/2),top:r+4})}},Under2:{position:function(e,t){var r,n,i,s,a,o;return r=e.offset(),t.outerHeight(),i=t.outerWidth(),s=e.outerWidth(),a=r.left-(i-s)/2,o=r.top+20,n=t.parent().offsetParent().offset(),t.css({left:a-n.left,top:o-n.top})}},Unescaped:{template:e.template('<div class="new_tip">\n <div class="tip_inner" role="tooltip">\n {{& content }}\n </div>\n</div>')}}),t("hook_tooltips",n)}).call(this,r(12))},607:function(e,t,r){(function(e){var t,n;Scribd.addComponent("ReadingProgress.external_progress_notice_seen",!1),n=r(3).trackEvent,t=function(){function t(t){var r,n,i;(this.opts=null!=t?t:{},this.enabled())&&(this.notify_external_progress(null!=(r=Scribd.current_doc)?r.reading_progress:void 0),this.opts=e.extend(this.default_opts(),this.opts),this.get_ms=this.opts.throttle_get,this.post_ms=this.opts.throttle_post,this.url=null!=(n=Scribd.current_doc.reading_progress)?n.update_url:void 0,this.doc_id=Scribd.current_doc.id,this.failed_attempts=0,this.last_success=null,this.max_failures=100,this.offset=null,this.offset_type=null,this.percentage=null,this.credit_redeemed=!Scribd.current_doc.is_credit_restricted,this.is_preview=this.opts.preview_restricted,this.throttled_get_handler=e.throttle((i=this,function(){return i.get()}),this.get_ms,{leading:!0,trailing:!1}),this.throttled_post_handler=e.throttle(function(e){return function(){return e.post()}}(this),this.post_ms,{leading:!1,trailing:!0}),$(window).off(this.events.focus).on(this.events.focus,this.throttled_get_handler))}return t.prototype.events={focus:"focus.reading_progress",scroll:"scroll.reading_progress"},t.prototype.default_opts=function(){return{throttle_get:6e4,throttle_post:1e4,reading_progress_enabled:!0}},t.prototype.enabled=function(){return!!this.default_opts().reading_progress_enabled&&!!Scribd.logged_in},t.prototype.has_external_progress=function(e){return!!(null!=e?e.offset:void 0)&&(!e.from_current_device&&"browser"!==e.device_name)},t.prototype.external_progress_notification_message=function(e){return I18n.t("shared.reading_progress.base.we_ve_moved_you_to_where_you",{progress_device_name:e.device_name})},t.prototype.notify_external_progress=function(e){var t;if(this.has_external_progress(e)&&!Scribd.ReadingProgress.external_progress_notice_seen)return Scribd.ReadingProgress.external_progress_notice_seen=!0,this.create_flash_notice(this.external_progress_notification_message(e)),t=Scribd.current_doc.is_sheet_music?"sheet music":"book",n("reading_progress:progress_moved:show",{doc_id:Scribd.current_doc.id,destination_offset:e.offset,offset_type:e.offset_type,document_type:t})},t.prototype.create_flash_notice=function(e){return Scribd.Flasher.standard("notice",e)},t.prototype.update_external_progress=function(e){if(this.has_external_progress(e))return $(window).trigger("scribd:external_reading_progress",e)},t.prototype.check_credit_threshold=function(){},t.prototype.needs_credit_spend=function(e){if({credit_redeemed:this.credit_redeemed,is_preview:this.is_preview,credit_restricted:Scribd.current_doc.is_credit_restricted},!this.is_preview&&Scribd.current_user&&!this.credit_redeemed&&Scribd.current_doc.is_credit_restricted)return this.check_credit_threshold(e)},t.prototype.get_time_elapsed=function(){},t.prototype.get=function(){return this.get_progress()},t.prototype.get_progress=function(){return $.get(this.url,{doc_id:this.doc_id},(e=this,function(t){return e.update_external_progress(t.progress)}));var e},t.prototype.post=function(){var t,r,i;return r={doc_id:this.doc_id,time_in_millis:this.get_time_elapsed()},this.updated&&(r=e.extend({},r,{offset:this.offset,offset_type:this.offset_type,percentage:this.percentage,updated:this.updated})),t=Scribd.CSRF.with_token(r),$.post(this.url,t).done((i=this,function(e){return i.update_external_progress(e.progress),i.last_success=Date.now(),i.updated=!1,e.user?i.needs_credit_spend(e):window.location=i.opts.preview_url})).fail(function(e){return function(t){var r;if(e.failed_attempts>e.max_failures||e.failed_attempts++,!(e.failed_attempts>e.max_failures||1!==e.failed_attempts&&e.failed_attempts%10!=0))return n("reading_prog:post:fail",{doc_id:Scribd.current_doc.id,user_id:null!=(r=Scribd.current_user)?r.id:void 0,failed_attempts:e.failed_attempts,last_success:e.last_success})}}(this))},t.prototype.spend_a_credit=function(){return $.post(this.opts.pmp_document_purchases_url,{doc_id:this.doc_id}).done((e=this,function(t){return e.credit_redeemed=!0})).fail(function(e){return function(t){var r;if(e.failed_attempts>e.max_failures||e.failed_attempts++,n("reading_prog:spend:fail",{doc_id:Scribd.current_doc.id,user_id:null!=(r=Scribd.current_user)?r.id:void 0,failed_attempts:e.failed_attempts,last_success:e.last_success}),422===t.status&&"not_restricted"!==t.responseJSON.message)return $(document.body).trigger("reading_progress:past_preview_lightbox:show")}}(this));var e},t}(),Scribd.addComponent("ReadingProgress.Base",t)}).call(this,r(12))},61:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n,i,s,a,o=r(6),l=r(5),c=r.n(l),_=r(0),d=r.n(_);r(181);class u extends o.a{constructor(e){super(e),this.enclosing_class("auto__shared_react_forms_input_group")}render_content(){const{children:e,legend:t,horizontal:r}=this.props;return d.a.createElement("fieldset",{className:c()("input_group",{horizontal:r})},t?d.a.createElement("legend",null,t):null,d.a.Children.map(e,((e,t)=>d.a.cloneElement(e,{key:t}))))}}n=u,s={options:[],legend:"",horizontal:!1},(i="symbol"==typeof(a=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i="defaultProps","string"))?a:a+"")in n?Object.defineProperty(n,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[i]=s},62:function(e,t,r){},63:function(e,t,r){},637:function(e,t,r){"use strict";var n=r(338);r.d(t,"a",(function(){return n.a}))},64:function(e,t,r){},65:function(e,t,r){},66:function(e,t,r){"use strict";r.r(t);var n=r(14),i=r.n(n);t.default=i()({loader:()=>r.e(96).then(r.bind(null,132)),loading:()=>null})},67:function(e,t,r){e.exports={circularProgressContainer:"_2luU5v",progressOutlineRing:"_2tv_KX",progressFillRing:"_22qca6",svgContainer:"_1sdFo6"}},69:function(e,t,r){"use strict";r.r(t),t.default={addDocument:function(e,t){return $.ajax({url:`/user-document-collections/${e}/add-document`,type:"post",dataType:"json",data:{document_id:t}})},collectionsContainingDocument:function(e){return $.ajax({url:`/user-document-collections/collections-containing-document/${e}`,type:"get",dataType:"json"})},createCollection:function(e,t,r=null){return $.ajax({url:"/user-document-collections/",type:"post",dataType:"json",data:{name:e,privacy_type:t,document_id:r}})},deleteCollection:function(e){return $.ajax({url:`/user-document-collections/${e}`,type:"delete",dataType:"json"})},removeDocument:function(e,t){return $.ajax({url:`/user-document-collections/${e}/remove-document`,type:"delete",dataType:"json",data:{document_id:t}})},updateCollection:function(e,t,r,n){return $.ajax({url:`/user-document-collections/${e}`,type:"post",dataType:"json",data:{name:t,privacy_type:r,description:n}})}}},71:function(e,t,r){},72:function(e,t,r){},73:function(e,t,r){"use strict";r.r(t);var n=r(14),i=r.n(n);t.default=i()({loader:()=>r.e(92).then(r.bind(null,136)),loading:()=>null})},74:function(e,t,r){"use strict";var n=r(0),i=r.n(n),s=r(37),a=r.n(s),o=r(2),l=r(54),c=r(3),_=r(45),d=(r(143),r(144),r(145),r(5)),u=r.n(d),p=(r(139),r(172),r(140),r(141),r(146),r(147),r(148),r(149),r(150),r(151),r(152),r(153),r(154),r(155),r(156),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(173),r(121),r(174),r(142),r(166),r(30),r(175),r(176),r(177),r(178),r(179),r(27),r(167),r(180),r(71),r(76),r(77),r(78),r(79),r(80),r(81),r(82),r(58),r(168),r(7)),h=r(29);r(83);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},m.apply(this,arguments)}function f(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class g extends i.a.Component{constructor(e){super(e),f(this,"track",((e,t={})=>{let r=Object.assign({},t,{doc_id:this.props.doc_id,page:this.props.track_page});Object(c.trackRats)(`get_app_modal:${e}`,r)})),f(this,"handleOpenLightbox",(()=>{Scribd.Lightbox.open_react("get_app_modal",i.a.createElement(h.a,this.props)),this.track("show")}))}render(){return i.a.createElement(p.a,m({handleOpenLightbox:this.handleOpenLightbox},this.props))}}Scribd.addComponent("NativeApps.Buttons",g);r(75),r(47),r(84),r(86),r(60),r(90);r.p=window.Scribd.webpack_public_path,window.React=i.a,window.ReactDOM=a.a,window.i18next=o.default,window.I18n=o.default,window.dd=c.DatadogMetric,o.default.key=e=>e,window&&window.i18next_lng&&window.i18next_fallback&&(o.default.init({lng:window.i18next_lng,fallbackLng:window.i18next_fallback,debug:window.i18next_debug,interpolation:{prefix:"{{",suffix:"}}",escapeValue:!1,format:function(e,t,r){if("locale"===t&&(e||0===e))return e.toLocaleString(o.default.services.languageUtils.getLanguagePartFromCode(r))}},saveMissing:!0,returnEmptyString:!1,returnNull:!1,resources:window._translations}),o.default.on("missingKey",((e,t,r)=>{const n=`i18next missing translation for key: ${r} in language: ${e}`;Object(c.captureException)(new Error(n))})));const b=window.Scribd&&window.Scribd.Sentry,v=window.Scribd&&window.Scribd.Brand;b&&Object(_.a)(v),c.thirdPartyTags.optimizelyTag(v),c.thirdPartyTags.fullStoryTag(v),window.classNames=u.a,Object(l.h)({brand:v,page:"monolith"}),null!==window.navigator.userAgent.match(/MSIE|Trident/)&&document.getElementById("flash_container")&&Scribd.Flasher.standard("info",o.default.t("shared.ie11_notice_html"),{user_dismiss:!1,should_focus:!0,raw:!0})},75:function(e,t,r){(function(e){Scribd.UI||(Scribd.UI={}),Scribd.UI.SearchStorage=function(){function t(){}return t.prototype.search_data_key="search_data",t.prototype.max_search_terms=5,t.DEFAULT_DATA={terms:[],query_preferences:{}},t.prototype.read=function(){var e,t;return e=Scribd.UI.SearchStorage.DEFAULT_DATA,Scribd.with_local_storage((t=this,function(r){var n,i;return i=r.getItem(t.search_data_key),n=JSON.parse(i),Object.assign({},e,n)}))},t.prototype.current_unique_terms=function(){var t;return t=this.read().terms,t=e.uniq(t),t=e.compact(t)},t.prototype.save_terms=function(e){return Scribd.with_local_storage((t=this,function(r){var n;return n=Object.assign({},t.read(),{terms:e}),r.setItem(t.search_data_key,JSON.stringify(n))}));var t},t.prototype.clone=function(e){return e.slice(0)},t.prototype.move_existing_term_to_most_recent=function(e,t){var r,n;return n=(t=this.clone(t)).indexOf(e),r=t.splice(n,1)[0],t.unshift(r),t},t.prototype.insert_new_term=function(e,t){return(t=this.clone(t)).length>=this.max_search_terms&&(t=t.slice(0,this.max_search_terms-1)),t.unshift(e),t},t.prototype.save_history=function(e){var t,r;return 0===(null!=(t=(r=this.current_unique_terms())[0])?t.indexOf(e):void 0)?r[0]=e:r=r.includes(e)?this.move_existing_term_to_most_recent(e,r):this.insert_new_term(e,r),this.save_terms(r)},t.prototype.save_preferences=function(e,t){return Scribd.with_local_storage((r=this,function(n){var i,s;return(s=r.read().query_preferences)[e]=t,i=Object.assign(r.read(),{query_preferences:s}),n.setItem(r.search_data_key,JSON.stringify(i))}));var r},t}()}).call(this,r(12))},76:function(e,t,r){},77:function(e,t,r){},778:function(e,t,r){e.exports={wrapper:"_x0dCD",card:"_2CQpEW",title:"_1yiQxm",subtitle:"l0XO0t"}},78:function(e,t,r){},79:function(e,t,r){},80:function(e,t,r){},81:function(e,t,r){},82:function(e,t,r){},83:function(e,t,r){},84:function(e,t,r){var n;r(85),n=r(3).trackEvent,Scribd.Footer=function(){function e(e){var t,r;this.setup_events=(t=this.setup_events,r=this,function(){return t.apply(r,arguments)}),this.container=$(e),this.mouse_down=!1,this.back_to_top=this.container.find(".back_to_top_link"),this.container.one("inview",(function(){return n("footer:show")})),this.setup_events()}return e.prototype.setup_events=function(){var e;return this.container.dispatch("click",{back_to_top_link:(e=this,function(t){return e.scroll_to_top(t),"continue"})}),this.container.on("mousedown",function(e){return function(){return e.set_mouse_true()}}(this)),this.container.on("focusin",function(e){return function(){return e.check_for_tab_user()}}(this)),this.container.on("focusout",function(e){return function(){return e.hide_back_to_top()}}(this))},e.prototype.check_for_tab_user=function(){if(!this.mouse_down)return this.show_back_to_top()},e.prototype.set_mouse_true=function(){if(!this.back_to_top.is(":visible"))return this.mouse_down=!0},e.prototype.show_back_to_top=function(){if(!this.back_to_top.is(":visible"))return this.back_to_top.show().focus()},e.prototype.hide_back_to_top=function(){return setTimeout((e=this,function(){if(!$(document.activeElement).closest(e.container).length)return e.mouse_down=!1,e.back_to_top.hide()}),100);var e},e.prototype.scroll_to_top=function(e){return 0===$("#global_header").length?(e.preventDefault,$("h1").first().attr("tabIndex",-1).focus()):$("#global_header").attr("tabIndex",-1).focus(),window.scrollTo(0,0)},e}()},85:function(e,t,r){},86:function(e,t,r){"use strict";(function(e){var t=r(6),n=r(38),i=r(3);r(88);class s extends t.a{constructor(e){super(e),this.enclosing_class("auto__shared_navigation_language_footer_selector"),this.state={selected_language:e.current_language,menu_open:!1}}show_menu(){this.setState({menu_open:!0})}close_menu(){this.setState({menu_open:!1})}get_language_click(e){return()=>{Object(i.trackEvent)("language_picker:footer:language:click",{locale:e.lang,current_locale:this.props.current_language.lang})}}handle_button_click(){Object(i.trackEvent)("language_picker:footer:clicked",{current_locale:this.props.current_language.lang})}render_links(){const{languages:t}=this.props;return t.map((t=>e.createElement("li",{className:"item",key:`language_item-${t.lcid}`},e.createElement("a",{href:t.href,className:classNames("language_link",{selected:t.prefix===this.props.current_language.prefix}),lang:t.lcid,onClick:this.get_language_click(t)},t.name))))}render_menu(){return e.createElement("ul",{className:"language_list flex_col"},this.render_links())}render_btn(){const{current_language:t,extra_classes:r}=this.props;return e.createElement("a",{className:classNames("text_btn language_btn flex_row",r),href:"#language","aria-haspopup":"true","aria-expanded":this.state.menu_open,onClick:this.handle_button_click},e.createElement("span",{className:"name icon_button_text"},t.name),this.render_english_label(),e.createElement("span",{className:"visually_hidden",lang:t.prefix},I18n.t("shared.navigation.language.picker.change_language")))}render_english_label(){if("en"!==this.props.current_language.prefix)return e.createElement("span",{className:"visually_hidden",lang:"en"},"Change Language")}render_content(){return e.createElement(n.default,{button:this.render_btn(),menu:this.render_menu(),autoclose:!1,is_open:this.state.menu_open,on_hide:this.close_menu,on_show:this.show_menu,skip_aria_and_data_props:!0})}}Scribd.addComponent("Navigation.Language.Footer",s)}).call(this,r(0))},87:function(e,t,r){},88:function(e,t,r){},89:function(e,t,r){},90:function(e,t,r){(function(e){r(91),Scribd.RatsLog=function(){function t(t,r){this.opts=null!=r?r:{},this.container=$(t),this.log=this.container.find(".rats_log .contents"),this.filter=this.container.find(".filter_input"),this.template=e.template(this.container.find(".rats_log_row_template").html()),this.unread_events=0,this.is_open=!0,this.visibility_btn=this.container.find(".visibility_btn"),this.captured_events=[],this.setup_events(),this.hide()}return t.prototype.setup_events=function(){var t;return $(document.body).on("scribd:rats_event",(t=this,function(e,r,n){return t.rats_event($(e.target),r,n)})),this.container.dispatch("click",{open_log_btn:function(e){return function(t){return e.visibility_btn.hasClass("open_btn")?e.open():e.hide()}}(this),element:function(e){return function(t){return e.highlight_box(t.data("selector"))}}(this),clear_filter:function(e){return function(t){return e.filter.val(""),e.filter_events(!1)}}(this),unique_filter:function(e){return function(t){return e.filter_events(e.current_filter,e.unique_events())}}(this)}),this.filter.on("keydown",e.debounce(function(e){return function(t){return e.filter_events(e.filter.val())}}(this),100)),this.container.on("click",(function(e){return e.stopPropagation()})),$(window).on("keyup",function(e){return function(t){if(27===t.keyCode&&e.is_open)return e.hide()}}(this))},t.prototype.rats_event=function(e,t,r){var n,i;return this.unread_event(1),i={label:t,data:this.stringify(r),element:this.identify(e),idx:this.captured_events.length,uclassname:"rat_event_"+t+"_"+r.action+"_"+r.label},this.captured_events.push(i),!this.current_filter||this.current_filter&&this.matches(i,this.current_filter)?this.log.prepend(this.template(i)):(n=$(this.template(i)).hide(),this.log.prepend(n))},t.prototype.matches=function(t,r){var n,i,s,a,o,l,c,_,d;if(c=!1,a=!1,"-"===r.charAt(0)&&(r=r.substr(1),a=!0),r.indexOf(":")>-1)c=!((_=r.split(":")).length<2)&&(_[0]=e.str.trim(_[0]),_[1]=e.str.trim(_[1].toLowerCase()),null!=t.data&&t.data.replace(/\s/g,"").indexOf(_[0]+":"+_[1])>-1);else if("unique"===r){for(i=!1,s=o=0,l=(d=this.captured_events).length;o<l;s=++o)if((n=d[s]).category===t.category&&n.label===t.label&&n.data===t.data){i=!0;break}c=!i}else c=t.label.toLowerCase().indexOf(r)>-1;return a&&(c=!c),c},t.prototype.filter_events=function(t,r){var n,i,s,a,o,l,c,_,d,u,p;if(null==r&&(r=this.captured_events),e.isEmpty(t))return this.current_filter=!1,void this.container.find(".logged_event").show();for(this.current_filter=t,"unique"===t&&(r=this.unique_events(),t=""),a=o=0,_=(s=t.indexOf(",")>-1?t.split(","):[t]).length;o<_;a=++o)i=s[a],s[a]=e.str.trim(i.toLowerCase());for(p=[],a=l=0,d=r.length;l<d;a=++l)for(n=r[a],c=0,u=s.length;c<u;c++)i=s[c],this.matches(n,i)&&p.push(a);return this.update_visible(p),p},t.prototype.update_visible=function(t){var r,n,i,s,a,o,l;for(this.container.find(".logged_event").show(),l=[],i=s=0,a=(o=this.captured_events).length;s<a;i=++s)n=o[i],r=this.container.find(".event_"+n.idx),e.indexOf(t,i)>-1?l.push(r.show()):l.push(r.hide());return l},t.prototype.unique_events=function(){var e,t,r,n,i,s,a,o,l,c,_;for(_=[],n=i=0,a=(l=this.captured_events).length;i<a;n=++i){for(t=l[n],r=!1,s=0,o=_.length;s<o;s++)if(e=_[s],(c=this.captured_events[e]).category===t.category&&c.label===t.label&&c.data===t.data){r=!0;break}r||_.push(n)}return this.current_filter="unique",console.log("Of "+this.captured_events.length+" captured events, "+_.length+" were unique"),_},t.prototype.unread_event=function(e){return this.unread_events+=e,this.visibility_btn.text(this.unread_events)},t.prototype.read_event=function(e){return this.unread_events=Math.max(0,this.unread_events-e),this.visibility_btn.text(this.unread_events)},t.prototype.identify=function(e){return"."+e[0].className.split(" ")[0]},t.prototype.stringify=function(t,r){var n,i;return null==r&&(r=": "),function(){var s;for(n in s=[],t)i=t[n],e.isObject(i)?s.push(n+r+this.stringify(i)):s.push(n+r+i);return s}.call(this).join("\n")},t.prototype.hide=function(){return this.container.find(".rats_log").hide(),this.is_open=!1,this.visibility_btn.removeClass("close_btn icon_caret").addClass("open_btn icon-ic_arrow_small_left_alt "),this.read_event(this.unread_events),this.container.find(".new").removeClass("new")},t.prototype.open=function(){return this.container.find(".rats_log").show(),this.filter.focus(),this.is_open=!0,this.visibility_btn.removeClass("open_btn icon-ic_arrow_small_left_alt").addClass("close_btn icon-ic_right_caret_alt")},t.prototype.highlight_elm=function(e){var t,r;return(r=$(e)).length?(this.highlight_box||(t=$("<div></div>").css({position:"absolute",border:"3px solid #ff0",width:r.outerWidth(),height:r.outerHeight(),left:r.offset().left,top:r.offset().top}),this.highlight_box=t),$(document.body).append(this.highlight_box)):console.error("could not find "+e)},t}()}).call(this,r(12))},91:function(e,t,r){},93:function(e,t,r){"use strict";r.r(t),r.d(t,"async_render_lock_shock_roadblock",(function(){return l}));var n=r(14),i=r.n(n),s=r(0),a=r.n(s);r(30);const o=i()({loader:()=>r.e(99).then(r.bind(null,323)),loading:()=>null});function l(e){Scribd.Lightbox.open_react("lock_shock_roadblock",a.a.createElement(o,e))}Scribd.addComponent("Shared.React.AsyncLockShockRoadblockModalOpener",l)},94:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(6),i=r(22),s=r.n(i);class a extends n.a{constructor(e){super(e),this.enclosing_class("auto__recommenders_modules_recommended_component")}component_classes(){return this.props.widget_css_classes?this.props.widget_css_classes.join(" "):""}componentDidMount(){this.instantiate_tracking()}instantiate_tracking(){this.recommendation_tracking=new s.a.Module(this.container,{compilation_id:this.props.compilation_id,widget_name:this.props.widget_name,module_id:this.props.module_id,on_in_view:e=>{this.track_recommendations(e)}})}track_recommendations(e){$(this.container).find("[data-track_uuid]").each(((t,r)=>{$(r).one("inview",(()=>{"none"!==$(r).css("display")&&s.a.track_obj_view(e.view_id,$(r).data("track_uuid"))}))}))}render_content(){}}Scribd.addComponent("Recommenders.Modules.RecommendedComponent",a)},98:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return _}));var n=r(5),i=r.n(n),s=r(0),a=r.n(s),o=r(19),l=(r(225),r(40));r(350);function c(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:n+"")in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class _ extends o.a{constructor(e){super(e),c(this,"handle_resize",(()=>{this.props.no_clamp||this.clamp_lines(),this.set_narrow()})),this.state={narrow:this.props.narrow},this.enclosing_class("auto__shared_react_cells_article")}componentDidMount(){this.handle_resize(),$(window).on("resize.article_cell",e.debounce(this.handle_resize,100)),super.componentDidMount()}componentWillUnmount(){$(window).off("resize.article_cell")}get_container(){return $(this.container||ReactDOM.findDOMNode(this))}get_image_alt_text(){var e;return(null===(e=this.props.item.author)||void 0===e?void 0:e.name)||""}get_article_image_css_class(){return this.props.item.article_image_url?"has_image":"no_image"}get_narrow(){return $(this.container).width()<550&&"grid"!==this.props.display_type}set_narrow(){this.setState({narrow:this.get_narrow()})}clamp_lines(){if("grid"!==this.props.display_type)return;const e=this.get_container().find(".header"),t=this.get_container().find(".article_image_container"),r=this.get_container().find(".title"),n=this.get_container().find(".description"),i=this.get_container().innerHeight()-(e.innerHeight()+(t.innerHeight()||-22)+r.innerHeight());return i<44?(n.hide(),window.$clamp(r[0],{clamp:6})):window.$clamp(n[0],{clamp:Math.floor(i/22)})}render_aria_description_label(){return a.a.createElement("span",{className:"visually_hidden"},this.props.item.description.slice(0,250))}render_image_cta(){}render_interest(){if(this.props.item.interest)return a.a.createElement("div",{className:"interest"},this.props.item.interest)}render_article_image(){if(this.props.item.show_article_image&&this.props.item.article_image_url)return a.a.createElement("div",{className:"article_image_container"},a.a.createElement(l.a,{image_url:this.props.item.article_image_url,retina_image_url:this.props.item.retina_article_image_url,lazy_load:this.props.use_in_carousel,alt_text:this.props.item.alt_text||"",role:this.props.item.role}))}render_stick_and_block(){if("grid"===this.props.display_type)return[a.a.createElement("div",{className:"spacer_stick",key:"spacer_stick"}),a.a.createElement("div",{className:"spacer_block",key:"spacer_block"})]}render_description(){return a.a.createElement("div",{className:"description","aria-hidden":"true"},this.props.item.description)}render_list_item_content(){return a.a.createElement("div",{className:i()("wrapper",{narrow:this.state.narrow})},this.render_catalog_label(),a.a.createElement("div",{className:"header"},this.render_image(!1),a.a.createElement("div",{className:"metadata","aria-hidden":"true"},this.render_author(!1),this.render_reading_time_estimate(),this.render_interest())),this.render_article_image(),a.a.createElement("div",{className:`body ${this.get_article_image_css_class()}`},this.render_stick_and_block(),this.render_cross_brand_heading(),this.render_title(),this.render_description(),this.render_aria_description_label()))}}}).call(this,r(12))}});
|
|
//# sourceMappingURL=https://www.scribd.com/webpack/monolith/embeds_new.b8e46953cd55698e8191.js.map
|