{"version":3,"sources":["jsdelivr-header.js","/npm/websocket-patchfix@1.0.28/lib/browser.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,QAAU,CACZ,WAAc,OAAO,IAAO,CAA5B,GACkB,oBAAX,QAA0B,OACf,oBAAX,QAA0B,QAE/B,gBAAkB,QAAQ,QAAO,SAAU,EAAM,GACnD,OAAQ,GAAQ,EAAK,WAAc,EAAQ,GAAW,CAAE,WAAY,EAAQ,WAAa,EAAQ,aACnG,IAAG,WACC,kBAAoB,QAAQ,aAMhC,SAAS,aAAa,EAAK,GAiB1B,OAdI,EACe,IAAI,gBAAgB,EAAK,GAGzB,IAAI,gBAAgB,EAWxC,CAMA,OAAO,QAAU,CACb,aAAiB,gBAAkB,aAAe,KAClD,QAAiB","file":"/npm/websocket-patchfix@1.0.28/lib/browser.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/websocket-patchfix@1.0.28/lib/browser.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var globals = [\n  (function() { return this; })(),\n  typeof global !== 'undefined' && global,\n  typeof window !== 'undefined' && window\n];\nvar NativeWebSocket = globals.reduce(function (past, current) {\n  return (past && past._websocket) ? past : (current && { _websocket: current.WebSocket || current.MozWebSocket });\n})._websocket;\nvar websocket_version = require('./version');\n\n\n/**\n * Expose a W3C WebSocket class with just one or two arguments.\n */\nfunction W3CWebSocket(uri, protocols) {\n\tvar native_instance;\n\n\tif (protocols) {\n\t\tnative_instance = new NativeWebSocket(uri, protocols);\n\t}\n\telse {\n\t\tnative_instance = new NativeWebSocket(uri);\n\t}\n\n\t/**\n\t * 'native_instance' is an instance of nativeWebSocket (the browser's WebSocket\n\t * class). Since it is an Object it will be returned as it is when creating an\n\t * instance of W3CWebSocket via 'new W3CWebSocket()'.\n\t *\n\t * ECMAScript 5: http://bclary.com/2004/11/07/#a-13.2.2\n\t */\n\treturn native_instance;\n}\n\n\n/**\n * Module exports.\n */\nmodule.exports = {\n    'w3cwebsocket' : NativeWebSocket ? W3CWebSocket : null,\n    'version'      : websocket_version\n};\n"]}