{"version":3,"sources":["jsdelivr-header.js","/npm/@freelensapp/startable-stoppable@1.8.1/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNS,MACC,aAEA,IAAI,EAAsB,CAMzB,EAAwB,CAAC,EAAS,KACjC,IAAI,IAAI,KAAO,EACX,EAAoB,EAAE,EAAY,KAAS,EAAoB,EAAE,EAAS,IAC5E,OAAO,eAAe,EAAS,EAAK,CAAE,YAAY,EAAM,IAAK,EAAW,IAE1E,EAMD,EAAwB,CAAC,EAAK,IAAU,OAAO,UAAU,eAAe,KAAK,EAAK,GAMlF,EAAyB,IACH,oBAAX,QAA0B,OAAO,aAC1C,OAAO,eAAe,EAAS,OAAO,YAAa,CAAE,MAAO,WAE7D,OAAO,eAAe,EAAS,aAAc,CAAE,OAAO,GAAO,GAKrE,EAAsB,CAAC,EAU3B,SAAS,EAAsB,EAAI,GAC/B,IAAI,EACA,EAAQ,UACZ,MAAO,CACH,WAAI,GACA,MAAiB,YAAV,CACX,EACA,MAAO,KACH,GAAc,YAAV,EACA,MAAM,IAAI,MAAM,mBAAmB,yBAA0B,MAEjE,EAAQ,WACR,EAAO,IACP,EAAQ,SAAS,EAErB,KAAM,KACF,GAAc,YAAV,EACA,MAAM,IAAI,MAAM,kBAAkB,yBAA0B,MAEhE,IACA,EAAQ,SAAS,EAG7B,CA/BA,EAAoB,EAAE,GAGtB,EAAoB,EAAE,EAAqB,CACzC,sBAAuB,IAAM,IAgC/B,OAAO,QAAU,CACP,EA1ED","file":"/npm/@freelensapp/startable-stoppable@1.8.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@freelensapp/startable-stoppable@1.8.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/******/ (() => { // webpackBootstrap\n/******/ \t\"use strict\";\n/******/ \t// The require scope\n/******/ \tvar __webpack_require__ = {};\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t(() => {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__webpack_require__.d = (exports, definition) => {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t(() => {\n/******/ \t\t__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/make namespace object */\n/******/ \t(() => {\n/******/ \t\t// define __esModule on exports\n/******/ \t\t__webpack_require__.r = (exports) => {\n/******/ \t\t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t\t}\n/******/ \t\t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/************************************************************************/\nvar __webpack_exports__ = {};\n// ESM COMPAT FLAG\n__webpack_require__.r(__webpack_exports__);\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n  getStartableStoppable: () => (/* reexport */ getStartableStoppable)\n});\n\n;// ./src/get-startable-stoppable.ts\nfunction getStartableStoppable(id, startAndGetStopper) {\n    let stop;\n    let state = \"stopped\";\n    return {\n        get started() {\n            return state === \"started\";\n        },\n        start: () => {\n            if (state !== \"stopped\") {\n                throw new Error(`Tried to start \"${id}\", but it is already ${state}.`);\n            }\n            state = \"starting\";\n            stop = startAndGetStopper();\n            state = \"started\";\n        },\n        stop: () => {\n            if (state !== \"started\") {\n                throw new Error(`Tried to stop \"${id}\", but it is already ${state}.`);\n            }\n            stop();\n            state = \"stopped\";\n        },\n    };\n}\n\n;// ./index.ts\n\n\nmodule.exports = __webpack_exports__;\n/******/ })()\n;"]}