InnerHTML=()=>{var scrollAnchor=this.location.hash;if(scrollAnchor)return this.view.scrollToAnchor(this.location.hash),!0}cacheSnapshot(){this.snapshotCached||(this.view.cacheSnapshot(),this.snapshotCached=!0)}}(prototype=FetchMethod=FetchMethod||{})[prototype.get=0]=”get”,prototype[prototype.post=1]=”post”,prototype[prototype.put=2]=”put”,prototype[prototype.patch=3]=”patch”,prototype[prototype.delete=4]=”delete”;class VisitController{constructor(delegate){this.delegate=delegate}startVisitToLocationWithAction(location2,action){this.startVisit(new Visit(this.delegate,location2,uuid(),{action:action,historyChanged:!1,referrer:document.location}))}loadCachedSnapshotForLocation(location2){var snapshot;return(snapshot=this.getSnapshotForCachedLocation(location2))&&snapshot.isPreviewable?this.renderLoadedSnapshot(location2,snapshot):location2}getSnapshotForCachedLocation(location2){return this.delegate.view.getCachedSnapshotForLocation(location2)}renderLoadedSnapshot(location2,snapshot){new FrameRenderer(this.delegate,document.documentElement,snapshot.render().snapshotHTML).render()}renderNewSnapshot(location2,html,restorationIdentifier){var snapshot=PageSnapshot.fromHTMLString(html),renderer=new FrameRenderer(this.delegate,document.documentElement,snapshot.render.replace(),this.getRestorationDataForIdentifier(restorationIdentifier).isRendering,!!restorationIdentifier);renderer.render(),this.notifyApplicationAfterRender(renderer);var requestURL=location2.href;this.setRestorationData(requestURL,restorationIdentifier,null,snapshot.rootLocation);var actionForSnapshot=this.getActionForLocation(location2),restorationAction=this.getRestorationActionForRootLocation(snapshot.rootLocation),needsRequestForSnapshot=restorationAction||actionForSnapshot;needsRequestForSnapshot?this.startVisit(new Visit(this.delegate,location2,restorationIdentifier)):this.restoreVisitFromSnapshot(location2,snapshot,restorationIdentifier)}restoreVisit(identifier,location2){var restorationData=this.getRestorationDataForIdentifier(identifier),cachedHTMLBodyElement=this.delegate.view.getCachedSnapshotForLocation(location2);return restorationData&&(cachedHTMLBodyElement||restorationData.scrollPosition)?(restorationData.scrollPosition&&this.delegate.adapter.visitScrolledToRestoredPosition(location2,restorationData.scrollPosition),this.restoreVisitFromSnapshot(location2,cachedHTMLBodyElement,identifier),!0):!1}startVisit(visit){this.currentVisit&&(this.currentVisit.cancel(),console.log(“Canceled visit to start new visit”)),this.currentVisit=visit,this.notifyApplicationAfterStart(visit),visit.start(),this.delegate.visitStarted(visit)}”””