{"version":3,"sources":["jsdelivr-header.js","/npm/google-closure-library@20230802.0.0/closure/goog/bootstrap/nodejs.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACkCA,IAAI,GAAK,QAAQ,MACb,KAAO,QAAQ,QACf,GAAK,QAAQ,MA4CjB,SAAS,kBAAkB,GACzB,GAAG,iBAAiB,KAAK,OAAQ,GAAG,aAAa,GAAO,EAC1D,CAxCA,OAAO,KAAO,CAAC,EAGf,OAAO,2BAA6B,OAAO,4BAA8B,CAAC,EAC1E,OAAO,2BAA2B,6BAA8B,EAShE,OAAO,sBAAwB,SAAS,IAAK,gBAQ3C,YALuB,IAAnB,eACF,QAAQ,QAAU,KAElB,KAAK,iBAEA,CACT,EASA,OAAO,uBAAyB,SAAS,GACvC,OAAO,GAAG,aACN,KAAK,QAAQ,UAAW,KAAM,GAAM,CAAC,SAAU,SACrD,EAYA,kBAAkB,KAAK,QAAQ,UAAW,KAAM,YAYhD,KAAK,kBAAoB","file":"/npm/google-closure-library@20230802.0.0/closure/goog/bootstrap/nodejs.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/google-closure-library@20230802.0.0/closure/goog/bootstrap/nodejs.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// Copyright 2013 The Closure Library Authors.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//      http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS-IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n/**\n * @fileoverview A nodejs script for dynamically requiring Closure within\n * nodejs.\n *\n * Example of usage:\n * <code>\n * require('./bootstrap/nodejs')\n * goog.require('goog.ui.Component')\n * </code>\n *\n * This loads goog.ui.Component in the global scope.\n *\n * If you want to load custom libraries, you can require the custom deps file\n * directly. If your custom libraries introduce new globals, you may\n * need to run goog.nodeGlobalRequire to get them to load correctly.\n *\n * <code>\n * require('./path/to/my/deps.js')\n * goog.bootstrap.nodeJs.nodeGlobalRequire('./path/to/my/base.js')\n * goog.require('my.Class')\n * </code>\n *\n * @nocompile\n */\n\n\nvar fs = require('fs');\nvar path = require('path');\nvar vm = require('vm');\n\n\n/**\n * The goog namespace in the global scope.\n */\nglobal.goog = {};\n\n/** The runtime nodejs bootstrap relies on the Debug Loader being enabled. */\nglobal.CLOSURE_UNCOMPILED_DEFINES = global.CLOSURE_UNCOMPILED_DEFINES || {};\nglobal.CLOSURE_UNCOMPILED_DEFINES['goog.ENABLE_DEBUG_LOADER'] = true;\n\n/**\n * Imports a script using Node's require() API.\n *\n * @param {string} src The script source.\n * @param {string=} opt_sourceText The optional source text to evaluate.\n * @return {boolean} True if the script was imported, false otherwise.\n */\nglobal.CLOSURE_IMPORT_SCRIPT = function(src, opt_sourceText) {\n  // Sources are always expressed relative to closure's base.js, but\n  // require() is always relative to the current source.\n  if (opt_sourceText === undefined) {\n    require('./../' + src);\n  } else {\n    eval(opt_sourceText);\n  }\n  return true;\n};\n\n\n/**\n * Loads a file when using Closure's goog.require() API with goog.modules.\n *\n * @param {string} src The file source.\n * @return {string} The file contents.\n */\nglobal.CLOSURE_LOAD_FILE_SYNC = function(src) {\n  return fs.readFileSync(\n      path.resolve(__dirname, '..', src), {encoding: 'utf-8'});\n};\n\n\n// Declared here so it can be used to require base.js\nfunction nodeGlobalRequire(file) {\n  vm.runInThisContext.call(global, fs.readFileSync(file), file);\n}\n\n\n// Load Closure's base.js into memory.  It is assumed base.js is in the\n// directory above this directory given this script's location in\n// bootstrap/nodejs.js.\nnodeGlobalRequire(path.resolve(__dirname, '..', 'base.js'));\n\n\n/**\n * Bootstraps a file into the global scope.\n *\n * This is strictly for cases where normal require() won't work,\n * because the file declares global symbols with 'var' that need to\n * be added to the global scope.\n *\n * @param {string} file The path to the file.\n */\ngoog.nodeGlobalRequire = nodeGlobalRequire;\n"]}