{ "version": 3, "sources": ["../javascripts/application/debug.js", "../javascripts/shared/definitions.js", "../javascripts/shared/objects.js", "../javascripts/shared/decode.js", "javascripts-shared-assets.js", "../javascripts/shared/assets.js", "../javascripts/shared/base-class.js", "../javascripts/application/setup.js", "../../../node_modules/jquery/dist/jquery.js", "../../../node_modules/select2/dist/js/select2.js", "../javascripts/shared/time.js", "../javascripts/shared/strings.js", "../../../node_modules/@rails/actioncable/app/assets/javascripts/actioncable.esm.js", "../javascripts/shared/cable-consumer.js", "../../../node_modules/namespace-emitter/index.js", "../../../node_modules/lodash/isObject.js", "../../../node_modules/lodash/_freeGlobal.js", "../../../node_modules/lodash/_root.js", "../../../node_modules/lodash/now.js", "../../../node_modules/lodash/_trimmedEndIndex.js", "../../../node_modules/lodash/_baseTrim.js", "../../../node_modules/lodash/_Symbol.js", "../../../node_modules/lodash/_getRawTag.js", "../../../node_modules/lodash/_objectToString.js", "../../../node_modules/lodash/_baseGetTag.js", "../../../node_modules/lodash/isObjectLike.js", "../../../node_modules/lodash/isSymbol.js", "../../../node_modules/lodash/toNumber.js", "../../../node_modules/lodash/debounce.js", "../../../node_modules/lodash/throttle.js", "../../../node_modules/@transloadit/prettier-bytes/src/prettierBytes.ts", "../../../node_modules/wildcard/index.js", "../../../node_modules/mime-match/index.js", "../../../node_modules/turbolinks/dist/turbolinks.js", "../javascripts/application.js", "../javascripts/vendor/jquery.js", "../javascripts/vendor/rails.js", "../../../node_modules/@rails/ujs/app/assets/javascripts/rails-ujs.esm.js", "../javascripts/vendor/select2.js", "../javascripts/vendor/capybara-lockstep.js", "../javascripts/feature/advanced-search.js", "../javascripts/shared/arrays.js", "../javascripts/shared/events.js", "../javascripts/shared/form.js", "../javascripts/shared/random.js", "../javascripts/shared/url.js", "../javascripts/shared/accessibility.js", "../javascripts/shared/css.js", "../javascripts/shared/keyboard.js", "../javascripts/shared/html.js", "../javascripts/shared/menu.js", "../javascripts/feature/client-debug.js", "../javascripts/feature/download.js", "../javascripts/shared/xhr.js", "../javascripts/shared/http.js", "../javascripts/feature/flash.js", "../javascripts/shared/flash.js", "../javascripts/shared/unicode.js", "../javascripts/feature/fonts.js", "../javascripts/feature/help.js", "../javascripts/feature/iframe.js", "../javascripts/feature/images.js", "../javascripts/feature/model-form.js", "../javascripts/shared/controller.js", "../javascripts/shared/lookup-modal.js", "../javascripts/channels/lookup-channel.js", "../javascripts/shared/cable-channel.js", "../javascripts/shared/api.js", "../javascripts/shared/channel-request.js", "../javascripts/shared/channel-response.js", "../javascripts/shared/lookup-request.js", "../javascripts/shared/lookup-response.js", "../javascripts/shared/json.js", "../javascripts/shared/modal-dialog.js", "../javascripts/shared/modal-base.js", "../javascripts/shared/modal-hooks.js", "../javascripts/shared/callbacks.js", "../javascripts/shared/nav-group.js", "../javascripts/shared/exceptions.js", "../javascripts/shared/math.js", "../javascripts/shared/search-in-progress.js", "../javascripts/shared/overlay.js", "../javascripts/shared/uploader.js", "../javascripts/vendor/uppy.js", "../../../node_modules/@uppy/core/lib/index.js", "../../../node_modules/@uppy/utils/lib/Translator.js", "../../../node_modules/@uppy/core/lib/Uppy.js", "../../../node_modules/nanoid/non-secure/index.js", "../../../node_modules/@uppy/store-default/lib/index.js", "../../../node_modules/@uppy/utils/lib/getFileNameAndExtension.js", "../../../node_modules/@uppy/utils/lib/mimeTypes.js", "../../../node_modules/@uppy/utils/lib/getFileType.js", "../../../node_modules/@uppy/utils/lib/generateFileID.js", "../../../node_modules/@uppy/core/lib/supportsUploadProgress.js", "../../../node_modules/@uppy/core/lib/getFileName.js", "../../../node_modules/@uppy/utils/lib/getTimeStamp.js", "../../../node_modules/@uppy/core/lib/loggers.js", "../../../node_modules/@uppy/core/lib/Restricter.js", "../../../node_modules/@uppy/core/lib/locale.js", "../../../node_modules/preact/src/constants.js", "../../../node_modules/preact/src/util.js", "../../../node_modules/preact/src/options.js", "../../../node_modules/preact/src/create-element.js", "../../../node_modules/preact/src/component.js", "../../../node_modules/preact/src/diff/props.js", "../../../node_modules/preact/src/create-context.js", "../../../node_modules/preact/src/diff/children.js", "../../../node_modules/preact/src/diff/index.js", "../../../node_modules/preact/src/render.js", "../../../node_modules/preact/src/clone-element.js", "../../../node_modules/preact/src/diff/catch-error.js", "../../../node_modules/@uppy/utils/lib/isDOMElement.js", "../../../node_modules/@uppy/utils/lib/findDOMElement.js", "../../../node_modules/@uppy/utils/lib/getTextDirection.js", "../../../node_modules/@uppy/core/lib/BasePlugin.js", "../../../node_modules/@uppy/core/lib/UIPlugin.js", "../../../node_modules/@uppy/utils/lib/toArray.js", "../../../node_modules/@uppy/file-input/lib/locale.js", "../../../node_modules/@uppy/file-input/lib/FileInput.js", "../../../node_modules/@uppy/informer/lib/FadeIn.js", "../../../node_modules/@uppy/informer/lib/TransitionGroup.js", "../../../node_modules/@uppy/informer/lib/Informer.js", "../../../node_modules/@uppy/progress-bar/lib/ProgressBar.js", "../../../node_modules/@uppy/core/lib/EventManager.js", "../../../node_modules/@uppy/utils/lib/RateLimitedQueue.js", "../../../node_modules/@uppy/utils/lib/NetworkError.js", "../../../node_modules/@uppy/utils/lib/isNetworkError.js", "../../../node_modules/@uppy/utils/lib/ProgressTimeout.js", "../../../node_modules/@uppy/utils/lib/fetcher.js", "../../../node_modules/@uppy/utils/lib/fileFilters.js", "../../../node_modules/@uppy/utils/lib/getAllowedMetaFields.js", "../../../node_modules/@uppy/xhr-upload/lib/locale.js", "../../../node_modules/@uppy/xhr-upload/lib/index.js", "../javascripts/feature/panel.js", "../javascripts/feature/records.js", "../javascripts/feature/scroll.js", "../javascripts/feature/search-analysis.js", "../javascripts/shared/color.js", "../javascripts/shared/database.js", "../javascripts/shared/queue.js", "../javascripts/shared/session-state.js", "../javascripts/feature/search-in-progress.js", "../javascripts/feature/session.js", "../javascripts/shared/browser.js", "../javascripts/feature/skip-nav.js", "../javascripts/feature/table.js", "../javascripts/controllers/manifest-edit.js", "../javascripts/shared/field.js", "../javascripts/shared/inline-popup.js", "../javascripts/shared/grids.js", "../javascripts/shared/manifests.js", "../javascripts/controllers/manifest-remit.js", "../javascripts/shared/submit-modal.js", "../javascripts/channels/submit-channel.js", "../javascripts/shared/submit-response.js", "../javascripts/shared/submit-request.js", "../javascripts/controllers/search.js", "../javascripts/controllers/tool.js", "../javascripts/tool/bibliographic-lookup.js", "../javascripts/tool/math-detective.js", "../javascripts/shared/image.js", "../javascripts/controllers/user_sessions.js", "../javascripts/controllers/generic.js", "../javascripts/shared/analytics.js", "../javascripts/application/start.js", "../javascripts/vendor/turbolinks.js"], "sourceRoot": "https://raw.githubusercontent.com/uvalib/emma/master/app/assets/javascripts/", "sourcesContent": ["// app/assets/javascripts/application/debug.js\n//\n// Application-wide debugging control.\n//\n// NOTE: It is assumed that this file is always imported in each JavaScript\n// source file, particularly to expose the @typedefs in \"types.js\".\n\n\nimport \"./types\"\n\n\n/**\n * Default setting for emitting console log output as each module file is read.\n *\n * @type {boolean}\n */\nconst FILE_DEBUG = true;\n\n// noinspection FunctionNamingConventionJS, JSUnusedGlobalSymbols\n/**\n * An instance of this class is assigned to window.APP_DEBUG to allow\n * per-module control of debug output from the console.
\n *\n * _**Turning debugging on or off:**_\n * ```\n * window.APP_DEBUG.on(module_name);\n * window.APP_DEBUG.off(module_name);\n * ```\n * persists between pages via localStorage. \n *\n * _**Resetting debug status for a module:**_\n * ```\n * window.APP_DEBUG.reset(module_name);\n * ```\n * removes it from localStorage so that the default setting for the module is\n * honored. \n */\nexport class AppDebug {\n\n static CLASS_NAME = \"AppDebug\";\n\n // ========================================================================\n // Type definitions\n // ========================================================================\n\n /**\n * @typedef {boolean|\"true\"|\"false\"} BooleanValue\n */\n\n /**\n * @typedef {object} LoggingFunctions\n *\n * @property {function():boolean} debugging\n * @property {function():string} logPrefix\n * @property {function(...*):undefined} error\n * @property {function(...*):undefined} warn\n * @property {function(...*):undefined} log\n * @property {function(...*):undefined} info\n * @property {function(...*):undefined} debug\n */\n\n // ========================================================================\n // Constants\n // ========================================================================\n\n static STORE_KEY = \"DEBUG\";\n static GLOBAL_STORE_KEY = this.STORE_KEY;\n static STORE_KEY_PREFIX = `${this.STORE_KEY}/`;\n\n /**\n * Console string substitution sequence.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/console\n *\n * @type {RegExp}\n */\n static CONSOLE_FMT_MATCH = /%[cdfioOs]|%(\\d+(\\.\\d+)?|\\.\\d+)[dfi]/;\n\n /**\n * For use with {@link consoleFmt}.\n *\n * @type {Object.