@code-recycle/cli
Version:
高级语法查询替换工具;Advanced syntax query replacement tool
214 lines • 998 kB
JavaScript
/*! */
exports.id=673,exports.ids=[673],exports.modules={57839:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.createConsoleLogger=void 0;const n=r(62607),s=r(63614)
;t.createConsoleLogger=function(e=!1,t=process.stdout,r=process.stderr,i){const o=new s.logging.IndentLogger('cling');return o.pipe((0,n.filter)((t=>'debug'!==t.level||e))).subscribe((e=>{const n=i&&i[e.level];let s=t;switch(e.level){case'warn':
case'fatal':case'error':s=r}let o=e.message;for(;o;){const e=o.slice(0,2e3);o=o.slice(2e3),s.write(n?n(e):e)}s.write('\n')})),o}},29916:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.NodeJsSyncHost=t.NodeJsAsyncHost=void 0
;const n=r(73024),s=r(76760),i=r(62607),o=r(63614);let a;function l(){if(!a)try{a=r(10158).E}catch(e){
if('MODULE_NOT_FOUND'!==e.code)throw new Error('As of angular-devkit version 8.0, the "chokidar" package must be installed in order to use watch() features.');throw e}}t.NodeJsAsyncHost=class{get capabilities(){return{synchronous:!1}}write(e,t){return(0,
i.from)(n.promises.mkdir((0,o.getSystemPath)((0,o.dirname)(e)),{recursive:!0})).pipe((0,i.mergeMap)((()=>n.promises.writeFile((0,o.getSystemPath)(e),new Uint8Array(t)))))}read(e){return(0,i.from)(n.promises.readFile((0,o.getSystemPath)(e))).pipe((0,
i.map)((e=>new Uint8Array(e).buffer)))}delete(e){return(0,i.from)(n.promises.rm((0,o.getSystemPath)(e),{force:!0,recursive:!0,maxRetries:3}))}rename(e,t){return(0,i.from)(n.promises.rename((0,o.getSystemPath)(e),(0,o.getSystemPath)(t)))}list(e){return(0,
i.from)(n.promises.readdir((0,o.getSystemPath)(e))).pipe((0,i.map)((e=>e.map((e=>(0,o.fragment)(e))))))}exists(e){return(0,i.from)(async function(e){try{return await n.promises.access(e,n.constants.F_OK),!0}catch{return!1}}((0,o.getSystemPath)(e)))}
isDirectory(e){return this.stat(e).pipe((0,i.map)((e=>e.isDirectory())))}isFile(e){return this.stat(e).pipe((0,i.map)((e=>e.isFile())))}stat(e){return(0,i.from)(n.promises.stat((0,o.getSystemPath)(e)))}watch(e,t){return new i.Observable((t=>{l()
;const r=new a({persistent:!0});return r.add((0,o.getSystemPath)(e)),r.on('change',(e=>{t.next({path:(0,o.normalize)(e),time:new Date,type:o.virtualFs.HostWatchEventType.Changed})})).on('add',(e=>{t.next({path:(0,o.normalize)(e),time:new Date,
type:o.virtualFs.HostWatchEventType.Created})})).on('unlink',(e=>{t.next({path:(0,o.normalize)(e),time:new Date,type:o.virtualFs.HostWatchEventType.Deleted})})),()=>{r.close()}})).pipe((0,i.publish)(),(0,i.refCount)())}},t.NodeJsSyncHost=class{
get capabilities(){return{synchronous:!0}}write(e,t){return new i.Observable((r=>{(0,n.mkdirSync)((0,o.getSystemPath)((0,o.dirname)(e)),{recursive:!0}),(0,n.writeFileSync)((0,o.getSystemPath)(e),new Uint8Array(t)),r.next(),r.complete()}))}read(e){
return new i.Observable((t=>{const r=(0,n.readFileSync)((0,o.getSystemPath)(e));t.next(new Uint8Array(r).buffer),t.complete()}))}delete(e){return new i.Observable((t=>{(0,n.rmSync)((0,o.getSystemPath)(e),{force:!0,recursive:!0,maxRetries:3}),t.complete()
}))}rename(e,t){return new i.Observable((r=>{const i=(0,o.getSystemPath)(t);(0,n.mkdirSync)((0,s.dirname)(i),{recursive:!0}),(0,n.renameSync)((0,o.getSystemPath)(e),i),r.next(),r.complete()}))}list(e){return new i.Observable((t=>{const r=(0,
n.readdirSync)((0,o.getSystemPath)(e));t.next(r.map((e=>(0,o.fragment)(e)))),t.complete()}))}exists(e){return new i.Observable((t=>{t.next((0,n.existsSync)((0,o.getSystemPath)(e))),t.complete()}))}isDirectory(e){return this.stat(e).pipe((0,
i.map)((e=>e.isDirectory())))}isFile(e){return this.stat(e).pipe((0,i.map)((e=>e.isFile())))}stat(e){return new i.Observable((t=>{t.next((0,n.statSync)((0,o.getSystemPath)(e))),t.complete()}))}watch(e,t){return new i.Observable((t=>{l();const r=new a({
persistent:!1});return r.add((0,o.getSystemPath)(e)),r.on('change',(e=>{t.next({path:(0,o.normalize)(e),time:new Date,type:o.virtualFs.HostWatchEventType.Changed})})).on('add',(e=>{t.next({path:(0,o.normalize)(e),time:new Date,
type:o.virtualFs.HostWatchEventType.Created})})).on('unlink',(e=>{t.next({path:(0,o.normalize)(e),time:new Date,type:o.virtualFs.HostWatchEventType.Deleted})})),()=>{r.close()}})).pipe((0,i.publish)(),(0,i.refCount)())}}},59360:function(e,t,r){
'use strict';var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!('get'in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),
Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)'default'===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,'__esModule',{value:!0}),
s(r(57839),t),s(r(29916),t)},79759:(e,t)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.PathIsFileException=t.PathIsDirectoryException=t.FileAlreadyExistException=t.FileDoesNotExistException=t.UnknownException=t.BaseException=void 0
;class r extends Error{constructor(e=''){super(e)}}t.BaseException=r,t.UnknownException=class extends r{constructor(e){super(e)}},t.FileDoesNotExistException=class extends r{constructor(e){super(`Path "${e}" does not exist.`)}},
t.FileAlreadyExistException=class extends r{constructor(e){super(`Path "${e}" already exist.`)}},t.PathIsDirectoryException=class extends r{constructor(e){super(`Path "${e}" is a directory.`)}},t.PathIsFileException=class extends r{constructor(e){
super(`Path "${e}" is a file.`)}}},63614:function(e,t,r){'use strict';var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r)
;s&&!('get'in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){
Object.defineProperty(e,'default',{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={}
;if(null!=e)for(var r in e)'default'!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t},o=this&&this.__exportStar||function(e,t){for(var r in e)'default'===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)}
;Object.defineProperty(t,'__esModule',{value:!0}),t.workspaces=t.logging=t.json=void 0;const a=i(r(71813));t.json=a;const l=i(r(78643));t.logging=l;const c=i(r(6604));t.workspaces=c,o(r(79759),t),o(r(71813),t),o(r(9512),t),o(r(554),t)},
71813:function(e,t,r){'use strict';var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!('get'in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){
return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,'default',{enumerable:!0,value:t})}:function(e,t){e.default=t
}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)'default'!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t},o=this&&this.__exportStar||function(e,t){
for(var r in e)'default'===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,'__esModule',{value:!0}),t.schema=void 0;const a=i(r(25777));t.schema=a,o(r(71392),t)},25777:function(e,t,r){'use strict'
;var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!('get'in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),
Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,'default',{enumerable:!0,value:t})}:function(e,t){e.default=t
}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)'default'!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t},o=this&&this.__exportStar||function(e,t){
for(var r in e)'default'===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,'__esModule',{value:!0}),t.transforms=void 0;const a=i(r(51304));t.transforms=a,o(r(32098),t),o(r(23344),t),o(r(12746),t),o(r(33726),t),
o(r(69119),t),o(r(63769),t)},32098:(e,t)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0})},23344:(e,t)=>{'use strict';function r(e){return'/'+e.map((e=>e.replace(/~/g,'~0').replace(/\//g,'~1'))).join('/')}
Object.defineProperty(t,'__esModule',{value:!0}),t.parseJsonPointer=t.joinJsonPointer=t.buildJsonPointer=void 0,t.buildJsonPointer=r,t.joinJsonPointer=function(e,...t){return'/'==e?r(t):e+r(t)},t.parseJsonPointer=function(e){if(''===e)return[]
;if('/'!==e.charAt(0))throw new Error('Relative pointer: '+e);return e.substring(1).split(/\//).map((e=>e.replace(/~1/g,'/').replace(/~0/g,'~')))}},12746:function(e,t,r){'use strict';var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){
void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!('get'in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]
}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,'default',{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={}
;if(null!=e)for(var r in e)'default'!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,'__esModule',{value:!0}),
t.CoreSchemaRegistry=t.SchemaValidationException=void 0;const a=o(r(63282)),l=o(r(68182)),c=i(r(58611)),u=i(r(65692)),h=r(62607),p=i(r(87016)),d=r(79759),f=r(9512),m=r(71392),g=r(63769),y=r(69119);class b extends d.BaseException{errors
;constructor(e,t='Schema validation failed with the following errors:'){if(!e||0===e.length)return super('Schema validation failed.'),void(this.errors=[]);super(`${t}\n ${b.createMessages(e).join('\n ')}`),this.errors=e}static createMessages(e){
return e&&0!==e.length?e.map((e=>{let t=`Data path ${JSON.stringify(e.instancePath)} ${e.message}`;if(e.params)switch(e.keyword){case'additionalProperties':t+=`(${e.params.additionalProperty})`;break;case'enum':
t+=`. Allowed values are: ${e.params.allowedValues?.map((e=>`"${e}"`)).join(', ')}`}return t+'.'})):[]}}t.SchemaValidationException=b;class v{_ajv;_uriCache=new Map;_uriHandlers=new Set;_pre=new f.PartiallyOrderedSet;_post=new f.PartiallyOrderedSet
;_currentCompilationSchemaInfo;_smartDefaultKeyword=!1;_promptProvider;_sourceMap=new Map;constructor(e=[]){this._ajv=new a.default({strict:!1,loadSchema:e=>this._fetch(e),passContext:!0}),(0,l.default)(this._ajv);for(const t of e)this.addFormat(t)}
async _fetch(e){const t=this._uriCache.get(e);if(t)return t;for(const t of this._uriHandlers){let r=t(e);if(null==r)continue;(0,h.isObservable)(r)&&(r=(0,h.lastValueFrom)(r));const n=await r;return this._uriCache.set(e,n),n}return new Promise(((t,r)=>{
const n=new p.URL(e);('https:'===n.protocol?u:c).get(n,(n=>{if(!n.statusCode||n.statusCode>=300)n.resume(),r(new Error(`Request failed. Status Code: ${n.statusCode}`));else{n.setEncoding('utf8');let s='';n.on('data',(e=>{s+=e})),n.on('end',(()=>{try{
const r=JSON.parse(s);this._uriCache.set(e,r),t(r)}catch(e){r(e)}}))}}))}))}addPreTransform(e,t){this._pre.add(e,t)}addPostTransform(e,t){this._post.add(e,t)}_resolver(e,t){if(!t||!e)return{};const r=t.schemaEnv.root.schema,n='object'==typeof r?r.$id:null
;let s=e;'string'==typeof n&&(s=p.resolve(n,e),e.startsWith('#')&&(s=n+s));const i=this._ajv.getSchema(s);return{context:i?.schemaEnv.validate,schema:i?.schema}}async ɵflatten(e){this._ajv.removeSchema(e),this._currentCompilationSchemaInfo=void 0
;const t=await this._ajv.compileAsync(e),r=this,n=(0,f.deepCopy)(t.schema);return(0,y.visitJsonSchema)(n,(function(e,n,s,i){if(e&&s&&i&&(0,m.isJsonObject)(e)&&Object.prototype.hasOwnProperty.call(e,'$ref')&&'string'==typeof e.$ref){
const n=r._resolver(e.$ref,t);n.schema&&(s[i]=n.schema)}})),n}async compile(e){const t=await this._compile(e);return(e,r)=>t(e,r)}async _compile(e){if('boolean'==typeof e)return async t=>({success:e,data:t});const t={smartDefaultRecord:new Map,
promptDefinitions:[]};let r;this._ajv.removeSchema(e);try{this._currentCompilationSchemaInfo=t,r=this._ajv.compile(e)}catch(t){if(!(t instanceof a.default.MissingRefError))throw t;r=await this._ajv.compileAsync(e)}finally{
this._currentCompilationSchemaInfo=void 0}return async(n,s)=>{const i={withPrompts:!0,applyPostTransforms:!0,applyPreTransforms:!0,...s},o={promptFieldsWithValue:new Set};if(i.applyPreTransforms)for(const t of this._pre.values())n=await(0,
h.lastValueFrom)((0,y.visitJson)(n,t,e,this._resolver.bind(this),r));if(await this._applySmartDefaults(n,t.smartDefaultRecord),i.withPrompts){const s=(e,t)=>(void 0!==e&&o.promptFieldsWithValue.add(t),e);'object'==typeof e&&await(0,h.lastValueFrom)((0,
y.visitJson)(n,s,e,this._resolver.bind(this),r));const i=t.promptDefinitions.filter((e=>!o.promptFieldsWithValue.has(e.id)));i.length>0&&await this._applyPrompts(n,i)}try{const e=await r.call(o,n);if(!e)return{data:n,success:e,errors:r.errors??[]}
}catch(e){if(e instanceof a.default.ValidationError)return{data:n,success:!1,errors:e.errors};throw e}if(i.applyPostTransforms)for(const t of this._post.values())n=await(0,h.lastValueFrom)((0,y.visitJson)(n,t,e,this._resolver.bind(this),r));return{data:n,
success:!0}}}addFormat(e){this._ajv.addFormat(e.name,e.formatter)}addSmartDefaultProvider(e,t){if(this._sourceMap.has(e))throw new Error(e);this._sourceMap.set(e,t),this._smartDefaultKeyword||(this._smartDefaultKeyword=!0,this._ajv.addKeyword({
keyword:'$default',errors:!1,valid:!0,compile:(e,t,r)=>{const n=this._currentCompilationSchemaInfo;if(void 0===n)return()=>!0;const s=this.normalizeDataPathArr(r);return n.smartDefaultRecord.set(JSON.stringify(s),e),()=>!0},metaSchema:{type:'object',
properties:{$source:{type:'string'}},additionalProperties:!0,required:['$source']}}))}registerUriHandler(e){this._uriHandlers.add(e)}usePromptProvider(e){const t=!!this._promptProvider;this._promptProvider=e,t||this._ajv.addKeyword({keyword:'x-prompt',
errors:!1,valid:!0,compile:(e,t,r)=>{const n=this._currentCompilationSchemaInfo;if(!n)return()=>!0;const s='/'+this.normalizeDataPathArr(r).join('/');let i,o,a;'string'==typeof e?a=e:(a=e.message,i=e.type,o=e.items);const l=(0,g.getTypesOfSchema)(t);let c
;if(i||(i=1===l.size&&l.has('boolean')?'confirmation':Array.isArray(t.enum)||1===l.size&&l.has('array')&&t.items&&Array.isArray(t.items.enum)?'list':'input'),'list'===i){c=void 0===e.multiselect?1===l.size&&l.has('array'):e.multiselect
;const r=c?t.items&&t.items.enum:t.enum;if(!o&&Array.isArray(r)){o=[];for(const e of r)'string'==typeof e?o.push(e):'object'==typeof e||o.push({label:e.toString(),value:e})}}const u={id:s,type:i,message:a,raw:e,items:o,multiselect:c,propertyTypes:l,
default:'object'!=typeof t.default||null===t.default||Array.isArray(t.default)?t.default:void 0,async validator(e){try{const n=await r.self.validate(t,e);if(n)return n;if(r.self.errors?.length)return r.self.errors[0].message}catch(e){const t=e
;if(Array.isArray(t.errors)&&t.errors.length)return t.errors[0].message}return!1}};return n.promptDefinitions.push(u),function(){return this&&this.promptFieldsWithValue&&this.promptFieldsWithValue.add(s),!0}},metaSchema:{oneOf:[{type:'string'},{
type:'object',properties:{type:{type:'string'},message:{type:'string'}},additionalProperties:!0,required:['message']}]}})}async _applyPrompts(e,t){const r=this._promptProvider;if(!r)return;const n=await(0,h.lastValueFrom)((0,h.from)(r(t)))
;for(const t in n){const r=t.split('/').slice(1);v._set(e,r,n[t],null,void 0,!0)}}static _set(e,t,r,n=null,s,i){for(let i=0;i<t.length;i++){const o=t[i];if(/^i\d+$/.test(o)){if(!Array.isArray(e))return
;for(let n=0;n<e.length;n++)v._set(e[n],t.slice(i+1),r,e,`${n}`);return}!e&&null!==n&&s&&(e=n[s]={}),n=e,s=o,e=e[o]}n&&s&&(i||void 0===n[s])&&(n[s]=r)}async _applySmartDefaults(e,t){for(const[r,n]of t.entries()){
const t=JSON.parse(r),s=this._sourceMap.get(n.$source);if(!s)continue;let i=s(n);(0,h.isObservable)(i)&&(i=await(0,h.lastValueFrom)(i)),v._set(e,t,i)}}useXDeprecatedProvider(e){this._ajv.addKeyword({keyword:'x-deprecated',
validate:(t,r,n,s)=>(t&&e(`Option "${s?.parentDataProperty}" is deprecated${'string'==typeof t?': '+t:'.'}`),!0),errors:!1})}normalizeDataPathArr(e){return e.dataPathArr.slice(1,e.dataLevel+1).map((e=>'number'==typeof e?e:e.str.replace(/"/g,'')))}}
t.CoreSchemaRegistry=v},33726:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.mergeSchemas=t.isJsonSchema=void 0;const n=r(71392);t.isJsonSchema=function(e){return(0,n.isJsonObject)(e)||!1===e||!0===e},
t.mergeSchemas=function(...e){return e.reduce(((e,t)=>void 0===t?e:!1!==e&&!1!==t&&(!0===e?t:!0===t?e:Array.isArray(e.allOf)?Array.isArray(t.allOf)?{...e,allOf:[...e.allOf,...t.allOf]}:{...e,allOf:[...e.allOf,t]}:Array.isArray(t.allOf)?{...e,
allOf:[e,...t.allOf]}:{...e,allOf:[e,t]})),!0)}},51304:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.addUndefinedDefaults=void 0;const n=r(71392),s=r(63769);t.addUndefinedDefaults=function e(t,r,i){
if('boolean'==typeof i||void 0===i)return t;t??=i.default;const o=(0,s.getTypesOfSchema)(i);if(0===o.size)return t;let a
;if(1===o.size)a=Array.from(o)[0];else if(2===o.size&&o.has('array')&&o.has('object'))a='array';else if(i.properties&&o.has('object'))a='object';else{if(!i.items||!o.has('array'))return t;a='array'}if('array'===a)return t??[];if('object'===a){let o
;if(null==t)o={};else{if(!(0,n.isJsonObject)(t))return t;o=t}if(!(0,n.isJsonObject)(i.properties))return o;for(const[t,a]of Object.entries(i.properties)){if('$schema'===t||!(0,n.isJsonObject)(a))continue;const i=o[t]
;if(void 0===i)o[t]=a.default;else if((0,n.isJsonObject)(i)){const l=a.oneOf||a.anyOf,c=Object.keys(i),u=(0,n.isJsonArray)(l)&&l.find((e=>{if(!(0,n.isJsonObject)(e))return!1;const t=(0,s.getTypesOfSchema)(e);if(1===t.size&&t.has('object')&&(0,
n.isJsonObject)(e.properties)){const t=Object.keys(e.properties);return c.every((e=>t.includes(e)))}return!1}));u&&(0,n.isJsonObject)(u)&&(o[t]=e(i,r,u))}}return o}return t}},63769:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),
t.getTypesOfSchema=void 0;const n=r(71392),s=['string','integer','number','object','array','boolean','null'];t.getTypesOfSchema=function e(t){if(!t)return new Set;if(!0===t)return new Set(s);let r
;if('string'==typeof t.type)r=new Set([t.type]);else if(Array.isArray(t.type))r=new Set(t.type);else if((0,n.isJsonArray)(t.enum)){r=new Set;for(const e of t.enum)switch(typeof e){case'string':case'number':case'boolean':r.add(typeof e);break;case'object':
Array.isArray(e)?r.add('array'):null===e?r.add('null'):r.add('object')}}else r=new Set(s);if((0,n.isJsonObject)(t.not)){const n=e(t.not);r=new Set([...r].filter((e=>!n.has(e))))}if(Array.isArray(t.allOf))for(const n of t.allOf){const t=e(n)
;r=new Set([...t].filter((e=>r.has(e))))}if(Array.isArray(t.oneOf)){let n=new Set;for(const r of t.oneOf){const t=e(r);n=new Set([...n,...t])}r=new Set([...n].filter((e=>r.has(e))))}if(Array.isArray(t.anyOf)){let n=new Set;for(const r of t.anyOf){
const t=e(r);n=new Set([...n,...t])}r=new Set([...n].filter((e=>r.has(e))))}return t.properties?r.add('object'):t.items&&r.add('array'),r}},69119:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.visitJsonSchema=t.visitJson=void 0
;const n=r(62607),s=r(23344);function i(e,t){
if('object'==typeof e&&null!==e)return'object'==typeof e.properties||'object'==e.type?'object'==typeof e.properties&&'object'==typeof e.properties[t]?e.properties[t]:'object'==typeof e.additionalProperties?e.additionalProperties:void 0:'object'!=typeof e.items&&'array'!=e.type||'object'!=typeof e.items?void 0:e.items
}function o(e,t,r,a,l,c,u){if(!0!==a&&!1!==a||(a=void 0),a&&a.hasOwnProperty('$ref')&&'string'==typeof a.$ref&&l){const e=l(a.$ref,c);a=e.schema,c=e.context}const h=t(e,r,a,u);return((0,n.isObservable)(h)?h:(0,n.of)(h)).pipe((0,
n.concatMap)((e=>Array.isArray(e)?(0,n.concat)((0,n.from)(e).pipe((0,n.mergeMap)(((h,p)=>o(h,t,(0,s.joinJsonPointer)(r,''+p),i(a,''+p),l,c,u||e).pipe((0,n.tap)((t=>e[p]=t))))),(0,n.ignoreElements)()),(0,n.of)(e)):'object'==typeof e&&null!==e?(0,
n.concat)((0,n.from)(Object.getOwnPropertyNames(e)).pipe((0,n.mergeMap)((h=>o(e[h],t,(0,s.joinJsonPointer)(r,h),i(a,h),l,c,u||e).pipe((0,n.tap)((t=>{const r=Object.getOwnPropertyDescriptor(e,h);r&&r.writable&&e[h]!==t&&(e[h]=t)}))))),(0,
n.ignoreElements)()),(0,n.of)(e)):(0,n.of)(e))))}t.visitJson=function(e,t,r,n,i){return o(e,t,(0,s.buildJsonPointer)([]),r,n,i)},t.visitJsonSchema=function(e,t){if(!1===e||!0===e)return;const r={additionalItems:!0,items:!0,contains:!0,
additionalProperties:!0,propertyNames:!0,not:!0},n={items:!0,allOf:!0,anyOf:!0,oneOf:!0},i={definitions:!0,properties:!0,patternProperties:!0,additionalProperties:!0,dependencies:!0,items:!0};!function e(o,a,l,c,u){
if(o&&'object'==typeof o&&!Array.isArray(o)){t(o,a,c,u);for(const t of Object.keys(o)){const c=o[t];if(t in i){if(c&&'object'==typeof c)for(const r of Object.keys(c))e(c[r],(0,s.joinJsonPointer)(a,t,r),l,o,r)}else if(t in r)e(c,(0,
s.joinJsonPointer)(a,t),l,o,t);else if(t in n){if(Array.isArray(c))for(let r=0;r<c.length;r++)e(c[r],(0,s.joinJsonPointer)(a,t,''+r),l,c,''+r)}else if(Array.isArray(c))for(let r=0;r<c.length;r++)e(c[r],(0,s.joinJsonPointer)(a,t,''+r),l,c,''+r)}}}(e,(0,
s.buildJsonPointer)([]),e)}},71392:(e,t)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.isJsonArray=t.isJsonObject=void 0,t.isJsonObject=function(e){return null!=e&&'object'==typeof e&&!Array.isArray(e)},t.isJsonArray=function(e){
return Array.isArray(e)}},77369:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.IndentLogger=void 0;const n=r(62607),s=r(3123),i={};class o extends s.Logger{constructor(e,t=null,r=' '){super(e,t),i[r]=i[r]||[''];const s=i[r]
;this._observable=this._observable.pipe((0,n.map)((e=>{const t=e.path.filter((e=>!!e)).length;if(t>=s.length){let e=s[s.length-1];for(;t>=s.length;)e+=r,s.push(e)}return e.message=s[t]+e.message.split(/\n/).join('\n'+s[t]),e})))}}t.IndentLogger=o},
78643:function(e,t,r){'use strict';var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!('get'in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){
return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__exportStar||function(e,t){for(var r in e)'default'===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,'__esModule',{
value:!0}),s(r(77369),t),s(r(2737),t),s(r(3123),t),s(r(47923),t),s(r(36888),t)},2737:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.LevelCapLogger=t.LevelTransformLogger=void 0;const n=r(3123);class s extends n.Logger{name
;parent;levelTransform;constructor(e,t=null,r){super(e,t),this.name=e,this.parent=t,this.levelTransform=r}log(e,t,r={}){return super.log(this.levelTransform(e),t,r)}createChild(e){return new s(e,this,this.levelTransform)}}t.LevelTransformLogger=s
;class i extends s{name;parent;levelCap;static levelMap={debug:{debug:'debug',info:'debug',warn:'debug',error:'debug',fatal:'debug'},info:{debug:'debug',info:'info',warn:'info',error:'info',fatal:'info'},warn:{debug:'debug',info:'info',warn:'warn',
error:'warn',fatal:'warn'},error:{debug:'debug',info:'info',warn:'warn',error:'error',fatal:'error'},fatal:{debug:'debug',info:'info',warn:'warn',error:'error',fatal:'fatal'}};constructor(e,t=null,r){super(e,t,(e=>i.levelMap[r][e]||e)),this.name=e,
this.parent=t,this.levelCap=r}}t.LevelCapLogger=i},3123:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.Logger=void 0;const n=r(62607);class s extends n.Observable{name;parent;_subject=new n.Subject;_metadata;_obs=n.EMPTY
;_subscription=null;get _observable(){return this._obs}set _observable(e){this._subscription&&this._subscription.unsubscribe(),this._obs=e,this.parent&&(this._subscription=this.subscribe((e=>{this.parent&&this.parent._subject.next(e)}),(e=>{
this.parent&&this.parent._subject.error(e)}),(()=>{this._subscription&&this._subscription.unsubscribe(),this._subscription=null})))}constructor(e,t=null){super(),this.name=e,this.parent=t;const r=[];let n=t;for(;n;)r.push(n.name),n=n.parent
;this._metadata={name:e,path:r},this._observable=this._subject.asObservable(),this.parent&&this.parent._subject&&this.parent._subject.subscribe(void 0,void 0,(()=>this.complete()))}asApi(){return{createChild:e=>this.createChild(e),
log:(e,t,r)=>this.log(e,t,r),debug:(e,t)=>this.debug(e,t),info:(e,t)=>this.info(e,t),warn:(e,t)=>this.warn(e,t),error:(e,t)=>this.error(e,t),fatal:(e,t)=>this.fatal(e,t)}}createChild(e){return new this.constructor(e,this)}complete(){
this._subject.complete()}log(e,t,r={}){const n=Object.assign({},r,this._metadata,{level:e,message:t,timestamp:+Date.now()});this._subject.next(n)}next(e){this._subject.next(e)}debug(e,t={}){return this.log('debug',e,t)}info(e,t={}){
return this.log('info',e,t)}warn(e,t={}){return this.log('warn',e,t)}error(e,t={}){return this.log('error',e,t)}fatal(e,t={}){return this.log('fatal',e,t)}toString(){return`<Logger(${this.name})>`}lift(e){return this._observable.lift(e)}subscribe(e,t,r){
return this._observable.subscribe.apply(this._observable,arguments)}forEach(e,t=Promise){return this._observable.forEach(e,t)}}t.Logger=s},47923:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.NullLogger=void 0
;const n=r(62607),s=r(3123);class i extends s.Logger{constructor(e=null){super('',e),this._observable=n.EMPTY}asApi(){return{createChild:()=>new i(this),log(){},debug(){},info(){},warn(){},error(){},fatal(){}}}}t.NullLogger=i},36888:(e,t,r)=>{'use strict'
;Object.defineProperty(t,'__esModule',{value:!0}),t.TransformLogger=void 0;const n=r(3123);class s extends n.Logger{constructor(e,t,r=null){super(e,r),this._observable=t(this._observable)}}t.TransformLogger=s},9512:function(e,t,r){'use strict'
;var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var s=Object.getOwnPropertyDescriptor(t,r);s&&!('get'in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),
Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,'default',{enumerable:!0,value:t})}:function(e,t){e.default=t
}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)'default'!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t},o=this&&this.__exportStar||function(e,t){
for(var r in e)'default'===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,'__esModule',{value:!0}),t.strings=t.tags=void 0;const a=i(r(766));t.tags=a;const l=i(r(51490));t.strings=l,o(r(15261),t),o(r(64024),t),
o(r(73855),t),o(r(35576),t),o(r(67014),t)},67014:(e,t)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.isPromise=void 0,t.isPromise=function(e){return!!e&&'function'==typeof e.then}},766:(e,t)=>{'use strict';function r(e,...t){
const r=String.raw(e,...t),n=r.match(/^[ \t]*(?=\S)/gm);if(null===n)return r;const s=Math.min(...n.map((e=>e.length))),i=new RegExp('^[ \\t]{'+s+'}','gm');return(s>0?r.replace(i,''):r).trim()}Object.defineProperty(t,'__esModule',{value:!0}),
t.trimNewlines=t.stripIndents=t.stripIndent=t.indentBy=t.oneLine=void 0,t.oneLine=function(e,...t){return String.raw(e,...t).replace(/(?:\r?\n(?:\s*))+/gm,' ').trim()},t.indentBy=function(e){let t='';for(;e--;)t+=' '
;return(e,...n)=>t+r(e,...n).replace(/\n/g,'\n'+t)},t.stripIndent=r,t.stripIndents=function(e,...t){return String.raw(e,...t).split('\n').map((e=>e.trim())).join('\n').trim()},t.trimNewlines=function(e,...t){
return String.raw(e,...t).replace(/^(?:\r?\n)+/,'').replace(/(?:\r?\n(?:\s*))$/,'')}},15261:(e,t)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.deepCopy=void 0;const r=Symbol();t.deepCopy=function e(t){
if(Array.isArray(t))return t.map((t=>e(t)));if(t&&'object'==typeof t){const n=t;if(n[r])return n[r];if(n.toJSON)return JSON.parse(n.toJSON());const s=Object.create(Object.getPrototypeOf(n));n[r]=s;for(const t of Object.getOwnPropertyNames(n))s[t]=e(n[t])
;return delete n[r],s}return t}},73855:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.PartiallyOrderedSet=t.CircularDependencyFoundException=t.DependencyNotFoundException=void 0;const n=r(79759);class s extends n.BaseException{
constructor(){super('One of the dependencies is not part of the set.')}}t.DependencyNotFoundException=s;class i extends n.BaseException{constructor(){super('Circular dependencies found.')}}t.CircularDependencyFoundException=i;class o{_items=new Map
;_checkCircularDependencies(e,t){if(t.has(e))throw new i;t.forEach((t=>this._checkCircularDependencies(e,this._items.get(t)||new Set)))}clear(){this._items.clear()}has(e){return this._items.has(e)}get size(){return this._items.size}forEach(e,t){
for(const r of this)e.call(t,r,r,this)}*entries(){for(const e of this)yield[e,e]}keys(){return this.values()}values(){return this[Symbol.iterator]()}add(e,t=new Set){if(Array.isArray(t)&&(t=new Set(t)),this._items.has(e)){
const r=this._items.get(e)||new Set;let n=!0;for(const e of t)if(!r.has(e)){n=!1;break}if(n)for(const e of r)if(!t.has(e)){n=!1;break}if(n)return this;this._items.delete(e)}for(const e of t)if(!this._items.has(e))throw new s
;return this._checkCircularDependencies(e,t),this._items.set(e,new Set(t)),this}delete(e){return!!this._items.has(e)&&(this._items.forEach((t=>t.delete(e))),this._items.delete(e))}*[Symbol.iterator](){const e=new Map(this._items)
;for(const[t,r]of e.entries())e.set(t,new Set(r));for(;e.size>0;){const t=[];for(const[r,n]of e.entries())0==n.size&&t.push(r);for(const r of t)e.forEach((e=>e.delete(r))),e.delete(r),yield r;if(0==t.length)throw new i}}get[Symbol.toStringTag](){
return'Set'}}t.PartiallyOrderedSet=o},35576:(e,t)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.PriorityQueue=void 0,t.PriorityQueue=class{_comparator;_items=new Array;constructor(e){this._comparator=e}clear(){this._items=new Array}
push(e){const t=this._items.findIndex((t=>this._comparator(e,t)<=0));-1===t?this._items.push(e):this._items.splice(t,0,e)}pop(){if(0!==this._items.length)return this._items.splice(0,1)[0]}peek(){if(0!==this._items.length)return this._items[0]}get size(){
return this._items.length}toArray(){return this._items.slice()}}},51490:(e,t)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.levenshtein=t.capitalize=t.underscore=t.classify=t.camelize=t.dasherize=t.decamelize=void 0
;const r=/[ _]/g,n=/([a-z\d])([A-Z])/g,s=/(-|_|\.|\s)+(.)?/g,i=/([a-z\d])([A-Z]+)/g,o=/-|\s+/g;function a(e){return e.replace(n,'$1_$2').toLowerCase()}function l(e){
return e.replace(s,((e,t,r)=>r?r.toUpperCase():'')).replace(/^([A-Z])/,(e=>e.toLowerCase()))}function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}t.decamelize=a,t.dasherize=function(e){return a(e).replace(r,'-')},t.camelize=l,t.classify=function(e){
return e.split('.').map((e=>c(l(e)))).join('')},t.underscore=function(e){return e.replace(i,'$1_$2').replace(o,'_').toLowerCase()},t.capitalize=c,t.levenshtein=function(e,t){if(0==e.length)return t.length;if(0==t.length)return e.length;const r=[]
;for(let e=0;e<=t.length;e++)r[e]=[e];for(let t=0;t<=e.length;t++)r[0][t]=t;for(let n=1;n<=t.length;n++)for(let s=1;s<=e.length;s++)t.charAt(n-1)==e.charAt(s-1)?r[n][s]=r[n-1][s-1]:r[n][s]=Math.min(r[n-1][s-1]+1,r[n][s-1]+1,r[n-1][s]+1)
;return r[t.length][e.length]}},64024:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.template=t.templateParser=void 0;const n=r(19665),s=/<%=([\s\S]+?)%>/g,i=/<%#([\s\S]+?)%>/g,o=/<%-([\s\S]+?)%>/g,a=/<%([\s\S]+?)%>/g,l={
'&':'&','<':'<','>':'>','"':'"','\'':''','`':'`'},c=new RegExp(`[${Object.keys(l).join('')}]`,'g');function u(e,t){let r=1,n=0;for(let s=0;s<t-1;s++)'\n'==e[s]?(r++,n=0):n++;return{line:r,column:n}}function h(e,t){
const r=[],n=[o,i,s,a],l=RegExp(n.map((e=>e.source)).join('|')+'|$','g'),c=e.split(l);let h,p=0,d=u(e,p);const f=n.length+1;for(let t=0;t<c.length;t+=f){const[n,s,i,o,a]=c.slice(t,t+f);n&&(h=u(e,p+n.length),p+=n.length,r.push({kind:'content',content:n,
start:d,end:h}),d=h),s&&(h=u(e,p+s.length+5),p+=s.length+5,r.push({kind:'escape',expression:s,start:d,end:h}),d=h),i&&(h=u(e,p+i.length+5),p+=i.length+5,r.push({kind:'comment',text:i,start:d,end:h}),d=h),o&&(h=u(e,p+o.length+5),p+=o.length+5,r.push({
kind:'interpolate',expression:o,start:d,end:h}),d=h),a&&(h=u(e,p+a.length+5),p+=a.length+5,r.push({kind:'evaluate',expression:a,start:d,end:h}),d=h)}return{fileName:t,content:e,children:r}}t.templateParser=h,t.template=function(e,t){
const r=h(e,t&&t.sourceURL||'ejs');let s;s=t&&t.sourceMap?function(e,t){
const r=e.fileName,s=t&&t.module?'module.exports.default =':'',i=c.source.replace(/[']/g,'\\\\\\\''),o=new n.SourceNode(1,0,r,'').add(new n.SourceNode(1,0,r,[`return ${s} function(obj) {\n`,' obj || (obj = {});\n',' let __t;\n',' let __p = "";\n',` const __escapes = ${JSON.stringify(l)};\n`,` const __escapesre = new RegExp('${i}', 'g');\n`,'\n',' const __e = function(s) { ',' return s ? s.replace(__escapesre, function(key) { return __escapes[key]; }) : \'\';',' };\n',' with (obj) {\n'])),a=e.children.length?e.children[e.children.length-1].end:{
line:0,column:0},u=e.children.reduce(((e,t)=>{let s='';switch(t.kind){case'content':
s=[new n.SourceNode(t.start.line,t.start.column,r,'__p = __p'),...t.content.split('\n').map(((e,s,i)=>new n.SourceNode(t.start.line+s,0==s?t.start.column:0,r,'\n + '+JSON.stringify(e+(s==i.length-1?'':'\n'))))),new n.SourceNode(t.end.line,t.end.column,r,';\n')]
;break;case'interpolate':
s=[new n.SourceNode(t.start.line,t.start.column,r,'__p += ((__t = '),...t.expression.split('\n').map(((e,s,i)=>new n.SourceNode(t.start.line+s,0==s?t.start.column:0,r,e+(s==i.length-1?'':'\n')))),new n.SourceNode(t.end.line,t.end.column,r,') == null ? "" : __t);\n')]
;break;case'escape':
s=[new n.SourceNode(t.start.line,t.start.column,r,'__p += __e('),...t.expression.split('\n').map(((e,s,i)=>new n.SourceNode(t.start.line+s,0==s?t.start.column:0,r,e+(s==i.length-1?'':'\n')))),new n.SourceNode(t.end.line,t.end.column,r,');\n')];break
;case'evaluate':s=[...t.expression.split('\n').map(((e,s,i)=>new n.SourceNode(t.start.line+s,0==s?t.start.column:0,r,e+(s==i.length-1?'':'\n')))),new n.SourceNode(t.end.line,t.end.column,r,'\n')]}
return e.add(new n.SourceNode(t.start.line,t.start.column,r,s))}),o).add(new n.SourceNode(a.line,a.column,r,[' };\n','\n',' return __p;\n','}\n'])),h=u.toStringWithSourceMap({file:r,sourceRoot:t&&t.sourceRoot||'.'})
;return h.map.setSourceContent(r,e.content),h.code+'\n//# sourceMappingURL=data:application/json;base64,'+Buffer.from(h.map.toString()).toString('base64')}(r,t):function(e,t){
const r=t&&t.module?'module.exports.default =':'',n=c.source.replace(/[']/g,'\\\\\\\'')
;return`\n return ${r} function(obj) {\n obj || (obj = {});\n let __t;\n let __p = '';\n const __escapes = ${JSON.stringify(l)};\n const __escapesre = new RegExp('${n}', 'g');\n\n const __e = function(s) {\n return s ? s.replace(__escapesre, function(key) { return __escapes[key]; }) : '';\n };\n with (obj) {\n ${e.children.map((e=>{
switch(e.kind){case'content':return`__p += ${JSON.stringify(e.content)};`;case'interpolate':return`__p += ((__t = (${e.expression})) == null) ? '' : __t;`;case'escape':return`__p += __e(${e.expression});`;case'evaluate':return e.expression}
})).join('\n')}\n }\n\n return __p;\n };\n `}(r,t);const i=Function('module',s)(t&&t.module?!0===t.module?{exports:{}}:t.module:null);return i.source=s,i}},43293:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),
t.AliasHost=void 0;const n=r(52027),s=r(16787);class i extends s.ResolverHost{_aliases=new Map;_resolve(e){let t=this._aliases.get(e);const r=(0,n.split)(e),s=[];for(;!t&&r.length>0;){const e=(0,n.join)(n.NormalizedRoot,...r);t=this._aliases.get(e),
t&&(t=(0,n.join)(t,...s)),s.unshift(r.pop())}return t||e}get aliases(){return this._aliases}}t.AliasHost=i},35943:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.fileBuffer=t.fileBufferToString=t.stringToFileBuffer=void 0
;const n=r(57975);function s(e){return(new n.TextEncoder).encode(e).buffer}t.stringToFileBuffer=s,t.fileBufferToString=function(e){return 1===e.toString.length?e.toString('utf-8'):new n.TextDecoder('utf-8').decode(new Uint8Array(e))},
t.fileBuffer=(e,...t)=>s(String.raw(e,...t))},92885:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.createSyncHost=void 0;const n=r(62607);function s(e){return new n.Observable((t=>{t.next(e()),t.complete()}))}
t.createSyncHost=function(e){return new class{get capabilities(){return{synchronous:!0}}read(t){return s((()=>e.read(t)))}list(t){return s((()=>e.list(t)))}exists(t){return s((()=>e.exists(t)))}isDirectory(t){return s((()=>e.isDirectory(t)))}isFile(t){
return s((()=>e.isFile(t)))}stat(t){return s((()=>e.stat(t)))}write(t,r){return s((()=>e.write(t,r)))}delete(t){return s((()=>e.delete(t)))}rename(t,r){return s((()=>e.rename(t,r)))}watch(){return null}}}},25320:(e,t,r)=>{'use strict'
;Object.defineProperty(t,'__esModule',{value:!0}),t.Empty=void 0;const n=r(62607),s=r(79759);t.Empty=class{capabilities={synchronous:!0};read(e){return(0,n.throwError)(new s.FileDoesNotExistException(e))}list(e){return(0,n.of)([])}exists(e){return(0,
n.of)(!1)}isDirectory(e){return(0,n.of)(!1)}isFile(e){return(0,n.of)(!1)}stat(e){return(0,n.of)(null)}}},19125:function(e,t,r){'use strict';var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r)
;var s=Object.getOwnPropertyDescriptor(t,r);s&&!('get'in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,s)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]
}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,'default',{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={}
;if(null!=e)for(var r in e)'default'!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t},o=this&&this.__exportStar||function(e,t){for(var r in e)'default'===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)}
;Object.defineProperty(t,'__esModule',{value:!0}),t.test=void 0;const a=i(r(65241));t.test=a,o(r(43293),t),o(r(35943),t),o(r(92885),t),o(r(25320),t),o(r(75382),t),o(r(49122),t),o(r(27371),t),o(r(8360),t),o(r(47888),t),o(r(35525),t),o(r(34662),t),
o(r(16787),t)},75382:(e,t)=>{'use strict';var r;Object.defineProperty(t,'__esModule',{value:!0}),t.HostWatchEventType=void 0,function(e){e[e.Changed=0]='Changed',e[e.Created=1]='Created',e[e.Deleted=2]='Deleted',e[e.Renamed=3]='Renamed'
}(r||(t.HostWatchEventType=r={}))},49122:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.SimpleMemoryHost=void 0;const n=r(62607),s=r(79759),i=r(52027),o=r(75382);t.SimpleMemoryHost=class{_cache=new Map;_watchers=new Map
;_newDirStats(){return{inspect:()=>'<Directory>',isFile:()=>!1,isDirectory:()=>!0,size:0,atime:new Date,ctime:new Date,mtime:new Date,birthtime:new Date,content:null}}_newFileStats(e,t){return{inspect:()=>`<File size(${e.byteLength})>`,isFile:()=>!0,
isDirectory:()=>!1,size:e.byteLength,atime:t?t.atime:new Date,ctime:new Date,mtime:new Date,birthtime:t?t.birthtime:new Date,content:e}}constructor(){this._cache.set((0,i.normalize)('/'),this._newDirStats())}_toAbsolute(e){return(0,i.isAbsolute)(e)?e:(0,
i.normalize)('/'+e)}_updateWatchers(e,t){const r=new Date;let n=e,s=null;if(0==this._watchers.size)return;const a=this._watchers.get(n);a&&a.forEach((s=>{const[i,a]=s;a.next({path:e,time:r,type:t}),
i.persistent||t!=o.HostWatchEventType.Deleted||(a.complete(),this._watchers.delete(n))}));do{n=null!==s?s:n,s=(0,i.dirname)(n);const a=this._watchers.get(n);a&&a.forEach((s=>{const[i,a]=s;i.recursive&&(a.next({path:e,time:r,type:t}),
i.persistent||t!=o.HostWatchEventType.Deleted||(a.complete(),this._watchers.delete(n)))}))}while(s!=n)}get capabilities(){return{synchronous:!0}}_write(e,t){e=this._toAbsolute(e);const r=this._cache.get(e)
;if(r&&r.isDirectory())throw new s.PathIsDirectoryException(e);const n=(0,i.split)(e);let a=(0,i.normalize)('/');for(const e of n){a=(0,i.join)(a,e);const t=this._cache.get(e);if(t){if(t.isFile())throw new s.PathIsFileException(a)
}else this._cache.set(a,this._newDirStats())}const l=this._newFileStats(t,r);this._cache.set(e,l),this._updateWatchers(e,r?o.HostWatchEventType.Changed:o.HostWatchEventType.Created)}_read(e){e=this._toAbsolute(e);const t=this._cache.get(e);if(t){
if(t.isDirectory())throw new s.PathIsDirectoryException(e);if(t.content)return t.content;throw new s.PathIsDirectoryException(e)}throw new s.FileDoesNotExistException(e)}_delete(e){if(e=this._toAbsolute(e),
this._isDirectory(e))for(const[t]of this._cache.entries())(t.startsWith(e+i.NormalizedSep)||t===e)&&this._cache.delete(t);else this._cache.delete(e);this._updateWatchers(e,o.HostWatchEventType.Deleted)}_rename(e,t){if(e=this._toAbsolute(e),
t=this._toAbsolute(t),!this._cache.has(e))throw new s.FileDoesNotExistException(e);if(this._cache.has(t))throw new s.FileAlreadyExistException(t);if(this._isDirectory(e)){for(const r of this._cache.keys())if(r.startsWith(e+i.NormalizedSep)){
const n=this._cache.get(r);n&&this._cache.set((0,i.join)(t,i.NormalizedSep,r.slice(e.length)),n)}}else{const r=this._cache.get(e);if(r){const n=(0,i.split)(t),o=[];let a=(0,i.normalize)('/');for(const e of n){a=(0,i.join)(a,e);const t=this._cache.get(e)
;if(t){if(t.isFile())throw new s.PathIsFileException(a)}else o.push(a)}for(const e of o)this._cache.set(e,this._newDirStats());this._cache.delete(e),this._cache.set(t,r)}}this._updateWatchers(e,o.HostWatchEventType.Renamed)}_list(e){
if(e=this._toAbsolute(e),this._isFile(e))throw new s.PathIsFileException(e);const t=(0,i.split)(e),r=new Set;if(e!==i.NormalizedRoot)for(const n of this._cache.keys())n.startsWith(e+i.NormalizedSep)&&r.add((0,
i.split)(n)[t.length]);else for(const e of this._cache.keys())e.startsWith(i.NormalizedSep)&&e!==i.NormalizedRoot&&r.add((0,i.split)(e)[1]);return[...r]}_exists(e){return!!this._cache.get(this._toAbsolute(e))}_isDirectory(e){
const t=this._cache.get(this._toAbsolute(e));return!!t&&t.isDirectory()}_isFile(e){const t=this._cache.get(this._toAbsolute(e));return!!t&&t.isFile()}_stat(e){return this._cache.get(this._toAbsolute(e))||null}_watch(e,t){e=this._toAbsolute(e)
;const r=new n.Subject;let s=this._watchers.get(e);return s||(s=[],this._watchers.set(e,s)),s.push([t||{},r]),r.asObservable()}write(e,t){return new n.Observable((r=>{this._write(e,t),r.next(),r.complete()}))}read(e){return new n.Observable((t=>{
const r=this._read(e);t.next(r),t.complete()}))}delete(e){return new n.Observable((t=>{this._delete(e),t.next(),t.complete()}))}rename(e,t){return new n.Observable((r=>{this._rename(e,t),r.next(),r.complete()}))}list(e){return new n.Observable((t=>{
t.next(this._list(e)),t.complete()}))}exists(e){return new n.Observable((t=>{t.next(this._exists(e)),t.complete()}))}isDirectory(e){return new n.Observable((t=>{t.next(this._isDirectory(e)),t.complete()}))}isFile(e){return new n.Observable((t=>{
t.next(this._isFile(e)),t.complete()}))}stat(e){return new n.Observable((t=>{t.next(this._stat(e)),t.complete()}))}watch(e,t){return this._watch(e,t)}reset(){this._cache.clear(),this._watchers.clear()}}},27371:(e,t,r)=>{'use strict'
;Object.defineProperty(t,'__esModule',{value:!0}),t.PatternMatchingHost=void 0;const n=r(35157),s=r(16787);class i extends s.ResolverHost{_patterns=new Map;addPattern(e,t){const r=Array.isArray(e)?e:[e];for(const e of r){const{output:r}=(0,n.parse)(e)
;this._patterns.set(new RegExp(`^${r}$`),t)}}_resolve(e){let t=e;return this._patterns.forEach(((r,n)=>{n.test(e)&&(t=r(t))})),t}}t.PatternMatchingHost=i},8360:(e,t,r)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.CordHost=void 0
;const n=r(62607),s=r(79759),i=r(49122);class o extends i.SimpleMemoryHost{_back;_filesToCreate=new Set;_filesToRename=new Map;_filesToRenameRevert=new Map;_filesToDelete=new Set;_filesToOverwrite=new Set;constructor(e){super(),this._back=e}get backend(){
return this._back}get capabilities(){return{synchronous:this._back.capabilities.synchronous}}clone(){const e=new o(this._back);return e._cache=new Map(this._cache),e._filesToCreate=new Set(this._filesToCreate),
e._filesToRename=new Map(this._filesToRename),e._filesToRenameRevert=new Map(this._filesToRenameRevert),e._filesToDelete=new Set(this._filesToDelete),e._filesToOverwrite=new Set(this._filesToOverwrite),e}commit(e,t=!1){return(0,
n.from)(this.records()).pipe((0,n.concatMap)((r=>{switch(r.kind){case'delete':return e.delete(r.path);case'rename':return e.rename(r.from,r.to);case'create':return e.exists(r.path).pipe((0,n.switchMap)((i=>i&&!t?(0,
n.throwError)(new s.FileAlreadyExistException(r.path)):e.write(r.path,r.content))));case'overwrite':return e.exists(r.path).pipe((0,n.switchMap)((i=>i||t?e.write(r.path,r.content):(0,n.throwError)(new s.FileDoesNotExistException(r.path)))))}})),(0,
n.reduce)((()=>{})))}records(){return[...[...this._filesToDelete.values()].map((e=>({kind:'delete',path:e}))),...[...this._filesToRename.entries()].map((([e,t])=>({kind:'rename',from:e,to:t}))),...[...this._filesToCreate.values()].map((e=>({kind:'create',
path:e,content:this._read(e)}))),...[...this._filesToOverwrite.values()].map((e=>({kind:'overwrite',path:e,content:this._read(e)})))]}create(e,t){if(super._exists(e))throw new s.FileAlreadyExistException(e)
;return this._filesToDelete.has(e)?(this._filesToDelete.delete(e),this._filesToOverwrite.add(e)):this._filesToCreate.add(e),super.write(e,t)}overwrite(e,t){return this.isDirectory(e).pipe((0,n.switchMap)((t=>t?(0,
n.throwError)(new s.PathIsDirectoryException(e)):this.exists(e))),(0,n.switchMap)((r=>r?(this._filesToCreate.has(e)||this._filesToOverwrite.add(e),super.write(e,t)):(0,n.throwError)(new s.FileDoesNotExistException(e)))))}write(e,t){
return this.exists(e).pipe((0,n.switchMap)((r=>r?this.willRename(e)||this.willDelete(e)?this.create(e,t):this.overwrite(e,t):this.create(e,t))))}read(e){return this._exists(e)?super.read(e):this._back.read(e)}delete(e){if(this._exists(e)){
if(this._filesToCreate.has(e))this._filesToCreate.delete(e);else if(this._filesToOverwrite.has(e))this._filesToOverwrite.delete(e),this._filesToDelete.add(e);else{const t=this._filesToRenameRevert.get(e);if(!t)return(0,
n.throwError)(new s.UnknownException(`This should never happen. Path: ${JSON.stringify(e)}.`));this._filesToRenameRevert.delete(e),this._filesToRename.delete(t),this._filesToDelete.add(t)}return super.delete(e)}return this._back.exists(e).pipe((0,
n.switchMap)((t=>t?(this._filesToDelete.add(e),(0,n.of)()):(0,n.throwError)(new s.FileDoesNotExistException(e)))))}rename(e,t){return(0,n.concat)(this.exists(t),this.exists(e)).pipe((0,n.toArray)(),(0,n.switchMap)((([r,i])=>{if(!i)return(0,
n.throwError)(new s.FileDoesNotExistException(e));if(e===t)return n.EMPTY;if(r)return(0,n.throwError)(new s.FileAlreadyExistException(t));if(this._filesToCreate.has(e))return this._filesToCreate.delete(e),this._filesToCreate.add(t),super.rename(e,t)
;if(this._filesToOverwrite.has(e))return this._filesToOverwrite.delete(e),(0,n.concat)(this.rename(e,t),new n.Observable((e=>{this._filesToOverwrite.add(t),e.complete()})));if(this._filesToDelete.has(t))return this._filesToDelete.delete(t),
this._filesToDelete.add(e),this._filesToOverwrite.add(t),this.read(e).pipe((0,n.map)((e=>this._write(t,e))));const o=this._filesToRenameRevert.get(e);return o&&(this._filesToRename.delete(o),this._filesToRenameRevert.delete(e),e=o),
this._filesToRename.set(e,t),this._filesToRenameRevert.set(t,e),this._exists(e)?super.rename(e,t):this._back.read(e).pipe((0,n.switchMap)((e=>super.write(t,e))))})))}list(e){return(0,n.concat)(super.list(e),this._back.list(e)).pipe((0,
n.reduce)(((e,t)=>(t.forEach((t=>e.add(t))),e)),new Set),(0,n.map)((e=>[...e])))}exists(e){return this._exists(e)?(0,n.of)(!0):this.willDelete(e)||this.willRename(e)?(0,n.of)(!1):this._back.exists(e)}isDirectory(e){
return this._exists(e)?super.isDirectory(e):this._back.isDirectory(e)}isFile(e){return this._exists(e)?super.isFile(e):this.willDelete(e)||this.willRename(e)?(0,n.of)(!1):this._back.isFile(e)}stat(e){
return this._exists(e)?super.stat(e):this.willDelete(e)||this.willRename(e)?(0,n.of)(null):this._back.stat(e)}watch(e,t){return null}willCreate(e){return this._filesToCreate.has(e)}willOverwrite(e){return this._filesToOverwrite.has(e)}willDelete(e){
return this._filesToDelete.has(e)}willRename(e){return this._filesToRename.has(e)}willRenameTo(e,t){return this._filesToRename.get(e)===t}}t.CordHost=o},16787:(e,t)=>{'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.ResolverHost=void 0,
t.ResolverHost=class{_delegate;constructor(e){this._delegate=e}get capabilities(){return this._delegate.capabilities}write(e,t){return this._delegate.write(this._resolve(e),t)}read(e){return this._delegate.read(this._resolve(e))}dele