UNPKG

puppeteer-core

Version:

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

1 lines 6.9 kB
{"version":3,"file":"ScreenRecorder.js","sourceRoot":"","sources":["../../../../src/node/ScreenRecorder.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,2DAAoD;AACpD,sDAAyB;AACzB,6CAAwC;AAExC,kDAA0B;AAG1B,4DAUwC;AACxC,wDAAqD;AAGrD,+CAA+D;AAC/D,yDAA8C;AAC9C,yDAAyD;AAEzD,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,WAAW,GAAG,EAAE,CAAC;AAEvB,MAAM,WAAW,GAAG,IAAA,eAAK,EAAC,kBAAkB,CAAC,CAAC;AAkB9C;;GAEG;IACU,cAAc;sBAAS,yBAAW;;;;;iBAAlC,cAAe,SAAQ,WAAW;;;YAsO7C,sDAAA,yBAAA,KAAK,WAAa,MAAc;oBAC9B,MAAM,KAAK,GAAG,MAAM,IAAI,OAAO,CAA2B,OAAO,CAAC,EAAE;wBAClE,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;oBAC7C,CAAC,CAAC,CAAC;oBACH,IAAI,KAAK,EAAE,CAAC;wBACV,OAAO,CAAC,GAAG,CAAC,2BAA2B,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;oBAC3D,CAAC;gBACH,CAAC,gBAAA,+HAPK,WAAW,yBAAX,WAAW,6DAOhB;YAQD,+JAAM,IAAI,6DA2BT;;;QA/QD,KAAK,GADM,mDAAc,CACb;QAEZ,QAAQ,CAAiC;QAEzC,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QACpC,UAAU,CAAqC;QAE/C,IAAI,CAAS;QAEb;;WAEG;QACH,YACE,IAAU,EACV,KAAa,EACb,MAAc,EACd,EACE,KAAK,EACL,KAAK,EACL,IAAI,EACJ,MAAM,EACN,GAAG,E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