From 93bfe138e53ce7907838066e5fd842d6028f3db0 Mon Sep 17 00:00:00 2001 From: Usama Abdul Sattar Date: Sat, 14 Jul 2018 10:05:55 +0500 Subject: [PATCH] fix all 404s --- .../index_files/javascript-packed.js.download | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/WebPages/iCloud/index_files/javascript-packed.js.download b/WebPages/iCloud/index_files/javascript-packed.js.download index 2f3c0df..c11da57 100644 --- a/WebPages/iCloud/index_files/javascript-packed.js.download +++ b/WebPages/iCloud/index_files/javascript-packed.js.download @@ -770,7 +770,7 @@ t.get("length"):t.length,r,i;for(r=0;r1?"/system/cloudos/1812Project43/cloudkit/foundation/1812Project43/en-us/source/resources/images/no_photo@2x.png":"/system/cloudos/1812Project43/cloudkit/foundation/1812Project43/en-us/source/resources/images/no_photo.png",photoChanged:NO,meCardUrl:function(){var e=CK.servicesController.getServiceUrlFor("contacts")+"/co/mecard/";return e}.property(),meCard:null,meCardRequirementSatisfied:NO,imgLoadError:NO,shouldCreateMeCard:NO,getMeCard:function(e){if(!CK.servicesController.getServiceInfoFor("contacts")){SC.debug("meCardController: not requesting me-card since contacts is disabled."),this.set("meCardRequirementSatisfied",YES),e instanceof Function&&e(1);return}var t=this.get("meCardUrl"),n=CK.Request.getUrl(t,null),r=this;n.set("reportRequest",YES),n.notify(200,this,function(t){var n=t.get("body");return typeof n=="string"&&(n=JSON.parse(n)),!n||!n.contacts?(SC.debug("no me-card is set"),r.set("shouldCreateMeCard",YES),r.set("meCard",{})):(SC.debug("meCardController: me-card received"),r.set("meCard",n.contacts[0])),e instanceof Function&&e(0),r.set("meCardRequirementSatisfied",YES),YES}),n.notify(0,this,function(t){SC.debug("meCardController: problem receiving me-card");if(CloudOS.getEnvironment()==="DEMO"){SC.debug("meCardController: using appleseed me-card in DEMO");var n="/system/cloudos/1812Project43/cloudkit/foundation/1812Project43/en-us/source/resources/images/appleseed_small.jpg" +get("frame"),h=e.get("value");o&&a.css(s?"top":"left",null),s?(f.css("width",h+"%"),l.css("left",h+"%"),a.css("left",h+"%")):(f.css("height",h+"%"),l.css("top",h+"%"),a.css("top",100-h+"%"))}}}),CK.meCardController=SC.Object.create({NO_PHOTO_SRC:window.devicePixelRatio>1?"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/foundation/1812Project43/en-us/source/resources/images/no_photo@2x.png":"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/foundation/1812Project43/en-us/source/resources/images/no_photo.png",photoChanged:NO,meCardUrl:function(){var e=CK.servicesController.getServiceUrlFor("contacts")+"/co/mecard/";return e}.property(),meCard:null,meCardRequirementSatisfied:NO,imgLoadError:NO,shouldCreateMeCard:NO,getMeCard:function(e){if(!CK.servicesController.getServiceInfoFor("contacts")){SC.debug("meCardController: not requesting me-card since contacts is disabled."),this.set("meCardRequirementSatisfied",YES),e instanceof Function&&e(1);return}var t=this.get("meCardUrl"),n=CK.Request.getUrl(t,null),r=this;n.set("reportRequest",YES),n.notify(200,this,function(t){var n=t.get("body");return typeof n=="string"&&(n=JSON.parse(n)),!n||!n.contacts?(SC.debug("no me-card is set"),r.set("shouldCreateMeCard",YES),r.set("meCard",{})):(SC.debug("meCardController: me-card received"),r.set("meCard",n.contacts[0])),e instanceof Function&&e(0),r.set("meCardRequirementSatisfied",YES),YES}),n.notify(0,this,function(t){SC.debug("meCardController: problem receiving me-card");if(CloudOS.getEnvironment()==="DEMO"){SC.debug("meCardController: using appleseed me-card in DEMO");var n="/system/cloudos/1812Project43/cloudkit/foundation/1812Project43/en-us/source/resources/images/appleseed_small.jpg" ;r.set("meCard",{photo:{url:n,crop:{height:165,width:165,y:22,x:11}}})}else r.set("shouldCreateMeCard",YES);return e instanceof Function&&e(1),r.set("meCardRequirementSatisfied",YES),YES}),SC.debug("Sending me card GET request to %@",t),n.send()},storeMeCard:function(e,t){var n=this.get("meCard");if(!CK.servicesController.getServiceInfoFor("contacts")){SC.debug("meCardController: not storing me-card since contacts is disabled.");return}var r=this.get("shouldCreateMeCard"),i=r?"POST":"PUT",s=this.get("meCardUrl")+"?method="+i,o=CK.Request.postUrl(s,null),u=this,a,f;o.set("isJSON",YES),o.set("reportRequest",YES),a=n?n:{};if(e)for(f in e){if(!e.hasOwnProperty(f))continue;a[f]=e[f]}o.notify(200,this,function(e){var n=e.get("body");return n.contacts?(u.set("shouldCreateMeCard",NO),SC.debug("me-card received"),this.set("meCard",n.contacts[0])):SC.debug("no me-card is set"),t instanceof Function&&t(0),YES}),o.notify(0,this,function(e){return SC.debug("problem storing me-card"),t instanceof Function&&t(1),YES});if(r){a.contactId=CW.upperCaseUUID();var l=CloudOS.authController,c=l.get("user"),h=c.get("isPrimaryAppleIdTypeEmail"),p=c.get("isPrimaryAppleIdTypePhoneNumber"),d=c.get("displayablePrimaryAppleId"),v=[{field:d}];a.firstName=c.get("firstName"),a.lastName=c.get("lastName"),h?(v[0].label="home",a.emailAddresses=v):p&&(v[0].label="mobile",a.phones=v)}var m={contacts:[a]};SC.debug("Sending me card GET request to %@",s),o.send(m)},completePhotoPicker:function(e){var t={url:e.photoUrl,crop:e.photoCrop,signature:e.photoSignature};this.set("photo",t),this.set("photoChanged",YES)},meCardPosted :function(){this.getMeCard()},photoUrl:function(e,t){if(t===undefined)return this.getPath("photo.url")||null;var n=this.get("photo");n.url=t}.property("photo"),photoCrop:function(e,t){if(t===undefined)return this.getPath("photo.crop")||null;var n=this.get("photo");n.crop=t}.property("photo"),photoSignature:function(e,t){if(t===undefined)return this.getPath("photo.signature");var n=this.get("photo");n.signature=t}.property("photo"),photo:function(e,t){if(t===undefined)return this.getPath("meCard.photo");var n=this.get("meCard");n&&(n.photo=t)}.property("meCard"),isPhotoUrlValid:function(){return!this.get("imgLoadError")&&!!this.get("photoUrl")}.property("photoUrl","imgLoadError"),deletePhoto:function(){this.set("photo",null),this.set("photoChanged",YES)},reset:function(){this.set("meCard",null),this.set("meCardRequirementSatisfied",NO)}}),CK.StatsController=SC.Object.extend({_statsQueue:[],statSessionId:null,STAT_COALESCING_WINDOW:8e3,includedParams:{},recordStat:function(e,t,n){var r,i,s=this.get("includedParams"),o=e+t,u=window.CloudOS&&!CloudOS.isCloudOSClient,a=u&&CloudOS.getClientId?CloudOS.getClientId():this.get("statSessionId");r={statName:o,statSessionId:a,hostname:window.location.hostname,buildNumber:SC.buildNumber,platform:window.CloudOSBootstrap&&CloudOSBootstrap.isOnSupportedMobile?"mobile":"desktop"};if(!n||!n.appName)r.appName=e;for(var f in s)r[f]=s[f];i=SC.merge(n,r);try{SC.json.encode(i)}catch(l){CW.fatalError("'%@' stat from '%@' cannot be encoded, possibly a circular reference.".fmt(t,e))}this._statsQueue.push(i),this.invokeOnceLater(this.sendStats,this.STAT_COALESCING_WINDOW )},_benchmarkStats:{},getStat:function(e,t){return this._getBenchmark(e,t)},beginStat:function(e,t,n){if(this.getStat(e,t)){SC.warn("%@ stat already exists for %@",t,e);return}n=n||{},n._startTime=SC.getCurrentTimeForPerformance(),this._recordBenchmark(e,t,n)},endStat:function(e,t,n,r){var i=this.getStat(e,t),s,o,u;r&&(s=r.durationKeyName,o=r.includeLocationAndLocale,u=r.includeLocationUrlDetails);if(!i){SC.warn("%@ stat does not exist for %@",t,e);return}s=s?s:"duration",i[s]=SC.getCurrentTimeForPerformance()-i._startTime,delete i._startTime;var a=SC.merge(n,i);o&&(a=this.includeLocationAndBrowserLocale(a)),u&&(a=this.includeLocationUrlDetails(a)),this.recordStat(e,t,a),this._clearBenchmark(e,t)},cancelStat:function(e,t){var n=this._getBenchmark(e,t);n&&this._clearBenchmark(e,t)},_getBenchmark:function(e,t){var n=this._benchmarkStats;if(!n[e]||!n[e][t])return;return n[e][t]},_clearBenchmark:function(e,t){var n=this._benchmarkStats;delete n[e][t]},_recordBenchmark:function(e,t,n){var r=this._benchmarkStats;r[e]||(r[e]={}),r[e][t]=n},endAllBenchmarkStats:function(e){var t=this._benchmarkStats,n,r,i;for(n in t){if(e&&n!==e)continue;for(r in t[n])i=t[n][r],this.endStat(n,r,i)}},sendStats:function(e,t){var n=this._statsQueue;if(!n||n.length===0)return;var r=CW.Request.postUrl("/reportStats");r.set("addressPrefix","https://feedbackws.%{currentDomain}".fmt({currentDomain:COS.authController.get("currentDomain")})),r.set("useCrossDomain",YES),r.set("isJSON",YES),r.set("attachIdentifyingHeaders",NO),r.set("isAsynchronous",e===undefined?YES:e),r.set("timeout",null),r.header("Content-Type" @@ -796,7 +796,7 @@ debug("Suspending requests to “%@” service…",e),t[e]=YES},resumeService:fu ),this.get("isVisible")?e.attr("aria-hidden",NO):e.attr("aria-hidden",YES)}}),dividerView:SC.View.design(SC.RTLSupport,{classNames:["account-menu-divider"],layoutRecipe:{centerY:0,width:1,height:22,end:e}}),helpButton:SC.ImageButtonView.design(SC.RTLSupport,{layoutRecipe:{top:0,bottom:0,width:e,end:0},image:"help-icon",targetBinding:"CK.currentApplication",action:"showHelp",toolTip:"Toolbar.Button.Action.Help",localize:YES,acceptsFirstResponder:function(){return this.getPath("parentView.accountButton.acceptsFirstResponder")}.property("parentView.accountButton"),render:function(e,t){arguments.callee.base.apply(this,arguments),this.get("isVisible")?e.attr("aria-hidden",NO):e.attr("aria-hidden",YES)},click:function(e){var t=this.get("layer");if(!t)return;return SC.Event.trigger(t,"mousedown"),SC.Event.trigger(t,"mouseup"),YES},keyDown:function(e){return e.which===SC.Event.KEY_RETURN||e.which===32?this.click():NO}}),buttonWidthDidChange:function(){var e=this.get("preferredWidth");this.set("calculatedWidth",e),this.get("shouldAutoResize")&&this.adjust("width",e)}.observes("preferredWidth"),accountButtonPreferredWidth:0,accountButtonPreferredWidthBinding:".accountButton.preferredWidth",accountButtonSmallestNonTruncatedWidth:0,accountButtonSmallestNonTruncatedWidthBinding:".accountButton.smallestNonTruncatedWidth",preferredWidth:function(){var e=SC.browser.isIE||SC.browser.isEdge?1:0;return Math.min(this.get("accountButtonPreferredWidth")+t+e,n)}.property("accountButtonPreferredWidth").cacheable(),smallestNonTruncatedWidth:function(){return Math.min(this.get("accountButtonSmallestNonTruncatedWidth" )+t,n)}.property("accountButtonSmallestNonTruncatedWidth").cacheable()})}(),CK.AddDeleteButton=SC.ImageButtonView.extend({layout:{left:0,height:17,centerY:0,width:17},acceptsFirstResponder:NO,classNames:["add-delete"],action:"buttonClicked",isEmpty:YES}),function(){var e=13,t=82;CK.AppSwitcherView=SC.View.extend({calculatedWidth:0,shouldAutoResize:YES,title:null,useLightText:NO,themeName:"icloud-controls",classNames:["app-switcher"],childViews:["buttonView"],buttonWidthDidChange:function(){var n=t+e+this.getPath("buttonView.measuredSize").width;this.set("calculatedWidth",n),this.get("shouldAutoResize")&&this.adjust("width",n)}.observes("buttonView.measuredSize"),targetFrame:function(){var e=SC.clone(this.getPath("buttonView.frame"));return e=this.convertFrameToView(e,null),e.left=e.x,e.top=e.y,e}.property(),buttonView:SC.ButtonView.design(SC.AutoResize,{init:function(){arguments.callee.base.apply(this,arguments),CK.appSwitcherKeyResponder.registerAppSwitcher(this),CW.notificationCenter.subscribeToNotification("miniSpringboardDismissed",this,this.miniSpringboardDismissed),this.watchForSizeChange()},showAppSwitcherFromKeyboardShortcut:function(){if(!this.get("isVisibleInWindow")||!this.getPath("pane.isKeyPane")||SC.RootResponder.responder.get("menuPane"))return;return this.triggerActionFromKeyboardShortcut(),YES},shouldAutoResize:NO,layout:{left:e,top:-6,bottom:0},classNames:["large-display-text"],controlSize:SC.HUGE_CONTROL_SIZE,themeName:"borderless",acceptsFirstResponder:NO,watchForSizeChange:function(){if(!SC.browser.isSafari&&!SC.browser.isWindows)return;var e=SC.Timer.schedule ({interval:100,repeats:YES,target:this,action:function(){this.measureSize();var t=this.getPath("layer.clientWidth"),n=CK.getPath("currentApplication.isActive");(n||this._previousWidth&&t!==this._previousWidth)&&e.invalidate(),this._previousWidth=t}})},render:function(e,t){arguments.callee.base.apply(this,arguments);if(t){var n=this.getPath("parentView.useLightText");e.push('
'),this.get("isEnabled")&&!CloudOS.isOnSupportedMobile()&&e.push('
')}},mouseUp:function(){var e=arguments.callee.base.apply(this,arguments);return this.set("isActive",YES),e},action:function(){CloudOS.isOnSupportedMobile()||CloudOS.showAppSwitcher(this.getPath("parentView.targetFrame"))},title:function(){var e=this.getPath("owner.title");return e?e.loc():CloudOS.getAppDisplayName()}.property("owner.title").cacheable(),toolTip:"Toolbar.Tooltip.App.Switcher".loc(),miniSpringboardDismissed:function(){this.set("isActive",NO)}})})}(),CK.logoutAlert=function(e,t,n){var r=URI(window.location.href).domain().replace("icloud","iCloud");return CW.Alert.show({classNames:["logout-alert"],message:"HSA.SignoutDialog.Title".loc({currentDomain:r}),image:"icon-icloud",descriptionViewMinHeight:5,extraWide:YES,extraViewPadding:{top:0,bottom:3},hsaTrustedBrowser:n,rightButton:{title:"HSA.SignoutDialog.SignoutButton".loc(),action:function(){var t=this.get("pane");t.remove(),e&&e(t.get("hsaTrustedBrowser"))}},middleButton:{title:"Button.Cancel".loc(),action:function(){this.get("pane").remove(),t&&t()}},extraView:SC.CheckboxView.design(CW.Alert.ExtraViewAutoResizingSupport -,SC.RTLSupport,{autoResizePadding:0,controlSize:SC.CUSTOM_CONTROL_SIZE,layoutRecipe:{start:105,end:10},title:"HSA.SignoutDialog.CheckboxTitle".loc(),valueBinding:"*pane.hsaTrustedBrowser"})})},function(){var e="cloudkit/error_catcher";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/stylesheet.css"],styles2x:["/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/stylesheet.css"],scriptURL:"/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/javascript-strings.js",isPrefetched:YES})}(),CW.HashAttributeCommon={isOrphan:NO,parent:null,parentKey:null,parentIsRecord:function(){var e=this.get("parent");return e?e.kindOf(SC.Record):NO}.property("parent").cacheable(),readAttribute:function(e){var t=this.peekAttributes();return t?t[e]:undefined},attributes:function(){if(this.get("isOrphan"))return SC.warn("%@: Requesting 'attributes' on orphaned instance",this),null;var e=this.get("parent"),t=this.get("parentKey"),n;return e||CW.fatalError("Cannot access 'attributes' because there is no parent",{hashAttributeOrArray:this}),SC.none(t)&&CW.fatalError("Cannot access 'attributes' because there is no parentKey",{hashAttributeOrArray:this}),this.get("parentIsRecord")?n=e.get("store").readEditableDataHash(e.get("storeKey")):n=e.get("attributes"),n?n[t]:null}.property("parent","isOrphan" +,SC.RTLSupport,{autoResizePadding:0,controlSize:SC.CUSTOM_CONTROL_SIZE,layoutRecipe:{start:105,end:10},title:"HSA.SignoutDialog.CheckboxTitle".loc(),valueBinding:"*pane.hsaTrustedBrowser"})})},function(){var e="cloudkit/error_catcher";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/stylesheet.css"],styles2x:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/stylesheet.css"],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/",isPrefetched:YES})}(),CW.HashAttributeCommon={isOrphan:NO,parent:null,parentKey:null,parentIsRecord:function(){var e=this.get("parent");return e?e.kindOf(SC.Record):NO}.property("parent").cacheable(),readAttribute:function(e){var t=this.peekAttributes();return t?t[e]:undefined},attributes:function(){if(this.get("isOrphan"))return SC.warn("%@: Requesting 'attributes' on orphaned instance",this),null;var e=this.get("parent"),t=this.get("parentKey"),n;return e||CW.fatalError("Cannot access 'attributes' because there is no parent",{hashAttributeOrArray:this}),SC.none(t)&&CW.fatalError("Cannot access 'attributes' because there is no parentKey",{hashAttributeOrArray:this}),this.get("parentIsRecord")?n=e.get("store").readEditableDataHash(e.get("storeKey")):n=e.get("attributes"),n?n[t]:null}.property("parent","isOrphan" ),hashAttributeDidChange:function(e,t,n){this.childHashDidChange(e,t,n)},destroy:function(){var e=this.get("parent"),t,n;e&&(t=this.get("parentKey"),t||CW.fatalError("There is a parent but no parentKey",{target:this,parent:e}),n=e.get("attributes"),n&&(delete n[t],this.hashAttributeDidChange(),this.orphan())),arguments.callee.base.apply(this,arguments)},getAncestorRecord:function(){var e=this.get("parent"),t;return e&&(this.get("parentIsRecord")?t=e:t=e.getAncestorRecord()),t},orphan:function(){this._orphan&&this._orphan(),this.beginPropertyChanges(),this.set("isOrphan",YES),this.set("parent",null),this.parentDidChange&&this.parentDidChange(),this.set("parentKey",null),this.destroy(),this.allPropertiesDidChange(),this.endPropertyChanges()},peekAttributes:function(e){var t=this.get("parent"),n=this.get("parentKey"),r;return t&&!SC.none(n)&&(r=t.readAttribute(n)),r}},CW.HashAttributeSupport={hashAttributeFor:function(e){var t=this._hashAttributes,n=null,r;return t&&(r=t[e],r&&(n=r)),n},childHashDidChange:function(e,t,n){t||(e?this.notifyPropertyChange(e):this.allPropertiesDidChange());var r=this.get("parent"),i=this.get("parentKey");this._ignoreChangePropogation=YES,r.childHashDidChange(i,YES,n),this._ignoreChangePropogation=NO},attributeIsDefault:function(e){var t=this[e],n=this.readAttribute(e),r;return!t||!t.isRecordAttribute?n===undefined:(r=t.getDefaultValue(this,e),n===r||SC.none(r)&&SC.none(n))},normalize:function(e,t){var n={},r,i,s,o,u,a,f,l,c,h,p,d=this.get("attributes");for(r in this)i=this[r],i&&(s=i.typeClass,s&&(h=i.get("key")||r,p=s.call(i),o=undefined,n[h]=YES, f=SC.typeOf(s.call(i))===SC.T_CLASS,l=i.isNestedRecordTransform||p.isHashAttribute,!f&&!l?o=d[h]:l?(u=this.get(r),u&&(u.normalize&&u.normalize(e,t),!t&&u.isEmpty&&u.isEmpty()?o=null:o=u.get("attributes"))):f&&(u=this.get(r),u&&(o=d[h])),SC.none(o)&&(o=i.getDefaultValue(this,r)),o===null&&!e&&(o=undefined),o===undefined?delete d[h]:d[h]=o,u&&(u.isHashAttribute?u.underlyingContentDidChange():u.isHashAttributeArray&&u.recordPropertyDidChange())));for(r in d)n[r]||(SC.debug("%@: Deleting key from underlying data hash due to normalization: %@",this,r),delete d[r]);return this},registerHashAttribute:function(e,t){var n=this._hashAttributes,r,i;n||(n=this._hashAttributes={}),r=t.get("parent"),i=t.get("parentKey"),this!==r&&CW.fatalError("registerChildHashAttribute(): The specified child hash attribute does not have the proper parent",{key:e,target:this,parent:r}),e!==i&&CW.fatalError("registerChildHashAttribute(): The specified child hash attribute does not have the proper parentKey",{target:this,key:e,parentKey:i}),n[e]=t},unregisterHashAttribute:function(e,t){var n=this._hashAttributes,r;n||CW.fatalError("unregisterChildHashAttribute(): There is no “child hash attributes” structure",{target:this}),r=n[e],r||CW.fatalError("unregisterChildHashAttribute(): There is no registered child hash attribute for the specified key",{target:this,key:e}),delete n[e]},_hashAttributes:null},CW.StoreCommon={delegate:null,chain:function(e,t){return t||(t=CW.NestedStore),arguments.callee.base.call(this,e,t)},storageManager:null,getCurrentCommitCycle:function(){var e=null,t=this.getPath("storageManager.currentCycle" );return t&&t.get("type")===CW.StorageCycle.COMMIT_CYCLE&&(e=t),e},commitAgentsFor:function(e){var t=this.commitAgents;return t?t[e]:null},lastCommitAgentWithParam:function(e,t){var n=this.commitAgents,r=null,i,s,o,u;if(n){n=n[e];if(n)for(s=n.length,i=s-1;i>=0;--i){o=n[i],u=o.get("params");if(u&&u.hasOwnProperty(t)){r=o;break}}}return r},notifyCommitAgents:function(e,t,n){var r=this.commitAgentsFor(e),i,s,o,u;if(r)for(i=0,s=r.length;i"&&(e=e.substring(0,e.length-4)+''),e.substring(e.length-5)==="."&&(e=e.substring(0,e.length-5)+'.'),e):"":e}}),SC.mixin(CW.iOSNotification,{runningDismissableZIndex:2e3,runningNonDismissableZIndex:1e3,show:SC.RunLoop.wrapFunction(function(e){var t=e.isIOSNotification?e:this._simpleCreate.apply(this,arguments);return t.append(),t}),queue:[],enqueue:function(e){var t=e.isIOSNotification?e:this._simpleCreate.apply(this,arguments);return t._isInQueue=YES,this.queue.unshift(t),this.updateToQueue(),t},updateToQueue:SC.RunLoop.wrapFunction(function(){var e=this.queue;if(!e.length)return;var t=e[e.length-1];t._isAppended||t.append()}),notificationWasRemoved:function(e){if(this._ignoreRemovals)return;for(var t=0,n=this.queue;this.queue[t];t++)n[t]===e&&n.splice(t,1);this.updateToQueue()},replaceNotificationWithNotification:function(e,t){for(var n=0,r=this.queue,i;i=r[n];n++)if(i===e){r[n]=t,n===r.length-1&&(this._ignoreRemovals=YES,e.remove(),this._ignoreRemovals=NO,t.append());break}},_simpleCreate:function(e,t,n,r,i){var s;return typeof e=="object"?s=this.create.apply(this,arguments):s=this.create({message:e,description:t,icon:n,isDismissable:r!==NO,parentElement:i}),s}}),CW.TouchScrollerView=SC -.TouchScrollerView.extend({touchScrollDidStart:function(){arguments.callee.base.apply(this,arguments),this.$(".thumb").css("opacity",.5)},touchScrollDidEnd:function(){arguments.callee.base.apply(this,arguments),this.$(".thumb").css("opacity",0)}}),SC.ScrollView.prototype.verticalTouchScrollerView=CW.TouchScrollerView,SC.ScrollView.prototype.horizontalTouchScrollerView=CW.TouchScrollerView,function(){var e="cloudkit/first_run";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:["coreweb/timezone_picker","cloudkit/photo"],styles:["/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/stylesheet.css"],styles2x:["/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/javascript-strings.js",isPrefetched:YES})}(),function(){var e="coreweb/timezone_picker";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/stylesheet.css"],styles2x:["/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/javascript-strings.js" -,isPrefetched:YES})}(),function(){var e="cloudkit/photo";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:[],styles2x:[],scriptURL:"/system/cloudos/1812Project43/cloudkit/photo/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/cloudkit/photo/1812Project43/en-us/javascript-strings.js",isPrefetched:YES})}(),COS=SC.Object.create({NAMESPACE:"COS",VERSION:"1.0.0",init:function(){arguments.callee.base.apply(this,arguments),this.setupMinWidthAndHeight(),this.statsController=CK.StatsController.create({statSessionId:this.statSessionId,includedParams:function(){var e=COS.authController,t=e.getPath("user.isLiteAccount"),n=e.get("signupOriginApp"),r={},i=window.CloudOSBootstrap&&CloudOSBootstrap.isTermsAndConditionUrl&&URI(window.location.href).hash().split("/").lastObject()==="gc";return SC.none(t)||(r.isLiteAccount=t),SC.none(n)||(r.originApp=n),i&&(r.isGameCenterTermsUrl=!0),r}.property("COS.authController.user")}),CK.errorCatcher.exceptionCallback=function(e){COS.statsController.recordStat(e.applicationName,"ErrorReport",{errorType:e.origin})},this.scheduleStatSessionIdUpdateTimer()},CLIENT_ID:CW.upperCaseUUID(),statSessionId:CW.upperCaseUUID(),REVALIDATE_INTERVAL:1800,REFRESH_WEB_AUTH_INTERVAL:1500,STAT_SESSION_ID_UPDATE_INTERVAL:28800,PUSH_RETRY_WAIT:10,MIN_WIDTH:null,DESKTOP_MIN_WIDTH:950,MOBILE_MIN_WIDTH:320,MIN_HEIGHT:null,DESKTOP_MIN_HEIGHT:700,MOBILE_MIN_HEIGHT:460,MAX_VALIDATE_RETRIES:1,MAX_LOGIN_RETRIES:1,MAX_PREFERENCES_RETRIES:1,setupMinWidthAndHeight:function( +.TouchScrollerView.extend({touchScrollDidStart:function(){arguments.callee.base.apply(this,arguments),this.$(".thumb").css("opacity",.5)},touchScrollDidEnd:function(){arguments.callee.base.apply(this,arguments),this.$(".thumb").css("opacity",0)}}),SC.ScrollView.prototype.verticalTouchScrollerView=CW.TouchScrollerView,SC.ScrollView.prototype.horizontalTouchScrollerView=CW.TouchScrollerView,function(){var e="cloudkit/first_run";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:["coreweb/timezone_picker","cloudkit/photo"],styles:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/stylesheet.css"],styles2x:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/",isPrefetched:YES})}(),function(){var e="coreweb/timezone_picker";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/stylesheet.css"],styles2x:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/" +,isPrefetched:YES})}(),function(){var e="cloudkit/photo";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:[],styles2x:[],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/photo/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/photo/1812Project43/en-us/",isPrefetched:YES})}(),COS=SC.Object.create({NAMESPACE:"COS",VERSION:"1.0.0",init:function(){arguments.callee.base.apply(this,arguments),this.setupMinWidthAndHeight(),this.statsController=CK.StatsController.create({statSessionId:this.statSessionId,includedParams:function(){var e=COS.authController,t=e.getPath("user.isLiteAccount"),n=e.get("signupOriginApp"),r={},i=window.CloudOSBootstrap&&CloudOSBootstrap.isTermsAndConditionUrl&&URI(window.location.href).hash().split("/").lastObject()==="gc";return SC.none(t)||(r.isLiteAccount=t),SC.none(n)||(r.originApp=n),i&&(r.isGameCenterTermsUrl=!0),r}.property("COS.authController.user")}),CK.errorCatcher.exceptionCallback=function(e){COS.statsController.recordStat(e.applicationName,"ErrorReport",{errorType:e.origin})},this.scheduleStatSessionIdUpdateTimer()},CLIENT_ID:CW.upperCaseUUID(),statSessionId:CW.upperCaseUUID(),REVALIDATE_INTERVAL:1800,REFRESH_WEB_AUTH_INTERVAL:1500,STAT_SESSION_ID_UPDATE_INTERVAL:28800,PUSH_RETRY_WAIT:10,MIN_WIDTH:null,DESKTOP_MIN_WIDTH:950,MOBILE_MIN_WIDTH:320,MIN_HEIGHT:null,DESKTOP_MIN_HEIGHT:700,MOBILE_MIN_HEIGHT:460,MAX_VALIDATE_RETRIES:1,MAX_LOGIN_RETRIES:1,MAX_PREFERENCES_RETRIES:1,setupMinWidthAndHeight:function( ){window.CloudOSBootstrap&&CloudOSBootstrap.isOnSupportedMobile?(this.MIN_WIDTH=this.MOBILE_MIN_WIDTH,this.MIN_HEIGHT=this.MOBILE_MIN_HEIGHT):(this.MIN_WIDTH=this.DESKTOP_MIN_WIDTH,this.MIN_HEIGHT=this.DESKTOP_MIN_HEIGHT)},FONT_CHECK_DURATION:4,getCredentialsFromHash:function(){var e=window.location.hash.match(/:(.*?)(\/.*)?$/);if(!e)return null;var t=URI.parseQuery(e[1]),n=null,r=t.user||t.username,i=t.pass||t.password,s=!!t.extended||!!t.extendedLogin;if(r&&i){n={username:r,extendedLogin:s};if(SC.buildMode==="production"&&!CK.readCookie("ALLOW_CREDENTIALS"))return SC.warn("Ignoring credentials in URL hash"),n;n.password=i}return n},handleApplicationCrash:function(e){CK.errorCatcher._handleError(e)},cloudOSStateForApp:function(e){var t=COS.authController,n=COS.regionController,r=CK.meCardController,i=t.get("accountPreferences"),s=COS.appsController.getAppInfoFor(e),o=t.get("secureChannelInfoData"),u={authBag:t._auth_bag,meCard:r?r.get("meCard"):null,quotaData:t._quota_data,versions:window.VERSIONS,regionFormattingRules:n.regionFormattingRules,regionFormattingRulesVersion:n.localeVersion,regionFormattingRulesBaseUrl:n.localeURL,accountPreferences:i?i.prefsHash(YES):null,appPreferences:COS.prefsController.allAppPreferencesHash(),accountMenu:{items:[{title:"AccountMenu.AccountSettings".loc(),target:"CloudOS",action:"showAccountSettings",disableWhenCurrentApp:"settings"},{title:"AccountMenu.SignOut".loc(),target:"CloudOS",action:"performLogout"}],width:200},requestedStartupUrl:s?s.get("requestedStartupUrl"):null,requestedStartupInfo:s?s.get("requestedStartupInfo"):null,environment :t.get("environment"),route:function(){if(CloudOS.appManagerFor)return CloudOS.appManagerFor(e).get("route");var t=window.location.hash,n=t?t.substring(1):null;return n}(),displayName:function(){if(CloudOS.appManagerFor)return CloudOS.appManagerFor(e).get("displayName")}(),currentlyActiveApplication:e,hostname:CloudOS.get("hostname")||window.location.hostname,clientId:this.CLIENT_ID,userAuthenticationState:t.get("userAuthenticationState"),appsInfo:function(){var e=COS.apps,t=[],n,r;for(n in e){r=COS.appsController.getAppInfoFor(n);if(!r){SC.warn("No appInfo for %@",n);continue}t.push(CK.AppInfo.serializeAsHash(r))}return t}(),userStatusCode:t.getPath("user.statusCode"),isBeta:CK.get("isBeta"),isFuture:CK.get("isFuture"),isCarry:CK.get("isCarry"),isCarryUser:t.get("isCarryUser"),availableLocales:this.filterLocales(COS.get("availableLocales")),localesSupportedByAllApps:this.filterLocales(COS.get("localesSupportedByAllApps")),pushToken:COS.pushController?COS.pushController.get("pushToken"):null,mininumWindowSize:{minWidth:COS.MIN_WIDTH,minHeight:COS.MIN_HEIGHT},isOnSupportedMobile:window.CloudOSBootstrap&&CloudOSBootstrap.isOnSupportedMobile,secureChannelInfoData:o,additionalClassNamesForBody:function(){var e,t;if(CloudOS.getUser&&CloudOS.getUser().get("isChineseAccount")||COS.authController&&COS.authController.getPath("user.isChineseAccount"))e="cn";return e}(),defaultAssetHostname:t.get("defaultAssetHostname")};return u},filterLocales:function(e){if(!e)return e;var t=[];for(var n=e.length;n--;){var r=e[n];t[n]={locale:r.locale,dispName:r.dispName}}return t},lastBenchmarkDurationFor :function(e){var t=SC.Benchmark._statFor(e);if(!t||!t._times||t._times.length===0){SC.warn("Cannot find stats for %@",e);return}return t._times[t._times.length-1].dur},localeMap:[{dispName:"English (U.S.)",locale:"en-us"},{dispName:"Español",locale:"es-es"},{dispName:"Français",locale:"fr-fr"},{dispName:"Deutsch",locale:"de-de"},{dispName:"简体中文",locale:"zh-cn"},{dispName:"日本語",locale:"ja-jp"},{dispName:"Nederlands",locale:"nl-nl"},{dispName:"Italiano",locale:"it-it"},{dispName:"한국어",locale:"ko-kr"},{dispName:"繁體中文",locale:"zh-tw"},{dispName:"Português (Brasil)",locale:"pt-br"},{dispName:"Português (Portugal)",locale:"pt-pt"},{dispName:"Svenska",locale:"sv-se"},{dispName:"Polski",locale:"pl-pl"},{dispName:"Dansk",locale:"da-dk"},{dispName:"Suomi",locale:"fi-fi"},{dispName:"Norsk bokmål",locale:"no-no"},{dispName:"Русский",locale:"ru-ru"},{dispName:"العربية",locale:"ar-sa"},{dispName:"Türkçe",locale:"tr-tr"},{dispName:"ภาษาไทย",locale:"th-th"},{dispName:"Українська",locale:"uk-ua"},{dispName:"Hrvatski",locale:"hr-hr"},{dispName:"Čeština",locale:"cs-cz"},{dispName:"Ελληνικά",locale:"el-gr"},{dispName:"עברית",locale:"iw-il"},{dispName:"Română",locale:"ro-ro"},{dispName:"Slovenčina",locale:"sk-sk"},{dispName:"Magyar",locale:"hu-hu"},{dispName:"Bahasa Indonesia",locale:"id-id"},{dispName:"Bahasa Melayu",locale:"ms-my"},{dispName:"English (Australia)",locale:"en-au"},{dispName:"English (Canada)",locale:"en-ca"},{dispName:"English (New Zealand)",locale:"en-nz"},{dispName:"English (U.K.)",locale:"en-gb"},{dispName:"Català",locale:"ca-es"},{dispName:"Tiếng Việt",locale:"vi-vi"},{dispName @@ -986,7 +986,7 @@ return}this.set("isReady",YES),this.set("isWaiting",NO),e.get("pendingApp")===th Benchmark._statFor(this.get("name"));return e&&e._times&&e._times[0]?e._times[0]._subStats:null},focus:function(){var e=this.get("view");if(!e)return;e.focus()},_validatePostMessageData:function(e){if(!e||typeof e!="object")return!0;if(e.isObservable&&SC.kindOf(e,SC.Object))return SC.error("_validatePostMessageData: Attempt to serialize SC.Object in:"+e.toString()),!1;for(var t in e)if(e.hasOwnProperty(t)&&!this._validatePostMessageData(e[t]))return!1;return!0},passMessage:function(e){var t=this.get("contentWindow");if(!t)return;var n=SC.$A(arguments);n.shift();var r=this.getPath("view.layer.src"),i=URI(r),s="https://"+i.hostname();this._callCloudOSMethod(t,s,e,n)},_callCloudOSMethod:function(e,t,n,r){var i={isCloudOSMessage:!0,methodName:n,args:r};this._validatePostMessageData(i)||SC.error("Attempt to serialize invalid data in: "+JSON.stringify(i));var s=this.get("name"),o=s+n;this._lastMessageSignature!==o&&(SC.info('_callCloudOSMethod: "%@" to %@',n,s),this._lastMessageSignature=o);var i=JSON.stringify(i,function(e,t){return this.hasOwnProperty(e)?t:undefined});e.postMessage(i,t)},sleep:function(){this.passMessage("_sleep")},wake:function(){this.passMessage("_wake")},ensureWillSuspend:function(){this.ensureDidBecomeActive();if(this._messageState!==this._DID_BECOME_ACTIVE)return;this._messageState=this._WILL_SUSPEND,this.passMessage("applicationWillSuspend"),CloudOS.appController.applicationWillClose(this)},ensureDidSuspend:function(){if(this._messageState!==this._WILL_SUSPEND)return;this._messageState=this._DID_SUSPEND,this.passMessage("applicationDidSuspend")},ensureWillBecomeActive :function(){this.ensureDidSuspend();if(this._messageState!==this._DID_SUSPEND)return;this._messageState=this._WILL_BECOME_ACTIVE,this.get("isReady")&&this.passMessage("applicationShouldRefresh",NO),this.passMessage("applicationWillBecomeActive"),this.sleep()},ensureDidBecomeActive:function(){if(this._messageState!==this._WILL_BECOME_ACTIVE)return;this._messageState=this._DID_BECOME_ACTIVE,this.wake(),this.passMessage("applicationDidBecomeActive",this.benchmarks());var e=this.get("postDisplayAction");this.set("postDisplayAction",undefined),e&&e.apply(this),CloudOS.appController.applicationDidOpen(this)},_DID_SUSPEND:1,_WILL_SUSPEND:2,_DID_BECOME_ACTIVE:3,_WILL_BECOME_ACTIVE:4,_messageState:1}),CloudOS.appController=SC.Object.create({apps:null,appList:null,loadedApps:null,pendingInfoJSONRequests:{},_newReplacementApps:[],_replacedAppsMapping:{},appIndices:function(){var e=CloudOS.authController.get("appsOrder")||[];if(this._lastAppsOrder===(this._lastAppsOrder=e.join(" ")))return this._cachedAppIndices;for(var t=0,n={},r=e.length;t0&&(t=n)),t}.property("loadedApps"),areAllAppReplacementsCompleted:function(){return this.get("_newReplacementApps").length===0}.property("_newReplacementApps"),showApps:function(){var e=CW.getUrlParameters (),t=e.showApps;return t?t.split(","):null}.property().cacheable(),removeInvalidIframes:function(){var e=SC.$("iframe");e.forEach(function(e){if(e.id=="auth-frame")return;COS.apps[e.name]||(e.parentNode?(SC.info("Removing iframe for invalid app %@",e.name),e.parentNode.removeChild(e)):SC.warn("Unable to remove invalid iframe for app %@",e.name))})},initializeAppManagers:function(){var e={},t=CloudOS.appController.getDefaultAppName(),n=CloudOS.getAppRouteFromHash(),r=[],i=this.get("showApps"),s,o,u,a,f,l,c,h;for(f=0,l=CloudOS.displayApps.length;f1?"icon_notification@2x.png":"icon_notification.png"));var m="AppTitle."+t,g=m.loc();if(g===m){var y={};y["AppTitle."+t]=o.displayName,y["AppTitleBar."+t]=o.titleName||o.displayName,SC.stringsFor(SC.Locale.currentLocale.language,y)}else v.set ("displayName",g);var b=o.pushTopic;COS.pushController&&b&&(SC.info("Registering pushTopic %@ for dynamic app %@",b,t),COS.pushController.registerPushTopic(b)),this.addAppManager(v),CW.notificationCenter.postNotification("receivedInfoForDynamicApp",t),this.checkIfAllDynamicAppsAreLoaded()},checkIfAllDynamicAppsAreLoaded:function(){this.get("isAllAppInfoLoaded")&&(this.set("pendingInfoJSONRequests",{}),CW.notificationCenter.postNotification("receivedInfoForAllDynamicApps"))},addAppManager:function(e){var t=this.get("apps"),n=this.get("appList");n.pushObject(e),e.set("index",n.length),t[e.get("name")]=e,this.notifyPropertyChange("appList")},iCloudLiteObserver:function(){var e=CloudOS.authController;(e.get("iCloudLiteSignUp")||e.getPath("user.isLiteAccount"))&&this.notifyPropertyChange("appList")}.observes("CloudOS.authController.iCloudLiteSignUp","CloudOS.authController.user"),removeApp:function(e,t){if(CloudOS.get("isCloudOSMini"))return;COS.appsController.removeAppInfoFor(e);var n=CloudOS.appManagerFor(e);if(!n)return;delete this.get("apps")[e];var r=COS.apps[e].alternateAppName;t||delete COS.apps[e],this.get("appList").removeObject(n),this.notifyPropertyChange("apps"),this.notifyPropertyChange("appList")},removeOmittedApps:function(e){var t=this.get("apps"),n;for(n in t){var r=t[n];if(!r)continue;!e[n]&&r.get("canBeRemoved")&&this.removeApp(n)}for(n in COS.apps)!t[n]&&!this.pendingInfoJSONRequests[n]&&delete COS.apps[n]},replaceOrAddApp:function(e,t,n){var r=COS.authController,i=r.get("appsOrder"),s=i.indexOf(t),o=this.get("showApps");e[n]={},!o||o.indexOf(t)===-1?delete e[ t]:i.push(t),i[s]=n,this.invokeLast(function(){this.notifyPropertyChange("appIndices")}),this.appReplacementDidComplete(n)},reloadApplication:function(e){var t=CloudOS.appController,n=CloudOS.appManagerFor(e),r=this,i=CloudOS.authController.get("user"),s=t.get("currentApp");if(!n){SC.warn("reloadApplication(): Application “%@” does not exist",e);return}s&&s.get("name")===e?CloudOS.statechart.sendAction("appMustReload",function(){n.teardown(),r.invokeLater(function(){t.set("pendingApp",n),n.set("loadReason",CK.LOAD_REASON_RELOAD),CloudOS.statechart.sendAction("userDidChooseApp")},500)}):n.teardown()},exitApplication:function(e,t,n,r){var i=CloudOS.appController,s=CloudOS.appManagerFor(e),o=NO;if(!s){SC.warn("application %@ does not exist".fmt(e));return}if(!s.get("isLoaded")){SC.warn("application %@ is already unloaded.".fmt(e));return}s.set("isFailed",YES),t===CK.EXIT_FATAL_ERROR&&(o=YES);var u=i.get("currentApp"),a=i.get("pendingApp");u&&u.get("name")===e||a&&a.get("name")===e?CloudOS.statechart.sendAction("appMustExit",{statusCode:t,applicationLog:n,appToLoadAfterAuthentication:r}):(s.teardown(),o&&this.showErrorReporter(s,n))},exitApplicationSilently:function(e){CloudOS.statechart.sendAction("appMustExitSilently");var t=CloudOS.appManagerFor(e);t&&t.teardown(),this.get("loadingApp")===t&&this.set("loadingApp",null)},switchToApplicationWithNotification:function(e,t,n){var r=CloudOS.appManagerFor(e);this.get("currentApp")===r&&r.get("isReady")?(SC.debug("Handing notification off to active app %@ immediately",e),r.passMessage("didReceiveNotification",t),n&&n.dismiss()):(r.set @@ -1084,11 +1084,11 @@ this._turnOffFastFPSEvaluation(YES)))},_dieBecauseTooSlow:function(){SC.debug("B ).cacheable(),marginBetweenImageAndAppName:8,autoResizeText:function(){return CK.get("isBeta")?"Beta":CK.get("isFuture")?"Future":CK.get("isCarry")?"Carry":""}.property(),autoResizePadding:function(){var e=parseInt(window.getComputedStyle(document.querySelector(".icloud-text"),":before").width);return this.getPath("autoResizeText.length")>0?{width:e+this.get("marginBetweenImageAndAppName")}:{width:e}}.property("autoResizeText").cacheable(),render:function(e){var t="";CK.get("isBeta")&&(t=" beta"),CK.get("isFuture")&&(t=" future"),CK.get("isCarry")&&(t=" carry"),e.push(''),arguments.callee.base.apply(this,arguments)},click:function(){window.location.hash=""}}),CloudOS.iFrameView=SC.View.extend({attributeBindings:["src","title"],tagName:"iframe",title:null,src:null,init:function(){arguments.callee.base.apply(this,arguments),COS.statsController.beginStat("cloudos",this+"_load_time")},didAppendToDocument:function(){var e=this.get("layer");e?COS.statsController.endStat("cloudos",this+"_load_time",null,{durationKeyName:"duration",includeLocationAndLocale:YES}):SC.warn("Failed to Load iframe %@"+this)}}),CloudOS.UnableToProceedAlert=CW.Alert.extend({init:function(){arguments.callee.base.apply(this,arguments),this.get("failureReason")||CW.fatalError("Cannot show `UnableToProceed Alert` without value for failureReason property")}}),CloudOS.UnableToProceedAlert.mixin({show:function(e){var t={failureReason:null,message:"Error.AuthDidNotConnect.Title".loc(),description:"Error.AuthDidNotConnect.Description".loc(),middleButton:{title:"Error.AuthDidNotConnect.Support" .loc(),action:"support"},rightButton:{title:"Button.OK".loc(),action:function(){var e=this.get("pane");e.remove(),e.clearUserStateAndLogoutUser()}},leftButton:{title:"Error.Button.Report".loc(),action:function(){var e=this.get("pane"),t=e.get("failureReason");e.get("modalPane").set("paneFadeOutDuration",0),e.remove(),CK.errorCatcher.reportServerError({applicationName:"cloudos",error:t,dismissCallback:function(){e.clearUserStateAndLogoutUser()}})}},clearUserStateAndLogoutUser:function(){var e=CloudOS.authController;e.clearUserState(),e.logoutUser(function(){CK.reloadWithReason("Restart the session due to authDidNotConnect error.")},YES)},support:function(){window.open("Error.AuthDidNotConnect.Support.URL".loc())}};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);var r=this.create(t);return r.append(),r}}),CloudOS.mainPage=SC.Page.design({mainPane:SC.MainPane.extend(CW.DropTarget,CloudOS.AdjustViewLayoutOnMobile,{layout:{left:0,right:0,top:0,bottom:0,zIndex:2,minHeight:COS.MIN_HEIGHT,minWidth:COS.MIN_WIDTH},init:function(){this.adjustLayoutOnMobile(["minWidth","minHeight"]),arguments.callee.base.apply(this,arguments),CW.notificationCenter.subscribeToNotification("activateMinimumSize",this,"activateMinimumSize"),CW.notificationCenter.subscribeToNotification("deactivateMinimumSize",this,"deactivateMinimumSize"),CW.notificationCenter.subscribeToNotification("icloudNoticeVisibilityChanged",this,"icloudNoticeVisibilityChanged")},activateMinimumSize:function(){this.set("layout",{left:0,right:0,top:0,bottom:0,zIndex:2,minHeight:COS.MIN_HEIGHT,minWidth:COS.MIN_WIDTH}),this.invokeLast(function( ){typeof this._prevScrollTop=="number"&&(document.body.scrollTop=this._prevScrollTop,this._prevScrollTop=undefined),typeof this._prevScrollLeft=="number"&&(document.body.scrollLeft=this._prevScrollLeft,this._prevScrollLeft=undefined)})},deactivateMinimumSize:function(){this._prevScrollTop=document.body.scrollTop,this._prevScrollLeft=document.body.scrollLeft,this.set("layout",{left:0,right:0,top:0,bottom:0,zIndex:2}),this.setBodyOverflowIfNeeded(!0)},icloudNoticeVisibilityChanged:function(e){this.adjust("top",e),e?this.adjust("minHeight",this.getPath("layout.minHeight")-e):this.adjust("minHeight",COS.MIN_HEIGHT)},classNames:"overflow-visible".w(),childViews:["bannerContainer","appsView","backgroundView"],bannerContainer:CloudOS.BannerContainerView.design({}),appsView:CloudOS.AppsContainerView.design(COS.IsShowingSupport,{displayKey:CloudOS.APP,nowShowingBinding:"CloudOS.workspaceController.nowShowing"}),backgroundView:CloudOS.BackgroundView.design({isVisible:NO,setIsVisible:function(){var e=CloudOS.workspaceController.get("nowShowing"),t=!CloudOS.workspaceController.get("applicationIsFullwindow")&&!!e;this.allowCirclesDuringAuth||(t=t&&e!==CloudOS.AUTH),this.get("isVisible")!==t&&this.set("isVisible",t)}.observes("CloudOS.workspaceController.applicationIsFullwindow","CloudOS.workspaceController.nowShowing")})})}),CloudOS.main=function(){var t=CloudOS.get("delegate");CloudOS.invokeDelegateMethod(t,"applicationWillStart"),CW.addKeyResponder(CloudOS.keyResponder),CloudOS.moduleLocalizer.setLocale(String.preferredLanguage),SC.Module.loadModule("cloudos_foundation/language",this,function( -){window.localeDidLoad=!0,SC.Event.add(document,"mousemove",function(e){var t=CloudOS.appController.getPath("currentApp"),n={clientX:e.clientX,clientY:e.clientY},r;if(!t||!t.get("contentWindow")||!t.get("isReady"))return YES;t.passMessage("_mouseMove",n)}),SC.Event.add(document,"mouseup",function(e){var t=CloudOS.appController.getPath("currentApp"),n={clientX:e.clientX,clientY:e.clientY},r;if(!t||!t.get("contentWindow")||!t.get("isReady"))return YES;t.passMessage("_mouseUp",n)});if(CloudOS.get("isCloudOSMini")){var e=CloudOS.appController.getDefaultAppName();CloudOS.displayApps.push({name:e,isDynamicallyLoaded:YES})}else CloudOSBootstrap.isOnSupportedMobile||SC.Module.loadModule("cloudos_foundation/springboard",this,function(){CloudOS.configureSpringboard()});CloudOS.getPath("mainPage.mainPane").append(),SC.debug("CloudOS.main() already has localized strings, proceeding to run CloudOS.run() now."),CloudOS.run(),CloudOS.invokeDelegateMethod(t,"applicationDidStart"),CloudOS.set("mainHasCompleted",YES)})},function(){var e="cloudkit/error_catcher";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/stylesheet.css"],styles2x:["/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/stylesheet.css"],scriptURL:"/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/javascript-strings.js" -,isPrefetched:YES})}(),function(){var e="cloudkit/core_types";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:[],styles2x:[],scriptURL:"/system/cloudos/1812Project43/cloudkit/core_types/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/cloudkit/core_types/1812Project43/en-us/javascript-strings.js",isPrefetched:YES})}(),function(){var e="cloudos_foundation/language";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/stylesheet.css"],styles2x:["/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/javascript-strings.js",isPrefetched:YES})}(),function(){var e="cloudkit/first_run";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:["coreweb/timezone_picker","cloudkit/photo"],styles:["/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/stylesheet.css"],styles2x:["/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/javascript-strings.js" -,isPrefetched:YES})}(),function(){var e="cloudkit/photo";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:[],styles2x:[],scriptURL:"/system/cloudos/1812Project43/cloudkit/photo/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/cloudkit/photo/1812Project43/en-us/javascript-strings.js",isPrefetched:YES})}(),function(){var e="coreweb/date_formatter";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:[],styles2x:[],scriptURL:"/system/cloudos/1812Project43/coreweb/date_formatter/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/coreweb/date_formatter/1812Project43/en-us/javascript-strings.js",isPrefetched:YES})}(),function(){var e="coreweb/timezone_picker";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/stylesheet.css"],styles2x:["/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/javascript-strings.js",isPrefetched:YES})}(),function(){var e="cloudos_foundation/alarms";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return; -SC.MODULE_INFO[e]=SC.Object.create({dependencies:["coreweb/date_formatter"],styles:["/system/cloudos/1812Project43/cloudos_foundation/alarms/1812Project43/en-us/stylesheet.css"],styles2x:["/system/cloudos/1812Project43/cloudos_foundation/alarms/1812Project43/en-us/stylesheet.css"],scriptURL:"/system/cloudos/1812Project43/cloudos_foundation/alarms/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/cloudos_foundation/alarms/1812Project43/en-us/javascript-strings.js",isPrefetched:YES})}(),function(){var e="cloudos_foundation/sharing";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:["cloudkit/core_types"],styles:["/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/stylesheet.css"],styles2x:["/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/javascript.js",stringURL:"/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/javascript-strings.js",isPrefetched:YES})}(),function(){var e="cloudos_foundation/springboard";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/stylesheet.css"],styles2x:["/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/javascript.js" -,stringURL:"/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/javascript-strings.js",isLoaded:YES,source:'CloudOS.mixin({configureSpringboard:function(){if(this._hasConfiguredSpringBoard)return;var e={isShowingObserver:function(){CloudOS.workspaceController.get("nowShowing")<=CloudOS.AUTH?(this.$(".springboard-button-view").attr("tabindex","-1"),this.$().attr("aria-hidden","true")):(this.$(".springboard-button-view").attr("tabindex","0"),this.$().removeAttr("aria-hidden"))},springboardView:CloudOS.SpringboardView.design(COS.IsShowingSupport,{isAllowedToGenerateButtons:NO,init:function(){arguments.callee.base.apply(this,arguments);var e=CW.notificationCenter;e.subscribeToNotification("springboardMayProceed",this,"springboardMayProceed"),e.subscribeToNotification("requestedInfoForDynamicApp",this,"springboardMustWaitForDynamicApp"),e.subscribeToNotification("receivedInfoForDynamicApp",this,"springboardMayProceedFromDynamicApp"),e.subscribeToNotification("calendarIconWillRedraw",this,"springboardMustWaitForCalendarIconDrawing"),e.subscribeToNotification("calendarIconFinishedDrawing",this,"springboardMayProceedFromCalendarIconDrawing"),window.sv=this},displayKeys:[CloudOS.SPRINGBOARD,CloudOS.AUTH,CloudOS.SHARING],nowShowingBinding:"CloudOS.workspaceController.nowShowing",appIndicesBinding:"CloudOS.appController.appIndices",wantsAcceleratedLayer:!0,willShow:function(){CloudOS.workspaceController.hideCentralSpinner(null,!0)},springboardMayProceed:function(){this.set("isAllowedToGenerateButtons",YES)},springboardMustWaitForDynamicApp:function(e){this.addShowCondition("dynamic app "+e)},springboardMayProceedFromDynamicApp:function(e,t){this.metShowCondition("dynamic app "+e)},springboardMustWaitForCalendarIconDrawing\n:function(e,t){this.addShowCondition("Calendar icon must be drawn for correct language")},springboardMayProceedFromCalendarIconDrawing:function(e,t){this.metShowCondition("Calendar icon must be drawn for correct language")},childViews:CloudOS.SpringboardView.prototype.childViews.concat("accountMenu blurOverlay iCloudText".w()),blurOverlay:SC.View.extend(CW.Animatability,{classNames:"blur-overlay".w(),shouldShow:!0,shouldShowBinding:".parentView.isDecorativeDimmed",layout:{left:0,top:0,right:0,bottom:0,zIndex:2,opacity:1},shouldShowDidChange:function(){if(this.get("shouldShow"))this.animate("opacity",1,250),this.set("isVisible",!0);else{var e=this;this.animate("opacity",0,{duration:250,_updateVisibility:function(){e.set("isVisible",!1)}.listens("finish")})}}.observes("shouldShow")}),iCloudText:CloudOS.iCloudTextView.design({isEnabled:NO}),accountMenu:CloudOS.AccountMenuView.design(),isOffscreen:YES,isDecorativeDimmed:function(){var e=this.get("nowShowing");return e===CloudOS.AUTH||e===CloudOS.SHARING||!!this.get("wantsDD")}.property("nowShowing","wantsDD"),_setWantsDD:function(){var e=this.get("nowShowing")===CloudOS.AUTH;e?(this.set("wantsDD",YES),this._ddSetter&&this._ddSetter.invalidate(),this._ddSetter=null):this._ddSetter=this.invokeLater(function(){this.set("wantsDD",NO)},200)}.observes("nowShowing"),toggleChrome:function(){var e=this.get("isDecorativeDimmed");if(this.__lastToggleChromeDim__===(this.__lastToggleChromeDim__=e))return;this.accountMenu.animate("opacity",1-e,{duration:e?0:500,mustKeepLayoutSync:NO})}.observes("isDecorativeDimmed"),__lastToggleChromeDim__:NO\n,didShow:function(){this.showNotificationsIfNeeded()},didUndim:function(){this.showNotificationsIfNeeded()},showNotificationsIfNeeded:function(){this.notifyUnqualified()},notifyUnqualified:function(){var e=CloudOS.authController;if(!this._hasNotifiedUnqualified&&e.get("userRequiresUnqualifiedNotification")){var t=e.get("displayableCurrentDomain");CloudOS.iOSNotificationForSpringboard.enqueue({message:"Auth.Notification.Unqualified.Title".loc({currentDomain:t}),description:"Auth.Notification.Unqualified.Description".loc()}),this._hasNotifiedUnqualified=YES}}})},t=CloudOS.mainPage.mainPane,n={owner:t};t.appendChild(e.springboardView.create(n)),t.addObserver("CloudOS.workspaceController.nowShowing",e.isShowingObserver),this._hasConfiguredSpringBoard=YES}}),window.console&&console.log("%c\\n ********* \\n ******* ******* \\n *** *** \\n ** ** \\n ***** ** *** \\n **** ***** ** \\n ** ** \\n * * \\n ** ** ** * \\n **** ** ** ** ****** \\n ** ** ** ** **** \\n *** ** *** \\n * ** ** \\n * **** * \\n * * \\n** ** \\n* ** ** * \\n** *********** * \\n * *** ** \\n ** ** \\n *** ** \\n **** **** \\n **** **** \\n ************************************************* \\n \\n Happy to see you here! We are hiring the sharpest minds in the\\n industry who want to build the most sophisticated and delightful\\n applications on the web.\\n \\n Check out https://www.icloud.com/jobs/\\n \\n"\n,"font-family: Menlo, monospace"),CloudOS.SpringboardView=SC.View.extend(CW.Animatability,{ALL_FOUR_EDGE_SPACING:0,TOP_INSET:0,BOTTOM_INSET:0,MIN_INTER_BUTTON_SPACING:35,ANIMATE_LAYOUT:COS.ANIMATE_SPRINGBOARD_LAYOUT,FORCE_READINESS_TIME:6e3,isMiniSpringBoard:NO,buttonSizeDiscreteness:0,layout:{left:0,top:0,width:0,height:0,minHeight:COS.MIN_HEIGHT,minWidth:COS.MIN_WIDTH,zIndex:50},bannerObserver:function(){if(this.get("isMiniSpringBoard")||!this.get("isOnscreen"))return;var e=CloudOS.bannerManager,t=e.get("bannerHeight");this.animate("top",{to:t,duration:500})}.observes("CloudOS.bannerManager.bannerHeight"),classNames:["springboard-view"],wantsAcceleratedLayer:NO,displayProperties:"isOnscreen isAnimating frame".w(),isVisibleBinding:SC.Binding.oneWay("*springboardView.shouldHideForScreenReader"),isOnscreen:NO,isDecorativeDimmed:NO,isDecorativeDimmedObserver:function(){if(!this.get("isOnscreen"))return;this.get("isDecorativeDimmed")||(this.set("shouldHideForScreenReader",NO),CloudOS.workspaceController.hideCentralSpinner())}.observes("isDecorativeDimmed","isOnscreen"),attributeBindings:["aria-hidden"],shouldHideForScreenReader:YES,ariaHidden:YES,tabIndex:-1,"aria-hidden":function(){return this.get("ariaHidden")}.property("ariaHidden"),shouldHideForScreenReaderObserver:function(){this.get("shouldHideForScreenReader")?this.set({tabIndex:-1,ariaHidden:YES}):this.set({tabIndex:0,ariaHidden:NO})}.observes("shouldHideForScreenReader","isOnscreen"),appIndices:undefined,childViews:"buttonsContainer".w(),buttonsContainer:SC.View.extend(CW.Animatability,{layout:{left:0,top:0,right:0,bottom\n:0,zIndex:1},ariaRole:"main",ariaLabel:function(){return"AppTitle.backToSpringboard".loc()}.property(),focusOnButtonsContainer:function(){var e=this.get("childViews"),t=CloudOS.bannerManager;t.get("isBannerVisible")||(this.set("acceptsFirstResponder",YES),this.$().attr("tabindex",0),e&&e.length&&this.get("layer").focus())},checkForAppsAfterAnim:function(){this.owner.invokeLater("updateToAppsWhenAppropriate",100)},postAnimation:function(){this.get("isAnimating")||(this.checkForAppsAfterAnim(),this.focusOnButtonsContainer())}.observes("isAnimating")}),apps:undefined,isReadyToShow:NO,isAllowedToGenerateButtons:YES,useAnimationWhenShowing:!0,init:function(){CloudOS.SpringboardView._isAllowedToGenerateButtons&&(this.isAllowedToGenerateButtons=YES),arguments.callee.base.apply(this,arguments),this._allButtons=[],this._displayButtons=[],this._buttonsByName={},this._finalDistanceAdjustment={},this._waitingForConditions=SC.Set.create(),this._conditionsMet=SC.Set.create(),this.addShowCondition("initial set of buttons"),this.sizeToParent(!0),this.handleOnscreen(),this.appsOneWayBindingImplementedViaObserver(),CW.notificationCenter.subscribeToNotification("relocalize",this,"relocalize")},relocalize:function(){var e=this._prevCloudOSLocaleRTL,t=CloudOS.get("isCloudOSLocaleRTLOriented");e!==t&&this._decideButtonLocations(),this._prevCloudOSLocaleRTL=t},appsOneWayBindingImplementedViaObserver:function(){this.pruneAppList()}.observes("CloudOS.appController.appList","CloudOS.appController.appList.[]"),pruneAppList:function(){var e=CloudOS.appController.get("appList"),t=CloudOS.authController,\nn=t.get("user"),r=t.get("iCloudLiteSignUp")||n&&n.get("isLiteAccount"),i=[],s,o;if(!e)return;for(s=0;o=e[s];s++){if(o.get("isHidden")||!o.get("supportsLite")&&r)continue;i.push(o)}this.set("apps",i)},awaitShow:function(){this._pendingShow=YES,this.get("isAllowedToGenerateButtons")&&this.scheduleForcedReadiness()},scheduleForcedReadiness:function(){if(this._scheduledForceReadiness)return;this._scheduledForceReadiness=this.invokeLater(function(){this._scheduledForceReadiness=null,this.forceReadiness()},this.FORCE_READINESS_TIME)},show:function(){this.showForScreenReader(YES);if(this._showing)return;if(!this.get("isReadyToShow"))return this.awaitShow();this.willShow(),this.becomeFirstResponder(),this._pendingShow=NO,this._showing=YES,this._decideButtonLocations(),this.get("useAnimationWhenShowing")?this.get("isDecorativeDimmed")?this.showWithDecorativeMode():COS.ENABLE_TRANSFORM_ANIMATIONS?this.showWithIconSlide():this.showWithFade():this.showWithNoAnimation()},showWithNoAnimation:function(){this.adjust("opacity",1),this.set("isOnscreen",YES),this.didShow()},showWithDecorativeMode:function(){this.animate("opacity",{from:0,to:1,duration:1500},{onstop:function(){this.view.adjust("opacity",1),this.view.didShow()}}),this.set("isOnscreen",YES),this.set("shouldHideForScreenReader",YES)},showWithIconSlide:function(){var e=this._iconSlideAnim||(this._iconSlideAnim=this.IconSlideAnim.create({from:0,to:1,view:this}));e.duration=450,e.redirectTo(1),e.start()},showWithFade:function(){this.animate("opacity",{from:0,to:1,duration:550*COS.ENABLE_APP_ANIMATION},{doneShowing:function(){this.view\n.didShow()}.listens("stop")}),this.set("isOnscreen",YES)},willShow:function(){},didShow:function(){this.establishFocusForScreenReader()},hide:function(){this.showForScreenReader(NO),this._pendingShow=NO;if(!this._showing)return;this.willHide(),this.resignFirstResponder(),this._showing=NO;if(!this.get("useAnimationWhenShowing"))this.hideWithNoAnimation();else{if(this.get("isDecorativeDimmed"))return this.hideWithDecorativeMode();COS.ENABLE_TRANSFORM_ANIMATIONS?this.hideWithIconSlide():this.hideWithFade()}},hideWithNoAnimation:function(){this.adjust("opacity",0),this.set("isOnscreen",NO),this.didHide()},hideWithDecorativeMode:function(){this.set("isOnscreen",NO),this.didHide(),this.finishAnimation("scale")},hideWithIconSlide:function(){var e=this._iconSlideAnim||(this._iconSlideAnim=this.IconSlideAnim.create({from:1,to:0,view:this}));e.duration=550,e.redirectTo(0),e.start()},hideWithFade:function(){this.animate("opacity",{to:0,duration:550*COS.ENABLE_APP_ANIMATION},{doneHiding:function(){this.view.set("isOnscreen",NO),this.view.didHide()}.listens("stop")})},willHide:function(){},didHide:function(){},showWhenReady:function(){var e=this.get("isReadyToShow");if(this._lastIsReadyToShow===e)return;this._lastIsReadyToShow=e,e&&this._pendingShow&&this.show()}.observes("isReadyToShow"),IconSlideAnim:CW.Animation.extend({TRAVEL:1,init:function(){this.TRAVEL=1-(CloudOS.getPath("mainPage.mainPane.appsView.zoomedOutScaleFactorForAnimation")||0),this.TRAVEL=2*this.TRAVEL,arguments.callee.base.apply(this,arguments)},update:function(){var e=this.view,t=e._buttonCenters,n=e._displayButtons,r=\nthis._frame,i=this.TRAVEL*(1-this.current),s=e._layoutBounds;if(!s)return;var o=s.centerX,u=s.centerY,a,f,l,c,h,p,d;for(a=0;(d=t[a])&&(c=n[a]);a++)h=d.x,p=d.y,h===o&&p===u&&a!==0&&(h=t[a-1].x,p=t[a-1].y),f=d.x+i*(h-o),l=d.y+i*(p-u),c.setCenter(f,l);this._layer.style.opacity=this.current,this.view.adjust("opacity",this.current)},onstop:function(){this.view.decrementAnimationCount()},onfinish:function(){this.to===0&&(this.view.set("isOnscreen",NO),this.view.didHide()),this.to===1&&this.view.didShow()},onstart:function(){this.to!==0&&(this.view.handleOnscreen(),this.view.set("isOnscreen",YES),this.view.sizeToParent(!0),this.view.update()),this._frame=this.view.get("frame"),this._layer=this.view.get("layer"),this.view.incrementAnimationCount()}}),decorativeDimmedSBOpacity:0,__lastDim__:NO,handleDecorativeDimming:function(){var e=this.get("isDecorativeDimmed");if(this.__lastDim__===(this.__lastDim__=e))return;e?(this.stopAnimation("scale"),this.buttonsContainer.adjust("scale",.95),this.buttonsContainer.adjust("opacity",this.decorativeDimmedSBOpacity),this.didDim()):this.get("isShowing")?(this.buttonsContainer.animate("scale",1,{duration:550,onstop:function(){this.view.owner.didUndim()}}),this.buttonsContainer.animate("opacity",1,{duration:550})):(this.buttonsContainer.adjust("scale",1),this.buttonsContainer.adjust("opacity",1),this.didUndim())}.observes("isDecorativeDimmed"),establishFocusForScreenReader:function(){if(this.nowShowing!==CloudOS.SPRINGBOARD)return;var e=SC.$(".icloud-text");e.length&&e[0].style.display!=="none"&&e[0].focus()}.observes("isDecorativeDimmed","isShowing"\n),showForScreenReader:function(e){this.get("isMiniSpringBoard")||this.set("shouldHideForScreenReader",e?NO:YES)},didDim:function(){},didUndim:function(){},sizeToParent:function(e){var t=this.getPath("parentView.frame");if(e!==!0&&!this.get("isOnscreen"))return;if(!t)return;var n=this._lastPFWidth!==(this._lastPFWidth=t.width),r=this._lastPFHeight!==(this._lastPFHeight=t.height);if(!n&&!r&&!this.didChangeFor("sizeToParent","isOnscreen"))return;this.adjust({width:t.width,height:t.height})}.observes("*parentView.frame","isOnscreen"),handleOnscreen:function(){var e=this.get("isOnscreen"),t=e?CloudOS.bannerManager.get("bannerHeight"):0;this.adjust({left:-2e4*!e,top:-2e4*!e+t})}.observes("isOnscreen"),handleNewPermissionToGenerateButtons:function(){SC.debug("At long last, SpringboardView is now allowed to generate button instances!"),this.get("isAllowedToGenerateButtons")&&(CloudOS.SpringboardView._isAllowedToGenerateButtons=YES),this._pendingShow&&this.scheduleForcedReadiness()}.observes("isAllowedToGenerateButtons"),update:function(e){if(this._isUpdating===(this._isUpdating=YES))return;var t=this.get("frame");if(!t)return;if(this.get("isAnimating")&&this._lastFrameHash===(this._lastFrameHash=t.width+","+t.height))return this._isUpdating=NO,this._isUpdating;if(!this._displayButtons.length)return this._isUpdating=NO;if(!this.get("isOnscreen"))return this._isUpdating=NO;var n=this.didChangeFor("update","isOnscreen");e!=="animatedLayoutBounds"&&this._decideButtonLocations();var r=this._buttonCenters.hClearance,i=this._buttonCenters.vClearance,s=r,o=i*CloudOS.SpringboardButtonView.prototype\n.ASPECT_RATIO,u=s/o,a;u>1?a=Math.ceil(o):a=Math.ceil(s),a=Math.min(142,a),this.buttonSizeDiscreteness&&(a=this.buttonSizeDiscreteness*Math.round(a/this.buttonSizeDiscreteness));for(var f=0,l,c;(c=this._buttonCenters[f])&&(l=this._displayButtons[f]);f++)!this.ANIMATE_LAYOUT||n?(l.stopAnimation(),l.setCenter(c.x,c.y,a)):l.animateCenter(c.x,c.y,a);this._isUpdating=NO},updateToAppsWhenAppropriate:function(){if(!this.get("layer"))return;if(this.getPath("buttonsContainer.isAnimating"))return;if(!this.get("isAllowedToGenerateButtons")){this._decideButtonLocations(this.getPath("apps.length")||0);return}var e=this.updateButtons()?"buttons changed":!1;e&&this.update(e)}.observes("apps","layer","isAllowedToGenerateButtons"),_globalVertOffsetsByColumnQuantity:[-5,-21,-20,-16,-18,function(e,t){return-18+Math.max(0,Math.min(18,(300-t)*18/108))}],maxSpreadDimensionsByColumnQuantity:[[Infinity,Infinity],[Infinity,1500],[767,1188],[[1320,1e3],null,null,null,[1320,Infinity]],[[1320,1e3],null,[1320,1120],[1320,1220],[1320,1320],[1320,Infinity]],[1500,1200],[1600,1400],[1700,1500],[1700,Infinity],[2e3,Infinity]],_decideButtonLocations:function(e,t){var n=this.get("frame"),r=n.width-this.ALL_FOUR_EDGE_SPACING*2,i=n.height-this.ALL_FOUR_EDGE_SPACING*2-this.TOP_INSET-this.BOTTOM_INSET,s=r/i;e===undefined&&(e=this._displayButtons.length);if(e===0)return;this._gridInfo=this._gridInfo||[],this._gridInfo.length=0;var o=1,u,a,f,l;for(var c=1;c<20;c++)o=c,f=Math.ceil(e/o),l=Math.ceil(e/f),a=r/(l+1)/(i/(f+1)),this._gridInfo[c]=a/CloudOS.SpringboardButtonView.prototype.ASPECT_RATIO;var h=Infinity,p=this._gridInfo\n.length,d;o=-1;for(c=0;c=4&&(u=2,o=Math.ceil(e/u)),t===undefined&&(t=this._forcedCols),t&&(o=t,u=Math.ceil(e/o)),this._rows=u,this._cols=o;var v=this.maxSpreadDimensionsByColumnQuantity;v=v&&v[o],v&&v[0].length&&(v=v[u]||v[u>=v.length?v.length-1:0]);var m=v&&v[0]||Infinity,g=v&&v[1]||Infinity,y=r,b=i;r=Math.min(y,m),i=Math.min(b,g);var w=this._globalVertOffsetsByColumnQuantity;w=w?w[Math.min(o,w.length-1)]||0:0,w instanceof Function&&(w=w.call(this,y,b));var E=this.ALL_FOUR_EDGE_SPACING+(y-r)/2,S=this.ALL_FOUR_EDGE_SPACING+this.TOP_INSET+(b-i)/2+w,x=this._buttonCenters||(this._buttonCenters=[]),T,N,C,k,L,A=CloudOS.get("isCloudOSLocaleRTLOriented");for(c=0;c0?SC.debug("Springboard: A wait condition became satisfied. Still waiting on "+t+" conditions. Requirement was: "+e):(SC.debug("Springboard: Springboard View has become ready to show! All of its wait conditions have been satisfied."),this._showing&&SC.debug("Springboard: Readiness is moot: Springboard is already showing."),this.invokeLast("forceReadiness"))},createButtonForApp:function(e,t){return CloudOS.SpringboardButtonView.buttonTypeForAppManager(e).create({springboardView:this,app:e},t||{})},setupButtonForApp:function(e,t){if(!e.get("isReady")){var n=t.get("name"),r="Button for "+n;this.addShowCondition(r),e.addObserver("isReady",this,function(){e.get("isReady")&&this.metShowCondition(r),this.invokeOnce(function(){var e=this.updateButtons();e&&this.update("buttons changed")})})}},createButtons:function(){var e=this.get("apps"),t,n,r=this._buttonsByName,i=this._allButtons,s,o;e?n=e.length:n=0;for(t=0;t0&&e.length===0&&this.metShowCondition("initial set of buttons");if(t.length!==e.length)return!0;for(n=0,r=t.length;ni?1:r===i?0:-1)},forceReadiness:function(){this.set("isReadyToShow",YES)},keyDown:function(e){if(!this._showing)return;var t=SC.FUNCTION_KEYS,n=SC.FUNCTION_KEYS[e.which]||SC.PRINTABLE_KEYS[e.which];return n==="right"&&this.focusRight(),n==="left"&&this.focusLeft(),n==="up"&&this.focusUp(),n==="down"&&this.focusDown(),(n==="return"||n===" ")&&this.activateFocusedButton(),e.allowDefault(),NO},currentFocus:NaN,_lastCurrentFocus:NaN,focusNone:function(){this.set("currentFocus",NaN)},focusRight:function(\n){var e=this.get("currentFocus");return isNaN(e)||e>=this._displayButtons.length-1?this.set("currentFocus",0):this.set("currentFocus",e+1)},focusLeft:function(){var e=this.get("currentFocus");return isNaN(e)||e<=0?this.set("currentFocus",this._displayButtons.length-1):this.set("currentFocus",e-1)},focusUp:function(){var e=this.get("currentFocus");if(e=(this._rows-1)*this._cols||e+this._cols>=this._displayButtons.length)return;return isNaN(e)?this.set("currentFocus",0):this.set("currentFocus",(e+this._cols)%this._displayButtons.length)},currentFocusObserver:function(){var e=this.get("currentFocus"),t=this._lastCurrentFocus;if(t===(this._lastCurrentFocus=e))return;!isNaN(t)&&this._displayButtons[t]&&this._displayButtons[t].set("isFocused",NO),!isNaN(e)&&this._displayButtons[e]&&this._displayButtons[e].set("isFocused",YES)}.observes("currentFocus"),activateFocusedButton:function(){var e=this.get("currentFocus");if(isNaN(e))return;var t=this._displayButtons[e];if(!t)return;t.mouseEntered("keyboard"),t.mouseDown("keyboard"),t.invokeLater(function(){this.mouseUp("keyboard"),this.mouseExited("keyboard")},100)},currentFocusedButton:function(){var e=this.get("currentFocus");return this._allButtons[e]}}),require("views/springboard_view"),function(){var e=!SC.browser.chrome||!SC.browser.windows;CloudOS.AppSwitcherPane=CW.PickerPane.extend(CW.Animatability\n).extend(e?CW.PaneAnimationSupport:{}).extend({layouts:["onBottom"],attributeBindings:["tabindex"],tabindex:"-1",layout:{left:-10,top:-10,width:2,height:2,opacity:0},desiredSize:{width:616,height:324},minimumSize:{width:616,height:324},desiredSizeMaxApps:{width:842,height:324},alsoScale:window.location.href.indexOf("animateAppSwitcher")!==-1,wantsAcceleratedLayer:YES,showingState:{opacity:1},hiddenState:{opacity:0},showDuration:200,hideDuration:350,firstShowDelay:1e3,acceptsKeyPane:YES,init:function(){this._originalHideDuration=this.hideDuration||this.duration,this.alsoScale&&(this.showingState.scale=1,this.hiddenState.scale=.9),arguments.callee.base.apply(this,arguments)},popup:function(){arguments.callee.base.apply(this,arguments),window.asv=this.contentView,window.asp=this,this.becomeKeyPane(),this.contentView.show(),this.contentView.becomeFirstResponder(),this.set("hideDuration",this._originalHideDuration)},chooseTransformOrigin:function(){this.alsoScale&&this.invokeLast("_chooseTransformOrigin")}.observes("layout","layer"),_chooseTransformOrigin:function(){var e=this.get("layer");if(!e)return;var t=this.$(".sc-pointer"),n;if(!t||!(t=t[0])||!(n=t.className)||typeof n!="string")return;if(n.indexOf("point-up")!==-1)return this._setTransformOrigin(t.offsetLeft+t.offsetWidth/2,t.offsetTop,e);if(n.indexOf("point-left")!==-1)return this._setTransformOrigin(t.offsetLeft,t.offsetTop+t.offsetHeight/2,e)},_setTransformOrigin:function(e,t,n){n||(n=this.get("layer")),n.style[SC.platform.domCSSPrefix+"TransformOrigin"]=Math.round(e)+"px "+Math.round(t)+"px"},paneDidHide:function(){CloudOS\n.statechart.sendAction("appSwitcherFinishedHiding"),CloudOS.appSwitcherController.set("isShowing",NO)},remove:function(){return e||this.invokeLast("paneDidHide"),arguments.callee.base.apply(this,arguments)},keyDown:function(e){if(!this.get("isVisibleInWindow")||!e)return;var t=SC.FUNCTION_KEYS[e.which]||SC.PRINTABLE_KEYS[e.which];t==="escape"&&!e.shiftKey&&CloudOS.appSwitcherController.hideAppSwitcher()},contentView:CloudOS.SpringboardView.extend({classNames:"app-switcher",isMiniSpringBoard:YES,MIN_INTER_BUTTON_SPACING:18,ALL_FOUR_EDGE_SPACING:25,TOP_INSET:-40,BOTTOM_INSET:-20,ANIMATE_LAYOUT:NO,buttonSizeDiscreteness:2,layout:{left:0,width:616,height:324,top:0},_globalVertOffsetsByColumnQuantity:null,maxSpreadDimensionsByColumnQuantity:null,useAnimationWhenShowing:NO,appIndicesBinding:"CloudOS.appController.appIndices",buttonsContainer:SC.View.extend(CW.Animatability,{ariaRole:"navigation",ariaLabel:"Toolbar.Tooltip.App.Switcher".loc()}),init:function(){this.FORCE_READINESS_TIME=this.getPath("owner.firstShowDelay")||1e3,arguments.callee.base.apply(this,arguments)},killParentDelay:function(){if(!this.get("isReadyToShow")||this._hasKilledParentDelay===(this._hasKilledParentDelay=YES))return;this.invokeLater("_killParentDelay",50)}.observes("isReadyToShow"),_killParentDelay:function(){var e=this.getPath("parentView._showTimer");if(!e)return;e.fire(),e.invalidate()},_sharedBadgeMeasurementCache:{},createButtonForApp:function(e){return arguments.callee.base.call(this,e,{ASPECT_RATIO:1/1.65,TITLE_SIZE_MULTIPLE:15/74,TITLE_TOP_MULTIPLE:170/142,SPINNER_SIZE_MULTIPLE:28/74,BADGE_H_PADDING\n:6,BADGE_V_PADDING:2,BADGE_RIGHT_INSET:-5,BADGE_TOP_INSET:-1,USE_TRANSFORM_SCALING:NO,USE_BORDER_ELEMENT:YES,USE_TITLE_HIGHLIGHT:YES,IS_INTENDED_FOR_SIGNIFICANT_DOWNSAMPLING:YES,mustShowRegardlessOfDynamicApp:YES,useExternalShadow:NO,mustHitTest:NO,_badgeMeasurementCache:this._sharedBadgeMeasurementCache,titleColor:{r:51,g:51,b:51},titleShadowSettings:{x:0,y:0,blur:0,r:0,g:0,b:0,opacity:0,opacityForIntensity:!1},action:function(){var e=this.get("pane");return e&&e.set("hideDuration",this.get("isCurrentApp")?e._originalHideDuration:0),arguments.callee.base.apply(this,arguments)},_adjustBadgeInfo:function(e){SC.browser.webkit&&e.countString[0]==="1"&&e.count>1&&e.left++}})},pruneAppList:function(e){e();var t=this.get("apps");t.unshift(this.get("dummyAppSwitcherHomeAppManager"));if(t.length>10){var n=this.get("pane"),r=n.get("desiredSizeMaxApps");n.set("desiredSize",r),n.set("minimumSize",r)}}.enhance(),dummyAppSwitcherHomeAppManager:function(){return this._dummyAppSwitcherHomeAppManager=CloudOS.AppManager.create({name:"",init:function(){this.set("appInfo",COS.AppInfo.create({displayName:function(){return"AppTitle.backToSpringboard".loc()}.property().cacheable()})),arguments.callee.base.apply(this,arguments),CW.notificationCenter.subscribeToNotification("relocalize",this,"relocalize")},relocalize:function(){this.get("appInfo").notifyPropertyChange("displayName")},appIconType:"home",appIconUrl:"/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/source/resources/images/launchpad_icon.png",appIconUrl2x:"/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/source/resources/images/launchpad_icon@2x.png"\n,warningArrowAsset:"data:image/gif;base64,R0lGODlhAQABAJAAAP///wAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==",index:-1})}.property().cacheable(),_buttonComparator:function(e,t){var n=this._dummyAppSwitcherHomeAppManager;return e===t?0:e.get("app")===n?1:t.get("app")===n?-1:arguments.callee.base.apply(this,arguments)},computeFinalDistanceAdjustment:function(e){var t=Math.max(.95,.95+7/1440+(1440-e.width)*16/490/100),n=this._finalDistanceAdjustment;return n.x=n.y=t,n},handleOnscreen:function(){this.set("isVisible",this.get("isOnscreen"))}.observes("isOnscreen"),show:function(){arguments.callee.base.apply(this,arguments),CW.notificationCenter.postNotification("redrawCalendarIconIfNecessary"),this.invokeLast(function(){var e=this.get("currentFocus");if(e){var t=this.currentFocusedButton();t&&t.$()&&t.$().focus()}else this.$()&&this.$().focus()})}})})}(),CloudOS.appSwitcherController=SC.Object.create({pane:function(){return CloudOS.AppSwitcherPane.create({dismissTarget:this,dismissAction:"didDismiss"})}.property().cacheable(),showAppSwitcher:function(e){var t=30,n=10;e||(e={left:70,top:10,width:150,height:100});var r=CloudOS.bannerManager;r.get("isBannerVisible")&&(e.top+=r.get("bannerHeight")),e.top+e.height1?2:4},USE_TITLE_HIGHLIGHT:NO,USE_BORDER_ELEMENT:NO,IS_INTENDED_FOR_SIGNIFICANT_DOWNSAMPLING:NO,requiresDownsampleableDerivative:SC.browser.msie>=9&&(window.devicePixelRatio||1)===1,mustShow:YES,titleColor:{r:255,g:255,b:255},titleShadowSettings:{r:0,g:0,b:0,x:0,y:7,blur:15,opacityForIntensity:function(e){return(e+2)/3*.25}},isCurrentApp:NO,isControl:YES,acceptsFirstResponder\n:function(){return this.get("ariaHidden")?NO:YES}.property("ariaHidden"),attributeBindings:["tabindex"],tabindex:function(){return this.get("acceptsFirstResponder")?"0":"-1"}.property("acceptsFirstResponder"),ariaHidden:function(){return this.get("springboardIsHidden")?YES:this.get("isDisabled")||this.get("isDecorativeDimmed")||this.get("isDimmed")?YES:NO}.property("isDisabled","isDecorativeDimmed","isDimmed","springboardIsHidden"),springboardIsHiddenBinding:"*springboardView.shouldHideForScreenReader",currentAppBinding:"CloudOS.appController.currentApp",isCurrentApp:function(){return this.get("app")===CloudOS.appController.get("currentApp")}.property("currentApp","app").cacheable(),makeTitleHighlightWhenCurrent:function(){if(!this.USE_TITLE_HIGHLIGHT)return;if(!this.get("isVisibleInWindow"))return;var e=this.get("layer");if(!e)return;var t=this.get("isCurrentApp"),n=this._titleHighlight;if(!n&&!t)return;n||(n=this._titleHighlight=document.createElement("div"),n.className="sb-title-highlight",n._in=NO),t?(n._in||e.appendChild(n),n._in=YES,this._titleHighlightWasSized||this.invokeLast("sizeTitleHighlightToTitleElement")):(n._in&&e.removeChild(n),n._in=NO)}.observes("isCurrentApp","isVisibleInWindow"),sizeTitleHighlightToTitleElement:function(){var e=this._titleText,t=this._title,n=this._titleHighlight;if(!t||!e||!n||!this.get("isVisibleInWindow"))return;this._titleHighlightWasSized=YES;var r=e.offsetWidth,i=e.offsetHeight,s=e.offsetTop+t.offsetTop,o=(this.get("size")||74)/2-r/2|0,u=10,a=5;n.style.left=o-u+"px",n.style.top=s-a+"px",n.style.height=i+2*a+"px",n.style.width=r+2*u+"px"\n},_badgeMeasurementCache:{},sizeBadge:function(){this.invokeLast("_sizeBadge")}.observes("isVisibleInWindow","layer"),_sizeBadge:function(){var e=this.get("badgeCount"),t=CloudOS.get("isCloudOSLocaleRTLOriented");if(!this.get("isVisibleInWindow")||!e||!this._badgeRed||!this._badgeMask)return;var n=this._badgeInfoHash||(this._badgeInfoHash={}),r=this._badgeRed.style,i=this._badgeMask.style,s=this._badgeText,o=this._badge,u=this.BADGE_H_PADDING,a=this.BADGE_V_PADDING,f,l,c;n.count=e,n.countString=e+"",l=n.countString.length,f=this._badgeMeasurementCache[l];if(!f){c=s.offsetWidth;if(!c){this._badgeSizeFallbackTimer?this._badgeSizeFallbackTimer=null:this._badgeSizeFallbackTimer=this.invokeLater("_sizeBadge",200);return}f=this._badgeMeasurementCache[l]={},f.top=n.top=s.offsetTop-a,f.left=n.left=s.offsetLeft+(t?s.offsetWidth:0)-u,f.width=n.width=c+u*2,f.height=n.height=s.offsetHeight+a*2}else n.top=f.top,n.left=f.left,n.width=f.width,n.height=f.height;this._badgeSizeFallbackTimer&&this._badgeSizeFallbackTimer.invalidate(),this._badgeSizeFallbackTimer=null,n.height>n.width&&(n.left-=(n.height-n.width)/2|0,n.width=n.height),this._adjustBadgeInfo(n),r.top=i.top=n.top+"px",t?(r.right=i.right=n.left+"px",r.removeProperty("left"),i.removeProperty("left")):(r.left=i.left=n.left+"px",r.removeProperty("right"),i.removeProperty("right")),r.width=i.width=n.width+"px",r.height=i.height=n.height+"px";var h=o.style,p=this.BADGE_RIGHT_INSET+n.left+n.width+"px";t?(h.left=p,h.removeProperty("right")):(h.right=p,h.removeProperty("left")),h.top=this.BADGE_TOP_INSET+n.top+"px"},_adjustBadgeInfo:function(\ne){SC.browser.mozilla&&e.top++,e.countString.length>1&&e.countString[0]!=="1"&&e.countString[e.countString.length-1]==="1"&&e.left--},init:function(){this.getPath("app.isDynamicallyLoaded")&&!this.mustShowRegardlessOfDynamicApp&&(this.mustShow=NO),arguments.callee.base.apply(this,arguments),this.wantsAcceleratedLayer=this.USE_TRANSFORM_SCALING,CW.notificationCenter.subscribeToNotification("relocalize",this,"relocalize")},USE_TRANSFORM_SCALING:!!SC.browser.chrome||!!SC.browser.mozilla,useExternalShadow:SC.browser.opera,mustHitTest:SC.browser.msie||SC.browser.opera,layout:{zIndex:15},classNames:"springboard-button-view".w(),ariaRole:"button",displayProperties:"titleColor titleShadowSettings isCurrentApp isDark size displayName isFocused x y isSpinning errorText isDarkTo app isUnclickable isShowingWarning isAnimatingWithParent iconElement titleIntensity isDecorativeDimmed isDecorativeDimmedOrUndimming badgeCount".w(),action:function(){var e=this.get("app"),t=CloudOS.statechart;if(!e)return;e.set("loadReason",CK.LOAD_REASON_USER_CLICK),CloudOS.appController.set("pendingApp",e),e.get("isPCSKeysDeletedLocked")?t.sendAction("showPCSDeletedMessage",e.get("displayName")):e.get("isHSALocked")?(CloudOS.authController.get("isPartiallyAuthenticated")&&CloudOS.appSwitcherController.hideAppSwitcher(),t.sendAction("showHSA",CloudOS.HSASourceEnum.USER_SELECTED_APP)):t.sendAction("userDidChooseApp")},size:142,x:0,y:0,isWaitingBinding:"*app.isWaiting",loadInBackgroundBinding:"*app.loadInBackground",displayNameBinding:"*app.appInfo.displayName",isFocused:NO,_lastIsFocused:NO,isActive:NO,appBadgeCountBinding\n:"*app.badgeCount",badgeCount:function(){return this.get("isDecorativeDimmedOrUndimming")||this.get("isLocked")?0:this.get("appBadgeCount")}.property("isDecorativeDimmedOrUndimming","appBadgeCount","isLocked"),layoutBoundsCacher:function(){if(this._layoutBounds)return this._layoutBounds;var e=this.get("springboardView"),t=e.get("layoutBounds");return t||(e._decideButtonLocations(),t=e.get("layoutBounds")),this._layoutBounds=t,t},_defaultLayoutBounds:{top:0,centerY:1,bottom:2,left:0,centerX:1,right:2},animatedLayoutBoundsCacher:function(){if(this._animatedLayoutBounds)return this._animatedLayoutBounds;var e=this.get("springboardView"),t=e.get("animatedLayoutBounds");return t||(e._decideButtonLocations(),t=e.get("animatedLayoutBounds")),this._animatedLayoutBounds=t,t},app:null,hitTest:function(e){if(isNaN(e.clientX)||isNaN(e.clientY))return YES;if(!this.convertPointToView(e))return NO;var t=this._pt_.x,n=this._pt_.y,r=this.get("frame");return r?t>=0&&t<=r.width&&n>=0&&n<=r.height:NO},mouseDown:function(e){if(e.metaKey||e.button===2||e.which==3)return e.allowDefault(),NO;this.set("isDown",YES),this.mustHitTest?this.hitTest(e)&&this.set("isActive",YES):this.set("isActive",YES)},mouseUp:function(e){var t=this.get("isActive")&&!this.get("isUnclickable");this.set("isActive",NO),this.set("isDown",NO),this.set("ignoreVirtualCursor",YES);if(!t)return;this.action();if(e!=="keyboard"){var n=this.get("springboardView");n&&n.focusNone&&n.focusNone()}},mouseMoved:function(e){if(!this.mustHitTest)return;var t=this.hitTest(e);this._lastIsOver!==t&&(this.set("isOver",this._lastIsOver=t),t?this\n.set("isActive",this.get("isDown")):this.set("isActive",NO))},mouseEntered:function(e){if(this.mustHitTest)return;this.get("isDown")&&this.set("isActive",YES),this.set("isOver",this._lastIsOver=YES)},mouseExited:function(){this.set("isActive",NO),this.set("isOver",this._lastIsOver=NO)},click:function(e){if(this.get("ignoreVirtualCursor"))return;this.mouseDown(e),this.mouseUp(e)},touchStart:function(e){return this.mouseEntered(e),this.mouseDown(e)},touchEnd:function(e){return this.mouseUp(e),this.mouseExited(e)},touchEntered:function(e){return this.mouseEntered(e)},touchExited:function(e){return this.mouseExited(e)},isDecorativeDimmedBinding:"*springboardView.isDecorativeDimmed",isSpinning:function(){return this.get("isWaiting")&&!this.get("loadInBackground")&&!this.get("isDecorativeDimmedOrUndimming")}.property("isWaiting","loadInBackground","isDecorativeDimmedOrUndimming"),isConventionallyDark:function(){return this.get("isActive")&&this.get("isDown")||this.get("isSpinning")}.property("isActive","isDown","isOver","isSpinning","isUnclickable").cacheable(),isFailedBinding:"*app.appInfo.isFailed",isDisabled:function(){var e=this.get("app");return e&&e.requiresMailAndIsMissing()?NO:this.getPath("app.isDisabled")}.property("app"),isDisabledObserver:function(){this.notifyPropertyChange("isDisabled")}.observes("*app.appInfo.isDisabled"),isLockedBinding:"*app.appInfo.isLocked",isHSALockedBinding:"*app.appInfo.isHSALocked",isPCSKeysDeletedLockedBinding:"*app.appInfo.isPCSKeysDeletedLocked",isUnqualifiedBinding:"*app.appInfo.isUnqualified",isDimmed:function(){return this.get("isDecorativeDimmedOrUndimming"\n)?NO:this.get("isUnqualified")}.property("isUnqualified","isDecorativeDimmedOrUndimming").cacheable(),isUnclickable:function(){return this.get("isDecorativeDimmedOrUndimming")?YES:this.get("isDimmed")?NO:this.get("isDisabled")}.property("isDisabled","isDimmed","isDecorativeDimmedOrUndimming"),isShowingWarning:function(){return this.get("isDecorativeDimmedOrUndimming")?NO:this.get("isDimmed")?NO:this.get("isDisabled")}.property("isDisabled","isDimmed","isDecorativeDimmedOrUndimming"),isDarkTo:function(){if(this.get("isDecorativeDimmedOrUndimming"))return 0;var e=this.get("isConventionallyDark"),t=this.get("isUnclickable"),n=this.get("isDimmed"),r;return!e&&!t&&!n&&(r=0),e&&!t&&!n&&(r=.28),!e&&t&&!n&&(r=.5),e&&t&&!n&&(r=.5),!e&&!t&&n&&(r=.5),e&&!t&&n&&(r=.7),!e&&t&&n&&(r=.5),e&&t&&n&&(r=.5),this.get("isLocked")&&(r=1-.58*(1-r)),r}.property("isConventionallyDark","isUnclickable","isDimmed","isDecorativeDimmedOrUndimming","isLocked"),isDecorativeUndimming:function(){return this.decorativeDimmingAnimationCount>0}.property("decorativeDimmingAnimationCount"),isDecorativeDimmedOrUndimming:function(){return this.get("isDecorativeDimmed")||this.get("isDecorativeUndimming")}.property("isDecorativeDimmed","isDecorativeUndimming").cacheable(),titleIntensity:function(){var e=this.get("isDimmed");return e?.25:1}.property("isDimmed"),_forceDisableChangeObserver:function(){this.invokeLast(function(){this.get("isDarkTo")===.5&&this.update()})}.observes("isDarkTo"),errorText:function(){return this.get("isUnclickable")?this.get("isDisabled")?this.getPath("app.isDisabledForMaintenance")?"Springboard.Icon.Maintenance"\n.loc():"Springboard.Icon.Offline".loc():"":""}.property("isUnclickable","isDisabled","isFailed"),stopAnimation:function(){return CW.Anim.tellFinish(this._enterAnimation),CW.Animatability.stopAnimation.apply(this,arguments)},detectAppends:function(){if(this._lastParentView===(this._lastParentView=this.get("parentView")))return;this._hasArrivedAtCoordsSinceLastAppend=NO}.observes("parentView"),setCenter:function(e,t,n){this.beginPropertyChanges(),this._hasArrivedAtCoordsSinceLastAppend=YES;var r=this._layoutBounds||this.layoutBoundsCacher(),i=this._positionSizeAnimation;i&&!i.running&&(i=null),isNaN(e)||(i&&i.removeProperty("x"),this.set("x",(e-r.left)/(r.right-r.left))),isNaN(t)||(i&&i.removeProperty("y"),this.set("y",(t-r.top)/(r.bottom-r.top))),isNaN(n)||(i&&i.removeProperty("size"),this.set("size",n)),this.endPropertyChanges()},animateCenter:function(e,t,n){var r=this._hasArrivedAtCoordsSinceLastAppend;this._hasArrivedAtCoordsSinceLastAppend=YES;var i=this.springboardView.isOnscreen;if(!i||this.get("isAnimatingWithParent"))return this.setCenter(e,t,n);if(!r){this.setCenter(e,t,n),i&&(this._enterAnimation=this.animate({duration:700,tween:CW.Anim.tweens.make("compound",function(e){return Math.max(0,e*10/7-3/7)},CW.Anim.tweens.WEBKIT_EASE),scale:{from:0,to:this.transformedScaleForSize(n)},opacity:{from:0,to:1}},{onstop:function(){this.view._enterAnimation=null}}));return}var s=this._layoutBounds||this.layoutBoundsCacher(),o={};isNaN(e)||(o.x=(e-s.left)/s.width),isNaN(t)||(o.y=(t-s.top)/s.height),isNaN(n)||(o.size=n);if(o.x||o.y||o.size)this._positionSizeAnimation=this.animateProperties\n(o,{speed:23,headStart:.002,inertia:8,ticked:4})},transformedScaleForSize:function(e){return this.USE_TRANSFORM_SCALING?e/142:1},getPxX:function(){var e=this._animatedLayoutBounds||this.animatedLayoutBoundsCacher(),t=this._layoutBounds||this.layoutBoundsCacher();return e.left.current+this.x*e.width.current*t.fullWidth},getPxY:function(){var e=this._animatedLayoutBounds||this.animatedLayoutBoundsCacher(),t=this._layoutBounds||this.layoutBoundsCacher();return e.top.current+this.y*e.height.current*t.fullHeight},fadersToKill:"mask focus arrow errorText decorBlur badge lockBadge".w(),finishAllAnimationExceptSpinner:function(){if(!this.get("isAnimatingWithParent"))return;this.finishAnimation();for(var e=0,t,n;t=this.fadersToKill[e];e++)n="_"+t+"Fader",CW.Anim.tellFinish(this[n]),this[n]=null}.observes("isAnimatingWithParent"),render:function(e){window["sb"+this.getPath("app.name").toLowerCase().substring(0,2)]=this,e.push(\'
\'+\'
\'+\'\'+(this.USE_BORDER_ELEMENT?\'
\':"")+(this.useExternalShadow?"":\'\'));var t=\nwindow.location,n=t.search,r="/";n&&(r=""),e.attr("href","https://"+t.hostname+t.search+r+"#"+this.getPath("app.name"))},parentViewDidResize:function(){arguments.callee.base.apply(this,arguments),this.invokeLast(function(){this.update("reposition")})},handleMissingIconElement:function(){var e,t=this.get("layer");if(!t)return;var n=!this.get("iconElement")&&this.get("isReady")&&!this.get("isDecorativeDimmed");CW.Anim.tellFinish(this._missingElementFader),e=this._missingElement,n?(e||(e=this._missingElement=document.createElement("div"),e.style.cssText="position:absolute; z-index:11; left:0px; right:0px; top:0px; bottom:0px; border-radius:24%; background:white; opacity:0;"),this._missingElementFader=CW.Anim.Fader.create({element:e,to:1,duration:200}).start(),e.parentNode!==t&&e.parentNode&&e.parentNode.removeChild(e),e.parentNode===t||t.appendChild(e)):(e&&e.parentNode===t?this._missingElementFader=CW.Anim.Fader.create({element:e,to:0,duration:200,cleanup:function(){e.parentNode.removeChild(e)}.listens("stop")}).start():e&&e.parentNode&&e.parentNode.removeChild(e),this._missingElement=null)}.observes("layer","iconElement","isReady","isDecorativeDimmed"),darkenMissingIconElement:function(){if(!this._missingElement)return;var e=255-(this.get("isDarkTo")||0)*255;this._missingElement.style.backgroundColor=CW.Anim.encodeColor(e,e,e)}.observes("isDarkTo"),maintainDownsampleableDerivative:function(){if(!this.IS_INTENDED_FOR_SIGNIFICANT_DOWNSAMPLING||!this.requiresDownsampleableDerivative)return;var e=this.get("layer");if(!e)return;var t=this.get("iconElement"),n=this._iconCanvas||t,r=\nthis._downsampleableDerivative;r&&r._isForIconElement!==SC.guidFor(t)&&(t&&(t.style.visibility=""),r.parentNode&&r.parentNode.removeChild(r),r=this._downsampleableDerivative=null),t?(this._downsampleableDerivativeTimer&&this._downsampleableDerivativeTimer.invalidate(),this._downsampleableDerivativeTimer=this.invokeLater("ensurePresenceOfDownsampleableDerivative",Math.random()*15+15|0,r,t,n,e)):(r&&r.parentNode&&r.parentNode.removeChild(r),r=this._downsampleableDerivative=null,this._downsampleableDerivativeTimer&&this._downsampleableDerivativeTimer.invalidate())}.observes("layer","iconElement","size"),ensurePresenceOfDownsampleableDerivative:function(e,t,n,r){var i=142,s;if(!e){var o=new Date*1;e=this._downsampleableDerivative=document.createElement("canvas"),e._isForIconElement=SC.guidFor(t),e.className="downsampleable-derivative sb-icon sb-el",e.width=e.height=i,s=e.getContext("2d"),s.drawImage(n,0,0,i,i),CloudOS.canvasBoxBlur(e,1,1),s.globalAlpha=.5,s.drawImage(n,0,0,i,i),s.globalAlpha=1,o=new Date*1-o,SC.debug("Spent "+o+"ms creating new downsampleable derivative of "+this.getPath("app.name")+" icon.")}e.parentNode&&e.parentNode!==r&&e.parentNode.removeChild(e),e.parentNode||r.appendChild(e),e.style.left=e.style.top="0px",e.style.width=e.style.height=this.get("size")+"px",t.style.visibility="hidden",e.style.visibility="visible"},update:function(e){var t,n;e&&e.setClass?t=e:(n=e,t=this.renderContext(this.get("layer")).$());if(!this._layer)return;var r=this,i=this._layer,s=NO,o=this.get("isAnimatingWithParent"),u=this._decorBlurs?this._lastSeenDecorBlurCount!==(this._lastSeenDecorBlurCount=\nthis._decorBlurs.length):NO,a=NO,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I;this.$().attr("aria-labelledby",SC.guidFor(this)+"-label"),t.setClass("current-app",this.get("isCurrentApp")),k=this.get("iconElement"),L=this._lastIconElement,k&&k.parentNode!==i&&(s=YES,L&&L!==k&&L.parentNode&&L.parentNode.removeChild(L),L=this._lastIconElement=k,jQuery(k).addClass("sb-icon").addClass("sb-el"),k.parentNode||i.appendChild(k)),!k&&L&&L.parentNode&&L.parentNode.removeChild(L),this.useExternalShadow&&!this._isExternalShadowRemovalPermanent&&((g=this._externalShadow)||(g=new Image,this._externalShadow=g,g.className="sb-external-shadow",g.setAttribute("aria-hidden","true")),!g.parentNode&&i.parentNode&&i.parentNode.appendChild(g));if((c=this.didChangeFor("update","isDecorativeDimmed"))||s){N=this.get("app"),_=this.get("isDecorativeDimmed"),this._decDimAnimTrackingOptions||(this._decDimAnimTrackingOptions={owner:this,inc:function(){isNaN(this.owner.decorativeDimmingAnimationCount)&&(this.owner.decorativeDimmingAnimationCount=0),this.owner.incrementProperty("decorativeDimmingAnimationCount")}.listens("start"),dec:function(){this.owner.decorativeDimmingAnimationCount>0&&this.owner.decrementProperty("decorativeDimmingAnimationCount")}.listens("stop")}),c&&(this._titleFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,this._decDimAnimTrackingOptions,{element:this._title,to:1-_,duration:_?0:550}).start(),this._shadowFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,this._decDimAnimTrackingOptions,{element:this._shadow||this._externalShadow,to:1-_,duration:_?0:550}).start\n());if(_&&!this._decorBlurs){this._createNextDecorBlur();if(this._decorBlurs){u=YES;for(var q=0;q.5?"none":"",r.style.display=o>.5?"":"none"):(n.style.opacity=1-Math.pow(o,1.6),r.style.opacity=1-Math.pow(1-o,1.6))},onfinish:function(){for(var e=0\n,t;t=this.blurs[e];e++)t.parentNode&&t.parentNode.removeChild(t);k.style.display="",k.style.zIndex="",k.style.opacity=""},onstop:function(){this.owner._decorBlurFader=null}}).start())}if(this.didChangeFor("update","isLocked")||this.didChangeFor("update","isDecorativeDimmedOrUndimming")){var R=this._lockBadge,U=this.get("isLocked")&&!this.get("isDecorativeDimmedOrUndimming"),z,W=NO;U&&(R||(R=this._lockBadge=document.createElement("div"),R.appendChild(z=this._lockImage=new Image),z.onload=function(){R._isLoaded=YES},z.src=this.getPath("app.lockBadgeAsset"),R.className="sb-lock-badge sb-el",R.style.opacity=0,i.appendChild(R)),W=YES),R&&(this._lockBadgeFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,{element:R,to:0+U,duration:o?0:300,shouldSkipFrame:function(){return!this.element._isLoaded}}).start())}if((A=this._lastIsDarkTo)!==(this._lastIsDarkTo=this.get("isDarkTo"))||s){var X=180;x=this.get("isDarkTo"),Math.abs((1-x)/(1-A)-.6)<1e-7&&(X=0),A===0&&x===.28&&(X=0),A===.5&&x===.7&&(X=0),o&&(X=0),CW.Anim.tellStop(this._maskFader),!!x&&!this._mask&&k&&(a=YES,this.createMaskElementFromIconElement()),this._mask&&(this._maskFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,{owner:this,element:this._mask,to:x,duration:X,renderBadgeOpacityAlso:function(){var e=this.owner._badgeMask;if(!e)return;CW.Anim.setOpacity(e,this.current)}.listens("frame")}).start())}f=this.didChangeFor("update","size"),l=this.didChangeFor("update","isSpinning");if(a||u||s||W||f||l){h=this.USE_TRANSFORM_SCALING?142:this.get("size");if(d=k&&k.style)d.width=d.height=Math.round(h)+"px";if(d=this._mask&&this.\n_mask.style)d.width=d.height=Math.round(h)+"px";if(d=this._shadow&&this._shadow.style)d.width=d.height=Math.round(y=h*this.SHADOW_SIZE_MULTIPLE)+"px",d.left=Math.round(b=Math.floor((h-y)/2))+"px",d.top=Math.round(b+h*this.SHADOW_DROP_RATIO)+"px";(d=this._warningArrow.style).width=Math.round(h*this.ARROW_WIDTH_MULTIPLE)+"px",d.height=Math.round(h*this.ARROW_HEIGHT_MULTIPLE)+"px",d.left=Math.round(h*this.ARROW_LEFT_MULTIPLE)+"px",d.top=Math.round(h*this.ARROW_TOP_MULTIPLE)+"px",(d=this._lockBadge&&this._lockBadge.style)&&(v=this._lockImage&&this._lockImage.style)&&(d.width=v.width=Math.round(h*this.LOCK_WIDTH_MULTIPLE)+"px",d.height=v.height=Math.round(h*this.LOCK_HEIGHT_MULTIPLE)+"px",d.left=Math.round(h*this.LOCK_LEFT_MULTIPLE)+"px",d.top=Math.round(h*this.LOCK_TOP_MULTIPLE)+"px"),(d=this._title.style).width=Math.round(h+60)+"px",d.height=Math.ceil(1.3*this.TITLE_SIZE_MULTIPLE*h)+"px",d.top=Math.round(this.TITLE_TOP_MULTIPLE*h)+"px",d.fontSize=Math.round(this.TITLE_SIZE_MULTIPLE*h)+"px",(d=this._errorText.style).width=Math.round(h)+"px",d.height=Math.ceil(1.3*this.ERROR_SIZE_MULTIPLE*h)+"px",d.top=Math.round(this.ERROR_TOP_MULTIPLE*h)+"px",d.fontSize=Math.round(this.ERROR_SIZE_MULTIPLE*h)+"px";if(this._decorBlurs)for(P=0;H=this._decorBlurs[P];P++)(d=H.style).width=d.height=Math.ceil(H._finalSize*h/142)+"px",d.left=d.top=Math.round(h/2-Math.ceil(H._finalSize*h/142)/2)+"px";this.get("isSpinning")&&((d=this._spinner.style).width=d.height=(this._spinnerSize=w=Math.round(this.SPINNER_SIZE_MULTIPLE*h))+"px",d.left=d.top=Math.round(h-w)/2+"px",(d=this._spinnerImage.style).width=w+"px"\n,d.height=w*(this._spinnerAssetFrameCount=this.getPath("app.spinnerAssetFrameCount"))+"px"),p=this.get("size")/142,this.USE_TRANSFORM_SCALING&&this.adjust("scale",p)}p||(p=this.get("size")/142),t.setClass("large-display-text",21*p>=20);if(n==="reposition"||f||this.didChangeFor("update","x","y")){var V=this.getPxY(),$=this.getPxX();!isNaN($)&&!isNaN(V)&&(this.adjust(m={top:Math.round(V-(T=Math.round((h=this.USE_TRANSFORM_SCALING?142:this.get("size"))/2))),left:Math.round($-T),width:Math.round(h),height:Math.round(h)}),this.useExternalShadow&&((d=this._externalShadow.style).width=d.height=(y=h*this.SHADOW_SIZE_MULTIPLE)+"px",d.left=(b=Math.floor((h-y)/2))+m.left+"px",d.top=b+h*this.SHADOW_DROP_RATIO+m.top+"px"))}this.didChangeFor("update","app")&&(N||(N=this.get("app")))&&(this._warningArrow.src=N.get("warningArrowAsset"),this._spinnerImage.src=N.get("spinnerAsset"),this._shadow&&(this._shadow.src=N.get("shadowAsset")),this._externalShadow&&(this._externalShadow.src=N.get("shadowAsset"))),this.didChangeFor("update","displayName")&&(C=this.get("displayName"))&&(this._titleText.innerHTML=C,this._titleHighlightWasSized=NO,this.invokeLast("sizeTitleHighlightToTitleElement"));if(this.didChangeFor("update","errorText")||n==="relocalization")this._errorText.innerHTML=this.get("errorText");this.didChangeFor("update","isFocused")&&this._lastIsFocused!==(this._lastIsFocused=this.get("isFocused"))&&this.$()[0].focus(),this.didChangeFor("update","isShowingWarning")&&this._lastisShowingWarning!==(this._lastisShowingWarning=this.get("isShowingWarning"))&&(this._arrowFader=CW.Anim.Fader.create\n(CW.Anim.DisplayNoneAtZero,{element:this._warningArrow,to:0+(M=this.get("isShowingWarning")),duration:o?0:M?300:300}).start(),this._errorTextFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,{element:this._errorText,to:0+(M=this.get("isShowingWarning")),duration:o?0:M?300:300}).start());if(this.didChangeFor("update","titleIntensity","titleColor","titleShadowSettings")){var J=this.get("titleIntensity"),K=this.get("titleColor"),Q=this.get("titleShadowSettings");this._title.style.color="rgba("+K.r+","+K.g+","+K.b+","+J+")",SC.browser.isIE9OrLower||(this._title.style.textShadow=Q.x+"px "+Q.y+"px "+Q.blur+"px "+"rgba("+Q.r+","+Q.g+","+Q.b+","+(Q.opacityForIntensity?Q.opacityForIntensity(J):Q.opacity)+")")}if(this.didChangeFor("update","badgeCount")||n==="relocalization")j=this.get("badgeCount"),j&&(B=j>9999?"9999+":j,this._badgeText.innerHTML=B,F=j>1?"Badge.Count.Unit.Plural":"Badge.Count.Unit.Singular",this._screenReaderText.innerHTML=", "+B+" "+F.loc(),this.invokeLast("sizeBadge")),this._badgeFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,{element:this._badge,to:j?1:0,duration:c?600:300}).start();if(l||this.didChangeFor("update","isAnimatingWithParent"))(E=this.get("isSpinning"))&&!o?(this._spinnerAnim||(this._spinnerAnim=CW.Animation.create({view:this,signal:function(e){return Math.round(e*12)%12},speed:1,name:"spinnerAnim"+this.toString(),update:function(){if(this._lastTop===(this._lastTop=this.current))return;CW.SpinnerView.renderPosition(this.current,this.view._spinnerSize,this.view._spinnerAssetFrameCount,this.view._spinnerImage)},onstart:function(){this.view._spinner\n.style.display="block",this.spinFader=CW.Fader.create({element:this.view._spinner,to:1,duration:0,name:"spinnerAnim"+this.toString()}).start()},fadeStop:function(){this.spinFader=CW.Fader.create({element:this.view._spinner,to:0,duration:500,owner:this,onfinish:function(){this.owner.stop()}}).start()},onstop:function(){this.view._spinner.style.display="none",this.spinFader&&this.spinFader.stop(),CW.Anim.setOpacity(this.view._spinner,0)}})),this._spinnerAnim.start()):this._spinnerAnim&&(!E&&!o&&this._spinnerAnim.fadeStop(),o&&this._spinnerAnim.stop());this._lastUpdateCompletion=CW.Anim.now-1},updateIfNotUpdatedLastFrame:function(e){var t=CW.Anim.frameTime;(isNaN(this._lastUpdateCompletion)||CW.Anim.now>this._lastUpdateCompletion+t)&&this.update(e)},_createNextDecorBlur:function(){if(this._decorBlurFader&&this._decorBlurs){var e=this;return}var t=this.DECOR_BLUR_DERIVATIVES[this._decorBlurs&&this._decorBlurs.length||0];if(!t)return;var n=this.generateBlurredIconDerivative(t,undefined);if(!n)return;var r=this._decorBlurs||(this._decorBlurs=[]);r.push(n),r.sort(this._sorterForDecreasingBlurRadius)},_sorterForDecreasingBlurRadius:function(e,t){return(t&&t._blurRadius||0)-(e&&e._blurRadius||0)},relocalize:function(){this.update("relocalization")},didCreateLayer:function(){if(!this.get("layer"))return;this._getPointers(),this._doInitialInlineCSS(),this.update()},_getPointers:function(){this._layer=this.get("layer"),this._spinner=this.$(".sb-spinner")[0],this._spinnerImage=this.$(".sb-spinner-image")[0],this._focus=this.$(".sb-focus")[0],this._warningArrow=this.$(".sb-arrow")[0],this\n._errorText=this.$(".sb-error-text")[0],this._title=this.$(".sb-title")[0],this._titleText=this.$(".sb-title-text")[0],this._badge=this.$(".sb-badge")[0],this._badgeText=this.$(".sb-badge .text")[0],this._badgeMask=this.$(".sb-badge .mask")[0],this._badgeRed=this.$(".sb-badge .red")[0],this._screenReaderText=this.$(".sb-ax-text")[0],this._shadow=(this._shadow=this.$(".sb-shadow"))&&this._shadow[0]},_doInitialInlineCSS:function(){this._layer.style.overflow="visible",this._spinner.style.display="none";var e="focus spinner warningArrow errorText badge badgeMask".w();for(var t=0,n;n=this["_"+e[t]];t++)CW.Anim.setOpacity(n,0)},willRemoveFromParent:function(){this.removeExternalShadow()},removeExternalShadow:function(e){this._externalShadow&&this._externalShadow.parentNode&&this._externalShadow.parentNode.removeChild(this._externalShadow),e&&(this._isExternalShadowRemovalPermanent=YES)},getLayerPositionInWindow:function(){var e=this._layerPos||(this._layerPos_={}),t=this.get("frame");return e.x=t.x,e.y=t.y,e},convertPointToView:function(e,t){var n,r;if(!this.getLayerPositionInWindow())return;return typeof e=="object"&&t===undefined&&(typeof e.clientX=="number"?(t=e.clientY,e=e.clientX):(t=e.y,e=e.x)),(n=this._pt_||(this._pt_={})).x=e-(r=this._layerPos_).x,n.y=t-r.y,n},fancyRemoveFromParent:function(){this.removeExternalShadow(YES);if(SC.browser.msie)return this.removeFromParent();if(!this.getPath("springboardView.isReadyToShow"))return this.removeFromParent();if(this._fancyRemovalAnim)return;this._fancyRemovalAnim=this.animate({opacity:0,scale:0,duration:700},{pull:function(){this\n.view._fancyRemovalAnim=null,this.view.removeFromParent(),this.view.adjust({opacity:1,scale:1})}.listens("stop")})},safeDrawImage:function(e){var t=arguments,n=t.length,r,i=this._drawImageFault=NO;if(n===4)try{e.drawImage(t[1],t[2],t[3])}catch(s){r=s}if(n===6)try{e.drawImage(t[1],t[2],t[3],t[4],t[5])}catch(s){r=s}if(n===10)try{e.drawImage(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9])}catch(s){r=s}return r?(this._drawImageFault=i=r,SC.warn("DrawImage failed. Perhaps an image was incompletely loaded? Error text: "+r),NO):YES},createMaskElementFromIconElement:function(){var e=this.get("layer"),t=this.get("iconElement");if(!e||!t)return;var n=this._mask;n&&n.parentNode&&n.parentNode.removeChild(n),n=this._mask=this.generateMaskElement(),e.appendChild(n)},generateMaskElement:function(e){var t,n,r;e||(e=this.get("iconElement"));if(!e||e.tagName==="IMG"&&!e._complete)return this._generateFallbackMaskElement();var i=e.naturalWidth||e.width||142*(window.devicePixelRatio||1),s=e.naturalHeight||e.height||142*(window.devicePixelRatio||1),o="maskForButton"+SC.guidFor(this),u=CloudOS.SpringboardView._maskCache||(CloudOS.SpringboardView._maskCache={}),a=u[o]||(u[o]={});if(a.isReady){r=document.createElement("canvas"),r.width=i,r.height=s;if(!this.safeDrawImage(r.getContext("2d"),a.can,0,0))return this._generateFallbackMaskElement()}else{r=t=document.createElement("canvas"),t.width=i,t.height=s,n=t.getContext("2d"),n.fillStyle="black",n.fillRect(0,0,i,s),n.globalCompositeOperation="destination-in";if(!this.safeDrawImage(n,e,0,0,i,s))return this._generateFallbackMaskElement();a.can=t||n.canvas\n,a.con=n,a.isReady=YES}return r.style.display="none",r.style.opacity=0,r.className="sb-mask sb-el",r},_generateFallbackMaskElement:function(){var e="";(window.devicePixelRatio||1)>1&&(e="");var t=new Image;return t.style.cssText="display:none; opacity:0;",t.src=e,t.className="sb-mask sb-el",t},generateBlurredIconDerivative:function(e,t){var n,r,i,s=new Date*1;t||(t=this.get("iconElement"));if(!t||t.tagName==="IMG"&&!t._complete)return null;e=Math.round(e||0);var o=e<=1?1:e<=6?2:e<=12?3:4,u=this.DECOR_BLUR_MAX_DOWNSAMPLE_RATIOS[e];u&&u1?this.get("appIconUrl2x"):this.get("appIconUrl"),t=URI(e);return t&&!t.domain()&&t.protocol()!=="data"?"https://"+window.location.hostname+e:e}.property("appIconUrl","appIconUrl2x").cacheable(),iconElement:null,iconDidLoad:function(){var e=this._iconAssetVessel;this.set("iconElement",e),e&&e.width&&this.set("isReady",YES)},iconDidErr:function(){this.set("isReady",YES)},prepareIcon:function(){var e=this.get("icon");if(this._lastIcon===(this._lastIcon=e)||!e)return;var t=this,n;n=this._iconAssetVessel=new Image,n._complete=NO,n._onload=function(){t._iconAssetVessel===this&&SC.run(function(\n){t.iconDidLoad()})},n.onload=function(){this._complete=YES,this._onload()},n.onerror=function(){this._complete=NO,t._iconAssetVessel===this&&SC.run(function(){t.iconDidErr()})},setTimeout(function(){if(t.get("isReady"))return;t.set("isReady",YES)},4e3),n.src=e,n.alt=""}.observes("icon")}),CloudOS.SpringboardButtonView.BUTTON_TYPES.image=CloudOS.SpringboardImageButtonView,function(){var e=window.devicePixelRatio>1?2:1;CloudOS.SpringboardCalendarButtonView=CloudOS.SpringboardImageButtonView.extend({shouldUseStaticImage:!1,requiresDownsampleableDerivative:(SC.browser.chrome||SC.browser.mozilla)&&e===1||CloudOS.SpringboardImageButtonView.prototype.requiresDownsampleableDerivative,_appendCanvas:!SC.browser.webkit,appIconSize:function(){return 142*e}.property().cacheable(),appIconPadding:21,desiredIconTextWidth:function(){var e=this.get("appIconSize"),t=this.get("_appIconPaddingAdjustedForDPR");return e-t*2}.property("appIconSize","_appIconPaddingAdjustedForDPR").cacheable(),weekdayFontFamily:"SFNSText",monthdayFontFamily:"SFNSDisplay-Numbers",weekdayFontWeight:"400",monthdayFontWeight:"300",weekdayMaxFontSize:26,monthdayMaxFontSize:91,weekdayTextColor:"#FF3B30",monthdayTextColor:"#030303",distanceFromTopToDrawWeekday:39,distanceFromTopToDrawMonthday:83,init:function(){this.staticIcon="_Springboard.CalendarTileStatic.Asset".loc(),this.get("shouldUseStaticImage")&&(this.icon=this.staticIcon);var e=this;CW.fontDetector(this.get("monthdayFontFamily"),{success:function(){e._fontLoaded()},fail:function(){e._fontNotLoaded()},timeout:3e3,testString:"1518"}),arguments.callee.base.apply(this\n,arguments);var t=CW.notificationCenter;t.subscribeToNotification("relocalize",this,"relocalize"),t.subscribeToNotification("redrawCalendarIconIfNecessary",this,"redrawCalendarIconIfNecessary"),t.subscribeToNotification("setCalendarIconDateForDebugging",this,"setCalendarIconDateForDebugging")},setCalendarIconDateForDebugging:function(e){this.customDateForDebugging||(this.customDateForDebugging=new Date),this.customDateForDebugging.setDate(e),this.redrawCalendarIconIfNecessary()},relocalize:function(){this.set("staticIcon","_Springboard.CalendarTileStatic.Asset".loc()),this.get("shouldUseStaticImage")&&this.set("icon",this.staticIcon),this.set("_isLocDifferentSinceLastDraw",!0)},isIconLoaded:!1,isMonthdayFontLoaded:!1,iconDidLoad:function(){this.set("isIconLoaded",!0),this.drawIconIfReady()},drawIconIfReady:function(){if(this.get("isMonthdayFontLoaded")&&this.get("isIconLoaded")){if(this.get("shouldUseStaticImage"))this._revertToStaticIcon();else{var e=this._iconAssetVessel,t,n,r,i=this.get("appIconSize");if(t=this._iconCanvas)t.width=t.height=1;t=this._iconCanvas=document.createElement("canvas"),n=this._iconContext=t.getContext("2d"),t.width=t.height=i,this._appendCanvas&&this.get("iconElement")!==t&&this.set("iconElement",t),this._paintIconAndScheduleUpdate()}this.set("isReady",YES),CW.notificationCenter.postNotification("calendarIconFinishedDrawing")}},redrawCalendarIconIfNecessary:function(){var e;if(!this._iconAssetVessel)return;if(this.get("shouldUseStaticImage")){this._revertToStaticIcon();return}!this.get("_isLocDifferentSinceLastDraw")&&!this.get("isDayDifferentSinceLastDraw"\n)&&(this.set("isReady",YES),CW.notificationCenter.postNotification("calendarIconFinishedDrawing")),date=this.get("customDateForDebugging")||new Date;var t=date.getDay(),n;switch(t){case 0:n="Sunday";break;case 1:n="Monday";break;case 2:n="Tuesday";break;case 3:n="Wednesday";break;case 4:n="Thursday";break;case 5:n="Friday";break;case 6:n="Saturday"}var r=("CalendarIcon."+n).loc(),i=date.getDate(),s=this.get("_lastPaintedWeekday"),o=this.get("_lastPaintedMonthday");if(s===r&&o===i)this.set("isReady",YES),CW.notificationCenter.postNotification("calendarIconFinishedDrawing");else try{this._drawIcon(date,r,i)}catch(e){SC.warn(e),this._revertToStaticIcon()}}.observes("_isLocDifferentSinceLastDraw"),generateMaskElement:function(e){return arguments.callee.base.call(this,e||this._iconCanvas)},generateBlurredIconDerivative:function(e,t){return arguments.callee.base.call(this,e,t||this._iconCanvas)},_appIconPaddingAdjustedForDPR:function(){return this.get("appIconPadding")*e}.property("appIconPadding").cacheable(),_weekdayMaxFontSizeAdjustedForDPR:function(){return this.get("weekdayMaxFontSize")*e}.property("weekdayMaxFontSize").cacheable(),_monthdayMaxFontSizeAdjustedForDPR:function(){return this.get("monthdayMaxFontSize")*e}.property("monthdayMaxFontSize").cacheable(),_distanceFromTopToDrawWeekdayAdjustedForDPR:function(){return this.get("distanceFromTopToDrawWeekday")*e}.property("distanceFromTopToDrawWeekday").cacheable(),_distanceFromTopToDrawMonthdayAdjustedForDPR:function(){return this.get("distanceFromTopToDrawMonthday")*e}.property("distanceFromTopToDrawMonthday").cacheable()\n,_isLocDifferentSinceLastDraw:!0,_isDayDifferentSinceLastDraw:function(){var e=new Date,t=e.getDay()==this.get("_lastPaintedZeroBasedWeekdayInteger"),n=e.getDate()==this.get("_lastPaintedMonthday"),r=e.getFullYear()==this.get("_lastPaintedYear");return!t||!n||!r}.property("_lastPaintedZeroBasedWeekdayInteger","_lastPaintedMonthday","_lastPaintedYear"),_lastPaintedWeekday:"",_lastPaintedZeroBasedWeekdayInteger:null,_lastPaintedMonthday:"",_lastPaintedYear:null,_fontLoaded:function(){this.set("isMonthdayFontLoaded",!0),this.drawIconIfReady()},_fontNotLoaded:function(){SC.warn("Unable to load monthday font for Calendar icon"),CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Unable to load monthday font for Calendar icon",appName:"CloudOS",isFatal:!1}),this.set("shouldUseStaticImage",!0),this.set("isMonthdayFontLoaded",!0),this.drawIconIfReady()},_paintIconAndScheduleUpdate:function(){this.redrawCalendarIconIfNecessary();var e=this.customDateForDebugging||new Date*1,t=(new Date).getTimezoneOffset()*6e4,n=Math.ceil((e-t)/864e5)*864e5-(e-t),r=this;this._daySwitchTimer&&this._daySwitchTimer.invalidate(),this._daySwitchTimer=SC.Timer.schedule({action:function(){r._paintIconAndScheduleUpdate()},interval:n+1,repeats:NO})},_revertToStaticIcon:function(){if(this.get("isIconLoaded")){var e=new Image;e.src=this.get("staticIcon"),e._complete=YES,this.set("iconElement",e),this._iconCanvas&&this._iconCanvas.parentNode&&this._iconCanvas.parentNode.removeChild(this._iconCanvas),CW.notificationCenter.postNotification("calendarIconFinishedDrawing")}},_drawIcon:function(e,t,n){CW.notificationCenter\n.postNotification("calendarIconWillRedraw");var r,i=this._iconAssetVessel,s=this._iconCanvas,o=this._iconContext;if(!i._complete||!i.width||!i.height||!s||!o)throw r="Calendar background is not downloaded. Reverting to static image.",CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Unable to download background image for Calendar icon",appName:"CloudOS",isFatal:!1}),r;s.width=0+s.width,this._drawBase(),this._drawWeekday(t),this._drawMonthday(n);if(!this._appendCanvas){var u=this.get("iconElement");u||(u=new Image,u.owner=this,u.onload=function(){this.owner.set("iconElement",this)}),u.src=s.toDataURL()}this.set("_isLocDifferentSinceLastDraw",!1),this.set("_isDayDifferentSinceLastDraw",!1),this.set("_lastPaintedZeroBasedWeekdayInteger",e.getDay()),this.set("_lastPaintedWeekday",t),this.set("_lastPaintedMonthday",n),this.set("_lastPaintedYear",e.getFullYear())},_drawBase:function(){var e=0,t=0,n=this.get("appIconSize"),r=n;this._iconContext.drawImage(this._iconAssetVessel,e,t,n,r,0,0,n,r)},_drawWeekday:function(t){var n=this.get("appIconSize"),r=this.get("_distanceFromTopToDrawWeekdayAdjustedForDPR"),i=this.get("desiredIconTextWidth"),s=this.get("weekdayFontFamily"),o=this.get("weekdayFontWeight"),u=this.get("_weekdayMaxFontSizeAdjustedForDPR"),a=this._iconContext,f=u;a.font=o+" "+f+"px "+s;var l=a.measureText(t).width;if(l===0)throw error="Width of weekday string was 0, reverting to static icon",CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Calendar icon weekday string was too short.",appName:"CloudOS",isFatal:!1}),error;while(l>=i)f-=1,a.font=o+" "+f+"px "+s,l=a.\nmeasureText(t).width;if(f<5*e)throw error="Weekday string is too long, reverting to static icon",CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Calendar icon weekday string was too long.",appName:"CloudOS",isFatal:!1}),error;a.textAlign="center",a.fillStyle=this.get("weekdayTextColor"),a.fillText(t,n/2,r)},_drawMonthday:function(t){var n=this.get("appIconSize"),r=this.get("_distanceFromTopToDrawMonthdayAdjustedForDPR"),i=this.get("desiredIconTextWidth"),s=this.get("monthdayFontFamily"),o=this.get("monthdayFontWeight"),u=this.get("_monthdayMaxFontSizeAdjustedForDPR"),a=this._iconContext,f=u;a.font=o+" "+f+"px "+s;var l=a.measureText(t).width;if(l===0)throw error="Width of day of the month was 0, reverting to static icon",CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Calendar icon monthday string was too short.",appName:"CloudOS",isFatal:!1}),error;while(l>=i)f-=1,a.font=o+" "+f+"px "+s,l=a.measureText(t).width;if(f<5*e)throw error="Monthday string is too long, reverting to static icon",CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Calendar icon monthday string was too long.",appName:"CloudOS",isFatal:!1}),error;a.textAlign="center",a.textBaseline="middle",a.fillStyle=this.get("monthdayTextColor"),a.fillText(t,n/2,r)}}),CloudOS.setCalendarIconDateForDebugging=function(e){CW.notificationCenter.postNotification("setCalendarIconDateForDebugging",e)},CloudOS.SpringboardButtonView.BUTTON_TYPES.calendar=CloudOS.SpringboardCalendarButtonView}(),CloudOS.SpringboardHomeButtonView=CloudOS.SpringboardImageButtonView.extend({action:function(){var e=this.get("paneHideDuration"\n);this.set("paneHideDuration",200),CloudOS.statechart.sendAction("userDidBeginAnimatingHome"),CloudOS.appSwitcherController.hideAppSwitcher(),this.set("paneHideDuration",e)},isShowingWarning:NO,isDimmed:NO,isUnclickable:NO}),CloudOS.SpringboardButtonView.BUTTON_TYPES.home=CloudOS.SpringboardHomeButtonView,CloudOS.iOSNotificationForSpringboard=CW.iOSNotification.extend({parentElement:function(){return CloudOS.getPath("mainPage.mainPane.springboardView.layer")}.property(),minimumSideClearanceBinding:SC.Binding.transform(function(e){return e-29}).from("CloudOS.workspaceController.accountSignoutHelpProtrusion")});' +){window.localeDidLoad=!0,SC.Event.add(document,"mousemove",function(e){var t=CloudOS.appController.getPath("currentApp"),n={clientX:e.clientX,clientY:e.clientY},r;if(!t||!t.get("contentWindow")||!t.get("isReady"))return YES;t.passMessage("_mouseMove",n)}),SC.Event.add(document,"mouseup",function(e){var t=CloudOS.appController.getPath("currentApp"),n={clientX:e.clientX,clientY:e.clientY},r;if(!t||!t.get("contentWindow")||!t.get("isReady"))return YES;t.passMessage("_mouseUp",n)});if(CloudOS.get("isCloudOSMini")){var e=CloudOS.appController.getDefaultAppName();CloudOS.displayApps.push({name:e,isDynamicallyLoaded:YES})}else CloudOSBootstrap.isOnSupportedMobile||SC.Module.loadModule("cloudos_foundation/springboard",this,function(){CloudOS.configureSpringboard()});CloudOS.getPath("mainPage.mainPane").append(),SC.debug("CloudOS.main() already has localized strings, proceeding to run CloudOS.run() now."),CloudOS.run(),CloudOS.invokeDelegateMethod(t,"applicationDidStart"),CloudOS.set("mainHasCompleted",YES)})},function(){var e="cloudkit/error_catcher";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/stylesheet.css"],styles2x:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/stylesheet.css"],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/error_catcher/1812Project43/en-us/" +,isPrefetched:YES})}(),function(){var e="cloudkit/core_types";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:[],styles2x:[],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/core_types/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/core_types/1812Project43/en-us/",isPrefetched:YES})}(),function(){var e="cloudos_foundation/language";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/stylesheet.css"],styles2x:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/",isPrefetched:YES})}(),function(){var e="cloudkit/first_run";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:["coreweb/timezone_picker","cloudkit/photo"],styles:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/stylesheet.css"],styles2x:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/first_run/1812Project43/en-us/" +,isPrefetched:YES})}(),function(){var e="cloudkit/photo";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:[],styles2x:[],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/photo/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudkit/photo/1812Project43/en-us/",isPrefetched:YES})}(),function(){var e="coreweb/date_formatter";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:[],styles2x:[],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/coreweb/date_formatter/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/coreweb/date_formatter/1812Project43/en-us/",isPrefetched:YES})}(),function(){var e="coreweb/timezone_picker";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/stylesheet.css"],styles2x:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/coreweb/timezone_picker/1812Project43/en-us/",isPrefetched:YES})}(),function(){var e="cloudos_foundation/alarms";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return; +SC.MODULE_INFO[e]=SC.Object.create({dependencies:["coreweb/date_formatter"],styles:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/alarms/1812Project43/en-us/stylesheet.css"],styles2x:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/alarms/1812Project43/en-us/stylesheet.css"],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/alarms/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/alarms/1812Project43/en-us/",isPrefetched:YES})}(),function(){var e="cloudos_foundation/sharing";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:["cloudkit/core_types"],styles:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/stylesheet.css"],styles2x:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/",stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/sharing/1812Project43/en-us/",isPrefetched:YES})}(),function(){var e="cloudos_foundation/springboard";if(!SC.MODULE_INFO)throw"SC.MODULE_INFO is not defined!";if(SC.MODULE_INFO[e])return;SC.MODULE_INFO[e]=SC.Object.create({dependencies:[],styles:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/stylesheet.css"],styles2x:["https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/stylesheet@2x.css"],scriptURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/" +,stringURL:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/",isLoaded:YES,source:'CloudOS.mixin({configureSpringboard:function(){if(this._hasConfiguredSpringBoard)return;var e={isShowingObserver:function(){CloudOS.workspaceController.get("nowShowing")<=CloudOS.AUTH?(this.$(".springboard-button-view").attr("tabindex","-1"),this.$().attr("aria-hidden","true")):(this.$(".springboard-button-view").attr("tabindex","0"),this.$().removeAttr("aria-hidden"))},springboardView:CloudOS.SpringboardView.design(COS.IsShowingSupport,{isAllowedToGenerateButtons:NO,init:function(){arguments.callee.base.apply(this,arguments);var e=CW.notificationCenter;e.subscribeToNotification("springboardMayProceed",this,"springboardMayProceed"),e.subscribeToNotification("requestedInfoForDynamicApp",this,"springboardMustWaitForDynamicApp"),e.subscribeToNotification("receivedInfoForDynamicApp",this,"springboardMayProceedFromDynamicApp"),e.subscribeToNotification("calendarIconWillRedraw",this,"springboardMustWaitForCalendarIconDrawing"),e.subscribeToNotification("calendarIconFinishedDrawing",this,"springboardMayProceedFromCalendarIconDrawing"),window.sv=this},displayKeys:[CloudOS.SPRINGBOARD,CloudOS.AUTH,CloudOS.SHARING],nowShowingBinding:"CloudOS.workspaceController.nowShowing",appIndicesBinding:"CloudOS.appController.appIndices",wantsAcceleratedLayer:!0,willShow:function(){CloudOS.workspaceController.hideCentralSpinner(null,!0)},springboardMayProceed:function(){this.set("isAllowedToGenerateButtons",YES)},springboardMustWaitForDynamicApp:function(e){this.addShowCondition("dynamic app "+e)},springboardMayProceedFromDynamicApp:function(e,t){this.metShowCondition("dynamic app "+e)},springboardMustWaitForCalendarIconDrawing\n:function(e,t){this.addShowCondition("Calendar icon must be drawn for correct language")},springboardMayProceedFromCalendarIconDrawing:function(e,t){this.metShowCondition("Calendar icon must be drawn for correct language")},childViews:CloudOS.SpringboardView.prototype.childViews.concat("accountMenu blurOverlay iCloudText".w()),blurOverlay:SC.View.extend(CW.Animatability,{classNames:"blur-overlay".w(),shouldShow:!0,shouldShowBinding:".parentView.isDecorativeDimmed",layout:{left:0,top:0,right:0,bottom:0,zIndex:2,opacity:1},shouldShowDidChange:function(){if(this.get("shouldShow"))this.animate("opacity",1,250),this.set("isVisible",!0);else{var e=this;this.animate("opacity",0,{duration:250,_updateVisibility:function(){e.set("isVisible",!1)}.listens("finish")})}}.observes("shouldShow")}),iCloudText:CloudOS.iCloudTextView.design({isEnabled:NO}),accountMenu:CloudOS.AccountMenuView.design(),isOffscreen:YES,isDecorativeDimmed:function(){var e=this.get("nowShowing");return e===CloudOS.AUTH||e===CloudOS.SHARING||!!this.get("wantsDD")}.property("nowShowing","wantsDD"),_setWantsDD:function(){var e=this.get("nowShowing")===CloudOS.AUTH;e?(this.set("wantsDD",YES),this._ddSetter&&this._ddSetter.invalidate(),this._ddSetter=null):this._ddSetter=this.invokeLater(function(){this.set("wantsDD",NO)},200)}.observes("nowShowing"),toggleChrome:function(){var e=this.get("isDecorativeDimmed");if(this.__lastToggleChromeDim__===(this.__lastToggleChromeDim__=e))return;this.accountMenu.animate("opacity",1-e,{duration:e?0:500,mustKeepLayoutSync:NO})}.observes("isDecorativeDimmed"),__lastToggleChromeDim__:NO\n,didShow:function(){this.showNotificationsIfNeeded()},didUndim:function(){this.showNotificationsIfNeeded()},showNotificationsIfNeeded:function(){this.notifyUnqualified()},notifyUnqualified:function(){var e=CloudOS.authController;if(!this._hasNotifiedUnqualified&&e.get("userRequiresUnqualifiedNotification")){var t=e.get("displayableCurrentDomain");CloudOS.iOSNotificationForSpringboard.enqueue({message:"Auth.Notification.Unqualified.Title".loc({currentDomain:t}),description:"Auth.Notification.Unqualified.Description".loc()}),this._hasNotifiedUnqualified=YES}}})},t=CloudOS.mainPage.mainPane,n={owner:t};t.appendChild(e.springboardView.create(n)),t.addObserver("CloudOS.workspaceController.nowShowing",e.isShowingObserver),this._hasConfiguredSpringBoard=YES}}),window.console&&console.log("%c\\n ********* \\n ******* ******* \\n *** *** \\n ** ** \\n ***** ** *** \\n **** ***** ** \\n ** ** \\n * * \\n ** ** ** * \\n **** ** ** ** ****** \\n ** ** ** ** **** \\n *** ** *** \\n * ** ** \\n * **** * \\n * * \\n** ** \\n* ** ** * \\n** *********** * \\n * *** ** \\n ** ** \\n *** ** \\n **** **** \\n **** **** \\n ************************************************* \\n \\n Happy to see you here! We are hiring the sharpest minds in the\\n industry who want to build the most sophisticated and delightful\\n applications on the web.\\n \\n Check out https://www.icloud.com/jobs/\\n \\n"\n,"font-family: Menlo, monospace"),CloudOS.SpringboardView=SC.View.extend(CW.Animatability,{ALL_FOUR_EDGE_SPACING:0,TOP_INSET:0,BOTTOM_INSET:0,MIN_INTER_BUTTON_SPACING:35,ANIMATE_LAYOUT:COS.ANIMATE_SPRINGBOARD_LAYOUT,FORCE_READINESS_TIME:6e3,isMiniSpringBoard:NO,buttonSizeDiscreteness:0,layout:{left:0,top:0,width:0,height:0,minHeight:COS.MIN_HEIGHT,minWidth:COS.MIN_WIDTH,zIndex:50},bannerObserver:function(){if(this.get("isMiniSpringBoard")||!this.get("isOnscreen"))return;var e=CloudOS.bannerManager,t=e.get("bannerHeight");this.animate("top",{to:t,duration:500})}.observes("CloudOS.bannerManager.bannerHeight"),classNames:["springboard-view"],wantsAcceleratedLayer:NO,displayProperties:"isOnscreen isAnimating frame".w(),isVisibleBinding:SC.Binding.oneWay("*springboardView.shouldHideForScreenReader"),isOnscreen:NO,isDecorativeDimmed:NO,isDecorativeDimmedObserver:function(){if(!this.get("isOnscreen"))return;this.get("isDecorativeDimmed")||(this.set("shouldHideForScreenReader",NO),CloudOS.workspaceController.hideCentralSpinner())}.observes("isDecorativeDimmed","isOnscreen"),attributeBindings:["aria-hidden"],shouldHideForScreenReader:YES,ariaHidden:YES,tabIndex:-1,"aria-hidden":function(){return this.get("ariaHidden")}.property("ariaHidden"),shouldHideForScreenReaderObserver:function(){this.get("shouldHideForScreenReader")?this.set({tabIndex:-1,ariaHidden:YES}):this.set({tabIndex:0,ariaHidden:NO})}.observes("shouldHideForScreenReader","isOnscreen"),appIndices:undefined,childViews:"buttonsContainer".w(),buttonsContainer:SC.View.extend(CW.Animatability,{layout:{left:0,top:0,right:0,bottom\n:0,zIndex:1},ariaRole:"main",ariaLabel:function(){return"AppTitle.backToSpringboard".loc()}.property(),focusOnButtonsContainer:function(){var e=this.get("childViews"),t=CloudOS.bannerManager;t.get("isBannerVisible")||(this.set("acceptsFirstResponder",YES),this.$().attr("tabindex",0),e&&e.length&&this.get("layer").focus())},checkForAppsAfterAnim:function(){this.owner.invokeLater("updateToAppsWhenAppropriate",100)},postAnimation:function(){this.get("isAnimating")||(this.checkForAppsAfterAnim(),this.focusOnButtonsContainer())}.observes("isAnimating")}),apps:undefined,isReadyToShow:NO,isAllowedToGenerateButtons:YES,useAnimationWhenShowing:!0,init:function(){CloudOS.SpringboardView._isAllowedToGenerateButtons&&(this.isAllowedToGenerateButtons=YES),arguments.callee.base.apply(this,arguments),this._allButtons=[],this._displayButtons=[],this._buttonsByName={},this._finalDistanceAdjustment={},this._waitingForConditions=SC.Set.create(),this._conditionsMet=SC.Set.create(),this.addShowCondition("initial set of buttons"),this.sizeToParent(!0),this.handleOnscreen(),this.appsOneWayBindingImplementedViaObserver(),CW.notificationCenter.subscribeToNotification("relocalize",this,"relocalize")},relocalize:function(){var e=this._prevCloudOSLocaleRTL,t=CloudOS.get("isCloudOSLocaleRTLOriented");e!==t&&this._decideButtonLocations(),this._prevCloudOSLocaleRTL=t},appsOneWayBindingImplementedViaObserver:function(){this.pruneAppList()}.observes("CloudOS.appController.appList","CloudOS.appController.appList.[]"),pruneAppList:function(){var e=CloudOS.appController.get("appList"),t=CloudOS.authController,\nn=t.get("user"),r=t.get("iCloudLiteSignUp")||n&&n.get("isLiteAccount"),i=[],s,o;if(!e)return;for(s=0;o=e[s];s++){if(o.get("isHidden")||!o.get("supportsLite")&&r)continue;i.push(o)}this.set("apps",i)},awaitShow:function(){this._pendingShow=YES,this.get("isAllowedToGenerateButtons")&&this.scheduleForcedReadiness()},scheduleForcedReadiness:function(){if(this._scheduledForceReadiness)return;this._scheduledForceReadiness=this.invokeLater(function(){this._scheduledForceReadiness=null,this.forceReadiness()},this.FORCE_READINESS_TIME)},show:function(){this.showForScreenReader(YES);if(this._showing)return;if(!this.get("isReadyToShow"))return this.awaitShow();this.willShow(),this.becomeFirstResponder(),this._pendingShow=NO,this._showing=YES,this._decideButtonLocations(),this.get("useAnimationWhenShowing")?this.get("isDecorativeDimmed")?this.showWithDecorativeMode():COS.ENABLE_TRANSFORM_ANIMATIONS?this.showWithIconSlide():this.showWithFade():this.showWithNoAnimation()},showWithNoAnimation:function(){this.adjust("opacity",1),this.set("isOnscreen",YES),this.didShow()},showWithDecorativeMode:function(){this.animate("opacity",{from:0,to:1,duration:1500},{onstop:function(){this.view.adjust("opacity",1),this.view.didShow()}}),this.set("isOnscreen",YES),this.set("shouldHideForScreenReader",YES)},showWithIconSlide:function(){var e=this._iconSlideAnim||(this._iconSlideAnim=this.IconSlideAnim.create({from:0,to:1,view:this}));e.duration=450,e.redirectTo(1),e.start()},showWithFade:function(){this.animate("opacity",{from:0,to:1,duration:550*COS.ENABLE_APP_ANIMATION},{doneShowing:function(){this.view\n.didShow()}.listens("stop")}),this.set("isOnscreen",YES)},willShow:function(){},didShow:function(){this.establishFocusForScreenReader()},hide:function(){this.showForScreenReader(NO),this._pendingShow=NO;if(!this._showing)return;this.willHide(),this.resignFirstResponder(),this._showing=NO;if(!this.get("useAnimationWhenShowing"))this.hideWithNoAnimation();else{if(this.get("isDecorativeDimmed"))return this.hideWithDecorativeMode();COS.ENABLE_TRANSFORM_ANIMATIONS?this.hideWithIconSlide():this.hideWithFade()}},hideWithNoAnimation:function(){this.adjust("opacity",0),this.set("isOnscreen",NO),this.didHide()},hideWithDecorativeMode:function(){this.set("isOnscreen",NO),this.didHide(),this.finishAnimation("scale")},hideWithIconSlide:function(){var e=this._iconSlideAnim||(this._iconSlideAnim=this.IconSlideAnim.create({from:1,to:0,view:this}));e.duration=550,e.redirectTo(0),e.start()},hideWithFade:function(){this.animate("opacity",{to:0,duration:550*COS.ENABLE_APP_ANIMATION},{doneHiding:function(){this.view.set("isOnscreen",NO),this.view.didHide()}.listens("stop")})},willHide:function(){},didHide:function(){},showWhenReady:function(){var e=this.get("isReadyToShow");if(this._lastIsReadyToShow===e)return;this._lastIsReadyToShow=e,e&&this._pendingShow&&this.show()}.observes("isReadyToShow"),IconSlideAnim:CW.Animation.extend({TRAVEL:1,init:function(){this.TRAVEL=1-(CloudOS.getPath("mainPage.mainPane.appsView.zoomedOutScaleFactorForAnimation")||0),this.TRAVEL=2*this.TRAVEL,arguments.callee.base.apply(this,arguments)},update:function(){var e=this.view,t=e._buttonCenters,n=e._displayButtons,r=\nthis._frame,i=this.TRAVEL*(1-this.current),s=e._layoutBounds;if(!s)return;var o=s.centerX,u=s.centerY,a,f,l,c,h,p,d;for(a=0;(d=t[a])&&(c=n[a]);a++)h=d.x,p=d.y,h===o&&p===u&&a!==0&&(h=t[a-1].x,p=t[a-1].y),f=d.x+i*(h-o),l=d.y+i*(p-u),c.setCenter(f,l);this._layer.style.opacity=this.current,this.view.adjust("opacity",this.current)},onstop:function(){this.view.decrementAnimationCount()},onfinish:function(){this.to===0&&(this.view.set("isOnscreen",NO),this.view.didHide()),this.to===1&&this.view.didShow()},onstart:function(){this.to!==0&&(this.view.handleOnscreen(),this.view.set("isOnscreen",YES),this.view.sizeToParent(!0),this.view.update()),this._frame=this.view.get("frame"),this._layer=this.view.get("layer"),this.view.incrementAnimationCount()}}),decorativeDimmedSBOpacity:0,__lastDim__:NO,handleDecorativeDimming:function(){var e=this.get("isDecorativeDimmed");if(this.__lastDim__===(this.__lastDim__=e))return;e?(this.stopAnimation("scale"),this.buttonsContainer.adjust("scale",.95),this.buttonsContainer.adjust("opacity",this.decorativeDimmedSBOpacity),this.didDim()):this.get("isShowing")?(this.buttonsContainer.animate("scale",1,{duration:550,onstop:function(){this.view.owner.didUndim()}}),this.buttonsContainer.animate("opacity",1,{duration:550})):(this.buttonsContainer.adjust("scale",1),this.buttonsContainer.adjust("opacity",1),this.didUndim())}.observes("isDecorativeDimmed"),establishFocusForScreenReader:function(){if(this.nowShowing!==CloudOS.SPRINGBOARD)return;var e=SC.$(".icloud-text");e.length&&e[0].style.display!=="none"&&e[0].focus()}.observes("isDecorativeDimmed","isShowing"\n),showForScreenReader:function(e){this.get("isMiniSpringBoard")||this.set("shouldHideForScreenReader",e?NO:YES)},didDim:function(){},didUndim:function(){},sizeToParent:function(e){var t=this.getPath("parentView.frame");if(e!==!0&&!this.get("isOnscreen"))return;if(!t)return;var n=this._lastPFWidth!==(this._lastPFWidth=t.width),r=this._lastPFHeight!==(this._lastPFHeight=t.height);if(!n&&!r&&!this.didChangeFor("sizeToParent","isOnscreen"))return;this.adjust({width:t.width,height:t.height})}.observes("*parentView.frame","isOnscreen"),handleOnscreen:function(){var e=this.get("isOnscreen"),t=e?CloudOS.bannerManager.get("bannerHeight"):0;this.adjust({left:-2e4*!e,top:-2e4*!e+t})}.observes("isOnscreen"),handleNewPermissionToGenerateButtons:function(){SC.debug("At long last, SpringboardView is now allowed to generate button instances!"),this.get("isAllowedToGenerateButtons")&&(CloudOS.SpringboardView._isAllowedToGenerateButtons=YES),this._pendingShow&&this.scheduleForcedReadiness()}.observes("isAllowedToGenerateButtons"),update:function(e){if(this._isUpdating===(this._isUpdating=YES))return;var t=this.get("frame");if(!t)return;if(this.get("isAnimating")&&this._lastFrameHash===(this._lastFrameHash=t.width+","+t.height))return this._isUpdating=NO,this._isUpdating;if(!this._displayButtons.length)return this._isUpdating=NO;if(!this.get("isOnscreen"))return this._isUpdating=NO;var n=this.didChangeFor("update","isOnscreen");e!=="animatedLayoutBounds"&&this._decideButtonLocations();var r=this._buttonCenters.hClearance,i=this._buttonCenters.vClearance,s=r,o=i*CloudOS.SpringboardButtonView.prototype\n.ASPECT_RATIO,u=s/o,a;u>1?a=Math.ceil(o):a=Math.ceil(s),a=Math.min(142,a),this.buttonSizeDiscreteness&&(a=this.buttonSizeDiscreteness*Math.round(a/this.buttonSizeDiscreteness));for(var f=0,l,c;(c=this._buttonCenters[f])&&(l=this._displayButtons[f]);f++)!this.ANIMATE_LAYOUT||n?(l.stopAnimation(),l.setCenter(c.x,c.y,a)):l.animateCenter(c.x,c.y,a);this._isUpdating=NO},updateToAppsWhenAppropriate:function(){if(!this.get("layer"))return;if(this.getPath("buttonsContainer.isAnimating"))return;if(!this.get("isAllowedToGenerateButtons")){this._decideButtonLocations(this.getPath("apps.length")||0);return}var e=this.updateButtons()?"buttons changed":!1;e&&this.update(e)}.observes("apps","layer","isAllowedToGenerateButtons"),_globalVertOffsetsByColumnQuantity:[-5,-21,-20,-16,-18,function(e,t){return-18+Math.max(0,Math.min(18,(300-t)*18/108))}],maxSpreadDimensionsByColumnQuantity:[[Infinity,Infinity],[Infinity,1500],[767,1188],[[1320,1e3],null,null,null,[1320,Infinity]],[[1320,1e3],null,[1320,1120],[1320,1220],[1320,1320],[1320,Infinity]],[1500,1200],[1600,1400],[1700,1500],[1700,Infinity],[2e3,Infinity]],_decideButtonLocations:function(e,t){var n=this.get("frame"),r=n.width-this.ALL_FOUR_EDGE_SPACING*2,i=n.height-this.ALL_FOUR_EDGE_SPACING*2-this.TOP_INSET-this.BOTTOM_INSET,s=r/i;e===undefined&&(e=this._displayButtons.length);if(e===0)return;this._gridInfo=this._gridInfo||[],this._gridInfo.length=0;var o=1,u,a,f,l;for(var c=1;c<20;c++)o=c,f=Math.ceil(e/o),l=Math.ceil(e/f),a=r/(l+1)/(i/(f+1)),this._gridInfo[c]=a/CloudOS.SpringboardButtonView.prototype.ASPECT_RATIO;var h=Infinity,p=this._gridInfo\n.length,d;o=-1;for(c=0;c=4&&(u=2,o=Math.ceil(e/u)),t===undefined&&(t=this._forcedCols),t&&(o=t,u=Math.ceil(e/o)),this._rows=u,this._cols=o;var v=this.maxSpreadDimensionsByColumnQuantity;v=v&&v[o],v&&v[0].length&&(v=v[u]||v[u>=v.length?v.length-1:0]);var m=v&&v[0]||Infinity,g=v&&v[1]||Infinity,y=r,b=i;r=Math.min(y,m),i=Math.min(b,g);var w=this._globalVertOffsetsByColumnQuantity;w=w?w[Math.min(o,w.length-1)]||0:0,w instanceof Function&&(w=w.call(this,y,b));var E=this.ALL_FOUR_EDGE_SPACING+(y-r)/2,S=this.ALL_FOUR_EDGE_SPACING+this.TOP_INSET+(b-i)/2+w,x=this._buttonCenters||(this._buttonCenters=[]),T,N,C,k,L,A=CloudOS.get("isCloudOSLocaleRTLOriented");for(c=0;c0?SC.debug("Springboard: A wait condition became satisfied. Still waiting on "+t+" conditions. Requirement was: "+e):(SC.debug("Springboard: Springboard View has become ready to show! All of its wait conditions have been satisfied."),this._showing&&SC.debug("Springboard: Readiness is moot: Springboard is already showing."),this.invokeLast("forceReadiness"))},createButtonForApp:function(e,t){return CloudOS.SpringboardButtonView.buttonTypeForAppManager(e).create({springboardView:this,app:e},t||{})},setupButtonForApp:function(e,t){if(!e.get("isReady")){var n=t.get("name"),r="Button for "+n;this.addShowCondition(r),e.addObserver("isReady",this,function(){e.get("isReady")&&this.metShowCondition(r),this.invokeOnce(function(){var e=this.updateButtons();e&&this.update("buttons changed")})})}},createButtons:function(){var e=this.get("apps"),t,n,r=this._buttonsByName,i=this._allButtons,s,o;e?n=e.length:n=0;for(t=0;t0&&e.length===0&&this.metShowCondition("initial set of buttons");if(t.length!==e.length)return!0;for(n=0,r=t.length;ni?1:r===i?0:-1)},forceReadiness:function(){this.set("isReadyToShow",YES)},keyDown:function(e){if(!this._showing)return;var t=SC.FUNCTION_KEYS,n=SC.FUNCTION_KEYS[e.which]||SC.PRINTABLE_KEYS[e.which];return n==="right"&&this.focusRight(),n==="left"&&this.focusLeft(),n==="up"&&this.focusUp(),n==="down"&&this.focusDown(),(n==="return"||n===" ")&&this.activateFocusedButton(),e.allowDefault(),NO},currentFocus:NaN,_lastCurrentFocus:NaN,focusNone:function(){this.set("currentFocus",NaN)},focusRight:function(\n){var e=this.get("currentFocus");return isNaN(e)||e>=this._displayButtons.length-1?this.set("currentFocus",0):this.set("currentFocus",e+1)},focusLeft:function(){var e=this.get("currentFocus");return isNaN(e)||e<=0?this.set("currentFocus",this._displayButtons.length-1):this.set("currentFocus",e-1)},focusUp:function(){var e=this.get("currentFocus");if(e=(this._rows-1)*this._cols||e+this._cols>=this._displayButtons.length)return;return isNaN(e)?this.set("currentFocus",0):this.set("currentFocus",(e+this._cols)%this._displayButtons.length)},currentFocusObserver:function(){var e=this.get("currentFocus"),t=this._lastCurrentFocus;if(t===(this._lastCurrentFocus=e))return;!isNaN(t)&&this._displayButtons[t]&&this._displayButtons[t].set("isFocused",NO),!isNaN(e)&&this._displayButtons[e]&&this._displayButtons[e].set("isFocused",YES)}.observes("currentFocus"),activateFocusedButton:function(){var e=this.get("currentFocus");if(isNaN(e))return;var t=this._displayButtons[e];if(!t)return;t.mouseEntered("keyboard"),t.mouseDown("keyboard"),t.invokeLater(function(){this.mouseUp("keyboard"),this.mouseExited("keyboard")},100)},currentFocusedButton:function(){var e=this.get("currentFocus");return this._allButtons[e]}}),require("views/springboard_view"),function(){var e=!SC.browser.chrome||!SC.browser.windows;CloudOS.AppSwitcherPane=CW.PickerPane.extend(CW.Animatability\n).extend(e?CW.PaneAnimationSupport:{}).extend({layouts:["onBottom"],attributeBindings:["tabindex"],tabindex:"-1",layout:{left:-10,top:-10,width:2,height:2,opacity:0},desiredSize:{width:616,height:324},minimumSize:{width:616,height:324},desiredSizeMaxApps:{width:842,height:324},alsoScale:window.location.href.indexOf("animateAppSwitcher")!==-1,wantsAcceleratedLayer:YES,showingState:{opacity:1},hiddenState:{opacity:0},showDuration:200,hideDuration:350,firstShowDelay:1e3,acceptsKeyPane:YES,init:function(){this._originalHideDuration=this.hideDuration||this.duration,this.alsoScale&&(this.showingState.scale=1,this.hiddenState.scale=.9),arguments.callee.base.apply(this,arguments)},popup:function(){arguments.callee.base.apply(this,arguments),window.asv=this.contentView,window.asp=this,this.becomeKeyPane(),this.contentView.show(),this.contentView.becomeFirstResponder(),this.set("hideDuration",this._originalHideDuration)},chooseTransformOrigin:function(){this.alsoScale&&this.invokeLast("_chooseTransformOrigin")}.observes("layout","layer"),_chooseTransformOrigin:function(){var e=this.get("layer");if(!e)return;var t=this.$(".sc-pointer"),n;if(!t||!(t=t[0])||!(n=t.className)||typeof n!="string")return;if(n.indexOf("point-up")!==-1)return this._setTransformOrigin(t.offsetLeft+t.offsetWidth/2,t.offsetTop,e);if(n.indexOf("point-left")!==-1)return this._setTransformOrigin(t.offsetLeft,t.offsetTop+t.offsetHeight/2,e)},_setTransformOrigin:function(e,t,n){n||(n=this.get("layer")),n.style[SC.platform.domCSSPrefix+"TransformOrigin"]=Math.round(e)+"px "+Math.round(t)+"px"},paneDidHide:function(){CloudOS\n.statechart.sendAction("appSwitcherFinishedHiding"),CloudOS.appSwitcherController.set("isShowing",NO)},remove:function(){return e||this.invokeLast("paneDidHide"),arguments.callee.base.apply(this,arguments)},keyDown:function(e){if(!this.get("isVisibleInWindow")||!e)return;var t=SC.FUNCTION_KEYS[e.which]||SC.PRINTABLE_KEYS[e.which];t==="escape"&&!e.shiftKey&&CloudOS.appSwitcherController.hideAppSwitcher()},contentView:CloudOS.SpringboardView.extend({classNames:"app-switcher",isMiniSpringBoard:YES,MIN_INTER_BUTTON_SPACING:18,ALL_FOUR_EDGE_SPACING:25,TOP_INSET:-40,BOTTOM_INSET:-20,ANIMATE_LAYOUT:NO,buttonSizeDiscreteness:2,layout:{left:0,width:616,height:324,top:0},_globalVertOffsetsByColumnQuantity:null,maxSpreadDimensionsByColumnQuantity:null,useAnimationWhenShowing:NO,appIndicesBinding:"CloudOS.appController.appIndices",buttonsContainer:SC.View.extend(CW.Animatability,{ariaRole:"navigation",ariaLabel:"Toolbar.Tooltip.App.Switcher".loc()}),init:function(){this.FORCE_READINESS_TIME=this.getPath("owner.firstShowDelay")||1e3,arguments.callee.base.apply(this,arguments)},killParentDelay:function(){if(!this.get("isReadyToShow")||this._hasKilledParentDelay===(this._hasKilledParentDelay=YES))return;this.invokeLater("_killParentDelay",50)}.observes("isReadyToShow"),_killParentDelay:function(){var e=this.getPath("parentView._showTimer");if(!e)return;e.fire(),e.invalidate()},_sharedBadgeMeasurementCache:{},createButtonForApp:function(e){return arguments.callee.base.call(this,e,{ASPECT_RATIO:1/1.65,TITLE_SIZE_MULTIPLE:15/74,TITLE_TOP_MULTIPLE:170/142,SPINNER_SIZE_MULTIPLE:28/74,BADGE_H_PADDING\n:6,BADGE_V_PADDING:2,BADGE_RIGHT_INSET:-5,BADGE_TOP_INSET:-1,USE_TRANSFORM_SCALING:NO,USE_BORDER_ELEMENT:YES,USE_TITLE_HIGHLIGHT:YES,IS_INTENDED_FOR_SIGNIFICANT_DOWNSAMPLING:YES,mustShowRegardlessOfDynamicApp:YES,useExternalShadow:NO,mustHitTest:NO,_badgeMeasurementCache:this._sharedBadgeMeasurementCache,titleColor:{r:51,g:51,b:51},titleShadowSettings:{x:0,y:0,blur:0,r:0,g:0,b:0,opacity:0,opacityForIntensity:!1},action:function(){var e=this.get("pane");return e&&e.set("hideDuration",this.get("isCurrentApp")?e._originalHideDuration:0),arguments.callee.base.apply(this,arguments)},_adjustBadgeInfo:function(e){SC.browser.webkit&&e.countString[0]==="1"&&e.count>1&&e.left++}})},pruneAppList:function(e){e();var t=this.get("apps");t.unshift(this.get("dummyAppSwitcherHomeAppManager"));if(t.length>10){var n=this.get("pane"),r=n.get("desiredSizeMaxApps");n.set("desiredSize",r),n.set("minimumSize",r)}}.enhance(),dummyAppSwitcherHomeAppManager:function(){return this._dummyAppSwitcherHomeAppManager=CloudOS.AppManager.create({name:"",init:function(){this.set("appInfo",COS.AppInfo.create({displayName:function(){return"AppTitle.backToSpringboard".loc()}.property().cacheable()})),arguments.callee.base.apply(this,arguments),CW.notificationCenter.subscribeToNotification("relocalize",this,"relocalize")},relocalize:function(){this.get("appInfo").notifyPropertyChange("displayName")},appIconType:"home",appIconUrl:"/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/source/resources/images/launchpad_icon.png",appIconUrl2x:"/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/source/resources/images/launchpad_icon@2x.png"\n,warningArrowAsset:"data:image/gif;base64,R0lGODlhAQABAJAAAP///wAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==",index:-1})}.property().cacheable(),_buttonComparator:function(e,t){var n=this._dummyAppSwitcherHomeAppManager;return e===t?0:e.get("app")===n?1:t.get("app")===n?-1:arguments.callee.base.apply(this,arguments)},computeFinalDistanceAdjustment:function(e){var t=Math.max(.95,.95+7/1440+(1440-e.width)*16/490/100),n=this._finalDistanceAdjustment;return n.x=n.y=t,n},handleOnscreen:function(){this.set("isVisible",this.get("isOnscreen"))}.observes("isOnscreen"),show:function(){arguments.callee.base.apply(this,arguments),CW.notificationCenter.postNotification("redrawCalendarIconIfNecessary"),this.invokeLast(function(){var e=this.get("currentFocus");if(e){var t=this.currentFocusedButton();t&&t.$()&&t.$().focus()}else this.$()&&this.$().focus()})}})})}(),CloudOS.appSwitcherController=SC.Object.create({pane:function(){return CloudOS.AppSwitcherPane.create({dismissTarget:this,dismissAction:"didDismiss"})}.property().cacheable(),showAppSwitcher:function(e){var t=30,n=10;e||(e={left:70,top:10,width:150,height:100});var r=CloudOS.bannerManager;r.get("isBannerVisible")&&(e.top+=r.get("bannerHeight")),e.top+e.height1?2:4},USE_TITLE_HIGHLIGHT:NO,USE_BORDER_ELEMENT:NO,IS_INTENDED_FOR_SIGNIFICANT_DOWNSAMPLING:NO,requiresDownsampleableDerivative:SC.browser.msie>=9&&(window.devicePixelRatio||1)===1,mustShow:YES,titleColor:{r:255,g:255,b:255},titleShadowSettings:{r:0,g:0,b:0,x:0,y:7,blur:15,opacityForIntensity:function(e){return(e+2)/3*.25}},isCurrentApp:NO,isControl:YES,acceptsFirstResponder\n:function(){return this.get("ariaHidden")?NO:YES}.property("ariaHidden"),attributeBindings:["tabindex"],tabindex:function(){return this.get("acceptsFirstResponder")?"0":"-1"}.property("acceptsFirstResponder"),ariaHidden:function(){return this.get("springboardIsHidden")?YES:this.get("isDisabled")||this.get("isDecorativeDimmed")||this.get("isDimmed")?YES:NO}.property("isDisabled","isDecorativeDimmed","isDimmed","springboardIsHidden"),springboardIsHiddenBinding:"*springboardView.shouldHideForScreenReader",currentAppBinding:"CloudOS.appController.currentApp",isCurrentApp:function(){return this.get("app")===CloudOS.appController.get("currentApp")}.property("currentApp","app").cacheable(),makeTitleHighlightWhenCurrent:function(){if(!this.USE_TITLE_HIGHLIGHT)return;if(!this.get("isVisibleInWindow"))return;var e=this.get("layer");if(!e)return;var t=this.get("isCurrentApp"),n=this._titleHighlight;if(!n&&!t)return;n||(n=this._titleHighlight=document.createElement("div"),n.className="sb-title-highlight",n._in=NO),t?(n._in||e.appendChild(n),n._in=YES,this._titleHighlightWasSized||this.invokeLast("sizeTitleHighlightToTitleElement")):(n._in&&e.removeChild(n),n._in=NO)}.observes("isCurrentApp","isVisibleInWindow"),sizeTitleHighlightToTitleElement:function(){var e=this._titleText,t=this._title,n=this._titleHighlight;if(!t||!e||!n||!this.get("isVisibleInWindow"))return;this._titleHighlightWasSized=YES;var r=e.offsetWidth,i=e.offsetHeight,s=e.offsetTop+t.offsetTop,o=(this.get("size")||74)/2-r/2|0,u=10,a=5;n.style.left=o-u+"px",n.style.top=s-a+"px",n.style.height=i+2*a+"px",n.style.width=r+2*u+"px"\n},_badgeMeasurementCache:{},sizeBadge:function(){this.invokeLast("_sizeBadge")}.observes("isVisibleInWindow","layer"),_sizeBadge:function(){var e=this.get("badgeCount"),t=CloudOS.get("isCloudOSLocaleRTLOriented");if(!this.get("isVisibleInWindow")||!e||!this._badgeRed||!this._badgeMask)return;var n=this._badgeInfoHash||(this._badgeInfoHash={}),r=this._badgeRed.style,i=this._badgeMask.style,s=this._badgeText,o=this._badge,u=this.BADGE_H_PADDING,a=this.BADGE_V_PADDING,f,l,c;n.count=e,n.countString=e+"",l=n.countString.length,f=this._badgeMeasurementCache[l];if(!f){c=s.offsetWidth;if(!c){this._badgeSizeFallbackTimer?this._badgeSizeFallbackTimer=null:this._badgeSizeFallbackTimer=this.invokeLater("_sizeBadge",200);return}f=this._badgeMeasurementCache[l]={},f.top=n.top=s.offsetTop-a,f.left=n.left=s.offsetLeft+(t?s.offsetWidth:0)-u,f.width=n.width=c+u*2,f.height=n.height=s.offsetHeight+a*2}else n.top=f.top,n.left=f.left,n.width=f.width,n.height=f.height;this._badgeSizeFallbackTimer&&this._badgeSizeFallbackTimer.invalidate(),this._badgeSizeFallbackTimer=null,n.height>n.width&&(n.left-=(n.height-n.width)/2|0,n.width=n.height),this._adjustBadgeInfo(n),r.top=i.top=n.top+"px",t?(r.right=i.right=n.left+"px",r.removeProperty("left"),i.removeProperty("left")):(r.left=i.left=n.left+"px",r.removeProperty("right"),i.removeProperty("right")),r.width=i.width=n.width+"px",r.height=i.height=n.height+"px";var h=o.style,p=this.BADGE_RIGHT_INSET+n.left+n.width+"px";t?(h.left=p,h.removeProperty("right")):(h.right=p,h.removeProperty("left")),h.top=this.BADGE_TOP_INSET+n.top+"px"},_adjustBadgeInfo:function(\ne){SC.browser.mozilla&&e.top++,e.countString.length>1&&e.countString[0]!=="1"&&e.countString[e.countString.length-1]==="1"&&e.left--},init:function(){this.getPath("app.isDynamicallyLoaded")&&!this.mustShowRegardlessOfDynamicApp&&(this.mustShow=NO),arguments.callee.base.apply(this,arguments),this.wantsAcceleratedLayer=this.USE_TRANSFORM_SCALING,CW.notificationCenter.subscribeToNotification("relocalize",this,"relocalize")},USE_TRANSFORM_SCALING:!!SC.browser.chrome||!!SC.browser.mozilla,useExternalShadow:SC.browser.opera,mustHitTest:SC.browser.msie||SC.browser.opera,layout:{zIndex:15},classNames:"springboard-button-view".w(),ariaRole:"button",displayProperties:"titleColor titleShadowSettings isCurrentApp isDark size displayName isFocused x y isSpinning errorText isDarkTo app isUnclickable isShowingWarning isAnimatingWithParent iconElement titleIntensity isDecorativeDimmed isDecorativeDimmedOrUndimming badgeCount".w(),action:function(){var e=this.get("app"),t=CloudOS.statechart;if(!e)return;e.set("loadReason",CK.LOAD_REASON_USER_CLICK),CloudOS.appController.set("pendingApp",e),e.get("isPCSKeysDeletedLocked")?t.sendAction("showPCSDeletedMessage",e.get("displayName")):e.get("isHSALocked")?(CloudOS.authController.get("isPartiallyAuthenticated")&&CloudOS.appSwitcherController.hideAppSwitcher(),t.sendAction("showHSA",CloudOS.HSASourceEnum.USER_SELECTED_APP)):t.sendAction("userDidChooseApp")},size:142,x:0,y:0,isWaitingBinding:"*app.isWaiting",loadInBackgroundBinding:"*app.loadInBackground",displayNameBinding:"*app.appInfo.displayName",isFocused:NO,_lastIsFocused:NO,isActive:NO,appBadgeCountBinding\n:"*app.badgeCount",badgeCount:function(){return this.get("isDecorativeDimmedOrUndimming")||this.get("isLocked")?0:this.get("appBadgeCount")}.property("isDecorativeDimmedOrUndimming","appBadgeCount","isLocked"),layoutBoundsCacher:function(){if(this._layoutBounds)return this._layoutBounds;var e=this.get("springboardView"),t=e.get("layoutBounds");return t||(e._decideButtonLocations(),t=e.get("layoutBounds")),this._layoutBounds=t,t},_defaultLayoutBounds:{top:0,centerY:1,bottom:2,left:0,centerX:1,right:2},animatedLayoutBoundsCacher:function(){if(this._animatedLayoutBounds)return this._animatedLayoutBounds;var e=this.get("springboardView"),t=e.get("animatedLayoutBounds");return t||(e._decideButtonLocations(),t=e.get("animatedLayoutBounds")),this._animatedLayoutBounds=t,t},app:null,hitTest:function(e){if(isNaN(e.clientX)||isNaN(e.clientY))return YES;if(!this.convertPointToView(e))return NO;var t=this._pt_.x,n=this._pt_.y,r=this.get("frame");return r?t>=0&&t<=r.width&&n>=0&&n<=r.height:NO},mouseDown:function(e){if(e.metaKey||e.button===2||e.which==3)return e.allowDefault(),NO;this.set("isDown",YES),this.mustHitTest?this.hitTest(e)&&this.set("isActive",YES):this.set("isActive",YES)},mouseUp:function(e){var t=this.get("isActive")&&!this.get("isUnclickable");this.set("isActive",NO),this.set("isDown",NO),this.set("ignoreVirtualCursor",YES);if(!t)return;this.action();if(e!=="keyboard"){var n=this.get("springboardView");n&&n.focusNone&&n.focusNone()}},mouseMoved:function(e){if(!this.mustHitTest)return;var t=this.hitTest(e);this._lastIsOver!==t&&(this.set("isOver",this._lastIsOver=t),t?this\n.set("isActive",this.get("isDown")):this.set("isActive",NO))},mouseEntered:function(e){if(this.mustHitTest)return;this.get("isDown")&&this.set("isActive",YES),this.set("isOver",this._lastIsOver=YES)},mouseExited:function(){this.set("isActive",NO),this.set("isOver",this._lastIsOver=NO)},click:function(e){if(this.get("ignoreVirtualCursor"))return;this.mouseDown(e),this.mouseUp(e)},touchStart:function(e){return this.mouseEntered(e),this.mouseDown(e)},touchEnd:function(e){return this.mouseUp(e),this.mouseExited(e)},touchEntered:function(e){return this.mouseEntered(e)},touchExited:function(e){return this.mouseExited(e)},isDecorativeDimmedBinding:"*springboardView.isDecorativeDimmed",isSpinning:function(){return this.get("isWaiting")&&!this.get("loadInBackground")&&!this.get("isDecorativeDimmedOrUndimming")}.property("isWaiting","loadInBackground","isDecorativeDimmedOrUndimming"),isConventionallyDark:function(){return this.get("isActive")&&this.get("isDown")||this.get("isSpinning")}.property("isActive","isDown","isOver","isSpinning","isUnclickable").cacheable(),isFailedBinding:"*app.appInfo.isFailed",isDisabled:function(){var e=this.get("app");return e&&e.requiresMailAndIsMissing()?NO:this.getPath("app.isDisabled")}.property("app"),isDisabledObserver:function(){this.notifyPropertyChange("isDisabled")}.observes("*app.appInfo.isDisabled"),isLockedBinding:"*app.appInfo.isLocked",isHSALockedBinding:"*app.appInfo.isHSALocked",isPCSKeysDeletedLockedBinding:"*app.appInfo.isPCSKeysDeletedLocked",isUnqualifiedBinding:"*app.appInfo.isUnqualified",isDimmed:function(){return this.get("isDecorativeDimmedOrUndimming"\n)?NO:this.get("isUnqualified")}.property("isUnqualified","isDecorativeDimmedOrUndimming").cacheable(),isUnclickable:function(){return this.get("isDecorativeDimmedOrUndimming")?YES:this.get("isDimmed")?NO:this.get("isDisabled")}.property("isDisabled","isDimmed","isDecorativeDimmedOrUndimming"),isShowingWarning:function(){return this.get("isDecorativeDimmedOrUndimming")?NO:this.get("isDimmed")?NO:this.get("isDisabled")}.property("isDisabled","isDimmed","isDecorativeDimmedOrUndimming"),isDarkTo:function(){if(this.get("isDecorativeDimmedOrUndimming"))return 0;var e=this.get("isConventionallyDark"),t=this.get("isUnclickable"),n=this.get("isDimmed"),r;return!e&&!t&&!n&&(r=0),e&&!t&&!n&&(r=.28),!e&&t&&!n&&(r=.5),e&&t&&!n&&(r=.5),!e&&!t&&n&&(r=.5),e&&!t&&n&&(r=.7),!e&&t&&n&&(r=.5),e&&t&&n&&(r=.5),this.get("isLocked")&&(r=1-.58*(1-r)),r}.property("isConventionallyDark","isUnclickable","isDimmed","isDecorativeDimmedOrUndimming","isLocked"),isDecorativeUndimming:function(){return this.decorativeDimmingAnimationCount>0}.property("decorativeDimmingAnimationCount"),isDecorativeDimmedOrUndimming:function(){return this.get("isDecorativeDimmed")||this.get("isDecorativeUndimming")}.property("isDecorativeDimmed","isDecorativeUndimming").cacheable(),titleIntensity:function(){var e=this.get("isDimmed");return e?.25:1}.property("isDimmed"),_forceDisableChangeObserver:function(){this.invokeLast(function(){this.get("isDarkTo")===.5&&this.update()})}.observes("isDarkTo"),errorText:function(){return this.get("isUnclickable")?this.get("isDisabled")?this.getPath("app.isDisabledForMaintenance")?"Springboard.Icon.Maintenance"\n.loc():"Springboard.Icon.Offline".loc():"":""}.property("isUnclickable","isDisabled","isFailed"),stopAnimation:function(){return CW.Anim.tellFinish(this._enterAnimation),CW.Animatability.stopAnimation.apply(this,arguments)},detectAppends:function(){if(this._lastParentView===(this._lastParentView=this.get("parentView")))return;this._hasArrivedAtCoordsSinceLastAppend=NO}.observes("parentView"),setCenter:function(e,t,n){this.beginPropertyChanges(),this._hasArrivedAtCoordsSinceLastAppend=YES;var r=this._layoutBounds||this.layoutBoundsCacher(),i=this._positionSizeAnimation;i&&!i.running&&(i=null),isNaN(e)||(i&&i.removeProperty("x"),this.set("x",(e-r.left)/(r.right-r.left))),isNaN(t)||(i&&i.removeProperty("y"),this.set("y",(t-r.top)/(r.bottom-r.top))),isNaN(n)||(i&&i.removeProperty("size"),this.set("size",n)),this.endPropertyChanges()},animateCenter:function(e,t,n){var r=this._hasArrivedAtCoordsSinceLastAppend;this._hasArrivedAtCoordsSinceLastAppend=YES;var i=this.springboardView.isOnscreen;if(!i||this.get("isAnimatingWithParent"))return this.setCenter(e,t,n);if(!r){this.setCenter(e,t,n),i&&(this._enterAnimation=this.animate({duration:700,tween:CW.Anim.tweens.make("compound",function(e){return Math.max(0,e*10/7-3/7)},CW.Anim.tweens.WEBKIT_EASE),scale:{from:0,to:this.transformedScaleForSize(n)},opacity:{from:0,to:1}},{onstop:function(){this.view._enterAnimation=null}}));return}var s=this._layoutBounds||this.layoutBoundsCacher(),o={};isNaN(e)||(o.x=(e-s.left)/s.width),isNaN(t)||(o.y=(t-s.top)/s.height),isNaN(n)||(o.size=n);if(o.x||o.y||o.size)this._positionSizeAnimation=this.animateProperties\n(o,{speed:23,headStart:.002,inertia:8,ticked:4})},transformedScaleForSize:function(e){return this.USE_TRANSFORM_SCALING?e/142:1},getPxX:function(){var e=this._animatedLayoutBounds||this.animatedLayoutBoundsCacher(),t=this._layoutBounds||this.layoutBoundsCacher();return e.left.current+this.x*e.width.current*t.fullWidth},getPxY:function(){var e=this._animatedLayoutBounds||this.animatedLayoutBoundsCacher(),t=this._layoutBounds||this.layoutBoundsCacher();return e.top.current+this.y*e.height.current*t.fullHeight},fadersToKill:"mask focus arrow errorText decorBlur badge lockBadge".w(),finishAllAnimationExceptSpinner:function(){if(!this.get("isAnimatingWithParent"))return;this.finishAnimation();for(var e=0,t,n;t=this.fadersToKill[e];e++)n="_"+t+"Fader",CW.Anim.tellFinish(this[n]),this[n]=null}.observes("isAnimatingWithParent"),render:function(e){window["sb"+this.getPath("app.name").toLowerCase().substring(0,2)]=this,e.push(\'
\'+\'
\'+\'\'+(this.USE_BORDER_ELEMENT?\'
\':"")+(this.useExternalShadow?"":\'\'));var t=\nwindow.location,n=t.search,r="/";n&&(r=""),e.attr("href","https://"+t.hostname+t.search+r+"#"+this.getPath("app.name"))},parentViewDidResize:function(){arguments.callee.base.apply(this,arguments),this.invokeLast(function(){this.update("reposition")})},handleMissingIconElement:function(){var e,t=this.get("layer");if(!t)return;var n=!this.get("iconElement")&&this.get("isReady")&&!this.get("isDecorativeDimmed");CW.Anim.tellFinish(this._missingElementFader),e=this._missingElement,n?(e||(e=this._missingElement=document.createElement("div"),e.style.cssText="position:absolute; z-index:11; left:0px; right:0px; top:0px; bottom:0px; border-radius:24%; background:white; opacity:0;"),this._missingElementFader=CW.Anim.Fader.create({element:e,to:1,duration:200}).start(),e.parentNode!==t&&e.parentNode&&e.parentNode.removeChild(e),e.parentNode===t||t.appendChild(e)):(e&&e.parentNode===t?this._missingElementFader=CW.Anim.Fader.create({element:e,to:0,duration:200,cleanup:function(){e.parentNode.removeChild(e)}.listens("stop")}).start():e&&e.parentNode&&e.parentNode.removeChild(e),this._missingElement=null)}.observes("layer","iconElement","isReady","isDecorativeDimmed"),darkenMissingIconElement:function(){if(!this._missingElement)return;var e=255-(this.get("isDarkTo")||0)*255;this._missingElement.style.backgroundColor=CW.Anim.encodeColor(e,e,e)}.observes("isDarkTo"),maintainDownsampleableDerivative:function(){if(!this.IS_INTENDED_FOR_SIGNIFICANT_DOWNSAMPLING||!this.requiresDownsampleableDerivative)return;var e=this.get("layer");if(!e)return;var t=this.get("iconElement"),n=this._iconCanvas||t,r=\nthis._downsampleableDerivative;r&&r._isForIconElement!==SC.guidFor(t)&&(t&&(t.style.visibility=""),r.parentNode&&r.parentNode.removeChild(r),r=this._downsampleableDerivative=null),t?(this._downsampleableDerivativeTimer&&this._downsampleableDerivativeTimer.invalidate(),this._downsampleableDerivativeTimer=this.invokeLater("ensurePresenceOfDownsampleableDerivative",Math.random()*15+15|0,r,t,n,e)):(r&&r.parentNode&&r.parentNode.removeChild(r),r=this._downsampleableDerivative=null,this._downsampleableDerivativeTimer&&this._downsampleableDerivativeTimer.invalidate())}.observes("layer","iconElement","size"),ensurePresenceOfDownsampleableDerivative:function(e,t,n,r){var i=142,s;if(!e){var o=new Date*1;e=this._downsampleableDerivative=document.createElement("canvas"),e._isForIconElement=SC.guidFor(t),e.className="downsampleable-derivative sb-icon sb-el",e.width=e.height=i,s=e.getContext("2d"),s.drawImage(n,0,0,i,i),CloudOS.canvasBoxBlur(e,1,1),s.globalAlpha=.5,s.drawImage(n,0,0,i,i),s.globalAlpha=1,o=new Date*1-o,SC.debug("Spent "+o+"ms creating new downsampleable derivative of "+this.getPath("app.name")+" icon.")}e.parentNode&&e.parentNode!==r&&e.parentNode.removeChild(e),e.parentNode||r.appendChild(e),e.style.left=e.style.top="0px",e.style.width=e.style.height=this.get("size")+"px",t.style.visibility="hidden",e.style.visibility="visible"},update:function(e){var t,n;e&&e.setClass?t=e:(n=e,t=this.renderContext(this.get("layer")).$());if(!this._layer)return;var r=this,i=this._layer,s=NO,o=this.get("isAnimatingWithParent"),u=this._decorBlurs?this._lastSeenDecorBlurCount!==(this._lastSeenDecorBlurCount=\nthis._decorBlurs.length):NO,a=NO,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I;this.$().attr("aria-labelledby",SC.guidFor(this)+"-label"),t.setClass("current-app",this.get("isCurrentApp")),k=this.get("iconElement"),L=this._lastIconElement,k&&k.parentNode!==i&&(s=YES,L&&L!==k&&L.parentNode&&L.parentNode.removeChild(L),L=this._lastIconElement=k,jQuery(k).addClass("sb-icon").addClass("sb-el"),k.parentNode||i.appendChild(k)),!k&&L&&L.parentNode&&L.parentNode.removeChild(L),this.useExternalShadow&&!this._isExternalShadowRemovalPermanent&&((g=this._externalShadow)||(g=new Image,this._externalShadow=g,g.className="sb-external-shadow",g.setAttribute("aria-hidden","true")),!g.parentNode&&i.parentNode&&i.parentNode.appendChild(g));if((c=this.didChangeFor("update","isDecorativeDimmed"))||s){N=this.get("app"),_=this.get("isDecorativeDimmed"),this._decDimAnimTrackingOptions||(this._decDimAnimTrackingOptions={owner:this,inc:function(){isNaN(this.owner.decorativeDimmingAnimationCount)&&(this.owner.decorativeDimmingAnimationCount=0),this.owner.incrementProperty("decorativeDimmingAnimationCount")}.listens("start"),dec:function(){this.owner.decorativeDimmingAnimationCount>0&&this.owner.decrementProperty("decorativeDimmingAnimationCount")}.listens("stop")}),c&&(this._titleFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,this._decDimAnimTrackingOptions,{element:this._title,to:1-_,duration:_?0:550}).start(),this._shadowFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,this._decDimAnimTrackingOptions,{element:this._shadow||this._externalShadow,to:1-_,duration:_?0:550}).start\n());if(_&&!this._decorBlurs){this._createNextDecorBlur();if(this._decorBlurs){u=YES;for(var q=0;q.5?"none":"",r.style.display=o>.5?"":"none"):(n.style.opacity=1-Math.pow(o,1.6),r.style.opacity=1-Math.pow(1-o,1.6))},onfinish:function(){for(var e=0\n,t;t=this.blurs[e];e++)t.parentNode&&t.parentNode.removeChild(t);k.style.display="",k.style.zIndex="",k.style.opacity=""},onstop:function(){this.owner._decorBlurFader=null}}).start())}if(this.didChangeFor("update","isLocked")||this.didChangeFor("update","isDecorativeDimmedOrUndimming")){var R=this._lockBadge,U=this.get("isLocked")&&!this.get("isDecorativeDimmedOrUndimming"),z,W=NO;U&&(R||(R=this._lockBadge=document.createElement("div"),R.appendChild(z=this._lockImage=new Image),z.onload=function(){R._isLoaded=YES},z.src=this.getPath("app.lockBadgeAsset"),R.className="sb-lock-badge sb-el",R.style.opacity=0,i.appendChild(R)),W=YES),R&&(this._lockBadgeFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,{element:R,to:0+U,duration:o?0:300,shouldSkipFrame:function(){return!this.element._isLoaded}}).start())}if((A=this._lastIsDarkTo)!==(this._lastIsDarkTo=this.get("isDarkTo"))||s){var X=180;x=this.get("isDarkTo"),Math.abs((1-x)/(1-A)-.6)<1e-7&&(X=0),A===0&&x===.28&&(X=0),A===.5&&x===.7&&(X=0),o&&(X=0),CW.Anim.tellStop(this._maskFader),!!x&&!this._mask&&k&&(a=YES,this.createMaskElementFromIconElement()),this._mask&&(this._maskFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,{owner:this,element:this._mask,to:x,duration:X,renderBadgeOpacityAlso:function(){var e=this.owner._badgeMask;if(!e)return;CW.Anim.setOpacity(e,this.current)}.listens("frame")}).start())}f=this.didChangeFor("update","size"),l=this.didChangeFor("update","isSpinning");if(a||u||s||W||f||l){h=this.USE_TRANSFORM_SCALING?142:this.get("size");if(d=k&&k.style)d.width=d.height=Math.round(h)+"px";if(d=this._mask&&this.\n_mask.style)d.width=d.height=Math.round(h)+"px";if(d=this._shadow&&this._shadow.style)d.width=d.height=Math.round(y=h*this.SHADOW_SIZE_MULTIPLE)+"px",d.left=Math.round(b=Math.floor((h-y)/2))+"px",d.top=Math.round(b+h*this.SHADOW_DROP_RATIO)+"px";(d=this._warningArrow.style).width=Math.round(h*this.ARROW_WIDTH_MULTIPLE)+"px",d.height=Math.round(h*this.ARROW_HEIGHT_MULTIPLE)+"px",d.left=Math.round(h*this.ARROW_LEFT_MULTIPLE)+"px",d.top=Math.round(h*this.ARROW_TOP_MULTIPLE)+"px",(d=this._lockBadge&&this._lockBadge.style)&&(v=this._lockImage&&this._lockImage.style)&&(d.width=v.width=Math.round(h*this.LOCK_WIDTH_MULTIPLE)+"px",d.height=v.height=Math.round(h*this.LOCK_HEIGHT_MULTIPLE)+"px",d.left=Math.round(h*this.LOCK_LEFT_MULTIPLE)+"px",d.top=Math.round(h*this.LOCK_TOP_MULTIPLE)+"px"),(d=this._title.style).width=Math.round(h+60)+"px",d.height=Math.ceil(1.3*this.TITLE_SIZE_MULTIPLE*h)+"px",d.top=Math.round(this.TITLE_TOP_MULTIPLE*h)+"px",d.fontSize=Math.round(this.TITLE_SIZE_MULTIPLE*h)+"px",(d=this._errorText.style).width=Math.round(h)+"px",d.height=Math.ceil(1.3*this.ERROR_SIZE_MULTIPLE*h)+"px",d.top=Math.round(this.ERROR_TOP_MULTIPLE*h)+"px",d.fontSize=Math.round(this.ERROR_SIZE_MULTIPLE*h)+"px";if(this._decorBlurs)for(P=0;H=this._decorBlurs[P];P++)(d=H.style).width=d.height=Math.ceil(H._finalSize*h/142)+"px",d.left=d.top=Math.round(h/2-Math.ceil(H._finalSize*h/142)/2)+"px";this.get("isSpinning")&&((d=this._spinner.style).width=d.height=(this._spinnerSize=w=Math.round(this.SPINNER_SIZE_MULTIPLE*h))+"px",d.left=d.top=Math.round(h-w)/2+"px",(d=this._spinnerImage.style).width=w+"px"\n,d.height=w*(this._spinnerAssetFrameCount=this.getPath("app.spinnerAssetFrameCount"))+"px"),p=this.get("size")/142,this.USE_TRANSFORM_SCALING&&this.adjust("scale",p)}p||(p=this.get("size")/142),t.setClass("large-display-text",21*p>=20);if(n==="reposition"||f||this.didChangeFor("update","x","y")){var V=this.getPxY(),$=this.getPxX();!isNaN($)&&!isNaN(V)&&(this.adjust(m={top:Math.round(V-(T=Math.round((h=this.USE_TRANSFORM_SCALING?142:this.get("size"))/2))),left:Math.round($-T),width:Math.round(h),height:Math.round(h)}),this.useExternalShadow&&((d=this._externalShadow.style).width=d.height=(y=h*this.SHADOW_SIZE_MULTIPLE)+"px",d.left=(b=Math.floor((h-y)/2))+m.left+"px",d.top=b+h*this.SHADOW_DROP_RATIO+m.top+"px"))}this.didChangeFor("update","app")&&(N||(N=this.get("app")))&&(this._warningArrow.src=N.get("warningArrowAsset"),this._spinnerImage.src=N.get("spinnerAsset"),this._shadow&&(this._shadow.src=N.get("shadowAsset")),this._externalShadow&&(this._externalShadow.src=N.get("shadowAsset"))),this.didChangeFor("update","displayName")&&(C=this.get("displayName"))&&(this._titleText.innerHTML=C,this._titleHighlightWasSized=NO,this.invokeLast("sizeTitleHighlightToTitleElement"));if(this.didChangeFor("update","errorText")||n==="relocalization")this._errorText.innerHTML=this.get("errorText");this.didChangeFor("update","isFocused")&&this._lastIsFocused!==(this._lastIsFocused=this.get("isFocused"))&&this.$()[0].focus(),this.didChangeFor("update","isShowingWarning")&&this._lastisShowingWarning!==(this._lastisShowingWarning=this.get("isShowingWarning"))&&(this._arrowFader=CW.Anim.Fader.create\n(CW.Anim.DisplayNoneAtZero,{element:this._warningArrow,to:0+(M=this.get("isShowingWarning")),duration:o?0:M?300:300}).start(),this._errorTextFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,{element:this._errorText,to:0+(M=this.get("isShowingWarning")),duration:o?0:M?300:300}).start());if(this.didChangeFor("update","titleIntensity","titleColor","titleShadowSettings")){var J=this.get("titleIntensity"),K=this.get("titleColor"),Q=this.get("titleShadowSettings");this._title.style.color="rgba("+K.r+","+K.g+","+K.b+","+J+")",SC.browser.isIE9OrLower||(this._title.style.textShadow=Q.x+"px "+Q.y+"px "+Q.blur+"px "+"rgba("+Q.r+","+Q.g+","+Q.b+","+(Q.opacityForIntensity?Q.opacityForIntensity(J):Q.opacity)+")")}if(this.didChangeFor("update","badgeCount")||n==="relocalization")j=this.get("badgeCount"),j&&(B=j>9999?"9999+":j,this._badgeText.innerHTML=B,F=j>1?"Badge.Count.Unit.Plural":"Badge.Count.Unit.Singular",this._screenReaderText.innerHTML=", "+B+" "+F.loc(),this.invokeLast("sizeBadge")),this._badgeFader=CW.Anim.Fader.create(CW.Anim.DisplayNoneAtZero,{element:this._badge,to:j?1:0,duration:c?600:300}).start();if(l||this.didChangeFor("update","isAnimatingWithParent"))(E=this.get("isSpinning"))&&!o?(this._spinnerAnim||(this._spinnerAnim=CW.Animation.create({view:this,signal:function(e){return Math.round(e*12)%12},speed:1,name:"spinnerAnim"+this.toString(),update:function(){if(this._lastTop===(this._lastTop=this.current))return;CW.SpinnerView.renderPosition(this.current,this.view._spinnerSize,this.view._spinnerAssetFrameCount,this.view._spinnerImage)},onstart:function(){this.view._spinner\n.style.display="block",this.spinFader=CW.Fader.create({element:this.view._spinner,to:1,duration:0,name:"spinnerAnim"+this.toString()}).start()},fadeStop:function(){this.spinFader=CW.Fader.create({element:this.view._spinner,to:0,duration:500,owner:this,onfinish:function(){this.owner.stop()}}).start()},onstop:function(){this.view._spinner.style.display="none",this.spinFader&&this.spinFader.stop(),CW.Anim.setOpacity(this.view._spinner,0)}})),this._spinnerAnim.start()):this._spinnerAnim&&(!E&&!o&&this._spinnerAnim.fadeStop(),o&&this._spinnerAnim.stop());this._lastUpdateCompletion=CW.Anim.now-1},updateIfNotUpdatedLastFrame:function(e){var t=CW.Anim.frameTime;(isNaN(this._lastUpdateCompletion)||CW.Anim.now>this._lastUpdateCompletion+t)&&this.update(e)},_createNextDecorBlur:function(){if(this._decorBlurFader&&this._decorBlurs){var e=this;return}var t=this.DECOR_BLUR_DERIVATIVES[this._decorBlurs&&this._decorBlurs.length||0];if(!t)return;var n=this.generateBlurredIconDerivative(t,undefined);if(!n)return;var r=this._decorBlurs||(this._decorBlurs=[]);r.push(n),r.sort(this._sorterForDecreasingBlurRadius)},_sorterForDecreasingBlurRadius:function(e,t){return(t&&t._blurRadius||0)-(e&&e._blurRadius||0)},relocalize:function(){this.update("relocalization")},didCreateLayer:function(){if(!this.get("layer"))return;this._getPointers(),this._doInitialInlineCSS(),this.update()},_getPointers:function(){this._layer=this.get("layer"),this._spinner=this.$(".sb-spinner")[0],this._spinnerImage=this.$(".sb-spinner-image")[0],this._focus=this.$(".sb-focus")[0],this._warningArrow=this.$(".sb-arrow")[0],this\n._errorText=this.$(".sb-error-text")[0],this._title=this.$(".sb-title")[0],this._titleText=this.$(".sb-title-text")[0],this._badge=this.$(".sb-badge")[0],this._badgeText=this.$(".sb-badge .text")[0],this._badgeMask=this.$(".sb-badge .mask")[0],this._badgeRed=this.$(".sb-badge .red")[0],this._screenReaderText=this.$(".sb-ax-text")[0],this._shadow=(this._shadow=this.$(".sb-shadow"))&&this._shadow[0]},_doInitialInlineCSS:function(){this._layer.style.overflow="visible",this._spinner.style.display="none";var e="focus spinner warningArrow errorText badge badgeMask".w();for(var t=0,n;n=this["_"+e[t]];t++)CW.Anim.setOpacity(n,0)},willRemoveFromParent:function(){this.removeExternalShadow()},removeExternalShadow:function(e){this._externalShadow&&this._externalShadow.parentNode&&this._externalShadow.parentNode.removeChild(this._externalShadow),e&&(this._isExternalShadowRemovalPermanent=YES)},getLayerPositionInWindow:function(){var e=this._layerPos||(this._layerPos_={}),t=this.get("frame");return e.x=t.x,e.y=t.y,e},convertPointToView:function(e,t){var n,r;if(!this.getLayerPositionInWindow())return;return typeof e=="object"&&t===undefined&&(typeof e.clientX=="number"?(t=e.clientY,e=e.clientX):(t=e.y,e=e.x)),(n=this._pt_||(this._pt_={})).x=e-(r=this._layerPos_).x,n.y=t-r.y,n},fancyRemoveFromParent:function(){this.removeExternalShadow(YES);if(SC.browser.msie)return this.removeFromParent();if(!this.getPath("springboardView.isReadyToShow"))return this.removeFromParent();if(this._fancyRemovalAnim)return;this._fancyRemovalAnim=this.animate({opacity:0,scale:0,duration:700},{pull:function(){this\n.view._fancyRemovalAnim=null,this.view.removeFromParent(),this.view.adjust({opacity:1,scale:1})}.listens("stop")})},safeDrawImage:function(e){var t=arguments,n=t.length,r,i=this._drawImageFault=NO;if(n===4)try{e.drawImage(t[1],t[2],t[3])}catch(s){r=s}if(n===6)try{e.drawImage(t[1],t[2],t[3],t[4],t[5])}catch(s){r=s}if(n===10)try{e.drawImage(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9])}catch(s){r=s}return r?(this._drawImageFault=i=r,SC.warn("DrawImage failed. Perhaps an image was incompletely loaded? Error text: "+r),NO):YES},createMaskElementFromIconElement:function(){var e=this.get("layer"),t=this.get("iconElement");if(!e||!t)return;var n=this._mask;n&&n.parentNode&&n.parentNode.removeChild(n),n=this._mask=this.generateMaskElement(),e.appendChild(n)},generateMaskElement:function(e){var t,n,r;e||(e=this.get("iconElement"));if(!e||e.tagName==="IMG"&&!e._complete)return this._generateFallbackMaskElement();var i=e.naturalWidth||e.width||142*(window.devicePixelRatio||1),s=e.naturalHeight||e.height||142*(window.devicePixelRatio||1),o="maskForButton"+SC.guidFor(this),u=CloudOS.SpringboardView._maskCache||(CloudOS.SpringboardView._maskCache={}),a=u[o]||(u[o]={});if(a.isReady){r=document.createElement("canvas"),r.width=i,r.height=s;if(!this.safeDrawImage(r.getContext("2d"),a.can,0,0))return this._generateFallbackMaskElement()}else{r=t=document.createElement("canvas"),t.width=i,t.height=s,n=t.getContext("2d"),n.fillStyle="black",n.fillRect(0,0,i,s),n.globalCompositeOperation="destination-in";if(!this.safeDrawImage(n,e,0,0,i,s))return this._generateFallbackMaskElement();a.can=t||n.canvas\n,a.con=n,a.isReady=YES}return r.style.display="none",r.style.opacity=0,r.className="sb-mask sb-el",r},_generateFallbackMaskElement:function(){var e="";(window.devicePixelRatio||1)>1&&(e="");var t=new Image;return t.style.cssText="display:none; opacity:0;",t.src=e,t.className="sb-mask sb-el",t},generateBlurredIconDerivative:function(e,t){var n,r,i,s=new Date*1;t||(t=this.get("iconElement"));if(!t||t.tagName==="IMG"&&!t._complete)return null;e=Math.round(e||0);var o=e<=1?1:e<=6?2:e<=12?3:4,u=this.DECOR_BLUR_MAX_DOWNSAMPLE_RATIOS[e];u&&u1?this.get("appIconUrl2x"):this.get("appIconUrl"),t=URI(e);return t&&!t.domain()&&t.protocol()!=="data"?"https://"+window.location.hostname+e:e}.property("appIconUrl","appIconUrl2x").cacheable(),iconElement:null,iconDidLoad:function(){var e=this._iconAssetVessel;this.set("iconElement",e),e&&e.width&&this.set("isReady",YES)},iconDidErr:function(){this.set("isReady",YES)},prepareIcon:function(){var e=this.get("icon");if(this._lastIcon===(this._lastIcon=e)||!e)return;var t=this,n;n=this._iconAssetVessel=new Image,n._complete=NO,n._onload=function(){t._iconAssetVessel===this&&SC.run(function(\n){t.iconDidLoad()})},n.onload=function(){this._complete=YES,this._onload()},n.onerror=function(){this._complete=NO,t._iconAssetVessel===this&&SC.run(function(){t.iconDidErr()})},setTimeout(function(){if(t.get("isReady"))return;t.set("isReady",YES)},4e3),n.src=e,n.alt=""}.observes("icon")}),CloudOS.SpringboardButtonView.BUTTON_TYPES.image=CloudOS.SpringboardImageButtonView,function(){var e=window.devicePixelRatio>1?2:1;CloudOS.SpringboardCalendarButtonView=CloudOS.SpringboardImageButtonView.extend({shouldUseStaticImage:!1,requiresDownsampleableDerivative:(SC.browser.chrome||SC.browser.mozilla)&&e===1||CloudOS.SpringboardImageButtonView.prototype.requiresDownsampleableDerivative,_appendCanvas:!SC.browser.webkit,appIconSize:function(){return 142*e}.property().cacheable(),appIconPadding:21,desiredIconTextWidth:function(){var e=this.get("appIconSize"),t=this.get("_appIconPaddingAdjustedForDPR");return e-t*2}.property("appIconSize","_appIconPaddingAdjustedForDPR").cacheable(),weekdayFontFamily:"SFNSText",monthdayFontFamily:"SFNSDisplay-Numbers",weekdayFontWeight:"400",monthdayFontWeight:"300",weekdayMaxFontSize:26,monthdayMaxFontSize:91,weekdayTextColor:"#FF3B30",monthdayTextColor:"#030303",distanceFromTopToDrawWeekday:39,distanceFromTopToDrawMonthday:83,init:function(){this.staticIcon="_Springboard.CalendarTileStatic.Asset".loc(),this.get("shouldUseStaticImage")&&(this.icon=this.staticIcon);var e=this;CW.fontDetector(this.get("monthdayFontFamily"),{success:function(){e._fontLoaded()},fail:function(){e._fontNotLoaded()},timeout:3e3,testString:"1518"}),arguments.callee.base.apply(this\n,arguments);var t=CW.notificationCenter;t.subscribeToNotification("relocalize",this,"relocalize"),t.subscribeToNotification("redrawCalendarIconIfNecessary",this,"redrawCalendarIconIfNecessary"),t.subscribeToNotification("setCalendarIconDateForDebugging",this,"setCalendarIconDateForDebugging")},setCalendarIconDateForDebugging:function(e){this.customDateForDebugging||(this.customDateForDebugging=new Date),this.customDateForDebugging.setDate(e),this.redrawCalendarIconIfNecessary()},relocalize:function(){this.set("staticIcon","_Springboard.CalendarTileStatic.Asset".loc()),this.get("shouldUseStaticImage")&&this.set("icon",this.staticIcon),this.set("_isLocDifferentSinceLastDraw",!0)},isIconLoaded:!1,isMonthdayFontLoaded:!1,iconDidLoad:function(){this.set("isIconLoaded",!0),this.drawIconIfReady()},drawIconIfReady:function(){if(this.get("isMonthdayFontLoaded")&&this.get("isIconLoaded")){if(this.get("shouldUseStaticImage"))this._revertToStaticIcon();else{var e=this._iconAssetVessel,t,n,r,i=this.get("appIconSize");if(t=this._iconCanvas)t.width=t.height=1;t=this._iconCanvas=document.createElement("canvas"),n=this._iconContext=t.getContext("2d"),t.width=t.height=i,this._appendCanvas&&this.get("iconElement")!==t&&this.set("iconElement",t),this._paintIconAndScheduleUpdate()}this.set("isReady",YES),CW.notificationCenter.postNotification("calendarIconFinishedDrawing")}},redrawCalendarIconIfNecessary:function(){var e;if(!this._iconAssetVessel)return;if(this.get("shouldUseStaticImage")){this._revertToStaticIcon();return}!this.get("_isLocDifferentSinceLastDraw")&&!this.get("isDayDifferentSinceLastDraw"\n)&&(this.set("isReady",YES),CW.notificationCenter.postNotification("calendarIconFinishedDrawing")),date=this.get("customDateForDebugging")||new Date;var t=date.getDay(),n;switch(t){case 0:n="Sunday";break;case 1:n="Monday";break;case 2:n="Tuesday";break;case 3:n="Wednesday";break;case 4:n="Thursday";break;case 5:n="Friday";break;case 6:n="Saturday"}var r=("CalendarIcon."+n).loc(),i=date.getDate(),s=this.get("_lastPaintedWeekday"),o=this.get("_lastPaintedMonthday");if(s===r&&o===i)this.set("isReady",YES),CW.notificationCenter.postNotification("calendarIconFinishedDrawing");else try{this._drawIcon(date,r,i)}catch(e){SC.warn(e),this._revertToStaticIcon()}}.observes("_isLocDifferentSinceLastDraw"),generateMaskElement:function(e){return arguments.callee.base.call(this,e||this._iconCanvas)},generateBlurredIconDerivative:function(e,t){return arguments.callee.base.call(this,e,t||this._iconCanvas)},_appIconPaddingAdjustedForDPR:function(){return this.get("appIconPadding")*e}.property("appIconPadding").cacheable(),_weekdayMaxFontSizeAdjustedForDPR:function(){return this.get("weekdayMaxFontSize")*e}.property("weekdayMaxFontSize").cacheable(),_monthdayMaxFontSizeAdjustedForDPR:function(){return this.get("monthdayMaxFontSize")*e}.property("monthdayMaxFontSize").cacheable(),_distanceFromTopToDrawWeekdayAdjustedForDPR:function(){return this.get("distanceFromTopToDrawWeekday")*e}.property("distanceFromTopToDrawWeekday").cacheable(),_distanceFromTopToDrawMonthdayAdjustedForDPR:function(){return this.get("distanceFromTopToDrawMonthday")*e}.property("distanceFromTopToDrawMonthday").cacheable()\n,_isLocDifferentSinceLastDraw:!0,_isDayDifferentSinceLastDraw:function(){var e=new Date,t=e.getDay()==this.get("_lastPaintedZeroBasedWeekdayInteger"),n=e.getDate()==this.get("_lastPaintedMonthday"),r=e.getFullYear()==this.get("_lastPaintedYear");return!t||!n||!r}.property("_lastPaintedZeroBasedWeekdayInteger","_lastPaintedMonthday","_lastPaintedYear"),_lastPaintedWeekday:"",_lastPaintedZeroBasedWeekdayInteger:null,_lastPaintedMonthday:"",_lastPaintedYear:null,_fontLoaded:function(){this.set("isMonthdayFontLoaded",!0),this.drawIconIfReady()},_fontNotLoaded:function(){SC.warn("Unable to load monthday font for Calendar icon"),CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Unable to load monthday font for Calendar icon",appName:"CloudOS",isFatal:!1}),this.set("shouldUseStaticImage",!0),this.set("isMonthdayFontLoaded",!0),this.drawIconIfReady()},_paintIconAndScheduleUpdate:function(){this.redrawCalendarIconIfNecessary();var e=this.customDateForDebugging||new Date*1,t=(new Date).getTimezoneOffset()*6e4,n=Math.ceil((e-t)/864e5)*864e5-(e-t),r=this;this._daySwitchTimer&&this._daySwitchTimer.invalidate(),this._daySwitchTimer=SC.Timer.schedule({action:function(){r._paintIconAndScheduleUpdate()},interval:n+1,repeats:NO})},_revertToStaticIcon:function(){if(this.get("isIconLoaded")){var e=new Image;e.src=this.get("staticIcon"),e._complete=YES,this.set("iconElement",e),this._iconCanvas&&this._iconCanvas.parentNode&&this._iconCanvas.parentNode.removeChild(this._iconCanvas),CW.notificationCenter.postNotification("calendarIconFinishedDrawing")}},_drawIcon:function(e,t,n){CW.notificationCenter\n.postNotification("calendarIconWillRedraw");var r,i=this._iconAssetVessel,s=this._iconCanvas,o=this._iconContext;if(!i._complete||!i.width||!i.height||!s||!o)throw r="Calendar background is not downloaded. Reverting to static image.",CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Unable to download background image for Calendar icon",appName:"CloudOS",isFatal:!1}),r;s.width=0+s.width,this._drawBase(),this._drawWeekday(t),this._drawMonthday(n);if(!this._appendCanvas){var u=this.get("iconElement");u||(u=new Image,u.owner=this,u.onload=function(){this.owner.set("iconElement",this)}),u.src=s.toDataURL()}this.set("_isLocDifferentSinceLastDraw",!1),this.set("_isDayDifferentSinceLastDraw",!1),this.set("_lastPaintedZeroBasedWeekdayInteger",e.getDay()),this.set("_lastPaintedWeekday",t),this.set("_lastPaintedMonthday",n),this.set("_lastPaintedYear",e.getFullYear())},_drawBase:function(){var e=0,t=0,n=this.get("appIconSize"),r=n;this._iconContext.drawImage(this._iconAssetVessel,e,t,n,r,0,0,n,r)},_drawWeekday:function(t){var n=this.get("appIconSize"),r=this.get("_distanceFromTopToDrawWeekdayAdjustedForDPR"),i=this.get("desiredIconTextWidth"),s=this.get("weekdayFontFamily"),o=this.get("weekdayFontWeight"),u=this.get("_weekdayMaxFontSizeAdjustedForDPR"),a=this._iconContext,f=u;a.font=o+" "+f+"px "+s;var l=a.measureText(t).width;if(l===0)throw error="Width of weekday string was 0, reverting to static icon",CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Calendar icon weekday string was too short.",appName:"CloudOS",isFatal:!1}),error;while(l>=i)f-=1,a.font=o+" "+f+"px "+s,l=a.\nmeasureText(t).width;if(f<5*e)throw error="Weekday string is too long, reverting to static icon",CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Calendar icon weekday string was too long.",appName:"CloudOS",isFatal:!1}),error;a.textAlign="center",a.fillStyle=this.get("weekdayTextColor"),a.fillText(t,n/2,r)},_drawMonthday:function(t){var n=this.get("appIconSize"),r=this.get("_distanceFromTopToDrawMonthdayAdjustedForDPR"),i=this.get("desiredIconTextWidth"),s=this.get("monthdayFontFamily"),o=this.get("monthdayFontWeight"),u=this.get("_monthdayMaxFontSizeAdjustedForDPR"),a=this._iconContext,f=u;a.font=o+" "+f+"px "+s;var l=a.measureText(t).width;if(l===0)throw error="Width of day of the month was 0, reverting to static icon",CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Calendar icon monthday string was too short.",appName:"CloudOS",isFatal:!1}),error;while(l>=i)f-=1,a.font=o+" "+f+"px "+s,l=a.measureText(t).width;if(f<5*e)throw error="Monthday string is too long, reverting to static icon",CloudOS.recordStat("CalendarIconUnableToLoad",{error:"Calendar icon monthday string was too long.",appName:"CloudOS",isFatal:!1}),error;a.textAlign="center",a.textBaseline="middle",a.fillStyle=this.get("monthdayTextColor"),a.fillText(t,n/2,r)}}),CloudOS.setCalendarIconDateForDebugging=function(e){CW.notificationCenter.postNotification("setCalendarIconDateForDebugging",e)},CloudOS.SpringboardButtonView.BUTTON_TYPES.calendar=CloudOS.SpringboardCalendarButtonView}(),CloudOS.SpringboardHomeButtonView=CloudOS.SpringboardImageButtonView.extend({action:function(){var e=this.get("paneHideDuration"\n);this.set("paneHideDuration",200),CloudOS.statechart.sendAction("userDidBeginAnimatingHome"),CloudOS.appSwitcherController.hideAppSwitcher(),this.set("paneHideDuration",e)},isShowingWarning:NO,isDimmed:NO,isUnclickable:NO}),CloudOS.SpringboardButtonView.BUTTON_TYPES.home=CloudOS.SpringboardHomeButtonView,CloudOS.iOSNotificationForSpringboard=CW.iOSNotification.extend({parentElement:function(){return CloudOS.getPath("mainPage.mainPane.springboardView.layer")}.property(),minimumSideClearanceBinding:SC.Binding.transform(function(e){return e-29}).from("CloudOS.workspaceController.accountSignoutHelpProtrusion")});' ,cssSource:".sc-view .sc-view.cos-account-menu{overflow:visible}.sc-view .cos-account-menu .sc-button-view .sc-button-label{padding-left:33px}.sc-view .cos-account-menu>.cw-photo-icon{pointer-events:none}.sc-view .cos-account-menu>.cw-photo-icon>.photo-container{box-sizing:border-box;position:absolute;left:0px;top:0px;width:28px;height:28px;z-index:1;overflow:hidden;border-radius:28px}.sc-view .cos-account-menu>.cw-photo-icon.no-photo>.photo-frame{display:none}.sc-view .cos-account-menu>.cw-photo-icon.no-photo>.photo-container{background-image: url('https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/stylesheet-1.png');\nbackground-position: 0px 0px;\nbackground-repeat:no-repeat}.springboard-view.app-switcher .sc-button-view{color:white;color:rgba(255,255,255,0.8)}.springboard-view.app-switcher .sc-button-view:hover{color:white}.springboard-view.app-switcher .sc-button-view.active{color:white;color:rgba(255,255,255,0.8)}.springboard-view.app-switcher .main-content{background-color:white}.springboard-view.app-switcher .sb-shadow{display:none}.springboard-view.app-switcher .sb-title-highlight{position:absolute;z-index:7;margin-left:-1px;margin-top:-1px;background:#ecf7ff;border-radius:20px;border:1px solid #b6d9ff;display:none}.springboard-view.app-switcher .current-app .sb-title-highlight{display:block}.springboard-view.app-switcher .current-app .sb-title-text{color:#1573fb}.springboard-view.app-switcher .sc-view .sb-title>.sb-title-text{text-shadow:none}.springboard-view.app-switcher .sb-border{position:absolute;pointer-events:none;cursor:pointer;left:0;right:0;bottom:0;top:0;z-index:12;border-radius:23%;border:1px solid rgba(0,0,0,0.11)}.springboard-view.app-switcher .sb-badge .text{font-size:17px}.springboard-view.app-switcher .sc-view a[role=button]{outline:0}.springboard-view.app-switcher .sc-view a[role=button]:focus .sb-icon{outline:dotted #7dadd9 1px;outline:auto -webkit-focus-ring-color 1px}.springboard-view .sb-el{position:absolute}.springboard-view .sb-ax-text{position:absolute;z-index:-1;opacity:0;top:-150px;left:35px}.springboard-view .sb-badge{z-index:50;cursor:pointer;text-align:right}.springboard-view .sb-badge .text,.springboard-view .sb-badge .mask,.springboard-view .sb-badge .red{position:absolute}.springboard-view .sb-badge .text{color:white;z-index:2;font-size:25px;text-align:right}.springboard-view .sb-badge .mask,.springboard-view .sb-badge .red{position:absolute;border-radius:50px}.springboard-view .sb-badge .mask{z-index:3;background:black}.springboard-view .sb-badge .red{z-index:1;background:red}.springboard-view .sb-decor-shadow{z-index:40;cursor:default;pointer-events:none}.springboard-view .sb-spinner{z-index:30;cursor:pointer;overflow:hidden}.springboard-view .sb-arrow{z-index:25;cursor:pointer;pointer-events:none}.springboard-view .sb-mask{z-index:20;cursor:pointer}.springboard-view .sb-icon{z-index:10;cursor:pointer;image-rendering:optimizeQuality}.springboard-view .sb-shadow{z-index:5;cursor:default;pointer-events:none}.springboard-view .sb-mask,.springboard-view .sb-icon{left:0px;top:0px}.springboard-view .springboard-button-view{overflow:visible !important;cursor:default;text-decoration:none}.springboard-view .sb-external-shadow{cursor:default;position:absolute;z-index:14;pointer-events:none}.springboard-view .sb-lock-badge{z-index:27;cursor:pointer;pointer-events:none}.springboard-view .sb-lock-badge img{position:absolute;left:0px;top:0px}.springboard-view div.sc-view div.sb-title{cursor:default;z-index:8;color:white;left:-30px;text-align:center;pointer-events:none}.msie .springboard-view div.sc-view div.sb-title{pointer-events:all}.springboard-view div.sc-view div.sb-title>.sb-title-text{pointer-events:all;cursor:pointer;text-shadow:#000 0 0 25px}.windows.mozilla.tr-tr .springboard-view div.sc-view div.sb-title>.sb-title-text{font-size:19px}.springboard-view div.sc-view div.sb-error-text{cursor:default;z-index:7;color:white;left:0px;text-align:center;pointer-events:none;white-space:nowrap}.springboard-view div.custom-button{background:transparent !important;max-height:none !important}.springboard-view .sc-view a[role=button]:focus .sb-shadow{outline:dotted #7dadd9 1px;outline-style:auto;outline-color:-webkit-focus-ring-color}.springboard-view .sc-view:-moz-focusring{outline:1px dotted #9d9d9d}.springboard-view .blur-overlay{background:rgba(0,0,0,0.1)}\n" -,cssLogicalUrl:"/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/stylesheet.css",css2xSource:".sc-view .sc-view.cos-account-menu{overflow:visible}.sc-view .cos-account-menu .sc-button-view .sc-button-label{padding-left:33px}.sc-view .cos-account-menu>.cw-photo-icon{pointer-events:none}.sc-view .cos-account-menu>.cw-photo-icon>.photo-container{box-sizing:border-box;position:absolute;left:0px;top:0px;width:28px;height:28px;z-index:1;overflow:hidden;border-radius:28px}.sc-view .cos-account-menu>.cw-photo-icon.no-photo>.photo-frame{display:none}.sc-view .cos-account-menu>.cw-photo-icon.no-photo>.photo-container{background-size: 28px 28px;\nbackground-image: url('https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/stylesheet-1@2x.png');\nbackground-position: 0px 0px;\nbackground-repeat:no-repeat}.springboard-view.app-switcher .sc-button-view{color:white;color:rgba(255,255,255,0.8)}.springboard-view.app-switcher .sc-button-view:hover{color:white}.springboard-view.app-switcher .sc-button-view.active{color:white;color:rgba(255,255,255,0.8)}.springboard-view.app-switcher .main-content{background-color:white}.springboard-view.app-switcher .sb-shadow{display:none}.springboard-view.app-switcher .sb-title-highlight{position:absolute;z-index:7;margin-left:-1px;margin-top:-1px;background:#ecf7ff;border-radius:20px;border:1px solid #b6d9ff;display:none}.springboard-view.app-switcher .current-app .sb-title-highlight{display:block}.springboard-view.app-switcher .current-app .sb-title-text{color:#1573fb}.springboard-view.app-switcher .sc-view .sb-title>.sb-title-text{text-shadow:none}.springboard-view.app-switcher .sb-border{position:absolute;pointer-events:none;cursor:pointer;left:0;right:0;bottom:0;top:0;z-index:12;border-radius:23%;border:1px solid rgba(0,0,0,0.11)}.springboard-view.app-switcher .sb-badge .text{font-size:17px}.springboard-view.app-switcher .sc-view a[role=button]{outline:0}.springboard-view.app-switcher .sc-view a[role=button]:focus .sb-icon{outline:dotted #7dadd9 1px;outline:auto -webkit-focus-ring-color 1px}.springboard-view .sb-el{position:absolute}.springboard-view .sb-ax-text{position:absolute;z-index:-1;opacity:0;top:-150px;left:35px}.springboard-view .sb-badge{z-index:50;cursor:pointer;text-align:right}.springboard-view .sb-badge .text,.springboard-view .sb-badge .mask,.springboard-view .sb-badge .red{position:absolute}.springboard-view .sb-badge .text{color:white;z-index:2;font-size:25px;text-align:right}.springboard-view .sb-badge .mask,.springboard-view .sb-badge .red{position:absolute;border-radius:50px}.springboard-view .sb-badge .mask{z-index:3;background:black}.springboard-view .sb-badge .red{z-index:1;background:red}.springboard-view .sb-decor-shadow{z-index:40;cursor:default;pointer-events:none}.springboard-view .sb-spinner{z-index:30;cursor:pointer;overflow:hidden}.springboard-view .sb-arrow{z-index:25;cursor:pointer;pointer-events:none}.springboard-view .sb-mask{z-index:20;cursor:pointer}.springboard-view .sb-icon{z-index:10;cursor:pointer;image-rendering:optimizeQuality}.springboard-view .sb-shadow{z-index:5;cursor:default;pointer-events:none}.springboard-view .sb-mask,.springboard-view .sb-icon{left:0px;top:0px}.springboard-view .springboard-button-view{overflow:visible !important;cursor:default;text-decoration:none}.springboard-view .sb-external-shadow{cursor:default;position:absolute;z-index:14;pointer-events:none}.springboard-view .sb-lock-badge{z-index:27;cursor:pointer;pointer-events:none}.springboard-view .sb-lock-badge img{position:absolute;left:0px;top:0px}.springboard-view div.sc-view div.sb-title{cursor:default;z-index:8;color:white;left:-30px;text-align:center;pointer-events:none}.msie .springboard-view div.sc-view div.sb-title{pointer-events:all}.springboard-view div.sc-view div.sb-title>.sb-title-text{pointer-events:all;cursor:pointer;text-shadow:#000 0 0 25px}.windows.mozilla.tr-tr .springboard-view div.sc-view div.sb-title>.sb-title-text{font-size:19px}.springboard-view div.sc-view div.sb-error-text{cursor:default;z-index:7;color:white;left:0px;text-align:center;pointer-events:none;white-space:nowrap}.springboard-view div.custom-button{background:transparent !important;max-height:none !important}.springboard-view .sc-view a[role=button]:focus .sb-shadow{outline:dotted #7dadd9 1px;outline-style:auto;outline-color:-webkit-focus-ring-color}.springboard-view .sc-view:-moz-focusring{outline:1px dotted #9d9d9d}.springboard-view .blur-overlay{background:rgba(0,0,0,0.1)}\n" -,css2xLogicalUrl:"/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/stylesheet@2x.css"})}(); +,cssLogicalUrl:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/stylesheet.css",css2xSource:".sc-view .sc-view.cos-account-menu{overflow:visible}.sc-view .cos-account-menu .sc-button-view .sc-button-label{padding-left:33px}.sc-view .cos-account-menu>.cw-photo-icon{pointer-events:none}.sc-view .cos-account-menu>.cw-photo-icon>.photo-container{box-sizing:border-box;position:absolute;left:0px;top:0px;width:28px;height:28px;z-index:1;overflow:hidden;border-radius:28px}.sc-view .cos-account-menu>.cw-photo-icon.no-photo>.photo-frame{display:none}.sc-view .cos-account-menu>.cw-photo-icon.no-photo>.photo-container{background-size: 28px 28px;\nbackground-image: url('https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/language/1812Project43/en-us/stylesheet-1@2x.png');\nbackground-position: 0px 0px;\nbackground-repeat:no-repeat}.springboard-view.app-switcher .sc-button-view{color:white;color:rgba(255,255,255,0.8)}.springboard-view.app-switcher .sc-button-view:hover{color:white}.springboard-view.app-switcher .sc-button-view.active{color:white;color:rgba(255,255,255,0.8)}.springboard-view.app-switcher .main-content{background-color:white}.springboard-view.app-switcher .sb-shadow{display:none}.springboard-view.app-switcher .sb-title-highlight{position:absolute;z-index:7;margin-left:-1px;margin-top:-1px;background:#ecf7ff;border-radius:20px;border:1px solid #b6d9ff;display:none}.springboard-view.app-switcher .current-app .sb-title-highlight{display:block}.springboard-view.app-switcher .current-app .sb-title-text{color:#1573fb}.springboard-view.app-switcher .sc-view .sb-title>.sb-title-text{text-shadow:none}.springboard-view.app-switcher .sb-border{position:absolute;pointer-events:none;cursor:pointer;left:0;right:0;bottom:0;top:0;z-index:12;border-radius:23%;border:1px solid rgba(0,0,0,0.11)}.springboard-view.app-switcher .sb-badge .text{font-size:17px}.springboard-view.app-switcher .sc-view a[role=button]{outline:0}.springboard-view.app-switcher .sc-view a[role=button]:focus .sb-icon{outline:dotted #7dadd9 1px;outline:auto -webkit-focus-ring-color 1px}.springboard-view .sb-el{position:absolute}.springboard-view .sb-ax-text{position:absolute;z-index:-1;opacity:0;top:-150px;left:35px}.springboard-view .sb-badge{z-index:50;cursor:pointer;text-align:right}.springboard-view .sb-badge .text,.springboard-view .sb-badge .mask,.springboard-view .sb-badge .red{position:absolute}.springboard-view .sb-badge .text{color:white;z-index:2;font-size:25px;text-align:right}.springboard-view .sb-badge .mask,.springboard-view .sb-badge .red{position:absolute;border-radius:50px}.springboard-view .sb-badge .mask{z-index:3;background:black}.springboard-view .sb-badge .red{z-index:1;background:red}.springboard-view .sb-decor-shadow{z-index:40;cursor:default;pointer-events:none}.springboard-view .sb-spinner{z-index:30;cursor:pointer;overflow:hidden}.springboard-view .sb-arrow{z-index:25;cursor:pointer;pointer-events:none}.springboard-view .sb-mask{z-index:20;cursor:pointer}.springboard-view .sb-icon{z-index:10;cursor:pointer;image-rendering:optimizeQuality}.springboard-view .sb-shadow{z-index:5;cursor:default;pointer-events:none}.springboard-view .sb-mask,.springboard-view .sb-icon{left:0px;top:0px}.springboard-view .springboard-button-view{overflow:visible !important;cursor:default;text-decoration:none}.springboard-view .sb-external-shadow{cursor:default;position:absolute;z-index:14;pointer-events:none}.springboard-view .sb-lock-badge{z-index:27;cursor:pointer;pointer-events:none}.springboard-view .sb-lock-badge img{position:absolute;left:0px;top:0px}.springboard-view div.sc-view div.sb-title{cursor:default;z-index:8;color:white;left:-30px;text-align:center;pointer-events:none}.msie .springboard-view div.sc-view div.sb-title{pointer-events:all}.springboard-view div.sc-view div.sb-title>.sb-title-text{pointer-events:all;cursor:pointer;text-shadow:#000 0 0 25px}.windows.mozilla.tr-tr .springboard-view div.sc-view div.sb-title>.sb-title-text{font-size:19px}.springboard-view div.sc-view div.sb-error-text{cursor:default;z-index:7;color:white;left:0px;text-align:center;pointer-events:none;white-space:nowrap}.springboard-view div.custom-button{background:transparent !important;max-height:none !important}.springboard-view .sc-view a[role=button]:focus .sb-shadow{outline:dotted #7dadd9 1px;outline-style:auto;outline-color:-webkit-focus-ring-color}.springboard-view .sc-view:-moz-focusring{outline:1px dotted #9d9d9d}.springboard-view .blur-overlay{background:rgba(0,0,0,0.1)}\n" +,css2xLogicalUrl:"https://icloud.cdn-apple.com/system/cloudos/1812Project43/cloudos_foundation/springboard/1812Project43/en-us/stylesheet@2x.css"})}();