(function(b){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,a=d?d("TurboCheckoutBaseAssets@accessibility_switch",""):c;a.guardFatal?a.guardFatal(b)(a,window):a.execute(function(){b(a,window)})})(function(b,c,d){b.when("turbo-initiate-migration-switch").register("turbo-checkout-accessibility-switch",function(a){return{isEnabled:function(){return a.isEnabled()}}})}); /* ******** */ (function(b){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,a=d?d("TurboCheckoutBaseAssets@buy_now_to_tango_switch",""):c;a.guardFatal?a.guardFatal(b)(a,window):a.execute(function(){b(a,window)})})(function(b,c,d){b.when("turbo-configuration","buy-now-to-tango-switch-mobile","buy-now-to-tango-switch-desktop","buy-now-to-tango-switch-beta").register("buy-now-to-tango-switch",function(a,b,c,d){return{isEnabled:function(){return a.get(a.KEYS.IS_BUY_NOW_TO_TANGO_ENABLED)&&(b.isGatingWeblabEnabled()|| c.isGatingWeblabEnabled()||d.isGatingWeblabEnabled())}}});"use strict";b.when("turbo-checkout-page-ready").register("buy-now-to-tango-switch-mobile",function(){return{isGatingWeblabEnabled:function(){return!1}}});"use strict";b.when("turbo-checkout-page-state","turbo-checkout-page-ready").register("buy-now-to-tango-switch-desktop",function(a){return{isGatingWeblabEnabled:function(){return!0===a.get().isPrimeCustomer}}});"use strict";b.when("turbo-checkout-device-filter","turbo-checkout-page-ready").register("buy-now-to-tango-switch-beta", function(a){return{isGatingWeblabEnabled:function(){return a.isMashBeta()}}})}); /* ******** */ (function(a){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,b=d?d("TurboCheckoutBaseAssets@chewbacca_migration_switch",""):c;b.guardFatal?b.guardFatal(a)(b,window):b.execute(function(){a(b,window)})})(function(a,c,d){a.when("turbo-checkout-state-handler").register("turbo-chewbacca-migration-switch-non-prime-desktop",function(b){return{isGatingWeblabEnabled:function(){return!1},isShadowModeEnabled:function(){return!1}}});"use strict";a.when("turbo-checkout-state-handler").register("turbo-chewbacca-migration-switch-prime-desktop", function(b){return{isGatingWeblabEnabled:function(){!1},isShadowModeEnabled:function(){return!1}}});"use strict";a.when("turbo-checkout-state-handler").register("turbo-chewbacca-migration-switch-non-prime-mobile",function(b){return{isGatingWeblabEnabled:function(){return!1},isShadowModeEnabled:function(){return!1}}});"use strict";a.when("turbo-checkout-state-handler").register("turbo-chewbacca-migration-switch-prime-mobile",function(b){return{isGatingWeblabEnabled:function(){return!1},isShadowModeEnabled:function(){return!1}}}); "use strict";a.when("turbo-checkout-state-handler","turbo-chewbacca-migration-switch-prime-mobile","turbo-chewbacca-migration-switch-non-prime-mobile","turbo-chewbacca-migration-switch-prime-desktop","turbo-chewbacca-migration-switch-non-prime-desktop").register("turbo-chewbacca-migration-switch",function(b,a,c,d,e){return{isGatingWeblabEnabled:function(){return a.isGatingWeblabEnabled()||c.isGatingWeblabEnabled()||d.isGatingWeblabEnabled()||e.isGatingWeblabEnabled()},isShadowModeEnabled:function(){return a.isShadowModeEnabled()}}})}); /* ******** */ (function(c){var a=window.AmazonUIPageJS||window.P,d=a._namespace||a.attributeErrors,b=d?d("TurboCheckoutBaseAssets@chewbacca_migration_switch_beta",""):a;b.guardFatal?b.guardFatal(c)(b,window):b.execute(function(){c(b,window)})})(function(c,a,d){c.when("turbo-checkout-state-handler","turbo-checkout-device-filter").register("turbo-chewbacca-migration-switch-beta",function(b,c){return{isGatingWeblabEnabled:function(){var a=b.getClientId();return!("primewardrobe"===a||"primestylist"===a)&&c.isMashBeta()}, isShadowModeEnabled:function(){return!1}}})}); /* ******** */ (function(a){var c=window.AmazonUIPageJS||window.P,f=c._namespace||c.attributeErrors,b=f?f("TurboCheckoutBaseAssets@initiate_migration_switch",""):c;b.guardFatal?b.guardFatal(a)(b,window):b.execute(function(){a(b,window)})})(function(a,c,f){a.when("turbo-initiate-migration-switch-mobile","turbo-initiate-migration-switch-desktop").register("turbo-initiate-migration-switch",function(b,a){return{isEnabled:function(){return b.isEnabled()||a.isEnabled()}}});"use strict";a.when("turbo-chewbacca-migration-switch", "turbo-checkout-weblab-allocation").register("turbo-initiate-migration-switch-mobile",function(b,a){return{isEnabled:function(){return!1}}});"use strict";a.when("turbo-chewbacca-migration-switch","turbo-checkout-weblab-allocation").register("turbo-initiate-migration-switch-desktop",function(b,a){var c=["PAX_TURBO_INITIATE_MIGRATION_DESKTOP_868123","PAX_TURBO_INITIATE_MIGRATION_DESKTOP_NON_PRIME_986684"];return{isEnabled:function(){var d;if(d=b.isGatingWeblabEnabled())a:{d=a.getTurboRedesignWeblabs(); for(var e=0;eb.indexOf(g)&&b.push(g)}}a=b}else b:{h=[];for(y=0;yh.indexOf(g)&&h.push(g)}a=h}if(0===a.length)t.logCountSimple("NO_BUY_NOW_TO_TANGO_PARAMETER_WEBLABS"),a=[];else{b=l.getBuyNowToTangoWeblabs();h=0;y="";for(g=0;g=g:0===g}function w(){var c=0;n().each(function(){t(this).prop("checked")&&c++});a.logDebug("turbo-checkout-accessories-input","Accessories selected "+c);return c}var t=b.$,u= d.create(),g=0,v,r=h.get(h.KEYS.ENABLED_ACCESSORIES_SELECTOR);l();p();e.bind(function(){l();p();w()});return{isEligible:q,registerCallback:function(a){u.push(a)},getLineItem:function(){if(q()){var a=n().filter(":checked").val();a=v?v[a]:void 0;return a||C}return C},select:function(a){a&&t(r+" input[type\x3dcheckbox][value\x3d"+a+"]").click()}}});"use strict";g.when("A","turbo-checkout-utils","turbo-callback-list","turbo-checkout-load-events","turbo-checkout-page-ready").register("turbo-checkout-devices-accessories-input", function(b,a,d,e){function f(){var d=c("#accessory-upsell-container").find("input[type\x3dcheckbox]");for(var f=!1,b=0;b=a.length)v("CSRF Token is empty. This will result in denied requests."),d.logCount("turboCheckoutNoValidCSRFToken");return a},getClientId:function(){return z.getClientId()},getHoldbackSecondaryPanelsWeblab:function(){try{return JSON.parse(z.getHoldbackSecondaryPanelsWeblab())}catch(E){d.logCount("turboCheckoutParseHoldbackSecondaryPanelsWeblabException"),v("JSON::parse exception. Exception \x3d "+E)}}}});"use strict";g.when("A","turbo-checkout-utils", "turbo-checkout-page-ready").register("turbo-checkout-aui-page-state-parser",function(b,a){var d=b.$;return{parse:function(b,f){b="script[data-a-state*\x3d'"+b+"'], #"+b;f=f?d(f).find(b):d(b);b=[];for(var c=0;c"']/g,function(a){return e[a]})}}});"use strict";g.when("turbo-checkout-utils","turbo-checkout-page-ready").register("turbo-checkout-csm",function(b){function a(a,c,b,d){return"function"===typeof x.uet?x.uet.apply(x.uet,arguments):d||e()}function d(a,c,b){return"function"===typeof x.ues?x.ues.apply(x.ues,arguments):b}function e(){return+new Date} function f(c){function b(){k&&f&&l&&h&&!g&&"function"===typeof u&&(u(k,f,l,h),g=!0)}var f,h,l,k,g=!1,u;this.getId=function(){return c};this.markClick=function(){k=a("tc",c)};this.markFirstByte=function(){f=d("t0",c,e())};this.markAboveTheFold=function(){l=a("af",c);b()};this.markCriticalFeature=function(){h=a("cf",c);b()};this.whenDataSet=function(a){u=a;b()}}function c(a){"undefined"!==typeof x.ue_t0&&x.ue.count(a,Date.now()-x.ue_t0)}var h=0,k=[];return{createScope:function(){return new f("chk_turbo_"+ ++h)},logCount:function(a,d){d=d||1;b.logDebug("Logging counter "+a+" with value "+d);if(x.ue&&x.ue.count){var e=a+"_time";x.ue.count(a,d);c(e);for(var f=0;f=a.length&&k.test(a))||l.test(a))throw Error("Invalid ref tag. This would be filtered and replaced in clickstream. Value \x3d "+ a);return a}var h={ELIGIBILITY:"eligibility",BUY_NOW:"buyNow",CLOSE:"close"},k=/(^[A-z]$|^[A-z][A-z0-9_-]*[A-Za-z0-9]$)/,l=/[_-]{2,}/,m=a.get(a.KEYS.HOST_PAGE_TYPE_IDENTIFIER);return{generateRefTag:function(a,c,b){return"ref_\x3d"+f(a,c,b)},generateValue:f,generateJoinedValue:function(a){if(!a)return f(m,h.BUY_NOW,"fallback");try{var b=a+"_"+(h.BUY_NOW+"_"+e.getPrefetchCount()+"-"+e.getSheetOpenCount());return c(b)}catch(q){return d.logError(q.message,"turbo-checkout-ref-tagger"),f(m,h.BUY_NOW,"fallback")}}, generateEligibilityValue:function(){return f(m,h.ELIGIBILITY)},ACTIONS:h,TAGS:{TOUCH:"touch",TOUCH_X:"touchX",BACK:"back",ROTATION:"rotation",DONE:"done"}}});"use strict";g.when("A","turbo-checkout-page-ready").register("turbo-checkout-prefetch-timer",function(b){function a(){c||(c=!0,b.trigger("turbo:checkout:timer:onTimeout"))}function d(){if(c)return!0;var a=(new Date).getTime();return f?6E5<=a-f:!1}var e,f,c=!1;return{startTimer:function(){e||(e=x.setTimeout(a,6E5));f||(f=(new Date).getTime())}, isTimeout:d,resetTimer:function(){x.clearTimeout(e);c=!1;f=e=null},checkTimeout:function(){d()&&a()}}});"use strict";g.when("A","jQuery","turbo-checkout-csm","turbo-checkout-utils","turbo-checkout-state-handler","turbo-checkout-form","turbo-checkout-buy-now-onclick-handler","turbo-configuration","turbo-checkout-page-ready").register("turbo-checkout-buy-now-button",function(b,a,d,e,f,c,h,k){function l(a,c){e.logDebug("turbo-checkout-buy-now-button",a,c)}function m(c){return c?g(c):a(f.getInitiateSelector())} function g(c){var b=a("#"+c),f=k.get(k.KEYS.BUY_NOW_CSS_CLASS_TO_RESOLVE_DUPLICATE_BUTTON_ID);if(!f)return b;var h=a("[id\x3d"+c+"]");if(2>h.length)return b;d.logCount("turboCheckoutBuyNowDuplicateIdPresent");l("Duplicate nodes present for BuyNow button ID: #"+c+". Resolving BuyNow button with CSS: "+f);h=h.filter(f);return 1!==h.length?(d.logCount("turboCheckoutBuyNowUnableToResolveButtonIdWithCss"),e.logError("Unable to resolve a unique BuyNow button with CSS: "+f+". Defaulting to first button with ID: #"+ c,"turbo-checkout-buy-now-button",void 0),b):h}function p(b){l("Buy now button clicked");d.logCount("turboCheckoutBuyNowClicked");"landscape"===x?d.logCount("turboCheckoutLandscapeOrientation"):d.logCount("turboCheckoutPortraitOrientation");h.isConflictingOnClickListenerPresent(a(b.currentTarget))&&(B=!0);b&&b.currentTarget&&b.currentTarget.id||(l("Click event target is INVALID. Expected event target with an id. Turbo will NOT show",b),B=!0);if(B)B=!1,l("Buy now button callbacks supressed");else{f.resolveProductState(b.currentTarget.id); l("Calling buy now button callbacks...");var e=!1;for(var k=0;ka?e:a,b!==e&&this.onBoundsAdjustedCallbacks.callAll(e))};d.prototype.updateScrollHeight=function(a,c){c&&a!==c?(this.$getIFrame().height(c),this.$getIFrameContainer().css("overflow-y","scroll"),this.$getIFrameContainer().css("-webkit-overflow-scrolling", "touch")):(this.$getIFrame().height("100%"),this.$getIFrameContainer().css("overflow-y",""),this.$getIFrameContainer().css("-webkit-overflow-scrolling",""))};d.prototype.getHeight=function(){return this.$getIFrameContainer().height()};d.prototype.$getIFrameContainer=function(){return e(this.IFRAME_CONTAINER_SELECTOR)};d.prototype.$getIFrame=function(){return e(this.IFRAME_CONTAINER_SELECTOR+" iframe")};d.prototype.pushBoundsAdjustedCallback=function(a){this.onBoundsAdjustedCallbacks.push(a)};return{extend:function(){function a(){d.apply(this, arguments)}a.prototype=Object.create(d.prototype);return a.prototype.constructor=a}}});"use strict";g.when("turbo-configuration","turbo-checkout-page-ready").execute("turbo-eligible-state-check",function(b){b.get(b.KEYS.EXTEND_ELIGIBLE_STATE)||g.when("turbo-base-eligible-state").register("turbo-checkout-eligible-state",function(a){return{canShow:a.canShow,registerStateChangeCallback:a.registerStateChangeCallback,setup:a.setup}})});"use strict";g.when("A","turbo-checkout-state-handler","turbo-configuration", "turbo-checkout-utils","turbo-checkout-page-ready").register("turbo-checkout-weblab-allocation",function(b,a,d){function e(){return a.getWeblabAllocation()}function f(){return a.getExperimentName()}function c(c){for(var b=a.getAdditionalWeblabAndTreatmentMap(),d={},e=0;ed.readyState)A("Ignoring ready state changed event because headers already received or missing xhr");else if(L=!0,l.logCount("turboCheckoutPrefetchHeadersReceived"),l.logCount("turboCheckoutPrefetchHeadersReceivedDuration", Date.now()-M),d&&d.getResponseHeader("x-amz-turbo-checkout-eligible")){A("Headers received: Turbo eligible");l.logCount("turboCheckoutTurboEligibleAfterCheetahChecks");c=d&&d.getResponseHeader("x-amzn-checkout-login-required");var e=m.isSignInSupported();c&&(A("Headers received: Signin required"),l.logCount("turboCheckoutSigninRequired"),e||(A("Sign-in required but it is disabled or not supported."),l.logCount("turboCheckoutSigninNotSupported")));if(e||!c)A("Notifying turbo eligible callbacks"),T.callAll(), b.trigger("turbo:checkout:prefetch:onTurboEligible");G(d)&&U.callAll(d.getResponseHeader("x-amzn-checkout-login-provider"));N.callAll()}else A("Headers received: Not turbo eligible"),V.callAll(),b.trigger("turbo:checkout:prefetch:onTurboIneligible"),d&&d.getResponseHeader("x-amz-tango-checkout-eligible")?(l.logCount("tangoCheckoutEligibleAfterCheetahChecks"),W.callAll()):N.callAll()});return d}function A(a,b){h.logDebug("turbo-checkout-content-loader",a,b)}function G(a){return m.isSignInSupported()&& a&&a.getResponseHeader("x-amzn-checkout-login-required")}function D(a,c,d){l.logCount("turboCheckoutPrefetchEnd",Date.now()-M);J=null;c=d&&d.getResponseHeader("x-amz-turbo-checkout-eligible");var e=a&&a.match(Z);if(e&&0.*<\/script>/, Q=b.$,J,I="stopped",M,L=!1,R=!1,S=e.create("onStart"),X=e.create("onFinish"),Y=e.create("onError"),T=e.create("onTurboEligible"),V=e.create("onTurboIneligible"),W=e.create("onTangoEligible"),N=e.create("onTangoIneligible"),U=e.create("onSigninRequired");b.on("turbo:checkout:signInController:onDoSignIn",E);return{registerCallback:function(a){S.push(a);X.push(a);Y.push(a);T.push(a);U.push(a);V.push(a);W.push(a);N.push(a)},callInitiate:function(){A("Calling turbo initiate");k(!1)},checkEligibility:function(){A("Calling turbo eligibility check only"); k(!0)},abortCall:P,isSuccess:function(){return"success"===I},isError:function(){return"error"===I},isStarted:function(){return"started"===I},shadowCallChewbaccaInitiate:function(){q.isShadowModeEnabled()&&w.shadowCallChewbaccaInitiate()},isTurboOptimisticFlushingEnabled:K}});"use strict";g.when("A","jQuery","turbo-checkout-ref-tagger","turbo-checkout-utils","turbo-checkout-page-ready").register("turbo-checkout-history-manager",function(b,a,d,e){function f(){if(x.history.state&&x.history.state.turboAction)return x.history.state.turboAction} function c(){f();f()||(e.logDebug("turbo-checkout-history-manager","Adding turbo history state"),x.history.pushState({turboAction:"popover"},document.title+" Turbo open"))}var h=!1;a(x).bind("popstate.turbo",function(a){f();h?(e.logDebug("turbo-checkout-history-manager","Trigger Subpanel Back Clicked"),b.trigger("turbo:checkout:dimmer:clicked"),h=!1,c()):f()?(e.logDebug("turbo-checkout-history-manager","Trigger sheet open"),b.trigger("turbo:checkout:sheet:doOpen")):(e.logDebug("turbo-checkout-history-manager", "Trigger sheet close"),b.trigger("turbo:checkout:sheet:doClose",{immediate:!1,reason:d.TAGS.BACK}))});return{sheetOpened:c,sheetClosed:function(){f();f()&&(e.logDebug("turbo-checkout-history-manager","Removing turbo history state"),x.history.back())},subPanelOpened:function(){h=!0},subPanelClosed:function(){h=!1}}});"use strict";g.when("A","turbo-checkout-page-ready").register("turbo-base-visibility-manager",function(b){function a(){b.trigger("turbo:checkout:page:gone")}return{setup:function(){b.on("turbo:checkout:sheet:onNavigateAway", a)}}});g.when("turbo-configuration","turbo-checkout-page-ready").execute("turbo-mash-will-reappear-check",function(b){b.get(b.KEYS.USES_MASH_WILL_REAPPEAR)||g.when("turbo-base-visibility-manager").register("turbo-checkout-page-visibility-manager",function(a){return a})});"use strict";g.when("A","jQuery","turbo-checkout-view-state","turbo-checkout-weblab-allocation","turbo-checkout-state-handler","turbo-checkout-content-loader","turbo-checkout-prefetch-timer","turbo-checkout-page-visibility-manager", "turbo-checkout-counter","turbo-checkout-utils","turbo-checkout-eligibility-aggregator","turbo-checkout-auto-open","turbo-checkout-page-ready").register("turbo-checkout-prefetcher",function(b,a,d,e,f,c,h,g,l,m,n,p){function k(a){var c=t;t=a;m.logDebug("turbo-checkout-prefetcher","Transitioning from "+c.name+" to "+a.name);if(c.onExit)c.onExit(a.name);if(a.onEnter)a.onEnter(c.name);b.trigger("turbo:checkout:prefetcher:state:"+a.name);b.trigger("turbo:checkout:prefetcher:state",a.name)}var w,t,u=function(){var a= c.isError(),b=!n.isTurboOrTangoPrefetchEligible(),d=h.isTimeout(),e=0===w;m.logDebug("turbo-checkout-prefetcher","Test is data stale: isStaleWhenCheetahReturnsError: "+a+" isStaleWhenProductNotEligiblie: "+b+" isStaleWhenTimeoutOccurs: "+d+" isStaleWhenNoMorePrefetchesAvailable: "+e);return a||b||d||e},y=function(){var a=n.isTurboOrTangoPrefetchEligible()&&!h.isTimeout()&&0p.indexOf(a.namespace)}))&&0a.readyState?h("Chewbacca Request Ignoring ready state changed event because headers already received or missing xhr"):(t=!0,c.logCount("turboCheckoutChewbaccaHeadersReceived"), c.logCount("turboCheckoutChewbaccaHeadersReceivedDuration",Date.now()-w),a&&a.getResponseHeader("x-amz-turbo-checkout-eligible")?(h("Chewbacca Request Headers received: Turbo eligible"),c.logCount("turboCheckoutChewbaccaEligible")):(h("Chewbacca Request Headers received: Not turbo eligible"),c.logCount("turboCheckoutChewbaccaNotEligible")))});return a}function m(a,b,d){c.logCount("turboCheckoutChewbaccaCallEnd",Date.now()-w);u=null;b=d&&d.getResponseHeader("x-amz-turbo-checkout-eligible");if((a=a&& a.match(x))&&0.*<\/script>/,v=b.$;return{shadowCallChewbaccaInitiate:function(){c.logCount("turboCheckoutChewbaccaInitiate");u&&u.abort&&(h("Aborting running Chewbacca request..."),u.abort());t=!1;w=Date.now();c.logCount("turboCheckoutChewbaccaCallStart");var b=f.buildInitiatePathWith(a.getRefTag(),a.getExperimentName(),a.getClientId(),a.getRequestId(),a.getSessionId(),a.getLineItems(),!0);u=d.loadWithJQXHR(b,{type:"POST",data:p(),headers:q(), xhr:l,success:m,error:n})}}});"use strict";g.when("A","turbo-checkout-utils","turbo-checkout-page-ready").execute("turbo-checkout-buy-again-workaround",function(b,a){b.on("ride:show",function(){a.logDebug("turbo-checkout-buy-again-workaround","Firing page:gone event to reset prefetches");b.trigger("turbo:checkout:page:gone")})})}); /* ******** */ (function(f){var p=window.AmazonUIPageJS||window.P,r=p._namespace||p.attributeErrors,a=r?r("TurboCheckoutDesktopAssets",""):p;a.guardFatal?a.guardFatal(f)(a,window):a.execute(function(){f(a,window)})})(function(f,p,r){f.when("turbo-configuration-keys","turbo-checkout-page-ready").register("turbo-device-configuration",function(a){if(!c){var c={};c[a.SHOW_SIGN_IN_INTERFACE]="turbo-checkout-browser-signin";c[a.EXTEND_ELIGIBLE_STATE]=!1;c[a.IS_DEVICE_FILTER_REQUIRED]=!0;c[a.VIEW_ADAPTER]="turbo-checkout-modal"; c[a.WARRANTY_CHECKBOX_INPUT_SELECTOR]="input[id^\x3dmbb-offeringID-]";c[a.WARRANTY_CHECKBOX_RELATIVE_PARENT_SELECTOR]=".abbListItem";c[a.WARRANTY_OFFER_INPUT_SELECTOR]="input[id^\x3dmbb-offeringID-]:checked";c[a.WARRANTY_ASIN_INPUT_NAME]="asin"}return c});"use strict";f.when("A","turbo-checkout-csm","turbo-checkout-utils","turbo-configuration","turbo-checkout-device-variant","turbo-checkout-is-touch-and-orientation-enabled","turbo-checkout-page-ready").register("turbo-checkout-device-filter",function(a, c,g,f,h,p){function k(a){var b=!1;this.countOnce=function(){b||(c.logCount(a),b=!0)}}function d(a){g.logDebug("turbo-checkout-device-filter",a)}var r="turboCheckoutDisabledDesktopAuiVariant"+h,l,b,y,u,t,m,v;return{isDeviceTurboEligible:function(){l=l||new k("Desktop"===h?"turboCheckoutDesktopAuiVariantEligible":r);var e;(e=b)||(e=g.isInternetExplorer()?"turboCheckoutDisabledDesktopIE":g.isIPad()?"turboCheckoutDisabledDesktopIPad":g.isIPhone()?"turboCheckoutDisabledDesktopIPhone":g.isAndroid()?"turboCheckoutDisabledDesktopAndroid": "turboCheckoutDesktopUserAgentEligible",e=new k(e));b=e;y=y||new k("turboCheckoutDisabledDesktopTouch");u=u||new k("turboCheckoutDisabledDesktopOrientation");t=t||new k("turboCheckoutDisabledDesktopTouchAndOrientation");m=m||new k("turboCheckoutDisabledTurboDesktopOnDevice");v=v||new k("turboCheckoutEnabledTurboDesktopOnDevice");l.countOnce();"Desktop"===h||d("Aui device variant is NOT Desktop. Turbo will NOT show. Variant is "+h);(e="Desktop"!==h)||(b.countOnce(),e=!!(g.isInternetExplorer()||g.isIPad()|| g.isAndroid()||g.isIPhone()));if(e)return m.countOnce(),!1;if(e=a.capabilities.touch)y.countOnce(),d("Touch enabled device. Turbo will NOT show");var c=a.capabilities.orientation;c&&(u.countOnce(),d("Orientation enabled device. Turbo will NOT show"));e&&c&&t.countOnce();if((e||c)&&!p)return m.countOnce(),!1;v.countOnce();return!0},isSignInSupported:function(){return f.get(f.KEYS.IS_SIGN_IN_SUPPORTED)},isMashBeta:function(){return!1},isBuyNowToTangoSupported:function(){return!0}}});"use strict";f.when("turbo-checkout-page-ready").execute(function(){f.declare("turbo-checkout-device-variant", "Desktop")});"use strict";f.when("A","a-modal","turbo-checkout-csm","turbo-checkout-utils","turbo-checkout-iframe","turbo-checkout-base-view","turbo-checkout-loading-spinner","turbo-checkout-view-state","turbo-checkout-ref-tagger","turbo-checkout-strings","turbo-checkout-page-ready").register("turbo-checkout-modal",function(a,c,f,F,h,G,k,d,z,l){function b(a){F.logDebug("turbo-checkout-modal",a)}function g(){!A()||d.isOpeningOrOpen()?b("show() suppressed. View is null or undefined or view state is opening or open"): (d.setToOpening(),m().show())}function u(){w&&d.isOpeningOrOpen()&&(h.appendTo(e()),h.write(w))}function t(){h.remove();if(0