var f=Object.defineProperty;var i=(e,r)=>{for(var o in r)f(e,o,{get:r[o],enumerable:!0})};var a={};i(a,{AttemptViewWithFilter:()=>s,RuleSetView:()=>n,preloadStatusCode:()=>g});import*as t from"./../../../../core/sdk/sdk.js";import*as u from"./../../../../models/logs/logs.js";var n=class{ruleSetId;constructor(r){this.ruleSetId=r}},s=class{ruleSetId;constructor(r){this.ruleSetId=r}};function g(e){switch(e.action){case"Prefetch":return l(e.requestId);case"Prerender":case"PrerenderUntilScript":return S(e.key.loaderId)}}function l(e){let o=u.NetworkLog.NetworkLog.instance().requestsForId(e);if(o.length>0)return o[o.length-1].statusCode}function S(e){let r=t.ResourceTreeModel.ResourceTreeModel.frames().find(c=>c.loaderId===e);if(!r)return;let d=r.resourceTreeModel().target().model(t.NetworkManager.NetworkManager)?.requestForLoaderId(e);return d?.statusCode===0?void 0:d?.statusCode}export{a as PreloadingForward};
//# sourceMappingURL=helper.js.map
