UNPKG

puppeteer-core

Version:

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

1 lines 5.42 kB
{"version":3,"file":"Browser.js","sourceRoot":"","sources":["../../../../../src/bidi/core/Browser.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,kEAA0D;AAC1D,4DAA0E;AAC1E,4DAAwE;AAGxE,yCAA6C;AAE7C,qDAA6C;AAY7C;;GAEG;IACU,OAAO;sBAAS,8BAAY;;;;;;;;iBAA5B,OAAQ,SAAQ,WAgB3B;;;YAgHA,wKAAA,OAAO,6DAIN;YAMD,kKAAM,KAAK,6DAMV;YAMD,mMAAM,gBAAgB,6DAcrB;YAMD,gMAAM,eAAe,6DAIpB;YAMD,4MAAM,mBAAmB,6DAIxB;YAMD,sMAAM,iBAAiB,6DAKtB;;;QAlLD,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAgB;YAChC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;YACrC,MAAM,OAAO,CAAC,WAAW,EAAE,CAAC;YAC5B,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,OAAO,IAvBI,mDAAO,EAuBR,KAAK,EAAC;QAChB,OAAO,CAAqB;QACnB,YAAY,GAAG,IAAI,+BAAe,EAAE,CAAC;QACrC,aAAa,GAAG,IAAI,GAAG,EAAuB,CAAC;QAC/C,OAAO,CAAU;QACjB,cAAc,GAAG,IAAI,GAAG,EAA6B,CAAC;QAE/D,YAAoB,OAAgB;YAClC,KAAK,EAAE,CAAC;YAER,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC;QAED,KAAK,CAAC,WAAW;YACf,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAC1C,IAAI,8BAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAC/B,CAA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