{"version":3,"file":"sa.mjs","names":["Bundle","BundleSa","constructor","path","flat","_close","_writeLauncher"],"sources":["../../src/bundle/sa.ts"],"sourcesContent":["import {ProjectorSa} from '../projector/sa.ts';\nimport {Bundle} from '../bundle.ts';\n\n/**\n * BundleSa object.\n */\nexport abstract class BundleSa extends Bundle {\n\t/**\n\t * ProjectorSa instance.\n\t */\n\tpublic abstract readonly projector: ProjectorSa;\n\n\t/**\n\t * BundleSa constructor.\n\t *\n\t * @param path Output path.\n\t * @param flat Flat bundle.\n\t */\n\tconstructor(path: string, flat = false) {\n\t\tsuper(path, flat);\n\t}\n\n\t/**\n\t * @inheritdoc\n\t */\n\tprotected async _close(): Promise<void> {\n\t\tif (!this.flat) {\n\t\t\tawait this._writeLauncher();\n\t\t}\n\t\tawait super._close();\n\t}\n\n\t/**\n\t * Main application file extension.\n\t *\n\t * @returns File extension.\n\t */\n\tpublic abstract get extension(): string;\n\n\t/**\n\t * Create projector instance for the bundle.\n\t *\n\t * @returns Projector instance.\n\t */\n\tprotected abstract _createProjector(): ProjectorSa;\n\n\t/**\n\t * Write the launcher file.\n\t */\n\tprotected abstract _writeLauncher(): Promise<void>;\n}\n"],"mappings":"AACA,SAAQA,MAAM,QAAO,eAAc;;AAEnC;AACA;AACA;AACA,OAAO,MAAeC,QAAQ,SAASD,MAAM,CAAC;EAC7C;AACD;AACA;;EAGC;AACD;AACA;AACA;AACA;AACA;EACCE,WAAWA,CAACC,IAAY,EAAEC,IAAI,GAAG,KAAK,EAAE;IACvC,KAAK,CAACD,IAAI,EAAEC,IAAI,CAAC;EAClB;;EAEA;AACD;AACA;EACC,MAAgBC,MAAMA,CAAA,EAAkB;IACvC,IAAI,CAAC,IAAI,CAACD,IAAI,EAAE;MACf,MAAM,IAAI,CAACE,cAAc,CAAC,CAAC;IAC5B;IACA,MAAM,KAAK,CAACD,MAAM,CAAC,CAAC;EACrB;;EAEA;AACD;AACA;AACA;AACA;;EAGC;AACD;AACA;AACA;AACA;;EAGC;AACD;AACA;AAEA","ignoreList":[]}