var E=Object.defineProperty;var o=(a,e)=>{for(var t in e)E(a,t,{get:e[t],enumerable:!0})};var j={};var P={};o(P,{EXTENSION_PREFIX:()=>x,ExtensionConverter:()=>c});import*as y from"./../../../third_party/puppeteer-replay/puppeteer-replay.js";var x="extension_",c=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getId(){return x+this.#e}getFormatName(){return this.#t.getName()}getMediaType(){return this.#t.getMediaType()}getFilename(e){let t=this.#r(this.#t.getMediaType());return`${e.title}${t}`}async stringify(e){let t=await this.#t.stringify(e),s=y.parseSourceMap(t);return[y.stripSourceMap(t),s]}async stringifyStep(e){return await this.#t.stringifyStep(e)}#r(e){switch(e){case"application/json":return".json";case"application/javascript":case"text/javascript":return".js";case"application/typescript":case"text/typescript":return".ts";default:return""}}};var d={};o(d,{JSONConverter:()=>l});import*as r from"./../../../third_party/puppeteer-replay/puppeteer-replay.js";import"./../models/models.js";var l=class{#e;constructor(e){this.#e=e}getId(){return"json"}getFormatName(){return"JSON"}getFilename(e){return`${e.title}.json`}async stringify(e){let t=await r.stringify(e,{extension:new r.JSONStringifyExtension,indentation:this.#e}),s=r.parseSourceMap(t);return[r.stripSourceMap(t),s]}async stringifyStep(e){return await r.stringifyStep(e,{extension:new r.JSONStringifyExtension,indentation:this.#e})}getMediaType(){return"application/json"}};var R={};o(R,{LighthouseConverter:()=>m});import*as i from"./../../../third_party/puppeteer-replay/puppeteer-replay.js";import"./../models/models.js";var m=class{#e;constructor(e){this.#e=e}getId(){return"lighthouse"}getFormatName(){return"Puppeteer (including Lighthouse analysis)"}getFilename(e){return`${e.title}.js`}async stringify(e){let t=await i.stringify(e,{extension:new i.LighthouseStringifyExtension,indentation:this.#e}),s=i.parseSourceMap(t);return[i.stripSourceMap(t),s]}async stringifyStep(e){return await i.stringifyStep(e,{indentation:this.#e})}getMediaType(){return"text/javascript"}};var h={};o(h,{PuppeteerConverter:()=>u});import*as n from"./../../../third_party/puppeteer-replay/puppeteer-replay.js";import"./../models/models.js";var u=class{#e;#t;constructor(e){this.#e=e,this.#t=this.createExtension()}getId(){return"puppeteer"}createExtension(){return new n.PuppeteerStringifyExtension}getFormatName(){return"Puppeteer"}getFilename(e){return`${e.title}.js`}async stringify(e){let t=await n.stringify(e,{indentation:this.#e,extension:this.#t}),s=n.parseSourceMap(t);return[n.stripSourceMap(t),s]}async stringifyStep(e){return await n.stringifyStep(e,{indentation:this.#e,extension:this.#t})}getMediaType(){return"text/javascript"}};var M={};o(M,{PuppeteerFirefoxConverter:()=>g});import*as S from"./../../../third_party/puppeteer-replay/puppeteer-replay.js";import"./../models/models.js";var g=class extends u{getId(){return"puppeteer-firefox"}createExtension(){return new S.PuppeteerStringifyExtension("firefox")}getFormatName(){return"Puppeteer (for Firefox)"}};var w={};o(w,{PuppeteerReplayConverter:()=>f});import*as p from"./../../../third_party/puppeteer-replay/puppeteer-replay.js";import"./../models/models.js";var f=class{#e;constructor(e){this.#e=e}getId(){return"@puppeteer/replay"}getFormatName(){return"@puppeteer/replay"}getFilename(e){return`${e.title}.js`}async stringify(e){let t=await p.stringify(e,{extension:new p.PuppeteerReplayStringifyExtension,indentation:this.#e}),s=p.parseSourceMap(t);return[p.stripSourceMap(t),s]}async stringifyStep(e){return await p.stringifyStep(e,{extension:new p.PuppeteerReplayStringifyExtension})}getMediaType(){return"text/javascript"}};export{j as Converter,P as ExtensionConverter,d as JSONConverter,R as LighthouseConverter,h as PuppeteerConverter,M as PuppeteerFirefoxConverter,w as PuppeteerReplayConverter};
//# sourceMappingURL=converters.js.map
