!function o(i,l,s){function c(n,e){if(!l[n]){if(!i[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(u)return u(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var a=l[n]={exports:{}};i[n][0].call(a.exports,function(e){var t=i[n][1][e];return c(t||e)},a,a.exports,o,i,l,s)}return l[n].exports}for(var u="function"==typeof require&&require,e=0;e").text(r).html())]]];var r},tmpl_base:function(e){var t=i.default.extend({text:null,href:null,classes:[],attrs:{},type:null,size:null,extra:null,glyph:null},e);return t.classes.push("btn2"),t.size&&t.classes.push(t.size),t.type&&t.classes.push(t.type),t.glyph&&t.classes.push("btn2_glyph_on"),t.extra&&t.classes.push(t.extra),t.text&&t.classes.push("btn2_text_on"),[["div",{class:"btn2_alert",style:"display:none"}],["a",{class:t.classes.join(" "),onclick:""},t.attrs,t.href&&{href:t.href},this.tmpl_glyph(t),this.tmpl_text(t)]]},tmpl_glyph:function(e){return["span",{class:"btn2_glyph"},e.glyph]},tmpl_text:function(e){return["span",{class:"btn2_text"},e.text]},tmpl_spin:function(){return["div",{class:"btn2_spin"}]},tmpl_check:function(){return["div",{class:"btn2_check"},"✔"]},tmpl_plus:function(){return["div",{class:"btn2_plus"},"+"]},tmpl_error:function(){return["div",{class:"btn2_error"},"!"]},tmpl_down:function(){return["div",{class:"btn2_down"}]}};window.imdb_btn2={templates:o},i.default.widget("ui.imdb_btn2",{options:{templates:o,model:null},_create:function(){var e=this,t=e.element,n=e.options,r=t.attr("data-size"),a=t.attr("data-type"),o=t.attr("data-extra"),i=(t.attr("data-classes")||"").split(" ");e.templates=n.templates,e.model=n.model,e.model&&(e.model.size=e.model.size||r,e.model.type=e.model.type||a,e.model.classes=e.model.classes||i,e.model.extra=e.model.extra||o,t.children().remove(),t.jsonml(e.templates.tmpl_base(e.model))),t.addClass("btn2_wrapper btn2_active")},modifyGlyph:function(e){var t=this.element,n=(0,i.default)(".btn2",t);null!=(this.model.glyph=e)?n.addClass("btn2_glyph_on"):n.removeClass("btn2_glyph_on"),(0,i.default)(".btn2_glyph",t).replaceWith(i.default.jsonml.toDom(this.templates.tmpl_glyph(this.model)))},modifyText:function(e){var t=this.element,n=(0,i.default)(".btn2",t);null!=(this.model.text=e)?n.addClass("btn2_text_on"):n.removeClass("btn2_text_on"),(0,i.default)(".btn2_text",t).replaceWith(i.default.jsonml.toDom(this.templates.tmpl_text(this.model)))},show_alert:function(e,t,n,r){var a=(0,i.default)(".btn2_alert",e);a.removeClass("btn2_fail").removeClass("btn2_add_ok").removeClass("btn2_remove_ok"),"error"==t&&a.addClass("btn2_fail"),"success"==t&&"Added to "==n&&a.addClass("btn2_add_ok"),"success"==t&&"Removed from "==n&&a.addClass("btn2_remove_ok"),a.empty();var o=imdb_btn2.templates.tmpl_alert(t,n,r);a.append(i.default.jsonml.toDom(o)),a.attr("style","display: block;"),a.queue("btn2_alert",function(e){setTimeout(function(){e()},2e3)}).queue("btn2_alert",function(e){(0,i.default)(this).css({display:"none"})}).dequeue("btn2_alert")}})},{739:739,jquery:"jquery"}],3:[function(e,t,n){"use strict";var r,a=e("jquery"),f=(r=a)&&r.__esModule?r:{default:r},o=e(63);window.toggleSeeMoreEpisodes=function(e,t,n,r,a,o,i,l,s){var c=r.replace(/[: ]/g,""),u=(0,f.default)(l),d="/name/"+t+"/episodes/_ajax";e.loaded||(d+="?title="+n+"&category="+encodeURIComponent(r)+"&ref_marker="+a+"&start_index="+o,u.load(d),e.loaded=!0),s&&u.toggle(i,s(e,n,c))},window.toggleSpan=function(e){(0,f.default)(e).find("span").toggleClass("hide","show")},window.toggleContent=function(e,t,n){if(e.isExpanded)(0,o.recordMetric)("nm-flmg-ep-hide","nm_flmg_ep_hide","toggleSeeMoreEpisodes"),(0,f.default)(e).html("Show all "+(0,f.default)(e).data("n")+" episodes"),e.isExpanded=!1;else{(0,o.recordMetric)("nm-flmg-ep-show","nm_flmg_ep_show","toggleSeeMoreEpisodes");var r="#"+n+"-"+t;(0,f.default)("html,body").animate({scrollTop:(0,f.default)(r).offset().top}),(0,f.default)(e).html("Show less"),e.isExpanded=!0}}},{63:63,jquery:"jquery"}],4:[function(e,t,n){"use strict";var r=e(805);function a(e,t){window.imdb.webvitals[t]=void 0,e(function(e){window.imdb.webvitals[t]=e,window.ue&&window.ue.count&&window.ue.count(t,e.value)})}window.imdb=window.imdb||{},window.imdb.webvitals=window.imdb.webvitals||{},a(r.getCLS,"IMDbCLS"),a(r.getFID,"IMDbFID"),a(r.getLCP,"IMDbLCP"),a(r.getFCP,"IMDbFCP"),a(r.getTTFB,"IMDbTTFB")},{805:805}],5:[function(e,t,n){"use strict";var r,a=e(103);(0,((r=a)&&r.__esModule?r:{default:r}).default)()},{103:103}],6:[function(e,t,n){"use strict";var r,a=e("jquery"),o=(r=a)&&r.__esModule?r:{default:r};var i=".subnav .show_more",l=".subnav .show_less",s="#full_subnav";function c(){(0,o.default)(l).hide(),(0,o.default)(i).show(),(0,o.default)(s).hide()}(0,o.default)("body").on("click",i,function(){(0,o.default)(i).hide(),(0,o.default)(l).show(),(0,o.default)(s).show()}),(0,o.default)("body").on("click",l,c),c()},{jquery:"jquery"}],7:[function(e,t,n){"use strict";var r,a;r=jQuery,(a=window).imdb.restoreAmazonLinks=function(){r('a[href*="page-action=offsite-amazon"]').each(function(){if("none"===window.getComputedStyle(this).display){var e=this.getAttribute("href");this.removeAttribute("href"),r(this).on("click",(t=e,function(e){e.preventDefault(),e.stopPropagation(),t&&(e.metaKey||e.ctrlKey||1===e.button?window.open(t):window.location.href=t)}))}var t})},r(a.imdb.restoreAmazonLinks())},{}],8:[function(e,t,n){"use strict";var r;r=jQuery,jQuery("#character_select").change(function(){"..."==this.options[this.selectedIndex].value&&(document.location="/title/"+r("#character_select").attr("data-tconst")+"/fullcredits#cast?ref_=tt_cn")})},{}],9:[function(e,t,n){"use strict";var r,s,c=e(85),a=e(20),o=(r=a)&&r.__esModule?r:{default:r};s=jQuery,"CS"in window||(window.CS={}),"TMD"in CS||(CS.TMD={}),CS.TMD.user_review_vote=function(t,e,n){var r=3");s.ajax({url:o,type:a,data:i,success:function(){l.html("Thank you, your vote will be counted and appear on this page within 24 hours.")},error:function(){l.attr("class","error"),l.html("Sorry, there was a problem collecting your vote.")},complete:function(){var e;if(!(e=s("#ynd_"+t)))return!0;e.empty(),e.append(l)}})}else CS.activate_login_lightbox()},s(function(){var e,t;s("body").watchlistRibbon(".ribbonize"),s("#title-episode-widget").rating_animation(),s("#top-rated-episodes-rhs").rating_animation(),e=document.getElementById("star-rating-widget"),t=document.getElementById("star-rating-widget-error"),null!=e&&new o.default(e,{onError:function(){s(t).removeClass("hidden")}})})},{20:20,85:85}],10:[function(e,t,n){"use strict";var r,a,o;r=jQuery,a=window,o=function(e){-1 '+n.options.errorMessage+""),!1},success:function(){0==n.pendingRating?(n.originalRating=n.imdbRating,n.state="imdb"):(n.originalRating=n.pendingRating,n.state="your");var e=n.pendingRating;n.pendingRating=void 0,n.$stars.removeClass("rating-hover"),n.$caption.removeClass("rating-hover"),n.$cancel.removeClass("rating-pending"),r(),n.disabled=!1,i(n.element).trigger("change.rating",{state:n.state,rating:e,imdbRating:n.imdbRating,tconst:n.tconst})}});else{if((0,c.shouldUseRatingTaskCompletion)())return void(0,c.doRatingTaskCompletion)(n.tconst,e,n.trackingTag);var t="/registration/signin?u="+encodeURIComponent(window.location);document.location=t}}function r(){n.$stars.removeClass("rating-hover"),n.$caption.removeClass("rating-hover"),n.$cancel.removeClass("rating-hover"),"your"==n.state?(n.$stars.slice(0,n.originalRating).addClass("rating-your"),n.$caption.addClass("rating-your"),n.$cancel.addClass("rating-your"),n.$lowerUserCaption.show()):(n.$stars.removeClass("rating-your"),n.$caption.removeClass("rating-your"),n.$cancel.removeClass("rating-your"),n.$imdb.show(),n.$lowerUserCaption.hide()),a(n.originalRating)}function a(e){e=e?e.toLocaleString(window.navigator.languages||[window.navigator.language||window.navigator.userLanguage]):"-",n.$caption.children(":first").text(e)}n.tconst=e[0],n.state=n.originalState=e[1],n.originalRating=parseFloat(e[2]),n.imdbRating=parseFloat(e[3]),n.trackingTag=e[4]||"",n.pageId=e[5]||"",n.pageType=e[6]||"",n.subpageType=e[7]||"",n.disabled=!1,n.$stars=i(".rating-stars a",n.element),n.$imdb=i(".rating-imdb",n.element),n.$cancel=i(".rating-cancel",n.element),n.$caption=i(".rating-rating",n.element),n.$lowerUserCaption=i(".star-bar-user-rate",n.siblings),n.$stars.removeAttr("href"),i("a",n.$cancel).removeAttr("href"),n.csrfToken=i(n.element).attr("data-csrf-token"),i(n.element).trigger("ready.rating",{state:n.state,rating:n.originalRating,imdbRating:n.imdbRating,tconst:n.tconst}),n.$stars.on("mouseover.rating",function(){if(n.disabled)return!1;var e=n.$stars.index(this)+1;"your"==n.state?n.$stars.removeClass("rating-your"):n.$imdb.hide(),n.$stars.slice(0,e).addClass("rating-hover"),n.$stars.slice(e+1).removeClass("rating-hover"),n.$caption.addClass("rating-hover"),n.$cancel.addClass("rating-hover"),a(e)}).on("mouseout.rating",function(){if(n.disabled)return!1;r()}).on("click.rating",function(){if(n.disabled)return!1;t(n.$stars.index(this)+1)}),n.$cancel.on("click.rating",function(){if(n.disabled)return!1;t(0)})}});var l={};i.fn.rating_animation=function(){i(this).find("span.userRatingValue").on("click",function(e){var t=e.delegateTarget,n=i(t).attr("data-tconst");i(t).fadeTo(100,0),i("div.starBarWidget#sb_"+n).fadeIn(100)}),i(this).find("div.starBarWidget").on("mouseenter",function(e){var t=e.delegateTarget;l[t.id]&&(clearTimeout(l[t.id]),delete l[t.id])}).on("mouseleave",function(e){var t=e.delegateTarget;l[t.id]=setTimeout(function(){i(t).parent().find("span.userRatingValue").fadeTo(100,1),i(t).fadeOut(),delete l[t.id]},5)}),i(this).find("div.rating").on("change.rating",function(e,t){var n=i("#urv_"+t.tconst+" > span[name=ur]"),r=n.data("no-rating")||"Rate",a=0!==t.rating?t.rating:r;n.data("value",t.rating).text(a).addClass("has-changed"),a===r?(n.addClass("rate"),n.siblings(".global-sprite.rating-star.user-rating").removeClass("user-rating").addClass("no-rating")):(n.removeClass("rate"),n.siblings(".global-sprite.rating-star.no-rating").removeClass("no-rating").addClass("user-rating"));var o=i(e.delegateTarget).parent();i(o).fadeOut(),delete l[o.id]})},i.extend(i.ui.rating,{version:"2.0"})}(o.default)},{103:103,85:85,jquery:"jquery"}],20:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n'),f.overlayOn=!0}},{jquery:"jquery"}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.autoInitRecsWidget=function(){$("#lateload-recs-widget").load("/recommendations/user_recs",{numItems:24,ref_marker:"hm_rec_lm"},r)},e(868);var a=e(43),o={requestNum:1,loadRecs:!1,titlesLeftToPaginate:10};function r(e,t,n){"error"===t&&$(".rec_heading_wrapper").parents(".article").hide(),"csm"in window&&csm.measure("csm_recs_delivered"),0===$("#lateload-recs-widget").text().length&&$("#lateload-recs-widget").closest(".ab_widget").parent().filter(".article").detach(),$("#title_recs").rec_widget(),$(".rec_wlb_watchlist_btn").wlb_lite(),$(".rating-list.rating","#title_recs").each(function(e){null!=$(this).attr("data-starbar-class")&&$(this).rating({uconst:$(this).attr("data-user"),widgetClass:$(this).attr("data-starbar-class"),ajaxURL:"/ratings/_ajax/title",errorMessage:"Oops! Please try again later."})}),(0,a.autoInit)(document),$("#lateload-recs-widget .smooth-scroller").on("scroll",function(){var e,t,n,r;o.loadRecs&&(e=$("#lateload-recs-widget #sims").children(),t=$("#lateload-recs-widget .smooth-scroller"),n=e.length-(o.titlesLeftToPaginate+1),r=$(e[n]).offset().left,t.width()>r)&&($.ajax({url:"/recommendations/user_recs/_ajax",type:"POST",data:{numItems:24,loadMoreCount:o.requestNum},success:function(e){var t,n=$(e)[0];(0,a.autoInit)(n),t=$(n),$("#lateload-recs-widget #sims").append(t.children()),o.requestNum++,o.loadRecs=!0}}),o.loadRecs=!1)})}},{43:43,868:868}],26:[function(e,t,n){"use strict";var r,a=e("jquery"),l=(r=a)&&r.__esModule?r:{default:r};e(739);var o=e("iui"),s=e(24);l.default.widget("ui.rec_slider",{_create:function(){var t=this,n=t.element;l.default.extend(t,{$slide:(0,l.default)(".rec_slide",n),$left:(0,l.default)(".rec_nav_left",n),$right:(0,l.default)(".rec_nav_right",n),$pageNum:(0,l.default)(".rec_nav_page_num",n),specs:n.attr("data-specs").split(","),perPage:n.attr("data-items-per-page")}),t.$right.click(function(){var e=(0,l.default)(".rec_page.rec_selected",n).index();(0,l.default)(this).hasClass("rec_nav_disabled")||(t.slideTo(e,"Next"),t.recordNavButtonClicks("Next"))}),t.$left.click(function(){var e=(0,l.default)(".rec_page.rec_selected",n).index();(0,l.default)(this).hasClass("rec_nav_disabled")||(t.slideTo(e,"Prev"),t.recordNavButtonClicks("Prev"))}),t.updateNav()},encodeParameters:function(){var t=0").attr("data-vioverride",a[1])):(0,C.default)("a.title-trailer").click()}else{var o=(0,C.default)("#playall-button");if(/^\d+$/.test(a[1])){var i='.video-colorbox[data-start="'+(a[1]-1)+'"]';(0,C.default)(i).length&&(o=(0,C.default)(i).first())}o.length&&o.click()}else"#play"==a[0]&&"all"==a[1]&&(0,C.default)("#playall-button").click()}catch(e){"consoleLog"in window&&consoleLog("Lightbox JS error: "+e)}})},{iui:"iui",jquery:"jquery",underscore:"underscore"}],40:[function(e,t,n){"use strict";var r,i=e("react"),l=(r=i)&&r.__esModule?r:{default:r},s=e("react-dom"),c=e(36),u=e(31);var d="videoPreviewEmbedIframe",f="videoPreview--playerPlaying";function p(e){var t=e.videoId,n=e.videoType,r=e.duration,a=(0,i.useRef)(null);(0,c.useMediaPlayback)({videoIframeElementName:d,targetRef:a,videoId:t});var o="/video/embed/"+t.toString()+"/?config_preset=inline_video_preview";return l.default.createElement(l.default.Fragment,null,l.default.createElement("iframe",{id:d,name:d,src:o,scrolling:"no",ref:a},"sandbox=","allow-same-origin allow-scripts allow-popups allow-top-navigation"),l.default.createElement(v,{videoType:n,duration:r}))}function v(e){var t=e.videoType,n=e.duration,r=t&&"Trailer"===t.toString()?"trailer":"video",a=n?n.toString():"",o="Play "+r+" with sound";return l.default.createElement("div",{className:"video-autoplay-preview__bottom-slate"},l.default.createElement("div",{className:"video-autoplay-preview__caption-text"},l.default.createElement("span",null,o),l.default.createElement("span",{className:"video-autoplay-preview__caption-time"},a)))}!function(e){if(e&&e.videoId&&e.heroVideoPreviewContainerId){var a,t=e.heroVideoPreviewContainerId,n=e.videoId,r=e.videoType,o=e.duration,i=document.getElementById(t);if(i)a=i,window.addEventListener("message",function e(t){if(t.origin===window.location.origin){var n=window.document.querySelector(".videoPreview.videoPreview--autoPlaybackOnce");if(n)if(t.data===u.VideoPlaybackCommands.playerPlaybackStartedMessage)n.classList.add(f);else if(t.data===u.VideoPlaybackCommands.playerPlaybackStoppedMessage||t.data===u.VideoPlaybackCommands.playerPlaybackCompletedMessage){window.removeEventListener("message",e);var r=window.document.querySelector(".videoPreview .slate");r&&(r.ontransitionend=function(){return(0,s.unmountComponentAtNode)(a)}),n.classList.remove(f)}}}),(0,s.render)(l.default.createElement(p,{videoId:n,videoType:r,duration:o}),i)}}(window.IMDbHeroVideoPreview)},{31:31,36:36,react:"react","react-dom":"react-dom"}],41:[function(e,t,n){"use strict";var r=e("iui");function o(e,t){$.post("/tr/",{const:e,pageAction:"watcho-"+t+"-"+e,pt:r.MetricsInfo.getPageType(),spt:r.MetricsInfo.getSubpageType(),rrid:r.MetricsInfo.getRequestId(),ht:"actionOnly"})}!function(r,a){function e(e){e.preventDefault(),e.stopPropagation();var t=r(this).data("ipc-data"),n=r(this).data("title-id");t&&r.colorbox({width:500,href:t,opacity:.5,close:"",className:"imdb-closable-colorbox",onOpen:function(){return o(n,"open")},onClosed:function(){return o(n,"close")},onComplete:function(){r("#cboxClose").addClass("lightbox-sprite").addClass("close").addClass("light-circle"),a.imdb.restoreAmazonLinks()},scrolling:!1})}window.imdb.watchOptionsModelHandler=e,r(function(){r(".buybox__modal").on("click",e)})}(jQuery,window)},{iui:"iui"}],42:[function(e,t,n){"use strict";!function(l,s,e){var o="",c={};s.imdb=s.imdb||{};var a={},u=!1,i=void 0;s.imdb.WatchOption=function(){var a=[],o=void 0,i=function(e,t){e.html(t.clone())};this.set_content=function(e){var t;for(o=l(e),t=0;t'),r=l("");t.before(n),n.append(t),n.append(r),a.push(r),void 0!==o&&i(r,o)},this.addelement_as_child=function(e){var t=l(e),n=l("");t.append(n),a.push(n),void 0!==o&&i(n,o)}},s.imdb.WatchTypeInfo=function(e){var a={},o=[],i=this;this.has_tconst_watchoption=function(e){return a.hasOwnProperty(e)},this.get_tconst_watchoption=function(e){return i.has_tconst_watchoption(e)?a[e]:void 0},this.add_element=function(e){var t,n=l(e),r=n.data("tconst");i.has_tconst_watchoption(r)||(a[r]=new s.imdb.WatchOption(r)),n.is("[watchoption]")||(t=a[r],o.push(r),u=!0,n.is(".wtw-option-standalone")?t.addelement_as_child(n):t.addelement_as_overlay(n),n.attr("watchoption",1))},this.get_pending_ajax_tconsts=function(){return o},this.clear_pending_ajax_tconsts=function(){o=[]}};var d=function(e){return a.hasOwnProperty(e)||(a[e]=new s.imdb.WatchTypeInfo(e)),a[e]},f=function(){var e,t,n,r={};if(i=void 0,u){for(e in a)n=(t=d(e)).get_pending_ajax_tconsts(),r[e]=n.join(","),t.clear_pending_ajax_tconsts();o&&(r.baseref=o),l.ajax({url:"/watch/_ajax/option",type:"POST",data:r,dataType:"json",success:function(e){!function(e){var t,n,r,a,o;for(r in e)for(t in a=d(r),e[r])void 0!==(o=a.get_tconst_watchoption(t))&&(n=e[r][t],o.set_content(n));l(".buybox__modal").on("click",window.imdb.watchOptionsModelHandler)}(e)}}),u=!1}},t=function(e){var t,n,r,a=l(e);for(t=0;t=r&&a.top<=o.height()-r&&a.right>=r&&a.left<=o.width()-r)))&&(t.push(l(e)),i&&!c[i]&&(c[i]=1))},r=function(){var e=[];l(".wtw-option[data-tconst][data-watchtype],.wtw-option-standalone[data-tconst][data-watchtype]").each(function(){n(l(this),e)}),t(e)};l.fn.scrollStopped=function(t){l(this).on("scroll",function(){var e=l(this);e.data("scrollTimeout")&&clearTimeout(e.data("scrollTimeout")),e.data("scrollTimeout",setTimeout(t,300,this))})},l(s).scrollStopped(r),l(r),l(e).ajaxComplete(r)}(jQuery,window,document)},{}],43:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function r(e,t){for(var n=0;n").attr("src",t.attr("src")).appendTo(t),n.hide(),t.show()),e.stopPropagation(),!1},i=function(e){var t=r(this);t.siblings().filter(".image").on("click",null,t,o)},r(function(){r(a).find(".ninja_image .widget_image .video").each(i),document.querySelectorAll(".heroWidget .ninja_image .video-modal").forEach(function(e){if(e.hasAttribute("data-pixels")){var t=e.getAttribute("data-pixels");"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.setItem("imdb-promoted-ad-trackers",JSON.stringify(t))}})})},{}],65:[function(e,t,n){"use strict";var u,d=e(85),f=new Map;function p(e){return/^[a-z0-9]+$/.test(e)}f.set("trivia","trv"),f.set("quotes","qu"),f.set("goofs","gf"),f.set("crazycredits","cc"),f.set("locations","dt"),f.set("keyword","kw"),u=jQuery,window.imdb=window.imdb||{},window.imdb.CS=window.imdb.CS||{},window.imdb.CS.CQ=function(s){var c={showSpoiler:function(){return u("#spoiledtext").show(),u("#spoiledwarning").hide(),!1},hoverVote:function(){(u(this).hasClass("interesting-count-text")||u(this).parent(".linksoda").length||0==u(this).closest("a").length)&&u(this).addClass("soda-hovered")},unHoverVote:function(){(u(this).hasClass("interesting-count-text")||u(this).parent(".linksoda").length||0==u(this).closest("a").length)&&u(this).removeClass("soda-hovered")},expandVoting:function(e){if(u(e.target).parents(".did-you-know-actions").length){if("sharesoda_pre"==u(e.target).parent().attr("class"))return!0;e.preventDefault()}else if(u(e.target).filter("a").length+u(e.target).parent("a").length)return!0;var t=u(e.target).parents(".sodavote, .soda-callout-box").first();(t.hasClass("interesting-count-text")||t.parent(".linksoda").length||0==t.closest("a").length)&&t.toggleClass("soda-selected")},castVoteDone:function(e,t){e.children().hide(),e.append("You found this "+t)},castVoteFail:function(e){e.find(".cast-vote").prop("disabled",!1),alert("We were unable to cast your vote. Please try again later. If this issue continues, please contact customer service.")}};return c.castVote=function(){var e=u(this).parent();e.find(".cast-vote").prop("disabled",!0);var t,n=u(this).val(),r=e.data("item-id"),a=e.data("item-type"),o=function(){var e=window.location.pathname,t=e.match(/\/[^\/]*\/[^\/]*/);if(t)return t[0]}(),i=o+"/"+a+"/"+r+"/vote/interesting",l="up"===n?"interesting":"uninteresting";return"keyword"===a&&(i=o+"/keywords/"+r+"/vote/interesting",l="up"===n?"relevant":"not relevant"),(0,d.isUserLoggedIn)()?!s&&p(r)&&p(a)&&p(n)?u.post(i,{voteValue:n}).done(function(){c.castVoteDone(e,l)}).fail(function(){c.castVoteFail(e)}):c.castVoteDone(e,l):(0,d.redirectToLoginPage)((t=a,"tt_"+f.get(t)+"_vot")),!1},c.repaintKeywords=function(e){var t=u(".sodavote").sort(e);u(".sodavote").parent("tr").remove(),t.each(function(e,t){e%4==0&&u(".dataTable tbody").append(''),e%4==2&&u(".dataTable tbody").append(''),u(".dataTable tr:last").append(t)})},c.sortByVote=function(e,t){return u(t).data("item-votes")-u(e).data("item-votes")},c.sortByVoteR=function(e,t){return-1*c.sortByVote(e,t)},c.sortByAlpha=function(e,t){return u(e).data("item-keyword")u(t).data("item-keyword")?1:0},c.sortByAlphaR=function(e,t){return-1*c.sortByAlpha(e,t)},c.runSort=function(){var e=u(".sort-controls option:selected").val(),t=e.split(":")[1];"descending"==t?u(".sort-controls .lister-sort-reverse").removeClass("descending").addClass("ascending"):u(".sort-controls .lister-sort-reverse").removeClass("ascending").addClass("descending"),u(".sort-controls .lister-sort-reverse").attr("title",t.charAt(0).toUpperCase()+t.slice(1)+" order"),"votes:descending"==e?c.repaintKeywords(c.sortByVoteR):"votes:ascending"==e?c.repaintKeywords(c.sortByVote):"alpha:descending"==e?c.repaintKeywords(c.sortByAlphaR):"alpha:ascending"==e&&c.repaintKeywords(c.sortByAlpha)},c.changeOptionDirection=function(e,t){e.val(e.val().split(":")[0]+":"+t)},c.reverseSorts=function(e){var t=u(e.target),n=u(".sort-controls option");t.hasClass("ascending")?(t.attr("title","Descending order"),n.each(function(){c.changeOptionDirection(u(this),"ascending")})):(t.attr("title","Ascending order"),n.each(function(){c.changeOptionDirection(u(this),"descending")})),t.toggleClass("descending").toggleClass("ascending"),c.runSort()},c.setup=function(){u("#spoiledwarning a").on("click",c.showSpoiler),u("body").on("mouseenter",".sodavote, .soda-callout-box",c.hoverVote),u("body").on("mouseleave",".sodavote, .soda-callout-box",c.unHoverVote),u("body").on("click",".sodavote, .soda-callout-box",function(e){c.expandVoting(e)}),u("body").on("click",".interesting-cast-vote .cast-vote",c.castVote),u("#keywords_content")&&(u(".sort-controls").show(),u(".sort-controls select").change(c.runSort),u(".sort-controls .lister-sort-reverse").on("click",function(e){c.reverseSorts(e)}))},c},u(function(){window.imdb.CS.CQ(!1).setup()})},{85:85}],66:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function r(e,t){for(var n=0;ni[0]&&t[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||0i[0]&&t[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{for(;(void 0===t||08.64*1e15?NaN:function(e){var t=o(r);if(isNaN(t)||i(t,-0))return 0;if(isFinite(t))return t;var n=Math.floor(Math.abs(t));return t<0&&(n=-n),i(n,-0)?0:n}():NaN},t.TimeFromYear=function(e){return Date.UTC(e,0)},t.ToNumber=o,t.ToObject=function(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)},t.ToString=function(e){if("symbol"===a(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},t.Type=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"===a(e)?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"===a(e)?"Symbol":"bigint"==typeof e?"BigInt":void 0},t.WeekDay=function(e){return l(s(e)+4,7)},t.YearFromTime=u,t.msFromTime=function(e){return l(e,g)};var r=864e5;function l(e,t){return e-Math.floor(e/t)*t}function s(e){return Math.floor(e/r)}function c(e){return Date.UTC(e,0)/r}function u(e){return new Date(e).getUTCFullYear()}function d(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function f(e){return s(e)-c(u(e))}function p(e){return 365===d(u(e))?0:1}function v(e){var t=f(e),n=p(e);if(0<=t&&t<31)return 0;if(t<59+n)return 1;if(t<90+n)return 2;if(t<120+n)return 3;if(t<151+n)return 4;if(t<181+n)return 5;if(t<212+n)return 6;if(t<243+n)return 7;if(t<273+n)return 8;if(t<304+n)return 9;if(t<334+n)return 10;if(t<365+n)return 11;throw new Error("Invalid time")}var m=24,h=60,_=60,g=1e3,b=g*_,y=b*h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_INTL_CONFIG=void 0,t.createFormatters=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var n=Intl.RelativeTimeFormat,r=Intl.ListFormat,a=Intl.DisplayNames,o=(0,u.default)(function(){for(var e,t=[],n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;a<=e;)(a<<=1)<0&&h(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,o=r;o>>0);if(!t.hasNameForId(r,i)){var l=n(o,"."+i,void 0,r);t.insertRules(r,i,l)}a.push(i),this.staticRulesId=i}else{for(var s=this.rules.length,c=z(this.baseHash,n.hash),u="",d=0;d>>0);if(!t.hasNameForId(r,m)){var h=n(u,"."+m,void 0,r);t.insertRules(r,m,h)}a.push(m)}}return a.join(" ")},e}(),K=/^\s*\/\/.*$/gm,Y=[":","[",".","#"];function q(e){var i,l,s,c,t=void 0===e?L:e,n=t.options,r=void 0===n?L:n,a=t.plugins,o=void 0===a?y:a,u=new m.default(r),d=[],f=function(u){function d(e){if(e)try{u(e+"}")}catch(e){}}return function(e,t,n,r,a,o,i,l,s,c){switch(e){case 1:if(0===s&&64===t.charCodeAt(0))return u(t+";"),"";break;case 2:if(0===l)return t+"/*|*/";break;case 3:switch(l){case 102:case 112:return u(n[0]+t),"";default:return t+(0===c?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(d)}}}(function(e){d.push(e)}),p=function(e,t,n){return 0===t&&-1!==Y.indexOf(n[l.length])||n.match(c)?e:"."+i};function v(e,t,n,r){void 0===r&&(r="&");var a=e.replace(K,""),o=t&&n?n+" "+t+" { "+a+" }":a;return i=r,l=t,s=new RegExp("\\"+l+"\\b","g"),c=new RegExp("(\\"+l+"\\b){2,}"),u(n||!t?"":t,o)}return u.use([].concat(o,[function(e,t,n){2===e&&n.length&&0?@[\\\]^`{|}~-]+/g,_e=/(^-|-$)/g;function ge(e){return e.replace(he,"-").replace(_e,"")}var be=function(e){return G(V(e)>>>0)};function ye(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==s(e)&&null!==e&&!Array.isArray(e)},Ee=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Te(e){for(var t=arguments.length,n=new Array(1"+e+""},this.getStyleTags=function(){return r.sealed?h(2):r._emitSheetCSS()},this.getStyleElement=function(){var e;if(r.sealed)return h(2);var t=((e={})[d]="",e["data-styled-version"]="5.3.6",e.dangerouslySetInnerHTML={__html:r.instance.toString()},e),n=N();return n&&(t.nonce=n),[A.default.createElement("style",I({},t,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new F({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?h(2):A.default.createElement(ae,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return h(3)},e}(),Me={StyleSheet:F,masterSheet:ee};Re.__PRIVATE__=Me,Re.useTheme=function(){return(0,A.useContext)(Ce)},Re.withTheme=function(o){var e=A.default.forwardRef(function(e,t){var n=(0,A.useContext)(Ce),r=o.defaultProps,a=me(e,n,r);return A.default.createElement(o,I({},e,{theme:a,ref:t}))});return(0,b.default)(e,o),e.displayName="WithTheme("+S(o)+")",e},Re.ServerStyleSheet=Pe;var Ne=Ie;Re.default=Ne}).call(this,ke(479))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.focusHiddenMarker=t.effectCar=void 0;var r=(0,n(35).createSidecarMedium)();t.effectCar=r,t.focusHiddenMarker="data-focus-on-hidden"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r needs to exist in the component ancestry.")},t.shallowEqual=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var o=0;oi[0]&&t[1]\n This content has been prerendered.\n It is likely markdown rendered or editorial content.\n We expect this content to contain links , and they should be visible as such.\n

'),t.CLOSE_LABEL="Close",t.ZERO_ID="button-0",t.ONE_ID="button-1",t.ZERO_LINK_ID="link-0",t.ONE_LINK_ID="link-1"},function(e,t,n){"use strict";e.exports=n(480)},function(e,A,t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(A,"__esModule",{value:!0}),A.AccordionItem=A.getJSXElementText=void 0;var w=t(1),I=t(0),L=t(9),P=t(5),M=t(153);A.getJSXElementText=function(e){return["string","number"].includes(n(e))?String(e):e instanceof Array?e.map(A.getJSXElementText).join(""):"object"===n(e)&&e?(0,A.getJSXElementText)(e.props.children):void 0};var N=function(e){var t=e.type;return I.createElement("hr",{className:w(M.CLASSES.ACCORDION_ITEM_DIVIDER,"".concat(M.CLASSES.ACCORDION_ITEM_DIVIDER,"--").concat(t))})};A.AccordionItem=function(e){var t,n,r,a,o,i=e.expanded,l=e.item,s=e.onToggleOpen,c=e.onToggleClose,u=e.stickyHeader,d=l.className,f=l.contentClassName,p=l.labelClassName,v=I.useRef(null),m="accordion-item-".concat(l.id),h="string"==typeof l.title?l.title:(0,A.getJSXElementText)(l.title),_=null!==(a=l.collapseAriaLabel)&&void 0!==a?a:"Collapse ".concat(h),g=null!==(o=l.expandAriaLabel)&&void 0!==o?o:"Expand ".concat(h),b=i?_:g,y=w(M.CLASSES.ACCORDION_ITEM,((t={})[M.CLASSES.ACCORDION_ITEM_EXPANDED]=i,t),((n={})[M.CLASSES.ACCORDION_ITEM_COLLAPSED]=!i,n),d),S=w(M.CLASSES.ACCORDION_ITEM_CONTENT_INNER,f),E="".concat(M.CLASSES.ACCORDION_ITEM_LABEL_INDENT,"-").concat(l.indentLevel),T=w(M.CLASSES.ACCORDION_ITEM_LABEL,p,((r={})[E]=!!l.indentLevel,r)),C=w(M.CLASSES.ACCORDION_ITEM_HEADER,u?"".concat(M.CLASSES.ACCORDION_ITEM_HEADER,"--sticky"):""),O=function(e){if(e.preventDefault(),i){if(c(l.id),u&&v.current){var t=v.current.getBoundingClientRect().top;if(t<0){var n=t+window.pageYOffset-100;window.scrollTo({top:n,behavior:"smooth"})}}}else s(l.id)};return I.createElement("div",{className:y,"data-testid":"accordion-item",role:"presentation",ref:v,id:l.id},I.createElement("div",{className:C,role:"presentation"},I.createElement(N,{type:"pre-header"}),I.createElement("label",{role:"button","aria-label":b,"aria-expanded":i,"aria-controls":m,className:T,tabIndex:0,htmlFor:m,"data-testid":m,onClick:O,onKeyDown:function(e){(0,L.isEnterOrSpaceKey)(e)&&O(e)}},!!l.preIconName&&I.createElement("span",{className:M.CLASSES.ACCORDION_ITEM_ICON},I.createElement(P.Icon,{name:l.preIconName})),I.createElement("span",{className:M.CLASSES.ACCORDION_ITEM_TITLE},l.title),I.createElement("span",{className:M.CLASSES.ACCORDION_ITEM_CHEVRON},I.createElement(P.Icon,{name:"chevron-right"}))),I.createElement(N,{type:"post-header"})),!!u&&I.createElement(I.Fragment,null,I.createElement("div",{className:M.CLASSES.ACCORDION_ITEM_HEADER_SHADOW}),I.createElement("div",{className:M.CLASSES.ACCORDION_ITEM_HEADER_SHADOW_COVER})),I.createElement("div",{id:m,className:M.CLASSES.ACCORDION_ITEM_CONTENT,"aria-hidden":!i,"data-testid":"accordion-item-content-container"},I.createElement("div",{className:S,role:"presentation"},l.children),I.createElement(N,{type:"post-content"})))},A.default=A.AccordionItem},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SELECTORS=t.CLASSES=void 0,t.CLASSES={ACCORDION:"ipc-accordion",ACCORDION_BOTTOM_BORDER:"ipc-accordion__item--bottom-border",ACCORDION_ITEM:"ipc-accordion__item",ACCORDION_ITEM_HEADER:"ipc-accordion__item__header",ACCORDION_ITEM_HEADER_SHADOW:"ipc-accordion__item__header-shadow",ACCORDION_ITEM_HEADER_SHADOW_COVER:"ipc-accordion__item__header-shadow-cover",ACCORDION_ITEM_FULL_WIDTH:"ipc-accordion__item--full-width",ACCORDION_ITEM_CHEVRON:"ipc-accordion__item__chevron",ACCORDION_ITEM_COLLAPSED:"ipc-accordion__item--collapsed",ACCORDION_ITEM_CONTENT:"ipc-accordion__item__content",ACCORDION_ITEM_CONTENT_INNER:"ipc-accordion__item__content_inner",ACCORDION_ITEM_DIVIDER:"ipc-accordion__item__divider",ACCORDION_ITEM_EXPANDED:"ipc-accordion__item--expanded",ACCORDION_ITEM_ICON:"ipc-accordion__item__icon",ACCORDION_ITEM_LABEL:"ipc-accordion__item__label",ACCORDION_ITEM_LABEL_FULL_WIDTH:"ipc-accordion__item__label--full-width",ACCORDION_ITEM_LABEL_INDENT:"ipc-accordion__item__label--indent",ACCORDION_ITEM_TITLE:"ipc-accordion__item__title",ACCORDION_ITEM_SECTION:"ipc-accordion__item__section",ACCORDION_ITEM_STATE:"ipc-accordion__item__state",ACCORDION_TOP_BORDER:"ipc-accordion__item--top-border"},t.SELECTORS={ACCORDION:".".concat(t.CLASSES.ACCORDION),ACCORDION_ITEM:".".concat(t.CLASSES.ACCORDION_ITEM),ACCORDION_ITEM_CHEVRON:".".concat(t.CLASSES.ACCORDION_ITEM_CHEVRON),ACCORDION_ITEM_COLLAPSED:".".concat(t.CLASSES.ACCORDION_ITEM_COLLAPSED),ACCORDION_ITEM_CONTENT:".".concat(t.CLASSES.ACCORDION_ITEM_CONTENT),ACCORDION_ITEM_CONTENT_INNER:".".concat(t.CLASSES.ACCORDION_ITEM_CONTENT_INNER),ACCORDION_ITEM_EXPANDED:".".concat(t.CLASSES.ACCORDION_ITEM_EXPANDED),ACCORDION_ITEM_ICON:".".concat(t.CLASSES.ACCORDION_ITEM_ICON),ACCORDION_ITEM_HEADER:".".concat(t.CLASSES.ACCORDION_ITEM_HEADER),ACCORDION_ITEM_HEADER_SHADOW:".".concat(t.CLASSES.ACCORDION_ITEM_HEADER_SHADOW),ACCORDION_ITEM_HEADER_SHADOW_COVER:".".concat(t.CLASSES.ACCORDION_ITEM_HEADER_SHADOW_COVER),ACCORDION_ITEM_LABEL:".".concat(t.CLASSES.ACCORDION_ITEM_LABEL),ACCORDION_ITEM_LABEL_INDENT:".".concat(t.CLASSES.ACCORDION_ITEM_LABEL_INDENT),ACCORDION_ITEM_TITLE:".".concat(t.CLASSES.ACCORDION_ITEM_TITLE),ACCORDION_ITEM_SECTION:".".concat(t.CLASSES.ACCORDION_ITEM_SECTION),ACCORDION_ITEM_STATE:".".concat(t.CLASSES.ACCORDION_ITEM_STATE)}},function(e,t,n){"use strict";var r,a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PLAIDError=void 0;var o=n(495),i=function(r){function e(e,t){void 0===t&&(t={});var n=r.call(this,e)||this;return n.message=e,n.data=t,o.logCSMError(n,n.data.from),n}return a(e,r),e}(Error);t.PLAIDError=i,t.default=i},function(e,t,n){"use strict";var r,a=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorMessage=void 0;var u=n(2),d=n(1),f=n(0),p=n(86),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.componentDidMount=function(){this.buttonEl&&this.buttonEl.focus()},t.prototype.render=function(){var a=this,e=this.props,o=e.onClick,i=e.children,l=e.baseColor,s=e.className,c=!!o;return f.createElement(u.ThemeContext.Consumer,null,function(e){var t,n=l||e.palette.baseColor,r=d(p.CLASSES.messageRoot,p.CLASSES.messageRootBaseColorPrefix+n,((t={})[p.CLASSES.messageRootClickable]=c,t),s);return f.createElement("div",{className:r,onClick:function(){return!!o&&o()},role:"alert"},f.createElement("div",{ref:function(e){return a.buttonEl=e},role:c?"button":"presentation",tabIndex:c?0:void 0},i))})},t}(f.PureComponent);t.ErrorMessage=o,t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BottomSheet=void 0;var r=n(499);Object.defineProperty(t,"BottomSheet",{enumerable:!0,get:function(){return r.BottomSheet}})},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={FocusOn:!0};Object.defineProperty(t,"FocusOn",{enumerable:!0,get:function(){return a.FocusOn}});var a=n(502),o=n(166);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveScroll=void 0;var T=n(13),C=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==(n=e,("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n))&&"function"!=typeof e)return{default:e};var n,r=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(void 0);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(n(0)),r=n(88),O=n(160),A=n(161);var w=function(){},a=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:w}),a=r[0],o=r[1],i=e.forwardProps,l=e.children,s=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,v=e.inert,m=e.allowPinchZoom,h=e.as,_=void 0===h?"div":h,g=e.gapMode,b=(0,T.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=f,S=(0,O.useMergeRefs)([n,t]),E=(0,T.__assign)((0,T.__assign)({},b),a);return C.createElement(C.Fragment,null,u&&C.createElement(y,{sideCar:A.effectCar,removeScrollBar:c,shards:d,noIsolation:p,inert:v,setCallbacks:o,allowPinchZoom:!!m,lockRef:n,gapMode:g}),i?C.cloneElement(C.Children.only(l),(0,T.__assign)((0,T.__assign)({},E),{ref:S})):C.createElement(_,(0,T.__assign)({},E,{className:s,ref:S}),l))});(t.RemoveScroll=a).defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},a.classNames={fullWidth:r.fullWidthClassName,zeroRight:r.zeroRightClassName}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"assignRef",{enumerable:!0,get:function(){return r.assignRef}}),Object.defineProperty(t,"createCallbackRef",{enumerable:!0,get:function(){return o.createCallbackRef}}),Object.defineProperty(t,"mergeRefs",{enumerable:!0,get:function(){return i.mergeRefs}}),Object.defineProperty(t,"refToCallback",{enumerable:!0,get:function(){return u.refToCallback}}),Object.defineProperty(t,"transformRef",{enumerable:!0,get:function(){return c.transformRef}}),Object.defineProperty(t,"useCallbackRef",{enumerable:!0,get:function(){return a.useCallbackRef}}),Object.defineProperty(t,"useMergeRefs",{enumerable:!0,get:function(){return l.useMergeRefs}}),Object.defineProperty(t,"useRefToCallback",{enumerable:!0,get:function(){return u.useRefToCallback}}),Object.defineProperty(t,"useTransformRef",{enumerable:!0,get:function(){return s.useTransformRef}});var r=n(48),a=n(89),o=n(90),i=n(504),l=n(505),s=n(506),c=n(507),u=n(508)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.effectCar=void 0;var r=(0,n(35).createSidecarMedium)();t.effectCar=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSidecar=function(e,t){var r,a,n,o,i,l,s,c,u,d,f=t&&t.options||h;return v.env.isNode&&!f.ssr?[null,null]:(r=e,n=(a=t)&&a.options||h,o=v.env.forceCache||v.env.isNode&&!!n.ssr||!n.async,i=(0,p.useState)(o?function(){return m.get(r)}:void 0),l=i[0],s=i[1],c=(0,p.useState)(null),u=c[0],d=c[1],(0,p.useEffect)(function(){l||r().then(function(e){var t,n=a?a.read():e.default||e;if(!n)throw console.error("Sidecar error: with importer",r),a?(console.error("Sidecar error: with medium",a),t=new Error("Sidecar medium was not found")):t=new Error("Sidecar was not found in exports"),d(function(){return t}),t;m.set(r,n),s(function(){return n})},function(e){return d(function(){return e})})},[]),[l,u])};var p=n(0),v=n(510),m=new WeakMap,h={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AutoFocusInside",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"FocusLockUI",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"FreeFocusInside",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"InFocusGuard",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"MoveFocusInside",{enumerable:!0,get:function(){return o.default}}),t.default=void 0,Object.defineProperty(t,"useFocusController",{enumerable:!0,get:function(){return s.useFocusController}}),Object.defineProperty(t,"useFocusInside",{enumerable:!0,get:function(){return o.useFocusInside}}),Object.defineProperty(t,"useFocusScope",{enumerable:!0,get:function(){return s.useFocusScope}}),Object.defineProperty(t,"useFocusState",{enumerable:!0,get:function(){return c.useFocusState}});var r=u(n(516)),a=u(n(519)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==(n=e,("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n))&&"function"!=typeof e)return{default:e};var n,r=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(void 0);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(n(520)),i=u(n(521)),l=u(n(164)),s=n(522),c=n(523);function u(e){return e&&e.__esModule?e:{default:e}}var d=r.default;t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hiddenGuard=t.default=void 0;var r,a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==(n=e,("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n))&&"function"!=typeof e)return{default:e};var n,r=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(void 0);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(n(0));(r=n(6))&&r.__esModule;var o={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};t.hiddenGuard=o;var i=function(e){var t=e.children,n=void 0===t?null:t;return a.default.createElement(a.Fragment,null,a.default.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:o}),n,n&&a.default.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:o}))};i.propTypes={};var l=i;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.focusScope=void 0;var r=(0,n(0).createContext)(void 0);t.focusScope=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AutoFocusInside",{enumerable:!0,get:function(){return o.AutoFocusInside}}),Object.defineProperty(t,"InFocusGuard",{enumerable:!0,get:function(){return o.InFocusGuard}}),Object.defineProperty(t,"MoveFocusInside",{enumerable:!0,get:function(){return o.MoveFocusInside}}),t.classNames=void 0;var r=n(13),a=n(159),o=n(163),i=(0,r.__assign)({},a.RemoveScroll.classNames);t.classNames=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tabSort=t.orderByTabIndex=void 0;var r=n(17),o=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),a=n-r,o=e.index-t.index;if(a){if(!n)return 1;if(!r)return-1}return a||o};t.tabSort=o,t.orderByTabIndex=function(e,t,a){return(0,r.toArray)(e).map(function(e,t){var n,r=(n=e).tabIndex<0&&!n.hasAttribute("tabindex")?0:n.tabIndex;return{node:e,index:t,tabIndex:a&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||0<=e.tabIndex}).sort(o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParentAutofocusables=t.getFocusables=void 0;var r=n(16),i=n(17),l=n(533).tabbables.join(","),s="".concat(l,", [data-focus-guard]"),c=function(e,o){return e.reduce(function(e,t){var n,r=function n(e,r){return(0,i.toArray)((e.shadowRoot||e).children).reduce(function(e,t){return e.concat(t.matches(r?s:l)?[t]:[],n(t))},[])}(t,o),a=(n=[]).concat.apply(n,r.map(function(e){return n=o,(t=e)instanceof HTMLIFrameElement&&(null===(r=t.contentDocument)||void 0===r?void 0:r.body)?c([t.contentDocument.body],n):[t];var t,n,r}));return e.concat(a,t.parentNode?(0,i.toArray)(t.parentNode.querySelectorAll(l)).filter(function(e){return e===t}):[])},[])};t.getFocusables=c,t.getParentAutofocusables=function(e){var t=e.querySelectorAll("[".concat(r.FOCUS_AUTO,"]"));return(0,i.toArray)(t).map(function(e){return c([e])}).reduce(function(e,t){return e.concat(t)},[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.focusSolver=void 0;var _=n(536),g=n(20),b=n(91),y=n(17),S=n(537),E=n(92),T=n(37),C=n(172);t.focusSolver=function(e,t){var n=(0,E.getActiveElement)(0<(0,y.asArray)(e).length?document:(0,y.getFirst)(e).ownerDocument),r=(0,b.getAllAffectedNodes)(e).filter(T.isNotAGuard),a=(0,C.getTopCommonParent)(n||e,e,r),o=new Map,i=(0,g.getFocusableNodes)(r,o),l=i.filter(function(e){var t=e.node;return(0,T.isNotAGuard)(t)});if(l[0]){var s,c,u,d=(0,g.getFocusableNodes)([a],o).map(function(e){return e.node}),f=(s=d,c=l,u=new Map,c.forEach(function(e){return u.set(e.node,e)}),s.map(function(e){return u.get(e)}).filter(T.isDefined)),p=f.map(function(e){return e.node}),v=f.filter(function(e){return 0<=e.tabIndex}).map(function(e){return e.node}),m=(0,_.newFocus)(p,v,d,n,t);if(m===_.NEW_FOCUS){var h=(0,S.pickAutofocus)(i,v,(0,C.allParentAutofocusables)(r,o))||(0,S.pickAutofocus)(i,p,(0,C.allParentAutofocusables)(r,o));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===m?m:f[m]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.correctNodes=t.correctNode=void 0;var r=n(37),a=function(e,t){return(0,r.isRadioElement)(e)&&e.name?(n=e,t.filter(r.isRadioElement).filter(function(e){return e.name===n.name}).filter(function(e){return e.checked})[0]||n):e;var n};t.correctNode=a,t.correctNodes=function(t){var n=new Set;return t.forEach(function(e){return n.add(a(e,t))}),t.filter(function(e){return n.has(e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pickFocusable=t.pickFirstFocus=void 0;var r=n(170);t.pickFirstFocus=function(e){return e[0]&&1i[0]&&t[1]p[p.length-1])return p[p.length-1].length-1;var v=p.indexOf(f);if(-1===v)return 0;var m=p[v];return"0"===u[m].other?0:m.length-u[m].other.match(/0+/)[0].length}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToRawPrecision=function(e,t,n){var r,a,o,i,l=n;if(0===e)r=(0,g.repeat)("0",l),o=a=0;else{var s=e.toString(),c=s.indexOf("e"),u=s.split("e"),d=u[0],f=u[1],p=d.replace(".","");if(0<=c&&p.length<=l)a=+f,r=p+(0,g.repeat)("0",l-p.length),o=e;else{var v=(a=(0,g.getMagnitude)(e))-l+1,m=Math.round(_(e,v));10<=_(m,l-1)&&(a+=1,m=Math.floor(m/10)),r=m.toString(),o=_(m,l-1-a)}}if(l-1<=a?(r+=(0,g.repeat)("0",a-l+1),i=a+1):0<=a?(r="".concat(r.slice(0,a+1),".").concat(r.slice(a+1)),i=a+1):(r="0.".concat((0,g.repeat)("0",-a-1)).concat(r),i=1),0<=r.indexOf(".")&&te.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>((3&t)<<3)&255;return o}}},function(e,t,n){"use strict";for(var a=[],r=0;r<256;++r)a[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,r=a;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}},function(e,t,n){"use strict";var l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n overrides the height property of the style prop"));var o=i(i({},n),{height:a?a+"px":"100vh"});return l.default.createElement("div",i({ref:t,style:o},r))});r.displayName="Div100vh";var a=r;function c(){var e,t,n,r=(0,l.useState)(u),a=r[0],o=r[1],i=(e=(0,l.useState)(!1),t=e[0],n=e[1],(0,l.useEffect)(function(){d()&&n(!0)},[]),t);return(0,l.useEffect)(function(){if(i)return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)};function e(){var e=u();o(e)}},[i]),i?a:null}function u(){return d()?window.innerHeight:null}function d(){return"undefined"!=typeof window&&"undefined"!=typeof document}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FocusOn=void 0;var r,a=n(13),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==(n=e,("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n))&&"function"!=typeof e)return{default:e};var n,r=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(void 0);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(n(0)),i=n(503),l=(r=n(525))&&r.__esModule?r:{default:r};var s=function(e){return o.createElement(l.default,(0,a.__assign)({},e))},c=o.forwardRef(function(e,t){return o.createElement(i.FocusOn,(0,a.__assign)({},e,{ref:t,sideCar:s}))});t.FocusOn=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={FocusOn:!0};t.FocusOn=void 0;var a,N=n(13),R=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==(n=e,("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n))&&"function"!=typeof e)return{default:e};var n,r=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(void 0);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(n(0)),k=n(159),x=(a=n(163))&&a.__esModule?a:{default:a},D=n(68),o=n(166);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var j={preventScroll:!0},i=R.forwardRef(function(e,t){var n=R.useState(!1),r=n[0],a=n[1],o=e.children,i=e.autoFocus,l=e.shards,s=e.crossFrame,c=e.enabled,u=void 0===c||c,d=e.scrollLock,f=void 0===d||d,p=e.focusLock,v=void 0===p||p,m=e.returnFocus,h=void 0===m||m,_=e.inert,g=e.allowPinchZoom,b=e.sideCar,y=e.className,S=e.shouldIgnore,E=e.preventScrollOnFocus,T=e.style,C=e.as,O=e.gapMode,A=(0,N.__rest)(e,["children","autoFocus","shards","crossFrame","enabled","scrollLock","focusLock","returnFocus","inert","allowPinchZoom","sideCar","className","shouldIgnore","preventScrollOnFocus","style","as","gapMode"]),w=b,I=r.onActivation,L=r.onDeactivation,P=(0,N.__rest)(r,["onActivation","onDeactivation"]),M=(0,N.__assign)((0,N.__assign)({},P),{as:C,style:T,sideCar:b,shards:l,allowPinchZoom:g,gapMode:O,inert:_,enabled:u&&f});return R.createElement(R.Fragment,null,R.createElement(x.default,{ref:t,sideCar:b,disabled:!(r&&u&&v),returnFocus:h,autoFocus:i,shards:l,crossFrame:s,onActivation:I,onDeactivation:L,className:y,whiteList:S,lockProps:M,focusOptions:E?j:void 0,as:k.RemoveScroll},o),u&&R.createElement(w,(0,N.__assign)({},A,{sideCar:D.effectCar,setLockProps:a,shards:l})))});t.FocusOn=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeRefs=function(e){return(0,a.createCallbackRef)(function(t){return e.forEach(function(e){return(0,r.assignRef)(e,t)})})};var r=n(48),a=n(90)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useMergeRefs=function(a,e){var o=(0,l.useCallbackRef)(e||null,function(t){return a.forEach(function(e){return(0,i.assignRef)(e,t)})});return s(function(){var e=c.get(o);if(e){var t=new Set(e),n=new Set(a),r=o.current;t.forEach(function(e){n.has(e)||(0,i.assignRef)(e,null)}),n.forEach(function(e){t.has(e)||(0,i.assignRef)(e,r)})}c.set(o,a)},[a]),o};var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==(n=e,("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n))&&"function"!=typeof e)return{default:e};var n,r=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(void 0);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(n(0)),i=n(48),l=n(89);var s="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,c=new WeakMap},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTransformRef=function(t,n){return(0,a.useCallbackRef)(null,function(e){return(0,r.assignRef)(t,n(e))})};var r=n(48),a=n(89)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transformRef=function(t,n){return(0,a.createCallbackRef)(function(e){return(0,r.assignRef)(t,n(e))})};var r=n(48),a=n(90)},function(e,t,n){"use strict";function a(t){return function(e){"function"==typeof t?t(e):t&&(t.current=e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.refToCallback=a,t.useRefToCallback=function(e){return r(e)};var o=function(){return null},i=new WeakMap,r=function(e){var t=e||o,n=i.get(t);if(n)return n;var r=a(t);return i.set(t,r),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sidecar=function(r,a){var o=function(){return a};return function(e){var t=(0,s.useSidecar)(r,e.sideCar),n=t[0];return t[1]&&a?o:n?l.createElement(n,(0,i.__assign)({},e)):null}};var i=n(13),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==(n=e,("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n))&&"function"!=typeof e)return{default:e};var n,r=function(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return function(e){return e?n:t}(e)}(void 0);if(r&&r.has(e))return r.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(n(0)),s=n(162)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.env=void 0;var r={isNode:n(511).isNode,forceCache:!1};t.env=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=void 0,t.isNode=!1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=t.config=void 0;var r={onError:function(e){return console.error(e)}};t.config=r,t.setConfig=function(e){Object.assign(r,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMedium=function(e,t){return void 0===t&&(t=a),o(e,t)},t.createSidecarMedium=function(e){void 0===e&&(e={});var t=o(null);return t.options=(0,r.__assign)({async:!0,ssr:!1},e),t};var r=n(13);function a(e){return e}function o(e,n){void 0===n&&(n=a);var o=[],i=!1;return{read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:e},useMedium:function(e){var t=n(e,i);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(t){for(i=!0;o.length;){var e=o;o=[],e.forEach(t)}o={push:function(e){return t(e)},filter:function(){return o}}},assignMedium:function(t){i=!0;var n=[];if(o.length){var e=o;o=[],e.forEach(t),n=o}var r=function(){var e=n;n=[],e.forEach(t)},a=function(){return Promise.resolve().then(r)};a(),o={push:function(e){n.push(e),a()},filter:function(e){return n=n.filter(e),o}}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.renderCar=function(a,r){function o(e){var n=e.stateRef,t=e.props,r=(0,s.useCallback)(function(){for(var e=[],t=0;tMath.abs(i)?"h":"v";if("touches"in e&&"h"===s&&"range"===l.type)return!1;var c=(0,y.locationCouldBeScrolled)(s,l);if(!c)return!0;if(c?n=s:(n="v"===s?"h":"v",c=(0,y.locationCouldBeScrolled)(s,l)),!c)return!1;if(!f.current&&"changedTouches"in e&&(o||i)&&(f.current=n),!n)return!0;var u=f.current||n;return(0,y.handleScroll)(u,t,e,"h"===u?o:i,!0)},[]),e=h.useCallback(function(e){var t=e;if(w.length&&w[w.length-1]===i){var n="deltaY"in t?E(t):S(t),r=o.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&C(e.delta,n)})[0];if(r&&r.should)t.cancelable&&t.preventDefault();else if(!r){var a=(p.current.shards||[]).map(T).filter(Boolean).filter(function(e){return e.contains(t.target)});(0