UNPKG

puppeteer-core

Version:

A high-level API to control headless Chrome over the DevTools Protocol

1 lines 6.38 kB
{"version":3,"file":"Target.js","sourceRoot":"","sources":["../../../../src/cdp/Target.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAOH,gDAAoD;AACpD,+CAA6C;AAE7C,qDAA6C;AAG7C,uCAAkC;AAElC,iDAA4C;AAE5C;;GAEG;AACH,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,2CAAmB,CAAA;AACrB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAED;;GAEG;AACH,MAAa,SAAU,SAAQ,kBAAM;IACnC,eAAe,CAAkB;IACjC,QAAQ,CAAiB;IACzB,WAAW,CAA6B;IACxC,cAAc,CAAiB;IAC/B,eAAe,CAED;IACd,aAAa,GAAG,IAAI,GAAG,EAAa,CAAC;IACrC,oBAAoB,GAAG,sBAAQ,CAAC,MAAM,EAAwB,CAAC;IAC/D,iBAAiB,GAAG,sBAAQ,CAAC,MAAM,EAAQ,CAAC;IAC5C,SAAS,CAAS;IAElB;;;;OAIG;IACH,YACE,UAAsC,EACtC,OAAkC,EAClC,cAA0C,EAC1C,aAAwC,EACxC,cAEa;QAEb,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;QACtC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;QACtC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAEQ,KAAK,CAAC,MAAM;QACnB,MAAM,OAAO,GAAG,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