UNPKG

puppeteer-core

Version:

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

1 lines 4.77 kB
{"version":3,"file":"IsolatedWorld.js","sourceRoot":"","sources":["../../../../src/cdp/IsolatedWorld.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAIH,4DAA6E;AAI7E,8CAAsC;AACtC,+DAAuD;AAGvD,+CAI2B;AAC3B,yDAAoD;AAEpD,yDAAoD;AAIpD,+CAA0C;AAmC1C;;GAEG;AACH,MAAa,aAAc,SAAQ,gBAAK;IACtC,QAAQ,CAAoB;IAC5B,QAAQ,GAAyB,IAAI,8BAAY,EAAE,CAAC;IAE3C,cAAc,CAA0B;IAEjD,YACE,aAAsC,EACtC,eAAgC;QAEhC,KAAK,CAAC,eAAe,CAAC,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;IACtC,CAAC;IAED,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;IACpC,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,UAAU,CAAC,OAAyB;QAClC,IAAI,CAAC,QAAQ,EAAE,CAAC,6BAAa,CAAC,EAAE,CAAC;QACjC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC7D,OAAO,CAAC,EAAE,CAAC,kBAAkB,EAAE,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC3E,OAAO,CAAC,EAAE,CAAC,eAAe,EAAE,IAAI,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACrE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAA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