@mongodb-js/compass-web 0.30.0 → 0.30.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/923.mjs DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 923.mjs.LICENSE.txt */
2
- export const __webpack_esm_id__=923;export const __webpack_esm_ids__=[923];export const __webpack_esm_modules__={415:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:s}=n(77693),i=n(67767),o=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],m=t.t={};let p=0;const d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",s],[d,a]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),a=p++;i(e,a,t),m[e]=a,c[a]=t,u[a]=r,o[a]=new RegExp(t,n?"g":void 0),l[a]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${c[m.PRERELEASEIDENTIFIER]}(?:\\.${c[m.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${c[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[m.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${c[m.BUILDIDENTIFIER]}(?:\\.${c[m.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${c[m.MAINVERSION]}${c[m.PRERELEASE]}?${c[m.BUILD]}?`),f("FULL",`^${c[m.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${c[m.MAINVERSIONLOOSE]}${c[m.PRERELEASELOOSE]}?${c[m.BUILD]}?`),f("LOOSE",`^${c[m.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${c[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${c[m.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:${c[m.PRERELEASE]})?${c[m.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:${c[m.PRERELEASELOOSE]})?${c[m.BUILD]}?)?)?`),f("XRANGE",`^${c[m.GTLT]}\\s*${c[m.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${c[m.GTLT]}\\s*${c[m.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),f("COERCE",`${c[m.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",c[m.COERCEPLAIN]+`(?:${c[m.PRERELEASE]})?`+`(?:${c[m.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",c[m.COERCE],!0),f("COERCERTLFULL",c[m.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${c[m.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${c[m.LONETILDE]}${c[m.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${c[m.LONETILDE]}${c[m.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${c[m.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${c[m.LONECARET]}${c[m.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${c[m.LONECARET]}${c[m.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${c[m.GTLT]}\\s*(${c[m.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]}|${c[m.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${c[m.XRANGEPLAIN]})\\s+-\\s+(${c[m.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${c[m.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[m.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},540:(e,t,n)=>{const r=n(50066),a=n(72857);e.exports=(e,t,n)=>{let s=null,i=null,o=null;try{o=new a(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},1025:(e,t,n)=>{const r=n(9350);e.exports=(e,t,n,a,s)=>{"string"==typeof n&&(s=a,a=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,a,s).version}catch(e){return null}}},1276:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ENVS=t.ON_PREM=t.ADL=t.ATLAS=void 0;const n="atlas";t.ATLAS=n,t.ADL="adl";const r="on-prem";t.ON_PREM=r;const a=[n,"adl",r];t.ENVS=a},2431:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.toJSString=void 0;const r=n(17230),a=new Map([["[object Array]","Array"],["[object Object]","Object"],["[object String]","String"],["[object Date]","Date"],["[object Number]","Number"],["[object Function]","Function"],["[object RegExp]","RegExp"],["[object Boolean]","Boolean"],["[object Null]","Null"],["[object Undefined]","Undefined"]]);const s={Code:function(e){return e.scope?`Code('${e.code}',${JSON.stringify(e.scope)})`:`Code('${e.code}')`},ObjectID:function(e){return`ObjectId('${e.toString("hex")}')`},ObjectId:function(e){return`ObjectId('${e.toString("hex")}')`},Binary:function(e){const t=e.sub_type;if(4===t&&16===e.buffer.length){let t="";try{t=e.toUUID().toString()}catch{t=e.toString("hex")}return`UUID('${t}')`}return`BinData(${t.toString(10)}, '${e.toString("base64")}')`},DBRef:function(e){return e.db?`DBRef('${e.collection}', '${e.oid.toString()}', '${e.db}')`:`DBRef('${e.collection}', '${e.oid.toString()}')`},Timestamp:function(e){return`Timestamp({ t: ${e.high}, i: ${e.low} })`},Long:function(e){return`NumberLong('${e.toString()}')`},Decimal128:function(e){return`NumberDecimal('${e.toString()}')`},Double:function(e){return`Double('${e.toString()}')`},Int32:function(e){return`NumberInt('${e.toString()}')`},MaxKey:function(){return"MaxKey()"},MinKey:function(){return"MinKey()"},Date:function(e){return s.ISODate(e)},ISODate:function(e){try{return`ISODate('${e.toISOString()}')`}catch(t){return`ISODate('${e.toString()}')`}},RegExp:function(e){let t="",n=!1;return e.global&&(n=!0,t+="g"),e.ignoreCase&&(n=!0,t+="i"),e.multiline&&(n=!0,t+="m"),`RegExp(${JSON.stringify(e.source)}${n?`, '${t}'`:""})`},BSONRegExp:function(e){const t=e.options&&e.options?.length>0;let n="RegExp";try{RegExp(e.pattern,e.options||void 0)}catch{n="BSONRegExp"}return`${n}(${JSON.stringify(e.pattern)}${t?`, '${e.options}'`:""})`}};function i(e,t=2){return(0,r.stringify)(e,(function(e,t,n){const r=function(e){const t=function(e){return a.get(Object.prototype.toString.call(e))}(e),n="Object"===t&&e._bsontype;return{type:n||t,isBSON:!!n}}(e),i=s[r.type];return i?i(e):n(e)}),t)}t.toJSString=i,t.stringify=function(e){return i(e,1)?.replace(/ ?\n ? ?/g,"").replace(/ {2,}/g," ")}},3012:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ACCUMULATORS=void 0,t.ACCUMULATORS=[{name:"$accumulator",value:"$accumulator",score:1,meta:"accumulator",version:"4.4.0"},{name:"$addToSet",value:"$addToSet",score:1,meta:"accumulator",version:"2.2.0"},{name:"$avg",value:"$avg",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$bottom",value:"$bottom",score:1,meta:"accumulator:bottom-n",version:"5.2.0"},{name:"$bottomN",value:"$bottomN",score:1,meta:"accumulator:bottom-n",version:"5.2.0"},{name:"$covariancePop",value:"$covariancePop",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$covarianceSamp",value:"$covarianceSamp",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$count",value:"$count",score:1,meta:"accumulator",version:"5.0.0"},{name:"$derivative",value:"$derivative",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$denseRank",value:"$denseRank",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$documentNumber",value:"$documentNumber",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$expMovingAvg",value:"$expMovingAvg",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$first",value:"$first",score:1,meta:"accumulator",version:"2.2.0"},{name:"$firstN",value:"$firstN",score:1,meta:"accumulator",version:"5.1.0"},{name:"$integral",value:"$integral",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$last",value:"$last",score:1,meta:"accumulator",version:"2.2.0"},{name:"$lastN",value:"$lastN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$max",value:"$max",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$maxN",value:"$maxN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$median",value:"$median",score:1,meta:"accumulator",version:"7.0.0"},{name:"$min",value:"$min",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$minN",value:"$minN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$percentile",value:"$percentile",score:1,meta:"accumulator",version:"7.0.0"},{name:"$push",value:"$push",score:1,meta:"accumulator",version:"2.2.0"},{name:"$rank",value:"$rank",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$stdDevPop",value:"$stdDevPop",score:1,meta:"accumulator",version:"3.2.0",projectVersion:"3.2.0"},{name:"$stdDevSamp",value:"$stdDevSamp",score:1,meta:"accumulator",version:"3.2.0",projectVersion:"3.2.0"},{name:"$shift",value:"$shift",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$sum",value:"$sum",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$top",value:"$top",score:1,meta:"accumulator:top-n",version:"5.2.0"},{name:"$topN",value:"$topN",score:1,meta:"accumulator:top-n",version:"5.2.0"},{name:"$locf",value:"$locf",score:1,meta:"accumulator:window",version:"5.3.0"},{name:"$linearFill",value:"$linearFill",score:1,meta:"accumulator:window",version:"5.3.0"}]},3449:(e,t,n)=>{const r=n(40289);e.exports=(e,t,n)=>r(e,t,n)<0},3794:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SYSTEM_VARIABLES=void 0,t.SYSTEM_VARIABLES=[{name:"$$NOW",value:"$$NOW",score:1,meta:"variable:system",version:"4.2.0",description:"A variable that returns the current datetime value. NOW returns the same value for all members of the deployment and remains the same throughout all stages of the aggregation pipeline."},{name:"$$CLUSTER_TIME",value:"$$CLUSTER_TIME",score:1,meta:"variable:system",version:"4.2.0",description:"A variable that returns the current timestamp value. CLUSTER_TIME is only available on replica sets and sharded clusters. CLUSTER_TIME returns the same value for all members of the deployment and remains the same throughout all stages of the pipeline."},{name:"$$ROOT",value:"$$ROOT",score:1,meta:"variable:system",version:"2.4.0",description:"References the root document, i.e. the top-level document, currently being processed in the aggregation pipeline stage."},{name:"$$CURRENT",value:"$$CURRENT",score:1,meta:"variable:system",version:"2.4.0",description:"References the start of the field path being processed in the aggregation pipeline stage. Unless documented otherwise, all stages start with CURRENT the same as ROOT. CURRENT is modifiable. However, since `$<field>` is equivalent to `$$CURRENT.<field>`, rebinding CURRENT changes the meaning of `$` accesses."},{name:"$$REMOVE",value:"$$REMOVE",score:1,meta:"variable:system",version:"3.6.0",description:"A variable which evaluates to the missing value. Allows for the conditional exclusion of fields. In a `$project`, a field set to the variable REMOVE is excluded from the output."},{name:"$$DESCEND",value:"$$DESCEND",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$PRUNE",value:"$$PRUNE",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$KEEP",value:"$$KEEP",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$SEARCH_META",value:"$$SEARCH_META",score:1,meta:"variable:system",version:"5.0.0",description:"A variable that stores the metadata results of an Atlas Search query. In all supported aggregation pipeline stages, a field set to the variable SEARCH_META returns the metadata results for the query. For an example of its usage, see Atlas Search facet and count."},{name:"$$USER_ROLES",value:"$$USER_ROLES",score:1,meta:"variable:system",version:"7.0.0",description:"A variable that stores the role names of the authenticated user running the command."}]},4292:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},4496:(e,t,n)=>{const r=n(50066);e.exports=(e,t)=>new r(e,t).minor},5081:(e,t,n)=>{const r=n(66283),a=n(38366);e.exports=(e,t,n)=>{let s=null,i=null,o=null;try{o=new a(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},5286:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),a=t.test(n);return r&&a&&(e=+e,n=+n),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},5698:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BSON_TYPE_ALIASES=void 0,t.BSON_TYPE_ALIASES=[{name:"double",value:"double",label:"double",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"string",value:"string",label:"string",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"object",value:"object",label:"object",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"array",value:"array",label:"array",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"binData",value:"binData",label:"binData",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"objectId",value:"objectId",label:"objectId",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"bool",value:"bool",label:"bool",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"date",value:"date",label:"date",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"null",value:"null",label:"null",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"double",value:"double",label:"double",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"regex",value:"regex",label:"regex",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"javascript",value:"javascript",label:"javascript",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"javascriptWithScope",value:"javascriptWithScope",label:"javascriptWithScope",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"int",value:"int",label:"int",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"timestamp",value:"timestamp",label:"timestamp",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"long",value:"long",label:"long",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"decimal",value:"decimal",label:"decimal",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"minKey",value:"minKey",label:"minKey",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"maxKey",value:"maxKey",label:"maxKey",score:1,meta:"bson-type-aliases",version:"3.6.0"}]},5992:(e,t,n)=>{const r=n(99385);e.exports=(e,t,n)=>r(e,t,"<",n)},8117:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_CONSTANTS=void 0,t.createConstantFilter=f,t.wrapField=function(e,t=!1){return t||!function(e){if(/[.\s"'()[\];={}:]/.test(e))return!1;try{return new Function(`"use strict";let _ = { ${e}: 0 };`),!0}catch{return!1}}(e)?`"${e.replace(/["\\]/g,"\\$&")}"`:e},t.getFilteredCompletions=function(e={},n=t.ALL_CONSTANTS){const{serverVersion:r=d,fields:a=[],meta:s,stage:i}=e,o=f({serverVersion:r,meta:s,stage:i});return n.concat(a.flatMap((e=>{const{value:t,description:n}=function(e){return"string"==typeof e?{value:e}:{value:e.name,description:e.description}}(e);return[{value:t,meta:"field:identifier",version:"0.0.0",description:n},{value:`$${t}`,meta:"field:reference",version:"0.0.0",description:n}]}))).filter((e=>o(e)))};const r=n(51699),a=n(3012),s=n(91871),i=n(77973),o=n(80003),l=n(30797),c=n(17497),u=n(60679),m=n(99625),p=n(71174);t.ALL_CONSTANTS=[...a.ACCUMULATORS,...i.BSON_TYPES,...s.BSON_TYPE_ALIASES,...o.CONVERSION_OPERATORS,...l.EXPRESSION_OPERATORS,...c.JSON_SCHEMA,...u.QUERY_OPERATORS,...m.STAGE_OPERATORS,...p.SYSTEM_VARIABLES];const d="999.999.999";function h(e,t){return void 0===e||void 0===t||(e=Array.isArray(e)?e:[e]).some((e=>t.includes(e)))}function f({meta:e,serverVersion:t=d,stage:n={}}={}){const a=/^(?<version>\d+\.\d+\.\d+)/.exec(t)?.groups?.version??d;return({version:t,meta:s,env:i,namespaces:o,apiVersions:l})=>function(e,t){const n=/^\d+\.\d+\.\d+$/.test(t);return(0,r.satisfies)(e,n?`>=${t}`:t)}(a,t)&&h(n.env,i)&&h(n.namespace,o)&&h(n.apiVersion,l)&&(!e||function(e,t){const n=t.split(":");return e.some((e=>{const t=e.split(":");return t.length===n.length&&t.every(((e,t)=>"*"===e||e===n[t]))}))}(e,s))}},8573:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},8999:(e,t,n)=>{const r=n(48381),a=n(20332);e.exports=(e,t,n)=>{let s=null,i=null,o=null;try{o=new a(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},9331:(e,t,n)=>{const r=n(50066);e.exports=(e,t,n)=>{const a=new r(e,n),s=new r(t,n);return a.compare(s)||a.compareBuild(s)}},9350:(e,t,n)=>{const r=n(52378),{MAX_LENGTH:a,MAX_SAFE_INTEGER:s}=n(28892),{safeRe:i,t:o}=n(68752),l=n(34773),{compareIdentifiers:c}=n(80661);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[o.LOOSE]:i[o.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],a=e.build[t];if(r("build compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[o.PRERELEASELOOSE]:i[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},9418:(e,t,n)=>{const r=n(40289);e.exports=(e,t,n)=>r(e,t,n)<=0},9426:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.executeAST=void 0;const r=n(40426),a=(e,t)=>{switch(e.callee.type){case"Identifier":{const n=(0,r.getScopeFunction)(e.callee.name,t),a=e.arguments.map((e=>s(e)));return n.apply(n,a)}case"MemberExpression":{const t="Identifier"===e.callee.object.type?(0,r.getClass)(e.callee.object.name):s(e.callee.object),n="Identifier"===e.callee.property.type&&e.callee.property.name;if(!n)throw new Error("Expected CallExpression property to be an identifier");const a=e.arguments.map((e=>s(e)));return t[n](...a)}default:throw new Error("Should not evaluate invalid expressions")}},s=e=>{switch(e?.type){case"Identifier":if(Object.prototype.hasOwnProperty.call(r.GLOBALS,e.name))return r.GLOBALS[e.name];throw new Error(`${e.name} is not a valid Identifier`);case"Literal":return e.value;case"UnaryExpression":return(e=>{if(!e.prefix)throw new Error("Malformed UnaryExpression");switch(e.operator){case"-":return-s(e.argument);case"+":return+s(e.argument);case"!":return!s(e.argument);case"~":return~s(e.argument);default:throw new Error(`Invalid UnaryExpression Provided: '${e.operator}'`)}})(e);case"BinaryExpression":return(e=>{const{left:t,right:n}=e;switch(e.operator){case"==":return s(t)==s(n);case"!=":return s(t)!=s(n);case"===":return s(t)===s(n);case"!==":return s(t)!==s(n);case"<":return s(t)<s(n);case"<=":return s(t)<=s(n);case">":return s(t)>s(n);case">=":return s(t)>=s(n);case"<<":return s(t)<<s(n);case">>":return s(t)>>s(n);case">>>":return s(t)>>>s(n);case"+":return s(t)+s(n);case"-":return s(t)-s(n);case"*":return s(t)*s(n);case"/":return s(t)/s(n);case"%":return s(t)%s(n);case"**":return s(t)**s(n);case"|":return s(t)|s(n);case"^":return s(t)^s(n);case"&":return s(t)&s(n);case"in":return s(t)in s(n);case"instanceof":return s(t)instanceof s(n);default:throw new Error(`Invalid BinaryExpression Provided: '${String(e.operator)}'`)}})(e);case"ArrayExpression":return e.elements.map((e=>s(e)));case"CallExpression":return a(e,!1);case"NewExpression":return a(e,!0);case"ObjectExpression":{const t=Object.create(null);for(const n of e.properties)"key"in n&&(t["Identifier"===n.key.type?n.key.name:s(n.key)]=s(n.value));return{...t}}case"FunctionExpression":case"ArrowFunctionExpression":return(e=>{const t=e.loc?.source||"",n=e.range||[];return t.slice(n[0],n[1])})(e);default:throw new Error}};t.executeAST=e=>{if("Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type)return s(e.body[0].expression);throw new Error("Invalid AST Found")}},9480:(e,t,n)=>{const r=n(71333);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},9703:(e,t,n)=>{const r=n(59441);e.exports=(e,t)=>{const n=r(e,null,!0),a=r(t,null,!0),s=n.compare(a);if(0===s)return null;const i=s>0,o=i?n:a,l=i?a:n,c=!!o.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(o))return l.minor&&!l.patch?"minor":"patch"}const u=c?"pre":"";return n.major!==a.major?u+"major":n.minor!==a.minor?u+"minor":n.patch!==a.patch?u+"patch":"prerelease"}},9750:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checkTree=void 0;const r=n(40426);class a{constructor(e){this.options=e,this.checkSafeCall=e=>{const t=this.options.allowMethods;if("Identifier"===e.callee.type)return r.GLOBAL_FUNCTIONS.indexOf(e.callee.name)>=0&&e.arguments.every(this.checkSafeExpression);if(t&&"MemberExpression"===e.callee.type){const t=e.callee.object,n=e.callee.property;if("Identifier"===t.type&&"Identifier"===n.type)return(0,r.isMethodWhitelisted)(t.name,n.name)&&e.arguments.every(this.checkSafeExpression);if("NewExpression"!==t.type&&"CallExpression"!==t.type||"Identifier"!==t.callee.type)return this.checkSafeExpression(t)&&e.arguments.every(this.checkSafeExpression);{const a=t.callee;return(0,r.isMethodWhitelisted)(a.name,n.name)&&e.arguments.every(this.checkSafeExpression)}}return!1},this.checkSafeExpression=e=>{switch(e?.type){case"Identifier":return Object.prototype.hasOwnProperty.call(r.GLOBALS,e.name);case"Literal":return!0;case"ArrayExpression":return e.elements.every(this.checkSafeExpression);case"UnaryExpression":return this.checkSafeExpression(e.argument);case"BinaryExpression":return this.checkSafeExpression(e.left)&&this.checkSafeExpression(e.right);case"CallExpression":case"NewExpression":return this.checkSafeCall(e);case"ObjectExpression":return e.properties.every((e=>!("computed"in e&&e.computed||"method"in e&&e.method)&&!(!("key"in e)||!["Literal","Identifier"].includes(e.key.type))&&"value"in e&&(["FunctionExpression","ArrowFunctionExpression"].includes(e.value.type)||this.checkSafeExpression(e.value))));default:return!1}}}}t.checkTree=(e,t)=>"Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type&&new a(t).checkSafeExpression(e.body[0].expression)},9895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapField=t.getFilteredCompletions=void 0,a(n(62280),t),a(n(63547),t),a(n(85665),t),a(n(48543),t),a(n(97008),t),a(n(58313),t),a(n(13821),t),a(n(59588),t),a(n(46699),t),a(n(71925),t),a(n(3794),t),a(n(95831),t);var s=n(44601);Object.defineProperty(t,"getFilteredCompletions",{enumerable:!0,get:function(){return s.getFilteredCompletions}}),Object.defineProperty(t,"wrapField",{enumerable:!0,get:function(){return s.wrapField}}),a(n(10111),t),a(n(64757),t)},10017:(e,t,n)=>{const r=n(34219);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},10036:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_PIPELINE_UTILS=void 0;const a=r(n(41738)),s="8.0.0",i="8.1.0";t.VIEW_PIPELINE_UTILS={MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_DE:s,MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_COMPASS:i,isPipelineSearchQueryable:e=>{for(const t of e){const e=Object.keys(t)[0];if("$addFields"!==e&&"$set"!==e&&"$match"!==e)return!1;if("$match"===e){const e=t.$match,n=Object.keys(e||{});if(1!==n.length||!n.includes("$expr"))return!1}}return!0},isVersionSearchCompatibleForViewsDataExplorer:e=>{try{return a.default.gte(e,s)}catch{return!1}},isVersionSearchCompatibleForViewsCompass:e=>{try{return a.default.gte(e,i)}catch{return!1}}}},10094:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QUERY_OPERATORS=void 0,t.QUERY_OPERATORS=[{name:"$all",value:"$all",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$and",value:"$and",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$bitsAllClear",value:"$bitsAllClear",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAllSet",value:"$bitsAllSet",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAnyClear",value:"$bitsAnyClear",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAnySet",value:"$bitsAnySet",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$comment",value:"$comment",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$elemMatch",value:"$elemMatch",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$eq",value:"$eq",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$exists",value:"$exists",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$expr",value:"$expr",score:1,meta:"query",version:"3.6.0",geospatial:!1},{name:"$geoIntersects",value:"$geoIntersects",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$geoWithin",value:"$geoWithin",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$gt",value:"$gt",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$gte",value:"$gte",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$in",value:"$in",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$jsonSchema",value:"$jsonSchema",score:1,meta:"query",version:"3.6.0",geospatial:!1},{name:"$lt",value:"$lt",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$lte",value:"$lte",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$mod",value:"$mod",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$ne",value:"$ne",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$near",value:"$near",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$nearSphere",value:"$nearSphere",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$nin",value:"$nin",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$not",value:"$not",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$nor",value:"$nor",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$or",value:"$or",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$regex",value:"$regex",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$size",value:"$size",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$slice",value:"$slice",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$text",value:"$text",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$type",value:"$type",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$where",value:"$where",score:1,meta:"query",version:"2.2.0",geospatial:!1}]},10111:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ATLAS_VECTOR_SEARCH_TEMPLATE=t.ATLAS_SEARCH_TEMPLATES=void 0,t.ATLAS_SEARCH_TEMPLATES=[{name:"Dynamic field mappings",snippet:'{\n "mappings": {\n "dynamic": true\n }\n}',version:"4.4.0"},{name:"Static field mappings",snippet:'{\n "mappings": {\n "dynamic": false,\n "fields": {\n ${1:<string field name>}: {\n "type": "string"\n },\n ${2:<number field name>}: {\n "type": "number"\n },\n ${3:<date field name>}: {\n "type": "date"\n },\n ${4:<geo field name>}: {\n "type": "geo"\n },\n } \n }\n}',version:"4.4.0"},{name:"Text field mappings",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<string field name>}: [\n {\n // Enables text queries\n "type": "string"\n },\n {\n // Enables autocomplete queries\n "type": "autocomplete"\n \n },\n {\n // Enables sorting\n "type": "token"\n }\n ] \n } \n }\n}',version:"4.4.0"},{name:"Facet field mappings",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<number field name for faceting>}: [\n {\n "type": "numberFacet"\n },\n {\n "type": "number"\n },\n ],\n ${2:<date field name for faceting>}: [\n {\n "type": "dateFacet"\n }\n {\n "type": "date"\n }\n ],\n ${3:<string field name for faceting>}: [\n {\n "type": "stringFacet"\n },\n {\n "type": "string",\n "analyzer": "lucene.keyword"\n },\n ],\n } \n }\n}',version:"4.4.0"},{name:"KNN Vector field mapping",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<vector embedding field name>}: [\n {\n "type": "knnVector",\n "dimensions": ${2:<number of dimensions>},\n "similarity": "${3:<euclidean | cosine | dotProduct>}"\n } \n ] \n } \n }\n}',version:"4.4.0"}],t.ATLAS_VECTOR_SEARCH_TEMPLATE={name:"Vector Search default template",snippet:'{\n "fields": [{\n "type": "vector",\n "path": "${1:<field name to index>}",\n "numDimensions": ${2:<number of dimensions>},\n "similarity": "${3:<euclidean | cosine | dotProduct>}"\n }]\n}',version:"4.4.0"}},10282:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SYSTEM_VARIABLES=void 0,t.SYSTEM_VARIABLES=[{name:"$$NOW",value:"$$NOW",score:1,meta:"variable:system",version:"4.2.0",description:"A variable that returns the current datetime value. NOW returns the same value for all members of the deployment and remains the same throughout all stages of the aggregation pipeline."},{name:"$$CLUSTER_TIME",value:"$$CLUSTER_TIME",score:1,meta:"variable:system",version:"4.2.0",description:"A variable that returns the current timestamp value. CLUSTER_TIME is only available on replica sets and sharded clusters. CLUSTER_TIME returns the same value for all members of the deployment and remains the same throughout all stages of the pipeline."},{name:"$$ROOT",value:"$$ROOT",score:1,meta:"variable:system",version:"2.4.0",description:"References the root document, i.e. the top-level document, currently being processed in the aggregation pipeline stage."},{name:"$$CURRENT",value:"$$CURRENT",score:1,meta:"variable:system",version:"2.4.0",description:"References the start of the field path being processed in the aggregation pipeline stage. Unless documented otherwise, all stages start with CURRENT the same as ROOT. CURRENT is modifiable. However, since `$<field>` is equivalent to `$$CURRENT.<field>`, rebinding CURRENT changes the meaning of `$` accesses."},{name:"$$REMOVE",value:"$$REMOVE",score:1,meta:"variable:system",version:"3.6.0",description:"A variable which evaluates to the missing value. Allows for the conditional exclusion of fields. In a `$project`, a field set to the variable REMOVE is excluded from the output."},{name:"$$DESCEND",value:"$$DESCEND",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$PRUNE",value:"$$PRUNE",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$KEEP",value:"$$KEEP",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$SEARCH_META",value:"$$SEARCH_META",score:1,meta:"variable:system",version:"5.0.0",description:"A variable that stores the metadata results of an Atlas Search query. In all supported aggregation pipeline stages, a field set to the variable SEARCH_META returns the metadata results for the query. For an example of its usage, see Atlas Search facet and count."},{name:"$$USER_ROLES",value:"$$USER_ROLES",score:1,meta:"variable:system",version:"7.0.0",description:"A variable that stores the role names of the authenticated user running the command."}]},10760:(e,t,n)=>{const r=n(85216);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},10933:(e,t,n)=>{const r=n(48381),a=n(20332);e.exports=(e,t,n)=>{let s=null,i=null,o=null;try{o=new a(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},11420:(e,t,n)=>{const r=n(48381);e.exports=(e,t,n,a,s)=>{"string"==typeof n&&(s=a,a=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,a,s).version}catch(e){return null}}},11742:(e,t,n)=>{const r=n(72857);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},11818:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParseMode=void 0,t.parse=o;const r=n(84537),a=n(72702),s=n(66010),i=n(19940);function o(e,t){const n=(0,i.buildOptions)(t),{hasComments:o,ast:l}=function(e){let t=!1;return{ast:(0,r.parse)(e,{ecmaVersion:6,onComment:()=>t=!0,locations:!0,ranges:!0,sourceFile:e}),hasComments:t}}(`(\n${e}\n)`);return o&&!n.allowComments||!(0,a.checkTree)(l,n)?"":(0,s.executeAST)(l)}Object.defineProperty(t,"ParseMode",{enumerable:!0,get:function(){return i.ParseMode}}),t.default=o},12815:(e,t,n)=>{const r=n(50066);e.exports=(e,t)=>new r(e,t).major},12876:(e,t,n)=>{const r=n(72857);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},13012:(e,t,n)=>{const r=n(99597);e.exports=(e,t,n)=>r(e,t,"<",n)},13016:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},13559:(e,t,n)=>{const r=n(48381),a=n(34219),{safeRe:s,t:i}=n(92625);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?s[i.COERCERTLFULL]:s[i.COERCERTL];let a;for(;(a=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&a.index+a[0].length===n.index+n[0].length||(n=a),r.lastIndex=a.index+a[1].length+a[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?s[i.COERCEFULL]:s[i.COERCE]);if(null===n)return null;const o=n[2],l=n[3]||"0",c=n[4]||"0",u=t.includePrerelease&&n[5]?`-${n[5]}`:"",m=t.includePrerelease&&n[6]?`+${n[6]}`:"";return a(`${o}.${l}.${c}${u}${m}`,t)}},13821:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_SCHEMA=void 0,t.JSON_SCHEMA=[{name:"bsonType",value:"bsonType",label:"bsonType",score:1,meta:"json-schema",version:"3.6.0",description:"Accepts same string aliases used for the $type operator"},{name:"enum",value:"enum",label:"enum",score:1,meta:"json-schema",version:"3.6.0",description:"Enumerates all possible values of the field"},{name:"type",value:"type",label:"type",score:1,meta:"json-schema",version:"3.6.0",description:"Enumerates the possible JSON types of the field"},{name:"allOf",value:"allOf",label:"allOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match all specified schemas"},{name:"anyOf",value:"anyOf",label:"anyOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match at least one of the specified schemas"},{name:"oneOf",value:"oneOf",label:"oneOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match exactly one of the specified schemas"},{name:"not",value:"not",label:"not",score:1,meta:"json-schema",version:"3.6.0",description:"Field must not match the schema"},{name:"multipleOf",value:"multipleOf",label:"multipleOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must be a multiple of this value"},{name:"maximum",value:"maximum",label:"maximum",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum value of the field"},{name:"exclusiveMaximum",value:"exclusiveMaximum",label:"exclusiveMaximum",score:1,meta:"json-schema",version:"3.6.0",description:"If true and field is a number, maximum is an exclusive maximum"},{name:"minimum",value:"minimum",label:"minimum",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum value of the field"},{name:"exclusiveMinimum",value:"exclusiveMinimum",label:"exclusiveMinimum",score:1,meta:"json-schema",version:"3.6.0",description:"If true, minimum is an exclusive minimum"},{name:"maxLength",value:"maxLength",label:"maxLength",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum length of the field"},{name:"minLength",value:"minLength",label:"minLength",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum length of the field"},{name:"pattern",value:"pattern",label:"pattern",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match the regular expression"},{name:"maxProperties",value:"maxProperties",label:"maxProperties",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the field’s maximum number of properties"},{name:"minProperties",value:"minProperties",label:"minProperties",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the field’s minimum number of properties"},{name:"required",value:"required",label:"required",score:1,meta:"json-schema",version:"3.6.0",description:"Object’s property set must contain all the specified elements in the array"},{name:"additionalProperties",value:"additionalProperties",label:"additionalProperties",score:1,meta:"json-schema",version:"3.6.0",description:"If true, additional fields are allowed"},{name:"properties",value:"properties",label:"properties",score:1,meta:"json-schema",version:"3.6.0",description:"A valid JSON Schema where each value is also a valid JSON Schema object"},{name:"patternProperties",value:"patternProperties",label:"patternProperties",score:1,meta:"json-schema",version:"3.6.0",description:"In addition to properties requirements, each property name of this object must be a valid regular expression"},{name:"dependencies",value:"dependencies",label:"dependencies",score:1,meta:"json-schema",version:"3.6.0",description:"Describes field or schema dependencies"},{name:"additionalItems",value:"additionalItems",label:"additionalItems",score:1,meta:"json-schema",version:"3.6.0",description:"If an object, must be a valid JSON Schema"},{name:"items",value:"items",label:"items",score:1,meta:"json-schema",version:"3.6.0",description:"Must be either a valid JSON Schema, or an array of valid JSON Schemas"},{name:"maxItems",value:"maxItems",label:"maxItems",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum length of array"},{name:"minItems",value:"minItems",label:"minItems",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum length of array"},{name:"uniqueItems",value:"uniqueItems",label:"uniqueItems",score:1,meta:"json-schema",version:"3.6.0",description:"If true, each item in the array must be unique"},{name:"title",value:"title",label:"title",score:1,meta:"json-schema",version:"3.6.0",description:"A descriptive title string with no effect"},{name:"description",value:"description",label:"description",score:1,meta:"json-schema",version:"3.6.0",description:"A string that describes the schema and has no effect."}]},14387:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.executeAST=void 0;const r=n(83617),a=(e,t)=>{switch(e.callee.type){case"Identifier":{const n=(0,r.getScopeFunction)(e.callee.name,t),a=e.arguments.map((e=>s(e)));return n.apply(n,a)}case"MemberExpression":{const t="Identifier"===e.callee.object.type?(0,r.getClass)(e.callee.object.name):s(e.callee.object),n="Identifier"===e.callee.property.type&&e.callee.property.name;if(!n)throw new Error("Expected CallExpression property to be an identifier");const a=e.arguments.map((e=>s(e)));return t[n](...a)}default:throw new Error("Should not evaluate invalid expressions")}},s=e=>{switch(e?.type){case"Identifier":if(Object.prototype.hasOwnProperty.call(r.GLOBALS,e.name))return r.GLOBALS[e.name];throw new Error(`${e.name} is not a valid Identifier`);case"Literal":return e.value;case"UnaryExpression":return(e=>{if(!e.prefix)throw new Error("Malformed UnaryExpression");switch(e.operator){case"-":return-s(e.argument);case"+":return+s(e.argument);case"!":return!s(e.argument);case"~":return~s(e.argument);default:throw new Error(`Invalid UnaryExpression Provided: '${e.operator}'`)}})(e);case"BinaryExpression":return(e=>{const{left:t,right:n}=e;switch(e.operator){case"==":return s(t)==s(n);case"!=":return s(t)!=s(n);case"===":return s(t)===s(n);case"!==":return s(t)!==s(n);case"<":return s(t)<s(n);case"<=":return s(t)<=s(n);case">":return s(t)>s(n);case">=":return s(t)>=s(n);case"<<":return s(t)<<s(n);case">>":return s(t)>>s(n);case">>>":return s(t)>>>s(n);case"+":return s(t)+s(n);case"-":return s(t)-s(n);case"*":return s(t)*s(n);case"/":return s(t)/s(n);case"%":return s(t)%s(n);case"**":return s(t)**s(n);case"|":return s(t)|s(n);case"^":return s(t)^s(n);case"&":return s(t)&s(n);case"in":return s(t)in s(n);case"instanceof":return s(t)instanceof s(n);default:throw new Error(`Invalid BinaryExpression Provided: '${String(e.operator)}'`)}})(e);case"ArrayExpression":return e.elements.map((e=>s(e)));case"CallExpression":return a(e,!1);case"NewExpression":return a(e,!0);case"ObjectExpression":{const t=Object.create(null);for(const n of e.properties)"key"in n&&(t["Identifier"===n.key.type?n.key.name:s(n.key)]=s(n.value));return{...t}}case"FunctionExpression":case"ArrowFunctionExpression":return(e=>{const t=e.loc?.source||"",n=e.range||[];return t.slice(n[0],n[1])})(e);default:throw new Error}};t.executeAST=e=>{if("Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type)return s(e.body[0].expression);throw new Error("Invalid AST Found")}},14597:(e,t,n)=>{t.X6=void 0,t.qg=o;const r=n(84537),a=n(31993),s=n(42103),i=n(23751);function o(e,t){const n=(0,i.buildOptions)(t),{hasComments:o,ast:l}=function(e){let t=!1;return{ast:(0,r.parse)(e,{ecmaVersion:6,onComment:()=>t=!0,locations:!0,ranges:!0,sourceFile:e}),hasComments:t}}(`(\n${e}\n)`);return o&&!n.allowComments||!(0,a.checkTree)(l,n)?"":(0,s.executeAST)(l)}Object.defineProperty(t,"X6",{enumerable:!0,get:function(){return i.ParseMode}}),t.Ay=o},15011:(e,t,n)=>{const r=n(20332);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},15144:(e,t,n)=>{const r=n(83586);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},15160:(e,t,n)=>{const r=n(9350),a=n(33629);e.exports=(e,t,n)=>{let s=null,i=null,o=null;try{o=new a(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},15580:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ATLAS_VECTOR_SEARCH_TEMPLATE=t.ATLAS_SEARCH_TEMPLATES=void 0,t.ATLAS_SEARCH_TEMPLATES=[{name:"Dynamic field mappings",snippet:'{\n "mappings": {\n "dynamic": true\n }\n}',version:"4.4.0"},{name:"Static field mappings",snippet:'{\n "mappings": {\n "dynamic": false,\n "fields": {\n ${1:<string field name>}: {\n "type": "string"\n },\n ${2:<number field name>}: {\n "type": "number"\n },\n ${3:<date field name>}: {\n "type": "date"\n },\n ${4:<geo field name>}: {\n "type": "geo"\n },\n } \n }\n}',version:"4.4.0"},{name:"Text field mappings",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<string field name>}: [\n {\n // Enables text queries\n "type": "string"\n },\n {\n // Enables autocomplete queries\n "type": "autocomplete"\n \n },\n {\n // Enables sorting\n "type": "token"\n }\n ] \n } \n }\n}',version:"4.4.0"},{name:"Facet field mappings",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<number field name for faceting>}: [\n {\n "type": "numberFacet"\n },\n {\n "type": "number"\n },\n ],\n ${2:<date field name for faceting>}: [\n {\n "type": "dateFacet"\n }\n {\n "type": "date"\n }\n ],\n ${3:<string field name for faceting>}: [\n {\n "type": "stringFacet"\n },\n {\n "type": "string",\n "analyzer": "lucene.keyword"\n },\n ],\n } \n }\n}',version:"4.4.0"},{name:"KNN Vector field mapping",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<vector embedding field name>}: [\n {\n "type": "knnVector",\n "dimensions": ${2:<number of dimensions>},\n "similarity": "${3:<euclidean | cosine | dotProduct>}"\n } \n ] \n } \n }\n}',version:"4.4.0"}],t.ATLAS_VECTOR_SEARCH_TEMPLATE={name:"Vector Search default template",snippet:'{\n "fields": [{\n "type": "vector",\n "path": "${1:<field name to index>}",\n "numDimensions": ${2:<number of dimensions>},\n "similarity": "${3:<euclidean | cosine | dotProduct>}"\n }]\n}',version:"4.4.0"}},15844:(e,t,n)=>{const r=n(60501);e.exports=(e,t,n)=>r(e,t,n)>=0},17497:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_SCHEMA=void 0,t.JSON_SCHEMA=[{name:"bsonType",value:"bsonType",label:"bsonType",score:1,meta:"json-schema",version:"3.6.0",description:"Accepts same string aliases used for the $type operator"},{name:"enum",value:"enum",label:"enum",score:1,meta:"json-schema",version:"3.6.0",description:"Enumerates all possible values of the field"},{name:"type",value:"type",label:"type",score:1,meta:"json-schema",version:"3.6.0",description:"Enumerates the possible JSON types of the field"},{name:"allOf",value:"allOf",label:"allOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match all specified schemas"},{name:"anyOf",value:"anyOf",label:"anyOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match at least one of the specified schemas"},{name:"oneOf",value:"oneOf",label:"oneOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match exactly one of the specified schemas"},{name:"not",value:"not",label:"not",score:1,meta:"json-schema",version:"3.6.0",description:"Field must not match the schema"},{name:"multipleOf",value:"multipleOf",label:"multipleOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must be a multiple of this value"},{name:"maximum",value:"maximum",label:"maximum",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum value of the field"},{name:"exclusiveMaximum",value:"exclusiveMaximum",label:"exclusiveMaximum",score:1,meta:"json-schema",version:"3.6.0",description:"If true and field is a number, maximum is an exclusive maximum"},{name:"minimum",value:"minimum",label:"minimum",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum value of the field"},{name:"exclusiveMinimum",value:"exclusiveMinimum",label:"exclusiveMinimum",score:1,meta:"json-schema",version:"3.6.0",description:"If true, minimum is an exclusive minimum"},{name:"maxLength",value:"maxLength",label:"maxLength",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum length of the field"},{name:"minLength",value:"minLength",label:"minLength",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum length of the field"},{name:"pattern",value:"pattern",label:"pattern",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match the regular expression"},{name:"maxProperties",value:"maxProperties",label:"maxProperties",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the field’s maximum number of properties"},{name:"minProperties",value:"minProperties",label:"minProperties",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the field’s minimum number of properties"},{name:"required",value:"required",label:"required",score:1,meta:"json-schema",version:"3.6.0",description:"Object’s property set must contain all the specified elements in the array"},{name:"additionalProperties",value:"additionalProperties",label:"additionalProperties",score:1,meta:"json-schema",version:"3.6.0",description:"If true, additional fields are allowed"},{name:"properties",value:"properties",label:"properties",score:1,meta:"json-schema",version:"3.6.0",description:"A valid JSON Schema where each value is also a valid JSON Schema object"},{name:"patternProperties",value:"patternProperties",label:"patternProperties",score:1,meta:"json-schema",version:"3.6.0",description:"In addition to properties requirements, each property name of this object must be a valid regular expression"},{name:"dependencies",value:"dependencies",label:"dependencies",score:1,meta:"json-schema",version:"3.6.0",description:"Describes field or schema dependencies"},{name:"additionalItems",value:"additionalItems",label:"additionalItems",score:1,meta:"json-schema",version:"3.6.0",description:"If an object, must be a valid JSON Schema"},{name:"items",value:"items",label:"items",score:1,meta:"json-schema",version:"3.6.0",description:"Must be either a valid JSON Schema, or an array of valid JSON Schemas"},{name:"maxItems",value:"maxItems",label:"maxItems",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum length of array"},{name:"minItems",value:"minItems",label:"minItems",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum length of array"},{name:"uniqueItems",value:"uniqueItems",label:"uniqueItems",score:1,meta:"json-schema",version:"3.6.0",description:"If true, each item in the array must be unique"},{name:"title",value:"title",label:"title",score:1,meta:"json-schema",version:"3.6.0",description:"A descriptive title string with no effect"},{name:"description",value:"description",label:"description",score:1,meta:"json-schema",version:"3.6.0",description:"A string that describes the schema and has no effect."}]},17555:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATION_TEMPLATE=void 0,t.VALIDATION_TEMPLATE='/**\n * This is a starter template for a schema validation rule for a collection.\n * More information on schema validation rules can be found at:\n * https://www.mongodb.com/docs/manual/core/schema-validation/\n */\n{\n $jsonSchema: {\n title: "Library.books",\n bsonType: "object",\n required: ["fieldname1", "fieldname2"],\n properties: {\n fieldname1: {\n bsonType: "string",\n description: "Fieldname1 must be a string",\n },\n fieldname2: {\n bsonType: "int",\n description: "Fieldname2 must be an integer",\n },\n arrayFieldName: {\n bsonType: "array",\n items: {\n bsonType: "string"\n },\n description: "arrayFieldName must be an array of strings"\n },\n }\n }\n}'},17620:(e,t,n)=>{const r=n(32674);e.exports=(e,t,n)=>r(t,e,n)},17624:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATION_TEMPLATE=void 0,t.VALIDATION_TEMPLATE='/**\n * This is a starter template for a schema validation rule for a collection.\n * More information on schema validation rules can be found at:\n * https://www.mongodb.com/docs/manual/core/schema-validation/\n */\n{\n $jsonSchema: {\n title: "Library.books",\n bsonType: "object",\n required: ["fieldname1", "fieldname2"],\n properties: {\n fieldname1: {\n bsonType: "string",\n description: "Fieldname1 must be a string",\n },\n fieldname2: {\n bsonType: "int",\n description: "Fieldname2 must be an integer",\n },\n arrayFieldName: {\n bsonType: "array",\n items: {\n bsonType: "string"\n },\n description: "arrayFieldName must be an array of strings"\n },\n }\n }\n}'},17630:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.toJSString=void 0;const r=n(17230),a=new Map([["[object Array]","Array"],["[object Object]","Object"],["[object String]","String"],["[object Date]","Date"],["[object Number]","Number"],["[object Function]","Function"],["[object RegExp]","RegExp"],["[object Boolean]","Boolean"],["[object Null]","Null"],["[object Undefined]","Undefined"]]);const s={Code:function(e){return e.scope?`Code('${e.code}',${JSON.stringify(e.scope)})`:`Code('${e.code}')`},ObjectID:function(e){return`ObjectId('${e.toString("hex")}')`},ObjectId:function(e){return`ObjectId('${e.toString("hex")}')`},Binary:function(e){const t=e.sub_type;if(4===t&&16===e.buffer.length){let t="";try{t=e.toUUID().toString()}catch{t=e.toString("hex")}return`UUID('${t}')`}return`BinData(${t.toString(10)}, '${e.toString("base64")}')`},DBRef:function(e){return e.db?`DBRef('${e.collection}', '${e.oid.toString()}', '${e.db}')`:`DBRef('${e.collection}', '${e.oid.toString()}')`},Timestamp:function(e){return`Timestamp({ t: ${e.high}, i: ${e.low} })`},Long:function(e){return`NumberLong('${e.toString()}')`},Decimal128:function(e){return`NumberDecimal('${e.toString()}')`},Double:function(e){return`Double('${e.toString()}')`},Int32:function(e){return`NumberInt('${e.toString()}')`},MaxKey:function(){return"MaxKey()"},MinKey:function(){return"MinKey()"},Date:function(e){return s.ISODate(e)},ISODate:function(e){try{return`ISODate('${e.toISOString()}')`}catch(t){return`ISODate('${e.toString()}')`}},RegExp:function(e){let t="",n=!1;return e.global&&(n=!0,t+="g"),e.ignoreCase&&(n=!0,t+="i"),e.multiline&&(n=!0,t+="m"),`RegExp(${JSON.stringify(e.source)}${n?`, '${t}'`:""})`},BSONRegExp:function(e){const t=e.options&&e.options?.length>0;let n="RegExp";try{RegExp(e.pattern,e.options||void 0)}catch{n="BSONRegExp"}return`${n}(${JSON.stringify(e.pattern)}${t?`, '${e.options}'`:""})`}};function i(e,t=2){return(0,r.stringify)(e,(function(e,t,n){const r=function(e){const t=function(e){return a.get(Object.prototype.toString.call(e))}(e),n="Object"===t&&e._bsontype;return{type:n||t,isBSON:!!n}}(e),i=s[r.type];return i?i(e):n(e)}),t)}t.toJSString=i,t.stringify=function(e){return i(e,1)?.replace(/ ?\n ? ?/g,"").replace(/ {2,}/g," ")}},17807:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ACCUMULATORS=void 0,t.ACCUMULATORS=[{name:"$accumulator",value:"$accumulator",score:1,meta:"accumulator",version:"4.4.0"},{name:"$addToSet",value:"$addToSet",score:1,meta:"accumulator",version:"2.2.0"},{name:"$avg",value:"$avg",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$bottom",value:"$bottom",score:1,meta:"accumulator:bottom-n",version:"5.2.0"},{name:"$bottomN",value:"$bottomN",score:1,meta:"accumulator:bottom-n",version:"5.2.0"},{name:"$covariancePop",value:"$covariancePop",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$covarianceSamp",value:"$covarianceSamp",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$count",value:"$count",score:1,meta:"accumulator",version:"5.0.0"},{name:"$derivative",value:"$derivative",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$denseRank",value:"$denseRank",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$documentNumber",value:"$documentNumber",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$expMovingAvg",value:"$expMovingAvg",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$first",value:"$first",score:1,meta:"accumulator",version:"2.2.0"},{name:"$firstN",value:"$firstN",score:1,meta:"accumulator",version:"5.1.0"},{name:"$integral",value:"$integral",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$last",value:"$last",score:1,meta:"accumulator",version:"2.2.0"},{name:"$lastN",value:"$lastN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$max",value:"$max",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$maxN",value:"$maxN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$median",value:"$median",score:1,meta:"accumulator",version:"7.0.0"},{name:"$min",value:"$min",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$minN",value:"$minN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$percentile",value:"$percentile",score:1,meta:"accumulator",version:"7.0.0"},{name:"$push",value:"$push",score:1,meta:"accumulator",version:"2.2.0"},{name:"$rank",value:"$rank",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$stdDevPop",value:"$stdDevPop",score:1,meta:"accumulator",version:"3.2.0",projectVersion:"3.2.0"},{name:"$stdDevSamp",value:"$stdDevSamp",score:1,meta:"accumulator",version:"3.2.0",projectVersion:"3.2.0"},{name:"$shift",value:"$shift",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$sum",value:"$sum",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$top",value:"$top",score:1,meta:"accumulator:top-n",version:"5.2.0"},{name:"$topN",value:"$topN",score:1,meta:"accumulator:top-n",version:"5.2.0"},{name:"$locf",value:"$locf",score:1,meta:"accumulator:window",version:"5.3.0"},{name:"$linearFill",value:"$linearFill",score:1,meta:"accumulator:window",version:"5.3.0"}]},17914:(e,t,n)=>{const r=n(9350);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},17941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_SCHEMA=void 0,t.JSON_SCHEMA=[{name:"bsonType",value:"bsonType",label:"bsonType",score:1,meta:"json-schema",version:"3.6.0",description:"Accepts same string aliases used for the $type operator"},{name:"enum",value:"enum",label:"enum",score:1,meta:"json-schema",version:"3.6.0",description:"Enumerates all possible values of the field"},{name:"type",value:"type",label:"type",score:1,meta:"json-schema",version:"3.6.0",description:"Enumerates the possible JSON types of the field"},{name:"allOf",value:"allOf",label:"allOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match all specified schemas"},{name:"anyOf",value:"anyOf",label:"anyOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match at least one of the specified schemas"},{name:"oneOf",value:"oneOf",label:"oneOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match exactly one of the specified schemas"},{name:"not",value:"not",label:"not",score:1,meta:"json-schema",version:"3.6.0",description:"Field must not match the schema"},{name:"multipleOf",value:"multipleOf",label:"multipleOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must be a multiple of this value"},{name:"maximum",value:"maximum",label:"maximum",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum value of the field"},{name:"exclusiveMaximum",value:"exclusiveMaximum",label:"exclusiveMaximum",score:1,meta:"json-schema",version:"3.6.0",description:"If true and field is a number, maximum is an exclusive maximum"},{name:"minimum",value:"minimum",label:"minimum",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum value of the field"},{name:"exclusiveMinimum",value:"exclusiveMinimum",label:"exclusiveMinimum",score:1,meta:"json-schema",version:"3.6.0",description:"If true, minimum is an exclusive minimum"},{name:"maxLength",value:"maxLength",label:"maxLength",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum length of the field"},{name:"minLength",value:"minLength",label:"minLength",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum length of the field"},{name:"pattern",value:"pattern",label:"pattern",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match the regular expression"},{name:"maxProperties",value:"maxProperties",label:"maxProperties",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the field’s maximum number of properties"},{name:"minProperties",value:"minProperties",label:"minProperties",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the field’s minimum number of properties"},{name:"required",value:"required",label:"required",score:1,meta:"json-schema",version:"3.6.0",description:"Object’s property set must contain all the specified elements in the array"},{name:"additionalProperties",value:"additionalProperties",label:"additionalProperties",score:1,meta:"json-schema",version:"3.6.0",description:"If true, additional fields are allowed"},{name:"properties",value:"properties",label:"properties",score:1,meta:"json-schema",version:"3.6.0",description:"A valid JSON Schema where each value is also a valid JSON Schema object"},{name:"patternProperties",value:"patternProperties",label:"patternProperties",score:1,meta:"json-schema",version:"3.6.0",description:"In addition to properties requirements, each property name of this object must be a valid regular expression"},{name:"dependencies",value:"dependencies",label:"dependencies",score:1,meta:"json-schema",version:"3.6.0",description:"Describes field or schema dependencies"},{name:"additionalItems",value:"additionalItems",label:"additionalItems",score:1,meta:"json-schema",version:"3.6.0",description:"If an object, must be a valid JSON Schema"},{name:"items",value:"items",label:"items",score:1,meta:"json-schema",version:"3.6.0",description:"Must be either a valid JSON Schema, or an array of valid JSON Schemas"},{name:"maxItems",value:"maxItems",label:"maxItems",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum length of array"},{name:"minItems",value:"minItems",label:"minItems",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum length of array"},{name:"uniqueItems",value:"uniqueItems",label:"uniqueItems",score:1,meta:"json-schema",version:"3.6.0",description:"If true, each item in the array must be unique"},{name:"title",value:"title",label:"title",score:1,meta:"json-schema",version:"3.6.0",description:"A descriptive title string with no effect"},{name:"description",value:"description",label:"description",score:1,meta:"json-schema",version:"3.6.0",description:"A string that describes the schema and has no effect."}]},18104:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:s}=n(4292),i=n(72082),o=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],m=t.t={};let p=0;const d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",s],[d,a]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),a=p++;i(e,a,t),m[e]=a,c[a]=t,u[a]=r,o[a]=new RegExp(t,n?"g":void 0),l[a]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${c[m.PRERELEASEIDENTIFIER]}(?:\\.${c[m.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${c[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[m.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${c[m.BUILDIDENTIFIER]}(?:\\.${c[m.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${c[m.MAINVERSION]}${c[m.PRERELEASE]}?${c[m.BUILD]}?`),f("FULL",`^${c[m.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${c[m.MAINVERSIONLOOSE]}${c[m.PRERELEASELOOSE]}?${c[m.BUILD]}?`),f("LOOSE",`^${c[m.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${c[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${c[m.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:${c[m.PRERELEASE]})?${c[m.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:${c[m.PRERELEASELOOSE]})?${c[m.BUILD]}?)?)?`),f("XRANGE",`^${c[m.GTLT]}\\s*${c[m.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${c[m.GTLT]}\\s*${c[m.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),f("COERCE",`${c[m.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",c[m.COERCEPLAIN]+`(?:${c[m.PRERELEASE]})?`+`(?:${c[m.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",c[m.COERCE],!0),f("COERCERTLFULL",c[m.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${c[m.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${c[m.LONETILDE]}${c[m.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${c[m.LONETILDE]}${c[m.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${c[m.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${c[m.LONECARET]}${c[m.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${c[m.LONECARET]}${c[m.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${c[m.GTLT]}\\s*(${c[m.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]}|${c[m.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${c[m.XRANGEPLAIN]})\\s+-\\s+(${c[m.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${c[m.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[m.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},18106:(e,t,n)=>{const r=n(32674);e.exports=(e,t,n)=>r(e,t,n)>0},18157:(e,t,n)=>{const r=n(50066);e.exports=(e,t,n,a,s)=>{"string"==typeof n&&(s=a,a=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,a,s).version}catch(e){return null}}},18578:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParseMode=void 0,t.parse=o;const r=n(84537),a=n(9750),s=n(9426),i=n(95612);function o(e,t){const n=(0,i.buildOptions)(t),{hasComments:o,ast:l}=function(e){let t=!1;return{ast:(0,r.parse)(e,{ecmaVersion:6,onComment:()=>t=!0,locations:!0,ranges:!0,sourceFile:e}),hasComments:t}}(`(\n${e}\n)`);return o&&!n.allowComments||!(0,a.checkTree)(l,n)?"":(0,s.executeAST)(l)}Object.defineProperty(t,"ParseMode",{enumerable:!0,get:function(){return i.ParseMode}}),t.default=o},18894:(e,t,n)=>{const r=n(43301),a=n(77203);e.exports=(e,t,n)=>{const s=[];let i=null,o=null;const l=e.sort(((e,t)=>a(e,t,n)));for(const e of l)r(e,t,n)?(o=e,i||(i=e)):(o&&s.push([i,o]),o=null,i=null);i&&s.push([i,null]);const c=[];for(const[e,t]of s)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),m="string"==typeof t.raw?t.raw:String(t);return u.length<m.length?u:t}},19133:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.REQUIRED_AS_FIRST_STAGE=t.FULL_SCAN_STAGES=t.OUT_STAGES=t.STAGE_OPERATOR_NAMES=t.STAGE_OPERATORS=void 0;const r=n(99352),a=n(37724),s=[{name:"$addFields",value:"$addFields",label:"$addFields",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value.",comment:"/**\n * newField: The new field name.\n * expression: The new field expression.\n */\n",snippet:"{\n ${1:newField}: ${2:expression}, ${3:...}\n}"},{name:"$bucket",value:"$bucket",label:"$bucket",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Categorizes incoming documents into groups, called buckets, based on specified boundaries.",comment:"/**\n * groupBy: The expression to group by.\n * boundaries: An array of the lower boundaries for each bucket.\n * default: The bucket name for documents that do not fall within the specified boundaries\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n */\n",snippet:"{\n groupBy: ${1:expression},\n boundaries: [ ${2:lowerbound}, ${3:...} ],\n default: ${4:literal},\n output: {\n ${5:outputN}: { ${6:accumulator} }, ${7:...}\n }\n}"},{name:"$bucketAuto",value:"$bucketAuto",label:"$bucketAuto",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Automatically categorizes documents into a specified number of buckets, attempting even distribution if possible.",comment:"/**\n * groupBy: The expression to group by.\n * buckets: The desired number of buckets\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n * granularity: Optional number series\n */\n",snippet:"{\n groupBy: ${1:expression},\n buckets: ${2:number},\n output: {\n ${3:outputN}: ${4:accumulator}, ${5:...}\n },\n granularity: '${6:string}'\n}"},{name:"$changeStream",value:"$changeStream",label:"$changeStream",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns a Change Stream cursor for the collection.",comment:"/**\n * allChangesForCluster: Optional boolean to include all changes in the cluster.\n * fullDocument: Optional value to request a copy of full document when modified by update operations (Introduced in 6.0).\n * fullDocumentBeforeChange: Value to configure whether to return a full document before the change or not.\n * resumeAfter: Specifies a resume token as the logical starting point for the change stream. Cannot be used with startAfter or startAtOperationTime fields.\n * showExpandedEvents: Specifies whether to include additional change events, such as such as DDL and index operations (Introduced in 6.0).\n * startAfter: Specifies a resume token as the logical starting point for the change stream. Cannot be used with resumeAfter or startAtOperationTime fields.\n * startAtOperationTime: Specifies a time as the logical starting point for the change stream. Cannot be used with resumeAfter or startAfter fields.\n */\n",snippet:"{\n allChangesForCluster: ${1:boolean},\n fullDocument: '${2:string}',\n fullDocumentBeforeChange: '${3:string}',\n resumeAfter: ${4:resumeToken},\n showExpandedEvents: ${5:boolean},\n startAfter: ${6:resumeToken},\n startAtOperationTime: ${7:time},\n}"},{name:"$collStats",value:"$collStats",label:"$collStats",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[],namespaces:[...a.ANY_COLLECTION_NAMESPACE],description:"Returns statistics regarding a collection or view.",comment:"/**\n * histograms: Optional latency histograms.\n * storageStats: Optional storage stats.\n */\n",snippet:"{\n latencyStats: {\n histograms: ${1:boolean}\n },\n storageStats: {${2:}},\n}"},{name:"$count",value:"$count",label:"$count",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Returns a count of the number of documents at this stage of the aggregation pipeline.",comment:"/**\n * Provide the field name for the count.\n */\n",snippet:"'${1:string}'"},{name:"$currentOp",value:"$currentOp",label:"$currentOp",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.6.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns a cursor over information on active and/or dormant operations for the MongoDB deployment as well as inactive sessions that are holding locks as part of a transaction.",comment:"/**\n * allUsers: Optional boolean value to specify whether to return operations for all users or not.\n * idleConnections: Optional boolean value to specify whether to return all operations including idle connections or not.\n * idleCursors: Optional boolean value to specify whether to report on cursors that are idle or not.\n * idleSessions: Optional boolean value to specify whether to report on dormant sessions or not.\n * localOps: Optional boolean value to specify whether to report on operations running locally on targetted mongos or not.\n * backtrace: Optional boolean value to specify whether callstack information is returned as part of the waitingForLatch output field.\n */\n",snippet:"{\n allUsers: ${1:false},\n idleConnections: ${2:false},\n idleCursors: ${3:false},\n idleSessions: ${4:true},\n localOps: ${5:false},\n backtrace: ${6:false},\n}"},{name:"$densify",value:"$densify",label:"$densify",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.1.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Creates new documents to eliminate the gaps in the time or numeric domain at the required granularity level.",comment:"/**\n * field: The required field to densify.\n * partitionByFields: The set of fields that acts as a compound key to define each partition.\n * range: {\n * step: The amount to increment the field value in each document.\n * unit: If specified field must evaluate to a date for every document in the collection, otherwise must evaluate to a numeric.\n * bounds: A string or array of numeric/date bounds, corresponding to the type of the field.\n * }\n */\n",snippet:"{\n field: ${1:string},\n partitionByFields: [${2:string}, ${3:string}, ...],\n range: {\n step: ${4:number},\n unit: ${5:string},\n bounds: [${6:lowerbound}, ${7:upperbound}, ...]\n }\n}"},{name:"$documents",value:"$documents",label:"$documents",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.4.9",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns literal documents from input values.",comment:"/**\n * expression: Any valid expression.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$facet",value:"$facet",label:"$facet",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Allows for multiple parellel aggregations to be specified.",comment:"/**\n * outputFieldN: The first output field.\n * stageN: The first aggregation stage.\n */\n",snippet:"{\n ${1:outputFieldN}: [ ${2:stageN}, ${3:...} ]\n}"},{name:"$fill",value:"$fill",label:"$fill",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.3.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Populates null and missing field values within documents.",comment:'/**\n * sortBy: Syntax is the same as $sort, required if "method" is used in at least one output spec otherwise optional\n * partitionBy: Optional, default is a single partition. Specification is the same as _id in $group (same as partitionBy in window functions).\n * partitionByFields: Optional, set of fields that acts as a compound key to define each partition.\n * output - Required, object for each field to fill in. For a single field, can be a single object.\n * output.<field> - A field to be filled with value, if missing or null in the current document.\n */\n',snippet:"{\n sortBy: ${1:sortSpec},\n partitionBy: ${2:expression},\n partitionByFields: [${3:string}, ${4:string}, ...],\n output: {\n field1: {value: ${5:expression}},\n field2: {method: ${6:string}},\n ...\n }\n}"},{name:"$geoNear",value:"$geoNear",label:"$geoNear",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Returns documents based on proximity to a geospatial point.",comment:"/**\n * near: The point to search near.\n * distanceField: The calculated distance.\n * maxDistance: The maximum distance, in meters, documents can be before being excluded from results.\n * query: Limits results that match the query\n * includeLocs: Optional. Labels and includes the point used to match the document.\n * num: Optional. The maximum number of documents to return.\n * spherical: Defaults to false. Specifies whether to use spherical geometry.\n */\n",snippet:"{\n near: { type: 'Point', coordinates: [ ${1:number}, ${2:number} ] },\n distanceField: '${3:string}',\n maxDistance: ${4:number},\n query: {${5}},\n includeLocs: '${6}',\n num: ${7:number},\n spherical: ${8:boolean}\n}"},{name:"$graphLookup",value:"$graphLookup",label:"$graphLookup",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Performs a recursive search on a collection.",comment:"/**\n * from: The target collection.\n * startWith: Expression to start.\n * connectFromField: Field to connect.\n * connectToField: Field to connect to.\n * as: Name of the array field.\n * maxDepth: Optional max recursion depth.\n * depthField: Optional Name of the depth field.\n * restrictSearchWithMatch: Optional query.\n */\n",snippet:"{\n from: '${1:string}',\n startWith: ${2:expression},\n connectFromField: '${3:string}',\n connectToField: '${4:string}',\n as: '${5:string}',\n maxDepth: ${6:number},\n depthField: '${7:string}',\n restrictSearchWithMatch: {${8}}\n}"},{name:"$group",value:"$group",label:"$group",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Groups documents by a specified expression.",comment:"/**\n * _id: The id of the group.\n * fieldN: The first field name.\n */\n",snippet:"{\n _id: ${1:expression},\n ${2:fieldN}: {\n ${3:accumulatorN}: ${4:expressionN}\n }\n}"},{name:"$indexStats",value:"$indexStats",label:"$indexStats",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[],namespaces:[...a.ANY_NAMESPACE],description:"Returns statistics regarding the use of each index for the collection.",comment:"/**\n * No parameters.\n */\n",snippet:"{}"},{name:"$limit",value:"$limit",label:"$limit",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Limits the number of documents that flow into subsequent stages.",comment:"/**\n * Provide the number of documents to limit.\n */\n",snippet:"${1:number}"},{name:"$listLocalSessions",value:"$listLocalSessions",label:"$listLocalSessions",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"3.6.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Lists the sessions cached in memory by the mongod or mongos instance.",comment:"/**\n * users: Optional list of users for which local sessions need to be returned.\n * allUsers: Optional boolean value to specify whether to return local sessions for all users or not.\n */\n",snippet:"{\n allUsers: ${1:false},\n users: [\n { user: '${2:string}', db: '${3:string}' }\n ]\n}"},{name:"$lookup",value:"$lookup",label:"$lookup",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Performs a join between two collections.",comment:"/**\n * from: The target collection.\n * localField: The local join field.\n * foreignField: The target join field.\n * as: The name for the results.\n * pipeline: Optional pipeline to run on the foreign collection.\n * let: Optional variables to use in the pipeline field stages.\n */\n",snippet:"{\n from: ${1:collection},\n localField: ${2:field},\n foreignField: ${3:field},\n as: ${4:result}\n}"},{name:"$match",value:"$match",label:"$match",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Filters the document stream to allow only matching documents to pass through to subsequent stages.",comment:"/**\n * query: The query in MQL.\n */\n",snippet:"{\n ${1:query}\n}"},{name:"$merge",value:"$merge",label:"$merge",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"4.1.11",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * into: The target collection.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: '${1:string}',\n on: '${2:string}',\n let: '${3:specification(s)}',\n whenMatched: '${4:string}',\n whenNotMatched: '${5:string}'\n}"},{name:"$merge",value:"$merge",label:"$merge",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ADL],meta:"stage",version:"4.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * atlas: Location to write the documents from the aggregation pipeline.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: {\n atlas: {\n clusterName: '${1:atlasClusterName}',\n db: '${2:database}',\n coll: '${3:collection}',\n projectId: '${4:optionalAtlasProjectId}'\n }\n },\n on: '${5:identifier}',\n let: { ${6:specification(s)} },\n whenMatched: '${7:string}',\n whenNotMatched: '${8:string}'\n}"},{name:"$out",value:"$out",label:"$out",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Writes the result of a pipeline to a new or existing collection.",comment:"/**\n * Provide the name of the output database and collection.\n */\n",snippet:"{\n db: '${1:string}',\n coll: '${2:string}',\n /*\n timeseries: {\n timeField: '${3:field}',\n bucketMaxSpanSeconds: '${4:number}',\n granularity: '${5:granularity}'\n }\n */\n}"},{name:"$out",value:"$out",label:"$out",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ADL],meta:"stage",version:"4.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Writes the result of a pipeline to an Atlas cluster, S3 bucket, or Azure Blob Storage.",comment:"/**\n * Use any one of the following:\n * s3: Parameters to save the data to S3.\n * atlas: Parameters to save the data to Atlas. Example:\n * {\n * atlas: {\n * db: 'string',\n * coll: 'string',\n * projectId: 'string',\n * clusterName: 'string'\n * }\n * },\n * azure: Parameters to save the data to Azure. Example:\n * {\n * azure: {\n * serviceURL: 'string',\n * containerName: 'string',\n * region: 'string,\n * filename: 'string',\n * format: {\n * name: 'string',\n * maxFileSize: 'string',\n * maxRowGroupSize: 'string',\n * columnCompression: 'string'\n * },\n * errorMode: 'string'\n * }\n * }\n */\n",snippet:"{\n s3: {\n bucket: '${1:string}',\n region: '${2:string}',\n filename: '${3:string}',\n format: {\n name: '${4:string}',\n maxFileSize: '${5:bytes}',\n maxRowGroupSize: '${6:string}',\n columnCompression: '${7:string}'\n },\n errorMode: '${8:string}'\n }\n}"},{name:"$project",value:"$project",label:"$project",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields.",comment:"/**\n * specifications: The fields to\n * include or exclude.\n */\n",snippet:"{\n ${1:specification(s)}\n}"},{name:"$rankFusion",value:"$rankFusion",label:"$rankFusion",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"8.0.14",apiVersions:[],namespaces:[a.COLLECTION],description:"Combines multiple pipelines using reciprocal rank fusion to create hybrid search results.",comment:'/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be a Ranked Selection Pipeline operating on the same collection. Minimum of one pipeline.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information in {$meta: "scoreDetails"} for debugging and tuning.\n */\n',snippet:"{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n }\n },\n combination: {\n weights: {\n ${6:searchPipeline}: ${7:number},\n ${8:vectorPipeline}: ${9:number}\n }\n },\n scoreDetails: ${10:false}\n}"},{name:"$redact",value:"$redact",label:"$redact",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.6.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Restricts the content for each document based on information stored in the documents themselves",comment:"/**\n * expression: Any valid expression that\n * evaluates to $$DESCEND, $$PRUNE, or $$KEEP.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$replaceRoot",value:"$replaceRoot",label:"$replaceRoot",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newRoot: ${1:replacementDocument}\n}"},{name:"$replaceWith",value:"$replaceWith",label:"$replaceWith",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newWith: ${1:replacementDocument}\n}"},{name:"$sample",value:"$sample",label:"$sample",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[1],namespaces:[...a.ANY_COLLECTION_NAMESPACE],description:"Randomly selects the specified number of documents from its input.",comment:"/**\n * size: The number of documents to sample.\n */\n",snippet:"{\n size: ${1:number}\n}"},{name:"$scoreFusion",value:"$scoreFusion",label:"$scoreFusion",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"8.2.0",apiVersions:[],namespaces:[a.COLLECTION],description:"Combines multiple pipelines using relative score fusion to create hybrid search results.",comment:"/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be operating on the same collection. Minimum of one pipeline.\n * input.normalization: Required. Normalizes the score to the range 0 to 1 before combining the results. Value can be none, sigmoid or minMaxScaler.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * combination.method: Optional. Specifies method for combining scores. Value can be avg or expression. Default is avg.\n * combination.expression: Optional. This is the custom expression that is used when combination.method is set to expression.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information.\n */\n",snippet:"{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n },\n normalization: '${6:none|sigmoid|minMaxScaler}'\n },\n combination: {\n weights: {\n ${7:searchPipeline}: ${8:number},\n ${9:vectorPipeline}: ${10:number}\n },\n method: '${11:avg|expression}',\n expression: '${12:expression}'\n },\n scoreDetails: ${13:false}\n}"},{name:"$search",value:"$search",label:"$search",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"4.1.11",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a full-text search on the specified field(s).",comment:"/**\n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search. Use matchCriteria to match 'any' or 'all' query terms.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n",snippet:"{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}',\n matchCriteria: '${4:any}',\n }\n}"},{name:"$searchMeta",value:"$searchMeta",label:"$searchMeta",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"4.4.9",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query.",comment:"/**\n * index: The name of the Search index.\n * count: The count of the results.\n * facet: {\n * operator: Analyzed search, with required fields of query and path, can either be replaced with the name of a valid operator.\n * facets: {\n * stringFacet: Narrows search results based on unique string values, with required fields of type and path.\n * numberFacet: Narrows search results by breaking them up into separate ranges of numbers, with required fields of type, path, and boundaries.\n * dateFacet: Narrows search results by breaking them up into separate ranges of dates, with required fields of type, path, and boundaries.\n * }\n * }\n */\n",snippet:"{\n index: ${1:string},\n facet: {\n operator: {\n text: {\n query: ${2:string},\n path: ${3:string}\n }\n },\n facets: {\n ${4:stringFacet}: {\n type: ${5:string},\n path: ${6:string},\n numBuckets: ${7:integer}\n },\n numberFacet: {\n type: 'number',\n path: ${8:string},\n boundaries: [${9:lowerbound}, ${10:upperbound}, ...],\n default: ${11:string}\n }\n }\n }\n}"},{name:"$set",value:"$set",label:"$set",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new fields to documents. $set outputs documents that contain all existing fields from the input documents and newly added fields.",comment:"/**\n * field: The field name\n * expression: The expression.\n */\n",snippet:"{\n ${1:field}: ${2:expression}\n}"},{name:"$setWindowFields",value:"$setWindowFields",label:"$setWindowFields",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Capable of partitioning incoming data, and can apply one or more functions to defined windows within each partition.",comment:"/**\n * partitionBy: partitioning of data.\n * sortBy: fields to sort by.\n * output: {\n * path: {\n * function: The window function to compute over the given window.\n * window: {\n * documents: A number of documents before and after the current document.\n * range: A range of possible values around the value in the current document's sortBy field.\n * unit: Specifies the units for the window bounds.\n * }\n * }\n * }\n */\n",snippet:"{\n partitionBy: ${1:expression},\n sortBy: ${2:sortSpec},\n output: {\n ${3:path}: {\n ${4:function}: ${5:functionArgs},\n window: {\n documents: [${6:lowerbound}, ${7:upperbound}],\n range: [${8:lowerbound}, ${9:upperbound}],\n unit: ${10:string}\n }\n },\n ${11:path2}: ...\n }\n}"},{name:"$skip",value:"$skip",label:"$skip",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Skips a specified number of documents before advancing to the next stage.",comment:"/**\n * Provide the number of documents to skip.\n */\n",snippet:"${1:number}"},{name:"$sort",value:"$sort",label:"$sort",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Reorders the document stream by a specified sort key and direction.",comment:"/**\n * Provide any number of field/order pairs.\n */\n",snippet:"{\n ${1:field1}: ${2:sortOrder}\n}"},{name:"$sortByCount",value:"$sortByCount",label:"$sortByCount",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group.",comment:"/**\n * expression: Grouping expression or string.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$unionWith",value:"$unionWith",label:"$unionWith",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Perform a union with a pipeline on another collection.",comment:"/**\n * coll: The collection name.\n * pipeline: The pipeline on the other collection.\n */\n",snippet:"{\n coll: '${1:coll}',\n pipeline: [${2:pipeline}]\n}"},{name:"$unset",value:"$unset",label:"$unset",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Excludes fields from the result document.",comment:"/**\n * Provide the field name to exclude.\n * To exclude multiple fields, pass the field names in an array.\n */\n",snippet:"'${1:string}'"},{name:"$unwind",value:"$unwind",label:"$unwind",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Outputs a new document for each element in a specified array. ",comment:"/**\n * path: Path to the array field.\n * includeArrayIndex: Optional name for index.\n * preserveNullAndEmptyArrays: Optional\n * toggle to unwind null and empty values.\n */\n",snippet:"{\n path: ${1:path},\n includeArrayIndex: '${2:string}',\n preserveNullAndEmptyArrays: ${3:boolean}\n}"},{name:"$vectorSearch",value:"$vectorSearch",label:"$vectorSearch",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS],meta:"stage",version:">=6.0.10 <7.0.0 || >=7.0.2",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a kNN search on embeddings in the specified field(s)",comment:"/**\n * queryVector: Array of numbers of BSON types `int` or `double` that represent the query vector. The array size must match the number of vector dimensions specified in the index for the field. (Required)\n * path: The field to search. (Required)\n * numCandidates: Number of nearest neighbors to use during the search. You can specify a number higher than the number of documents to return (`limit`) to increase accuracy. (Required)\n * index: Name of the Atlas Search index to use. (Required)\n * limit: Number (of type `int` only) of documents to return in the results. (Required)\n * filter: Any MongoDB Query Language (MQL) match expression that compares an indexed field with a boolean, number (not decimals), or string to use as a prefilter. (Optional)\n * exact: Choose between false for ANN (Approximate Nearest Neighbor) and true for ENN (Exact Nearest Neighbor). Defaults to false. (Optional)\n */\n",snippet:"{\n queryVector: [${1:dimension1}, ${2:dimension2}, ...],\n path: ${3:string},\n numCandidates: ${4:numCandidates},\n index: ${5:string},\n limit: ${6:limit},\n filter: {${7:expression}},\n exact: ${8:boolean}\n}"}];t.STAGE_OPERATORS=s;const i=s.map((e=>e.name));t.STAGE_OPERATOR_NAMES=i;const o=s.filter((e=>e.outputStage));t.OUT_STAGES=o;const l=s.filter((e=>e.fullScan));t.FULL_SCAN_STAGES=l;const c=s.filter((e=>e.firstStage));t.REQUIRED_AS_FIRST_STAGE=c},19789:(e,t,n)=>{const r=n(99597);e.exports=(e,t,n)=>r(e,t,">",n)},19896:(e,t,n)=>{const r=n(40289);e.exports=(e,t,n)=>r(t,e,n)},19940:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ParseMode=void 0,t.buildOptions=function(e){return{...o,...i(e&&e.mode||n.Strict),...e}},function(e){e.Strict="strict",e.Extended="extended",e.Loose="loose"}(n||(t.ParseMode=n={}));const r={allowMethods:!1,allowComments:!1},a={allowMethods:!0},s={allowMethods:!0,allowComments:!0};function i(e){switch(e){case n.Strict:return r;case n.Extended:return a;case n.Loose:return s}}const o={mode:n.Strict,...r}},20011:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checkTree=void 0;const r=n(23871);class a{constructor(e){this.options=e,this.checkSafeCall=e=>{const t=this.options.allowMethods;if("Identifier"===e.callee.type)return r.GLOBAL_FUNCTIONS.indexOf(e.callee.name)>=0&&e.arguments.every(this.checkSafeExpression);if(t&&"MemberExpression"===e.callee.type){const t=e.callee.object,n=e.callee.property;if("Identifier"===t.type&&"Identifier"===n.type)return(0,r.isMethodWhitelisted)(t.name,n.name)&&e.arguments.every(this.checkSafeExpression);if("NewExpression"!==t.type&&"CallExpression"!==t.type||"Identifier"!==t.callee.type)return this.checkSafeExpression(t)&&e.arguments.every(this.checkSafeExpression);{const a=t.callee;return(0,r.isMethodWhitelisted)(a.name,n.name)&&e.arguments.every(this.checkSafeExpression)}}return!1},this.checkSafeExpression=e=>{switch(e?.type){case"Identifier":return Object.prototype.hasOwnProperty.call(r.GLOBALS,e.name);case"Literal":return!0;case"ArrayExpression":return e.elements.every(this.checkSafeExpression);case"UnaryExpression":return this.checkSafeExpression(e.argument);case"BinaryExpression":return this.checkSafeExpression(e.left)&&this.checkSafeExpression(e.right);case"CallExpression":case"NewExpression":return this.checkSafeCall(e);case"ObjectExpression":return e.properties.every((e=>!("computed"in e&&e.computed||"method"in e&&e.method)&&!(!("key"in e)||!["Literal","Identifier"].includes(e.key.type))&&"value"in e&&(["FunctionExpression","ArrowFunctionExpression"].includes(e.value.type)||this.checkSafeExpression(e.value))));default:return!1}}}}t.checkTree=(e,t)=>"Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type&&new a(t).checkSafeExpression(e.body[0].expression)},20038:(e,t,n)=>{const r=n(77203);e.exports=(e,t,n)=>r(e,t,n)<0},20242:(e,t,n)=>{const r=n(59441);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},20332:(e,t,n)=>{const r=/\s+/g;class a{constructor(e,t){if(t=i(t),e instanceof a)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new a(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&$(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&v))+":"+e,n=s.get(t);if(n)return n;const r=this.options.loose,a=r?u[m.HYPHENRANGELOOSE]:u[m.HYPHENRANGE];e=e.replace(a,I(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(u[m.COMPARATORTRIM],p),l("comparator trim",e),e=e.replace(u[m.TILDETRIM],d),l("tilde trim",e),e=e.replace(u[m.CARETTRIM],h),l("caret trim",e);let i=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));r&&(i=i.filter((e=>(l("loose invalid filter",e,this.options),!!e.match(u[m.COMPARATORLOOSE]))))),l("range list",i);const c=new Map,$=i.map((e=>new o(e,this.options)));for(const e of $){if(g(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const E=[...c.values()];return s.set(t,E),E}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Range is required");return this.set.some((n=>E(n,t)&&e.set.some((e=>E(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(w(this.set[t],e,this.options))return!0;return!1}}e.exports=a;const s=new(n(92721)),i=n(83214),o=n(55141),l=n(29385),c=n(48381),{safeRe:u,t:m,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:h}=n(92625),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:v}=n(24159),g=e=>"<0.0.0-0"===e.value,$=e=>""===e.value,E=(e,t)=>{let n=!0;const r=e.slice();let a=r.pop();for(;n&&r.length;)n=r.every((e=>a.intersects(e,t))),a=r.pop();return n},y=(e,t)=>(l("comp",e,t),e=O(e,t),l("caret",e),e=S(e,t),l("tildes",e),e=x(e,t),l("xrange",e),e=T(e,t),l("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{const n=t.loose?u[m.TILDELOOSE]:u[m.TILDE];return e.replace(n,((t,n,r,a,s)=>{let i;return l("tilde",e,t,n,r,a,s),b(n)?i="":b(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:b(a)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(l("replaceTilde pr",s),i=`>=${n}.${r}.${a}-${s} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,l("tilde return",i),i}))},O=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{l("caret",e,t);const n=t.loose?u[m.CARETLOOSE]:u[m.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,s,i)=>{let o;return l("caret",e,t,n,a,s,i),b(n)?o="":b(a)?o=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(s)?o="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:i?(l("replaceCaret pr",i),o="0"===n?"0"===a?`>=${n}.${a}.${s}-${i} <${n}.${a}.${+s+1}-0`:`>=${n}.${a}.${s}-${i} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${s}-${i} <${+n+1}.0.0-0`):(l("no pr"),o="0"===n?"0"===a?`>=${n}.${a}.${s}${r} <${n}.${a}.${+s+1}-0`:`>=${n}.${a}.${s}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${s} <${+n+1}.0.0-0`),l("caret return",o),o}))},x=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map((e=>N(e,t))).join(" ")),N=(e,t)=>{e=e.trim();const n=t.loose?u[m.XRANGELOOSE]:u[m.XRANGE];return e.replace(n,((n,r,a,s,i,o)=>{l("xRange",e,n,r,a,s,i,o);const c=b(a),u=c||b(s),m=u||b(i),p=m;return"="===r&&p&&(r=""),o=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(s=0),i=0,">"===r?(r=">=",u?(a=+a+1,s=0,i=0):(s=+s+1,i=0)):"<="===r&&(r="<",u?a=+a+1:s=+s+1),"<"===r&&(o="-0"),n=`${r+a}.${s}.${i}${o}`):u?n=`>=${a}.0.0${o} <${+a+1}.0.0-0`:m&&(n=`>=${a}.${s}.0${o} <${a}.${+s+1}.0-0`),l("xRange return",n),n}))},T=(e,t)=>(l("replaceStars",e,t),e.trim().replace(u[m.STAR],"")),R=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?m.GTE0PRE:m.GTE0],"")),I=e=>(t,n,r,a,s,i,o,l,c,u,m,p)=>`${n=b(r)?"":b(a)?`>=${r}.0.0${e?"-0":""}`:b(s)?`>=${r}.${a}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(m)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${m}-${p}`:e?`<${c}.${u}.${+m+1}-0`:`<=${l}`}`.trim(),w=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},20474:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EXPRESSION_OPERATORS=void 0,t.EXPRESSION_OPERATORS=[{name:"$abs",value:"$abs",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$accumulator",value:"$accumulator",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$add",value:"$add",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$allElementsTrue",value:"$allElementsTrue",score:1,meta:"expr:set",version:"2.6.0"},{name:"$and",value:"$and",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$anyElementTrue",value:"$anyElementTrue",score:1,meta:"expr:set",version:"2.6.0"},{name:"$arrayElemAt",value:"$arrayElemAt",score:1,meta:"expr:array",version:"3.2.0"},{name:"$arrayToObject",value:"$arrayToObject",score:1,meta:"expr:array",version:"3.4.4"},{name:"$binarySize",value:"$binarySize",score:1,meta:"expr:obj",version:"4.4.0"},{name:"$bsonSize",value:"$bsonSize",score:1,meta:"expr:obj",version:"4.4.0"},{name:"$ceil",value:"$ceil",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$cmp",value:"$cmp",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$concat",value:"$concat",score:1,meta:"expr:string",version:"2.4.0"},{name:"$concatArrays",value:"$concatArrays",score:1,meta:"expr:array",version:"3.2.0"},{name:"$cond",value:"$cond",score:1,meta:"expr:cond",version:"2.6.0"},{name:"$dateAdd",value:"$dateAdd",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateDiff",value:"$dateDiff",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateFromParts",value:"$dateFromParts",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateFromString",value:"$dateFromString",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateSubtract",value:"$dateSubtract",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateToParts",value:"$dateToParts",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateToString",value:"$dateToString",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateTrunc",value:"$dateTrunc",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dayOfMonth",value:"$dayOfMonth",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dayOfWeek",value:"$dayOfWeek",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dayOfYear",value:"$dayOfYear",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dateToString",value:"$dateToString",score:1,meta:"expr:date",version:"3.0.0"},{name:"$divide",value:"$divide",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$eq",value:"$eq",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$exp",value:"$exp",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$filter",value:"$filter",score:1,meta:"expr:array",version:"3.2.0"},{name:"$first",value:"$first",score:1,meta:"expr:array",version:"4.4.0"},{name:"$floor",value:"$floor",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$function",value:"$function",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$getField",value:"$getField",score:1,meta:"expr:get",version:"5.0.0"},{name:"$gt",value:"$gt",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$gte",value:"$gte",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$hour",value:"$hour",score:1,meta:"expr:date",version:"2.2.0"},{name:"$ifNull",value:"$ifNull",score:1,meta:"expr:cond",version:"2.2.0"},{name:"$in",value:"$in",score:1,meta:"expr:array",version:"3.4.0"},{name:"$indexOfArray",value:"$indexOfArray",score:1,meta:"expr:array",version:"3.4.0"},{name:"$indexOfBytes",value:"$indexOfBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$indexOfCP",value:"$indexOfCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$isArray",value:"$isArray",score:1,meta:"expr:array",version:"3.2.0"},{name:"$isNumber",value:"$isNumber",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$isoDayOfWeek",value:"$isoDayOfWeek",score:1,meta:"expr:date",version:"3.4.0"},{name:"$isoWeek",value:"$isoWeek",score:1,meta:"expr:date",version:"3.4.0"},{name:"$isoWeekYear",value:"$isoWeekYear",score:1,meta:"expr:date",version:"3.4.0"},{name:"$last",value:"$last",score:1,meta:"expr:array",version:"4.4.0"},{name:"$let",value:"$let",score:1,meta:"expr:var",version:"2.6.0"},{name:"$literal",value:"$literal",score:1,meta:"expr:literal",version:"2.6.0"},{name:"$lt",value:"$lt",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$lt",value:"$lte",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$ln",value:"$ln",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$log",value:"$log",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$log10",value:"$log10",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$map",value:"$map",score:1,meta:"expr:array",version:"2.6.0"},{name:"$mergeObjects",value:"$mergeObjects",score:1,meta:"expr:obj",version:"3.6.0"},{name:"$meta",value:"$meta",score:1,meta:"expr:text",version:"2.6.0"},{name:"$millisecond",value:"$millisecond",score:1,meta:"expr:date",version:"2.4.0"},{name:"$minute",value:"$minute",score:1,meta:"expr:date",version:"2.2.0"},{name:"$mod",value:"$mod",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$month",value:"$month",score:1,meta:"expr:date",version:"2.2.0"},{name:"$multiply",value:"$multiply",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$new",value:"$new",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$not",value:"$not",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$objectToArray",value:"$objectToArray",score:1,meta:"expr:array",version:"3.4.4"},{name:"$or",value:"$or",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$pow",value:"$pow",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$range",value:"$range",score:1,meta:"expr:array",version:"3.4.0"},{name:"$reduce",value:"$reduce",score:1,meta:"expr:array",version:"3.4.0"},{name:"$regexFind",value:"$regexFind",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$regexFindAll",value:"$regexFindAll",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$regexMatch",value:"$regexMatch",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$replaceAll",value:"$replaceAll",score:1,meta:"expr:string",version:"4.4.0"},{name:"$replaceOne",value:"$replaceOne",score:1,meta:"expr:string",version:"4.4.0"},{name:"$reverseArray",value:"$reverseArray",score:1,meta:"expr:array",version:"3.4.0"},{name:"$second",value:"$second",score:1,meta:"expr:date",version:"2.2.0"},{name:"$setDifference",value:"$setDifference",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setEquals",value:"$setEquals",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setIntersection",value:"$setIntersection",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setIsSubset",value:"$setIsSubset",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setUnion",value:"$setUnion",score:1,meta:"expr:set",version:"2.6.0"},{name:"$similarityCosine",value:"$similarityCosine",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$similarityDotProduct",value:"$similarityDotProduct",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$similarityEuclidean",value:"$similarityEuclidean",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$size",value:"$size",score:1,meta:"expr:array",version:"2.6.0"},{name:"$slice",value:"$slice",score:1,meta:"expr:array",version:"3.2.0"},{name:"$sortArray",value:"$sortArray",score:1,meta:"expr:array",version:"5.2.0"},{name:"$split",value:"$split",score:1,meta:"expr:string",version:"3.4.0"},{name:"$sqrt",value:"$sqrt",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$strcasecmp",value:"$strcasecmp",score:1,meta:"expr:string",version:"2.2.0"},{name:"$strLenBytes",value:"$strLenBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$strLenCP",value:"$strLenCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$substr",value:"$substr",score:1,meta:"expr:string",version:"2.2.0",deprecated:"3.4.0",replacement:"$substrBytes"},{name:"$substrBytes",value:"$substrBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$substrCP",value:"$substrCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$subtract",value:"$subtract",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$switch",value:"$switch",score:1,meta:"expr:cond",version:"3.4.0"},{name:"$toHashedIndexKey",value:"$toHashedIndexKey",score:1,meta:"expr:arith",version:"4.2.24"},{name:"$toLower",value:"$toLower",score:1,meta:"expr:string",version:"2.2.0"},{name:"$toUpper",value:"$toUpper",score:1,meta:"expr:string",version:"2.2.0"},{name:"$tsSecond",value:"$tsSecond",score:1,meta:"expr:date",version:"5.1.0"},{name:"$tsIncrement",value:"$tsIncrement",score:1,meta:"expr:date",version:"5.1.0"},{name:"$trunc",value:"$trunc",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$type",value:"$type",score:1,meta:"expr:type",version:"3.4.0"},{name:"$week",value:"$week",score:1,meta:"expr:date",version:"2.2.0"},{name:"$year",value:"$year",score:1,meta:"expr:date",version:"2.2.0"},{name:"$zip",value:"$zip",score:1,meta:"expr:array",version:"3.4.0"},{name:"$bitAnd",value:"$bitAnd",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitOr",value:"$bitOr",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitXor",value:"$bitXor",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitNot",value:"$bitNot",score:1,meta:"expr:bit",version:"7.0.0"}]},20903:(e,t,n)=>{const r=n(83586);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},20930:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},21148:(e,t,n)=>{const r=n(50363),a=n(60501);e.exports=(e,t,n)=>{const s=[];let i=null,o=null;const l=e.sort(((e,t)=>a(e,t,n)));for(const e of l)r(e,t,n)?(o=e,i||(i=e)):(o&&s.push([i,o]),o=null,i=null);i&&s.push([i,null]);const c=[];for(const[e,t]of s)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),m="string"==typeof t.raw?t.raw:String(t);return u.length<m.length?u:t}},21212:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},21410:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_MAX_TIME_MS=t.DEFAULT_COLLATION=t.DEFAULT_PROJECT=t.DEFAULT_SKIP=t.DEFAULT_LIMIT=t.DEFAULT_SORT=t.DEFAULT_FILTER=t.QUERY_PROPERTIES=t.toJSString=t.stringify=t.validate=t.isLimitValid=t.isSkipValid=t.isMaxTimeMSValid=t.isSortValid=t.isProjectValid=t.parseProject=t.isCollationValid=t.isFilterValid=t.parseCollation=t.parseFilter=t.parseSort=void 0;const o=s(n(81641)),l=i(n(20990)),c=i(n(46696)),u=n(30483),m=n(2431);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(t,"toJSString",{enumerable:!0,get:function(){return m.toJSString}});const p=(0,c.default)("mongodb-query-parser"),d={};t.DEFAULT_FILTER=d;const h=null;t.DEFAULT_SORT=h,t.DEFAULT_LIMIT=0,t.DEFAULT_SKIP=0;const f=null;t.DEFAULT_PROJECT=f;const v=null;function g(e){if(null==e)return!0;const t=l.default.trim("number"==typeof e?`${e}`:e);return"{}"===t||l.default.isEmpty(t)}function $(e){return g(e)?0:!!/^\d+$/.test(`${e}`)&&parseInt(`${e}`,10)}function E(e){return(0,o.default)(e,{mode:o.ParseMode.Loose})}function y(e){return(0,o.default)(e,{mode:o.ParseMode.Loose})}function b(e){return g(e)?h:(0,o.default)(e,{mode:o.ParseMode.Loose})}function S(e){return(0,o.default)(e,{mode:o.ParseMode.Loose,allowMethods:!0})}function A(e){if(g(e))return d;try{return S(e)}catch(t){return p('Filter "%s" is invalid',e,t),!1}}function O(e){if(g(e))return v;try{return function(e){for(const[t,n]of Object.entries(e)){if(!u.COLLATION_OPTIONS[t])return p('Collation "%s" is invalid bc of its keys',e),!1;if(!1===u.COLLATION_OPTIONS[t].includes(n))return p('Collation "%s" is invalid bc of its values',e),!1}return e}(y(e))}catch(t){return p('Collation "%s" is invalid',e,t),!1}}function _(){return!0}function x(e){if(g(e))return f;try{const t=E(e);return l.default.isObject(t)?l.default.every(t,_)?t:(p('Project "%s" is invalid bc of its values',e),!1):(p('Project "%s" is invalid. Only documents are allowed',e),!1)}catch(t){return p('Project "%s" is invalid',e,t),!1}}t.DEFAULT_COLLATION=v,t.DEFAULT_MAX_TIME_MS=6e4,t.QUERY_PROPERTIES=["filter","project","sort","skip","limit"],t.parseSort=b,t.parseFilter=function(e){return g(e)?d:S(e)},t.parseCollation=function(e){return g(e)?v:y(e)},t.isFilterValid=A,t.isCollationValid=O,t.parseProject=function(e){return g(e)?f:E(e)},t.isProjectValid=x;const N=[1,-1,"asc","desc"];function T(e){return l.default.includes(N,e)||!(!l.default.isObject(e)||!e.$meta)}function R(e){return l.default.isArray(e)&&2===e.length&&l.default.isString(e[0])&&T(e[1])}function I(e){try{const t=b(e);return g(t)?h:l.default.isArray(t)&&l.default.every(t,R)||l.default.isObject(t)&&!l.default.isArray(t)&&l.default.every(t,T)?t:(p('Sort "%s" is invalid bc of its values',e),!1)}catch(t){return p('Sort "%s" is invalid',e,t),!1}}function w(e){return g(e)?6e4:$(e)}function L(e){return g(e)?0:$(e)}function P(e){return g(e)?0:$(e)}t.isSortValid=I,t.isMaxTimeMSValid=w,t.isSkipValid=L,t.isLimitValid=P;const C={isMaxTimeMSValid:w,isFilterValid:A,isProjectValid:x,isSortValid:I,isLimitValid:P,isSkipValid:L,isCollationValid:O,isNumberValid:$};t.validate=function(e,t){const n=C[`is${l.default.upperFirst(e)}Valid`];return n?n(t):(p("Do not know how to validate `%s`. Returning false.",e),!1)},t.default=function(e,t=null){return 1===arguments.length&&l.default.isString(e)?S(e):{filter:S(e),project:t!==f?E(t):t}}},21482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATION_TEMPLATE=void 0,t.VALIDATION_TEMPLATE='/**\n * This is a starter template for a schema validation rule for a collection.\n * More information on schema validation rules can be found at:\n * https://www.mongodb.com/docs/manual/core/schema-validation/\n */\n{\n $jsonSchema: {\n title: "Library.books",\n bsonType: "object",\n required: ["fieldname1", "fieldname2"],\n properties: {\n fieldname1: {\n bsonType: "string",\n description: "Fieldname1 must be a string",\n },\n fieldname2: {\n bsonType: "int",\n description: "Fieldname2 must be an integer",\n },\n arrayFieldName: {\n bsonType: "array",\n items: {\n bsonType: "string"\n },\n description: "arrayFieldName must be an array of strings"\n },\n }\n }\n}'},22156:(e,t,n)=>{const r=n(59441);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},22849:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ACCUMULATORS=void 0,t.ACCUMULATORS=[{name:"$accumulator",value:"$accumulator",score:1,meta:"accumulator",version:"4.4.0"},{name:"$addToSet",value:"$addToSet",score:1,meta:"accumulator",version:"2.2.0"},{name:"$avg",value:"$avg",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$bottom",value:"$bottom",score:1,meta:"accumulator:bottom-n",version:"5.2.0"},{name:"$bottomN",value:"$bottomN",score:1,meta:"accumulator:bottom-n",version:"5.2.0"},{name:"$covariancePop",value:"$covariancePop",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$covarianceSamp",value:"$covarianceSamp",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$count",value:"$count",score:1,meta:"accumulator",version:"5.0.0"},{name:"$derivative",value:"$derivative",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$denseRank",value:"$denseRank",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$documentNumber",value:"$documentNumber",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$expMovingAvg",value:"$expMovingAvg",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$first",value:"$first",score:1,meta:"accumulator",version:"2.2.0"},{name:"$firstN",value:"$firstN",score:1,meta:"accumulator",version:"5.1.0"},{name:"$integral",value:"$integral",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$last",value:"$last",score:1,meta:"accumulator",version:"2.2.0"},{name:"$lastN",value:"$lastN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$max",value:"$max",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$maxN",value:"$maxN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$median",value:"$median",score:1,meta:"accumulator",version:"7.0.0"},{name:"$min",value:"$min",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$minN",value:"$minN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$percentile",value:"$percentile",score:1,meta:"accumulator",version:"7.0.0"},{name:"$push",value:"$push",score:1,meta:"accumulator",version:"2.2.0"},{name:"$rank",value:"$rank",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$stdDevPop",value:"$stdDevPop",score:1,meta:"accumulator",version:"3.2.0",projectVersion:"3.2.0"},{name:"$stdDevSamp",value:"$stdDevSamp",score:1,meta:"accumulator",version:"3.2.0",projectVersion:"3.2.0"},{name:"$shift",value:"$shift",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$sum",value:"$sum",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$top",value:"$top",score:1,meta:"accumulator:top-n",version:"5.2.0"},{name:"$topN",value:"$topN",score:1,meta:"accumulator:top-n",version:"5.2.0"},{name:"$locf",value:"$locf",score:1,meta:"accumulator:window",version:"5.3.0"},{name:"$linearFill",value:"$linearFill",score:1,meta:"accumulator:window",version:"5.3.0"}]},23751:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ParseMode=void 0,t.buildOptions=function(e){return{...o,...i(e&&e.mode||n.Strict),...e}},function(e){e.Strict="strict",e.Extended="extended",e.Loose="loose"}(n||(t.ParseMode=n={}));const r={allowMethods:!1,allowComments:!1},a={allowMethods:!0},s={allowMethods:!0,allowComments:!0};function i(e){switch(e){case n.Strict:return r;case n.Extended:return a;case n.Loose:return s}}const o={mode:n.Strict,...r}},23871:function(e,t,n){var r=n(67787).Buffer,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_FUNCTIONS=t.GLOBALS=void 0,t.getScopeFunction=function(e,t){if(t&&m[e])return m[e];if(!t&&u[e])return u[e];if(p[e])return p[e];throw new Error(`Attempted to access scope property '${e}' that doesn't exist`)},t.isMethodWhitelisted=function(e,t){if(Object.prototype.hasOwnProperty.call(d,e)){const n=d[e].allowedMethods;return"string"==typeof n?d[n].allowedMethods[t]:n[t]}return!1},t.getClass=function(e){if(Object.prototype.hasOwnProperty.call(d,e))return d[e].class;throw new Error(`Attempted to access member '${e}' that doesn't exist`)};const o=i(n(62444));function l(e){return Object.freeze(Object.create(null,Object.getOwnPropertyDescriptors(e)))}function c(e){return"string"==typeof e?o.Long.fromString(e):o.Long.fromNumber(e)}const u=l({Date:function(...e){return Date(...e)}}),m=l({Date:function(...e){return new Date(...e)}}),p=l({RegExp,Binary:function(e,t){return new o.Binary(e,t)},BinData:function(e,t){return new o.Binary(r.from(t,"base64"),e)},UUID:function(e){return void 0===e?(new o.UUID).toBinary():new o.Binary(r.from(e.replace(/-/g,""),"hex"),4)},Code:function(e,t){return new o.Code(e,t)},DBRef:function(e,t,n,r){return new o.DBRef(e,t,n,r)},Decimal128:function(e){return o.Decimal128.fromString(e)},NumberDecimal:function(e){return o.Decimal128.fromString(e)},Double:function(e){return new o.Double(e)},Int32:function(e){return new o.Int32(e)},NumberInt:function(e){return parseInt(e,10)},Long:function(e,t){return new o.Long(e,t)},NumberLong:c,Int64:c,Map:function(e){return new(o.Map??Map)(e)},MaxKey:function(){return new o.MaxKey},MinKey:function(){return new o.MinKey},ObjectID:function(e){return new o.ObjectId(e)},ObjectId:function(e){return new o.ObjectId(e)},Symbol:function(e){return new o.BSONSymbol(e)},Timestamp:function(e,t){return"number"==typeof e&&"number"==typeof t||void 0!==t?new o.Timestamp({t:e,i:t}):new o.Timestamp(e)},ISODate:function(e){if(void 0===e)return new Date;if("string"!=typeof e)return new Date(e);const t=e.match(/^(?<Y>\d{4})-?(?<M>\d{2})-?(?<D>\d{2})([T ](?<h>\d{2})(:?(?<m>\d{2})(:?((?<s>\d{2})(\.(?<ms>\d+))?))?)?(?<tz>Z|([+-])(\d{2}):?(\d{2})?)?)?$/);if(null!==t&&void 0!==t.groups){const{Y:e,M:n,D:r,h:a,m:s,s:i,ms:o,tz:l}=t.groups,c=new Date(`${e}-${n}-${r}T${a||"00"}:${s||"00"}:${i||"00"}.${o||"000"}${l||"Z"}`);if(c.getTime()>=-621672192e5&&c.getTime()<=0xe677d21fdbff)return c}throw new Error(`${JSON.stringify(e)} is not a valid ISODate`)}});t.GLOBALS=l({Infinity:1/0,NaN:NaN,undefined:void 0});const d=l({Math:l({class:Math,allowedMethods:l({abs:!0,acos:!0,acosh:!0,asin:!0,asinh:!0,atan:!0,atan2:!0,atanh:!0,cbrt:!0,ceil:!0,clz32:!0,cos:!0,cosh:!0,exp:!0,expm1:!0,floor:!0,fround:!0,hypot:!0,imul:!0,log:!0,log10:!0,log1p:!0,log2:!0,max:!0,min:!0,pow:!0,round:!0,sign:!0,sin:!0,sinh:!0,sqrt:!0,tan:!0,tanh:!0,trunc:!0})}),Date:l({class:Date,allowedMethods:l({getDate:!0,getDay:!0,getFullYear:!0,getHours:!0,getMilliseconds:!0,getMinutes:!0,getMonth:!0,getSeconds:!0,getTime:!0,getTimezoneOffset:!0,getUTCDate:!0,getUTCDay:!0,getUTCFullYear:!0,getUTCHours:!0,getUTCMilliseconds:!0,getUTCMinutes:!0,getUTCMonth:!0,getUTCSeconds:!0,getYear:!0,now:!0,setDate:!0,setFullYear:!0,setHours:!0,setMilliseconds:!0,setMinutes:!0,setMonth:!0,setSeconds:!0,setTime:!0,setUTCDate:!0,setUTCFullYear:!0,setUTCHours:!0,setUTCMilliseconds:!0,setUTCMinutes:!0,setUTCMonth:!0,setUTCSeconds:!0,setYear:!0,toISOString:!0,valueOf:!0})}),ISODate:l({class:Date,allowedMethods:"Date"}),Binary:l({class:o.Binary,allowedMethods:{createFromHexString:!0,createFromBase64:!0}})});t.GLOBAL_FUNCTIONS=Object.freeze([...Object.keys(p),...Object.keys(m),...Object.keys(u)])},24078:(e,t,n)=>{const r=n(32674);e.exports=(e,t,n)=>r(e,t,n)<=0},24159:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},24320:(e,t,n)=>{const r=n(17914);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},24472:(e,t,n)=>{const r=n(66283),a=n(58387),{ANY:s}=a,i=n(38366),o=n(50363),l=n(61607),c=n(91152),u=n(80829),m=n(15844);e.exports=(e,t,n,p)=>{let d,h,f,v,g;switch(e=new r(e,p),t=new i(t,p),n){case">":d=l,h=u,f=c,v=">",g=">=";break;case"<":d=c,h=m,f=l,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let i=null,o=null;if(r.forEach((e=>{e.semver===s&&(e=new a(">=0.0.0")),i=i||e,o=o||e,d(e.semver,i.semver,p)?i=e:f(e.semver,o.semver,p)&&(o=e)})),i.operator===v||i.operator===g)return!1;if((!o.operator||o.operator===v)&&h(e,o.semver))return!1;if(o.operator===g&&f(e,o.semver))return!1}return!0}},24482:(e,t,n)=>{const r=n(34219);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},25157:(e,t,n)=>{var r,a=n(98437),s=n(17642);function i(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),-1===e.indexOf("-")&&-1===e.indexOf("_"))return e;{let t="",n=!1;const r=e.match(/^-+/);for(let a=r?r[0].length:0;a<e.length;a++){let r=e.charAt(a);n&&(n=!1,r=r.toUpperCase()),0===a||"-"!==r&&"_"!==r?"-"!==r&&"_"!==r&&(t+=r):n=!0}return t}}function o(e,t){const n=e.toLowerCase();t=t||"-";let r="";for(let a=0;a<e.length;a++){const s=n.charAt(a),i=e.charAt(a);r+=s!==i&&a>0?`${t}${n.charAt(a)}`:i}return r}function l(e){return null!=e&&("number"==typeof e||!!/^0x[0-9a-f]+$/i.test(e)||!/^0[^.]/.test(e)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}let c;function u(e){return void 0!==e?e+1:1}function m(e){return"__proto__"===e?"___proto___":e}!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(r||(r={}));var p,d,h,f=n(36374),v=n(65994).e;const g=v&&v.env&&v.env.YARGS_MIN_NODE_VERSION?Number(v.env.YARGS_MIN_NODE_VERSION):12,$=null!==(d=null===(p=null==v?void 0:v.versions)||void 0===p?void 0:p.node)&&void 0!==d?d:null===(h=null==v?void 0:v.version)||void 0===h?void 0:h.slice(1);if($&&Number($.match(/^([^.]+)/)[1])<g)throw Error(`yargs parser supports a minimum Node.js version of ${g}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);const E=v?v.env:{},y=new class{constructor(e){c=e}parse(e,t){const n=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},t),a=function(e){if(Array.isArray(e))return e.map((e=>"string"!=typeof e?e+"":e));e=e.trim();let t=0,n=null,r=null,a=null;const s=[];for(let i=0;i<e.length;i++)n=r,r=e.charAt(i)," "!==r||a?(r===a?a=null:"'"!==r&&'"'!==r||a||(a=r),s[t]||(s[t]=""),s[t]+=r):" "!==n&&t++;return s}(e),s="string"==typeof e,p=function(e){const t=[],n=Object.create(null);let r=!0;for(Object.keys(e).forEach((function(n){t.push([].concat(e[n],n))}));r;){r=!1;for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++)if(t[e].filter((function(e){return-1!==t[n].indexOf(e)})).length){t[e]=t[e].concat(t[n]),t.splice(n,1),r=!0;break}}return t.forEach((function(e){const t=(e=e.filter((function(e,t,n){return n.indexOf(e)===t}))).pop();void 0!==t&&"string"==typeof t&&(n[t]=e)})),n}(Object.assign(Object.create(null),n.alias)),d=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},n.configuration),h=Object.assign(Object.create(null),n.default),f=n.configObjects||[],v=n.envPrefix,g=d["populate--"],$=g?"--":"_",E=Object.create(null),y=Object.create(null),b=n.__||c.format,S={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},A=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,O=new RegExp("^--"+d["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach((function(e){const t="object"==typeof e?e.key:e,n=Object.keys(e).map((function(e){return{boolean:"bools",string:"strings",number:"numbers"}[e]})).filter(Boolean).pop();n&&(S[n][t]=!0),S.arrays[t]=!0,S.keys.push(t)})),[].concat(n.boolean||[]).filter(Boolean).forEach((function(e){S.bools[e]=!0,S.keys.push(e)})),[].concat(n.string||[]).filter(Boolean).forEach((function(e){S.strings[e]=!0,S.keys.push(e)})),[].concat(n.number||[]).filter(Boolean).forEach((function(e){S.numbers[e]=!0,S.keys.push(e)})),[].concat(n.count||[]).filter(Boolean).forEach((function(e){S.counts[e]=!0,S.keys.push(e)})),[].concat(n.normalize||[]).filter(Boolean).forEach((function(e){S.normalize[e]=!0,S.keys.push(e)})),"object"==typeof n.narg&&Object.entries(n.narg).forEach((([e,t])=>{"number"==typeof t&&(S.nargs[e]=t,S.keys.push(e))})),"object"==typeof n.coerce&&Object.entries(n.coerce).forEach((([e,t])=>{"function"==typeof t&&(S.coercions[e]=t,S.keys.push(e))})),void 0!==n.config&&(Array.isArray(n.config)||"string"==typeof n.config?[].concat(n.config).filter(Boolean).forEach((function(e){S.configs[e]=!0})):"object"==typeof n.config&&Object.entries(n.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(S.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){S.aliases[e]||(S.aliases[e]=[].concat(p[e]||[]),S.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&d["camel-case-expansion"]){const n=i(t);n!==e&&-1===S.aliases[e].indexOf(n)&&(S.aliases[e].push(n),E[n]=!0)}})),S.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&d["camel-case-expansion"]){const n=o(t,"-");n!==e&&-1===S.aliases[e].indexOf(n)&&(S.aliases[e].push(n),E[n]=!0)}})),S.aliases[e].forEach((function(t){S.aliases[t]=[e].concat(S.aliases[e].filter((function(e){return t!==e})))})))}))}))}(n.key,p,n.default,S.arrays),Object.keys(h).forEach((function(e){(S.aliases[e]||[]).forEach((function(t){h[t]=h[e]}))}));let _=null;Object.keys(S.counts).find((e=>V(e,S.arrays)?(_=Error(b("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!V(e,S.nargs)&&(_=Error(b("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0)));let x=[];const N=Object.assign(Object.create(null),{_:[]}),T={};for(let e=0;e<a.length;e++){const t=a[e],n=t.replace(/^-{3,}/,"---");let r,s,i,o,l,c;if("--"!==t&&/^-/.test(t)&&q(t))R(t);else{if(n.match(/^---+(=|$)/)){R(t);continue}if(t.match(/^--.+=/)||!d["short-option-groups"]&&t.match(/^-.+=/))o=t.match(/^--?([^=]+)=([\s\S]*)$/),null!==o&&Array.isArray(o)&&o.length>=3&&(V(o[1],S.arrays)?e=w(e,o[1],a,o[2]):!1!==V(o[1],S.nargs)?e=I(e,o[1],a,o[2]):L(o[1],o[2],!0));else if(t.match(O)&&d["boolean-negation"])o=t.match(O),null!==o&&Array.isArray(o)&&o.length>=2&&(s=o[1],L(s,!!V(s,S.arrays)&&[!1]));else if(t.match(/^--.+/)||!d["short-option-groups"]&&t.match(/^-[^-]+/))o=t.match(/^--?(.+)/),null!==o&&Array.isArray(o)&&o.length>=2&&(s=o[1],V(s,S.arrays)?e=w(e,s,a):!1!==V(s,S.nargs)?e=I(e,s,a):(l=a[e+1],void 0===l||l.match(/^-/)&&!l.match(A)||V(s,S.bools)||V(s,S.counts)?/^(true|false)$/.test(l)?(L(s,l),e++):L(s,G(s)):(L(s,l),e++)));else if(t.match(/^-.\..+=/))o=t.match(/^-([^=]+)=([\s\S]*)$/),null!==o&&Array.isArray(o)&&o.length>=3&&L(o[1],o[2]);else if(t.match(/^-.\..+/)&&!t.match(A))l=a[e+1],o=t.match(/^-(.\..+)/),null!==o&&Array.isArray(o)&&o.length>=2&&(s=o[1],void 0===l||l.match(/^-/)||V(s,S.bools)||V(s,S.counts)?L(s,G(s)):(L(s,l),e++));else if(t.match(/^-[^-]+/)&&!t.match(A)){i=t.slice(1,-1).split(""),r=!1;for(let n=0;n<i.length;n++){if(l=t.slice(n+2),i[n+1]&&"="===i[n+1]){c=t.slice(n+3),s=i[n],V(s,S.arrays)?e=w(e,s,a,c):!1!==V(s,S.nargs)?e=I(e,s,a,c):L(s,c),r=!0;break}if("-"!==l){if(/[A-Za-z]/.test(i[n])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&!1===V(l,S.bools)){L(i[n],l),r=!0;break}if(i[n+1]&&i[n+1].match(/\W/)){L(i[n],l),r=!0;break}L(i[n],G(i[n]))}else L(i[n],l)}s=t.slice(-1)[0],r||"-"===s||(V(s,S.arrays)?e=w(e,s,a):!1!==V(s,S.nargs)?e=I(e,s,a):(l=a[e+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(A)||V(s,S.bools)||V(s,S.counts)?/^(true|false)$/.test(l)?(L(s,l),e++):L(s,G(s)):(L(s,l),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(A)&&V(t.slice(1),S.bools))s=t.slice(1),L(s,G(s));else{if("--"===t){x=a.slice(e+1);break}if(d["halt-at-non-option"]){x=a.slice(e);break}R(t)}}}function R(e){const t=M("_",e);"string"!=typeof t&&"number"!=typeof t||N._.push(t)}function I(e,t,n,r){let a,s=V(t,S.nargs);if(s="number"!=typeof s||isNaN(s)?1:s,0===s)return Y(r)||(_=Error(b("Argument unexpected for: %s",t))),L(t,G(t)),e;let i=Y(r)?0:1;if(d["nargs-eats-options"])n.length-(e+1)+i<s&&(_=Error(b("Not enough arguments following: %s",t))),i=s;else{for(a=e+1;a<n.length&&(!n[a].match(/^-[^0-9]/)||n[a].match(A)||q(n[a]));a++)i++;i<s&&(_=Error(b("Not enough arguments following: %s",t)))}let o=Math.min(i,s);for(!Y(r)&&o>0&&(L(t,r),o--),a=e+1;a<o+e+1;a++)L(t,n[a]);return e+o}function w(e,t,n,r){let a=[],i=r||n[e+1];const o=V(t,S.nargs);if(V(t,S.bools)&&!/^(true|false)$/.test(i))a.push(!0);else if(Y(i)||Y(r)&&/^-/.test(i)&&!A.test(i)&&!q(i)){if(void 0!==h[t]){const e=h[t];a=Array.isArray(e)?e:[e]}}else{Y(r)||a.push(C(t,r,!0));for(let r=e+1;r<n.length&&!(!d["greedy-arrays"]&&a.length>0||o&&"number"==typeof o&&a.length>=o)&&(i=n[r],!/^-/.test(i)||A.test(i)||q(i));r++)e=r,a.push(C(t,i,s))}return"number"==typeof o&&(o&&a.length<o||isNaN(o)&&0===a.length)&&(_=Error(b("Not enough arguments following: %s",t))),L(t,a),e}function L(e,t,n=s){if(/-/.test(e)&&d["camel-case-expansion"]){const t=e.split(".").map((function(e){return i(e)})).join(".");P(e,t)}const r=C(e,t,n),a=e.split(".");U(N,a,r),S.aliases[e]&&S.aliases[e].forEach((function(e){const t=e.split(".");U(N,t,r)})),a.length>1&&d["dot-notation"]&&(S.aliases[a[0]]||[]).forEach((function(t){let n=t.split(".");const s=[].concat(a);s.shift(),n=n.concat(s),(S.aliases[e]||[]).includes(n.join("."))||U(N,n,r)})),V(e,S.normalize)&&!V(e,S.arrays)&&[e].concat(S.aliases[e]||[]).forEach((function(e){Object.defineProperty(T,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?c.normalize(e):e}})}))}function P(e,t){S.aliases[e]&&S.aliases[e].length||(S.aliases[e]=[t],E[t]=!0),S.aliases[t]&&S.aliases[t].length||P(t,e)}function C(e,t,n){n&&(t=function(e){return"string"!=typeof e||"'"!==e[0]&&'"'!==e[0]||e[e.length-1]!==e[0]?e:e.substring(1,e.length-1)}(t)),(V(e,S.bools)||V(e,S.counts))&&"string"==typeof t&&(t="true"===t);let r=Array.isArray(t)?t.map((function(t){return M(e,t)})):M(e,t);return V(e,S.counts)&&(Y(r)||"boolean"==typeof r)&&(r=u()),V(e,S.normalize)&&V(e,S.arrays)&&(r=Array.isArray(t)?t.map((e=>c.normalize(e))):c.normalize(t)),r}function M(e,t){return d["parse-positional-numbers"]||"_"!==e?(V(e,S.strings)||V(e,S.bools)||Array.isArray(t)||(l(t)&&d["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!Y(t)&&V(e,S.numbers))&&(t=Number(t)),t):t}function j(e,t){Object.keys(e).forEach((function(n){const r=e[n],a=t?t+"."+n:n;"object"==typeof r&&null!==r&&!Array.isArray(r)&&d["dot-notation"]?j(r,a):(!F(N,a.split("."))||V(a,S.arrays)&&d["combine-arrays"])&&L(a,r)}))}function D(e,t){if(void 0===v)return;const n="string"==typeof v?v:"",r=c.env();Object.keys(r).forEach((function(a){if(""===n||0===a.lastIndexOf(n,0)){const s=a.split("__").map((function(e,t){return 0===t&&(e=e.substring(n.length)),i(e)}));(t&&S.configs[s.join(".")]||!t)&&!F(e,s)&&L(s.join("."),r[a])}}))}function k(e,t,n,r=!1){Object.keys(n).forEach((function(a){F(e,a.split("."))||(U(e,a.split("."),n[a]),r&&(y[a]=!0),(t[a]||[]).forEach((function(t){F(e,t.split("."))||U(e,t.split("."),n[a])})))}))}function F(e,t){let n=e;d["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){n=n[e]||{}}));const r=t[t.length-1];return"object"==typeof n&&r in n}function U(e,t,n){let r=e;d["dot-notation"]||(t=[t.join(".")]),t.slice(0,-1).forEach((function(e){e=m(e),"object"==typeof r&&void 0===r[e]&&(r[e]={}),"object"!=typeof r[e]||Array.isArray(r[e])?(Array.isArray(r[e])?r[e].push({}):r[e]=[r[e],{}],r=r[e][r[e].length-1]):r=r[e]}));const a=m(t[t.length-1]),s=V(t.join("."),S.arrays),i=Array.isArray(n);let o=d["duplicate-arguments-array"];!o&&V(a,S.nargs)&&(o=!0,(!Y(r[a])&&1===S.nargs[a]||Array.isArray(r[a])&&r[a].length===S.nargs[a])&&(r[a]=void 0)),n===u()?r[a]=u(r[a]):Array.isArray(r[a])?o&&s&&i?r[a]=d["flatten-duplicate-arrays"]?r[a].concat(n):(Array.isArray(r[a][0])?r[a]:[r[a]]).concat([n]):o||Boolean(s)!==Boolean(i)?r[a]=r[a].concat([n]):r[a]=n:void 0===r[a]&&s?r[a]=i?n:[n]:!o||void 0===r[a]||V(a,S.counts)||V(a,S.bools)?r[a]=n:r[a]=[r[a],n]}function V(e,t){const n=[].concat(S.aliases[e]||[],e),r=Object.keys(t),a=n.find((e=>r.includes(e)));return!!a&&t[a]}function B(e){const t=Object.keys(S);return[].concat(t.map((e=>S[e]))).some((function(t){return Array.isArray(t)?t.includes(e):t[e]}))}function q(e){return d["unknown-options-as-args"]&&function(e){return!(e=e.replace(/^-{3,}/,"--")).match(A)&&(!function(e){if(e.match(A)||!e.match(/^-[^-]+/))return!1;let t,n=!0;const r=e.slice(1).split("");for(let a=0;a<r.length;a++){if(t=e.slice(a+2),!B(r[a])){n=!1;break}if(r[a+1]&&"="===r[a+1]||"-"===t||/[A-Za-z]/.test(r[a])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(t)||r[a+1]&&r[a+1].match(/\W/))break}return n}(e)&&!function(e,...t){return[].concat(...t).some((function(t){const n=e.match(t);return n&&B(n[1])}))}(e,/^-+([^=]+?)=[\s\S]*$/,O,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/))}(e)}function G(e){return V(e,S.bools)||V(e,S.counts)||!(`${e}`in h)?(t=function(e){let t=r.BOOLEAN;return V(e,S.strings)?t=r.STRING:V(e,S.numbers)?t=r.NUMBER:V(e,S.bools)?t=r.BOOLEAN:V(e,S.arrays)&&(t=r.ARRAY),t}(e),{[r.BOOLEAN]:!0,[r.STRING]:"",[r.NUMBER]:void 0,[r.ARRAY]:[]}[t]):h[e];var t}function Y(e){return void 0===e}return D(N,!0),D(N,!1),function(e){const t=Object.create(null);k(t,S.aliases,h),Object.keys(S.configs).forEach((function(n){const r=e[n]||t[n];if(r)try{let e=null;const t=c.resolve(c.cwd(),r),a=S.configs[n];if("function"==typeof a){try{e=a(t)}catch(t){e=t}if(e instanceof Error)return void(_=e)}else e=c.require(t);j(e)}catch(t){"PermissionDenied"===t.name?_=t:e[n]&&(_=Error(b("Invalid JSON config file: %s",r)))}}))}(N),void 0!==f&&f.forEach((function(e){j(e)})),k(N,S.aliases,h,!0),function(e){let t;const n=new Set;Object.keys(e).forEach((function(r){if(!n.has(r)&&(t=V(r,S.coercions),"function"==typeof t))try{const a=M(r,t(e[r]));[].concat(S.aliases[r]||[],r).forEach((t=>{n.add(t),e[t]=a}))}catch(e){_=e}}))}(N),d["set-placeholder-key"]&&function(e){S.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(N),Object.keys(S.counts).forEach((function(e){F(N,e.split("."))||L(e,0)})),g&&x.length&&(N[$]=[]),x.forEach((function(e){N[$].push(e)})),d["camel-case-expansion"]&&d["strip-dashed"]&&Object.keys(N).filter((e=>"--"!==e&&e.includes("-"))).forEach((e=>{delete N[e]})),d["strip-aliased"]&&[].concat(...Object.keys(p).map((e=>p[e]))).forEach((e=>{d["camel-case-expansion"]&&e.includes("-")&&delete N[e.split(".").map((e=>i(e))).join(".")],delete N[e]})),{aliases:Object.assign({},S.aliases),argv:Object.assign(T,N),configuration:d,defaulted:Object.assign({},y),error:_,newAliases:Object.assign({},E)}}}({cwd:v.cwd,env:()=>E,format:a.format,normalize:s.normalize,resolve:s.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return JSON.parse((0,f.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),b=function(e,t){return y.parse(e.slice(),t).argv};b.detailed=function(e,t){return y.parse(e.slice(),t)},b.camelCase=i,b.decamelize=o,b.looksLikeNumber=l},25530:(e,t,n)=>{n.d(t,{MU:()=>s,Nw:()=>a,rd:()=>i});var r=n(84591);r.ACCUMULATORS,r.ADL,r.ANY_COLLECTION_NAMESPACE,r.ANY_NAMESPACE,r.ATLAS;const a=r.ATLAS_SEARCH_TEMPLATES,s=r.ATLAS_VECTOR_SEARCH_TEMPLATE,i=(r.BSON_TYPES,r.BSON_TYPE_ALIASES,r.COLLECTION,r.CONVERSION_OPERATORS,r.DATABASE,r.ENVS,r.EXPRESSION_OPERATORS,r.FULL_SCAN_STAGES,r.JSON_SCHEMA,r.ON_PREM,r.OUT_STAGES,r.QUERY_OPERATORS,r.REQUIRED_AS_FIRST_STAGE,r.STAGE_OPERATORS,r.STAGE_OPERATOR_NAMES,r.SYSTEM_VARIABLES,r.TIME_SERIES,r.VALIDATION_TEMPLATE,r.VIEW,r.VIEW_PIPELINE_UTILS);r.getFilteredCompletions,r.wrapField},25546:(e,t,n)=>{const r=n(66283),a=n(38366),s=n(61607);e.exports=(e,t)=>{e=new a(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const a=e.set[t];let i=null;a.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!s(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!s(n,i)||(n=i)}return n&&e.test(n)?n:null}},25746:(e,t,n)=>{n.d(t,{Ay:()=>a,X6:()=>s});var r=n(14597);const a=r.Ay,s=r.X6;r.qg},25812:(e,t,n)=>{const r=n(77203);e.exports=(e,t,n)=>0!==r(e,t,n)},27225:(e,t,n)=>{const r=n(44455);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},27629:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ParseMode=void 0,t.buildOptions=function(e){return{...o,...i(e&&e.mode||n.Strict),...e}},function(e){e.Strict="strict",e.Extended="extended",e.Loose="loose"}(n||(t.ParseMode=n={}));const r={allowMethods:!1,allowComments:!1},a={allowMethods:!0},s={allowMethods:!0,allowComments:!0};function i(e){switch(e){case n.Strict:return r;case n.Extended:return a;case n.Loose:return s}}const o={mode:n.Strict,...r}},28131:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QUERY_OPERATORS=void 0,t.QUERY_OPERATORS=[{name:"$all",value:"$all",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$and",value:"$and",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$bitsAllClear",value:"$bitsAllClear",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAllSet",value:"$bitsAllSet",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAnyClear",value:"$bitsAnyClear",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAnySet",value:"$bitsAnySet",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$comment",value:"$comment",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$elemMatch",value:"$elemMatch",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$eq",value:"$eq",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$exists",value:"$exists",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$expr",value:"$expr",score:1,meta:"query",version:"3.6.0",geospatial:!1},{name:"$geoIntersects",value:"$geoIntersects",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$geoWithin",value:"$geoWithin",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$gt",value:"$gt",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$gte",value:"$gte",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$in",value:"$in",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$jsonSchema",value:"$jsonSchema",score:1,meta:"query",version:"3.6.0",geospatial:!1},{name:"$lt",value:"$lt",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$lte",value:"$lte",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$mod",value:"$mod",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$ne",value:"$ne",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$near",value:"$near",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$nearSphere",value:"$nearSphere",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$nin",value:"$nin",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$not",value:"$not",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$nor",value:"$nor",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$or",value:"$or",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$regex",value:"$regex",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$size",value:"$size",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$slice",value:"$slice",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$text",value:"$text",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$type",value:"$type",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$where",value:"$where",score:1,meta:"query",version:"2.2.0",geospatial:!1}]},28141:(e,t,n)=>{const r=n(32674);e.exports=(e,t,n)=>r(e,t,n)<0},28742:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},28892:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},28968:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QUERY_OPERATORS=void 0,t.QUERY_OPERATORS=[{name:"$all",value:"$all",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$and",value:"$and",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$bitsAllClear",value:"$bitsAllClear",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAllSet",value:"$bitsAllSet",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAnyClear",value:"$bitsAnyClear",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAnySet",value:"$bitsAnySet",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$comment",value:"$comment",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$elemMatch",value:"$elemMatch",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$eq",value:"$eq",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$exists",value:"$exists",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$expr",value:"$expr",score:1,meta:"query",version:"3.6.0",geospatial:!1},{name:"$geoIntersects",value:"$geoIntersects",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$geoWithin",value:"$geoWithin",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$gt",value:"$gt",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$gte",value:"$gte",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$in",value:"$in",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$jsonSchema",value:"$jsonSchema",score:1,meta:"query",version:"3.6.0",geospatial:!1},{name:"$lt",value:"$lt",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$lte",value:"$lte",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$mod",value:"$mod",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$ne",value:"$ne",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$near",value:"$near",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$nearSphere",value:"$nearSphere",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$nin",value:"$nin",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$not",value:"$not",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$nor",value:"$nor",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$or",value:"$or",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$regex",value:"$regex",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$size",value:"$size",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$slice",value:"$slice",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$text",value:"$text",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$type",value:"$type",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$where",value:"$where",score:1,meta:"query",version:"2.2.0",geospatial:!1}]},29087:(e,t,n)=>{const r=n(50066),a=n(72857),s=n(18106);e.exports=(e,t)=>{e=new a(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const a=e.set[t];let i=null;a.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!s(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!s(n,i)||(n=i)}return n&&e.test(n)?n:null}},29299:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapField=t.getFilteredCompletions=void 0,a(n(3012),t),a(n(91871),t),a(n(77973),t),a(n(80003),t),a(n(1276),t),a(n(30797),t),a(n(17497),t),a(n(39560),t),a(n(60679),t),a(n(99625),t),a(n(71174),t),a(n(17555),t);var s=n(8117);Object.defineProperty(t,"getFilteredCompletions",{enumerable:!0,get:function(){return s.getFilteredCompletions}}),Object.defineProperty(t,"wrapField",{enumerable:!0,get:function(){return s.wrapField}}),a(n(33907),t),a(n(95153),t)},29385:(e,t,n)=>{var r=n(65994).e;const a="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=a},30044:(e,t,n)=>{const r=n(34219);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},30403:(e,t,n)=>{const r=n(83586);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},30452:(e,t,n)=>{const r=n(9350);e.exports=(e,t)=>new r(e,t).minor},30483:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.COLLATION_OPTIONS=void 0,t.COLLATION_OPTIONS={locale:["af","sq","am","ar","ar@collation=compat","hy","as","az","az@collation=search","be","bn","bn@collation=traditional","bs","bs@collation=search","bs_Cyrl","bg","my","ca","ca@collation=search","chr","zh","zh@collation=big5han","zh@collation=gb2312han","zh@collation=pinyin","zh@collation=unihan","zh@collation=zhuyin","zh_Hant","zh_Hant@collation=stroke","hr","hr@collation=search","cs","cs@collation=search","da","da@collation=search","nl","dz","en","en_US","en_US_POSIX","eo","et","ee","fo","fil","fi_FI","fi_FI@collation=search","fi_FI@collation=traditional","fr","fr_CA","gl","gl@collation=search","ka","de","de@collation=search","de@collation=eor","de@collation=phonebook","de_AT","de_AT@collation=phonebook","el","gu","ha","haw","he","he@collation=search","hi","hu","is","is@collation=search","ig","smn","smn@collation=search","id","ga","it","ja","ja@collation=unihan","kl","kl@collation=search","kn","kn@collation=traditional","kk","km","kok","ko","ko@collation=search","ko@collation=searchjl","ko@collation=unihan","ky","lk","lo","lv","li","li@collation=phonetic","lt","dsb","lb","mk","ms","ml","mt","mr","mn","ne","se","se@collation=search","nb","nb@collation=search","nn","nn@collation=search","or","om","ps","fa","fa_AF","pl","pt","pa","ro","ru","sr","sr_Latn","sr_Latn@collation=search","si","si@collation=dictionary","sk","sk@collation=search","sl","es","es@collation=search","es@collation=traditional","sw","sv","sv@collation=search","ta","te","th","bo","to","tr","tr@collation=search","uk","hsb","ur","ug","vi","vi@collation=traditional","wae","cy","yi","yi@collation=search","yo","zu","simple"],strength:[1,2,3,4,5],caseLevel:[!0,!1],caseFirst:["upper","lower","off"],numericOrdering:[!0,!1],alternate:["non-ignorable","shifted"],maxVariable:[!0,!1],backwards:[!0,!1],normalization:[!0,!1]}},30629:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SYSTEM_VARIABLES=void 0,t.SYSTEM_VARIABLES=[{name:"$$NOW",value:"$$NOW",score:1,meta:"variable:system",version:"4.2.0",description:"A variable that returns the current datetime value. NOW returns the same value for all members of the deployment and remains the same throughout all stages of the aggregation pipeline."},{name:"$$CLUSTER_TIME",value:"$$CLUSTER_TIME",score:1,meta:"variable:system",version:"4.2.0",description:"A variable that returns the current timestamp value. CLUSTER_TIME is only available on replica sets and sharded clusters. CLUSTER_TIME returns the same value for all members of the deployment and remains the same throughout all stages of the pipeline."},{name:"$$ROOT",value:"$$ROOT",score:1,meta:"variable:system",version:"2.4.0",description:"References the root document, i.e. the top-level document, currently being processed in the aggregation pipeline stage."},{name:"$$CURRENT",value:"$$CURRENT",score:1,meta:"variable:system",version:"2.4.0",description:"References the start of the field path being processed in the aggregation pipeline stage. Unless documented otherwise, all stages start with CURRENT the same as ROOT. CURRENT is modifiable. However, since `$<field>` is equivalent to `$$CURRENT.<field>`, rebinding CURRENT changes the meaning of `$` accesses."},{name:"$$REMOVE",value:"$$REMOVE",score:1,meta:"variable:system",version:"3.6.0",description:"A variable which evaluates to the missing value. Allows for the conditional exclusion of fields. In a `$project`, a field set to the variable REMOVE is excluded from the output."},{name:"$$DESCEND",value:"$$DESCEND",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$PRUNE",value:"$$PRUNE",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$KEEP",value:"$$KEEP",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$SEARCH_META",value:"$$SEARCH_META",score:1,meta:"variable:system",version:"5.0.0",description:"A variable that stores the metadata results of an Atlas Search query. In all supported aggregation pipeline stages, a field set to the variable SEARCH_META returns the metadata results for the query. For an example of its usage, see Atlas Search facet and count."},{name:"$$USER_ROLES",value:"$$USER_ROLES",score:1,meta:"variable:system",version:"7.0.0",description:"A variable that stores the role names of the authenticated user running the command."}]},30797:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EXPRESSION_OPERATORS=void 0,t.EXPRESSION_OPERATORS=[{name:"$abs",value:"$abs",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$accumulator",value:"$accumulator",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$add",value:"$add",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$allElementsTrue",value:"$allElementsTrue",score:1,meta:"expr:set",version:"2.6.0"},{name:"$and",value:"$and",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$anyElementTrue",value:"$anyElementTrue",score:1,meta:"expr:set",version:"2.6.0"},{name:"$arrayElemAt",value:"$arrayElemAt",score:1,meta:"expr:array",version:"3.2.0"},{name:"$arrayToObject",value:"$arrayToObject",score:1,meta:"expr:array",version:"3.4.4"},{name:"$binarySize",value:"$binarySize",score:1,meta:"expr:obj",version:"4.4.0"},{name:"$bsonSize",value:"$bsonSize",score:1,meta:"expr:obj",version:"4.4.0"},{name:"$ceil",value:"$ceil",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$cmp",value:"$cmp",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$concat",value:"$concat",score:1,meta:"expr:string",version:"2.4.0"},{name:"$concatArrays",value:"$concatArrays",score:1,meta:"expr:array",version:"3.2.0"},{name:"$cond",value:"$cond",score:1,meta:"expr:cond",version:"2.6.0"},{name:"$dateAdd",value:"$dateAdd",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateDiff",value:"$dateDiff",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateFromParts",value:"$dateFromParts",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateFromString",value:"$dateFromString",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateSubtract",value:"$dateSubtract",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateToParts",value:"$dateToParts",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateToString",value:"$dateToString",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateTrunc",value:"$dateTrunc",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dayOfMonth",value:"$dayOfMonth",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dayOfWeek",value:"$dayOfWeek",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dayOfYear",value:"$dayOfYear",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dateToString",value:"$dateToString",score:1,meta:"expr:date",version:"3.0.0"},{name:"$divide",value:"$divide",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$eq",value:"$eq",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$exp",value:"$exp",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$filter",value:"$filter",score:1,meta:"expr:array",version:"3.2.0"},{name:"$first",value:"$first",score:1,meta:"expr:array",version:"4.4.0"},{name:"$floor",value:"$floor",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$function",value:"$function",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$getField",value:"$getField",score:1,meta:"expr:get",version:"5.0.0"},{name:"$gt",value:"$gt",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$gte",value:"$gte",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$hour",value:"$hour",score:1,meta:"expr:date",version:"2.2.0"},{name:"$ifNull",value:"$ifNull",score:1,meta:"expr:cond",version:"2.2.0"},{name:"$in",value:"$in",score:1,meta:"expr:array",version:"3.4.0"},{name:"$indexOfArray",value:"$indexOfArray",score:1,meta:"expr:array",version:"3.4.0"},{name:"$indexOfBytes",value:"$indexOfBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$indexOfCP",value:"$indexOfCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$isArray",value:"$isArray",score:1,meta:"expr:array",version:"3.2.0"},{name:"$isNumber",value:"$isNumber",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$isoDayOfWeek",value:"$isoDayOfWeek",score:1,meta:"expr:date",version:"3.4.0"},{name:"$isoWeek",value:"$isoWeek",score:1,meta:"expr:date",version:"3.4.0"},{name:"$isoWeekYear",value:"$isoWeekYear",score:1,meta:"expr:date",version:"3.4.0"},{name:"$last",value:"$last",score:1,meta:"expr:array",version:"4.4.0"},{name:"$let",value:"$let",score:1,meta:"expr:var",version:"2.6.0"},{name:"$literal",value:"$literal",score:1,meta:"expr:literal",version:"2.6.0"},{name:"$lt",value:"$lt",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$lt",value:"$lte",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$ln",value:"$ln",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$log",value:"$log",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$log10",value:"$log10",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$map",value:"$map",score:1,meta:"expr:array",version:"2.6.0"},{name:"$mergeObjects",value:"$mergeObjects",score:1,meta:"expr:obj",version:"3.6.0"},{name:"$meta",value:"$meta",score:1,meta:"expr:text",version:"2.6.0"},{name:"$millisecond",value:"$millisecond",score:1,meta:"expr:date",version:"2.4.0"},{name:"$minute",value:"$minute",score:1,meta:"expr:date",version:"2.2.0"},{name:"$mod",value:"$mod",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$month",value:"$month",score:1,meta:"expr:date",version:"2.2.0"},{name:"$multiply",value:"$multiply",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$new",value:"$new",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$not",value:"$not",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$objectToArray",value:"$objectToArray",score:1,meta:"expr:array",version:"3.4.4"},{name:"$or",value:"$or",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$pow",value:"$pow",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$range",value:"$range",score:1,meta:"expr:array",version:"3.4.0"},{name:"$reduce",value:"$reduce",score:1,meta:"expr:array",version:"3.4.0"},{name:"$regexFind",value:"$regexFind",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$regexFindAll",value:"$regexFindAll",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$regexMatch",value:"$regexMatch",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$replaceAll",value:"$replaceAll",score:1,meta:"expr:string",version:"4.4.0"},{name:"$replaceOne",value:"$replaceOne",score:1,meta:"expr:string",version:"4.4.0"},{name:"$reverseArray",value:"$reverseArray",score:1,meta:"expr:array",version:"3.4.0"},{name:"$second",value:"$second",score:1,meta:"expr:date",version:"2.2.0"},{name:"$setDifference",value:"$setDifference",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setEquals",value:"$setEquals",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setIntersection",value:"$setIntersection",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setIsSubset",value:"$setIsSubset",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setUnion",value:"$setUnion",score:1,meta:"expr:set",version:"2.6.0"},{name:"$similarityCosine",value:"$similarityCosine",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$similarityDotProduct",value:"$similarityDotProduct",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$similarityEuclidean",value:"$similarityEuclidean",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$size",value:"$size",score:1,meta:"expr:array",version:"2.6.0"},{name:"$slice",value:"$slice",score:1,meta:"expr:array",version:"3.2.0"},{name:"$sortArray",value:"$sortArray",score:1,meta:"expr:array",version:"5.2.0"},{name:"$split",value:"$split",score:1,meta:"expr:string",version:"3.4.0"},{name:"$sqrt",value:"$sqrt",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$strcasecmp",value:"$strcasecmp",score:1,meta:"expr:string",version:"2.2.0"},{name:"$strLenBytes",value:"$strLenBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$strLenCP",value:"$strLenCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$substr",value:"$substr",score:1,meta:"expr:string",version:"2.2.0",deprecated:"3.4.0",replacement:"$substrBytes"},{name:"$substrBytes",value:"$substrBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$substrCP",value:"$substrCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$subtract",value:"$subtract",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$switch",value:"$switch",score:1,meta:"expr:cond",version:"3.4.0"},{name:"$toHashedIndexKey",value:"$toHashedIndexKey",score:1,meta:"expr:arith",version:"4.2.24"},{name:"$toLower",value:"$toLower",score:1,meta:"expr:string",version:"2.2.0"},{name:"$toUpper",value:"$toUpper",score:1,meta:"expr:string",version:"2.2.0"},{name:"$tsSecond",value:"$tsSecond",score:1,meta:"expr:date",version:"5.1.0"},{name:"$tsIncrement",value:"$tsIncrement",score:1,meta:"expr:date",version:"5.1.0"},{name:"$trunc",value:"$trunc",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$type",value:"$type",score:1,meta:"expr:type",version:"3.4.0"},{name:"$week",value:"$week",score:1,meta:"expr:date",version:"2.2.0"},{name:"$year",value:"$year",score:1,meta:"expr:date",version:"2.2.0"},{name:"$zip",value:"$zip",score:1,meta:"expr:array",version:"3.4.0"},{name:"$bitAnd",value:"$bitAnd",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitOr",value:"$bitOr",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitXor",value:"$bitXor",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitNot",value:"$bitNot",score:1,meta:"expr:bit",version:"7.0.0"}]},31145:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},31993:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checkTree=void 0;const r=n(63013);class a{constructor(e){this.options=e,this.checkSafeCall=e=>{const t=this.options.allowMethods;if("Identifier"===e.callee.type)return r.GLOBAL_FUNCTIONS.indexOf(e.callee.name)>=0&&e.arguments.every(this.checkSafeExpression);if(t&&"MemberExpression"===e.callee.type){const t=e.callee.object,n=e.callee.property;if("Identifier"===t.type&&"Identifier"===n.type)return(0,r.isMethodWhitelisted)(t.name,n.name)&&e.arguments.every(this.checkSafeExpression);if("NewExpression"!==t.type&&"CallExpression"!==t.type||"Identifier"!==t.callee.type)return this.checkSafeExpression(t)&&e.arguments.every(this.checkSafeExpression);{const a=t.callee;return(0,r.isMethodWhitelisted)(a.name,n.name)&&e.arguments.every(this.checkSafeExpression)}}return!1},this.checkSafeExpression=e=>{switch(e?.type){case"Identifier":return Object.prototype.hasOwnProperty.call(r.GLOBALS,e.name);case"Literal":return!0;case"ArrayExpression":return e.elements.every(this.checkSafeExpression);case"UnaryExpression":return this.checkSafeExpression(e.argument);case"BinaryExpression":return this.checkSafeExpression(e.left)&&this.checkSafeExpression(e.right);case"CallExpression":case"NewExpression":return this.checkSafeCall(e);case"ObjectExpression":return e.properties.every((e=>!("computed"in e&&e.computed||"method"in e&&e.method)&&!(!("key"in e)||!["Literal","Identifier"].includes(e.key.type))&&"value"in e&&(["FunctionExpression","ArrowFunctionExpression"].includes(e.value.type)||this.checkSafeExpression(e.value))));default:return!1}}}}t.checkTree=(e,t)=>"Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type&&new a(t).checkSafeExpression(e.body[0].expression)},32654:(e,t,n)=>{const r=n(38366);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},32674:(e,t,n)=>{const r=n(50066);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},32910:(e,t,n)=>{const r=n(48381),a=n(55141),{ANY:s}=a,i=n(20332),o=n(43301),l=n(58809),c=n(20038),u=n(66239),m=n(54506);e.exports=(e,t,n,p)=>{let d,h,f,v,g;switch(e=new r(e,p),t=new i(t,p),n){case">":d=l,h=u,f=c,v=">",g=">=";break;case"<":d=c,h=m,f=l,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let i=null,o=null;if(r.forEach((e=>{e.semver===s&&(e=new a(">=0.0.0")),i=i||e,o=o||e,d(e.semver,i.semver,p)?i=e:f(e.semver,o.semver,p)&&(o=e)})),i.operator===v||i.operator===g)return!1;if((!o.operator||o.operator===v)&&h(e,o.semver))return!1;if(o.operator===g&&f(e,o.semver))return!1}return!0}},32924:(e,t,n)=>{const r=n(41694);e.exports=(e,t)=>new r(e,t).minor},32939:(e,t,n)=>{const r=n(66283);e.exports=(e,t)=>new r(e,t).minor},33629:(e,t,n)=>{const r=/\s+/g;class a{constructor(e,t){if(t=i(t),e instanceof a)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new a(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&$(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&v))+":"+e,n=s.get(t);if(n)return n;const r=this.options.loose,a=r?u[m.HYPHENRANGELOOSE]:u[m.HYPHENRANGE];e=e.replace(a,I(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(u[m.COMPARATORTRIM],p),l("comparator trim",e),e=e.replace(u[m.TILDETRIM],d),l("tilde trim",e),e=e.replace(u[m.CARETTRIM],h),l("caret trim",e);let i=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));r&&(i=i.filter((e=>(l("loose invalid filter",e,this.options),!!e.match(u[m.COMPARATORLOOSE]))))),l("range list",i);const c=new Map,$=i.map((e=>new o(e,this.options)));for(const e of $){if(g(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const E=[...c.values()];return s.set(t,E),E}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Range is required");return this.set.some((n=>E(n,t)&&e.set.some((e=>E(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(w(this.set[t],e,this.options))return!0;return!1}}e.exports=a;const s=new(n(92660)),i=n(34773),o=n(96506),l=n(52378),c=n(9350),{safeRe:u,t:m,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:h}=n(68752),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:v}=n(28892),g=e=>"<0.0.0-0"===e.value,$=e=>""===e.value,E=(e,t)=>{let n=!0;const r=e.slice();let a=r.pop();for(;n&&r.length;)n=r.every((e=>a.intersects(e,t))),a=r.pop();return n},y=(e,t)=>(l("comp",e,t),e=O(e,t),l("caret",e),e=S(e,t),l("tildes",e),e=x(e,t),l("xrange",e),e=T(e,t),l("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{const n=t.loose?u[m.TILDELOOSE]:u[m.TILDE];return e.replace(n,((t,n,r,a,s)=>{let i;return l("tilde",e,t,n,r,a,s),b(n)?i="":b(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:b(a)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(l("replaceTilde pr",s),i=`>=${n}.${r}.${a}-${s} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,l("tilde return",i),i}))},O=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{l("caret",e,t);const n=t.loose?u[m.CARETLOOSE]:u[m.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,s,i)=>{let o;return l("caret",e,t,n,a,s,i),b(n)?o="":b(a)?o=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(s)?o="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:i?(l("replaceCaret pr",i),o="0"===n?"0"===a?`>=${n}.${a}.${s}-${i} <${n}.${a}.${+s+1}-0`:`>=${n}.${a}.${s}-${i} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${s}-${i} <${+n+1}.0.0-0`):(l("no pr"),o="0"===n?"0"===a?`>=${n}.${a}.${s}${r} <${n}.${a}.${+s+1}-0`:`>=${n}.${a}.${s}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${s} <${+n+1}.0.0-0`),l("caret return",o),o}))},x=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map((e=>N(e,t))).join(" ")),N=(e,t)=>{e=e.trim();const n=t.loose?u[m.XRANGELOOSE]:u[m.XRANGE];return e.replace(n,((n,r,a,s,i,o)=>{l("xRange",e,n,r,a,s,i,o);const c=b(a),u=c||b(s),m=u||b(i),p=m;return"="===r&&p&&(r=""),o=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(s=0),i=0,">"===r?(r=">=",u?(a=+a+1,s=0,i=0):(s=+s+1,i=0)):"<="===r&&(r="<",u?a=+a+1:s=+s+1),"<"===r&&(o="-0"),n=`${r+a}.${s}.${i}${o}`):u?n=`>=${a}.0.0${o} <${+a+1}.0.0-0`:m&&(n=`>=${a}.${s}.0${o} <${a}.${+s+1}.0-0`),l("xRange return",n),n}))},T=(e,t)=>(l("replaceStars",e,t),e.trim().replace(u[m.STAR],"")),R=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?m.GTE0PRE:m.GTE0],"")),I=e=>(t,n,r,a,s,i,o,l,c,u,m,p)=>`${n=b(r)?"":b(a)?`>=${r}.0.0${e?"-0":""}`:b(s)?`>=${r}.${a}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(m)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${m}-${p}`:e?`<${c}.${u}.${+m+1}-0`:`<=${l}`}`.trim(),w=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},33907:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ATLAS_VECTOR_SEARCH_TEMPLATE=t.ATLAS_SEARCH_TEMPLATES=void 0,t.ATLAS_SEARCH_TEMPLATES=[{name:"Dynamic field mappings",snippet:'{\n "mappings": {\n "dynamic": true\n }\n}',version:"4.4.0"},{name:"Static field mappings",snippet:'{\n "mappings": {\n "dynamic": false,\n "fields": {\n ${1:<string field name>}: {\n "type": "string"\n },\n ${2:<number field name>}: {\n "type": "number"\n },\n ${3:<date field name>}: {\n "type": "date"\n },\n ${4:<geo field name>}: {\n "type": "geo"\n },\n } \n }\n}',version:"4.4.0"},{name:"Text field mappings",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<string field name>}: [\n {\n // Enables text queries\n "type": "string"\n },\n {\n // Enables autocomplete queries\n "type": "autocomplete"\n \n },\n {\n // Enables sorting\n "type": "token"\n }\n ] \n } \n }\n}',version:"4.4.0"},{name:"Facet field mappings",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<number field name for faceting>}: [\n {\n "type": "numberFacet"\n },\n {\n "type": "number"\n },\n ],\n ${2:<date field name for faceting>}: [\n {\n "type": "dateFacet"\n }\n {\n "type": "date"\n }\n ],\n ${3:<string field name for faceting>}: [\n {\n "type": "stringFacet"\n },\n {\n "type": "string",\n "analyzer": "lucene.keyword"\n },\n ],\n } \n }\n}',version:"4.4.0"},{name:"KNN Vector field mapping",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<vector embedding field name>}: [\n {\n "type": "knnVector",\n "dimensions": ${2:<number of dimensions>},\n "similarity": "${3:<euclidean | cosine | dotProduct>}"\n } \n ] \n } \n }\n}',version:"4.4.0"}],t.ATLAS_VECTOR_SEARCH_TEMPLATE={name:"Vector Search default template",snippet:'{\n "fields": [{\n "type": "vector",\n "path": "${1:<field name to index>}",\n "numDimensions": ${2:<number of dimensions>},\n "similarity": "${3:<euclidean | cosine | dotProduct>}"\n }]\n}',version:"4.4.0"}},34218:(e,t,n)=>{const r=n(41694),a=n(71333);e.exports=(e,t,n)=>{let s=null,i=null,o=null;try{o=new a(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},34219:(e,t,n)=>{const r=n(48381);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},34335:(e,t,n)=>{const r=n(20332),a=n(55141),{ANY:s}=a,i=n(43301),o=n(77203),l=[new a(">=0.0.0-0")],c=[new a(">=0.0.0")],u=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=n.includePrerelease?l:c}if(1===t.length&&t[0].semver===s){if(n.includePrerelease)return!0;t=c}const r=new Set;let a,u,d,h,f,v,g;for(const t of e)">"===t.operator||">="===t.operator?a=m(a,t,n):"<"===t.operator||"<="===t.operator?u=p(u,t,n):r.add(t.semver);if(r.size>1)return null;if(a&&u){if(d=o(a.semver,u.semver,n),d>0)return null;if(0===d&&(">="!==a.operator||"<="!==u.operator))return null}for(const e of r){if(a&&!i(e,String(a),n))return null;if(u&&!i(e,String(u),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}let $=!(!u||n.includePrerelease||!u.semver.prerelease.length)&&u.semver,E=!(!a||n.includePrerelease||!a.semver.prerelease.length)&&a.semver;$&&1===$.prerelease.length&&"<"===u.operator&&0===$.prerelease[0]&&($=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,v=v||"<"===e.operator||"<="===e.operator,a)if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),">"===e.operator||">="===e.operator){if(h=m(a,e,n),h===e&&h!==a)return!1}else if(">="===a.operator&&!i(a.semver,String(e),n))return!1;if(u)if($&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===$.major&&e.semver.minor===$.minor&&e.semver.patch===$.patch&&($=!1),"<"===e.operator||"<="===e.operator){if(f=p(u,e,n),f===e&&f!==u)return!1}else if("<="===u.operator&&!i(u.semver,String(e),n))return!1;if(!e.operator&&(u||a)&&0!==d)return!1}return!(a&&v&&!u&&0!==d||u&&g&&!a&&0!==d||E||$)},m=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let a=!1;e:for(const r of e.set){for(const e of t.set){const t=u(r,e,n);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},34773:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},34889:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BSON_TYPES=void 0,t.BSON_TYPES=[{name:"Code",value:"Code",label:"Code",score:1,meta:"bson",version:"0.0.0",description:"BSON Code type",snippet:"Code('${1:code}')"},{name:"ObjectId",value:"ObjectId",label:"ObjectId",score:1,meta:"bson",version:"0.0.0",description:"BSON ObjectId type",snippet:"ObjectId('${1:id}')"},{name:"Binary",value:"Binary",label:"Binary",score:1,meta:"bson",version:"0.0.0",description:"BSON Binary type",snippet:"Binary('${1:data}', '${2:subType}')"},{name:"DBRef",value:"DBRef",label:"DBRef",score:1,meta:"bson",version:"0.0.0",description:"BSON DBRef type",snippet:"DBRef('${1:ns}', '${2:oid}')"},{name:"Timestamp",value:"Timestamp",label:"Timestamp",score:1,meta:"bson",version:"0.0.0",description:"BSON Timestamp type",snippet:"Timestamp(${1:low}, ${2:high})"},{name:"NumberInt",value:"NumberInt",label:"NumberInt",score:1,meta:"bson",version:"0.0.0",description:"BSON 32 bit Integer type",snippet:"NumberInt(${1:value})"},{name:"NumberLong",value:"NumberLong",label:"NumberLong",score:1,meta:"bson",version:"0.0.0",description:"BSON 64 but Integer type",snippet:"NumberLong(${1:value})"},{name:"NumberDecimal",value:"NumberDecimal",label:"NumberDecimal",score:1,meta:"bson",version:"3.4.0",description:"BSON Decimal128 type",snippet:"NumberDecimal('${1:value}')"},{name:"MaxKey",value:"MaxKey",label:"MaxKey",score:1,meta:"bson",version:"0.0.0",description:"BSON MaxKey type",snippet:"MaxKey()"},{name:"MinKey",value:"MinKey",label:"MinKey",score:1,meta:"bson",version:"0.0.0",description:"BSON MinKey type",snippet:"MinKey()"},{name:"ISODate",value:"ISODate",label:"ISODate",score:1,meta:"bson",version:"0.0.0",description:"BSON Date type",snippet:"ISODate('${1:date}')"},{name:"RegExp",value:"RegExp",label:"RegExp",score:1,meta:"bson",version:"0.0.0",description:"BSON Regex type",snippet:"RegExp('${1:source}', '${2:opts}')"}]},35647:(e,t,n)=>{const r=n(68752),a=n(28892),s=n(9350),i=n(80661),o=n(17914),l=n(40447),c=n(24320),u=n(1025),m=n(82214),p=n(90216),d=n(30452),h=n(58395),f=n(94715),v=n(99430),g=n(51456),$=n(62525),E=n(44455),y=n(27225),b=n(85623),S=n(42734),A=n(63825),O=n(53831),_=n(42997),x=n(66135),N=n(90898),T=n(39149),R=n(84112),I=n(96506),w=n(33629),L=n(52992),P=n(52189),C=n(60098),M=n(15160),j=n(88099),D=n(44948),k=n(57681),F=n(62921),U=n(69904),V=n(89834),B=n(59263),q=n(45006);e.exports={parse:o,valid:l,clean:c,inc:u,diff:m,major:p,minor:d,patch:h,prerelease:f,compare:v,rcompare:g,compareLoose:$,compareBuild:E,sort:y,rsort:b,gt:S,lt:A,eq:O,neq:_,gte:x,lte:N,cmp:T,coerce:R,Comparator:I,Range:w,satisfies:L,toComparators:P,maxSatisfying:C,minSatisfying:M,minVersion:j,validRange:D,outside:k,gtr:F,ltr:U,intersects:V,simplifyRange:B,subset:q,SemVer:s,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},35735:(e,t,n)=>{const r=n(59441);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},36059:(e,t,n)=>{const r=n(77203);e.exports=(e,t,n)=>r(t,e,n)},36582:(e,t,n)=>{const r=n(71333),a=n(96082),{ANY:s}=a,i=n(9480),o=n(40289),l=[new a(">=0.0.0-0")],c=[new a(">=0.0.0")],u=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=n.includePrerelease?l:c}if(1===t.length&&t[0].semver===s){if(n.includePrerelease)return!0;t=c}const r=new Set;let a,u,d,h,f,v,g;for(const t of e)">"===t.operator||">="===t.operator?a=m(a,t,n):"<"===t.operator||"<="===t.operator?u=p(u,t,n):r.add(t.semver);if(r.size>1)return null;if(a&&u){if(d=o(a.semver,u.semver,n),d>0)return null;if(0===d&&(">="!==a.operator||"<="!==u.operator))return null}for(const e of r){if(a&&!i(e,String(a),n))return null;if(u&&!i(e,String(u),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}let $=!(!u||n.includePrerelease||!u.semver.prerelease.length)&&u.semver,E=!(!a||n.includePrerelease||!a.semver.prerelease.length)&&a.semver;$&&1===$.prerelease.length&&"<"===u.operator&&0===$.prerelease[0]&&($=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,v=v||"<"===e.operator||"<="===e.operator,a)if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),">"===e.operator||">="===e.operator){if(h=m(a,e,n),h===e&&h!==a)return!1}else if(">="===a.operator&&!i(a.semver,String(e),n))return!1;if(u)if($&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===$.major&&e.semver.minor===$.minor&&e.semver.patch===$.patch&&($=!1),"<"===e.operator||"<="===e.operator){if(f=p(u,e,n),f===e&&f!==u)return!1}else if("<="===u.operator&&!i(u.semver,String(e),n))return!1;if(!e.operator&&(u||a)&&0!==d)return!1}return!(a&&v&&!u&&0!==d||u&&g&&!a&&0!==d||E||$)},m=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let a=!1;e:for(const r of e.set){for(const e of t.set){const t=u(r,e,n);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},36719:(e,t,n)=>{const r=n(66283);e.exports=(e,t)=>new r(e,t).major},36744:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EXPRESSION_OPERATORS=void 0,t.EXPRESSION_OPERATORS=[{name:"$abs",value:"$abs",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$accumulator",value:"$accumulator",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$add",value:"$add",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$allElementsTrue",value:"$allElementsTrue",score:1,meta:"expr:set",version:"2.6.0"},{name:"$and",value:"$and",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$anyElementTrue",value:"$anyElementTrue",score:1,meta:"expr:set",version:"2.6.0"},{name:"$arrayElemAt",value:"$arrayElemAt",score:1,meta:"expr:array",version:"3.2.0"},{name:"$arrayToObject",value:"$arrayToObject",score:1,meta:"expr:array",version:"3.4.4"},{name:"$binarySize",value:"$binarySize",score:1,meta:"expr:obj",version:"4.4.0"},{name:"$bsonSize",value:"$bsonSize",score:1,meta:"expr:obj",version:"4.4.0"},{name:"$ceil",value:"$ceil",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$cmp",value:"$cmp",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$concat",value:"$concat",score:1,meta:"expr:string",version:"2.4.0"},{name:"$concatArrays",value:"$concatArrays",score:1,meta:"expr:array",version:"3.2.0"},{name:"$cond",value:"$cond",score:1,meta:"expr:cond",version:"2.6.0"},{name:"$dateAdd",value:"$dateAdd",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateDiff",value:"$dateDiff",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateFromParts",value:"$dateFromParts",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateFromString",value:"$dateFromString",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateSubtract",value:"$dateSubtract",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateToParts",value:"$dateToParts",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateToString",value:"$dateToString",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateTrunc",value:"$dateTrunc",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dayOfMonth",value:"$dayOfMonth",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dayOfWeek",value:"$dayOfWeek",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dayOfYear",value:"$dayOfYear",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dateToString",value:"$dateToString",score:1,meta:"expr:date",version:"3.0.0"},{name:"$divide",value:"$divide",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$eq",value:"$eq",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$exp",value:"$exp",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$filter",value:"$filter",score:1,meta:"expr:array",version:"3.2.0"},{name:"$first",value:"$first",score:1,meta:"expr:array",version:"4.4.0"},{name:"$floor",value:"$floor",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$function",value:"$function",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$getField",value:"$getField",score:1,meta:"expr:get",version:"5.0.0"},{name:"$gt",value:"$gt",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$gte",value:"$gte",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$hour",value:"$hour",score:1,meta:"expr:date",version:"2.2.0"},{name:"$ifNull",value:"$ifNull",score:1,meta:"expr:cond",version:"2.2.0"},{name:"$in",value:"$in",score:1,meta:"expr:array",version:"3.4.0"},{name:"$indexOfArray",value:"$indexOfArray",score:1,meta:"expr:array",version:"3.4.0"},{name:"$indexOfBytes",value:"$indexOfBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$indexOfCP",value:"$indexOfCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$isArray",value:"$isArray",score:1,meta:"expr:array",version:"3.2.0"},{name:"$isNumber",value:"$isNumber",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$isoDayOfWeek",value:"$isoDayOfWeek",score:1,meta:"expr:date",version:"3.4.0"},{name:"$isoWeek",value:"$isoWeek",score:1,meta:"expr:date",version:"3.4.0"},{name:"$isoWeekYear",value:"$isoWeekYear",score:1,meta:"expr:date",version:"3.4.0"},{name:"$last",value:"$last",score:1,meta:"expr:array",version:"4.4.0"},{name:"$let",value:"$let",score:1,meta:"expr:var",version:"2.6.0"},{name:"$literal",value:"$literal",score:1,meta:"expr:literal",version:"2.6.0"},{name:"$lt",value:"$lt",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$lt",value:"$lte",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$ln",value:"$ln",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$log",value:"$log",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$log10",value:"$log10",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$map",value:"$map",score:1,meta:"expr:array",version:"2.6.0"},{name:"$mergeObjects",value:"$mergeObjects",score:1,meta:"expr:obj",version:"3.6.0"},{name:"$meta",value:"$meta",score:1,meta:"expr:text",version:"2.6.0"},{name:"$millisecond",value:"$millisecond",score:1,meta:"expr:date",version:"2.4.0"},{name:"$minute",value:"$minute",score:1,meta:"expr:date",version:"2.2.0"},{name:"$mod",value:"$mod",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$month",value:"$month",score:1,meta:"expr:date",version:"2.2.0"},{name:"$multiply",value:"$multiply",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$new",value:"$new",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$not",value:"$not",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$objectToArray",value:"$objectToArray",score:1,meta:"expr:array",version:"3.4.4"},{name:"$or",value:"$or",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$pow",value:"$pow",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$range",value:"$range",score:1,meta:"expr:array",version:"3.4.0"},{name:"$reduce",value:"$reduce",score:1,meta:"expr:array",version:"3.4.0"},{name:"$regexFind",value:"$regexFind",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$regexFindAll",value:"$regexFindAll",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$regexMatch",value:"$regexMatch",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$replaceAll",value:"$replaceAll",score:1,meta:"expr:string",version:"4.4.0"},{name:"$replaceOne",value:"$replaceOne",score:1,meta:"expr:string",version:"4.4.0"},{name:"$reverseArray",value:"$reverseArray",score:1,meta:"expr:array",version:"3.4.0"},{name:"$second",value:"$second",score:1,meta:"expr:date",version:"2.2.0"},{name:"$setDifference",value:"$setDifference",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setEquals",value:"$setEquals",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setIntersection",value:"$setIntersection",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setIsSubset",value:"$setIsSubset",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setUnion",value:"$setUnion",score:1,meta:"expr:set",version:"2.6.0"},{name:"$similarityCosine",value:"$similarityCosine",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$similarityDotProduct",value:"$similarityDotProduct",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$similarityEuclidean",value:"$similarityEuclidean",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$size",value:"$size",score:1,meta:"expr:array",version:"2.6.0"},{name:"$slice",value:"$slice",score:1,meta:"expr:array",version:"3.2.0"},{name:"$sortArray",value:"$sortArray",score:1,meta:"expr:array",version:"5.2.0"},{name:"$split",value:"$split",score:1,meta:"expr:string",version:"3.4.0"},{name:"$sqrt",value:"$sqrt",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$strcasecmp",value:"$strcasecmp",score:1,meta:"expr:string",version:"2.2.0"},{name:"$strLenBytes",value:"$strLenBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$strLenCP",value:"$strLenCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$substr",value:"$substr",score:1,meta:"expr:string",version:"2.2.0",deprecated:"3.4.0",replacement:"$substrBytes"},{name:"$substrBytes",value:"$substrBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$substrCP",value:"$substrCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$subtract",value:"$subtract",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$switch",value:"$switch",score:1,meta:"expr:cond",version:"3.4.0"},{name:"$toHashedIndexKey",value:"$toHashedIndexKey",score:1,meta:"expr:arith",version:"4.2.24"},{name:"$toLower",value:"$toLower",score:1,meta:"expr:string",version:"2.2.0"},{name:"$toUpper",value:"$toUpper",score:1,meta:"expr:string",version:"2.2.0"},{name:"$tsSecond",value:"$tsSecond",score:1,meta:"expr:date",version:"5.1.0"},{name:"$tsIncrement",value:"$tsIncrement",score:1,meta:"expr:date",version:"5.1.0"},{name:"$trunc",value:"$trunc",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$type",value:"$type",score:1,meta:"expr:type",version:"3.4.0"},{name:"$week",value:"$week",score:1,meta:"expr:date",version:"2.2.0"},{name:"$year",value:"$year",score:1,meta:"expr:date",version:"2.2.0"},{name:"$zip",value:"$zip",score:1,meta:"expr:array",version:"3.4.0"},{name:"$bitAnd",value:"$bitAnd",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitOr",value:"$bitOr",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitXor",value:"$bitXor",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitNot",value:"$bitNot",score:1,meta:"expr:bit",version:"7.0.0"}]},36749:(e,t,n)=>{const r=n(40289);e.exports=(e,t,n)=>0!==r(e,t,n)},37276:(e,t,n)=>{const r=n(71333);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},37359:(e,t,n)=>{const r=n(87391);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},37385:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},37724:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ANY_NAMESPACE=t.ANY_COLLECTION_NAMESPACE=t.TIME_SERIES=t.VIEW=t.COLLECTION=t.DATABASE=void 0,t.DATABASE="db";const n="coll";t.COLLECTION=n;const r="view";t.VIEW=r;const a="timeseries";t.TIME_SERIES=a;const s=[n,r,a];t.ANY_COLLECTION_NAMESPACE=s;const i=["db",...s];t.ANY_NAMESPACE=i},38358:(e,t,n)=>{const r=n(50066);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},38366:(e,t,n)=>{const r=/\s+/g;class a{constructor(e,t){if(t=i(t),e instanceof a)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new a(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&$(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&v))+":"+e,n=s.get(t);if(n)return n;const r=this.options.loose,a=r?u[m.HYPHENRANGELOOSE]:u[m.HYPHENRANGE];e=e.replace(a,I(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(u[m.COMPARATORTRIM],p),l("comparator trim",e),e=e.replace(u[m.TILDETRIM],d),l("tilde trim",e),e=e.replace(u[m.CARETTRIM],h),l("caret trim",e);let i=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));r&&(i=i.filter((e=>(l("loose invalid filter",e,this.options),!!e.match(u[m.COMPARATORLOOSE]))))),l("range list",i);const c=new Map,$=i.map((e=>new o(e,this.options)));for(const e of $){if(g(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const E=[...c.values()];return s.set(t,E),E}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Range is required");return this.set.some((n=>E(n,t)&&e.set.some((e=>E(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(w(this.set[t],e,this.options))return!0;return!1}}e.exports=a;const s=new(n(43287)),i=n(69348),o=n(58387),l=n(67767),c=n(66283),{safeRe:u,t:m,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:h}=n(415),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:v}=n(77693),g=e=>"<0.0.0-0"===e.value,$=e=>""===e.value,E=(e,t)=>{let n=!0;const r=e.slice();let a=r.pop();for(;n&&r.length;)n=r.every((e=>a.intersects(e,t))),a=r.pop();return n},y=(e,t)=>(l("comp",e,t),e=O(e,t),l("caret",e),e=S(e,t),l("tildes",e),e=x(e,t),l("xrange",e),e=T(e,t),l("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{const n=t.loose?u[m.TILDELOOSE]:u[m.TILDE];return e.replace(n,((t,n,r,a,s)=>{let i;return l("tilde",e,t,n,r,a,s),b(n)?i="":b(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:b(a)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(l("replaceTilde pr",s),i=`>=${n}.${r}.${a}-${s} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,l("tilde return",i),i}))},O=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{l("caret",e,t);const n=t.loose?u[m.CARETLOOSE]:u[m.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,s,i)=>{let o;return l("caret",e,t,n,a,s,i),b(n)?o="":b(a)?o=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(s)?o="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:i?(l("replaceCaret pr",i),o="0"===n?"0"===a?`>=${n}.${a}.${s}-${i} <${n}.${a}.${+s+1}-0`:`>=${n}.${a}.${s}-${i} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${s}-${i} <${+n+1}.0.0-0`):(l("no pr"),o="0"===n?"0"===a?`>=${n}.${a}.${s}${r} <${n}.${a}.${+s+1}-0`:`>=${n}.${a}.${s}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${s} <${+n+1}.0.0-0`),l("caret return",o),o}))},x=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map((e=>N(e,t))).join(" ")),N=(e,t)=>{e=e.trim();const n=t.loose?u[m.XRANGELOOSE]:u[m.XRANGE];return e.replace(n,((n,r,a,s,i,o)=>{l("xRange",e,n,r,a,s,i,o);const c=b(a),u=c||b(s),m=u||b(i),p=m;return"="===r&&p&&(r=""),o=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(s=0),i=0,">"===r?(r=">=",u?(a=+a+1,s=0,i=0):(s=+s+1,i=0)):"<="===r&&(r="<",u?a=+a+1:s=+s+1),"<"===r&&(o="-0"),n=`${r+a}.${s}.${i}${o}`):u?n=`>=${a}.0.0${o} <${+a+1}.0.0-0`:m&&(n=`>=${a}.${s}.0${o} <${a}.${+s+1}.0-0`),l("xRange return",n),n}))},T=(e,t)=>(l("replaceStars",e,t),e.trim().replace(u[m.STAR],"")),R=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?m.GTE0PRE:m.GTE0],"")),I=e=>(t,n,r,a,s,i,o,l,c,u,m,p)=>`${n=b(r)?"":b(a)?`>=${r}.0.0${e?"-0":""}`:b(s)?`>=${r}.${a}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(m)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${m}-${p}`:e?`<${c}.${u}.${+m+1}-0`:`<=${l}`}`.trim(),w=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},38506:(e,t,n)=>{const r=n(47538);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},39044:(e,t,n)=>{const r=n(20332);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},39149:(e,t,n)=>{const r=n(53831),a=n(42997),s=n(42734),i=n(66135),o=n(63825),l=n(90898);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return a(e,n,c);case">":return s(e,n,c);case">=":return i(e,n,c);case"<":return o(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},39560:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ANY_NAMESPACE=t.ANY_COLLECTION_NAMESPACE=t.TIME_SERIES=t.VIEW=t.COLLECTION=t.DATABASE=void 0,t.DATABASE="db";const n="coll";t.COLLECTION=n;const r="view";t.VIEW=r;const a="timeseries";t.TIME_SERIES=a;const s=[n,r,a];t.ANY_COLLECTION_NAMESPACE=s;const i=["db",...s];t.ANY_NAMESPACE=i},40013:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checkTree=void 0;const r=n(83617);class a{constructor(e){this.options=e,this.checkSafeCall=e=>{const t=this.options.allowMethods;if("Identifier"===e.callee.type)return r.GLOBAL_FUNCTIONS.indexOf(e.callee.name)>=0&&e.arguments.every(this.checkSafeExpression);if(t&&"MemberExpression"===e.callee.type){const t=e.callee.object,n=e.callee.property;if("Identifier"===t.type&&"Identifier"===n.type)return(0,r.isMethodWhitelisted)(t.name,n.name)&&e.arguments.every(this.checkSafeExpression);if("NewExpression"!==t.type&&"CallExpression"!==t.type||"Identifier"!==t.callee.type)return this.checkSafeExpression(t)&&e.arguments.every(this.checkSafeExpression);{const a=t.callee;return(0,r.isMethodWhitelisted)(a.name,n.name)&&e.arguments.every(this.checkSafeExpression)}}return!1},this.checkSafeExpression=e=>{switch(e?.type){case"Identifier":return Object.prototype.hasOwnProperty.call(r.GLOBALS,e.name);case"Literal":return!0;case"ArrayExpression":return e.elements.every(this.checkSafeExpression);case"UnaryExpression":return this.checkSafeExpression(e.argument);case"BinaryExpression":return this.checkSafeExpression(e.left)&&this.checkSafeExpression(e.right);case"CallExpression":case"NewExpression":return this.checkSafeCall(e);case"ObjectExpression":return e.properties.every((e=>!("computed"in e&&e.computed||"method"in e&&e.method)&&!(!("key"in e)||!["Literal","Identifier"].includes(e.key.type))&&"value"in e&&(["FunctionExpression","ArrowFunctionExpression"].includes(e.value.type)||this.checkSafeExpression(e.value))));default:return!1}}}}t.checkTree=(e,t)=>"Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type&&new a(t).checkSafeExpression(e.body[0].expression)},40030:(e,t,n)=>{var r=n(65994).e;Object.defineProperty(t,"__esModule",{value:!0}),t.signals=void 0,t.signals=[],t.signals.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==r.platform&&t.signals.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===r.platform&&t.signals.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")},40194:(e,t,n)=>{const r=n(72857),a=n(67094),{ANY:s}=a,i=n(12876),o=n(32674),l=[new a(">=0.0.0-0")],c=[new a(">=0.0.0")],u=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=n.includePrerelease?l:c}if(1===t.length&&t[0].semver===s){if(n.includePrerelease)return!0;t=c}const r=new Set;let a,u,d,h,f,v,g;for(const t of e)">"===t.operator||">="===t.operator?a=m(a,t,n):"<"===t.operator||"<="===t.operator?u=p(u,t,n):r.add(t.semver);if(r.size>1)return null;if(a&&u){if(d=o(a.semver,u.semver,n),d>0)return null;if(0===d&&(">="!==a.operator||"<="!==u.operator))return null}for(const e of r){if(a&&!i(e,String(a),n))return null;if(u&&!i(e,String(u),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}let $=!(!u||n.includePrerelease||!u.semver.prerelease.length)&&u.semver,E=!(!a||n.includePrerelease||!a.semver.prerelease.length)&&a.semver;$&&1===$.prerelease.length&&"<"===u.operator&&0===$.prerelease[0]&&($=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,v=v||"<"===e.operator||"<="===e.operator,a)if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),">"===e.operator||">="===e.operator){if(h=m(a,e,n),h===e&&h!==a)return!1}else if(">="===a.operator&&!i(a.semver,String(e),n))return!1;if(u)if($&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===$.major&&e.semver.minor===$.minor&&e.semver.patch===$.patch&&($=!1),"<"===e.operator||"<="===e.operator){if(f=p(u,e,n),f===e&&f!==u)return!1}else if("<="===u.operator&&!i(u.semver,String(e),n))return!1;if(!e.operator&&(u||a)&&0!==d)return!1}return!(a&&v&&!u&&0!==d||u&&g&&!a&&0!==d||E||$)},m=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let a=!1;e:for(const r of e.set){for(const e of t.set){const t=u(r,e,n);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},40289:(e,t,n)=>{const r=n(41694);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},40426:function(e,t,n){var r=n(67787).Buffer,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_FUNCTIONS=t.GLOBALS=void 0,t.getScopeFunction=function(e,t){if(t&&m[e])return m[e];if(!t&&u[e])return u[e];if(p[e])return p[e];throw new Error(`Attempted to access scope property '${e}' that doesn't exist`)},t.isMethodWhitelisted=function(e,t){if(Object.prototype.hasOwnProperty.call(d,e)){const n=d[e].allowedMethods;return"string"==typeof n?d[n].allowedMethods[t]:n[t]}return!1},t.getClass=function(e){if(Object.prototype.hasOwnProperty.call(d,e))return d[e].class;throw new Error(`Attempted to access member '${e}' that doesn't exist`)};const o=i(n(62444));function l(e){return Object.freeze(Object.create(null,Object.getOwnPropertyDescriptors(e)))}function c(e){return"string"==typeof e?o.Long.fromString(e):o.Long.fromNumber(e)}const u=l({Date:function(...e){return Date(...e)}}),m=l({Date:function(...e){return new Date(...e)}}),p=l({RegExp,Binary:function(e,t){return new o.Binary(e,t)},BinData:function(e,t){return new o.Binary(r.from(t,"base64"),e)},UUID:function(e){return void 0===e?(new o.UUID).toBinary():new o.Binary(r.from(e.replace(/-/g,""),"hex"),4)},Code:function(e,t){return new o.Code(e,t)},DBRef:function(e,t,n,r){return new o.DBRef(e,t,n,r)},Decimal128:function(e){return o.Decimal128.fromString(e)},NumberDecimal:function(e){return o.Decimal128.fromString(e)},Double:function(e){return new o.Double(e)},Int32:function(e){return new o.Int32(e)},NumberInt:function(e){return parseInt(e,10)},Long:function(e,t){return new o.Long(e,t)},NumberLong:c,Int64:c,Map:function(e){return new(o.Map??Map)(e)},MaxKey:function(){return new o.MaxKey},MinKey:function(){return new o.MinKey},ObjectID:function(e){return new o.ObjectId(e)},ObjectId:function(e){return new o.ObjectId(e)},Symbol:function(e){return new o.BSONSymbol(e)},Timestamp:function(e,t){return"number"==typeof e&&"number"==typeof t||void 0!==t?new o.Timestamp({t:e,i:t}):new o.Timestamp(e)},ISODate:function(e){if(void 0===e)return new Date;if("string"!=typeof e)return new Date(e);const t=e.match(/^(?<Y>\d{4})-?(?<M>\d{2})-?(?<D>\d{2})([T ](?<h>\d{2})(:?(?<m>\d{2})(:?((?<s>\d{2})(\.(?<ms>\d+))?))?)?(?<tz>Z|([+-])(\d{2}):?(\d{2})?)?)?$/);if(null!==t&&void 0!==t.groups){const{Y:e,M:n,D:r,h:a,m:s,s:i,ms:o,tz:l}=t.groups,c=new Date(`${e}-${n}-${r}T${a||"00"}:${s||"00"}:${i||"00"}.${o||"000"}${l||"Z"}`);if(c.getTime()>=-621672192e5&&c.getTime()<=0xe677d21fdbff)return c}throw new Error(`${JSON.stringify(e)} is not a valid ISODate`)}});t.GLOBALS=l({Infinity:1/0,NaN:NaN,undefined:void 0});const d=l({Math:l({class:Math,allowedMethods:l({abs:!0,acos:!0,acosh:!0,asin:!0,asinh:!0,atan:!0,atan2:!0,atanh:!0,cbrt:!0,ceil:!0,clz32:!0,cos:!0,cosh:!0,exp:!0,expm1:!0,floor:!0,fround:!0,hypot:!0,imul:!0,log:!0,log10:!0,log1p:!0,log2:!0,max:!0,min:!0,pow:!0,round:!0,sign:!0,sin:!0,sinh:!0,sqrt:!0,tan:!0,tanh:!0,trunc:!0})}),Date:l({class:Date,allowedMethods:l({getDate:!0,getDay:!0,getFullYear:!0,getHours:!0,getMilliseconds:!0,getMinutes:!0,getMonth:!0,getSeconds:!0,getTime:!0,getTimezoneOffset:!0,getUTCDate:!0,getUTCDay:!0,getUTCFullYear:!0,getUTCHours:!0,getUTCMilliseconds:!0,getUTCMinutes:!0,getUTCMonth:!0,getUTCSeconds:!0,getYear:!0,now:!0,setDate:!0,setFullYear:!0,setHours:!0,setMilliseconds:!0,setMinutes:!0,setMonth:!0,setSeconds:!0,setTime:!0,setUTCDate:!0,setUTCFullYear:!0,setUTCHours:!0,setUTCMilliseconds:!0,setUTCMinutes:!0,setUTCMonth:!0,setUTCSeconds:!0,setYear:!0,toISOString:!0,valueOf:!0})}),ISODate:l({class:Date,allowedMethods:"Date"}),Binary:l({class:o.Binary,allowedMethods:{createFromHexString:!0,createFromBase64:!0}})});t.GLOBAL_FUNCTIONS=Object.freeze([...Object.keys(p),...Object.keys(m),...Object.keys(u)])},40447:(e,t,n)=>{const r=n(17914);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},40957:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_PIPELINE_UTILS=void 0;const a=r(n(59591)),s="8.0.0",i="8.1.0";t.VIEW_PIPELINE_UTILS={MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_DE:s,MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_COMPASS:i,isPipelineSearchQueryable:e=>{for(const t of e){const e=Object.keys(t)[0];if("$addFields"!==e&&"$set"!==e&&"$match"!==e)return!1;if("$match"===e){const e=t.$match,n=Object.keys(e||{});if(1!==n.length||!n.includes("$expr"))return!1}}return!0},isVersionSearchCompatibleForViewsDataExplorer:e=>{try{return a.default.gte(e,s)}catch{return!1}},isVersionSearchCompatibleForViewsCompass:e=>{try{return a.default.gte(e,i)}catch{return!1}}}},41163:(e,t,n)=>{var r;Object.defineProperty(t,"__esModule",{value:!0}),t.unload=t.load=t.onExit=t.signals=void 0;const a=n(40030);Object.defineProperty(t,"signals",{enumerable:!0,get:function(){return a.signals}});const s=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,i=Symbol.for("signal-exit emitter"),o=globalThis,l=Object.defineProperty.bind(Object);class c{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(o[i])return o[i];l(o,i,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const n=this.listeners[e],r=n.indexOf(t);-1!==r&&(0===r&&1===n.length?n.length=0:n.splice(r,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(const a of this.listeners[e])r=!0===a(t,n)||r;return"exit"===e&&(r=this.emit("afterExit",t,n)||r),r}}class u{}const m=globalThis.process;var p;p=s(m)?new class extends u{#e="win32"===m.platform?"SIGINT":"SIGHUP";#t=new c;#n;#r;#a;#s={};#i=!1;constructor(e){super(),this.#n=e,this.#s={};for(const t of a.signals)this.#s[t]=()=>{const n=this.#n.listeners(t);let{count:r}=this.#t;const a=e;if("object"==typeof a.__signal_exit_emitter__&&"number"==typeof a.__signal_exit_emitter__.count&&(r+=a.__signal_exit_emitter__.count),n.length===r){this.unload();const n=this.#t.emit("exit",null,t),r="SIGHUP"===t?this.#e:t;n||e.kill(e.pid,r)}};this.#a=e.reallyExit,this.#r=e.emit}onExit(e,t){if(!s(this.#n))return()=>{};!1===this.#i&&this.load();const n=t?.alwaysLast?"afterExit":"exit";return this.#t.on(n,e),()=>{this.#t.removeListener(n,e),0===this.#t.listeners.exit.length&&0===this.#t.listeners.afterExit.length&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#t.count+=1;for(const e of a.signals)try{const t=this.#s[e];t&&this.#n.on(e,t)}catch(e){}this.#n.emit=(e,...t)=>this.#o(e,...t),this.#n.reallyExit=e=>this.#l(e)}}unload(){this.#i&&(this.#i=!1,a.signals.forEach((e=>{const t=this.#s[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#n.removeListener(e,t)}catch(e){}})),this.#n.emit=this.#r,this.#n.reallyExit=this.#a,this.#t.count-=1)}#l(e){return s(this.#n)?(this.#n.exitCode=e||0,this.#t.emit("exit",this.#n.exitCode,null),this.#a.call(this.#n,this.#n.exitCode)):0}#o(e,...t){const n=this.#r;if("exit"===e&&s(this.#n)){"number"==typeof t[0]&&(this.#n.exitCode=t[0]);const r=n.call(this.#n,e,...t);return this.#t.emit("exit",this.#n.exitCode,null),r}return n.call(this.#n,e,...t)}}(m):new class extends u{onExit(){return()=>{}}load(){}unload(){}},r={onExit:(e,t)=>p.onExit(e,t),load:()=>p.load(),unload:()=>p.unload()},t.onExit=r.onExit,t.load=r.load,t.unload=r.unload},41567:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_MAX_TIME_MS=t.DEFAULT_COLLATION=t.DEFAULT_PROJECT=t.DEFAULT_SKIP=t.DEFAULT_LIMIT=t.DEFAULT_SORT=t.DEFAULT_FILTER=t.QUERY_PROPERTIES=t.toJSString=t.stringify=t.validate=t.isLimitValid=t.isSkipValid=t.isMaxTimeMSValid=t.isSortValid=t.isProjectValid=t.parseProject=t.isCollationValid=t.isFilterValid=t.parseCollation=t.parseFilter=t.parseSort=void 0;const o=s(n(11818)),l=i(n(20990)),c=i(n(46696)),u=n(48418),m=n(56934);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(t,"toJSString",{enumerable:!0,get:function(){return m.toJSString}});const p=(0,c.default)("mongodb-query-parser"),d={};t.DEFAULT_FILTER=d;const h=null;t.DEFAULT_SORT=h,t.DEFAULT_LIMIT=0,t.DEFAULT_SKIP=0;const f=null;t.DEFAULT_PROJECT=f;const v=null;function g(e){if(null==e)return!0;const t=l.default.trim("number"==typeof e?`${e}`:e);return"{}"===t||l.default.isEmpty(t)}function $(e){return g(e)?0:!!/^\d+$/.test(`${e}`)&&parseInt(`${e}`,10)}function E(e){return(0,o.default)(e,{mode:o.ParseMode.Loose})}function y(e){return(0,o.default)(e,{mode:o.ParseMode.Loose})}function b(e){return g(e)?h:(0,o.default)(e,{mode:o.ParseMode.Loose})}function S(e){return(0,o.default)(e,{mode:o.ParseMode.Loose,allowMethods:!0})}function A(e){if(g(e))return d;try{return S(e)}catch(t){return p('Filter "%s" is invalid',e,t),!1}}function O(e){if(g(e))return v;try{return function(e){for(const[t,n]of Object.entries(e)){if(!u.COLLATION_OPTIONS[t])return p('Collation "%s" is invalid bc of its keys',e),!1;if(!1===u.COLLATION_OPTIONS[t].includes(n))return p('Collation "%s" is invalid bc of its values',e),!1}return e}(y(e))}catch(t){return p('Collation "%s" is invalid',e,t),!1}}function _(){return!0}function x(e){if(g(e))return f;try{const t=E(e);return l.default.isObject(t)?l.default.every(t,_)?t:(p('Project "%s" is invalid bc of its values',e),!1):(p('Project "%s" is invalid. Only documents are allowed',e),!1)}catch(t){return p('Project "%s" is invalid',e,t),!1}}t.DEFAULT_COLLATION=v,t.DEFAULT_MAX_TIME_MS=6e4,t.QUERY_PROPERTIES=["filter","project","sort","skip","limit"],t.parseSort=b,t.parseFilter=function(e){return g(e)?d:S(e)},t.parseCollation=function(e){return g(e)?v:y(e)},t.isFilterValid=A,t.isCollationValid=O,t.parseProject=function(e){return g(e)?f:E(e)},t.isProjectValid=x;const N=[1,-1,"asc","desc"];function T(e){return l.default.includes(N,e)||!(!l.default.isObject(e)||!e.$meta)}function R(e){return l.default.isArray(e)&&2===e.length&&l.default.isString(e[0])&&T(e[1])}function I(e){try{const t=b(e);return g(t)?h:l.default.isArray(t)&&l.default.every(t,R)||l.default.isObject(t)&&!l.default.isArray(t)&&l.default.every(t,T)?t:(p('Sort "%s" is invalid bc of its values',e),!1)}catch(t){return p('Sort "%s" is invalid',e,t),!1}}function w(e){return g(e)?6e4:$(e)}function L(e){return g(e)?0:$(e)}function P(e){return g(e)?0:$(e)}t.isSortValid=I,t.isMaxTimeMSValid=w,t.isSkipValid=L,t.isLimitValid=P;const C={isMaxTimeMSValid:w,isFilterValid:A,isProjectValid:x,isSortValid:I,isLimitValid:P,isSkipValid:L,isCollationValid:O,isNumberValid:$};t.validate=function(e,t){const n=C[`is${l.default.upperFirst(e)}Valid`];return n?n(t):(p("Do not know how to validate `%s`. Returning false.",e),!1)},t.default=function(e,t=null){return 1===arguments.length&&l.default.isString(e)?S(e):{filter:S(e),project:t!==f?E(t):t}}},41694:(e,t,n)=>{const r=n(72082),{MAX_LENGTH:a,MAX_SAFE_INTEGER:s}=n(4292),{safeRe:i,t:o}=n(18104),l=n(8573),{compareIdentifiers:c}=n(90733);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[o.LOOSE]:i[o.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],a=e.build[t];if(r("build compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[o.PRERELEASELOOSE]:i[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},41738:(e,t,n)=>{const r=n(92625),a=n(24159),s=n(48381),i=n(5286),o=n(34219),l=n(24482),c=n(10017),u=n(11420),m=n(77277),p=n(78853),d=n(74145),h=n(86506),f=n(30044),v=n(77203),g=n(36059),$=n(68716),E=n(47538),y=n(88770),b=n(38506),S=n(58809),A=n(20038),O=n(45160),_=n(25812),x=n(54506),N=n(66239),T=n(88108),R=n(13559),I=n(55141),w=n(20332),L=n(43301),P=n(39044),C=n(8999),M=n(10933),j=n(98696),D=n(15011),k=n(32910),F=n(76130),U=n(89975),V=n(78519),B=n(18894),q=n(34335);e.exports={parse:o,valid:l,clean:c,inc:u,diff:m,major:p,minor:d,patch:h,prerelease:f,compare:v,rcompare:g,compareLoose:$,compareBuild:E,sort:y,rsort:b,gt:S,lt:A,eq:O,neq:_,gte:x,lte:N,cmp:T,coerce:R,Comparator:I,Range:w,satisfies:L,toComparators:P,maxSatisfying:C,minSatisfying:M,minVersion:j,validRange:D,outside:k,gtr:F,ltr:U,intersects:V,simplifyRange:B,subset:q,SemVer:s,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},41755:(e,t,n)=>{const r=n(32674);e.exports=(e,t,n)=>0===r(e,t,n)},42103:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.executeAST=void 0;const r=n(63013),a=(e,t)=>{switch(e.callee.type){case"Identifier":{const n=(0,r.getScopeFunction)(e.callee.name,t),a=e.arguments.map((e=>s(e)));return n.apply(n,a)}case"MemberExpression":{const t="Identifier"===e.callee.object.type?(0,r.getClass)(e.callee.object.name):s(e.callee.object),n="Identifier"===e.callee.property.type&&e.callee.property.name;if(!n)throw new Error("Expected CallExpression property to be an identifier");const a=e.arguments.map((e=>s(e)));return t[n](...a)}default:throw new Error("Should not evaluate invalid expressions")}},s=e=>{switch(e?.type){case"Identifier":if(Object.prototype.hasOwnProperty.call(r.GLOBALS,e.name))return r.GLOBALS[e.name];throw new Error(`${e.name} is not a valid Identifier`);case"Literal":return e.value;case"UnaryExpression":return(e=>{if(!e.prefix)throw new Error("Malformed UnaryExpression");switch(e.operator){case"-":return-s(e.argument);case"+":return+s(e.argument);case"!":return!s(e.argument);case"~":return~s(e.argument);default:throw new Error(`Invalid UnaryExpression Provided: '${e.operator}'`)}})(e);case"BinaryExpression":return(e=>{const{left:t,right:n}=e;switch(e.operator){case"==":return s(t)==s(n);case"!=":return s(t)!=s(n);case"===":return s(t)===s(n);case"!==":return s(t)!==s(n);case"<":return s(t)<s(n);case"<=":return s(t)<=s(n);case">":return s(t)>s(n);case">=":return s(t)>=s(n);case"<<":return s(t)<<s(n);case">>":return s(t)>>s(n);case">>>":return s(t)>>>s(n);case"+":return s(t)+s(n);case"-":return s(t)-s(n);case"*":return s(t)*s(n);case"/":return s(t)/s(n);case"%":return s(t)%s(n);case"**":return s(t)**s(n);case"|":return s(t)|s(n);case"^":return s(t)^s(n);case"&":return s(t)&s(n);case"in":return s(t)in s(n);case"instanceof":return s(t)instanceof s(n);default:throw new Error(`Invalid BinaryExpression Provided: '${String(e.operator)}'`)}})(e);case"ArrayExpression":return e.elements.map((e=>s(e)));case"CallExpression":return a(e,!1);case"NewExpression":return a(e,!0);case"ObjectExpression":{const t=Object.create(null);for(const n of e.properties)"key"in n&&(t["Identifier"===n.key.type?n.key.name:s(n.key)]=s(n.value));return{...t}}case"FunctionExpression":case"ArrowFunctionExpression":return(e=>{const t=e.loc?.source||"",n=e.range||[];return t.slice(n[0],n[1])})(e);default:throw new Error}};t.executeAST=e=>{if("Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type)return s(e.body[0].expression);throw new Error("Invalid AST Found")}},42583:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParseMode=void 0,t.parse=o;const r=n(84537),a=n(20011),s=n(54917),i=n(27629);function o(e,t){const n=(0,i.buildOptions)(t),{hasComments:o,ast:l}=function(e){let t=!1;return{ast:(0,r.parse)(e,{ecmaVersion:6,onComment:()=>t=!0,locations:!0,ranges:!0,sourceFile:e}),hasComments:t}}(`(\n${e}\n)`);return o&&!n.allowComments||!(0,a.checkTree)(l,n)?"":(0,s.executeAST)(l)}Object.defineProperty(t,"ParseMode",{enumerable:!0,get:function(){return i.ParseMode}}),t.default=o},42734:(e,t,n)=>{const r=n(99430);e.exports=(e,t,n)=>r(e,t,n)>0},42945:(e,t,n)=>{const r=n(87391);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},42997:(e,t,n)=>{const r=n(99430);e.exports=(e,t,n)=>0!==r(e,t,n)},43207:(e,t,n)=>{n.d(t,{Ay:()=>a,X6:()=>s});var r=n(11818);const a=r.default,s=r.ParseMode;r.parse},43287:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},43301:(e,t,n)=>{const r=n(20332);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},43334:(e,t,n)=>{const r=n(40289);e.exports=(e,t,n)=>r(e,t,n)>0},44016:(e,t,n)=>{const r=n(41694),a=n(71333);e.exports=(e,t,n)=>{let s=null,i=null,o=null;try{o=new a(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},44455:(e,t,n)=>{const r=n(9350);e.exports=(e,t,n)=>{const a=new r(e,n),s=new r(t,n);return a.compare(s)||a.compareBuild(s)}},44601:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_CONSTANTS=void 0,t.createConstantFilter=f,t.wrapField=function(e,t=!1){return t||!function(e){if(/[.\s"'()[\];={}:]/.test(e))return!1;try{return new Function(`"use strict";let _ = { ${e}: 0 };`),!0}catch{return!1}}(e)?`"${e.replace(/["\\]/g,"\\$&")}"`:e},t.getFilteredCompletions=function(e={},n=t.ALL_CONSTANTS){const{serverVersion:r=d,fields:a=[],meta:s,stage:i}=e,o=f({serverVersion:r,meta:s,stage:i});return n.concat(a.flatMap((e=>{const{value:t,description:n}=function(e){return"string"==typeof e?{value:e}:{value:e.name,description:e.description}}(e);return[{value:t,meta:"field:identifier",version:"0.0.0",description:n},{value:`$${t}`,meta:"field:reference",version:"0.0.0",description:n}]}))).filter((e=>o(e)))};const r=n(35647),a=n(62280),s=n(63547),i=n(85665),o=n(48543),l=n(58313),c=n(13821),u=n(46699),m=n(71925),p=n(3794);t.ALL_CONSTANTS=[...a.ACCUMULATORS,...i.BSON_TYPES,...s.BSON_TYPE_ALIASES,...o.CONVERSION_OPERATORS,...l.EXPRESSION_OPERATORS,...c.JSON_SCHEMA,...u.QUERY_OPERATORS,...m.STAGE_OPERATORS,...p.SYSTEM_VARIABLES];const d="999.999.999";function h(e,t){return void 0===e||void 0===t||(e=Array.isArray(e)?e:[e]).some((e=>t.includes(e)))}function f({meta:e,serverVersion:t=d,stage:n={}}={}){const a=/^(?<version>\d+\.\d+\.\d+)/.exec(t)?.groups?.version??d;return({version:t,meta:s,env:i,namespaces:o,apiVersions:l})=>function(e,t){const n=/^\d+\.\d+\.\d+$/.test(t);return(0,r.satisfies)(e,n?`>=${t}`:t)}(a,t)&&h(n.env,i)&&h(n.namespace,o)&&h(n.apiVersion,l)&&(!e||function(e,t){const n=t.split(":");return e.some((e=>{const t=e.split(":");return t.length===n.length&&t.every(((e,t)=>"*"===e||e===n[t]))}))}(e,s))}},44719:(e,t,n)=>{n.d(t,{Tf:()=>a,Zt:()=>i,zM:()=>s});var r=n(49976);r.ACCUMULATORS,r.ADL,r.ANY_COLLECTION_NAMESPACE,r.ANY_NAMESPACE,r.ATLAS,r.ATLAS_SEARCH_TEMPLATES,r.ATLAS_VECTOR_SEARCH_TEMPLATE,r.BSON_TYPES,r.BSON_TYPE_ALIASES,r.COLLECTION,r.CONVERSION_OPERATORS,r.DATABASE,r.ENVS,r.EXPRESSION_OPERATORS,r.FULL_SCAN_STAGES,r.JSON_SCHEMA,r.ON_PREM,r.OUT_STAGES,r.QUERY_OPERATORS,r.REQUIRED_AS_FIRST_STAGE,r.STAGE_OPERATORS;const a=r.STAGE_OPERATOR_NAMES,s=(r.SYSTEM_VARIABLES,r.TIME_SERIES,r.VALIDATION_TEMPLATE,r.VIEW,r.VIEW_PIPELINE_UTILS,r.getFilteredCompletions),i=r.wrapField},44948:(e,t,n)=>{const r=n(33629);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},45006:(e,t,n)=>{const r=n(33629),a=n(96506),{ANY:s}=a,i=n(52992),o=n(99430),l=[new a(">=0.0.0-0")],c=[new a(">=0.0.0")],u=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=n.includePrerelease?l:c}if(1===t.length&&t[0].semver===s){if(n.includePrerelease)return!0;t=c}const r=new Set;let a,u,d,h,f,v,g;for(const t of e)">"===t.operator||">="===t.operator?a=m(a,t,n):"<"===t.operator||"<="===t.operator?u=p(u,t,n):r.add(t.semver);if(r.size>1)return null;if(a&&u){if(d=o(a.semver,u.semver,n),d>0)return null;if(0===d&&(">="!==a.operator||"<="!==u.operator))return null}for(const e of r){if(a&&!i(e,String(a),n))return null;if(u&&!i(e,String(u),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}let $=!(!u||n.includePrerelease||!u.semver.prerelease.length)&&u.semver,E=!(!a||n.includePrerelease||!a.semver.prerelease.length)&&a.semver;$&&1===$.prerelease.length&&"<"===u.operator&&0===$.prerelease[0]&&($=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,v=v||"<"===e.operator||"<="===e.operator,a)if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),">"===e.operator||">="===e.operator){if(h=m(a,e,n),h===e&&h!==a)return!1}else if(">="===a.operator&&!i(a.semver,String(e),n))return!1;if(u)if($&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===$.major&&e.semver.minor===$.minor&&e.semver.patch===$.patch&&($=!1),"<"===e.operator||"<="===e.operator){if(f=p(u,e,n),f===e&&f!==u)return!1}else if("<="===u.operator&&!i(u.semver,String(e),n))return!1;if(!e.operator&&(u||a)&&0!==d)return!1}return!(a&&v&&!u&&0!==d||u&&g&&!a&&0!==d||E||$)},m=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let a=!1;e:for(const r of e.set){for(const e of t.set){const t=u(r,e,n);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},45160:(e,t,n)=>{const r=n(77203);e.exports=(e,t,n)=>0===r(e,t,n)},45962:(e,t,n)=>{var r,a;n.d(t,{BRAND:()=>je,DIRTY:()=>E,EMPTY_PATH:()=>f,INVALID:()=>$,NEVER:()=>Rt,OK:()=>y,ParseStatus:()=>g,Schema:()=>I,ZodAny:()=>oe,ZodArray:()=>me,ZodBigInt:()=>te,ZodBoolean:()=>ne,ZodBranded:()=>De,ZodCatch:()=>Ce,ZodDate:()=>re,ZodDefault:()=>Pe,ZodDiscriminatedUnion:()=>ve,ZodEffects:()=>Ie,ZodEnum:()=>Ne,ZodError:()=>c,ZodFirstPartyTypeKind:()=>qe,ZodFunction:()=>Ae,ZodIntersection:()=>$e,ZodIssueCode:()=>o,ZodLazy:()=>Oe,ZodLiteral:()=>_e,ZodMap:()=>be,ZodNaN:()=>Me,ZodNativeEnum:()=>Te,ZodNever:()=>ce,ZodNull:()=>ie,ZodNullable:()=>Le,ZodNumber:()=>ee,ZodObject:()=>de,ZodOptional:()=>we,ZodParsedType:()=>s,ZodPipeline:()=>ke,ZodPromise:()=>Re,ZodReadonly:()=>Fe,ZodRecord:()=>ye,ZodSchema:()=>I,ZodSet:()=>Se,ZodString:()=>J,ZodSymbol:()=>ae,ZodTransformer:()=>Ie,ZodTuple:()=>Ee,ZodType:()=>I,ZodUndefined:()=>se,ZodUnion:()=>he,ZodUnknown:()=>le,ZodVoid:()=>ue,addIssueToContext:()=>v,any:()=>et,array:()=>at,bigint:()=>We,boolean:()=>Xe,coerce:()=>Tt,custom:()=>Ve,date:()=>He,datetimeRegex:()=>X,defaultErrorMap:()=>u,discriminatedUnion:()=>lt,effect:()=>yt,enum:()=>gt,function:()=>ht,getErrorMap:()=>d,getParsedType:()=>i,instanceof:()=>Ge,intersection:()=>ct,isAborted:()=>b,isAsync:()=>O,isDirty:()=>S,isValid:()=>A,late:()=>Be,lazy:()=>ft,literal:()=>vt,makeIssue:()=>h,map:()=>pt,nan:()=>Ze,nativeEnum:()=>$t,never:()=>nt,null:()=>Qe,nullable:()=>St,number:()=>ze,object:()=>st,objectUtil:()=>a,oboolean:()=>Nt,onumber:()=>xt,optional:()=>bt,ostring:()=>_t,pipeline:()=>Ot,preprocess:()=>At,promise:()=>Et,quotelessJson:()=>l,record:()=>mt,set:()=>dt,setErrorMap:()=>p,strictObject:()=>it,string:()=>Ye,symbol:()=>Ke,transformer:()=>yt,tuple:()=>ut,undefined:()=>Je,union:()=>ot,unknown:()=>tt,util:()=>r,void:()=>rt}),n.r(t),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(a||(a={}));const s=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i=e=>{switch(typeof e){case"undefined":return s.undefined;case"string":return s.string;case"number":return Number.isNaN(e)?s.nan:s.number;case"boolean":return s.boolean;case"function":return s.function;case"bigint":return s.bigint;case"symbol":return s.symbol;case"object":return Array.isArray(e)?s.array:null===e?s.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?s.promise:"undefined"!=typeof Map&&e instanceof Map?s.map:"undefined"!=typeof Set&&e instanceof Set?s.set:"undefined"!=typeof Date&&e instanceof Date?s.date:s.object;default:return s.unknown}},o=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),l=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class c extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)n._errors.push(t(a));else{let e=n,r=0;for(;r<a.path.length;){const n=a.path[r];r===a.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(a))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof c))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)if(r.path.length>0){const n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}c.create=e=>new c(e);const u=(e,t)=>{let n;switch(e.code){case o.invalid_type:n=e.received===s.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case o.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case o.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case o.invalid_union:n="Invalid input";break;case o.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case o.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case o.invalid_arguments:n="Invalid function arguments";break;case o.invalid_return_type:n="Invalid function return type";break;case o.invalid_date:n="Invalid date";break;case o.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case o.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case o.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case o.custom:n="Invalid input";break;case o.invalid_intersection_types:n="Intersection results could not be merged";break;case o.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case o.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let m=u;function p(e){m=e}function d(){return m}const h=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,s=[...n,...a.path||[]],i={...a,path:s};if(void 0!==a.message)return{...a,path:s,message:a.message};let o="";const l=r.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(i,{data:t,defaultError:o}).message;return{...a,path:s,message:o}},f=[];function v(e,t){const n=d(),r=h({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===u?void 0:u].filter((e=>!!e))});e.common.issues.push(r)}class g{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return $;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,r=await e.value;n.push({key:t,value:r})}return g.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:a}=r;if("aborted"===t.status)return $;if("aborted"===a.status)return $;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"===t.value||void 0===a.value&&!r.alwaysSet||(n[t.value]=a.value)}return{status:e.value,value:n}}}const $=Object.freeze({status:"aborted"}),E=e=>({status:"dirty",value:e}),y=e=>({status:"valid",value:e}),b=e=>"aborted"===e.status,S=e=>"dirty"===e.status,A=e=>"valid"===e.status,O=e=>"undefined"!=typeof Promise&&e instanceof Promise;var _;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(_||(_={}));var x=n(9606).URL;class N{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const T=(e,t)=>{if(A(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new c(e.common.issues);return this._error=t,this._error}}};function R(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{const{message:s}=e;return"invalid_enum_value"===t.code?{message:s??a.defaultError}:void 0===a.data?{message:s??r??a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:s??n??a.defaultError}},description:a}}class I{get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new g,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(O(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parseSync({data:e,path:n.path,parent:n});return T(n,r)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return A(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then((e=>A(e)?{value:e.value}:{issues:t.common.issues}))}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await(O(r)?r:Promise.resolve(r));return T(n,a)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const a=e(t),s=()=>r.addIssue({code:o.custom,...n(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then((e=>!!e||(s(),!1))):!!a||(s(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new Ie({schema:this,typeName:qe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return we.create(this,this._def)}nullable(){return Le.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return me.create(this)}promise(){return Re.create(this,this._def)}or(e){return he.create([this,e],this._def)}and(e){return $e.create(this,e,this._def)}transform(e){return new Ie({...R(this._def),schema:this,typeName:qe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Pe({...R(this._def),innerType:this,defaultValue:t,typeName:qe.ZodDefault})}brand(){return new De({typeName:qe.ZodBranded,type:this,...R(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ce({...R(this._def),innerType:this,catchValue:t,typeName:qe.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return ke.create(this,e)}readonly(){return Fe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const w=/^c[^\s-]{8,}$/i,L=/^[0-9a-z]+$/,P=/^[0-9A-HJKMNP-TV-Z]{26}$/i,C=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,M=/^[a-z0-9_-]{21}$/i,j=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,D=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,k=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let F;const U=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,V=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,B=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,G=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Y=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,z="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Z=new RegExp(`^${z}$`);function W(e){let t="[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function X(e){let t=`${z}T${W(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function H(e,t){if(!j.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!("object"!=typeof a||null===a||"typ"in a&&"JWT"!==a?.typ||!a.alg||t&&a.alg!==t)}catch{return!1}}function K(e,t){return!("v4"!==t&&t||!V.test(e))||!("v6"!==t&&t||!q.test(e))}class J extends I{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==s.string){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.string,received:t.parsedType}),$}const t=new g;let n;for(const s of this._def.checks)if("min"===s.kind)e.data.length<s.value&&(n=this._getOrReturnCtx(e,n),v(n,{code:o.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("max"===s.kind)e.data.length>s.value&&(n=this._getOrReturnCtx(e,n),v(n,{code:o.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("length"===s.kind){const r=e.data.length>s.value,a=e.data.length<s.value;(r||a)&&(n=this._getOrReturnCtx(e,n),r?v(n,{code:o.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&v(n,{code:o.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if("email"===s.kind)k.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"email",code:o.invalid_string,message:s.message}),t.dirty());else if("emoji"===s.kind)F||(F=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),F.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"emoji",code:o.invalid_string,message:s.message}),t.dirty());else if("uuid"===s.kind)C.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"uuid",code:o.invalid_string,message:s.message}),t.dirty());else if("nanoid"===s.kind)M.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"nanoid",code:o.invalid_string,message:s.message}),t.dirty());else if("cuid"===s.kind)w.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"cuid",code:o.invalid_string,message:s.message}),t.dirty());else if("cuid2"===s.kind)L.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"cuid2",code:o.invalid_string,message:s.message}),t.dirty());else if("ulid"===s.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"ulid",code:o.invalid_string,message:s.message}),t.dirty());else if("url"===s.kind)try{new x(e.data)}catch{n=this._getOrReturnCtx(e,n),v(n,{validation:"url",code:o.invalid_string,message:s.message}),t.dirty()}else"regex"===s.kind?(s.regex.lastIndex=0,s.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"regex",code:o.invalid_string,message:s.message}),t.dirty())):"trim"===s.kind?e.data=e.data.trim():"includes"===s.kind?e.data.includes(s.value,s.position)||(n=this._getOrReturnCtx(e,n),v(n,{code:o.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty()):"toLowerCase"===s.kind?e.data=e.data.toLowerCase():"toUpperCase"===s.kind?e.data=e.data.toUpperCase():"startsWith"===s.kind?e.data.startsWith(s.value)||(n=this._getOrReturnCtx(e,n),v(n,{code:o.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):"endsWith"===s.kind?e.data.endsWith(s.value)||(n=this._getOrReturnCtx(e,n),v(n,{code:o.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):"datetime"===s.kind?X(s).test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{code:o.invalid_string,validation:"datetime",message:s.message}),t.dirty()):"date"===s.kind?Z.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{code:o.invalid_string,validation:"date",message:s.message}),t.dirty()):"time"===s.kind?new RegExp(`^${W(s)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{code:o.invalid_string,validation:"time",message:s.message}),t.dirty()):"duration"===s.kind?D.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"duration",code:o.invalid_string,message:s.message}),t.dirty()):"ip"===s.kind?(a=e.data,("v4"!==(i=s.version)&&i||!U.test(a))&&("v6"!==i&&i||!B.test(a))&&(n=this._getOrReturnCtx(e,n),v(n,{validation:"ip",code:o.invalid_string,message:s.message}),t.dirty())):"jwt"===s.kind?H(e.data,s.alg)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"jwt",code:o.invalid_string,message:s.message}),t.dirty()):"cidr"===s.kind?K(e.data,s.version)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"cidr",code:o.invalid_string,message:s.message}),t.dirty()):"base64"===s.kind?G.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"base64",code:o.invalid_string,message:s.message}),t.dirty()):"base64url"===s.kind?Y.test(e.data)||(n=this._getOrReturnCtx(e,n),v(n,{validation:"base64url",code:o.invalid_string,message:s.message}),t.dirty()):r.assertNever(s);var a,i;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:o.invalid_string,..._.errToObj(n)})}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",..._.errToObj(e)})}url(e){return this._addCheck({kind:"url",..._.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",..._.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",..._.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",..._.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",..._.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",..._.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",..._.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",..._.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",..._.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",..._.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",..._.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",..._.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,..._.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,..._.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",..._.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,..._.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,..._.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,..._.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,..._.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,..._.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,..._.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,..._.errToObj(t)})}nonempty(e){return this.min(1,_.errToObj(e))}trim(){return new J({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new J({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function Q(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}J.create=e=>new J({checks:[],typeName:qe.ZodString,coerce:e?.coerce??!1,...R(e)});class ee extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==s.number){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.number,received:t.parsedType}),$}let t;const n=new g;for(const a of this._def.checks)"int"===a.kind?r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),v(t,{code:o.invalid_type,expected:"integer",received:"float",message:a.message}),n.dirty()):"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t=this._getOrReturnCtx(e,t),v(t,{code:o.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t=this._getOrReturnCtx(e,t),v(t,{code:o.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"multipleOf"===a.kind?0!==Q(e.data,a.value)&&(t=this._getOrReturnCtx(e,t),v(t,{code:o.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):"finite"===a.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),v(t,{code:o.not_finite,message:a.message}),n.dirty()):r.assertNever(a);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_.toString(t))}setLimit(e,t,n,r){return new ee({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:_.toString(r)}]})}_addCheck(e){return new ee({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:_.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:_.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}ee.create=e=>new ee({checks:[],typeName:qe.ZodNumber,coerce:e?.coerce||!1,...R(e)});class te extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==s.bigint)return this._getInvalidInput(e);let t;const n=new g;for(const a of this._def.checks)"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t=this._getOrReturnCtx(e,t),v(t,{code:o.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t=this._getOrReturnCtx(e,t),v(t,{code:o.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"multipleOf"===a.kind?e.data%a.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),v(t,{code:o.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):r.assertNever(a);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.bigint,received:t.parsedType}),$}gte(e,t){return this.setLimit("min",e,!0,_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_.toString(t))}setLimit(e,t,n,r){return new te({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:_.toString(r)}]})}_addCheck(e){return new te({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}te.create=e=>new te({checks:[],typeName:qe.ZodBigInt,coerce:e?.coerce??!1,...R(e)});class ne extends I{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==s.boolean){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.boolean,received:t.parsedType}),$}return y(e.data)}}ne.create=e=>new ne({typeName:qe.ZodBoolean,coerce:e?.coerce||!1,...R(e)});class re extends I{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==s.date){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.date,received:t.parsedType}),$}if(Number.isNaN(e.data.getTime()))return v(this._getOrReturnCtx(e),{code:o.invalid_date}),$;const t=new g;let n;for(const a of this._def.checks)"min"===a.kind?e.data.getTime()<a.value&&(n=this._getOrReturnCtx(e,n),v(n,{code:o.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),t.dirty()):"max"===a.kind?e.data.getTime()>a.value&&(n=this._getOrReturnCtx(e,n),v(n,{code:o.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),t.dirty()):r.assertNever(a);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new re({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:_.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:_.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}re.create=e=>new re({checks:[],coerce:e?.coerce||!1,typeName:qe.ZodDate,...R(e)});class ae extends I{_parse(e){if(this._getType(e)!==s.symbol){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.symbol,received:t.parsedType}),$}return y(e.data)}}ae.create=e=>new ae({typeName:qe.ZodSymbol,...R(e)});class se extends I{_parse(e){if(this._getType(e)!==s.undefined){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.undefined,received:t.parsedType}),$}return y(e.data)}}se.create=e=>new se({typeName:qe.ZodUndefined,...R(e)});class ie extends I{_parse(e){if(this._getType(e)!==s.null){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.null,received:t.parsedType}),$}return y(e.data)}}ie.create=e=>new ie({typeName:qe.ZodNull,...R(e)});class oe extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}oe.create=e=>new oe({typeName:qe.ZodAny,...R(e)});class le extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}le.create=e=>new le({typeName:qe.ZodUnknown,...R(e)});class ce extends I{_parse(e){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.never,received:t.parsedType}),$}}ce.create=e=>new ce({typeName:qe.ZodNever,...R(e)});class ue extends I{_parse(e){if(this._getType(e)!==s.undefined){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.void,received:t.parsedType}),$}return y(e.data)}}ue.create=e=>new ue({typeName:qe.ZodVoid,...R(e)});class me extends I{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==s.array)return v(t,{code:o.invalid_type,expected:s.array,received:t.parsedType}),$;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&(v(t,{code:e?o.too_big:o.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(v(t,{code:o.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(v(t,{code:o.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new N(t,e,t.path,n))))).then((e=>g.mergeArray(n,e)));const a=[...t.data].map(((e,n)=>r.type._parseSync(new N(t,e,t.path,n))));return g.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new me({...this._def,minLength:{value:e,message:_.toString(t)}})}max(e,t){return new me({...this._def,maxLength:{value:e,message:_.toString(t)}})}length(e,t){return new me({...this._def,exactLength:{value:e,message:_.toString(t)}})}nonempty(e){return this.min(1,e)}}function pe(e){if(e instanceof de){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=we.create(pe(r))}return new de({...e._def,shape:()=>t})}return e instanceof me?new me({...e._def,type:pe(e.element)}):e instanceof we?we.create(pe(e.unwrap())):e instanceof Le?Le.create(pe(e.unwrap())):e instanceof Ee?Ee.create(e.items.map((e=>pe(e)))):e}me.create=(e,t)=>new me({type:e,minLength:null,maxLength:null,exactLength:null,typeName:qe.ZodArray,...R(t)});class de extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==s.object){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.object,received:t.parsedType}),$}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof ce&&"strip"===this._def.unknownKeys))for(const e in n.data)a.includes(e)||i.push(e);const l=[];for(const e of a){const t=r[e],a=n.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new N(n,a,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof ce){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of i)l.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)i.length>0&&(v(n,{code:o.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new N(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>g.mergeObjectSync(t,e))):g.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return _.errToObj,new de({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{const r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:_.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new de({...this._def,unknownKeys:"strip"})}passthrough(){return new de({...this._def,unknownKeys:"passthrough"})}extend(e){return new de({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new de({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:qe.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new de({...this._def,catchall:e})}pick(e){const t={};for(const n of r.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new de({...this._def,shape:()=>t})}omit(e){const t={};for(const n of r.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new de({...this._def,shape:()=>t})}deepPartial(){return pe(this)}partial(e){const t={};for(const n of r.objectKeys(this.shape)){const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new de({...this._def,shape:()=>t})}required(e){const t={};for(const n of r.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof we;)e=e._def.innerType;t[n]=e}return new de({...this._def,shape:()=>t})}keyof(){return xe(r.objectKeys(this.shape))}}de.create=(e,t)=>new de({shape:()=>e,unknownKeys:"strip",catchall:ce.create(),typeName:qe.ZodObject,...R(t)}),de.strictCreate=(e,t)=>new de({shape:()=>e,unknownKeys:"strict",catchall:ce.create(),typeName:qe.ZodObject,...R(t)}),de.lazycreate=(e,t)=>new de({shape:e,unknownKeys:"strip",catchall:ce.create(),typeName:qe.ZodObject,...R(t)});class he extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new c(e.ctx.common.issues)));return v(t,{code:o.invalid_union,unionErrors:n}),$}));{let e;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},s=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=r.map((e=>new c(e)));return v(t,{code:o.invalid_union,unionErrors:a}),$}}get options(){return this._def.options}}he.create=(e,t)=>new he({options:e,typeName:qe.ZodUnion,...R(t)});const fe=e=>e instanceof Oe?fe(e.schema):e instanceof Ie?fe(e.innerType()):e instanceof _e?[e.value]:e instanceof Ne?e.options:e instanceof Te?r.objectValues(e.enum):e instanceof Pe?fe(e._def.innerType):e instanceof se?[void 0]:e instanceof ie?[null]:e instanceof we?[void 0,...fe(e.unwrap())]:e instanceof Le?[null,...fe(e.unwrap())]:e instanceof De||e instanceof Fe?fe(e.unwrap()):e instanceof Ce?fe(e._def.innerType):[];class ve extends I{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.object)return v(t,{code:o.invalid_type,expected:s.object,received:t.parsedType}),$;const n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(v(t,{code:o.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),$)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const n of t){const t=fe(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of t){if(r.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);r.set(a,n)}}return new ve({typeName:qe.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...R(n)})}}function ge(e,t){const n=i(e),a=i(t);if(e===t)return{valid:!0,data:e};if(n===s.object&&a===s.object){const n=r.objectKeys(t),a=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),s={...e,...t};for(const n of a){const r=ge(e[n],t[n]);if(!r.valid)return{valid:!1};s[n]=r.data}return{valid:!0,data:s}}if(n===s.array&&a===s.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const a=ge(e[r],t[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===s.date&&a===s.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class $e extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(b(e)||b(r))return $;const a=ge(e.value,r.value);return a.valid?((S(e)||S(r))&&t.dirty(),{status:t.value,value:a.data}):(v(n,{code:o.invalid_intersection_types}),$)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}$e.create=(e,t,n)=>new $e({left:e,right:t,typeName:qe.ZodIntersection,...R(n)});class Ee extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==s.array)return v(n,{code:o.invalid_type,expected:s.array,received:n.parsedType}),$;if(n.data.length<this._def.items.length)return v(n,{code:o.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),$;!this._def.rest&&n.data.length>this._def.items.length&&(v(n,{code:o.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new N(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>g.mergeArray(t,e))):g.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new Ee({...this._def,rest:e})}}Ee.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ee({items:e,typeName:qe.ZodTuple,rest:null,...R(t)})};class ye extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==s.object)return v(n,{code:o.invalid_type,expected:s.object,received:n.parsedType}),$;const r=[],a=this._def.keyType,i=this._def.valueType;for(const e in n.data)r.push({key:a._parse(new N(n,e,n.path,e)),value:i._parse(new N(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?g.mergeObjectAsync(t,r):g.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new ye(t instanceof I?{keyType:e,valueType:t,typeName:qe.ZodRecord,...R(n)}:{keyType:J.create(),valueType:e,typeName:qe.ZodRecord,...R(t)})}}class be extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==s.map)return v(n,{code:o.invalid_type,expected:s.map,received:n.parsedType}),$;const r=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map((([e,t],s)=>({key:r._parse(new N(n,e,n.path,[s,"key"])),value:a._parse(new N(n,t,n.path,[s,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of i){const r=await n.key,a=await n.value;if("aborted"===r.status||"aborted"===a.status)return $;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of i){const r=n.key,a=n.value;if("aborted"===r.status||"aborted"===a.status)return $;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}be.create=(e,t,n)=>new be({valueType:t,keyType:e,typeName:qe.ZodMap,...R(n)});class Se extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==s.set)return v(n,{code:o.invalid_type,expected:s.set,received:n.parsedType}),$;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(v(n,{code:o.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(v(n,{code:o.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const a=this._def.valueType;function i(e){const n=new Set;for(const r of e){if("aborted"===r.status)return $;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map(((e,t)=>a._parse(new N(n,e,n.path,t))));return n.common.async?Promise.all(l).then((e=>i(e))):i(l)}min(e,t){return new Se({...this._def,minSize:{value:e,message:_.toString(t)}})}max(e,t){return new Se({...this._def,maxSize:{value:e,message:_.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Se.create=(e,t)=>new Se({valueType:e,minSize:null,maxSize:null,typeName:qe.ZodSet,...R(t)});class Ae extends I{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.function)return v(t,{code:o.invalid_type,expected:s.function,received:t.parsedType}),$;function n(e,n){return h({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),u].filter((e=>!!e)),issueData:{code:o.invalid_arguments,argumentsError:n}})}function r(e,n){return h({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,d(),u].filter((e=>!!e)),issueData:{code:o.invalid_return_type,returnTypeError:n}})}const a={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Re){const e=this;return y((async function(...t){const s=new c([]),o=await e._def.args.parseAsync(t,a).catch((e=>{throw s.addIssue(n(t,e)),s})),l=await Reflect.apply(i,this,o);return await e._def.returns._def.type.parseAsync(l,a).catch((e=>{throw s.addIssue(r(l,e)),s}))}))}{const e=this;return y((function(...t){const s=e._def.args.safeParse(t,a);if(!s.success)throw new c([n(t,s.error)]);const o=Reflect.apply(i,this,s.data),l=e._def.returns.safeParse(o,a);if(!l.success)throw new c([r(o,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new Ae({...this._def,args:Ee.create(e).rest(le.create())})}returns(e){return new Ae({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new Ae({args:e||Ee.create([]).rest(le.create()),returns:t||le.create(),typeName:qe.ZodFunction,...R(n)})}}class Oe extends I{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Oe.create=(e,t)=>new Oe({getter:e,typeName:qe.ZodLazy,...R(t)});class _e extends I{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return v(t,{received:t.data,code:o.invalid_literal,expected:this._def.value}),$}return{status:"valid",value:e.data}}get value(){return this._def.value}}function xe(e,t){return new Ne({values:e,typeName:qe.ZodEnum,...R(t)})}_e.create=(e,t)=>new _e({value:e,typeName:qe.ZodLiteral,...R(t)});class Ne extends I{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return v(t,{expected:r.joinValues(n),received:t.parsedType,code:o.invalid_type}),$}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return v(t,{received:t.data,code:o.invalid_enum_value,options:n}),$}return y(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Ne.create(e,{...this._def,...t})}exclude(e,t=this._def){return Ne.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}Ne.create=xe;class Te extends I{_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==s.string&&n.parsedType!==s.number){const e=r.objectValues(t);return v(n,{expected:r.joinValues(e),received:n.parsedType,code:o.invalid_type}),$}if(this._cache||(this._cache=new Set(r.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=r.objectValues(t);return v(n,{received:n.data,code:o.invalid_enum_value,options:e}),$}return y(e.data)}get enum(){return this._def.values}}Te.create=(e,t)=>new Te({values:e,typeName:qe.ZodNativeEnum,...R(t)});class Re extends I{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.promise&&!1===t.common.async)return v(t,{code:o.invalid_type,expected:s.promise,received:t.parsedType}),$;const n=t.parsedType===s.promise?t.data:Promise.resolve(t.data);return y(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Re.create=(e,t)=>new Re({type:e,typeName:qe.ZodPromise,...R(t)});class Ie extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:e=>{v(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),"preprocess"===a.type){const e=a.transform(n.data,s);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return $;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?$:"dirty"===r.status||"dirty"===t.value?E(r.value):r}));{if("aborted"===t.value)return $;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?$:"dirty"===r.status||"dirty"===t.value?E(r.value):r}}if("refinement"===a.type){const e=e=>{const t=a.refinement(e,s);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?$:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?$:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===a.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!A(e))return $;const r=a.transform(e.value,s);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>A(e)?Promise.resolve(a.transform(e.value,s)).then((e=>({status:t.value,value:e}))):$))}r.assertNever(a)}}Ie.create=(e,t,n)=>new Ie({schema:e,typeName:qe.ZodEffects,effect:t,...R(n)}),Ie.createWithPreprocess=(e,t,n)=>new Ie({schema:t,effect:{type:"preprocess",transform:e},typeName:qe.ZodEffects,...R(n)});class we extends I{_parse(e){return this._getType(e)===s.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}we.create=(e,t)=>new we({innerType:e,typeName:qe.ZodOptional,...R(t)});class Le extends I{_parse(e){return this._getType(e)===s.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Le.create=(e,t)=>new Le({innerType:e,typeName:qe.ZodNullable,...R(t)});class Pe extends I{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===s.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Pe.create=(e,t)=>new Pe({innerType:e,typeName:qe.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...R(t)});class Ce extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return O(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new c(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new c(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ce.create=(e,t)=>new Ce({innerType:e,typeName:qe.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...R(t)});class Me extends I{_parse(e){if(this._getType(e)!==s.nan){const t=this._getOrReturnCtx(e);return v(t,{code:o.invalid_type,expected:s.nan,received:t.parsedType}),$}return{status:"valid",value:e.data}}}Me.create=e=>new Me({typeName:qe.ZodNaN,...R(e)});const je=Symbol("zod_brand");class De extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class ke extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?$:"dirty"===e.status?(t.dirty(),E(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?$:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new ke({in:e,out:t,typeName:qe.ZodPipeline})}}class Fe extends I{_parse(e){const t=this._def.innerType._parse(e),n=e=>(A(e)&&(e.value=Object.freeze(e.value)),e);return O(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function Ue(e,t){const n="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof n?{message:n}:n}function Ve(e,t={},n){return e?oe.create().superRefine(((r,a)=>{const s=e(r);if(s instanceof Promise)return s.then((e=>{if(!e){const e=Ue(t,r),s=e.fatal??n??!0;a.addIssue({code:"custom",...e,fatal:s})}}));if(!s){const e=Ue(t,r),s=e.fatal??n??!0;a.addIssue({code:"custom",...e,fatal:s})}})):oe.create()}Fe.create=(e,t)=>new Fe({innerType:e,typeName:qe.ZodReadonly,...R(t)});const Be={object:de.lazycreate};var qe;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(qe||(qe={}));const Ge=(e,t={message:`Input not instance of ${e.name}`})=>Ve((t=>t instanceof e),t),Ye=J.create,ze=ee.create,Ze=Me.create,We=te.create,Xe=ne.create,He=re.create,Ke=ae.create,Je=se.create,Qe=ie.create,et=oe.create,tt=le.create,nt=ce.create,rt=ue.create,at=me.create,st=de.create,it=de.strictCreate,ot=he.create,lt=ve.create,ct=$e.create,ut=Ee.create,mt=ye.create,pt=be.create,dt=Se.create,ht=Ae.create,ft=Oe.create,vt=_e.create,gt=Ne.create,$t=Te.create,Et=Re.create,yt=Ie.create,bt=we.create,St=Le.create,At=Ie.createWithPreprocess,Ot=ke.create,_t=()=>Ye().optional(),xt=()=>ze().optional(),Nt=()=>Xe().optional(),Tt={string:e=>J.create({...e,coerce:!0}),number:e=>ee.create({...e,coerce:!0}),boolean:e=>ne.create({...e,coerce:!0}),bigint:e=>te.create({...e,coerce:!0}),date:e=>re.create({...e,coerce:!0})},Rt=$},46432:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ACCUMULATORS=void 0,t.ACCUMULATORS=[{name:"$accumulator",value:"$accumulator",score:1,meta:"accumulator",version:"4.4.0"},{name:"$addToSet",value:"$addToSet",score:1,meta:"accumulator",version:"2.2.0"},{name:"$avg",value:"$avg",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$bottom",value:"$bottom",score:1,meta:"accumulator:bottom-n",version:"5.2.0"},{name:"$bottomN",value:"$bottomN",score:1,meta:"accumulator:bottom-n",version:"5.2.0"},{name:"$covariancePop",value:"$covariancePop",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$covarianceSamp",value:"$covarianceSamp",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$count",value:"$count",score:1,meta:"accumulator",version:"5.0.0"},{name:"$derivative",value:"$derivative",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$denseRank",value:"$denseRank",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$documentNumber",value:"$documentNumber",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$expMovingAvg",value:"$expMovingAvg",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$first",value:"$first",score:1,meta:"accumulator",version:"2.2.0"},{name:"$firstN",value:"$firstN",score:1,meta:"accumulator",version:"5.1.0"},{name:"$integral",value:"$integral",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$last",value:"$last",score:1,meta:"accumulator",version:"2.2.0"},{name:"$lastN",value:"$lastN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$max",value:"$max",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$maxN",value:"$maxN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$median",value:"$median",score:1,meta:"accumulator",version:"7.0.0"},{name:"$min",value:"$min",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$minN",value:"$minN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$percentile",value:"$percentile",score:1,meta:"accumulator",version:"7.0.0"},{name:"$push",value:"$push",score:1,meta:"accumulator",version:"2.2.0"},{name:"$rank",value:"$rank",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$stdDevPop",value:"$stdDevPop",score:1,meta:"accumulator",version:"3.2.0",projectVersion:"3.2.0"},{name:"$stdDevSamp",value:"$stdDevSamp",score:1,meta:"accumulator",version:"3.2.0",projectVersion:"3.2.0"},{name:"$shift",value:"$shift",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$sum",value:"$sum",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$top",value:"$top",score:1,meta:"accumulator:top-n",version:"5.2.0"},{name:"$topN",value:"$topN",score:1,meta:"accumulator:top-n",version:"5.2.0"},{name:"$locf",value:"$locf",score:1,meta:"accumulator:window",version:"5.3.0"},{name:"$linearFill",value:"$linearFill",score:1,meta:"accumulator:window",version:"5.3.0"}]},46699:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QUERY_OPERATORS=void 0,t.QUERY_OPERATORS=[{name:"$all",value:"$all",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$and",value:"$and",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$bitsAllClear",value:"$bitsAllClear",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAllSet",value:"$bitsAllSet",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAnyClear",value:"$bitsAnyClear",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAnySet",value:"$bitsAnySet",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$comment",value:"$comment",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$elemMatch",value:"$elemMatch",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$eq",value:"$eq",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$exists",value:"$exists",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$expr",value:"$expr",score:1,meta:"query",version:"3.6.0",geospatial:!1},{name:"$geoIntersects",value:"$geoIntersects",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$geoWithin",value:"$geoWithin",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$gt",value:"$gt",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$gte",value:"$gte",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$in",value:"$in",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$jsonSchema",value:"$jsonSchema",score:1,meta:"query",version:"3.6.0",geospatial:!1},{name:"$lt",value:"$lt",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$lte",value:"$lte",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$mod",value:"$mod",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$ne",value:"$ne",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$near",value:"$near",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$nearSphere",value:"$nearSphere",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$nin",value:"$nin",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$not",value:"$not",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$nor",value:"$nor",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$or",value:"$or",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$regex",value:"$regex",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$size",value:"$size",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$slice",value:"$slice",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$text",value:"$text",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$type",value:"$type",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$where",value:"$where",score:1,meta:"query",version:"2.2.0",geospatial:!1}]},47530:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CONVERSION_OPERATORS=void 0,t.CONVERSION_OPERATORS=[{name:"$convert",value:"$convert",score:1,meta:"conv",version:"3.7.2"},{name:"$ltrim",value:"$ltrim",score:1,meta:"accumulator",version:"3.7.2"},{name:"$rtrim",value:"$rtrim",score:1,meta:"accumulator",version:"3.7.2"},{name:"$toBool",value:"$toBool",score:1,meta:"conv",version:"3.7.2"},{name:"$toDate",value:"$toDate",score:1,meta:"conv",version:"3.7.2"},{name:"$toDecimal",value:"$toDecimal",score:1,meta:"conv",version:"3.7.2"},{name:"$toDouble",value:"$toDouble",score:1,meta:"conv",version:"3.7.2"},{name:"$toInt",value:"$toInt",score:1,meta:"conv",version:"3.7.2"},{name:"$toLong",value:"$toLong",score:1,meta:"conv",version:"3.7.2"},{name:"$toObjectId",value:"$toObjectId",score:1,meta:"conv",version:"3.7.2"},{name:"$toString",value:"$toString",score:1,meta:"conv",version:"3.7.2"},{name:"$trim",value:"$trim",score:1,meta:"accumulator",version:"3.7.2"}]},47538:(e,t,n)=>{const r=n(48381);e.exports=(e,t,n)=>{const a=new r(e,n),s=new r(t,n);return a.compare(s)||a.compareBuild(s)}},47755:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},47775:(e,t,n)=>{const r=n(40289);e.exports=(e,t,n)=>r(e,t,n)>=0},47969:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EXPRESSION_OPERATORS=void 0,t.EXPRESSION_OPERATORS=[{name:"$abs",value:"$abs",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$accumulator",value:"$accumulator",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$add",value:"$add",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$allElementsTrue",value:"$allElementsTrue",score:1,meta:"expr:set",version:"2.6.0"},{name:"$and",value:"$and",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$anyElementTrue",value:"$anyElementTrue",score:1,meta:"expr:set",version:"2.6.0"},{name:"$arrayElemAt",value:"$arrayElemAt",score:1,meta:"expr:array",version:"3.2.0"},{name:"$arrayToObject",value:"$arrayToObject",score:1,meta:"expr:array",version:"3.4.4"},{name:"$binarySize",value:"$binarySize",score:1,meta:"expr:obj",version:"4.4.0"},{name:"$bsonSize",value:"$bsonSize",score:1,meta:"expr:obj",version:"4.4.0"},{name:"$ceil",value:"$ceil",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$cmp",value:"$cmp",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$concat",value:"$concat",score:1,meta:"expr:string",version:"2.4.0"},{name:"$concatArrays",value:"$concatArrays",score:1,meta:"expr:array",version:"3.2.0"},{name:"$cond",value:"$cond",score:1,meta:"expr:cond",version:"2.6.0"},{name:"$dateAdd",value:"$dateAdd",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateDiff",value:"$dateDiff",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateFromParts",value:"$dateFromParts",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateFromString",value:"$dateFromString",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateSubtract",value:"$dateSubtract",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateToParts",value:"$dateToParts",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateToString",value:"$dateToString",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateTrunc",value:"$dateTrunc",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dayOfMonth",value:"$dayOfMonth",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dayOfWeek",value:"$dayOfWeek",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dayOfYear",value:"$dayOfYear",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dateToString",value:"$dateToString",score:1,meta:"expr:date",version:"3.0.0"},{name:"$divide",value:"$divide",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$eq",value:"$eq",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$exp",value:"$exp",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$filter",value:"$filter",score:1,meta:"expr:array",version:"3.2.0"},{name:"$first",value:"$first",score:1,meta:"expr:array",version:"4.4.0"},{name:"$floor",value:"$floor",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$function",value:"$function",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$getField",value:"$getField",score:1,meta:"expr:get",version:"5.0.0"},{name:"$gt",value:"$gt",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$gte",value:"$gte",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$hour",value:"$hour",score:1,meta:"expr:date",version:"2.2.0"},{name:"$ifNull",value:"$ifNull",score:1,meta:"expr:cond",version:"2.2.0"},{name:"$in",value:"$in",score:1,meta:"expr:array",version:"3.4.0"},{name:"$indexOfArray",value:"$indexOfArray",score:1,meta:"expr:array",version:"3.4.0"},{name:"$indexOfBytes",value:"$indexOfBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$indexOfCP",value:"$indexOfCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$isArray",value:"$isArray",score:1,meta:"expr:array",version:"3.2.0"},{name:"$isNumber",value:"$isNumber",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$isoDayOfWeek",value:"$isoDayOfWeek",score:1,meta:"expr:date",version:"3.4.0"},{name:"$isoWeek",value:"$isoWeek",score:1,meta:"expr:date",version:"3.4.0"},{name:"$isoWeekYear",value:"$isoWeekYear",score:1,meta:"expr:date",version:"3.4.0"},{name:"$last",value:"$last",score:1,meta:"expr:array",version:"4.4.0"},{name:"$let",value:"$let",score:1,meta:"expr:var",version:"2.6.0"},{name:"$literal",value:"$literal",score:1,meta:"expr:literal",version:"2.6.0"},{name:"$lt",value:"$lt",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$lt",value:"$lte",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$ln",value:"$ln",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$log",value:"$log",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$log10",value:"$log10",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$map",value:"$map",score:1,meta:"expr:array",version:"2.6.0"},{name:"$mergeObjects",value:"$mergeObjects",score:1,meta:"expr:obj",version:"3.6.0"},{name:"$meta",value:"$meta",score:1,meta:"expr:text",version:"2.6.0"},{name:"$millisecond",value:"$millisecond",score:1,meta:"expr:date",version:"2.4.0"},{name:"$minute",value:"$minute",score:1,meta:"expr:date",version:"2.2.0"},{name:"$mod",value:"$mod",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$month",value:"$month",score:1,meta:"expr:date",version:"2.2.0"},{name:"$multiply",value:"$multiply",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$new",value:"$new",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$not",value:"$not",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$objectToArray",value:"$objectToArray",score:1,meta:"expr:array",version:"3.4.4"},{name:"$or",value:"$or",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$pow",value:"$pow",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$range",value:"$range",score:1,meta:"expr:array",version:"3.4.0"},{name:"$reduce",value:"$reduce",score:1,meta:"expr:array",version:"3.4.0"},{name:"$regexFind",value:"$regexFind",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$regexFindAll",value:"$regexFindAll",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$regexMatch",value:"$regexMatch",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$replaceAll",value:"$replaceAll",score:1,meta:"expr:string",version:"4.4.0"},{name:"$replaceOne",value:"$replaceOne",score:1,meta:"expr:string",version:"4.4.0"},{name:"$reverseArray",value:"$reverseArray",score:1,meta:"expr:array",version:"3.4.0"},{name:"$second",value:"$second",score:1,meta:"expr:date",version:"2.2.0"},{name:"$setDifference",value:"$setDifference",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setEquals",value:"$setEquals",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setIntersection",value:"$setIntersection",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setIsSubset",value:"$setIsSubset",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setUnion",value:"$setUnion",score:1,meta:"expr:set",version:"2.6.0"},{name:"$similarityCosine",value:"$similarityCosine",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$similarityDotProduct",value:"$similarityDotProduct",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$similarityEuclidean",value:"$similarityEuclidean",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$size",value:"$size",score:1,meta:"expr:array",version:"2.6.0"},{name:"$slice",value:"$slice",score:1,meta:"expr:array",version:"3.2.0"},{name:"$sortArray",value:"$sortArray",score:1,meta:"expr:array",version:"5.2.0"},{name:"$split",value:"$split",score:1,meta:"expr:string",version:"3.4.0"},{name:"$sqrt",value:"$sqrt",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$strcasecmp",value:"$strcasecmp",score:1,meta:"expr:string",version:"2.2.0"},{name:"$strLenBytes",value:"$strLenBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$strLenCP",value:"$strLenCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$substr",value:"$substr",score:1,meta:"expr:string",version:"2.2.0",deprecated:"3.4.0",replacement:"$substrBytes"},{name:"$substrBytes",value:"$substrBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$substrCP",value:"$substrCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$subtract",value:"$subtract",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$switch",value:"$switch",score:1,meta:"expr:cond",version:"3.4.0"},{name:"$toHashedIndexKey",value:"$toHashedIndexKey",score:1,meta:"expr:arith",version:"4.2.24"},{name:"$toLower",value:"$toLower",score:1,meta:"expr:string",version:"2.2.0"},{name:"$toUpper",value:"$toUpper",score:1,meta:"expr:string",version:"2.2.0"},{name:"$tsSecond",value:"$tsSecond",score:1,meta:"expr:date",version:"5.1.0"},{name:"$tsIncrement",value:"$tsIncrement",score:1,meta:"expr:date",version:"5.1.0"},{name:"$trunc",value:"$trunc",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$type",value:"$type",score:1,meta:"expr:type",version:"3.4.0"},{name:"$week",value:"$week",score:1,meta:"expr:date",version:"2.2.0"},{name:"$year",value:"$year",score:1,meta:"expr:date",version:"2.2.0"},{name:"$zip",value:"$zip",score:1,meta:"expr:array",version:"3.4.0"},{name:"$bitAnd",value:"$bitAnd",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitOr",value:"$bitOr",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitXor",value:"$bitXor",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitNot",value:"$bitNot",score:1,meta:"expr:bit",version:"7.0.0"}]},48195:(e,t,n)=>{const r=n(12876),a=n(32674);e.exports=(e,t,n)=>{const s=[];let i=null,o=null;const l=e.sort(((e,t)=>a(e,t,n)));for(const e of l)r(e,t,n)?(o=e,i||(i=e)):(o&&s.push([i,o]),o=null,i=null);i&&s.push([i,null]);const c=[];for(const[e,t]of s)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),m="string"==typeof t.raw?t.raw:String(t);return u.length<m.length?u:t}},48381:(e,t,n)=>{const r=n(29385),{MAX_LENGTH:a,MAX_SAFE_INTEGER:s}=n(24159),{safeRe:i,t:o}=n(92625),l=n(83214),{compareIdentifiers:c}=n(5286);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[o.LOOSE]:i[o.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],a=e.build[t];if(r("build compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[o.PRERELEASELOOSE]:i[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},48418:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.COLLATION_OPTIONS=void 0,t.COLLATION_OPTIONS={locale:["af","sq","am","ar","ar@collation=compat","hy","as","az","az@collation=search","be","bn","bn@collation=traditional","bs","bs@collation=search","bs_Cyrl","bg","my","ca","ca@collation=search","chr","zh","zh@collation=big5han","zh@collation=gb2312han","zh@collation=pinyin","zh@collation=unihan","zh@collation=zhuyin","zh_Hant","zh_Hant@collation=stroke","hr","hr@collation=search","cs","cs@collation=search","da","da@collation=search","nl","dz","en","en_US","en_US_POSIX","eo","et","ee","fo","fil","fi_FI","fi_FI@collation=search","fi_FI@collation=traditional","fr","fr_CA","gl","gl@collation=search","ka","de","de@collation=search","de@collation=eor","de@collation=phonebook","de_AT","de_AT@collation=phonebook","el","gu","ha","haw","he","he@collation=search","hi","hu","is","is@collation=search","ig","smn","smn@collation=search","id","ga","it","ja","ja@collation=unihan","kl","kl@collation=search","kn","kn@collation=traditional","kk","km","kok","ko","ko@collation=search","ko@collation=searchjl","ko@collation=unihan","ky","lk","lo","lv","li","li@collation=phonetic","lt","dsb","lb","mk","ms","ml","mt","mr","mn","ne","se","se@collation=search","nb","nb@collation=search","nn","nn@collation=search","or","om","ps","fa","fa_AF","pl","pt","pa","ro","ru","sr","sr_Latn","sr_Latn@collation=search","si","si@collation=dictionary","sk","sk@collation=search","sl","es","es@collation=search","es@collation=traditional","sw","sv","sv@collation=search","ta","te","th","bo","to","tr","tr@collation=search","uk","hsb","ur","ug","vi","vi@collation=traditional","wae","cy","yi","yi@collation=search","yo","zu","simple"],strength:[1,2,3,4,5],caseLevel:[!0,!1],caseFirst:["upper","lower","off"],numericOrdering:[!0,!1],alternate:["non-ignorable","shifted"],maxVariable:[!0,!1],backwards:[!0,!1],normalization:[!0,!1]}},48543:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CONVERSION_OPERATORS=void 0,t.CONVERSION_OPERATORS=[{name:"$convert",value:"$convert",score:1,meta:"conv",version:"3.7.2"},{name:"$ltrim",value:"$ltrim",score:1,meta:"accumulator",version:"3.7.2"},{name:"$rtrim",value:"$rtrim",score:1,meta:"accumulator",version:"3.7.2"},{name:"$toBool",value:"$toBool",score:1,meta:"conv",version:"3.7.2"},{name:"$toDate",value:"$toDate",score:1,meta:"conv",version:"3.7.2"},{name:"$toDecimal",value:"$toDecimal",score:1,meta:"conv",version:"3.7.2"},{name:"$toDouble",value:"$toDouble",score:1,meta:"conv",version:"3.7.2"},{name:"$toInt",value:"$toInt",score:1,meta:"conv",version:"3.7.2"},{name:"$toLong",value:"$toLong",score:1,meta:"conv",version:"3.7.2"},{name:"$toObjectId",value:"$toObjectId",score:1,meta:"conv",version:"3.7.2"},{name:"$toString",value:"$toString",score:1,meta:"conv",version:"3.7.2"},{name:"$trim",value:"$trim",score:1,meta:"accumulator",version:"3.7.2"}]},49014:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ENVS=t.ON_PREM=t.ADL=t.ATLAS=void 0;const n="atlas";t.ATLAS=n,t.ADL="adl";const r="on-prem";t.ON_PREM=r;const a=[n,"adl",r];t.ENVS=a},49976:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapField=t.getFilteredCompletions=void 0,a(n(22849),t),a(n(58516),t),a(n(77192),t),a(n(47530),t),a(n(63875),t),a(n(36744),t),a(n(91934),t),a(n(80417),t),a(n(28968),t),a(n(85426),t),a(n(86987),t),a(n(17624),t);var s=n(54316);Object.defineProperty(t,"getFilteredCompletions",{enumerable:!0,get:function(){return s.getFilteredCompletions}}),Object.defineProperty(t,"wrapField",{enumerable:!0,get:function(){return s.wrapField}}),a(n(69750),t),a(n(51778),t)},50066:(e,t,n)=>{const r=n(71598),{MAX_LENGTH:a,MAX_SAFE_INTEGER:s}=n(47755),{safeRe:i,t:o}=n(65684),l=n(31145),{compareIdentifiers:c}=n(76393);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[o.LOOSE]:i[o.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],a=e.build[t];if(r("build compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[o.PRERELEASELOOSE]:i[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},50363:(e,t,n)=>{const r=n(38366);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},50678:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BSON_TYPES=void 0,t.BSON_TYPES=[{name:"Code",value:"Code",label:"Code",score:1,meta:"bson",version:"0.0.0",description:"BSON Code type",snippet:"Code('${1:code}')"},{name:"ObjectId",value:"ObjectId",label:"ObjectId",score:1,meta:"bson",version:"0.0.0",description:"BSON ObjectId type",snippet:"ObjectId('${1:id}')"},{name:"Binary",value:"Binary",label:"Binary",score:1,meta:"bson",version:"0.0.0",description:"BSON Binary type",snippet:"Binary('${1:data}', '${2:subType}')"},{name:"DBRef",value:"DBRef",label:"DBRef",score:1,meta:"bson",version:"0.0.0",description:"BSON DBRef type",snippet:"DBRef('${1:ns}', '${2:oid}')"},{name:"Timestamp",value:"Timestamp",label:"Timestamp",score:1,meta:"bson",version:"0.0.0",description:"BSON Timestamp type",snippet:"Timestamp(${1:low}, ${2:high})"},{name:"NumberInt",value:"NumberInt",label:"NumberInt",score:1,meta:"bson",version:"0.0.0",description:"BSON 32 bit Integer type",snippet:"NumberInt(${1:value})"},{name:"NumberLong",value:"NumberLong",label:"NumberLong",score:1,meta:"bson",version:"0.0.0",description:"BSON 64 but Integer type",snippet:"NumberLong(${1:value})"},{name:"NumberDecimal",value:"NumberDecimal",label:"NumberDecimal",score:1,meta:"bson",version:"3.4.0",description:"BSON Decimal128 type",snippet:"NumberDecimal('${1:value}')"},{name:"MaxKey",value:"MaxKey",label:"MaxKey",score:1,meta:"bson",version:"0.0.0",description:"BSON MaxKey type",snippet:"MaxKey()"},{name:"MinKey",value:"MinKey",label:"MinKey",score:1,meta:"bson",version:"0.0.0",description:"BSON MinKey type",snippet:"MinKey()"},{name:"ISODate",value:"ISODate",label:"ISODate",score:1,meta:"bson",version:"0.0.0",description:"BSON Date type",snippet:"ISODate('${1:date}')"},{name:"RegExp",value:"RegExp",label:"RegExp",score:1,meta:"bson",version:"0.0.0",description:"BSON Regex type",snippet:"RegExp('${1:source}', '${2:opts}')"}]},50680:(e,t,n)=>{n.d(t,{$Z:()=>i,AO:()=>p,Ay:()=>a,Yr:()=>u,e1:()=>s,eH:()=>o,mj:()=>l,ol:()=>c,r4:()=>m,tf:()=>d});var r=n(97575);const a=r.default,s=r.DEFAULT_COLLATION,i=r.DEFAULT_FILTER,o=r.DEFAULT_LIMIT,l=r.DEFAULT_MAX_TIME_MS,c=r.DEFAULT_PROJECT,u=r.DEFAULT_SKIP,m=r.DEFAULT_SORT,p=(r.QUERY_PROPERTIES,r.isCollationValid,r.isFilterValid,r.isLimitValid,r.isMaxTimeMSValid,r.isProjectValid,r.isSkipValid,r.isSortValid,r.parseCollation,r.parseFilter,r.parseProject,r.parseSort,r.stringify,r.toJSString),d=r.validate},51456:(e,t,n)=>{const r=n(99430);e.exports=(e,t,n)=>r(t,e,n)},51699:(e,t,n)=>{const r=n(65684),a=n(47755),s=n(50066),i=n(76393),o=n(38358),l=n(99451),c=n(97660),u=n(18157),m=n(59818),p=n(12815),d=n(4496),h=n(67223),f=n(86543),v=n(32674),g=n(17620),$=n(80321),E=n(9331),y=n(68821),b=n(71595),S=n(18106),A=n(28141),O=n(41755),_=n(97369),x=n(74227),N=n(24078),T=n(98249),R=n(67812),I=n(67094),w=n(72857),L=n(12876),P=n(70449),C=n(92222),M=n(540),j=n(29087),D=n(59984),k=n(99597),F=n(19789),U=n(13012),V=n(11742),B=n(48195),q=n(40194);e.exports={parse:o,valid:l,clean:c,inc:u,diff:m,major:p,minor:d,patch:h,prerelease:f,compare:v,rcompare:g,compareLoose:$,compareBuild:E,sort:y,rsort:b,gt:S,lt:A,eq:O,neq:_,gte:x,lte:N,cmp:T,coerce:R,Comparator:I,Range:w,satisfies:L,toComparators:P,maxSatisfying:C,minSatisfying:M,minVersion:j,validRange:D,outside:k,gtr:F,ltr:U,intersects:V,simplifyRange:B,subset:q,SemVer:s,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},51778:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_PIPELINE_UTILS=void 0;const a=r(n(80184)),s="8.0.0",i="8.1.0";t.VIEW_PIPELINE_UTILS={MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_DE:s,MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_COMPASS:i,isPipelineSearchQueryable:e=>{for(const t of e){const e=Object.keys(t)[0];if("$addFields"!==e&&"$set"!==e&&"$match"!==e)return!1;if("$match"===e){const e=t.$match,n=Object.keys(e||{});if(1!==n.length||!n.includes("$expr"))return!1}}return!0},isVersionSearchCompatibleForViewsDataExplorer:e=>{try{return a.default.gte(e,s)}catch{return!1}},isVersionSearchCompatibleForViewsCompass:e=>{try{return a.default.gte(e,i)}catch{return!1}}}},52189:(e,t,n)=>{const r=n(33629);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},52378:(e,t,n)=>{var r=n(65994).e;const a="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=a},52992:(e,t,n)=>{const r=n(33629);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},53354:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapField=t.getFilteredCompletions=void 0,a(n(17807),t),a(n(5698),t),a(n(50678),t),a(n(66272),t),a(n(49014),t),a(n(20474),t),a(n(79188),t),a(n(93555),t),a(n(10094),t),a(n(86812),t),a(n(30629),t),a(n(21482),t);var s=n(69334);Object.defineProperty(t,"getFilteredCompletions",{enumerable:!0,get:function(){return s.getFilteredCompletions}}),Object.defineProperty(t,"wrapField",{enumerable:!0,get:function(){return s.wrapField}}),a(n(15580),t),a(n(10036),t)},53831:(e,t,n)=>{const r=n(99430);e.exports=(e,t,n)=>0===r(e,t,n)},54316:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_CONSTANTS=void 0,t.createConstantFilter=f,t.wrapField=function(e,t=!1){return t||!function(e){if(/[.\s"'()[\];={}:]/.test(e))return!1;try{return new Function(`"use strict";let _ = { ${e}: 0 };`),!0}catch{return!1}}(e)?`"${e.replace(/["\\]/g,"\\$&")}"`:e},t.getFilteredCompletions=function(e={},n=t.ALL_CONSTANTS){const{serverVersion:r=d,fields:a=[],meta:s,stage:i}=e,o=f({serverVersion:r,meta:s,stage:i});return n.concat(a.flatMap((e=>{const{value:t,description:n}=function(e){return"string"==typeof e?{value:e}:{value:e.name,description:e.description}}(e);return[{value:t,meta:"field:identifier",version:"0.0.0",description:n},{value:`$${t}`,meta:"field:reference",version:"0.0.0",description:n}]}))).filter((e=>o(e)))};const r=n(80184),a=n(22849),s=n(58516),i=n(77192),o=n(47530),l=n(36744),c=n(91934),u=n(28968),m=n(85426),p=n(86987);t.ALL_CONSTANTS=[...a.ACCUMULATORS,...i.BSON_TYPES,...s.BSON_TYPE_ALIASES,...o.CONVERSION_OPERATORS,...l.EXPRESSION_OPERATORS,...c.JSON_SCHEMA,...u.QUERY_OPERATORS,...m.STAGE_OPERATORS,...p.SYSTEM_VARIABLES];const d="999.999.999";function h(e,t){return void 0===e||void 0===t||(e=Array.isArray(e)?e:[e]).some((e=>t.includes(e)))}function f({meta:e,serverVersion:t=d,stage:n={}}={}){const a=/^(?<version>\d+\.\d+\.\d+)/.exec(t)?.groups?.version??d;return({version:t,meta:s,env:i,namespaces:o,apiVersions:l})=>function(e,t){const n=/^\d+\.\d+\.\d+$/.test(t);return(0,r.satisfies)(e,n?`>=${t}`:t)}(a,t)&&h(n.env,i)&&h(n.namespace,o)&&h(n.apiVersion,l)&&(!e||function(e,t){const n=t.split(":");return e.some((e=>{const t=e.split(":");return t.length===n.length&&t.every(((e,t)=>"*"===e||e===n[t]))}))}(e,s))}},54506:(e,t,n)=>{const r=n(77203);e.exports=(e,t,n)=>r(e,t,n)>=0},54597:(e,t,n)=>{const r=n(40289);e.exports=(e,t)=>r(e,t,!0)},54917:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.executeAST=void 0;const r=n(23871),a=(e,t)=>{switch(e.callee.type){case"Identifier":{const n=(0,r.getScopeFunction)(e.callee.name,t),a=e.arguments.map((e=>s(e)));return n.apply(n,a)}case"MemberExpression":{const t="Identifier"===e.callee.object.type?(0,r.getClass)(e.callee.object.name):s(e.callee.object),n="Identifier"===e.callee.property.type&&e.callee.property.name;if(!n)throw new Error("Expected CallExpression property to be an identifier");const a=e.arguments.map((e=>s(e)));return t[n](...a)}default:throw new Error("Should not evaluate invalid expressions")}},s=e=>{switch(e?.type){case"Identifier":if(Object.prototype.hasOwnProperty.call(r.GLOBALS,e.name))return r.GLOBALS[e.name];throw new Error(`${e.name} is not a valid Identifier`);case"Literal":return e.value;case"UnaryExpression":return(e=>{if(!e.prefix)throw new Error("Malformed UnaryExpression");switch(e.operator){case"-":return-s(e.argument);case"+":return+s(e.argument);case"!":return!s(e.argument);case"~":return~s(e.argument);default:throw new Error(`Invalid UnaryExpression Provided: '${e.operator}'`)}})(e);case"BinaryExpression":return(e=>{const{left:t,right:n}=e;switch(e.operator){case"==":return s(t)==s(n);case"!=":return s(t)!=s(n);case"===":return s(t)===s(n);case"!==":return s(t)!==s(n);case"<":return s(t)<s(n);case"<=":return s(t)<=s(n);case">":return s(t)>s(n);case">=":return s(t)>=s(n);case"<<":return s(t)<<s(n);case">>":return s(t)>>s(n);case">>>":return s(t)>>>s(n);case"+":return s(t)+s(n);case"-":return s(t)-s(n);case"*":return s(t)*s(n);case"/":return s(t)/s(n);case"%":return s(t)%s(n);case"**":return s(t)**s(n);case"|":return s(t)|s(n);case"^":return s(t)^s(n);case"&":return s(t)&s(n);case"in":return s(t)in s(n);case"instanceof":return s(t)instanceof s(n);default:throw new Error(`Invalid BinaryExpression Provided: '${String(e.operator)}'`)}})(e);case"ArrayExpression":return e.elements.map((e=>s(e)));case"CallExpression":return a(e,!1);case"NewExpression":return a(e,!0);case"ObjectExpression":{const t=Object.create(null);for(const n of e.properties)"key"in n&&(t["Identifier"===n.key.type?n.key.name:s(n.key)]=s(n.value));return{...t}}case"FunctionExpression":case"ArrowFunctionExpression":return(e=>{const t=e.loc?.source||"",n=e.range||[];return t.slice(n[0],n[1])})(e);default:throw new Error}};t.executeAST=e=>{if("Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type)return s(e.body[0].expression);throw new Error("Invalid AST Found")}},55069:(e,t,n)=>{n.d(t,{Zt:()=>a});var r=n(29299);r.ACCUMULATORS,r.ADL,r.ANY_COLLECTION_NAMESPACE,r.ANY_NAMESPACE,r.ATLAS,r.ATLAS_SEARCH_TEMPLATES,r.ATLAS_VECTOR_SEARCH_TEMPLATE,r.BSON_TYPES,r.BSON_TYPE_ALIASES,r.COLLECTION,r.CONVERSION_OPERATORS,r.DATABASE,r.ENVS,r.EXPRESSION_OPERATORS,r.FULL_SCAN_STAGES,r.JSON_SCHEMA,r.ON_PREM,r.OUT_STAGES,r.QUERY_OPERATORS,r.REQUIRED_AS_FIRST_STAGE,r.STAGE_OPERATORS,r.STAGE_OPERATOR_NAMES,r.SYSTEM_VARIABLES,r.TIME_SERIES,r.VALIDATION_TEMPLATE,r.VIEW,r.VIEW_PIPELINE_UTILS,r.getFilteredCompletions;const a=r.wrapField},55141:(e,t,n)=>{const r=Symbol("SemVer ANY");class a{static get ANY(){return r}constructor(e,t){if(t=s(t),e instanceof a){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new m(e.value,t).test(this.value):""===e.operator?""===e.value||new m(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=a;const s=n(83214),{safeRe:i,t:o}=n(92625),l=n(88108),c=n(29385),u=n(48381),m=n(20332)},56101:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.toJSString=void 0;const r=n(17230),a=new Map([["[object Array]","Array"],["[object Object]","Object"],["[object String]","String"],["[object Date]","Date"],["[object Number]","Number"],["[object Function]","Function"],["[object RegExp]","RegExp"],["[object Boolean]","Boolean"],["[object Null]","Null"],["[object Undefined]","Undefined"]]);const s={Code:function(e){return e.scope?`Code('${e.code}',${JSON.stringify(e.scope)})`:`Code('${e.code}')`},ObjectID:function(e){return`ObjectId('${e.toString("hex")}')`},ObjectId:function(e){return`ObjectId('${e.toString("hex")}')`},Binary:function(e){const t=e.sub_type;if(4===t&&16===e.buffer.length){let t="";try{t=e.toUUID().toString()}catch{t=e.toString("hex")}return`UUID('${t}')`}return`BinData(${t.toString(10)}, '${e.toString("base64")}')`},DBRef:function(e){return e.db?`DBRef('${e.collection}', '${e.oid.toString()}', '${e.db}')`:`DBRef('${e.collection}', '${e.oid.toString()}')`},Timestamp:function(e){return`Timestamp({ t: ${e.high}, i: ${e.low} })`},Long:function(e){return`NumberLong('${e.toString()}')`},Decimal128:function(e){return`NumberDecimal('${e.toString()}')`},Double:function(e){return`Double('${e.toString()}')`},Int32:function(e){return`NumberInt('${e.toString()}')`},MaxKey:function(){return"MaxKey()"},MinKey:function(){return"MinKey()"},Date:function(e){return s.ISODate(e)},ISODate:function(e){try{return`ISODate('${e.toISOString()}')`}catch(t){return`ISODate('${e.toString()}')`}},RegExp:function(e){let t="",n=!1;return e.global&&(n=!0,t+="g"),e.ignoreCase&&(n=!0,t+="i"),e.multiline&&(n=!0,t+="m"),`RegExp(${JSON.stringify(e.source)}${n?`, '${t}'`:""})`},BSONRegExp:function(e){const t=e.options&&e.options?.length>0;let n="RegExp";try{RegExp(e.pattern,e.options||void 0)}catch{n="BSONRegExp"}return`${n}(${JSON.stringify(e.pattern)}${t?`, '${e.options}'`:""})`}};function i(e,t=2){return(0,r.stringify)(e,(function(e,t,n){const r=function(e){const t=function(e){return a.get(Object.prototype.toString.call(e))}(e),n="Object"===t&&e._bsontype;return{type:n||t,isBSON:!!n}}(e),i=s[r.type];return i?i(e):n(e)}),t)}t.toJSString=i,t.stringify=function(e){return i(e,1)?.replace(/ ?\n ? ?/g,"").replace(/ {2,}/g," ")}},56565:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t),t}},56741:(e,t,n)=>{const r=n(71333);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},56911:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATION_TEMPLATE=void 0,t.VALIDATION_TEMPLATE='/**\n * This is a starter template for a schema validation rule for a collection.\n * More information on schema validation rules can be found at:\n * https://www.mongodb.com/docs/manual/core/schema-validation/\n */\n{\n $jsonSchema: {\n title: "Library.books",\n bsonType: "object",\n required: ["fieldname1", "fieldname2"],\n properties: {\n fieldname1: {\n bsonType: "string",\n description: "Fieldname1 must be a string",\n },\n fieldname2: {\n bsonType: "int",\n description: "Fieldname2 must be an integer",\n },\n arrayFieldName: {\n bsonType: "array",\n items: {\n bsonType: "string"\n },\n description: "arrayFieldName must be an array of strings"\n },\n }\n }\n}'},56934:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.toJSString=void 0;const r=n(17230),a=new Map([["[object Array]","Array"],["[object Object]","Object"],["[object String]","String"],["[object Date]","Date"],["[object Number]","Number"],["[object Function]","Function"],["[object RegExp]","RegExp"],["[object Boolean]","Boolean"],["[object Null]","Null"],["[object Undefined]","Undefined"]]);const s={Code:function(e){return e.scope?`Code('${e.code}',${JSON.stringify(e.scope)})`:`Code('${e.code}')`},ObjectID:function(e){return`ObjectId('${e.toString("hex")}')`},ObjectId:function(e){return`ObjectId('${e.toString("hex")}')`},Binary:function(e){const t=e.sub_type;if(4===t&&16===e.buffer.length){let t="";try{t=e.toUUID().toString()}catch{t=e.toString("hex")}return`UUID('${t}')`}return`BinData(${t.toString(10)}, '${e.toString("base64")}')`},DBRef:function(e){return e.db?`DBRef('${e.collection}', '${e.oid.toString()}', '${e.db}')`:`DBRef('${e.collection}', '${e.oid.toString()}')`},Timestamp:function(e){return`Timestamp({ t: ${e.high}, i: ${e.low} })`},Long:function(e){return`NumberLong('${e.toString()}')`},Decimal128:function(e){return`NumberDecimal('${e.toString()}')`},Double:function(e){return`Double('${e.toString()}')`},Int32:function(e){return`NumberInt('${e.toString()}')`},MaxKey:function(){return"MaxKey()"},MinKey:function(){return"MinKey()"},Date:function(e){return s.ISODate(e)},ISODate:function(e){try{return`ISODate('${e.toISOString()}')`}catch(t){return`ISODate('${e.toString()}')`}},RegExp:function(e){let t="",n=!1;return e.global&&(n=!0,t+="g"),e.ignoreCase&&(n=!0,t+="i"),e.multiline&&(n=!0,t+="m"),`RegExp(${JSON.stringify(e.source)}${n?`, '${t}'`:""})`},BSONRegExp:function(e){const t=e.options&&e.options?.length>0;let n="RegExp";try{RegExp(e.pattern,e.options||void 0)}catch{n="BSONRegExp"}return`${n}(${JSON.stringify(e.pattern)}${t?`, '${e.options}'`:""})`}};function i(e,t=2){return(0,r.stringify)(e,(function(e,t,n){const r=function(e){const t=function(e){return a.get(Object.prototype.toString.call(e))}(e),n="Object"===t&&e._bsontype;return{type:n||t,isBSON:!!n}}(e),i=s[r.type];return i?i(e):n(e)}),t)}t.toJSString=i,t.stringify=function(e){return i(e,1)?.replace(/ ?\n ? ?/g,"").replace(/ {2,}/g," ")}},57681:(e,t,n)=>{const r=n(9350),a=n(96506),{ANY:s}=a,i=n(33629),o=n(52992),l=n(42734),c=n(63825),u=n(90898),m=n(66135);e.exports=(e,t,n,p)=>{let d,h,f,v,g;switch(e=new r(e,p),t=new i(t,p),n){case">":d=l,h=u,f=c,v=">",g=">=";break;case"<":d=c,h=m,f=l,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let i=null,o=null;if(r.forEach((e=>{e.semver===s&&(e=new a(">=0.0.0")),i=i||e,o=o||e,d(e.semver,i.semver,p)?i=e:f(e.semver,o.semver,p)&&(o=e)})),i.operator===v||i.operator===g)return!1;if((!o.operator||o.operator===v)&&h(e,o.semver))return!1;if(o.operator===g&&f(e,o.semver))return!1}return!0}},58313:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EXPRESSION_OPERATORS=void 0,t.EXPRESSION_OPERATORS=[{name:"$abs",value:"$abs",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$accumulator",value:"$accumulator",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$add",value:"$add",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$allElementsTrue",value:"$allElementsTrue",score:1,meta:"expr:set",version:"2.6.0"},{name:"$and",value:"$and",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$anyElementTrue",value:"$anyElementTrue",score:1,meta:"expr:set",version:"2.6.0"},{name:"$arrayElemAt",value:"$arrayElemAt",score:1,meta:"expr:array",version:"3.2.0"},{name:"$arrayToObject",value:"$arrayToObject",score:1,meta:"expr:array",version:"3.4.4"},{name:"$binarySize",value:"$binarySize",score:1,meta:"expr:obj",version:"4.4.0"},{name:"$bsonSize",value:"$bsonSize",score:1,meta:"expr:obj",version:"4.4.0"},{name:"$ceil",value:"$ceil",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$cmp",value:"$cmp",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$concat",value:"$concat",score:1,meta:"expr:string",version:"2.4.0"},{name:"$concatArrays",value:"$concatArrays",score:1,meta:"expr:array",version:"3.2.0"},{name:"$cond",value:"$cond",score:1,meta:"expr:cond",version:"2.6.0"},{name:"$dateAdd",value:"$dateAdd",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateDiff",value:"$dateDiff",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateFromParts",value:"$dateFromParts",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateFromString",value:"$dateFromString",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateSubtract",value:"$dateSubtract",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dateToParts",value:"$dateToParts",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateToString",value:"$dateToString",score:1,meta:"expr:date",version:"3.6.0"},{name:"$dateTrunc",value:"$dateTrunc",score:1,meta:"expr:date",version:"5.0.0"},{name:"$dayOfMonth",value:"$dayOfMonth",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dayOfWeek",value:"$dayOfWeek",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dayOfYear",value:"$dayOfYear",score:1,meta:"expr:date",version:"2.2.0"},{name:"$dateToString",value:"$dateToString",score:1,meta:"expr:date",version:"3.0.0"},{name:"$divide",value:"$divide",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$eq",value:"$eq",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$exp",value:"$exp",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$filter",value:"$filter",score:1,meta:"expr:array",version:"3.2.0"},{name:"$first",value:"$first",score:1,meta:"expr:array",version:"4.4.0"},{name:"$floor",value:"$floor",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$function",value:"$function",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$getField",value:"$getField",score:1,meta:"expr:get",version:"5.0.0"},{name:"$gt",value:"$gt",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$gte",value:"$gte",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$hour",value:"$hour",score:1,meta:"expr:date",version:"2.2.0"},{name:"$ifNull",value:"$ifNull",score:1,meta:"expr:cond",version:"2.2.0"},{name:"$in",value:"$in",score:1,meta:"expr:array",version:"3.4.0"},{name:"$indexOfArray",value:"$indexOfArray",score:1,meta:"expr:array",version:"3.4.0"},{name:"$indexOfBytes",value:"$indexOfBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$indexOfCP",value:"$indexOfCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$isArray",value:"$isArray",score:1,meta:"expr:array",version:"3.2.0"},{name:"$isNumber",value:"$isNumber",score:1,meta:"expr:arith",version:"4.4.0"},{name:"$isoDayOfWeek",value:"$isoDayOfWeek",score:1,meta:"expr:date",version:"3.4.0"},{name:"$isoWeek",value:"$isoWeek",score:1,meta:"expr:date",version:"3.4.0"},{name:"$isoWeekYear",value:"$isoWeekYear",score:1,meta:"expr:date",version:"3.4.0"},{name:"$last",value:"$last",score:1,meta:"expr:array",version:"4.4.0"},{name:"$let",value:"$let",score:1,meta:"expr:var",version:"2.6.0"},{name:"$literal",value:"$literal",score:1,meta:"expr:literal",version:"2.6.0"},{name:"$lt",value:"$lt",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$lt",value:"$lte",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$ln",value:"$ln",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$log",value:"$log",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$log10",value:"$log10",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$map",value:"$map",score:1,meta:"expr:array",version:"2.6.0"},{name:"$mergeObjects",value:"$mergeObjects",score:1,meta:"expr:obj",version:"3.6.0"},{name:"$meta",value:"$meta",score:1,meta:"expr:text",version:"2.6.0"},{name:"$millisecond",value:"$millisecond",score:1,meta:"expr:date",version:"2.4.0"},{name:"$minute",value:"$minute",score:1,meta:"expr:date",version:"2.2.0"},{name:"$mod",value:"$mod",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$month",value:"$month",score:1,meta:"expr:date",version:"2.2.0"},{name:"$multiply",value:"$multiply",score:1,meta:"expr:arith",version:"2.2.0"},{name:"$new",value:"$new",score:1,meta:"expr:comp",version:"2.2.0"},{name:"$not",value:"$not",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$objectToArray",value:"$objectToArray",score:1,meta:"expr:array",version:"3.4.4"},{name:"$or",value:"$or",score:1,meta:"expr:bool",version:"2.2.0"},{name:"$pow",value:"$pow",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$range",value:"$range",score:1,meta:"expr:array",version:"3.4.0"},{name:"$reduce",value:"$reduce",score:1,meta:"expr:array",version:"3.4.0"},{name:"$regexFind",value:"$regexFind",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$regexFindAll",value:"$regexFindAll",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$regexMatch",value:"$regexMatch",score:1,meta:"expr:regex",version:"4.1.11"},{name:"$replaceAll",value:"$replaceAll",score:1,meta:"expr:string",version:"4.4.0"},{name:"$replaceOne",value:"$replaceOne",score:1,meta:"expr:string",version:"4.4.0"},{name:"$reverseArray",value:"$reverseArray",score:1,meta:"expr:array",version:"3.4.0"},{name:"$second",value:"$second",score:1,meta:"expr:date",version:"2.2.0"},{name:"$setDifference",value:"$setDifference",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setEquals",value:"$setEquals",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setIntersection",value:"$setIntersection",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setIsSubset",value:"$setIsSubset",score:1,meta:"expr:set",version:"2.6.0"},{name:"$setUnion",value:"$setUnion",score:1,meta:"expr:set",version:"2.6.0"},{name:"$similarityCosine",value:"$similarityCosine",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$similarityDotProduct",value:"$similarityDotProduct",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$similarityEuclidean",value:"$similarityEuclidean",score:1,meta:"expr:arith",version:"8.2.0"},{name:"$size",value:"$size",score:1,meta:"expr:array",version:"2.6.0"},{name:"$slice",value:"$slice",score:1,meta:"expr:array",version:"3.2.0"},{name:"$sortArray",value:"$sortArray",score:1,meta:"expr:array",version:"5.2.0"},{name:"$split",value:"$split",score:1,meta:"expr:string",version:"3.4.0"},{name:"$sqrt",value:"$sqrt",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$strcasecmp",value:"$strcasecmp",score:1,meta:"expr:string",version:"2.2.0"},{name:"$strLenBytes",value:"$strLenBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$strLenCP",value:"$strLenCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$substr",value:"$substr",score:1,meta:"expr:string",version:"2.2.0",deprecated:"3.4.0",replacement:"$substrBytes"},{name:"$substrBytes",value:"$substrBytes",score:1,meta:"expr:string",version:"3.4.0"},{name:"$substrCP",value:"$substrCP",score:1,meta:"expr:string",version:"3.4.0"},{name:"$subtract",value:"$subtract",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$switch",value:"$switch",score:1,meta:"expr:cond",version:"3.4.0"},{name:"$toHashedIndexKey",value:"$toHashedIndexKey",score:1,meta:"expr:arith",version:"4.2.24"},{name:"$toLower",value:"$toLower",score:1,meta:"expr:string",version:"2.2.0"},{name:"$toUpper",value:"$toUpper",score:1,meta:"expr:string",version:"2.2.0"},{name:"$tsSecond",value:"$tsSecond",score:1,meta:"expr:date",version:"5.1.0"},{name:"$tsIncrement",value:"$tsIncrement",score:1,meta:"expr:date",version:"5.1.0"},{name:"$trunc",value:"$trunc",score:1,meta:"expr:arith",version:"3.2.0"},{name:"$type",value:"$type",score:1,meta:"expr:type",version:"3.4.0"},{name:"$week",value:"$week",score:1,meta:"expr:date",version:"2.2.0"},{name:"$year",value:"$year",score:1,meta:"expr:date",version:"2.2.0"},{name:"$zip",value:"$zip",score:1,meta:"expr:array",version:"3.4.0"},{name:"$bitAnd",value:"$bitAnd",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitOr",value:"$bitOr",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitXor",value:"$bitXor",score:1,meta:"expr:bit",version:"7.0.0"},{name:"$bitNot",value:"$bitNot",score:1,meta:"expr:bit",version:"7.0.0"}]},58387:(e,t,n)=>{const r=Symbol("SemVer ANY");class a{static get ANY(){return r}constructor(e,t){if(t=s(t),e instanceof a){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new m(e.value,t).test(this.value):""===e.operator?""===e.value||new m(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=a;const s=n(69348),{safeRe:i,t:o}=n(415),l=n(59382),c=n(67767),u=n(66283),m=n(38366)},58395:(e,t,n)=>{const r=n(9350);e.exports=(e,t)=>new r(e,t).patch},58516:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BSON_TYPE_ALIASES=void 0,t.BSON_TYPE_ALIASES=[{name:"double",value:"double",label:"double",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"string",value:"string",label:"string",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"object",value:"object",label:"object",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"array",value:"array",label:"array",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"binData",value:"binData",label:"binData",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"objectId",value:"objectId",label:"objectId",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"bool",value:"bool",label:"bool",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"date",value:"date",label:"date",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"null",value:"null",label:"null",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"double",value:"double",label:"double",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"regex",value:"regex",label:"regex",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"javascript",value:"javascript",label:"javascript",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"javascriptWithScope",value:"javascriptWithScope",label:"javascriptWithScope",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"int",value:"int",label:"int",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"timestamp",value:"timestamp",label:"timestamp",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"long",value:"long",label:"long",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"decimal",value:"decimal",label:"decimal",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"minKey",value:"minKey",label:"minKey",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"maxKey",value:"maxKey",label:"maxKey",score:1,meta:"bson-type-aliases",version:"3.6.0"}]},58809:(e,t,n)=>{const r=n(77203);e.exports=(e,t,n)=>r(e,t,n)>0},59025:(e,t,n)=>{const r=n(99385);e.exports=(e,t,n)=>r(e,t,">",n)},59170:function(e,t,n){var r=n(67787).Buffer,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_FUNCTIONS=t.GLOBALS=void 0,t.getScopeFunction=function(e,t){if(t&&m[e])return m[e];if(!t&&u[e])return u[e];if(p[e])return p[e];throw new Error(`Attempted to access scope property '${e}' that doesn't exist`)},t.isMethodWhitelisted=function(e,t){if(Object.prototype.hasOwnProperty.call(d,e)){const n=d[e].allowedMethods;return"string"==typeof n?d[n].allowedMethods[t]:n[t]}return!1},t.getClass=function(e){if(Object.prototype.hasOwnProperty.call(d,e))return d[e].class;throw new Error(`Attempted to access member '${e}' that doesn't exist`)};const o=i(n(62444));function l(e){return Object.freeze(Object.create(null,Object.getOwnPropertyDescriptors(e)))}function c(e){return"string"==typeof e?o.Long.fromString(e):o.Long.fromNumber(e)}const u=l({Date:function(...e){return Date(...e)}}),m=l({Date:function(...e){return new Date(...e)}}),p=l({RegExp,Binary:function(e,t){return new o.Binary(e,t)},BinData:function(e,t){return new o.Binary(r.from(t,"base64"),e)},UUID:function(e){return void 0===e?(new o.UUID).toBinary():new o.Binary(r.from(e.replace(/-/g,""),"hex"),4)},Code:function(e,t){return new o.Code(e,t)},DBRef:function(e,t,n,r){return new o.DBRef(e,t,n,r)},Decimal128:function(e){return o.Decimal128.fromString(e)},NumberDecimal:function(e){return o.Decimal128.fromString(e)},Double:function(e){return new o.Double(e)},Int32:function(e){return new o.Int32(e)},NumberInt:function(e){return parseInt(e,10)},Long:function(e,t){return new o.Long(e,t)},NumberLong:c,Int64:c,Map:function(e){return new(o.Map??Map)(e)},MaxKey:function(){return new o.MaxKey},MinKey:function(){return new o.MinKey},ObjectID:function(e){return new o.ObjectId(e)},ObjectId:function(e){return new o.ObjectId(e)},Symbol:function(e){return new o.BSONSymbol(e)},Timestamp:function(e,t){return"number"==typeof e&&"number"==typeof t||void 0!==t?new o.Timestamp({t:e,i:t}):new o.Timestamp(e)},ISODate:function(e){if(void 0===e)return new Date;if("string"!=typeof e)return new Date(e);const t=e.match(/^(?<Y>\d{4})-?(?<M>\d{2})-?(?<D>\d{2})([T ](?<h>\d{2})(:?(?<m>\d{2})(:?((?<s>\d{2})(\.(?<ms>\d+))?))?)?(?<tz>Z|([+-])(\d{2}):?(\d{2})?)?)?$/);if(null!==t&&void 0!==t.groups){const{Y:e,M:n,D:r,h:a,m:s,s:i,ms:o,tz:l}=t.groups,c=new Date(`${e}-${n}-${r}T${a||"00"}:${s||"00"}:${i||"00"}.${o||"000"}${l||"Z"}`);if(c.getTime()>=-621672192e5&&c.getTime()<=0xe677d21fdbff)return c}throw new Error(`${JSON.stringify(e)} is not a valid ISODate`)}});t.GLOBALS=l({Infinity:1/0,NaN:NaN,undefined:void 0});const d=l({Math:l({class:Math,allowedMethods:l({abs:!0,acos:!0,acosh:!0,asin:!0,asinh:!0,atan:!0,atan2:!0,atanh:!0,cbrt:!0,ceil:!0,clz32:!0,cos:!0,cosh:!0,exp:!0,expm1:!0,floor:!0,fround:!0,hypot:!0,imul:!0,log:!0,log10:!0,log1p:!0,log2:!0,max:!0,min:!0,pow:!0,round:!0,sign:!0,sin:!0,sinh:!0,sqrt:!0,tan:!0,tanh:!0,trunc:!0})}),Date:l({class:Date,allowedMethods:l({getDate:!0,getDay:!0,getFullYear:!0,getHours:!0,getMilliseconds:!0,getMinutes:!0,getMonth:!0,getSeconds:!0,getTime:!0,getTimezoneOffset:!0,getUTCDate:!0,getUTCDay:!0,getUTCFullYear:!0,getUTCHours:!0,getUTCMilliseconds:!0,getUTCMinutes:!0,getUTCMonth:!0,getUTCSeconds:!0,getYear:!0,now:!0,setDate:!0,setFullYear:!0,setHours:!0,setMilliseconds:!0,setMinutes:!0,setMonth:!0,setSeconds:!0,setTime:!0,setUTCDate:!0,setUTCFullYear:!0,setUTCHours:!0,setUTCMilliseconds:!0,setUTCMinutes:!0,setUTCMonth:!0,setUTCSeconds:!0,setYear:!0,toISOString:!0,valueOf:!0})}),ISODate:l({class:Date,allowedMethods:"Date"}),Binary:l({class:o.Binary,allowedMethods:{createFromHexString:!0,createFromBase64:!0}})});t.GLOBAL_FUNCTIONS=Object.freeze([...Object.keys(p),...Object.keys(m),...Object.keys(u)])},59176:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_MAX_TIME_MS=t.DEFAULT_COLLATION=t.DEFAULT_PROJECT=t.DEFAULT_SKIP=t.DEFAULT_LIMIT=t.DEFAULT_SORT=t.DEFAULT_FILTER=t.QUERY_PROPERTIES=t.toJSString=t.stringify=t.validate=t.isLimitValid=t.isSkipValid=t.isMaxTimeMSValid=t.isSortValid=t.isProjectValid=t.parseProject=t.isCollationValid=t.isFilterValid=t.parseCollation=t.parseFilter=t.parseSort=void 0;const o=s(n(42583)),l=i(n(20990)),c=i(n(46696)),u=n(63453),m=n(56101);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(t,"toJSString",{enumerable:!0,get:function(){return m.toJSString}});const p=(0,c.default)("mongodb-query-parser"),d={};t.DEFAULT_FILTER=d;const h=null;t.DEFAULT_SORT=h,t.DEFAULT_LIMIT=0,t.DEFAULT_SKIP=0;const f=null;t.DEFAULT_PROJECT=f;const v=null;function g(e){if(null==e)return!0;const t=l.default.trim("number"==typeof e?`${e}`:e);return"{}"===t||l.default.isEmpty(t)}function $(e){return g(e)?0:!!/^\d+$/.test(`${e}`)&&parseInt(`${e}`,10)}function E(e){return(0,o.default)(e,{mode:o.ParseMode.Loose})}function y(e){return(0,o.default)(e,{mode:o.ParseMode.Loose})}function b(e){return g(e)?h:(0,o.default)(e,{mode:o.ParseMode.Loose})}function S(e){return(0,o.default)(e,{mode:o.ParseMode.Loose,allowMethods:!0})}function A(e){if(g(e))return d;try{return S(e)}catch(t){return p('Filter "%s" is invalid',e,t),!1}}function O(e){if(g(e))return v;try{return function(e){for(const[t,n]of Object.entries(e)){if(!u.COLLATION_OPTIONS[t])return p('Collation "%s" is invalid bc of its keys',e),!1;if(!1===u.COLLATION_OPTIONS[t].includes(n))return p('Collation "%s" is invalid bc of its values',e),!1}return e}(y(e))}catch(t){return p('Collation "%s" is invalid',e,t),!1}}function _(){return!0}function x(e){if(g(e))return f;try{const t=E(e);return l.default.isObject(t)?l.default.every(t,_)?t:(p('Project "%s" is invalid bc of its values',e),!1):(p('Project "%s" is invalid. Only documents are allowed',e),!1)}catch(t){return p('Project "%s" is invalid',e,t),!1}}t.DEFAULT_COLLATION=v,t.DEFAULT_MAX_TIME_MS=6e4,t.QUERY_PROPERTIES=["filter","project","sort","skip","limit"],t.parseSort=b,t.parseFilter=function(e){return g(e)?d:S(e)},t.parseCollation=function(e){return g(e)?v:y(e)},t.isFilterValid=A,t.isCollationValid=O,t.parseProject=function(e){return g(e)?f:E(e)},t.isProjectValid=x;const N=[1,-1,"asc","desc"];function T(e){return l.default.includes(N,e)||!(!l.default.isObject(e)||!e.$meta)}function R(e){return l.default.isArray(e)&&2===e.length&&l.default.isString(e[0])&&T(e[1])}function I(e){try{const t=b(e);return g(t)?h:l.default.isArray(t)&&l.default.every(t,R)||l.default.isObject(t)&&!l.default.isArray(t)&&l.default.every(t,T)?t:(p('Sort "%s" is invalid bc of its values',e),!1)}catch(t){return p('Sort "%s" is invalid',e,t),!1}}function w(e){return g(e)?6e4:$(e)}function L(e){return g(e)?0:$(e)}function P(e){return g(e)?0:$(e)}t.isSortValid=I,t.isMaxTimeMSValid=w,t.isSkipValid=L,t.isLimitValid=P;const C={isMaxTimeMSValid:w,isFilterValid:A,isProjectValid:x,isSortValid:I,isLimitValid:P,isSkipValid:L,isCollationValid:O,isNumberValid:$};t.validate=function(e,t){const n=C[`is${l.default.upperFirst(e)}Valid`];return n?n(t):(p("Do not know how to validate `%s`. Returning false.",e),!1)},t.default=function(e,t=null){return 1===arguments.length&&l.default.isString(e)?S(e):{filter:S(e),project:t!==f?E(t):t}}},59263:(e,t,n)=>{const r=n(52992),a=n(99430);e.exports=(e,t,n)=>{const s=[];let i=null,o=null;const l=e.sort(((e,t)=>a(e,t,n)));for(const e of l)r(e,t,n)?(o=e,i||(i=e)):(o&&s.push([i,o]),o=null,i=null);i&&s.push([i,null]);const c=[];for(const[e,t]of s)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),m="string"==typeof t.raw?t.raw:String(t);return u.length<m.length?u:t}},59382:(e,t,n)=>{const r=n(98746),a=n(78654),s=n(61607),i=n(15844),o=n(91152),l=n(80829);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return a(e,n,c);case">":return s(e,n,c);case">=":return i(e,n,c);case"<":return o(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},59441:(e,t,n)=>{const r=n(66283);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},59588:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ANY_NAMESPACE=t.ANY_COLLECTION_NAMESPACE=t.TIME_SERIES=t.VIEW=t.COLLECTION=t.DATABASE=void 0,t.DATABASE="db";const n="coll";t.COLLECTION=n;const r="view";t.VIEW=r;const a="timeseries";t.TIME_SERIES=a;const s=[n,r,a];t.ANY_COLLECTION_NAMESPACE=s;const i=["db",...s];t.ANY_NAMESPACE=i},59591:(e,t,n)=>{const r=n(18104),a=n(4292),s=n(41694),i=n(90733),o=n(83586),l=n(20903),c=n(15144),u=n(89065),m=n(76654),p=n(86912),d=n(32924),h=n(65011),f=n(30403),v=n(40289),g=n(19896),$=n(54597),E=n(87391),y=n(42945),b=n(37359),S=n(43334),A=n(3449),O=n(94463),_=n(36749),x=n(47775),N=n(9418),T=n(94706),R=n(65816),I=n(96082),w=n(71333),L=n(9480),P=n(56741),C=n(34218),M=n(44016),j=n(77467),D=n(37276),k=n(99385),F=n(59025),U=n(5992),V=n(73634),B=n(96775),q=n(36582);e.exports={parse:o,valid:l,clean:c,inc:u,diff:m,major:p,minor:d,patch:h,prerelease:f,compare:v,rcompare:g,compareLoose:$,compareBuild:E,sort:y,rsort:b,gt:S,lt:A,eq:O,neq:_,gte:x,lte:N,cmp:T,coerce:R,Comparator:I,Range:w,satisfies:L,toComparators:P,maxSatisfying:C,minSatisfying:M,minVersion:j,validRange:D,outside:k,gtr:F,ltr:U,intersects:V,simplifyRange:B,subset:q,SemVer:s,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},59818:(e,t,n)=>{const r=n(38358);e.exports=(e,t)=>{const n=r(e,null,!0),a=r(t,null,!0),s=n.compare(a);if(0===s)return null;const i=s>0,o=i?n:a,l=i?a:n,c=!!o.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(o))return l.minor&&!l.patch?"minor":"patch"}const u=c?"pre":"";return n.major!==a.major?u+"major":n.minor!==a.minor?u+"minor":n.patch!==a.patch?u+"patch":"prerelease"}},59984:(e,t,n)=>{const r=n(72857);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},60098:(e,t,n)=>{const r=n(9350),a=n(33629);e.exports=(e,t,n)=>{let s=null,i=null,o=null;try{o=new a(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},60501:(e,t,n)=>{const r=n(66283);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},60679:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QUERY_OPERATORS=void 0,t.QUERY_OPERATORS=[{name:"$all",value:"$all",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$and",value:"$and",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$bitsAllClear",value:"$bitsAllClear",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAllSet",value:"$bitsAllSet",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAnyClear",value:"$bitsAnyClear",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$bitsAnySet",value:"$bitsAnySet",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$comment",value:"$comment",score:1,meta:"query",version:"3.2.0",geospatial:!1},{name:"$elemMatch",value:"$elemMatch",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$eq",value:"$eq",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$exists",value:"$exists",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$expr",value:"$expr",score:1,meta:"query",version:"3.6.0",geospatial:!1},{name:"$geoIntersects",value:"$geoIntersects",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$geoWithin",value:"$geoWithin",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$gt",value:"$gt",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$gte",value:"$gte",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$in",value:"$in",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$jsonSchema",value:"$jsonSchema",score:1,meta:"query",version:"3.6.0",geospatial:!1},{name:"$lt",value:"$lt",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$lte",value:"$lte",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$mod",value:"$mod",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$ne",value:"$ne",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$near",value:"$near",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$nearSphere",value:"$nearSphere",score:1,meta:"query",version:"2.2.0",geospatial:!0},{name:"$nin",value:"$nin",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$not",value:"$not",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$nor",value:"$nor",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$or",value:"$or",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$regex",value:"$regex",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$size",value:"$size",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$slice",value:"$slice",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$text",value:"$text",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$type",value:"$type",score:1,meta:"query",version:"2.2.0",geospatial:!1},{name:"$where",value:"$where",score:1,meta:"query",version:"2.2.0",geospatial:!1}]},61607:(e,t,n)=>{const r=n(60501);e.exports=(e,t,n)=>r(e,t,n)>0},62280:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ACCUMULATORS=void 0,t.ACCUMULATORS=[{name:"$accumulator",value:"$accumulator",score:1,meta:"accumulator",version:"4.4.0"},{name:"$addToSet",value:"$addToSet",score:1,meta:"accumulator",version:"2.2.0"},{name:"$avg",value:"$avg",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$bottom",value:"$bottom",score:1,meta:"accumulator:bottom-n",version:"5.2.0"},{name:"$bottomN",value:"$bottomN",score:1,meta:"accumulator:bottom-n",version:"5.2.0"},{name:"$covariancePop",value:"$covariancePop",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$covarianceSamp",value:"$covarianceSamp",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$count",value:"$count",score:1,meta:"accumulator",version:"5.0.0"},{name:"$derivative",value:"$derivative",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$denseRank",value:"$denseRank",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$documentNumber",value:"$documentNumber",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$expMovingAvg",value:"$expMovingAvg",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$first",value:"$first",score:1,meta:"accumulator",version:"2.2.0"},{name:"$firstN",value:"$firstN",score:1,meta:"accumulator",version:"5.1.0"},{name:"$integral",value:"$integral",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$last",value:"$last",score:1,meta:"accumulator",version:"2.2.0"},{name:"$lastN",value:"$lastN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$max",value:"$max",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$maxN",value:"$maxN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$median",value:"$median",score:1,meta:"accumulator",version:"7.0.0"},{name:"$min",value:"$min",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$minN",value:"$minN",score:1,meta:"accumulator",version:"5.2.0"},{name:"$percentile",value:"$percentile",score:1,meta:"accumulator",version:"7.0.0"},{name:"$push",value:"$push",score:1,meta:"accumulator",version:"2.2.0"},{name:"$rank",value:"$rank",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$stdDevPop",value:"$stdDevPop",score:1,meta:"accumulator",version:"3.2.0",projectVersion:"3.2.0"},{name:"$stdDevSamp",value:"$stdDevSamp",score:1,meta:"accumulator",version:"3.2.0",projectVersion:"3.2.0"},{name:"$shift",value:"$shift",score:1,meta:"accumulator:window",version:"5.0.0"},{name:"$sum",value:"$sum",score:1,meta:"accumulator",version:"2.2.0",projectVersion:"3.2.0"},{name:"$top",value:"$top",score:1,meta:"accumulator:top-n",version:"5.2.0"},{name:"$topN",value:"$topN",score:1,meta:"accumulator:top-n",version:"5.2.0"},{name:"$locf",value:"$locf",score:1,meta:"accumulator:window",version:"5.3.0"},{name:"$linearFill",value:"$linearFill",score:1,meta:"accumulator:window",version:"5.3.0"}]},62525:(e,t,n)=>{const r=n(99430);e.exports=(e,t)=>r(e,t,!0)},62921:(e,t,n)=>{const r=n(57681);e.exports=(e,t,n)=>r(e,t,">",n)},63013:function(e,t,n){var r=n(67787).Buffer,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_FUNCTIONS=t.GLOBALS=void 0,t.getScopeFunction=function(e,t){if(t&&m[e])return m[e];if(!t&&u[e])return u[e];if(p[e])return p[e];throw new Error(`Attempted to access scope property '${e}' that doesn't exist`)},t.isMethodWhitelisted=function(e,t){if(Object.prototype.hasOwnProperty.call(d,e)){const n=d[e].allowedMethods;return"string"==typeof n?d[n].allowedMethods[t]:n[t]}return!1},t.getClass=function(e){if(Object.prototype.hasOwnProperty.call(d,e))return d[e].class;throw new Error(`Attempted to access member '${e}' that doesn't exist`)};const o=i(n(62444));function l(e){return Object.freeze(Object.create(null,Object.getOwnPropertyDescriptors(e)))}function c(e){return"string"==typeof e?o.Long.fromString(e):o.Long.fromNumber(e)}const u=l({Date:function(...e){return Date(...e)}}),m=l({Date:function(...e){return new Date(...e)}}),p=l({RegExp,Binary:function(e,t){return new o.Binary(e,t)},BinData:function(e,t){return new o.Binary(r.from(t,"base64"),e)},UUID:function(e){return void 0===e?(new o.UUID).toBinary():new o.Binary(r.from(e.replace(/-/g,""),"hex"),4)},Code:function(e,t){return new o.Code(e,t)},DBRef:function(e,t,n,r){return new o.DBRef(e,t,n,r)},Decimal128:function(e){return o.Decimal128.fromString(e)},NumberDecimal:function(e){return o.Decimal128.fromString(e)},Double:function(e){return new o.Double(e)},Int32:function(e){return new o.Int32(e)},NumberInt:function(e){return parseInt(e,10)},Long:function(e,t){return new o.Long(e,t)},NumberLong:c,Int64:c,Map:function(e){return new(o.Map??Map)(e)},MaxKey:function(){return new o.MaxKey},MinKey:function(){return new o.MinKey},ObjectID:function(e){return new o.ObjectId(e)},ObjectId:function(e){return new o.ObjectId(e)},Symbol:function(e){return new o.BSONSymbol(e)},Timestamp:function(e,t){return"number"==typeof e&&"number"==typeof t||void 0!==t?new o.Timestamp({t:e,i:t}):new o.Timestamp(e)},ISODate:function(e){if(void 0===e)return new Date;if("string"!=typeof e)return new Date(e);const t=e.match(/^(?<Y>\d{4})-?(?<M>\d{2})-?(?<D>\d{2})([T ](?<h>\d{2})(:?(?<m>\d{2})(:?((?<s>\d{2})(\.(?<ms>\d+))?))?)?(?<tz>Z|([+-])(\d{2}):?(\d{2})?)?)?$/);if(null!==t&&void 0!==t.groups){const{Y:e,M:n,D:r,h:a,m:s,s:i,ms:o,tz:l}=t.groups,c=new Date(`${e}-${n}-${r}T${a||"00"}:${s||"00"}:${i||"00"}.${o||"000"}${l||"Z"}`);if(c.getTime()>=-621672192e5&&c.getTime()<=0xe677d21fdbff)return c}throw new Error(`${JSON.stringify(e)} is not a valid ISODate`)}});t.GLOBALS=l({Infinity:1/0,NaN:NaN,undefined:void 0});const d=l({Math:l({class:Math,allowedMethods:l({abs:!0,acos:!0,acosh:!0,asin:!0,asinh:!0,atan:!0,atan2:!0,atanh:!0,cbrt:!0,ceil:!0,clz32:!0,cos:!0,cosh:!0,exp:!0,expm1:!0,floor:!0,fround:!0,hypot:!0,imul:!0,log:!0,log10:!0,log1p:!0,log2:!0,max:!0,min:!0,pow:!0,round:!0,sign:!0,sin:!0,sinh:!0,sqrt:!0,tan:!0,tanh:!0,trunc:!0})}),Date:l({class:Date,allowedMethods:l({getDate:!0,getDay:!0,getFullYear:!0,getHours:!0,getMilliseconds:!0,getMinutes:!0,getMonth:!0,getSeconds:!0,getTime:!0,getTimezoneOffset:!0,getUTCDate:!0,getUTCDay:!0,getUTCFullYear:!0,getUTCHours:!0,getUTCMilliseconds:!0,getUTCMinutes:!0,getUTCMonth:!0,getUTCSeconds:!0,getYear:!0,now:!0,setDate:!0,setFullYear:!0,setHours:!0,setMilliseconds:!0,setMinutes:!0,setMonth:!0,setSeconds:!0,setTime:!0,setUTCDate:!0,setUTCFullYear:!0,setUTCHours:!0,setUTCMilliseconds:!0,setUTCMinutes:!0,setUTCMonth:!0,setUTCSeconds:!0,setYear:!0,toISOString:!0,valueOf:!0})}),ISODate:l({class:Date,allowedMethods:"Date"}),Binary:l({class:o.Binary,allowedMethods:{createFromHexString:!0,createFromBase64:!0}})});t.GLOBAL_FUNCTIONS=Object.freeze([...Object.keys(p),...Object.keys(m),...Object.keys(u)])},63453:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.COLLATION_OPTIONS=void 0,t.COLLATION_OPTIONS={locale:["af","sq","am","ar","ar@collation=compat","hy","as","az","az@collation=search","be","bn","bn@collation=traditional","bs","bs@collation=search","bs_Cyrl","bg","my","ca","ca@collation=search","chr","zh","zh@collation=big5han","zh@collation=gb2312han","zh@collation=pinyin","zh@collation=unihan","zh@collation=zhuyin","zh_Hant","zh_Hant@collation=stroke","hr","hr@collation=search","cs","cs@collation=search","da","da@collation=search","nl","dz","en","en_US","en_US_POSIX","eo","et","ee","fo","fil","fi_FI","fi_FI@collation=search","fi_FI@collation=traditional","fr","fr_CA","gl","gl@collation=search","ka","de","de@collation=search","de@collation=eor","de@collation=phonebook","de_AT","de_AT@collation=phonebook","el","gu","ha","haw","he","he@collation=search","hi","hu","is","is@collation=search","ig","smn","smn@collation=search","id","ga","it","ja","ja@collation=unihan","kl","kl@collation=search","kn","kn@collation=traditional","kk","km","kok","ko","ko@collation=search","ko@collation=searchjl","ko@collation=unihan","ky","lk","lo","lv","li","li@collation=phonetic","lt","dsb","lb","mk","ms","ml","mt","mr","mn","ne","se","se@collation=search","nb","nb@collation=search","nn","nn@collation=search","or","om","ps","fa","fa_AF","pl","pt","pa","ro","ru","sr","sr_Latn","sr_Latn@collation=search","si","si@collation=dictionary","sk","sk@collation=search","sl","es","es@collation=search","es@collation=traditional","sw","sv","sv@collation=search","ta","te","th","bo","to","tr","tr@collation=search","uk","hsb","ur","ug","vi","vi@collation=traditional","wae","cy","yi","yi@collation=search","yo","zu","simple"],strength:[1,2,3,4,5],caseLevel:[!0,!1],caseFirst:["upper","lower","off"],numericOrdering:[!0,!1],alternate:["non-ignorable","shifted"],maxVariable:[!0,!1],backwards:[!0,!1],normalization:[!0,!1]}},63547:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BSON_TYPE_ALIASES=void 0,t.BSON_TYPE_ALIASES=[{name:"double",value:"double",label:"double",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"string",value:"string",label:"string",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"object",value:"object",label:"object",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"array",value:"array",label:"array",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"binData",value:"binData",label:"binData",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"objectId",value:"objectId",label:"objectId",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"bool",value:"bool",label:"bool",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"date",value:"date",label:"date",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"null",value:"null",label:"null",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"double",value:"double",label:"double",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"regex",value:"regex",label:"regex",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"javascript",value:"javascript",label:"javascript",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"javascriptWithScope",value:"javascriptWithScope",label:"javascriptWithScope",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"int",value:"int",label:"int",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"timestamp",value:"timestamp",label:"timestamp",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"long",value:"long",label:"long",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"decimal",value:"decimal",label:"decimal",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"minKey",value:"minKey",label:"minKey",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"maxKey",value:"maxKey",label:"maxKey",score:1,meta:"bson-type-aliases",version:"3.6.0"}]},63825:(e,t,n)=>{const r=n(99430);e.exports=(e,t,n)=>r(e,t,n)<0},63875:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ENVS=t.ON_PREM=t.ADL=t.ATLAS=void 0;const n="atlas";t.ATLAS=n,t.ADL="adl";const r="on-prem";t.ON_PREM=r;const a=[n,"adl",r];t.ENVS=a},63876:(e,t,n)=>{const r=n(24472);e.exports=(e,t,n)=>r(e,t,">",n)},64757:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_PIPELINE_UTILS=void 0;const a=r(n(35647)),s="8.0.0",i="8.1.0";t.VIEW_PIPELINE_UTILS={MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_DE:s,MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_COMPASS:i,isPipelineSearchQueryable:e=>{for(const t of e){const e=Object.keys(t)[0];if("$addFields"!==e&&"$set"!==e&&"$match"!==e)return!1;if("$match"===e){const e=t.$match,n=Object.keys(e||{});if(1!==n.length||!n.includes("$expr"))return!1}}return!0},isVersionSearchCompatibleForViewsDataExplorer:e=>{try{return a.default.gte(e,s)}catch{return!1}},isVersionSearchCompatibleForViewsCompass:e=>{try{return a.default.gte(e,i)}catch{return!1}}}},65011:(e,t,n)=>{const r=n(41694);e.exports=(e,t)=>new r(e,t).patch},65684:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:s}=n(47755),i=n(71598),o=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],m=t.t={};let p=0;const d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",s],[d,a]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),a=p++;i(e,a,t),m[e]=a,c[a]=t,u[a]=r,o[a]=new RegExp(t,n?"g":void 0),l[a]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${c[m.PRERELEASEIDENTIFIER]}(?:\\.${c[m.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${c[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[m.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${c[m.BUILDIDENTIFIER]}(?:\\.${c[m.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${c[m.MAINVERSION]}${c[m.PRERELEASE]}?${c[m.BUILD]}?`),f("FULL",`^${c[m.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${c[m.MAINVERSIONLOOSE]}${c[m.PRERELEASELOOSE]}?${c[m.BUILD]}?`),f("LOOSE",`^${c[m.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${c[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${c[m.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:${c[m.PRERELEASE]})?${c[m.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:${c[m.PRERELEASELOOSE]})?${c[m.BUILD]}?)?)?`),f("XRANGE",`^${c[m.GTLT]}\\s*${c[m.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${c[m.GTLT]}\\s*${c[m.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),f("COERCE",`${c[m.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",c[m.COERCEPLAIN]+`(?:${c[m.PRERELEASE]})?`+`(?:${c[m.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",c[m.COERCE],!0),f("COERCERTLFULL",c[m.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${c[m.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${c[m.LONETILDE]}${c[m.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${c[m.LONETILDE]}${c[m.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${c[m.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${c[m.LONECARET]}${c[m.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${c[m.LONECARET]}${c[m.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${c[m.GTLT]}\\s*(${c[m.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]}|${c[m.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${c[m.XRANGEPLAIN]})\\s+-\\s+(${c[m.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${c[m.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[m.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},65816:(e,t,n)=>{const r=n(41694),a=n(83586),{safeRe:s,t:i}=n(18104);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?s[i.COERCERTLFULL]:s[i.COERCERTL];let a;for(;(a=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&a.index+a[0].length===n.index+n[0].length||(n=a),r.lastIndex=a.index+a[1].length+a[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?s[i.COERCEFULL]:s[i.COERCE]);if(null===n)return null;const o=n[2],l=n[3]||"0",c=n[4]||"0",u=t.includePrerelease&&n[5]?`-${n[5]}`:"",m=t.includePrerelease&&n[6]?`+${n[6]}`:"";return a(`${o}.${l}.${c}${u}${m}`,t)}},66010:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.executeAST=void 0;const r=n(59170),a=(e,t)=>{switch(e.callee.type){case"Identifier":{const n=(0,r.getScopeFunction)(e.callee.name,t),a=e.arguments.map((e=>s(e)));return n.apply(n,a)}case"MemberExpression":{const t="Identifier"===e.callee.object.type?(0,r.getClass)(e.callee.object.name):s(e.callee.object),n="Identifier"===e.callee.property.type&&e.callee.property.name;if(!n)throw new Error("Expected CallExpression property to be an identifier");const a=e.arguments.map((e=>s(e)));return t[n](...a)}default:throw new Error("Should not evaluate invalid expressions")}},s=e=>{switch(e?.type){case"Identifier":if(Object.prototype.hasOwnProperty.call(r.GLOBALS,e.name))return r.GLOBALS[e.name];throw new Error(`${e.name} is not a valid Identifier`);case"Literal":return e.value;case"UnaryExpression":return(e=>{if(!e.prefix)throw new Error("Malformed UnaryExpression");switch(e.operator){case"-":return-s(e.argument);case"+":return+s(e.argument);case"!":return!s(e.argument);case"~":return~s(e.argument);default:throw new Error(`Invalid UnaryExpression Provided: '${e.operator}'`)}})(e);case"BinaryExpression":return(e=>{const{left:t,right:n}=e;switch(e.operator){case"==":return s(t)==s(n);case"!=":return s(t)!=s(n);case"===":return s(t)===s(n);case"!==":return s(t)!==s(n);case"<":return s(t)<s(n);case"<=":return s(t)<=s(n);case">":return s(t)>s(n);case">=":return s(t)>=s(n);case"<<":return s(t)<<s(n);case">>":return s(t)>>s(n);case">>>":return s(t)>>>s(n);case"+":return s(t)+s(n);case"-":return s(t)-s(n);case"*":return s(t)*s(n);case"/":return s(t)/s(n);case"%":return s(t)%s(n);case"**":return s(t)**s(n);case"|":return s(t)|s(n);case"^":return s(t)^s(n);case"&":return s(t)&s(n);case"in":return s(t)in s(n);case"instanceof":return s(t)instanceof s(n);default:throw new Error(`Invalid BinaryExpression Provided: '${String(e.operator)}'`)}})(e);case"ArrayExpression":return e.elements.map((e=>s(e)));case"CallExpression":return a(e,!1);case"NewExpression":return a(e,!0);case"ObjectExpression":{const t=Object.create(null);for(const n of e.properties)"key"in n&&(t["Identifier"===n.key.type?n.key.name:s(n.key)]=s(n.value));return{...t}}case"FunctionExpression":case"ArrowFunctionExpression":return(e=>{const t=e.loc?.source||"",n=e.range||[];return t.slice(n[0],n[1])})(e);default:throw new Error}};t.executeAST=e=>{if("Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type)return s(e.body[0].expression);throw new Error("Invalid AST Found")}},66135:(e,t,n)=>{const r=n(99430);e.exports=(e,t,n)=>r(e,t,n)>=0},66239:(e,t,n)=>{const r=n(77203);e.exports=(e,t,n)=>r(e,t,n)<=0},66272:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CONVERSION_OPERATORS=void 0,t.CONVERSION_OPERATORS=[{name:"$convert",value:"$convert",score:1,meta:"conv",version:"3.7.2"},{name:"$ltrim",value:"$ltrim",score:1,meta:"accumulator",version:"3.7.2"},{name:"$rtrim",value:"$rtrim",score:1,meta:"accumulator",version:"3.7.2"},{name:"$toBool",value:"$toBool",score:1,meta:"conv",version:"3.7.2"},{name:"$toDate",value:"$toDate",score:1,meta:"conv",version:"3.7.2"},{name:"$toDecimal",value:"$toDecimal",score:1,meta:"conv",version:"3.7.2"},{name:"$toDouble",value:"$toDouble",score:1,meta:"conv",version:"3.7.2"},{name:"$toInt",value:"$toInt",score:1,meta:"conv",version:"3.7.2"},{name:"$toLong",value:"$toLong",score:1,meta:"conv",version:"3.7.2"},{name:"$toObjectId",value:"$toObjectId",score:1,meta:"conv",version:"3.7.2"},{name:"$toString",value:"$toString",score:1,meta:"conv",version:"3.7.2"},{name:"$trim",value:"$trim",score:1,meta:"accumulator",version:"3.7.2"}]},66283:(e,t,n)=>{const r=n(67767),{MAX_LENGTH:a,MAX_SAFE_INTEGER:s}=n(77693),{safeRe:i,t:o}=n(415),l=n(69348),{compareIdentifiers:c}=n(78900);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?i[o.LOOSE]:i[o.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],a=e.build[t];if(r("build compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?i[o.PRERELEASELOOSE]:i[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},67094:(e,t,n)=>{const r=Symbol("SemVer ANY");class a{static get ANY(){return r}constructor(e,t){if(t=s(t),e instanceof a){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new m(e.value,t).test(this.value):""===e.operator?""===e.value||new m(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=a;const s=n(31145),{safeRe:i,t:o}=n(65684),l=n(98249),c=n(71598),u=n(50066),m=n(72857)},67223:(e,t,n)=>{const r=n(50066);e.exports=(e,t)=>new r(e,t).patch},67360:(e,t,n)=>{const r=n(85216);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},67767:(e,t,n)=>{var r=n(65994).e;const a="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=a},67812:(e,t,n)=>{const r=n(50066),a=n(38358),{safeRe:s,t:i}=n(65684);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?s[i.COERCERTLFULL]:s[i.COERCERTL];let a;for(;(a=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&a.index+a[0].length===n.index+n[0].length||(n=a),r.lastIndex=a.index+a[1].length+a[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?s[i.COERCEFULL]:s[i.COERCE]);if(null===n)return null;const o=n[2],l=n[3]||"0",c=n[4]||"0",u=t.includePrerelease&&n[5]?`-${n[5]}`:"",m=t.includePrerelease&&n[6]?`+${n[6]}`:"";return a(`${o}.${l}.${c}${u}${m}`,t)}},67994:(e,t,n)=>{const r=n(60501);e.exports=(e,t)=>r(e,t,!0)},68716:(e,t,n)=>{const r=n(77203);e.exports=(e,t)=>r(e,t,!0)},68752:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:s}=n(28892),i=n(52378),o=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],m=t.t={};let p=0;const d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",s],[d,a]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),a=p++;i(e,a,t),m[e]=a,c[a]=t,u[a]=r,o[a]=new RegExp(t,n?"g":void 0),l[a]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${c[m.PRERELEASEIDENTIFIER]}(?:\\.${c[m.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${c[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[m.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${c[m.BUILDIDENTIFIER]}(?:\\.${c[m.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${c[m.MAINVERSION]}${c[m.PRERELEASE]}?${c[m.BUILD]}?`),f("FULL",`^${c[m.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${c[m.MAINVERSIONLOOSE]}${c[m.PRERELEASELOOSE]}?${c[m.BUILD]}?`),f("LOOSE",`^${c[m.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${c[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${c[m.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:${c[m.PRERELEASE]})?${c[m.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:${c[m.PRERELEASELOOSE]})?${c[m.BUILD]}?)?)?`),f("XRANGE",`^${c[m.GTLT]}\\s*${c[m.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${c[m.GTLT]}\\s*${c[m.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),f("COERCE",`${c[m.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",c[m.COERCEPLAIN]+`(?:${c[m.PRERELEASE]})?`+`(?:${c[m.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",c[m.COERCE],!0),f("COERCERTLFULL",c[m.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${c[m.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${c[m.LONETILDE]}${c[m.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${c[m.LONETILDE]}${c[m.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${c[m.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${c[m.LONECARET]}${c[m.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${c[m.LONECARET]}${c[m.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${c[m.GTLT]}\\s*(${c[m.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]}|${c[m.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${c[m.XRANGEPLAIN]})\\s+-\\s+(${c[m.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${c[m.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[m.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},68821:(e,t,n)=>{const r=n(9331);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},69334:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_CONSTANTS=void 0,t.createConstantFilter=f,t.wrapField=function(e,t=!1){return t||!function(e){if(/[.\s"'()[\];={}:]/.test(e))return!1;try{return new Function(`"use strict";let _ = { ${e}: 0 };`),!0}catch{return!1}}(e)?`"${e.replace(/["\\]/g,"\\$&")}"`:e},t.getFilteredCompletions=function(e={},n=t.ALL_CONSTANTS){const{serverVersion:r=d,fields:a=[],meta:s,stage:i}=e,o=f({serverVersion:r,meta:s,stage:i});return n.concat(a.flatMap((e=>{const{value:t,description:n}=function(e){return"string"==typeof e?{value:e}:{value:e.name,description:e.description}}(e);return[{value:t,meta:"field:identifier",version:"0.0.0",description:n},{value:`$${t}`,meta:"field:reference",version:"0.0.0",description:n}]}))).filter((e=>o(e)))};const r=n(41738),a=n(17807),s=n(5698),i=n(50678),o=n(66272),l=n(20474),c=n(79188),u=n(10094),m=n(86812),p=n(30629);t.ALL_CONSTANTS=[...a.ACCUMULATORS,...i.BSON_TYPES,...s.BSON_TYPE_ALIASES,...o.CONVERSION_OPERATORS,...l.EXPRESSION_OPERATORS,...c.JSON_SCHEMA,...u.QUERY_OPERATORS,...m.STAGE_OPERATORS,...p.SYSTEM_VARIABLES];const d="999.999.999";function h(e,t){return void 0===e||void 0===t||(e=Array.isArray(e)?e:[e]).some((e=>t.includes(e)))}function f({meta:e,serverVersion:t=d,stage:n={}}={}){const a=/^(?<version>\d+\.\d+\.\d+)/.exec(t)?.groups?.version??d;return({version:t,meta:s,env:i,namespaces:o,apiVersions:l})=>function(e,t){const n=/^\d+\.\d+\.\d+$/.test(t);return(0,r.satisfies)(e,n?`>=${t}`:t)}(a,t)&&h(n.env,i)&&h(n.namespace,o)&&h(n.apiVersion,l)&&(!e||function(e,t){const n=t.split(":");return e.some((e=>{const t=e.split(":");return t.length===n.length&&t.every(((e,t)=>"*"===e||e===n[t]))}))}(e,s))}},69348:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},69750:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ATLAS_VECTOR_SEARCH_TEMPLATE=t.ATLAS_SEARCH_TEMPLATES=void 0,t.ATLAS_SEARCH_TEMPLATES=[{name:"Dynamic field mappings",snippet:'{\n "mappings": {\n "dynamic": true\n }\n}',version:"4.4.0"},{name:"Static field mappings",snippet:'{\n "mappings": {\n "dynamic": false,\n "fields": {\n ${1:<string field name>}: {\n "type": "string"\n },\n ${2:<number field name>}: {\n "type": "number"\n },\n ${3:<date field name>}: {\n "type": "date"\n },\n ${4:<geo field name>}: {\n "type": "geo"\n },\n } \n }\n}',version:"4.4.0"},{name:"Text field mappings",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<string field name>}: [\n {\n // Enables text queries\n "type": "string"\n },\n {\n // Enables autocomplete queries\n "type": "autocomplete"\n \n },\n {\n // Enables sorting\n "type": "token"\n }\n ] \n } \n }\n}',version:"4.4.0"},{name:"Facet field mappings",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<number field name for faceting>}: [\n {\n "type": "numberFacet"\n },\n {\n "type": "number"\n },\n ],\n ${2:<date field name for faceting>}: [\n {\n "type": "dateFacet"\n }\n {\n "type": "date"\n }\n ],\n ${3:<string field name for faceting>}: [\n {\n "type": "stringFacet"\n },\n {\n "type": "string",\n "analyzer": "lucene.keyword"\n },\n ],\n } \n }\n}',version:"4.4.0"},{name:"KNN Vector field mapping",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<vector embedding field name>}: [\n {\n "type": "knnVector",\n "dimensions": ${2:<number of dimensions>},\n "similarity": "${3:<euclidean | cosine | dotProduct>}"\n } \n ] \n } \n }\n}',version:"4.4.0"}],t.ATLAS_VECTOR_SEARCH_TEMPLATE={name:"Vector Search default template",snippet:'{\n "fields": [{\n "type": "vector",\n "path": "${1:<field name to index>}",\n "numDimensions": ${2:<number of dimensions>},\n "similarity": "${3:<euclidean | cosine | dotProduct>}"\n }]\n}',version:"4.4.0"}},69904:(e,t,n)=>{const r=n(57681);e.exports=(e,t,n)=>r(e,t,"<",n)},70449:(e,t,n)=>{const r=n(72857);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},70545:(e,t,n)=>{var r=n(65994).e;e.exports=async function(e,t,n,s){n instanceof Function&&(s=n,n={});const u=async function(e,t,n={}){let s,u;"string"==typeof n&&(n={encoding:n});const m=i(d((()=>u))),f=o.resolve(e);try{await function(e){return new Promise((t=>{c[e]||(c[e]=[]),c[e].push(t),1===c[e].length&&t()}))}(f);const i=await l(a.realpath)(e).catch((()=>e));if(u=p(i),!n.mode||!n.chown){const e=await l(a.stat)(i).catch((()=>{}));e&&(null==n.mode&&(n.mode=e.mode),null==n.chown&&r.getuid&&(n.chown={uid:e.uid,gid:e.gid}))}s=await l(a.open)(u,"w",n.mode),n.tmpfileCreated&&await n.tmpfileCreated(u),ArrayBuffer.isView(t)?await l(a.write)(s,t,0,t.length,0):null!=t&&await l(a.write)(s,String(t),0,String(n.encoding||"utf8")),!1!==n.fsync&&await l(a.fsync)(s),await l(a.close)(s),s=null,n.chown&&await l(a.chown)(u,n.chown.uid,n.chown.gid).catch((e=>{if(!h(e))throw e})),n.mode&&await l(a.chmod)(u,n.mode).catch((e=>{if(!h(e))throw e})),await l(a.rename)(u,i)}finally{s&&await l(a.close)(s).catch((()=>{})),m(),await l(a.unlink)(u).catch((()=>{})),c[f].shift(),c[f].length>0?c[f][0]():delete c[f]}}(e,t,n);if(s)try{return s(await u)}catch(e){return s(e)}return u},e.exports.sync=function(e,t,n){"string"==typeof n?n={encoding:n}:n||(n={});try{e=a.realpathSync(e)}catch(e){}const s=p(e);if(!n.mode||!n.chown)try{const t=a.statSync(e);(n=Object.assign({},n)).mode||(n.mode=t.mode),!n.chown&&r.getuid&&(n.chown={uid:t.uid,gid:t.gid})}catch(e){}let o;const l=d(s),c=i(l);let u=!0;try{if(o=a.openSync(s,"w",n.mode||438),n.tmpfileCreated&&n.tmpfileCreated(s),ArrayBuffer.isView(t)?a.writeSync(o,t,0,t.length,0):null!=t&&a.writeSync(o,String(t),0,String(n.encoding||"utf8")),!1!==n.fsync&&a.fsyncSync(o),a.closeSync(o),o=null,n.chown)try{a.chownSync(s,n.chown.uid,n.chown.gid)}catch(e){if(!h(e))throw e}if(n.mode)try{a.chmodSync(s,n.mode)}catch(e){if(!h(e))throw e}a.renameSync(s,e),u=!1}finally{if(o)try{a.closeSync(o)}catch(e){}c(),u&&l()}},e.exports._getTmpname=p,e.exports._cleanupOnExit=d;const a=n(36374),s=n(88906),{onExit:i}=n(41163),o=n(17642),{promisify:l}=n(98437),c={},u=function(){try{return n(86983).threadId}catch(e){return 0}}();let m=0;function p(e){return e+"."+s("/index.js").hash(String(r.pid)).hash(String(u)).hash(String(++m)).result()}function d(e){return()=>{try{a.unlinkSync("function"==typeof e?e():e)}catch{}}}function h(e){return"ENOSYS"===e.code||!(r.getuid&&0===r.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code)}},71174:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SYSTEM_VARIABLES=void 0,t.SYSTEM_VARIABLES=[{name:"$$NOW",value:"$$NOW",score:1,meta:"variable:system",version:"4.2.0",description:"A variable that returns the current datetime value. NOW returns the same value for all members of the deployment and remains the same throughout all stages of the aggregation pipeline."},{name:"$$CLUSTER_TIME",value:"$$CLUSTER_TIME",score:1,meta:"variable:system",version:"4.2.0",description:"A variable that returns the current timestamp value. CLUSTER_TIME is only available on replica sets and sharded clusters. CLUSTER_TIME returns the same value for all members of the deployment and remains the same throughout all stages of the pipeline."},{name:"$$ROOT",value:"$$ROOT",score:1,meta:"variable:system",version:"2.4.0",description:"References the root document, i.e. the top-level document, currently being processed in the aggregation pipeline stage."},{name:"$$CURRENT",value:"$$CURRENT",score:1,meta:"variable:system",version:"2.4.0",description:"References the start of the field path being processed in the aggregation pipeline stage. Unless documented otherwise, all stages start with CURRENT the same as ROOT. CURRENT is modifiable. However, since `$<field>` is equivalent to `$$CURRENT.<field>`, rebinding CURRENT changes the meaning of `$` accesses."},{name:"$$REMOVE",value:"$$REMOVE",score:1,meta:"variable:system",version:"3.6.0",description:"A variable which evaluates to the missing value. Allows for the conditional exclusion of fields. In a `$project`, a field set to the variable REMOVE is excluded from the output."},{name:"$$DESCEND",value:"$$DESCEND",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$PRUNE",value:"$$PRUNE",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$KEEP",value:"$$KEEP",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$SEARCH_META",value:"$$SEARCH_META",score:1,meta:"variable:system",version:"5.0.0",description:"A variable that stores the metadata results of an Atlas Search query. In all supported aggregation pipeline stages, a field set to the variable SEARCH_META returns the metadata results for the query. For an example of its usage, see Atlas Search facet and count."},{name:"$$USER_ROLES",value:"$$USER_ROLES",score:1,meta:"variable:system",version:"7.0.0",description:"A variable that stores the role names of the authenticated user running the command."}]},71333:(e,t,n)=>{const r=/\s+/g;class a{constructor(e,t){if(t=i(t),e instanceof a)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new a(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&$(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&v))+":"+e,n=s.get(t);if(n)return n;const r=this.options.loose,a=r?u[m.HYPHENRANGELOOSE]:u[m.HYPHENRANGE];e=e.replace(a,I(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(u[m.COMPARATORTRIM],p),l("comparator trim",e),e=e.replace(u[m.TILDETRIM],d),l("tilde trim",e),e=e.replace(u[m.CARETTRIM],h),l("caret trim",e);let i=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));r&&(i=i.filter((e=>(l("loose invalid filter",e,this.options),!!e.match(u[m.COMPARATORLOOSE]))))),l("range list",i);const c=new Map,$=i.map((e=>new o(e,this.options)));for(const e of $){if(g(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const E=[...c.values()];return s.set(t,E),E}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Range is required");return this.set.some((n=>E(n,t)&&e.set.some((e=>E(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(w(this.set[t],e,this.options))return!0;return!1}}e.exports=a;const s=new(n(21212)),i=n(8573),o=n(96082),l=n(72082),c=n(41694),{safeRe:u,t:m,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:h}=n(18104),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:v}=n(4292),g=e=>"<0.0.0-0"===e.value,$=e=>""===e.value,E=(e,t)=>{let n=!0;const r=e.slice();let a=r.pop();for(;n&&r.length;)n=r.every((e=>a.intersects(e,t))),a=r.pop();return n},y=(e,t)=>(l("comp",e,t),e=O(e,t),l("caret",e),e=S(e,t),l("tildes",e),e=x(e,t),l("xrange",e),e=T(e,t),l("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{const n=t.loose?u[m.TILDELOOSE]:u[m.TILDE];return e.replace(n,((t,n,r,a,s)=>{let i;return l("tilde",e,t,n,r,a,s),b(n)?i="":b(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:b(a)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(l("replaceTilde pr",s),i=`>=${n}.${r}.${a}-${s} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,l("tilde return",i),i}))},O=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{l("caret",e,t);const n=t.loose?u[m.CARETLOOSE]:u[m.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,s,i)=>{let o;return l("caret",e,t,n,a,s,i),b(n)?o="":b(a)?o=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(s)?o="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:i?(l("replaceCaret pr",i),o="0"===n?"0"===a?`>=${n}.${a}.${s}-${i} <${n}.${a}.${+s+1}-0`:`>=${n}.${a}.${s}-${i} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${s}-${i} <${+n+1}.0.0-0`):(l("no pr"),o="0"===n?"0"===a?`>=${n}.${a}.${s}${r} <${n}.${a}.${+s+1}-0`:`>=${n}.${a}.${s}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${s} <${+n+1}.0.0-0`),l("caret return",o),o}))},x=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map((e=>N(e,t))).join(" ")),N=(e,t)=>{e=e.trim();const n=t.loose?u[m.XRANGELOOSE]:u[m.XRANGE];return e.replace(n,((n,r,a,s,i,o)=>{l("xRange",e,n,r,a,s,i,o);const c=b(a),u=c||b(s),m=u||b(i),p=m;return"="===r&&p&&(r=""),o=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(s=0),i=0,">"===r?(r=">=",u?(a=+a+1,s=0,i=0):(s=+s+1,i=0)):"<="===r&&(r="<",u?a=+a+1:s=+s+1),"<"===r&&(o="-0"),n=`${r+a}.${s}.${i}${o}`):u?n=`>=${a}.0.0${o} <${+a+1}.0.0-0`:m&&(n=`>=${a}.${s}.0${o} <${a}.${+s+1}.0-0`),l("xRange return",n),n}))},T=(e,t)=>(l("replaceStars",e,t),e.trim().replace(u[m.STAR],"")),R=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?m.GTE0PRE:m.GTE0],"")),I=e=>(t,n,r,a,s,i,o,l,c,u,m,p)=>`${n=b(r)?"":b(a)?`>=${r}.0.0${e?"-0":""}`:b(s)?`>=${r}.${a}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(m)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${m}-${p}`:e?`<${c}.${u}.${+m+1}-0`:`<=${l}`}`.trim(),w=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},71595:(e,t,n)=>{const r=n(9331);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},71598:(e,t,n)=>{var r=n(65994).e;const a="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=a},71773:(e,t,n)=>{const r=n(60501);e.exports=(e,t,n)=>r(t,e,n)},71925:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.REQUIRED_AS_FIRST_STAGE=t.FULL_SCAN_STAGES=t.OUT_STAGES=t.STAGE_OPERATOR_NAMES=t.STAGE_OPERATORS=void 0;const r=n(97008),a=n(59588),s=[{name:"$addFields",value:"$addFields",label:"$addFields",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value.",comment:"/**\n * newField: The new field name.\n * expression: The new field expression.\n */\n",snippet:"{\n ${1:newField}: ${2:expression}, ${3:...}\n}"},{name:"$bucket",value:"$bucket",label:"$bucket",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Categorizes incoming documents into groups, called buckets, based on specified boundaries.",comment:"/**\n * groupBy: The expression to group by.\n * boundaries: An array of the lower boundaries for each bucket.\n * default: The bucket name for documents that do not fall within the specified boundaries\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n */\n",snippet:"{\n groupBy: ${1:expression},\n boundaries: [ ${2:lowerbound}, ${3:...} ],\n default: ${4:literal},\n output: {\n ${5:outputN}: { ${6:accumulator} }, ${7:...}\n }\n}"},{name:"$bucketAuto",value:"$bucketAuto",label:"$bucketAuto",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Automatically categorizes documents into a specified number of buckets, attempting even distribution if possible.",comment:"/**\n * groupBy: The expression to group by.\n * buckets: The desired number of buckets\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n * granularity: Optional number series\n */\n",snippet:"{\n groupBy: ${1:expression},\n buckets: ${2:number},\n output: {\n ${3:outputN}: ${4:accumulator}, ${5:...}\n },\n granularity: '${6:string}'\n}"},{name:"$changeStream",value:"$changeStream",label:"$changeStream",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns a Change Stream cursor for the collection.",comment:"/**\n * allChangesForCluster: Optional boolean to include all changes in the cluster.\n * fullDocument: Optional value to request a copy of full document when modified by update operations (Introduced in 6.0).\n * fullDocumentBeforeChange: Value to configure whether to return a full document before the change or not.\n * resumeAfter: Specifies a resume token as the logical starting point for the change stream. Cannot be used with startAfter or startAtOperationTime fields.\n * showExpandedEvents: Specifies whether to include additional change events, such as such as DDL and index operations (Introduced in 6.0).\n * startAfter: Specifies a resume token as the logical starting point for the change stream. Cannot be used with resumeAfter or startAtOperationTime fields.\n * startAtOperationTime: Specifies a time as the logical starting point for the change stream. Cannot be used with resumeAfter or startAfter fields.\n */\n",snippet:"{\n allChangesForCluster: ${1:boolean},\n fullDocument: '${2:string}',\n fullDocumentBeforeChange: '${3:string}',\n resumeAfter: ${4:resumeToken},\n showExpandedEvents: ${5:boolean},\n startAfter: ${6:resumeToken},\n startAtOperationTime: ${7:time},\n}"},{name:"$collStats",value:"$collStats",label:"$collStats",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[],namespaces:[...a.ANY_COLLECTION_NAMESPACE],description:"Returns statistics regarding a collection or view.",comment:"/**\n * histograms: Optional latency histograms.\n * storageStats: Optional storage stats.\n */\n",snippet:"{\n latencyStats: {\n histograms: ${1:boolean}\n },\n storageStats: {${2:}},\n}"},{name:"$count",value:"$count",label:"$count",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Returns a count of the number of documents at this stage of the aggregation pipeline.",comment:"/**\n * Provide the field name for the count.\n */\n",snippet:"'${1:string}'"},{name:"$currentOp",value:"$currentOp",label:"$currentOp",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.6.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns a cursor over information on active and/or dormant operations for the MongoDB deployment as well as inactive sessions that are holding locks as part of a transaction.",comment:"/**\n * allUsers: Optional boolean value to specify whether to return operations for all users or not.\n * idleConnections: Optional boolean value to specify whether to return all operations including idle connections or not.\n * idleCursors: Optional boolean value to specify whether to report on cursors that are idle or not.\n * idleSessions: Optional boolean value to specify whether to report on dormant sessions or not.\n * localOps: Optional boolean value to specify whether to report on operations running locally on targetted mongos or not.\n * backtrace: Optional boolean value to specify whether callstack information is returned as part of the waitingForLatch output field.\n */\n",snippet:"{\n allUsers: ${1:false},\n idleConnections: ${2:false},\n idleCursors: ${3:false},\n idleSessions: ${4:true},\n localOps: ${5:false},\n backtrace: ${6:false},\n}"},{name:"$densify",value:"$densify",label:"$densify",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.1.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Creates new documents to eliminate the gaps in the time or numeric domain at the required granularity level.",comment:"/**\n * field: The required field to densify.\n * partitionByFields: The set of fields that acts as a compound key to define each partition.\n * range: {\n * step: The amount to increment the field value in each document.\n * unit: If specified field must evaluate to a date for every document in the collection, otherwise must evaluate to a numeric.\n * bounds: A string or array of numeric/date bounds, corresponding to the type of the field.\n * }\n */\n",snippet:"{\n field: ${1:string},\n partitionByFields: [${2:string}, ${3:string}, ...],\n range: {\n step: ${4:number},\n unit: ${5:string},\n bounds: [${6:lowerbound}, ${7:upperbound}, ...]\n }\n}"},{name:"$documents",value:"$documents",label:"$documents",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.4.9",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns literal documents from input values.",comment:"/**\n * expression: Any valid expression.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$facet",value:"$facet",label:"$facet",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Allows for multiple parellel aggregations to be specified.",comment:"/**\n * outputFieldN: The first output field.\n * stageN: The first aggregation stage.\n */\n",snippet:"{\n ${1:outputFieldN}: [ ${2:stageN}, ${3:...} ]\n}"},{name:"$fill",value:"$fill",label:"$fill",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.3.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Populates null and missing field values within documents.",comment:'/**\n * sortBy: Syntax is the same as $sort, required if "method" is used in at least one output spec otherwise optional\n * partitionBy: Optional, default is a single partition. Specification is the same as _id in $group (same as partitionBy in window functions).\n * partitionByFields: Optional, set of fields that acts as a compound key to define each partition.\n * output - Required, object for each field to fill in. For a single field, can be a single object.\n * output.<field> - A field to be filled with value, if missing or null in the current document.\n */\n',snippet:"{\n sortBy: ${1:sortSpec},\n partitionBy: ${2:expression},\n partitionByFields: [${3:string}, ${4:string}, ...],\n output: {\n field1: {value: ${5:expression}},\n field2: {method: ${6:string}},\n ...\n }\n}"},{name:"$geoNear",value:"$geoNear",label:"$geoNear",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Returns documents based on proximity to a geospatial point.",comment:"/**\n * near: The point to search near.\n * distanceField: The calculated distance.\n * maxDistance: The maximum distance, in meters, documents can be before being excluded from results.\n * query: Limits results that match the query\n * includeLocs: Optional. Labels and includes the point used to match the document.\n * num: Optional. The maximum number of documents to return.\n * spherical: Defaults to false. Specifies whether to use spherical geometry.\n */\n",snippet:"{\n near: { type: 'Point', coordinates: [ ${1:number}, ${2:number} ] },\n distanceField: '${3:string}',\n maxDistance: ${4:number},\n query: {${5}},\n includeLocs: '${6}',\n num: ${7:number},\n spherical: ${8:boolean}\n}"},{name:"$graphLookup",value:"$graphLookup",label:"$graphLookup",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Performs a recursive search on a collection.",comment:"/**\n * from: The target collection.\n * startWith: Expression to start.\n * connectFromField: Field to connect.\n * connectToField: Field to connect to.\n * as: Name of the array field.\n * maxDepth: Optional max recursion depth.\n * depthField: Optional Name of the depth field.\n * restrictSearchWithMatch: Optional query.\n */\n",snippet:"{\n from: '${1:string}',\n startWith: ${2:expression},\n connectFromField: '${3:string}',\n connectToField: '${4:string}',\n as: '${5:string}',\n maxDepth: ${6:number},\n depthField: '${7:string}',\n restrictSearchWithMatch: {${8}}\n}"},{name:"$group",value:"$group",label:"$group",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Groups documents by a specified expression.",comment:"/**\n * _id: The id of the group.\n * fieldN: The first field name.\n */\n",snippet:"{\n _id: ${1:expression},\n ${2:fieldN}: {\n ${3:accumulatorN}: ${4:expressionN}\n }\n}"},{name:"$indexStats",value:"$indexStats",label:"$indexStats",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[],namespaces:[...a.ANY_NAMESPACE],description:"Returns statistics regarding the use of each index for the collection.",comment:"/**\n * No parameters.\n */\n",snippet:"{}"},{name:"$limit",value:"$limit",label:"$limit",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Limits the number of documents that flow into subsequent stages.",comment:"/**\n * Provide the number of documents to limit.\n */\n",snippet:"${1:number}"},{name:"$listLocalSessions",value:"$listLocalSessions",label:"$listLocalSessions",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"3.6.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Lists the sessions cached in memory by the mongod or mongos instance.",comment:"/**\n * users: Optional list of users for which local sessions need to be returned.\n * allUsers: Optional boolean value to specify whether to return local sessions for all users or not.\n */\n",snippet:"{\n allUsers: ${1:false},\n users: [\n { user: '${2:string}', db: '${3:string}' }\n ]\n}"},{name:"$lookup",value:"$lookup",label:"$lookup",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Performs a join between two collections.",comment:"/**\n * from: The target collection.\n * localField: The local join field.\n * foreignField: The target join field.\n * as: The name for the results.\n * pipeline: Optional pipeline to run on the foreign collection.\n * let: Optional variables to use in the pipeline field stages.\n */\n",snippet:"{\n from: ${1:collection},\n localField: ${2:field},\n foreignField: ${3:field},\n as: ${4:result}\n}"},{name:"$match",value:"$match",label:"$match",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Filters the document stream to allow only matching documents to pass through to subsequent stages.",comment:"/**\n * query: The query in MQL.\n */\n",snippet:"{\n ${1:query}\n}"},{name:"$merge",value:"$merge",label:"$merge",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"4.1.11",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * into: The target collection.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: '${1:string}',\n on: '${2:string}',\n let: '${3:specification(s)}',\n whenMatched: '${4:string}',\n whenNotMatched: '${5:string}'\n}"},{name:"$merge",value:"$merge",label:"$merge",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ADL],meta:"stage",version:"4.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * atlas: Location to write the documents from the aggregation pipeline.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: {\n atlas: {\n clusterName: '${1:atlasClusterName}',\n db: '${2:database}',\n coll: '${3:collection}',\n projectId: '${4:optionalAtlasProjectId}'\n }\n },\n on: '${5:identifier}',\n let: { ${6:specification(s)} },\n whenMatched: '${7:string}',\n whenNotMatched: '${8:string}'\n}"},{name:"$out",value:"$out",label:"$out",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Writes the result of a pipeline to a new or existing collection.",comment:"/**\n * Provide the name of the output database and collection.\n */\n",snippet:"{\n db: '${1:string}',\n coll: '${2:string}',\n /*\n timeseries: {\n timeField: '${3:field}',\n bucketMaxSpanSeconds: '${4:number}',\n granularity: '${5:granularity}'\n }\n */\n}"},{name:"$out",value:"$out",label:"$out",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ADL],meta:"stage",version:"4.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Writes the result of a pipeline to an Atlas cluster, S3 bucket, or Azure Blob Storage.",comment:"/**\n * Use any one of the following:\n * s3: Parameters to save the data to S3.\n * atlas: Parameters to save the data to Atlas. Example:\n * {\n * atlas: {\n * db: 'string',\n * coll: 'string',\n * projectId: 'string',\n * clusterName: 'string'\n * }\n * },\n * azure: Parameters to save the data to Azure. Example:\n * {\n * azure: {\n * serviceURL: 'string',\n * containerName: 'string',\n * region: 'string,\n * filename: 'string',\n * format: {\n * name: 'string',\n * maxFileSize: 'string',\n * maxRowGroupSize: 'string',\n * columnCompression: 'string'\n * },\n * errorMode: 'string'\n * }\n * }\n */\n",snippet:"{\n s3: {\n bucket: '${1:string}',\n region: '${2:string}',\n filename: '${3:string}',\n format: {\n name: '${4:string}',\n maxFileSize: '${5:bytes}',\n maxRowGroupSize: '${6:string}',\n columnCompression: '${7:string}'\n },\n errorMode: '${8:string}'\n }\n}"},{name:"$project",value:"$project",label:"$project",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields.",comment:"/**\n * specifications: The fields to\n * include or exclude.\n */\n",snippet:"{\n ${1:specification(s)}\n}"},{name:"$rankFusion",value:"$rankFusion",label:"$rankFusion",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"8.0.14",apiVersions:[],namespaces:[a.COLLECTION],description:"Combines multiple pipelines using reciprocal rank fusion to create hybrid search results.",comment:'/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be a Ranked Selection Pipeline operating on the same collection. Minimum of one pipeline.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information in {$meta: "scoreDetails"} for debugging and tuning.\n */\n',snippet:"{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n }\n },\n combination: {\n weights: {\n ${6:searchPipeline}: ${7:number},\n ${8:vectorPipeline}: ${9:number}\n }\n },\n scoreDetails: ${10:false}\n}"},{name:"$redact",value:"$redact",label:"$redact",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.6.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Restricts the content for each document based on information stored in the documents themselves",comment:"/**\n * expression: Any valid expression that\n * evaluates to $$DESCEND, $$PRUNE, or $$KEEP.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$replaceRoot",value:"$replaceRoot",label:"$replaceRoot",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newRoot: ${1:replacementDocument}\n}"},{name:"$replaceWith",value:"$replaceWith",label:"$replaceWith",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newWith: ${1:replacementDocument}\n}"},{name:"$sample",value:"$sample",label:"$sample",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[1],namespaces:[...a.ANY_COLLECTION_NAMESPACE],description:"Randomly selects the specified number of documents from its input.",comment:"/**\n * size: The number of documents to sample.\n */\n",snippet:"{\n size: ${1:number}\n}"},{name:"$scoreFusion",value:"$scoreFusion",label:"$scoreFusion",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"8.2.0",apiVersions:[],namespaces:[a.COLLECTION],description:"Combines multiple pipelines using relative score fusion to create hybrid search results.",comment:"/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be operating on the same collection. Minimum of one pipeline.\n * input.normalization: Required. Normalizes the score to the range 0 to 1 before combining the results. Value can be none, sigmoid or minMaxScaler.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * combination.method: Optional. Specifies method for combining scores. Value can be avg or expression. Default is avg.\n * combination.expression: Optional. This is the custom expression that is used when combination.method is set to expression.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information.\n */\n",snippet:"{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n },\n normalization: '${6:none|sigmoid|minMaxScaler}'\n },\n combination: {\n weights: {\n ${7:searchPipeline}: ${8:number},\n ${9:vectorPipeline}: ${10:number}\n },\n method: '${11:avg|expression}',\n expression: '${12:expression}'\n },\n scoreDetails: ${13:false}\n}"},{name:"$search",value:"$search",label:"$search",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"4.1.11",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a full-text search on the specified field(s).",comment:"/**\n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search. Use matchCriteria to match 'any' or 'all' query terms.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n",snippet:"{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}',\n matchCriteria: '${4:any}',\n }\n}"},{name:"$searchMeta",value:"$searchMeta",label:"$searchMeta",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"4.4.9",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query.",comment:"/**\n * index: The name of the Search index.\n * count: The count of the results.\n * facet: {\n * operator: Analyzed search, with required fields of query and path, can either be replaced with the name of a valid operator.\n * facets: {\n * stringFacet: Narrows search results based on unique string values, with required fields of type and path.\n * numberFacet: Narrows search results by breaking them up into separate ranges of numbers, with required fields of type, path, and boundaries.\n * dateFacet: Narrows search results by breaking them up into separate ranges of dates, with required fields of type, path, and boundaries.\n * }\n * }\n */\n",snippet:"{\n index: ${1:string},\n facet: {\n operator: {\n text: {\n query: ${2:string},\n path: ${3:string}\n }\n },\n facets: {\n ${4:stringFacet}: {\n type: ${5:string},\n path: ${6:string},\n numBuckets: ${7:integer}\n },\n numberFacet: {\n type: 'number',\n path: ${8:string},\n boundaries: [${9:lowerbound}, ${10:upperbound}, ...],\n default: ${11:string}\n }\n }\n }\n}"},{name:"$set",value:"$set",label:"$set",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new fields to documents. $set outputs documents that contain all existing fields from the input documents and newly added fields.",comment:"/**\n * field: The field name\n * expression: The expression.\n */\n",snippet:"{\n ${1:field}: ${2:expression}\n}"},{name:"$setWindowFields",value:"$setWindowFields",label:"$setWindowFields",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Capable of partitioning incoming data, and can apply one or more functions to defined windows within each partition.",comment:"/**\n * partitionBy: partitioning of data.\n * sortBy: fields to sort by.\n * output: {\n * path: {\n * function: The window function to compute over the given window.\n * window: {\n * documents: A number of documents before and after the current document.\n * range: A range of possible values around the value in the current document's sortBy field.\n * unit: Specifies the units for the window bounds.\n * }\n * }\n * }\n */\n",snippet:"{\n partitionBy: ${1:expression},\n sortBy: ${2:sortSpec},\n output: {\n ${3:path}: {\n ${4:function}: ${5:functionArgs},\n window: {\n documents: [${6:lowerbound}, ${7:upperbound}],\n range: [${8:lowerbound}, ${9:upperbound}],\n unit: ${10:string}\n }\n },\n ${11:path2}: ...\n }\n}"},{name:"$skip",value:"$skip",label:"$skip",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Skips a specified number of documents before advancing to the next stage.",comment:"/**\n * Provide the number of documents to skip.\n */\n",snippet:"${1:number}"},{name:"$sort",value:"$sort",label:"$sort",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Reorders the document stream by a specified sort key and direction.",comment:"/**\n * Provide any number of field/order pairs.\n */\n",snippet:"{\n ${1:field1}: ${2:sortOrder}\n}"},{name:"$sortByCount",value:"$sortByCount",label:"$sortByCount",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group.",comment:"/**\n * expression: Grouping expression or string.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$unionWith",value:"$unionWith",label:"$unionWith",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Perform a union with a pipeline on another collection.",comment:"/**\n * coll: The collection name.\n * pipeline: The pipeline on the other collection.\n */\n",snippet:"{\n coll: '${1:coll}',\n pipeline: [${2:pipeline}]\n}"},{name:"$unset",value:"$unset",label:"$unset",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Excludes fields from the result document.",comment:"/**\n * Provide the field name to exclude.\n * To exclude multiple fields, pass the field names in an array.\n */\n",snippet:"'${1:string}'"},{name:"$unwind",value:"$unwind",label:"$unwind",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Outputs a new document for each element in a specified array. ",comment:"/**\n * path: Path to the array field.\n * includeArrayIndex: Optional name for index.\n * preserveNullAndEmptyArrays: Optional\n * toggle to unwind null and empty values.\n */\n",snippet:"{\n path: ${1:path},\n includeArrayIndex: '${2:string}',\n preserveNullAndEmptyArrays: ${3:boolean}\n}"},{name:"$vectorSearch",value:"$vectorSearch",label:"$vectorSearch",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS],meta:"stage",version:">=6.0.10 <7.0.0 || >=7.0.2",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a kNN search on embeddings in the specified field(s)",comment:"/**\n * queryVector: Array of numbers of BSON types `int` or `double` that represent the query vector. The array size must match the number of vector dimensions specified in the index for the field. (Required)\n * path: The field to search. (Required)\n * numCandidates: Number of nearest neighbors to use during the search. You can specify a number higher than the number of documents to return (`limit`) to increase accuracy. (Required)\n * index: Name of the Atlas Search index to use. (Required)\n * limit: Number (of type `int` only) of documents to return in the results. (Required)\n * filter: Any MongoDB Query Language (MQL) match expression that compares an indexed field with a boolean, number (not decimals), or string to use as a prefilter. (Optional)\n * exact: Choose between false for ANN (Approximate Nearest Neighbor) and true for ENN (Exact Nearest Neighbor). Defaults to false. (Optional)\n */\n",snippet:"{\n queryVector: [${1:dimension1}, ${2:dimension2}, ...],\n path: ${3:string},\n numCandidates: ${4:numCandidates},\n index: ${5:string},\n limit: ${6:limit},\n filter: {${7:expression}},\n exact: ${8:boolean}\n}"}];t.STAGE_OPERATORS=s;const i=s.map((e=>e.name));t.STAGE_OPERATOR_NAMES=i;const o=s.filter((e=>e.outputStage));t.OUT_STAGES=o;const l=s.filter((e=>e.fullScan));t.FULL_SCAN_STAGES=l;const c=s.filter((e=>e.firstStage));t.REQUIRED_AS_FIRST_STAGE=c},72082:(e,t,n)=>{var r=n(65994).e;const a="object"==typeof r&&r.env&&r.env.NODE_DEBUG&&/\bsemver\b/i.test(r.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=a},72383:(e,t,n)=>{n.d(t,{aN:()=>a});var r=n(59176);r.default,r.DEFAULT_COLLATION,r.DEFAULT_FILTER,r.DEFAULT_LIMIT,r.DEFAULT_MAX_TIME_MS,r.DEFAULT_PROJECT,r.DEFAULT_SKIP,r.DEFAULT_SORT,r.QUERY_PROPERTIES,r.isCollationValid,r.isFilterValid,r.isLimitValid,r.isMaxTimeMSValid,r.isProjectValid,r.isSkipValid,r.isSortValid,r.parseCollation;const a=r.parseFilter;r.parseProject,r.parseSort,r.stringify,r.toJSString,r.validate},72702:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.checkTree=void 0;const r=n(59170);class a{constructor(e){this.options=e,this.checkSafeCall=e=>{const t=this.options.allowMethods;if("Identifier"===e.callee.type)return r.GLOBAL_FUNCTIONS.indexOf(e.callee.name)>=0&&e.arguments.every(this.checkSafeExpression);if(t&&"MemberExpression"===e.callee.type){const t=e.callee.object,n=e.callee.property;if("Identifier"===t.type&&"Identifier"===n.type)return(0,r.isMethodWhitelisted)(t.name,n.name)&&e.arguments.every(this.checkSafeExpression);if("NewExpression"!==t.type&&"CallExpression"!==t.type||"Identifier"!==t.callee.type)return this.checkSafeExpression(t)&&e.arguments.every(this.checkSafeExpression);{const a=t.callee;return(0,r.isMethodWhitelisted)(a.name,n.name)&&e.arguments.every(this.checkSafeExpression)}}return!1},this.checkSafeExpression=e=>{switch(e?.type){case"Identifier":return Object.prototype.hasOwnProperty.call(r.GLOBALS,e.name);case"Literal":return!0;case"ArrayExpression":return e.elements.every(this.checkSafeExpression);case"UnaryExpression":return this.checkSafeExpression(e.argument);case"BinaryExpression":return this.checkSafeExpression(e.left)&&this.checkSafeExpression(e.right);case"CallExpression":case"NewExpression":return this.checkSafeCall(e);case"ObjectExpression":return e.properties.every((e=>!("computed"in e&&e.computed||"method"in e&&e.method)&&!(!("key"in e)||!["Literal","Identifier"].includes(e.key.type))&&"value"in e&&(["FunctionExpression","ArrowFunctionExpression"].includes(e.value.type)||this.checkSafeExpression(e.value))));default:return!1}}}}t.checkTree=(e,t)=>"Program"===e.type&&1===e.body.length&&"ExpressionStatement"===e.body[0].type&&new a(t).checkSafeExpression(e.body[0].expression)},72857:(e,t,n)=>{const r=/\s+/g;class a{constructor(e,t){if(t=i(t),e instanceof a)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new a(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&$(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&f)|(this.options.loose&&v))+":"+e,n=s.get(t);if(n)return n;const r=this.options.loose,a=r?u[m.HYPHENRANGELOOSE]:u[m.HYPHENRANGE];e=e.replace(a,I(this.options.includePrerelease)),l("hyphen replace",e),e=e.replace(u[m.COMPARATORTRIM],p),l("comparator trim",e),e=e.replace(u[m.TILDETRIM],d),l("tilde trim",e),e=e.replace(u[m.CARETTRIM],h),l("caret trim",e);let i=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));r&&(i=i.filter((e=>(l("loose invalid filter",e,this.options),!!e.match(u[m.COMPARATORLOOSE]))))),l("range list",i);const c=new Map,$=i.map((e=>new o(e,this.options)));for(const e of $){if(g(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const E=[...c.values()];return s.set(t,E),E}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Range is required");return this.set.some((n=>E(n,t)&&e.set.some((e=>E(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(w(this.set[t],e,this.options))return!0;return!1}}e.exports=a;const s=new(n(13016)),i=n(31145),o=n(67094),l=n(71598),c=n(50066),{safeRe:u,t:m,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:h}=n(65684),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:v}=n(47755),g=e=>"<0.0.0-0"===e.value,$=e=>""===e.value,E=(e,t)=>{let n=!0;const r=e.slice();let a=r.pop();for(;n&&r.length;)n=r.every((e=>a.intersects(e,t))),a=r.pop();return n},y=(e,t)=>(l("comp",e,t),e=O(e,t),l("caret",e),e=S(e,t),l("tildes",e),e=x(e,t),l("xrange",e),e=T(e,t),l("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{const n=t.loose?u[m.TILDELOOSE]:u[m.TILDE];return e.replace(n,((t,n,r,a,s)=>{let i;return l("tilde",e,t,n,r,a,s),b(n)?i="":b(r)?i=`>=${n}.0.0 <${+n+1}.0.0-0`:b(a)?i=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:s?(l("replaceTilde pr",s),i=`>=${n}.${r}.${a}-${s} <${n}.${+r+1}.0-0`):i=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,l("tilde return",i),i}))},O=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{l("caret",e,t);const n=t.loose?u[m.CARETLOOSE]:u[m.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,s,i)=>{let o;return l("caret",e,t,n,a,s,i),b(n)?o="":b(a)?o=`>=${n}.0.0${r} <${+n+1}.0.0-0`:b(s)?o="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:i?(l("replaceCaret pr",i),o="0"===n?"0"===a?`>=${n}.${a}.${s}-${i} <${n}.${a}.${+s+1}-0`:`>=${n}.${a}.${s}-${i} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${s}-${i} <${+n+1}.0.0-0`):(l("no pr"),o="0"===n?"0"===a?`>=${n}.${a}.${s}${r} <${n}.${a}.${+s+1}-0`:`>=${n}.${a}.${s}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${s} <${+n+1}.0.0-0`),l("caret return",o),o}))},x=(e,t)=>(l("replaceXRanges",e,t),e.split(/\s+/).map((e=>N(e,t))).join(" ")),N=(e,t)=>{e=e.trim();const n=t.loose?u[m.XRANGELOOSE]:u[m.XRANGE];return e.replace(n,((n,r,a,s,i,o)=>{l("xRange",e,n,r,a,s,i,o);const c=b(a),u=c||b(s),m=u||b(i),p=m;return"="===r&&p&&(r=""),o=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(s=0),i=0,">"===r?(r=">=",u?(a=+a+1,s=0,i=0):(s=+s+1,i=0)):"<="===r&&(r="<",u?a=+a+1:s=+s+1),"<"===r&&(o="-0"),n=`${r+a}.${s}.${i}${o}`):u?n=`>=${a}.0.0${o} <${+a+1}.0.0-0`:m&&(n=`>=${a}.${s}.0${o} <${a}.${+s+1}.0-0`),l("xRange return",n),n}))},T=(e,t)=>(l("replaceStars",e,t),e.trim().replace(u[m.STAR],"")),R=(e,t)=>(l("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?m.GTE0PRE:m.GTE0],"")),I=e=>(t,n,r,a,s,i,o,l,c,u,m,p)=>`${n=b(r)?"":b(a)?`>=${r}.0.0${e?"-0":""}`:b(s)?`>=${r}.${a}.0${e?"-0":""}`:i?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(m)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${m}-${p}`:e?`<${c}.${u}.${+m+1}-0`:`<=${l}`}`.trim(),w=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(l(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},73634:(e,t,n)=>{const r=n(71333);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},73746:(e,t,n)=>{const r=n(66283);e.exports=(e,t,n,a,s)=>{"string"==typeof n&&(s=a,a=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,a,s).version}catch(e){return null}}},74145:(e,t,n)=>{const r=n(48381);e.exports=(e,t)=>new r(e,t).minor},74227:(e,t,n)=>{const r=n(32674);e.exports=(e,t,n)=>r(e,t,n)>=0},75689:(e,t,n)=>{const r=n(66283),a=n(59441),{safeRe:s,t:i}=n(415);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?s[i.COERCERTLFULL]:s[i.COERCERTL];let a;for(;(a=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&a.index+a[0].length===n.index+n[0].length||(n=a),r.lastIndex=a.index+a[1].length+a[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?s[i.COERCEFULL]:s[i.COERCE]);if(null===n)return null;const o=n[2],l=n[3]||"0",c=n[4]||"0",u=t.includePrerelease&&n[5]?`-${n[5]}`:"",m=t.includePrerelease&&n[6]?`+${n[6]}`:"";return a(`${o}.${l}.${c}${u}${m}`,t)}},75704:(e,t,n)=>{n.d(t,{Kz:()=>a,aN:()=>s});var r=n(41567);r.default,r.DEFAULT_COLLATION,r.DEFAULT_FILTER,r.DEFAULT_LIMIT,r.DEFAULT_MAX_TIME_MS,r.DEFAULT_PROJECT,r.DEFAULT_SKIP,r.DEFAULT_SORT,r.QUERY_PROPERTIES;const a=r.isCollationValid,s=(r.isFilterValid,r.isLimitValid,r.isMaxTimeMSValid,r.isProjectValid,r.isSkipValid,r.isSortValid,r.parseCollation,r.parseFilter);r.parseProject,r.parseSort,r.stringify,r.toJSString,r.validate},76130:(e,t,n)=>{const r=n(32910);e.exports=(e,t,n)=>r(e,t,">",n)},76393:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),a=t.test(n);return r&&a&&(e=+e,n=+n),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},76654:(e,t,n)=>{const r=n(83586);e.exports=(e,t)=>{const n=r(e,null,!0),a=r(t,null,!0),s=n.compare(a);if(0===s)return null;const i=s>0,o=i?n:a,l=i?a:n,c=!!o.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(o))return l.minor&&!l.patch?"minor":"patch"}const u=c?"pre":"";return n.major!==a.major?u+"major":n.minor!==a.minor?u+"minor":n.patch!==a.patch?u+"patch":"prerelease"}},77192:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BSON_TYPES=void 0,t.BSON_TYPES=[{name:"Code",value:"Code",label:"Code",score:1,meta:"bson",version:"0.0.0",description:"BSON Code type",snippet:"Code('${1:code}')"},{name:"ObjectId",value:"ObjectId",label:"ObjectId",score:1,meta:"bson",version:"0.0.0",description:"BSON ObjectId type",snippet:"ObjectId('${1:id}')"},{name:"Binary",value:"Binary",label:"Binary",score:1,meta:"bson",version:"0.0.0",description:"BSON Binary type",snippet:"Binary('${1:data}', '${2:subType}')"},{name:"DBRef",value:"DBRef",label:"DBRef",score:1,meta:"bson",version:"0.0.0",description:"BSON DBRef type",snippet:"DBRef('${1:ns}', '${2:oid}')"},{name:"Timestamp",value:"Timestamp",label:"Timestamp",score:1,meta:"bson",version:"0.0.0",description:"BSON Timestamp type",snippet:"Timestamp(${1:low}, ${2:high})"},{name:"NumberInt",value:"NumberInt",label:"NumberInt",score:1,meta:"bson",version:"0.0.0",description:"BSON 32 bit Integer type",snippet:"NumberInt(${1:value})"},{name:"NumberLong",value:"NumberLong",label:"NumberLong",score:1,meta:"bson",version:"0.0.0",description:"BSON 64 but Integer type",snippet:"NumberLong(${1:value})"},{name:"NumberDecimal",value:"NumberDecimal",label:"NumberDecimal",score:1,meta:"bson",version:"3.4.0",description:"BSON Decimal128 type",snippet:"NumberDecimal('${1:value}')"},{name:"MaxKey",value:"MaxKey",label:"MaxKey",score:1,meta:"bson",version:"0.0.0",description:"BSON MaxKey type",snippet:"MaxKey()"},{name:"MinKey",value:"MinKey",label:"MinKey",score:1,meta:"bson",version:"0.0.0",description:"BSON MinKey type",snippet:"MinKey()"},{name:"ISODate",value:"ISODate",label:"ISODate",score:1,meta:"bson",version:"0.0.0",description:"BSON Date type",snippet:"ISODate('${1:date}')"},{name:"RegExp",value:"RegExp",label:"RegExp",score:1,meta:"bson",version:"0.0.0",description:"BSON Regex type",snippet:"RegExp('${1:source}', '${2:opts}')"}]},77203:(e,t,n)=>{const r=n(48381);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},77277:(e,t,n)=>{const r=n(34219);e.exports=(e,t)=>{const n=r(e,null,!0),a=r(t,null,!0),s=n.compare(a);if(0===s)return null;const i=s>0,o=i?n:a,l=i?a:n,c=!!o.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(o))return l.minor&&!l.patch?"minor":"patch"}const u=c?"pre":"";return n.major!==a.major?u+"major":n.minor!==a.minor?u+"minor":n.patch!==a.patch?u+"patch":"prerelease"}},77467:(e,t,n)=>{const r=n(41694),a=n(71333),s=n(43334);e.exports=(e,t)=>{e=new a(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const a=e.set[t];let i=null;a.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!s(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!s(n,i)||(n=i)}return n&&e.test(n)?n:null}},77587:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ParseMode=void 0,t.buildOptions=function(e){return{...o,...i(e&&e.mode||n.Strict),...e}},function(e){e.Strict="strict",e.Extended="extended",e.Loose="loose"}(n||(t.ParseMode=n={}));const r={allowMethods:!1,allowComments:!1},a={allowMethods:!0},s={allowMethods:!0,allowComments:!0};function i(e){switch(e){case n.Strict:return r;case n.Extended:return a;case n.Loose:return s}}const o={mode:n.Strict,...r}},77693:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},77973:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BSON_TYPES=void 0,t.BSON_TYPES=[{name:"Code",value:"Code",label:"Code",score:1,meta:"bson",version:"0.0.0",description:"BSON Code type",snippet:"Code('${1:code}')"},{name:"ObjectId",value:"ObjectId",label:"ObjectId",score:1,meta:"bson",version:"0.0.0",description:"BSON ObjectId type",snippet:"ObjectId('${1:id}')"},{name:"Binary",value:"Binary",label:"Binary",score:1,meta:"bson",version:"0.0.0",description:"BSON Binary type",snippet:"Binary('${1:data}', '${2:subType}')"},{name:"DBRef",value:"DBRef",label:"DBRef",score:1,meta:"bson",version:"0.0.0",description:"BSON DBRef type",snippet:"DBRef('${1:ns}', '${2:oid}')"},{name:"Timestamp",value:"Timestamp",label:"Timestamp",score:1,meta:"bson",version:"0.0.0",description:"BSON Timestamp type",snippet:"Timestamp(${1:low}, ${2:high})"},{name:"NumberInt",value:"NumberInt",label:"NumberInt",score:1,meta:"bson",version:"0.0.0",description:"BSON 32 bit Integer type",snippet:"NumberInt(${1:value})"},{name:"NumberLong",value:"NumberLong",label:"NumberLong",score:1,meta:"bson",version:"0.0.0",description:"BSON 64 but Integer type",snippet:"NumberLong(${1:value})"},{name:"NumberDecimal",value:"NumberDecimal",label:"NumberDecimal",score:1,meta:"bson",version:"3.4.0",description:"BSON Decimal128 type",snippet:"NumberDecimal('${1:value}')"},{name:"MaxKey",value:"MaxKey",label:"MaxKey",score:1,meta:"bson",version:"0.0.0",description:"BSON MaxKey type",snippet:"MaxKey()"},{name:"MinKey",value:"MinKey",label:"MinKey",score:1,meta:"bson",version:"0.0.0",description:"BSON MinKey type",snippet:"MinKey()"},{name:"ISODate",value:"ISODate",label:"ISODate",score:1,meta:"bson",version:"0.0.0",description:"BSON Date type",snippet:"ISODate('${1:date}')"},{name:"RegExp",value:"RegExp",label:"RegExp",score:1,meta:"bson",version:"0.0.0",description:"BSON Regex type",snippet:"RegExp('${1:source}', '${2:opts}')"}]},78145:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ALL_CONSTANTS=void 0,t.createConstantFilter=f,t.wrapField=function(e,t=!1){return t||!function(e){if(/[.\s"'()[\];={}:]/.test(e))return!1;try{return new Function(`"use strict";let _ = { ${e}: 0 };`),!0}catch{return!1}}(e)?`"${e.replace(/["\\]/g,"\\$&")}"`:e},t.getFilteredCompletions=function(e={},n=t.ALL_CONSTANTS){const{serverVersion:r=d,fields:a=[],meta:s,stage:i}=e,o=f({serverVersion:r,meta:s,stage:i});return n.concat(a.flatMap((e=>{const{value:t,description:n}=function(e){return"string"==typeof e?{value:e}:{value:e.name,description:e.description}}(e);return[{value:t,meta:"field:identifier",version:"0.0.0",description:n},{value:`$${t}`,meta:"field:reference",version:"0.0.0",description:n}]}))).filter((e=>o(e)))};const r=n(59591),a=n(46432),s=n(81379),i=n(34889),o=n(82663),l=n(47969),c=n(17941),u=n(28131),m=n(19133),p=n(10282);t.ALL_CONSTANTS=[...a.ACCUMULATORS,...i.BSON_TYPES,...s.BSON_TYPE_ALIASES,...o.CONVERSION_OPERATORS,...l.EXPRESSION_OPERATORS,...c.JSON_SCHEMA,...u.QUERY_OPERATORS,...m.STAGE_OPERATORS,...p.SYSTEM_VARIABLES];const d="999.999.999";function h(e,t){return void 0===e||void 0===t||(e=Array.isArray(e)?e:[e]).some((e=>t.includes(e)))}function f({meta:e,serverVersion:t=d,stage:n={}}={}){const a=/^(?<version>\d+\.\d+\.\d+)/.exec(t)?.groups?.version??d;return({version:t,meta:s,env:i,namespaces:o,apiVersions:l})=>function(e,t){const n=/^\d+\.\d+\.\d+$/.test(t);return(0,r.satisfies)(e,n?`>=${t}`:t)}(a,t)&&h(n.env,i)&&h(n.namespace,o)&&h(n.apiVersion,l)&&(!e||function(e,t){const n=t.split(":");return e.some((e=>{const t=e.split(":");return t.length===n.length&&t.every(((e,t)=>"*"===e||e===n[t]))}))}(e,s))}},78519:(e,t,n)=>{const r=n(20332);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},78654:(e,t,n)=>{const r=n(60501);e.exports=(e,t,n)=>0!==r(e,t,n)},78853:(e,t,n)=>{const r=n(48381);e.exports=(e,t)=>new r(e,t).major},78900:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),a=t.test(n);return r&&a&&(e=+e,n=+n),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},79188:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_SCHEMA=void 0,t.JSON_SCHEMA=[{name:"bsonType",value:"bsonType",label:"bsonType",score:1,meta:"json-schema",version:"3.6.0",description:"Accepts same string aliases used for the $type operator"},{name:"enum",value:"enum",label:"enum",score:1,meta:"json-schema",version:"3.6.0",description:"Enumerates all possible values of the field"},{name:"type",value:"type",label:"type",score:1,meta:"json-schema",version:"3.6.0",description:"Enumerates the possible JSON types of the field"},{name:"allOf",value:"allOf",label:"allOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match all specified schemas"},{name:"anyOf",value:"anyOf",label:"anyOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match at least one of the specified schemas"},{name:"oneOf",value:"oneOf",label:"oneOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match exactly one of the specified schemas"},{name:"not",value:"not",label:"not",score:1,meta:"json-schema",version:"3.6.0",description:"Field must not match the schema"},{name:"multipleOf",value:"multipleOf",label:"multipleOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must be a multiple of this value"},{name:"maximum",value:"maximum",label:"maximum",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum value of the field"},{name:"exclusiveMaximum",value:"exclusiveMaximum",label:"exclusiveMaximum",score:1,meta:"json-schema",version:"3.6.0",description:"If true and field is a number, maximum is an exclusive maximum"},{name:"minimum",value:"minimum",label:"minimum",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum value of the field"},{name:"exclusiveMinimum",value:"exclusiveMinimum",label:"exclusiveMinimum",score:1,meta:"json-schema",version:"3.6.0",description:"If true, minimum is an exclusive minimum"},{name:"maxLength",value:"maxLength",label:"maxLength",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum length of the field"},{name:"minLength",value:"minLength",label:"minLength",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum length of the field"},{name:"pattern",value:"pattern",label:"pattern",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match the regular expression"},{name:"maxProperties",value:"maxProperties",label:"maxProperties",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the field’s maximum number of properties"},{name:"minProperties",value:"minProperties",label:"minProperties",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the field’s minimum number of properties"},{name:"required",value:"required",label:"required",score:1,meta:"json-schema",version:"3.6.0",description:"Object’s property set must contain all the specified elements in the array"},{name:"additionalProperties",value:"additionalProperties",label:"additionalProperties",score:1,meta:"json-schema",version:"3.6.0",description:"If true, additional fields are allowed"},{name:"properties",value:"properties",label:"properties",score:1,meta:"json-schema",version:"3.6.0",description:"A valid JSON Schema where each value is also a valid JSON Schema object"},{name:"patternProperties",value:"patternProperties",label:"patternProperties",score:1,meta:"json-schema",version:"3.6.0",description:"In addition to properties requirements, each property name of this object must be a valid regular expression"},{name:"dependencies",value:"dependencies",label:"dependencies",score:1,meta:"json-schema",version:"3.6.0",description:"Describes field or schema dependencies"},{name:"additionalItems",value:"additionalItems",label:"additionalItems",score:1,meta:"json-schema",version:"3.6.0",description:"If an object, must be a valid JSON Schema"},{name:"items",value:"items",label:"items",score:1,meta:"json-schema",version:"3.6.0",description:"Must be either a valid JSON Schema, or an array of valid JSON Schemas"},{name:"maxItems",value:"maxItems",label:"maxItems",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum length of array"},{name:"minItems",value:"minItems",label:"minItems",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum length of array"},{name:"uniqueItems",value:"uniqueItems",label:"uniqueItems",score:1,meta:"json-schema",version:"3.6.0",description:"If true, each item in the array must be unique"},{name:"title",value:"title",label:"title",score:1,meta:"json-schema",version:"3.6.0",description:"A descriptive title string with no effect"},{name:"description",value:"description",label:"description",score:1,meta:"json-schema",version:"3.6.0",description:"A string that describes the schema and has no effect."}]},80003:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CONVERSION_OPERATORS=void 0,t.CONVERSION_OPERATORS=[{name:"$convert",value:"$convert",score:1,meta:"conv",version:"3.7.2"},{name:"$ltrim",value:"$ltrim",score:1,meta:"accumulator",version:"3.7.2"},{name:"$rtrim",value:"$rtrim",score:1,meta:"accumulator",version:"3.7.2"},{name:"$toBool",value:"$toBool",score:1,meta:"conv",version:"3.7.2"},{name:"$toDate",value:"$toDate",score:1,meta:"conv",version:"3.7.2"},{name:"$toDecimal",value:"$toDecimal",score:1,meta:"conv",version:"3.7.2"},{name:"$toDouble",value:"$toDouble",score:1,meta:"conv",version:"3.7.2"},{name:"$toInt",value:"$toInt",score:1,meta:"conv",version:"3.7.2"},{name:"$toLong",value:"$toLong",score:1,meta:"conv",version:"3.7.2"},{name:"$toObjectId",value:"$toObjectId",score:1,meta:"conv",version:"3.7.2"},{name:"$toString",value:"$toString",score:1,meta:"conv",version:"3.7.2"},{name:"$trim",value:"$trim",score:1,meta:"accumulator",version:"3.7.2"}]},80184:(e,t,n)=>{const r=n(415),a=n(77693),s=n(66283),i=n(78900),o=n(59441),l=n(22156),c=n(35735),u=n(73746),m=n(9703),p=n(36719),d=n(32939),h=n(91716),f=n(20242),v=n(60501),g=n(71773),$=n(67994),E=n(85216),y=n(67360),b=n(10760),S=n(61607),A=n(91152),O=n(98746),_=n(78654),x=n(15844),N=n(80829),T=n(59382),R=n(75689),I=n(58387),w=n(38366),L=n(50363),P=n(32654),C=n(5081),M=n(96675),j=n(25546),D=n(92945),k=n(24472),F=n(63876),U=n(94045),V=n(88345),B=n(21148),q=n(82913);e.exports={parse:o,valid:l,clean:c,inc:u,diff:m,major:p,minor:d,patch:h,prerelease:f,compare:v,rcompare:g,compareLoose:$,compareBuild:E,sort:y,rsort:b,gt:S,lt:A,eq:O,neq:_,gte:x,lte:N,cmp:T,coerce:R,Comparator:I,Range:w,satisfies:L,toComparators:P,maxSatisfying:C,minSatisfying:M,minVersion:j,validRange:D,outside:k,gtr:F,ltr:U,intersects:V,simplifyRange:B,subset:q,SemVer:s,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},80321:(e,t,n)=>{const r=n(32674);e.exports=(e,t)=>r(e,t,!0)},80417:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ANY_NAMESPACE=t.ANY_COLLECTION_NAMESPACE=t.TIME_SERIES=t.VIEW=t.COLLECTION=t.DATABASE=void 0,t.DATABASE="db";const n="coll";t.COLLECTION=n;const r="view";t.VIEW=r;const a="timeseries";t.TIME_SERIES=a;const s=[n,r,a];t.ANY_COLLECTION_NAMESPACE=s;const i=["db",...s];t.ANY_NAMESPACE=i},80661:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),a=t.test(n);return r&&a&&(e=+e,n=+n),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},80829:(e,t,n)=>{const r=n(60501);e.exports=(e,t,n)=>r(e,t,n)<=0},81379:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BSON_TYPE_ALIASES=void 0,t.BSON_TYPE_ALIASES=[{name:"double",value:"double",label:"double",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"string",value:"string",label:"string",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"object",value:"object",label:"object",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"array",value:"array",label:"array",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"binData",value:"binData",label:"binData",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"objectId",value:"objectId",label:"objectId",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"bool",value:"bool",label:"bool",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"date",value:"date",label:"date",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"null",value:"null",label:"null",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"double",value:"double",label:"double",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"regex",value:"regex",label:"regex",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"javascript",value:"javascript",label:"javascript",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"javascriptWithScope",value:"javascriptWithScope",label:"javascriptWithScope",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"int",value:"int",label:"int",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"timestamp",value:"timestamp",label:"timestamp",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"long",value:"long",label:"long",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"decimal",value:"decimal",label:"decimal",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"minKey",value:"minKey",label:"minKey",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"maxKey",value:"maxKey",label:"maxKey",score:1,meta:"bson-type-aliases",version:"3.6.0"}]},81641:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParseMode=void 0,t.parse=o;const r=n(84537),a=n(40013),s=n(14387),i=n(77587);function o(e,t){const n=(0,i.buildOptions)(t),{hasComments:o,ast:l}=function(e){let t=!1;return{ast:(0,r.parse)(e,{ecmaVersion:6,onComment:()=>t=!0,locations:!0,ranges:!0,sourceFile:e}),hasComments:t}}(`(\n${e}\n)`);return o&&!n.allowComments||!(0,a.checkTree)(l,n)?"":(0,s.executeAST)(l)}Object.defineProperty(t,"ParseMode",{enumerable:!0,get:function(){return i.ParseMode}}),t.default=o},82214:(e,t,n)=>{const r=n(17914);e.exports=(e,t)=>{const n=r(e,null,!0),a=r(t,null,!0),s=n.compare(a);if(0===s)return null;const i=s>0,o=i?n:a,l=i?a:n,c=!!o.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(o))return l.minor&&!l.patch?"minor":"patch"}const u=c?"pre":"";return n.major!==a.major?u+"major":n.minor!==a.minor?u+"minor":n.patch!==a.patch?u+"patch":"prerelease"}},82663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CONVERSION_OPERATORS=void 0,t.CONVERSION_OPERATORS=[{name:"$convert",value:"$convert",score:1,meta:"conv",version:"3.7.2"},{name:"$ltrim",value:"$ltrim",score:1,meta:"accumulator",version:"3.7.2"},{name:"$rtrim",value:"$rtrim",score:1,meta:"accumulator",version:"3.7.2"},{name:"$toBool",value:"$toBool",score:1,meta:"conv",version:"3.7.2"},{name:"$toDate",value:"$toDate",score:1,meta:"conv",version:"3.7.2"},{name:"$toDecimal",value:"$toDecimal",score:1,meta:"conv",version:"3.7.2"},{name:"$toDouble",value:"$toDouble",score:1,meta:"conv",version:"3.7.2"},{name:"$toInt",value:"$toInt",score:1,meta:"conv",version:"3.7.2"},{name:"$toLong",value:"$toLong",score:1,meta:"conv",version:"3.7.2"},{name:"$toObjectId",value:"$toObjectId",score:1,meta:"conv",version:"3.7.2"},{name:"$toString",value:"$toString",score:1,meta:"conv",version:"3.7.2"},{name:"$trim",value:"$trim",score:1,meta:"accumulator",version:"3.7.2"}]},82913:(e,t,n)=>{const r=n(38366),a=n(58387),{ANY:s}=a,i=n(50363),o=n(60501),l=[new a(">=0.0.0-0")],c=[new a(">=0.0.0")],u=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=n.includePrerelease?l:c}if(1===t.length&&t[0].semver===s){if(n.includePrerelease)return!0;t=c}const r=new Set;let a,u,d,h,f,v,g;for(const t of e)">"===t.operator||">="===t.operator?a=m(a,t,n):"<"===t.operator||"<="===t.operator?u=p(u,t,n):r.add(t.semver);if(r.size>1)return null;if(a&&u){if(d=o(a.semver,u.semver,n),d>0)return null;if(0===d&&(">="!==a.operator||"<="!==u.operator))return null}for(const e of r){if(a&&!i(e,String(a),n))return null;if(u&&!i(e,String(u),n))return null;for(const r of t)if(!i(e,String(r),n))return!1;return!0}let $=!(!u||n.includePrerelease||!u.semver.prerelease.length)&&u.semver,E=!(!a||n.includePrerelease||!a.semver.prerelease.length)&&a.semver;$&&1===$.prerelease.length&&"<"===u.operator&&0===$.prerelease[0]&&($=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,v=v||"<"===e.operator||"<="===e.operator,a)if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),">"===e.operator||">="===e.operator){if(h=m(a,e,n),h===e&&h!==a)return!1}else if(">="===a.operator&&!i(a.semver,String(e),n))return!1;if(u)if($&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===$.major&&e.semver.minor===$.minor&&e.semver.patch===$.patch&&($=!1),"<"===e.operator||"<="===e.operator){if(f=p(u,e,n),f===e&&f!==u)return!1}else if("<="===u.operator&&!i(u.semver,String(e),n))return!1;if(!e.operator&&(u||a)&&0!==d)return!1}return!(a&&v&&!u&&0!==d||u&&g&&!a&&0!==d||E||$)},m=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=o(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let a=!1;e:for(const r of e.set){for(const e of t.set){const t=u(r,e,n);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},83214:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},83586:(e,t,n)=>{const r=n(41694);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},83617:function(e,t,n){var r=n(67787).Buffer,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_FUNCTIONS=t.GLOBALS=void 0,t.getScopeFunction=function(e,t){if(t&&m[e])return m[e];if(!t&&u[e])return u[e];if(p[e])return p[e];throw new Error(`Attempted to access scope property '${e}' that doesn't exist`)},t.isMethodWhitelisted=function(e,t){if(Object.prototype.hasOwnProperty.call(d,e)){const n=d[e].allowedMethods;return"string"==typeof n?d[n].allowedMethods[t]:n[t]}return!1},t.getClass=function(e){if(Object.prototype.hasOwnProperty.call(d,e))return d[e].class;throw new Error(`Attempted to access member '${e}' that doesn't exist`)};const o=i(n(62444));function l(e){return Object.freeze(Object.create(null,Object.getOwnPropertyDescriptors(e)))}function c(e){return"string"==typeof e?o.Long.fromString(e):o.Long.fromNumber(e)}const u=l({Date:function(...e){return Date(...e)}}),m=l({Date:function(...e){return new Date(...e)}}),p=l({RegExp,Binary:function(e,t){return new o.Binary(e,t)},BinData:function(e,t){return new o.Binary(r.from(t,"base64"),e)},UUID:function(e){return void 0===e?(new o.UUID).toBinary():new o.Binary(r.from(e.replace(/-/g,""),"hex"),4)},Code:function(e,t){return new o.Code(e,t)},DBRef:function(e,t,n,r){return new o.DBRef(e,t,n,r)},Decimal128:function(e){return o.Decimal128.fromString(e)},NumberDecimal:function(e){return o.Decimal128.fromString(e)},Double:function(e){return new o.Double(e)},Int32:function(e){return new o.Int32(e)},NumberInt:function(e){return parseInt(e,10)},Long:function(e,t){return new o.Long(e,t)},NumberLong:c,Int64:c,Map:function(e){return new(o.Map??Map)(e)},MaxKey:function(){return new o.MaxKey},MinKey:function(){return new o.MinKey},ObjectID:function(e){return new o.ObjectId(e)},ObjectId:function(e){return new o.ObjectId(e)},Symbol:function(e){return new o.BSONSymbol(e)},Timestamp:function(e,t){return"number"==typeof e&&"number"==typeof t||void 0!==t?new o.Timestamp({t:e,i:t}):new o.Timestamp(e)},ISODate:function(e){if(void 0===e)return new Date;if("string"!=typeof e)return new Date(e);const t=e.match(/^(?<Y>\d{4})-?(?<M>\d{2})-?(?<D>\d{2})([T ](?<h>\d{2})(:?(?<m>\d{2})(:?((?<s>\d{2})(\.(?<ms>\d+))?))?)?(?<tz>Z|([+-])(\d{2}):?(\d{2})?)?)?$/);if(null!==t&&void 0!==t.groups){const{Y:e,M:n,D:r,h:a,m:s,s:i,ms:o,tz:l}=t.groups,c=new Date(`${e}-${n}-${r}T${a||"00"}:${s||"00"}:${i||"00"}.${o||"000"}${l||"Z"}`);if(c.getTime()>=-621672192e5&&c.getTime()<=0xe677d21fdbff)return c}throw new Error(`${JSON.stringify(e)} is not a valid ISODate`)}});t.GLOBALS=l({Infinity:1/0,NaN:NaN,undefined:void 0});const d=l({Math:l({class:Math,allowedMethods:l({abs:!0,acos:!0,acosh:!0,asin:!0,asinh:!0,atan:!0,atan2:!0,atanh:!0,cbrt:!0,ceil:!0,clz32:!0,cos:!0,cosh:!0,exp:!0,expm1:!0,floor:!0,fround:!0,hypot:!0,imul:!0,log:!0,log10:!0,log1p:!0,log2:!0,max:!0,min:!0,pow:!0,round:!0,sign:!0,sin:!0,sinh:!0,sqrt:!0,tan:!0,tanh:!0,trunc:!0})}),Date:l({class:Date,allowedMethods:l({getDate:!0,getDay:!0,getFullYear:!0,getHours:!0,getMilliseconds:!0,getMinutes:!0,getMonth:!0,getSeconds:!0,getTime:!0,getTimezoneOffset:!0,getUTCDate:!0,getUTCDay:!0,getUTCFullYear:!0,getUTCHours:!0,getUTCMilliseconds:!0,getUTCMinutes:!0,getUTCMonth:!0,getUTCSeconds:!0,getYear:!0,now:!0,setDate:!0,setFullYear:!0,setHours:!0,setMilliseconds:!0,setMinutes:!0,setMonth:!0,setSeconds:!0,setTime:!0,setUTCDate:!0,setUTCFullYear:!0,setUTCHours:!0,setUTCMilliseconds:!0,setUTCMinutes:!0,setUTCMonth:!0,setUTCSeconds:!0,setYear:!0,toISOString:!0,valueOf:!0})}),ISODate:l({class:Date,allowedMethods:"Date"}),Binary:l({class:o.Binary,allowedMethods:{createFromHexString:!0,createFromBase64:!0}})});t.GLOBAL_FUNCTIONS=Object.freeze([...Object.keys(p),...Object.keys(m),...Object.keys(u)])},84112:(e,t,n)=>{const r=n(9350),a=n(17914),{safeRe:s,t:i}=n(68752);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?s[i.COERCERTLFULL]:s[i.COERCERTL];let a;for(;(a=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&a.index+a[0].length===n.index+n[0].length||(n=a),r.lastIndex=a.index+a[1].length+a[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?s[i.COERCEFULL]:s[i.COERCE]);if(null===n)return null;const o=n[2],l=n[3]||"0",c=n[4]||"0",u=t.includePrerelease&&n[5]?`-${n[5]}`:"",m=t.includePrerelease&&n[6]?`+${n[6]}`:"";return a(`${o}.${l}.${c}${u}${m}`,t)}},84591:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.wrapField=t.getFilteredCompletions=void 0,a(n(46432),t),a(n(81379),t),a(n(34889),t),a(n(82663),t),a(n(99352),t),a(n(47969),t),a(n(17941),t),a(n(37724),t),a(n(28131),t),a(n(19133),t),a(n(10282),t),a(n(56911),t);var s=n(78145);Object.defineProperty(t,"getFilteredCompletions",{enumerable:!0,get:function(){return s.getFilteredCompletions}}),Object.defineProperty(t,"wrapField",{enumerable:!0,get:function(){return s.wrapField}}),a(n(96807),t),a(n(40957),t)},85216:(e,t,n)=>{const r=n(66283);e.exports=(e,t,n)=>{const a=new r(e,n),s=new r(t,n);return a.compare(s)||a.compareBuild(s)}},85426:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.REQUIRED_AS_FIRST_STAGE=t.FULL_SCAN_STAGES=t.OUT_STAGES=t.STAGE_OPERATOR_NAMES=t.STAGE_OPERATORS=void 0;const r=n(63875),a=n(80417),s=[{name:"$addFields",value:"$addFields",label:"$addFields",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value.",comment:"/**\n * newField: The new field name.\n * expression: The new field expression.\n */\n",snippet:"{\n ${1:newField}: ${2:expression}, ${3:...}\n}"},{name:"$bucket",value:"$bucket",label:"$bucket",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Categorizes incoming documents into groups, called buckets, based on specified boundaries.",comment:"/**\n * groupBy: The expression to group by.\n * boundaries: An array of the lower boundaries for each bucket.\n * default: The bucket name for documents that do not fall within the specified boundaries\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n */\n",snippet:"{\n groupBy: ${1:expression},\n boundaries: [ ${2:lowerbound}, ${3:...} ],\n default: ${4:literal},\n output: {\n ${5:outputN}: { ${6:accumulator} }, ${7:...}\n }\n}"},{name:"$bucketAuto",value:"$bucketAuto",label:"$bucketAuto",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Automatically categorizes documents into a specified number of buckets, attempting even distribution if possible.",comment:"/**\n * groupBy: The expression to group by.\n * buckets: The desired number of buckets\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n * granularity: Optional number series\n */\n",snippet:"{\n groupBy: ${1:expression},\n buckets: ${2:number},\n output: {\n ${3:outputN}: ${4:accumulator}, ${5:...}\n },\n granularity: '${6:string}'\n}"},{name:"$changeStream",value:"$changeStream",label:"$changeStream",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns a Change Stream cursor for the collection.",comment:"/**\n * allChangesForCluster: Optional boolean to include all changes in the cluster.\n * fullDocument: Optional value to request a copy of full document when modified by update operations (Introduced in 6.0).\n * fullDocumentBeforeChange: Value to configure whether to return a full document before the change or not.\n * resumeAfter: Specifies a resume token as the logical starting point for the change stream. Cannot be used with startAfter or startAtOperationTime fields.\n * showExpandedEvents: Specifies whether to include additional change events, such as such as DDL and index operations (Introduced in 6.0).\n * startAfter: Specifies a resume token as the logical starting point for the change stream. Cannot be used with resumeAfter or startAtOperationTime fields.\n * startAtOperationTime: Specifies a time as the logical starting point for the change stream. Cannot be used with resumeAfter or startAfter fields.\n */\n",snippet:"{\n allChangesForCluster: ${1:boolean},\n fullDocument: '${2:string}',\n fullDocumentBeforeChange: '${3:string}',\n resumeAfter: ${4:resumeToken},\n showExpandedEvents: ${5:boolean},\n startAfter: ${6:resumeToken},\n startAtOperationTime: ${7:time},\n}"},{name:"$collStats",value:"$collStats",label:"$collStats",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[],namespaces:[...a.ANY_COLLECTION_NAMESPACE],description:"Returns statistics regarding a collection or view.",comment:"/**\n * histograms: Optional latency histograms.\n * storageStats: Optional storage stats.\n */\n",snippet:"{\n latencyStats: {\n histograms: ${1:boolean}\n },\n storageStats: {${2:}},\n}"},{name:"$count",value:"$count",label:"$count",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Returns a count of the number of documents at this stage of the aggregation pipeline.",comment:"/**\n * Provide the field name for the count.\n */\n",snippet:"'${1:string}'"},{name:"$currentOp",value:"$currentOp",label:"$currentOp",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.6.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns a cursor over information on active and/or dormant operations for the MongoDB deployment as well as inactive sessions that are holding locks as part of a transaction.",comment:"/**\n * allUsers: Optional boolean value to specify whether to return operations for all users or not.\n * idleConnections: Optional boolean value to specify whether to return all operations including idle connections or not.\n * idleCursors: Optional boolean value to specify whether to report on cursors that are idle or not.\n * idleSessions: Optional boolean value to specify whether to report on dormant sessions or not.\n * localOps: Optional boolean value to specify whether to report on operations running locally on targetted mongos or not.\n * backtrace: Optional boolean value to specify whether callstack information is returned as part of the waitingForLatch output field.\n */\n",snippet:"{\n allUsers: ${1:false},\n idleConnections: ${2:false},\n idleCursors: ${3:false},\n idleSessions: ${4:true},\n localOps: ${5:false},\n backtrace: ${6:false},\n}"},{name:"$densify",value:"$densify",label:"$densify",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.1.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Creates new documents to eliminate the gaps in the time or numeric domain at the required granularity level.",comment:"/**\n * field: The required field to densify.\n * partitionByFields: The set of fields that acts as a compound key to define each partition.\n * range: {\n * step: The amount to increment the field value in each document.\n * unit: If specified field must evaluate to a date for every document in the collection, otherwise must evaluate to a numeric.\n * bounds: A string or array of numeric/date bounds, corresponding to the type of the field.\n * }\n */\n",snippet:"{\n field: ${1:string},\n partitionByFields: [${2:string}, ${3:string}, ...],\n range: {\n step: ${4:number},\n unit: ${5:string},\n bounds: [${6:lowerbound}, ${7:upperbound}, ...]\n }\n}"},{name:"$documents",value:"$documents",label:"$documents",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.4.9",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns literal documents from input values.",comment:"/**\n * expression: Any valid expression.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$facet",value:"$facet",label:"$facet",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Allows for multiple parellel aggregations to be specified.",comment:"/**\n * outputFieldN: The first output field.\n * stageN: The first aggregation stage.\n */\n",snippet:"{\n ${1:outputFieldN}: [ ${2:stageN}, ${3:...} ]\n}"},{name:"$fill",value:"$fill",label:"$fill",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.3.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Populates null and missing field values within documents.",comment:'/**\n * sortBy: Syntax is the same as $sort, required if "method" is used in at least one output spec otherwise optional\n * partitionBy: Optional, default is a single partition. Specification is the same as _id in $group (same as partitionBy in window functions).\n * partitionByFields: Optional, set of fields that acts as a compound key to define each partition.\n * output - Required, object for each field to fill in. For a single field, can be a single object.\n * output.<field> - A field to be filled with value, if missing or null in the current document.\n */\n',snippet:"{\n sortBy: ${1:sortSpec},\n partitionBy: ${2:expression},\n partitionByFields: [${3:string}, ${4:string}, ...],\n output: {\n field1: {value: ${5:expression}},\n field2: {method: ${6:string}},\n ...\n }\n}"},{name:"$geoNear",value:"$geoNear",label:"$geoNear",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Returns documents based on proximity to a geospatial point.",comment:"/**\n * near: The point to search near.\n * distanceField: The calculated distance.\n * maxDistance: The maximum distance, in meters, documents can be before being excluded from results.\n * query: Limits results that match the query\n * includeLocs: Optional. Labels and includes the point used to match the document.\n * num: Optional. The maximum number of documents to return.\n * spherical: Defaults to false. Specifies whether to use spherical geometry.\n */\n",snippet:"{\n near: { type: 'Point', coordinates: [ ${1:number}, ${2:number} ] },\n distanceField: '${3:string}',\n maxDistance: ${4:number},\n query: {${5}},\n includeLocs: '${6}',\n num: ${7:number},\n spherical: ${8:boolean}\n}"},{name:"$graphLookup",value:"$graphLookup",label:"$graphLookup",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Performs a recursive search on a collection.",comment:"/**\n * from: The target collection.\n * startWith: Expression to start.\n * connectFromField: Field to connect.\n * connectToField: Field to connect to.\n * as: Name of the array field.\n * maxDepth: Optional max recursion depth.\n * depthField: Optional Name of the depth field.\n * restrictSearchWithMatch: Optional query.\n */\n",snippet:"{\n from: '${1:string}',\n startWith: ${2:expression},\n connectFromField: '${3:string}',\n connectToField: '${4:string}',\n as: '${5:string}',\n maxDepth: ${6:number},\n depthField: '${7:string}',\n restrictSearchWithMatch: {${8}}\n}"},{name:"$group",value:"$group",label:"$group",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Groups documents by a specified expression.",comment:"/**\n * _id: The id of the group.\n * fieldN: The first field name.\n */\n",snippet:"{\n _id: ${1:expression},\n ${2:fieldN}: {\n ${3:accumulatorN}: ${4:expressionN}\n }\n}"},{name:"$indexStats",value:"$indexStats",label:"$indexStats",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[],namespaces:[...a.ANY_NAMESPACE],description:"Returns statistics regarding the use of each index for the collection.",comment:"/**\n * No parameters.\n */\n",snippet:"{}"},{name:"$limit",value:"$limit",label:"$limit",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Limits the number of documents that flow into subsequent stages.",comment:"/**\n * Provide the number of documents to limit.\n */\n",snippet:"${1:number}"},{name:"$listLocalSessions",value:"$listLocalSessions",label:"$listLocalSessions",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"3.6.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Lists the sessions cached in memory by the mongod or mongos instance.",comment:"/**\n * users: Optional list of users for which local sessions need to be returned.\n * allUsers: Optional boolean value to specify whether to return local sessions for all users or not.\n */\n",snippet:"{\n allUsers: ${1:false},\n users: [\n { user: '${2:string}', db: '${3:string}' }\n ]\n}"},{name:"$lookup",value:"$lookup",label:"$lookup",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Performs a join between two collections.",comment:"/**\n * from: The target collection.\n * localField: The local join field.\n * foreignField: The target join field.\n * as: The name for the results.\n * pipeline: Optional pipeline to run on the foreign collection.\n * let: Optional variables to use in the pipeline field stages.\n */\n",snippet:"{\n from: ${1:collection},\n localField: ${2:field},\n foreignField: ${3:field},\n as: ${4:result}\n}"},{name:"$match",value:"$match",label:"$match",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Filters the document stream to allow only matching documents to pass through to subsequent stages.",comment:"/**\n * query: The query in MQL.\n */\n",snippet:"{\n ${1:query}\n}"},{name:"$merge",value:"$merge",label:"$merge",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"4.1.11",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * into: The target collection.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: '${1:string}',\n on: '${2:string}',\n let: '${3:specification(s)}',\n whenMatched: '${4:string}',\n whenNotMatched: '${5:string}'\n}"},{name:"$merge",value:"$merge",label:"$merge",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ADL],meta:"stage",version:"4.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * atlas: Location to write the documents from the aggregation pipeline.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: {\n atlas: {\n clusterName: '${1:atlasClusterName}',\n db: '${2:database}',\n coll: '${3:collection}',\n projectId: '${4:optionalAtlasProjectId}'\n }\n },\n on: '${5:identifier}',\n let: { ${6:specification(s)} },\n whenMatched: '${7:string}',\n whenNotMatched: '${8:string}'\n}"},{name:"$out",value:"$out",label:"$out",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Writes the result of a pipeline to a new or existing collection.",comment:"/**\n * Provide the name of the output database and collection.\n */\n",snippet:"{\n db: '${1:string}',\n coll: '${2:string}',\n /*\n timeseries: {\n timeField: '${3:field}',\n bucketMaxSpanSeconds: '${4:number}',\n granularity: '${5:granularity}'\n }\n */\n}"},{name:"$out",value:"$out",label:"$out",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ADL],meta:"stage",version:"4.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Writes the result of a pipeline to an Atlas cluster, S3 bucket, or Azure Blob Storage.",comment:"/**\n * Use any one of the following:\n * s3: Parameters to save the data to S3.\n * atlas: Parameters to save the data to Atlas. Example:\n * {\n * atlas: {\n * db: 'string',\n * coll: 'string',\n * projectId: 'string',\n * clusterName: 'string'\n * }\n * },\n * azure: Parameters to save the data to Azure. Example:\n * {\n * azure: {\n * serviceURL: 'string',\n * containerName: 'string',\n * region: 'string,\n * filename: 'string',\n * format: {\n * name: 'string',\n * maxFileSize: 'string',\n * maxRowGroupSize: 'string',\n * columnCompression: 'string'\n * },\n * errorMode: 'string'\n * }\n * }\n */\n",snippet:"{\n s3: {\n bucket: '${1:string}',\n region: '${2:string}',\n filename: '${3:string}',\n format: {\n name: '${4:string}',\n maxFileSize: '${5:bytes}',\n maxRowGroupSize: '${6:string}',\n columnCompression: '${7:string}'\n },\n errorMode: '${8:string}'\n }\n}"},{name:"$project",value:"$project",label:"$project",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields.",comment:"/**\n * specifications: The fields to\n * include or exclude.\n */\n",snippet:"{\n ${1:specification(s)}\n}"},{name:"$rankFusion",value:"$rankFusion",label:"$rankFusion",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"8.0.14",apiVersions:[],namespaces:[a.COLLECTION],description:"Combines multiple pipelines using reciprocal rank fusion to create hybrid search results.",comment:'/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be a Ranked Selection Pipeline operating on the same collection. Minimum of one pipeline.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information in {$meta: "scoreDetails"} for debugging and tuning.\n */\n',snippet:"{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n }\n },\n combination: {\n weights: {\n ${6:searchPipeline}: ${7:number},\n ${8:vectorPipeline}: ${9:number}\n }\n },\n scoreDetails: ${10:false}\n}"},{name:"$redact",value:"$redact",label:"$redact",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.6.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Restricts the content for each document based on information stored in the documents themselves",comment:"/**\n * expression: Any valid expression that\n * evaluates to $$DESCEND, $$PRUNE, or $$KEEP.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$replaceRoot",value:"$replaceRoot",label:"$replaceRoot",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newRoot: ${1:replacementDocument}\n}"},{name:"$replaceWith",value:"$replaceWith",label:"$replaceWith",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newWith: ${1:replacementDocument}\n}"},{name:"$sample",value:"$sample",label:"$sample",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[1],namespaces:[...a.ANY_COLLECTION_NAMESPACE],description:"Randomly selects the specified number of documents from its input.",comment:"/**\n * size: The number of documents to sample.\n */\n",snippet:"{\n size: ${1:number}\n}"},{name:"$scoreFusion",value:"$scoreFusion",label:"$scoreFusion",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"8.2.0",apiVersions:[],namespaces:[a.COLLECTION],description:"Combines multiple pipelines using relative score fusion to create hybrid search results.",comment:"/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be operating on the same collection. Minimum of one pipeline.\n * input.normalization: Required. Normalizes the score to the range 0 to 1 before combining the results. Value can be none, sigmoid or minMaxScaler.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * combination.method: Optional. Specifies method for combining scores. Value can be avg or expression. Default is avg.\n * combination.expression: Optional. This is the custom expression that is used when combination.method is set to expression.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information.\n */\n",snippet:"{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n },\n normalization: '${6:none|sigmoid|minMaxScaler}'\n },\n combination: {\n weights: {\n ${7:searchPipeline}: ${8:number},\n ${9:vectorPipeline}: ${10:number}\n },\n method: '${11:avg|expression}',\n expression: '${12:expression}'\n },\n scoreDetails: ${13:false}\n}"},{name:"$search",value:"$search",label:"$search",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"4.1.11",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a full-text search on the specified field(s).",comment:"/**\n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search. Use matchCriteria to match 'any' or 'all' query terms.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n",snippet:"{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}',\n matchCriteria: '${4:any}',\n }\n}"},{name:"$searchMeta",value:"$searchMeta",label:"$searchMeta",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"4.4.9",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query.",comment:"/**\n * index: The name of the Search index.\n * count: The count of the results.\n * facet: {\n * operator: Analyzed search, with required fields of query and path, can either be replaced with the name of a valid operator.\n * facets: {\n * stringFacet: Narrows search results based on unique string values, with required fields of type and path.\n * numberFacet: Narrows search results by breaking them up into separate ranges of numbers, with required fields of type, path, and boundaries.\n * dateFacet: Narrows search results by breaking them up into separate ranges of dates, with required fields of type, path, and boundaries.\n * }\n * }\n */\n",snippet:"{\n index: ${1:string},\n facet: {\n operator: {\n text: {\n query: ${2:string},\n path: ${3:string}\n }\n },\n facets: {\n ${4:stringFacet}: {\n type: ${5:string},\n path: ${6:string},\n numBuckets: ${7:integer}\n },\n numberFacet: {\n type: 'number',\n path: ${8:string},\n boundaries: [${9:lowerbound}, ${10:upperbound}, ...],\n default: ${11:string}\n }\n }\n }\n}"},{name:"$set",value:"$set",label:"$set",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new fields to documents. $set outputs documents that contain all existing fields from the input documents and newly added fields.",comment:"/**\n * field: The field name\n * expression: The expression.\n */\n",snippet:"{\n ${1:field}: ${2:expression}\n}"},{name:"$setWindowFields",value:"$setWindowFields",label:"$setWindowFields",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Capable of partitioning incoming data, and can apply one or more functions to defined windows within each partition.",comment:"/**\n * partitionBy: partitioning of data.\n * sortBy: fields to sort by.\n * output: {\n * path: {\n * function: The window function to compute over the given window.\n * window: {\n * documents: A number of documents before and after the current document.\n * range: A range of possible values around the value in the current document's sortBy field.\n * unit: Specifies the units for the window bounds.\n * }\n * }\n * }\n */\n",snippet:"{\n partitionBy: ${1:expression},\n sortBy: ${2:sortSpec},\n output: {\n ${3:path}: {\n ${4:function}: ${5:functionArgs},\n window: {\n documents: [${6:lowerbound}, ${7:upperbound}],\n range: [${8:lowerbound}, ${9:upperbound}],\n unit: ${10:string}\n }\n },\n ${11:path2}: ...\n }\n}"},{name:"$skip",value:"$skip",label:"$skip",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Skips a specified number of documents before advancing to the next stage.",comment:"/**\n * Provide the number of documents to skip.\n */\n",snippet:"${1:number}"},{name:"$sort",value:"$sort",label:"$sort",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Reorders the document stream by a specified sort key and direction.",comment:"/**\n * Provide any number of field/order pairs.\n */\n",snippet:"{\n ${1:field1}: ${2:sortOrder}\n}"},{name:"$sortByCount",value:"$sortByCount",label:"$sortByCount",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group.",comment:"/**\n * expression: Grouping expression or string.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$unionWith",value:"$unionWith",label:"$unionWith",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Perform a union with a pipeline on another collection.",comment:"/**\n * coll: The collection name.\n * pipeline: The pipeline on the other collection.\n */\n",snippet:"{\n coll: '${1:coll}',\n pipeline: [${2:pipeline}]\n}"},{name:"$unset",value:"$unset",label:"$unset",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Excludes fields from the result document.",comment:"/**\n * Provide the field name to exclude.\n * To exclude multiple fields, pass the field names in an array.\n */\n",snippet:"'${1:string}'"},{name:"$unwind",value:"$unwind",label:"$unwind",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Outputs a new document for each element in a specified array. ",comment:"/**\n * path: Path to the array field.\n * includeArrayIndex: Optional name for index.\n * preserveNullAndEmptyArrays: Optional\n * toggle to unwind null and empty values.\n */\n",snippet:"{\n path: ${1:path},\n includeArrayIndex: '${2:string}',\n preserveNullAndEmptyArrays: ${3:boolean}\n}"},{name:"$vectorSearch",value:"$vectorSearch",label:"$vectorSearch",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS],meta:"stage",version:">=6.0.10 <7.0.0 || >=7.0.2",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a kNN search on embeddings in the specified field(s)",comment:"/**\n * queryVector: Array of numbers of BSON types `int` or `double` that represent the query vector. The array size must match the number of vector dimensions specified in the index for the field. (Required)\n * path: The field to search. (Required)\n * numCandidates: Number of nearest neighbors to use during the search. You can specify a number higher than the number of documents to return (`limit`) to increase accuracy. (Required)\n * index: Name of the Atlas Search index to use. (Required)\n * limit: Number (of type `int` only) of documents to return in the results. (Required)\n * filter: Any MongoDB Query Language (MQL) match expression that compares an indexed field with a boolean, number (not decimals), or string to use as a prefilter. (Optional)\n * exact: Choose between false for ANN (Approximate Nearest Neighbor) and true for ENN (Exact Nearest Neighbor). Defaults to false. (Optional)\n */\n",snippet:"{\n queryVector: [${1:dimension1}, ${2:dimension2}, ...],\n path: ${3:string},\n numCandidates: ${4:numCandidates},\n index: ${5:string},\n limit: ${6:limit},\n filter: {${7:expression}},\n exact: ${8:boolean}\n}"}];t.STAGE_OPERATORS=s;const i=s.map((e=>e.name));t.STAGE_OPERATOR_NAMES=i;const o=s.filter((e=>e.outputStage));t.OUT_STAGES=o;const l=s.filter((e=>e.fullScan));t.FULL_SCAN_STAGES=l;const c=s.filter((e=>e.firstStage));t.REQUIRED_AS_FIRST_STAGE=c},85623:(e,t,n)=>{const r=n(44455);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},85665:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BSON_TYPES=void 0,t.BSON_TYPES=[{name:"Code",value:"Code",label:"Code",score:1,meta:"bson",version:"0.0.0",description:"BSON Code type",snippet:"Code('${1:code}')"},{name:"ObjectId",value:"ObjectId",label:"ObjectId",score:1,meta:"bson",version:"0.0.0",description:"BSON ObjectId type",snippet:"ObjectId('${1:id}')"},{name:"Binary",value:"Binary",label:"Binary",score:1,meta:"bson",version:"0.0.0",description:"BSON Binary type",snippet:"Binary('${1:data}', '${2:subType}')"},{name:"DBRef",value:"DBRef",label:"DBRef",score:1,meta:"bson",version:"0.0.0",description:"BSON DBRef type",snippet:"DBRef('${1:ns}', '${2:oid}')"},{name:"Timestamp",value:"Timestamp",label:"Timestamp",score:1,meta:"bson",version:"0.0.0",description:"BSON Timestamp type",snippet:"Timestamp(${1:low}, ${2:high})"},{name:"NumberInt",value:"NumberInt",label:"NumberInt",score:1,meta:"bson",version:"0.0.0",description:"BSON 32 bit Integer type",snippet:"NumberInt(${1:value})"},{name:"NumberLong",value:"NumberLong",label:"NumberLong",score:1,meta:"bson",version:"0.0.0",description:"BSON 64 but Integer type",snippet:"NumberLong(${1:value})"},{name:"NumberDecimal",value:"NumberDecimal",label:"NumberDecimal",score:1,meta:"bson",version:"3.4.0",description:"BSON Decimal128 type",snippet:"NumberDecimal('${1:value}')"},{name:"MaxKey",value:"MaxKey",label:"MaxKey",score:1,meta:"bson",version:"0.0.0",description:"BSON MaxKey type",snippet:"MaxKey()"},{name:"MinKey",value:"MinKey",label:"MinKey",score:1,meta:"bson",version:"0.0.0",description:"BSON MinKey type",snippet:"MinKey()"},{name:"ISODate",value:"ISODate",label:"ISODate",score:1,meta:"bson",version:"0.0.0",description:"BSON Date type",snippet:"ISODate('${1:date}')"},{name:"RegExp",value:"RegExp",label:"RegExp",score:1,meta:"bson",version:"0.0.0",description:"BSON Regex type",snippet:"RegExp('${1:source}', '${2:opts}')"}]},86506:(e,t,n)=>{const r=n(48381);e.exports=(e,t)=>new r(e,t).patch},86543:(e,t,n)=>{const r=n(38358);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},86812:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.REQUIRED_AS_FIRST_STAGE=t.FULL_SCAN_STAGES=t.OUT_STAGES=t.STAGE_OPERATOR_NAMES=t.STAGE_OPERATORS=void 0;const r=n(49014),a=n(93555),s=[{name:"$addFields",value:"$addFields",label:"$addFields",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value.",comment:"/**\n * newField: The new field name.\n * expression: The new field expression.\n */\n",snippet:"{\n ${1:newField}: ${2:expression}, ${3:...}\n}"},{name:"$bucket",value:"$bucket",label:"$bucket",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Categorizes incoming documents into groups, called buckets, based on specified boundaries.",comment:"/**\n * groupBy: The expression to group by.\n * boundaries: An array of the lower boundaries for each bucket.\n * default: The bucket name for documents that do not fall within the specified boundaries\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n */\n",snippet:"{\n groupBy: ${1:expression},\n boundaries: [ ${2:lowerbound}, ${3:...} ],\n default: ${4:literal},\n output: {\n ${5:outputN}: { ${6:accumulator} }, ${7:...}\n }\n}"},{name:"$bucketAuto",value:"$bucketAuto",label:"$bucketAuto",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Automatically categorizes documents into a specified number of buckets, attempting even distribution if possible.",comment:"/**\n * groupBy: The expression to group by.\n * buckets: The desired number of buckets\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n * granularity: Optional number series\n */\n",snippet:"{\n groupBy: ${1:expression},\n buckets: ${2:number},\n output: {\n ${3:outputN}: ${4:accumulator}, ${5:...}\n },\n granularity: '${6:string}'\n}"},{name:"$changeStream",value:"$changeStream",label:"$changeStream",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns a Change Stream cursor for the collection.",comment:"/**\n * allChangesForCluster: Optional boolean to include all changes in the cluster.\n * fullDocument: Optional value to request a copy of full document when modified by update operations (Introduced in 6.0).\n * fullDocumentBeforeChange: Value to configure whether to return a full document before the change or not.\n * resumeAfter: Specifies a resume token as the logical starting point for the change stream. Cannot be used with startAfter or startAtOperationTime fields.\n * showExpandedEvents: Specifies whether to include additional change events, such as such as DDL and index operations (Introduced in 6.0).\n * startAfter: Specifies a resume token as the logical starting point for the change stream. Cannot be used with resumeAfter or startAtOperationTime fields.\n * startAtOperationTime: Specifies a time as the logical starting point for the change stream. Cannot be used with resumeAfter or startAfter fields.\n */\n",snippet:"{\n allChangesForCluster: ${1:boolean},\n fullDocument: '${2:string}',\n fullDocumentBeforeChange: '${3:string}',\n resumeAfter: ${4:resumeToken},\n showExpandedEvents: ${5:boolean},\n startAfter: ${6:resumeToken},\n startAtOperationTime: ${7:time},\n}"},{name:"$collStats",value:"$collStats",label:"$collStats",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[],namespaces:[...a.ANY_COLLECTION_NAMESPACE],description:"Returns statistics regarding a collection or view.",comment:"/**\n * histograms: Optional latency histograms.\n * storageStats: Optional storage stats.\n */\n",snippet:"{\n latencyStats: {\n histograms: ${1:boolean}\n },\n storageStats: {${2:}},\n}"},{name:"$count",value:"$count",label:"$count",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Returns a count of the number of documents at this stage of the aggregation pipeline.",comment:"/**\n * Provide the field name for the count.\n */\n",snippet:"'${1:string}'"},{name:"$currentOp",value:"$currentOp",label:"$currentOp",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.6.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns a cursor over information on active and/or dormant operations for the MongoDB deployment as well as inactive sessions that are holding locks as part of a transaction.",comment:"/**\n * allUsers: Optional boolean value to specify whether to return operations for all users or not.\n * idleConnections: Optional boolean value to specify whether to return all operations including idle connections or not.\n * idleCursors: Optional boolean value to specify whether to report on cursors that are idle or not.\n * idleSessions: Optional boolean value to specify whether to report on dormant sessions or not.\n * localOps: Optional boolean value to specify whether to report on operations running locally on targetted mongos or not.\n * backtrace: Optional boolean value to specify whether callstack information is returned as part of the waitingForLatch output field.\n */\n",snippet:"{\n allUsers: ${1:false},\n idleConnections: ${2:false},\n idleCursors: ${3:false},\n idleSessions: ${4:true},\n localOps: ${5:false},\n backtrace: ${6:false},\n}"},{name:"$densify",value:"$densify",label:"$densify",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.1.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Creates new documents to eliminate the gaps in the time or numeric domain at the required granularity level.",comment:"/**\n * field: The required field to densify.\n * partitionByFields: The set of fields that acts as a compound key to define each partition.\n * range: {\n * step: The amount to increment the field value in each document.\n * unit: If specified field must evaluate to a date for every document in the collection, otherwise must evaluate to a numeric.\n * bounds: A string or array of numeric/date bounds, corresponding to the type of the field.\n * }\n */\n",snippet:"{\n field: ${1:string},\n partitionByFields: [${2:string}, ${3:string}, ...],\n range: {\n step: ${4:number},\n unit: ${5:string},\n bounds: [${6:lowerbound}, ${7:upperbound}, ...]\n }\n}"},{name:"$documents",value:"$documents",label:"$documents",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.4.9",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns literal documents from input values.",comment:"/**\n * expression: Any valid expression.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$facet",value:"$facet",label:"$facet",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Allows for multiple parellel aggregations to be specified.",comment:"/**\n * outputFieldN: The first output field.\n * stageN: The first aggregation stage.\n */\n",snippet:"{\n ${1:outputFieldN}: [ ${2:stageN}, ${3:...} ]\n}"},{name:"$fill",value:"$fill",label:"$fill",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.3.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Populates null and missing field values within documents.",comment:'/**\n * sortBy: Syntax is the same as $sort, required if "method" is used in at least one output spec otherwise optional\n * partitionBy: Optional, default is a single partition. Specification is the same as _id in $group (same as partitionBy in window functions).\n * partitionByFields: Optional, set of fields that acts as a compound key to define each partition.\n * output - Required, object for each field to fill in. For a single field, can be a single object.\n * output.<field> - A field to be filled with value, if missing or null in the current document.\n */\n',snippet:"{\n sortBy: ${1:sortSpec},\n partitionBy: ${2:expression},\n partitionByFields: [${3:string}, ${4:string}, ...],\n output: {\n field1: {value: ${5:expression}},\n field2: {method: ${6:string}},\n ...\n }\n}"},{name:"$geoNear",value:"$geoNear",label:"$geoNear",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Returns documents based on proximity to a geospatial point.",comment:"/**\n * near: The point to search near.\n * distanceField: The calculated distance.\n * maxDistance: The maximum distance, in meters, documents can be before being excluded from results.\n * query: Limits results that match the query\n * includeLocs: Optional. Labels and includes the point used to match the document.\n * num: Optional. The maximum number of documents to return.\n * spherical: Defaults to false. Specifies whether to use spherical geometry.\n */\n",snippet:"{\n near: { type: 'Point', coordinates: [ ${1:number}, ${2:number} ] },\n distanceField: '${3:string}',\n maxDistance: ${4:number},\n query: {${5}},\n includeLocs: '${6}',\n num: ${7:number},\n spherical: ${8:boolean}\n}"},{name:"$graphLookup",value:"$graphLookup",label:"$graphLookup",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Performs a recursive search on a collection.",comment:"/**\n * from: The target collection.\n * startWith: Expression to start.\n * connectFromField: Field to connect.\n * connectToField: Field to connect to.\n * as: Name of the array field.\n * maxDepth: Optional max recursion depth.\n * depthField: Optional Name of the depth field.\n * restrictSearchWithMatch: Optional query.\n */\n",snippet:"{\n from: '${1:string}',\n startWith: ${2:expression},\n connectFromField: '${3:string}',\n connectToField: '${4:string}',\n as: '${5:string}',\n maxDepth: ${6:number},\n depthField: '${7:string}',\n restrictSearchWithMatch: {${8}}\n}"},{name:"$group",value:"$group",label:"$group",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Groups documents by a specified expression.",comment:"/**\n * _id: The id of the group.\n * fieldN: The first field name.\n */\n",snippet:"{\n _id: ${1:expression},\n ${2:fieldN}: {\n ${3:accumulatorN}: ${4:expressionN}\n }\n}"},{name:"$indexStats",value:"$indexStats",label:"$indexStats",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[],namespaces:[...a.ANY_NAMESPACE],description:"Returns statistics regarding the use of each index for the collection.",comment:"/**\n * No parameters.\n */\n",snippet:"{}"},{name:"$limit",value:"$limit",label:"$limit",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Limits the number of documents that flow into subsequent stages.",comment:"/**\n * Provide the number of documents to limit.\n */\n",snippet:"${1:number}"},{name:"$listLocalSessions",value:"$listLocalSessions",label:"$listLocalSessions",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"3.6.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Lists the sessions cached in memory by the mongod or mongos instance.",comment:"/**\n * users: Optional list of users for which local sessions need to be returned.\n * allUsers: Optional boolean value to specify whether to return local sessions for all users or not.\n */\n",snippet:"{\n allUsers: ${1:false},\n users: [\n { user: '${2:string}', db: '${3:string}' }\n ]\n}"},{name:"$lookup",value:"$lookup",label:"$lookup",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Performs a join between two collections.",comment:"/**\n * from: The target collection.\n * localField: The local join field.\n * foreignField: The target join field.\n * as: The name for the results.\n * pipeline: Optional pipeline to run on the foreign collection.\n * let: Optional variables to use in the pipeline field stages.\n */\n",snippet:"{\n from: ${1:collection},\n localField: ${2:field},\n foreignField: ${3:field},\n as: ${4:result}\n}"},{name:"$match",value:"$match",label:"$match",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Filters the document stream to allow only matching documents to pass through to subsequent stages.",comment:"/**\n * query: The query in MQL.\n */\n",snippet:"{\n ${1:query}\n}"},{name:"$merge",value:"$merge",label:"$merge",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"4.1.11",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * into: The target collection.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: '${1:string}',\n on: '${2:string}',\n let: '${3:specification(s)}',\n whenMatched: '${4:string}',\n whenNotMatched: '${5:string}'\n}"},{name:"$merge",value:"$merge",label:"$merge",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ADL],meta:"stage",version:"4.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * atlas: Location to write the documents from the aggregation pipeline.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: {\n atlas: {\n clusterName: '${1:atlasClusterName}',\n db: '${2:database}',\n coll: '${3:collection}',\n projectId: '${4:optionalAtlasProjectId}'\n }\n },\n on: '${5:identifier}',\n let: { ${6:specification(s)} },\n whenMatched: '${7:string}',\n whenNotMatched: '${8:string}'\n}"},{name:"$out",value:"$out",label:"$out",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Writes the result of a pipeline to a new or existing collection.",comment:"/**\n * Provide the name of the output database and collection.\n */\n",snippet:"{\n db: '${1:string}',\n coll: '${2:string}',\n /*\n timeseries: {\n timeField: '${3:field}',\n bucketMaxSpanSeconds: '${4:number}',\n granularity: '${5:granularity}'\n }\n */\n}"},{name:"$out",value:"$out",label:"$out",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ADL],meta:"stage",version:"4.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Writes the result of a pipeline to an Atlas cluster, S3 bucket, or Azure Blob Storage.",comment:"/**\n * Use any one of the following:\n * s3: Parameters to save the data to S3.\n * atlas: Parameters to save the data to Atlas. Example:\n * {\n * atlas: {\n * db: 'string',\n * coll: 'string',\n * projectId: 'string',\n * clusterName: 'string'\n * }\n * },\n * azure: Parameters to save the data to Azure. Example:\n * {\n * azure: {\n * serviceURL: 'string',\n * containerName: 'string',\n * region: 'string,\n * filename: 'string',\n * format: {\n * name: 'string',\n * maxFileSize: 'string',\n * maxRowGroupSize: 'string',\n * columnCompression: 'string'\n * },\n * errorMode: 'string'\n * }\n * }\n */\n",snippet:"{\n s3: {\n bucket: '${1:string}',\n region: '${2:string}',\n filename: '${3:string}',\n format: {\n name: '${4:string}',\n maxFileSize: '${5:bytes}',\n maxRowGroupSize: '${6:string}',\n columnCompression: '${7:string}'\n },\n errorMode: '${8:string}'\n }\n}"},{name:"$project",value:"$project",label:"$project",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields.",comment:"/**\n * specifications: The fields to\n * include or exclude.\n */\n",snippet:"{\n ${1:specification(s)}\n}"},{name:"$rankFusion",value:"$rankFusion",label:"$rankFusion",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"8.0.14",apiVersions:[],namespaces:[a.COLLECTION],description:"Combines multiple pipelines using reciprocal rank fusion to create hybrid search results.",comment:'/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be a Ranked Selection Pipeline operating on the same collection. Minimum of one pipeline.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information in {$meta: "scoreDetails"} for debugging and tuning.\n */\n',snippet:"{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n }\n },\n combination: {\n weights: {\n ${6:searchPipeline}: ${7:number},\n ${8:vectorPipeline}: ${9:number}\n }\n },\n scoreDetails: ${10:false}\n}"},{name:"$redact",value:"$redact",label:"$redact",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.6.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Restricts the content for each document based on information stored in the documents themselves",comment:"/**\n * expression: Any valid expression that\n * evaluates to $$DESCEND, $$PRUNE, or $$KEEP.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$replaceRoot",value:"$replaceRoot",label:"$replaceRoot",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newRoot: ${1:replacementDocument}\n}"},{name:"$replaceWith",value:"$replaceWith",label:"$replaceWith",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newWith: ${1:replacementDocument}\n}"},{name:"$sample",value:"$sample",label:"$sample",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[1],namespaces:[...a.ANY_COLLECTION_NAMESPACE],description:"Randomly selects the specified number of documents from its input.",comment:"/**\n * size: The number of documents to sample.\n */\n",snippet:"{\n size: ${1:number}\n}"},{name:"$scoreFusion",value:"$scoreFusion",label:"$scoreFusion",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"8.2.0",apiVersions:[],namespaces:[a.COLLECTION],description:"Combines multiple pipelines using relative score fusion to create hybrid search results.",comment:"/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be operating on the same collection. Minimum of one pipeline.\n * input.normalization: Required. Normalizes the score to the range 0 to 1 before combining the results. Value can be none, sigmoid or minMaxScaler.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * combination.method: Optional. Specifies method for combining scores. Value can be avg or expression. Default is avg.\n * combination.expression: Optional. This is the custom expression that is used when combination.method is set to expression.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information.\n */\n",snippet:"{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n },\n normalization: '${6:none|sigmoid|minMaxScaler}'\n },\n combination: {\n weights: {\n ${7:searchPipeline}: ${8:number},\n ${9:vectorPipeline}: ${10:number}\n },\n method: '${11:avg|expression}',\n expression: '${12:expression}'\n },\n scoreDetails: ${13:false}\n}"},{name:"$search",value:"$search",label:"$search",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"4.1.11",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a full-text search on the specified field(s).",comment:"/**\n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search. Use matchCriteria to match 'any' or 'all' query terms.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n",snippet:"{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}',\n matchCriteria: '${4:any}',\n }\n}"},{name:"$searchMeta",value:"$searchMeta",label:"$searchMeta",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"4.4.9",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query.",comment:"/**\n * index: The name of the Search index.\n * count: The count of the results.\n * facet: {\n * operator: Analyzed search, with required fields of query and path, can either be replaced with the name of a valid operator.\n * facets: {\n * stringFacet: Narrows search results based on unique string values, with required fields of type and path.\n * numberFacet: Narrows search results by breaking them up into separate ranges of numbers, with required fields of type, path, and boundaries.\n * dateFacet: Narrows search results by breaking them up into separate ranges of dates, with required fields of type, path, and boundaries.\n * }\n * }\n */\n",snippet:"{\n index: ${1:string},\n facet: {\n operator: {\n text: {\n query: ${2:string},\n path: ${3:string}\n }\n },\n facets: {\n ${4:stringFacet}: {\n type: ${5:string},\n path: ${6:string},\n numBuckets: ${7:integer}\n },\n numberFacet: {\n type: 'number',\n path: ${8:string},\n boundaries: [${9:lowerbound}, ${10:upperbound}, ...],\n default: ${11:string}\n }\n }\n }\n}"},{name:"$set",value:"$set",label:"$set",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new fields to documents. $set outputs documents that contain all existing fields from the input documents and newly added fields.",comment:"/**\n * field: The field name\n * expression: The expression.\n */\n",snippet:"{\n ${1:field}: ${2:expression}\n}"},{name:"$setWindowFields",value:"$setWindowFields",label:"$setWindowFields",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Capable of partitioning incoming data, and can apply one or more functions to defined windows within each partition.",comment:"/**\n * partitionBy: partitioning of data.\n * sortBy: fields to sort by.\n * output: {\n * path: {\n * function: The window function to compute over the given window.\n * window: {\n * documents: A number of documents before and after the current document.\n * range: A range of possible values around the value in the current document's sortBy field.\n * unit: Specifies the units for the window bounds.\n * }\n * }\n * }\n */\n",snippet:"{\n partitionBy: ${1:expression},\n sortBy: ${2:sortSpec},\n output: {\n ${3:path}: {\n ${4:function}: ${5:functionArgs},\n window: {\n documents: [${6:lowerbound}, ${7:upperbound}],\n range: [${8:lowerbound}, ${9:upperbound}],\n unit: ${10:string}\n }\n },\n ${11:path2}: ...\n }\n}"},{name:"$skip",value:"$skip",label:"$skip",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Skips a specified number of documents before advancing to the next stage.",comment:"/**\n * Provide the number of documents to skip.\n */\n",snippet:"${1:number}"},{name:"$sort",value:"$sort",label:"$sort",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Reorders the document stream by a specified sort key and direction.",comment:"/**\n * Provide any number of field/order pairs.\n */\n",snippet:"{\n ${1:field1}: ${2:sortOrder}\n}"},{name:"$sortByCount",value:"$sortByCount",label:"$sortByCount",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group.",comment:"/**\n * expression: Grouping expression or string.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$unionWith",value:"$unionWith",label:"$unionWith",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Perform a union with a pipeline on another collection.",comment:"/**\n * coll: The collection name.\n * pipeline: The pipeline on the other collection.\n */\n",snippet:"{\n coll: '${1:coll}',\n pipeline: [${2:pipeline}]\n}"},{name:"$unset",value:"$unset",label:"$unset",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Excludes fields from the result document.",comment:"/**\n * Provide the field name to exclude.\n * To exclude multiple fields, pass the field names in an array.\n */\n",snippet:"'${1:string}'"},{name:"$unwind",value:"$unwind",label:"$unwind",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Outputs a new document for each element in a specified array. ",comment:"/**\n * path: Path to the array field.\n * includeArrayIndex: Optional name for index.\n * preserveNullAndEmptyArrays: Optional\n * toggle to unwind null and empty values.\n */\n",snippet:"{\n path: ${1:path},\n includeArrayIndex: '${2:string}',\n preserveNullAndEmptyArrays: ${3:boolean}\n}"},{name:"$vectorSearch",value:"$vectorSearch",label:"$vectorSearch",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS],meta:"stage",version:">=6.0.10 <7.0.0 || >=7.0.2",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a kNN search on embeddings in the specified field(s)",comment:"/**\n * queryVector: Array of numbers of BSON types `int` or `double` that represent the query vector. The array size must match the number of vector dimensions specified in the index for the field. (Required)\n * path: The field to search. (Required)\n * numCandidates: Number of nearest neighbors to use during the search. You can specify a number higher than the number of documents to return (`limit`) to increase accuracy. (Required)\n * index: Name of the Atlas Search index to use. (Required)\n * limit: Number (of type `int` only) of documents to return in the results. (Required)\n * filter: Any MongoDB Query Language (MQL) match expression that compares an indexed field with a boolean, number (not decimals), or string to use as a prefilter. (Optional)\n * exact: Choose between false for ANN (Approximate Nearest Neighbor) and true for ENN (Exact Nearest Neighbor). Defaults to false. (Optional)\n */\n",snippet:"{\n queryVector: [${1:dimension1}, ${2:dimension2}, ...],\n path: ${3:string},\n numCandidates: ${4:numCandidates},\n index: ${5:string},\n limit: ${6:limit},\n filter: {${7:expression}},\n exact: ${8:boolean}\n}"}];t.STAGE_OPERATORS=s;const i=s.map((e=>e.name));t.STAGE_OPERATOR_NAMES=i;const o=s.filter((e=>e.outputStage));t.OUT_STAGES=o;const l=s.filter((e=>e.fullScan));t.FULL_SCAN_STAGES=l;const c=s.filter((e=>e.firstStage));t.REQUIRED_AS_FIRST_STAGE=c},86912:(e,t,n)=>{const r=n(41694);e.exports=(e,t)=>new r(e,t).major},86987:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SYSTEM_VARIABLES=void 0,t.SYSTEM_VARIABLES=[{name:"$$NOW",value:"$$NOW",score:1,meta:"variable:system",version:"4.2.0",description:"A variable that returns the current datetime value. NOW returns the same value for all members of the deployment and remains the same throughout all stages of the aggregation pipeline."},{name:"$$CLUSTER_TIME",value:"$$CLUSTER_TIME",score:1,meta:"variable:system",version:"4.2.0",description:"A variable that returns the current timestamp value. CLUSTER_TIME is only available on replica sets and sharded clusters. CLUSTER_TIME returns the same value for all members of the deployment and remains the same throughout all stages of the pipeline."},{name:"$$ROOT",value:"$$ROOT",score:1,meta:"variable:system",version:"2.4.0",description:"References the root document, i.e. the top-level document, currently being processed in the aggregation pipeline stage."},{name:"$$CURRENT",value:"$$CURRENT",score:1,meta:"variable:system",version:"2.4.0",description:"References the start of the field path being processed in the aggregation pipeline stage. Unless documented otherwise, all stages start with CURRENT the same as ROOT. CURRENT is modifiable. However, since `$<field>` is equivalent to `$$CURRENT.<field>`, rebinding CURRENT changes the meaning of `$` accesses."},{name:"$$REMOVE",value:"$$REMOVE",score:1,meta:"variable:system",version:"3.6.0",description:"A variable which evaluates to the missing value. Allows for the conditional exclusion of fields. In a `$project`, a field set to the variable REMOVE is excluded from the output."},{name:"$$DESCEND",value:"$$DESCEND",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$PRUNE",value:"$$PRUNE",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$KEEP",value:"$$KEEP",score:1,meta:"variable:system",version:"3.0.0",description:"One of the allowed results of a `$redact` expression."},{name:"$$SEARCH_META",value:"$$SEARCH_META",score:1,meta:"variable:system",version:"5.0.0",description:"A variable that stores the metadata results of an Atlas Search query. In all supported aggregation pipeline stages, a field set to the variable SEARCH_META returns the metadata results for the query. For an example of its usage, see Atlas Search facet and count."},{name:"$$USER_ROLES",value:"$$USER_ROLES",score:1,meta:"variable:system",version:"7.0.0",description:"A variable that stores the role names of the authenticated user running the command."}]},87391:(e,t,n)=>{const r=n(41694);e.exports=(e,t,n)=>{const a=new r(e,n),s=new r(t,n);return a.compare(s)||a.compareBuild(s)}},88099:(e,t,n)=>{const r=n(9350),a=n(33629),s=n(42734);e.exports=(e,t)=>{e=new a(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const a=e.set[t];let i=null;a.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!s(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!s(n,i)||(n=i)}return n&&e.test(n)?n:null}},88108:(e,t,n)=>{const r=n(45160),a=n(25812),s=n(58809),i=n(54506),o=n(20038),l=n(66239);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return a(e,n,c);case">":return s(e,n,c);case">=":return i(e,n,c);case"<":return o(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},88345:(e,t,n)=>{const r=n(38366);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},88770:(e,t,n)=>{const r=n(47538);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},89065:(e,t,n)=>{const r=n(41694);e.exports=(e,t,n,a,s)=>{"string"==typeof n&&(s=a,a=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,a,s).version}catch(e){return null}}},89247:(e,t,n)=>{n.d(t,{nF:()=>a});var r=n(53354);r.ACCUMULATORS,r.ADL,r.ANY_COLLECTION_NAMESPACE,r.ANY_NAMESPACE,r.ATLAS,r.ATLAS_SEARCH_TEMPLATES,r.ATLAS_VECTOR_SEARCH_TEMPLATE,r.BSON_TYPES,r.BSON_TYPE_ALIASES,r.COLLECTION,r.CONVERSION_OPERATORS,r.DATABASE,r.ENVS,r.EXPRESSION_OPERATORS,r.FULL_SCAN_STAGES,r.JSON_SCHEMA,r.ON_PREM,r.OUT_STAGES,r.QUERY_OPERATORS,r.REQUIRED_AS_FIRST_STAGE,r.STAGE_OPERATORS,r.STAGE_OPERATOR_NAMES,r.SYSTEM_VARIABLES,r.TIME_SERIES;const a=r.VALIDATION_TEMPLATE;r.VIEW,r.VIEW_PIPELINE_UTILS,r.getFilteredCompletions,r.wrapField},89834:(e,t,n)=>{const r=n(33629);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},89975:(e,t,n)=>{const r=n(32910);e.exports=(e,t,n)=>r(e,t,"<",n)},90216:(e,t,n)=>{const r=n(9350);e.exports=(e,t)=>new r(e,t).major},90733:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),a=t.test(n);return r&&a&&(e=+e,n=+n),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},90898:(e,t,n)=>{const r=n(99430);e.exports=(e,t,n)=>r(e,t,n)<=0},91152:(e,t,n)=>{const r=n(60501);e.exports=(e,t,n)=>r(e,t,n)<0},91716:(e,t,n)=>{const r=n(66283);e.exports=(e,t)=>new r(e,t).patch},91871:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BSON_TYPE_ALIASES=void 0,t.BSON_TYPE_ALIASES=[{name:"double",value:"double",label:"double",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"string",value:"string",label:"string",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"object",value:"object",label:"object",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"array",value:"array",label:"array",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"binData",value:"binData",label:"binData",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"objectId",value:"objectId",label:"objectId",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"bool",value:"bool",label:"bool",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"date",value:"date",label:"date",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"null",value:"null",label:"null",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"double",value:"double",label:"double",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"regex",value:"regex",label:"regex",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"javascript",value:"javascript",label:"javascript",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"javascriptWithScope",value:"javascriptWithScope",label:"javascriptWithScope",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"int",value:"int",label:"int",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"timestamp",value:"timestamp",label:"timestamp",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"long",value:"long",label:"long",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"decimal",value:"decimal",label:"decimal",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"minKey",value:"minKey",label:"minKey",score:1,meta:"bson-type-aliases",version:"3.6.0"},{name:"maxKey",value:"maxKey",label:"maxKey",score:1,meta:"bson-type-aliases",version:"3.6.0"}]},91934:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JSON_SCHEMA=void 0,t.JSON_SCHEMA=[{name:"bsonType",value:"bsonType",label:"bsonType",score:1,meta:"json-schema",version:"3.6.0",description:"Accepts same string aliases used for the $type operator"},{name:"enum",value:"enum",label:"enum",score:1,meta:"json-schema",version:"3.6.0",description:"Enumerates all possible values of the field"},{name:"type",value:"type",label:"type",score:1,meta:"json-schema",version:"3.6.0",description:"Enumerates the possible JSON types of the field"},{name:"allOf",value:"allOf",label:"allOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match all specified schemas"},{name:"anyOf",value:"anyOf",label:"anyOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match at least one of the specified schemas"},{name:"oneOf",value:"oneOf",label:"oneOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match exactly one of the specified schemas"},{name:"not",value:"not",label:"not",score:1,meta:"json-schema",version:"3.6.0",description:"Field must not match the schema"},{name:"multipleOf",value:"multipleOf",label:"multipleOf",score:1,meta:"json-schema",version:"3.6.0",description:"Field must be a multiple of this value"},{name:"maximum",value:"maximum",label:"maximum",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum value of the field"},{name:"exclusiveMaximum",value:"exclusiveMaximum",label:"exclusiveMaximum",score:1,meta:"json-schema",version:"3.6.0",description:"If true and field is a number, maximum is an exclusive maximum"},{name:"minimum",value:"minimum",label:"minimum",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum value of the field"},{name:"exclusiveMinimum",value:"exclusiveMinimum",label:"exclusiveMinimum",score:1,meta:"json-schema",version:"3.6.0",description:"If true, minimum is an exclusive minimum"},{name:"maxLength",value:"maxLength",label:"maxLength",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum length of the field"},{name:"minLength",value:"minLength",label:"minLength",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum length of the field"},{name:"pattern",value:"pattern",label:"pattern",score:1,meta:"json-schema",version:"3.6.0",description:"Field must match the regular expression"},{name:"maxProperties",value:"maxProperties",label:"maxProperties",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the field’s maximum number of properties"},{name:"minProperties",value:"minProperties",label:"minProperties",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the field’s minimum number of properties"},{name:"required",value:"required",label:"required",score:1,meta:"json-schema",version:"3.6.0",description:"Object’s property set must contain all the specified elements in the array"},{name:"additionalProperties",value:"additionalProperties",label:"additionalProperties",score:1,meta:"json-schema",version:"3.6.0",description:"If true, additional fields are allowed"},{name:"properties",value:"properties",label:"properties",score:1,meta:"json-schema",version:"3.6.0",description:"A valid JSON Schema where each value is also a valid JSON Schema object"},{name:"patternProperties",value:"patternProperties",label:"patternProperties",score:1,meta:"json-schema",version:"3.6.0",description:"In addition to properties requirements, each property name of this object must be a valid regular expression"},{name:"dependencies",value:"dependencies",label:"dependencies",score:1,meta:"json-schema",version:"3.6.0",description:"Describes field or schema dependencies"},{name:"additionalItems",value:"additionalItems",label:"additionalItems",score:1,meta:"json-schema",version:"3.6.0",description:"If an object, must be a valid JSON Schema"},{name:"items",value:"items",label:"items",score:1,meta:"json-schema",version:"3.6.0",description:"Must be either a valid JSON Schema, or an array of valid JSON Schemas"},{name:"maxItems",value:"maxItems",label:"maxItems",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the maximum length of array"},{name:"minItems",value:"minItems",label:"minItems",score:1,meta:"json-schema",version:"3.6.0",description:"Indicates the minimum length of array"},{name:"uniqueItems",value:"uniqueItems",label:"uniqueItems",score:1,meta:"json-schema",version:"3.6.0",description:"If true, each item in the array must be unique"},{name:"title",value:"title",label:"title",score:1,meta:"json-schema",version:"3.6.0",description:"A descriptive title string with no effect"},{name:"description",value:"description",label:"description",score:1,meta:"json-schema",version:"3.6.0",description:"A string that describes the schema and has no effect."}]},91989:(e,t,n)=>{var r,a;n.d(t,{YO:()=>Ce,zM:()=>Pe,ai:()=>Le,Ik:()=>Me,Yj:()=>we,KC:()=>je}),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(r||(r={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(a||(a={}));const s=r.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),i=e=>{switch(typeof e){case"undefined":return s.undefined;case"string":return s.string;case"number":return Number.isNaN(e)?s.nan:s.number;case"boolean":return s.boolean;case"function":return s.function;case"bigint":return s.bigint;case"symbol":return s.symbol;case"object":return Array.isArray(e)?s.array:null===e?s.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?s.promise:"undefined"!=typeof Map&&e instanceof Map?s.map:"undefined"!=typeof Set&&e instanceof Set?s.set:"undefined"!=typeof Date&&e instanceof Date?s.date:s.object;default:return s.unknown}},o=r.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class l extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)n._errors.push(t(a));else{let e=n,r=0;for(;r<a.path.length;){const n=a.path[r];r===a.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(a))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof l))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)if(r.path.length>0){const n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}l.create=e=>new l(e);const c=(e,t)=>{let n;switch(e.code){case o.invalid_type:n=e.received===s.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case o.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,r.jsonStringifyReplacer)}`;break;case o.unrecognized_keys:n=`Unrecognized key(s) in object: ${r.joinValues(e.keys,", ")}`;break;case o.invalid_union:n="Invalid input";break;case o.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${r.joinValues(e.options)}`;break;case o.invalid_enum_value:n=`Invalid enum value. Expected ${r.joinValues(e.options)}, received '${e.received}'`;break;case o.invalid_arguments:n="Invalid function arguments";break;case o.invalid_return_type:n="Invalid function return type";break;case o.invalid_date:n="Invalid date";break;case o.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:r.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case o.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case o.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case o.custom:n="Invalid input";break;case o.invalid_intersection_types:n="Intersection results could not be merged";break;case o.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case o.not_finite:n="Number must be finite";break;default:n=t.defaultError,r.assertNever(e)}return{message:n}};let u=c;var m;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(m||(m={}));function p(e,t){const n=u,r=(e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,s=[...n,...a.path||[]],i={...a,path:s};if(void 0!==a.message)return{...a,path:s,message:a.message};let o="";const l=r.filter((e=>!!e)).slice().reverse();for(const e of l)o=e(i,{data:t,defaultError:o}).message;return{...a,path:s,message:o}})({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===c?void 0:c].filter((e=>!!e))});e.common.issues.push(r)}class d{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return h;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,r=await e.value;n.push({key:t,value:r})}return d.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:a}=r;if("aborted"===t.status)return h;if("aborted"===a.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"===t.value||void 0===a.value&&!r.alwaysSet||(n[t.value]=a.value)}return{status:e.value,value:n}}}const h=Object.freeze({status:"aborted"}),f=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),g=e=>"aborted"===e.status,$=e=>"dirty"===e.status,E=e=>"valid"===e.status,y=e=>"undefined"!=typeof Promise&&e instanceof Promise;var b=n(9606).URL;class S{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const A=(e,t)=>{if(E(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new l(e.common.issues);return this._error=t,this._error}}};function O(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{const{message:s}=e;return"invalid_enum_value"===t.code?{message:s??a.defaultError}:void 0===a.data?{message:s??r??a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:s??n??a.defaultError}},description:a}}class _{get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new d,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(y(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parseSync({data:e,path:n.path,parent:n});return A(n,r)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return E(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then((e=>E(e)?{value:e.value}:{issues:t.common.issues}))}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await(y(r)?r:Promise.resolve(r));return A(n,a)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const a=e(t),s=()=>r.addIssue({code:o.custom,...n(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then((e=>!!e||(s(),!1))):!!a||(s(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new be({schema:this,typeName:Ie.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Se.create(this,this._def)}nullable(){return Ae.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ie.create(this)}promise(){return ye.create(this,this._def)}or(e){return ce.create([this,e],this._def)}and(e){return me.create(this,e,this._def)}transform(e){return new be({...O(this._def),schema:this,typeName:Ie.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new Oe({...O(this._def),innerType:this,defaultValue:t,typeName:Ie.ZodDefault})}brand(){return new Ne({typeName:Ie.ZodBranded,type:this,...O(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new _e({...O(this._def),innerType:this,catchValue:t,typeName:Ie.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Te.create(this,e)}readonly(){return Re.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const x=/^c[^\s-]{8,}$/i,N=/^[0-9a-z]+$/,T=/^[0-9A-HJKMNP-TV-Z]{26}$/i,R=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,I=/^[a-z0-9_-]{21}$/i,w=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,L=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,P=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let C;const M=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,j=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,D=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,k=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,F=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,U=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,V="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",B=new RegExp(`^${V}$`);function q(e){let t="[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function G(e){let t=`${V}T${q(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Y(e,t){if(!w.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!("object"!=typeof a||null===a||"typ"in a&&"JWT"!==a?.typ||!a.alg||t&&a.alg!==t)}catch{return!1}}function z(e,t){return!("v4"!==t&&t||!j.test(e))||!("v6"!==t&&t||!k.test(e))}class Z extends _{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==s.string){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.string,received:t.parsedType}),h}const t=new d;let n;for(const s of this._def.checks)if("min"===s.kind)e.data.length<s.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:o.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("max"===s.kind)e.data.length>s.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:o.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),t.dirty());else if("length"===s.kind){const r=e.data.length>s.value,a=e.data.length<s.value;(r||a)&&(n=this._getOrReturnCtx(e,n),r?p(n,{code:o.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):a&&p(n,{code:o.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),t.dirty())}else if("email"===s.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"email",code:o.invalid_string,message:s.message}),t.dirty());else if("emoji"===s.kind)C||(C=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),C.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"emoji",code:o.invalid_string,message:s.message}),t.dirty());else if("uuid"===s.kind)R.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"uuid",code:o.invalid_string,message:s.message}),t.dirty());else if("nanoid"===s.kind)I.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"nanoid",code:o.invalid_string,message:s.message}),t.dirty());else if("cuid"===s.kind)x.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid",code:o.invalid_string,message:s.message}),t.dirty());else if("cuid2"===s.kind)N.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cuid2",code:o.invalid_string,message:s.message}),t.dirty());else if("ulid"===s.kind)T.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"ulid",code:o.invalid_string,message:s.message}),t.dirty());else if("url"===s.kind)try{new b(e.data)}catch{n=this._getOrReturnCtx(e,n),p(n,{validation:"url",code:o.invalid_string,message:s.message}),t.dirty()}else"regex"===s.kind?(s.regex.lastIndex=0,s.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"regex",code:o.invalid_string,message:s.message}),t.dirty())):"trim"===s.kind?e.data=e.data.trim():"includes"===s.kind?e.data.includes(s.value,s.position)||(n=this._getOrReturnCtx(e,n),p(n,{code:o.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),t.dirty()):"toLowerCase"===s.kind?e.data=e.data.toLowerCase():"toUpperCase"===s.kind?e.data=e.data.toUpperCase():"startsWith"===s.kind?e.data.startsWith(s.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:o.invalid_string,validation:{startsWith:s.value},message:s.message}),t.dirty()):"endsWith"===s.kind?e.data.endsWith(s.value)||(n=this._getOrReturnCtx(e,n),p(n,{code:o.invalid_string,validation:{endsWith:s.value},message:s.message}),t.dirty()):"datetime"===s.kind?G(s).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:o.invalid_string,validation:"datetime",message:s.message}),t.dirty()):"date"===s.kind?B.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:o.invalid_string,validation:"date",message:s.message}),t.dirty()):"time"===s.kind?new RegExp(`^${q(s)}$`).test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{code:o.invalid_string,validation:"time",message:s.message}),t.dirty()):"duration"===s.kind?L.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"duration",code:o.invalid_string,message:s.message}),t.dirty()):"ip"===s.kind?(a=e.data,("v4"!==(i=s.version)&&i||!M.test(a))&&("v6"!==i&&i||!D.test(a))&&(n=this._getOrReturnCtx(e,n),p(n,{validation:"ip",code:o.invalid_string,message:s.message}),t.dirty())):"jwt"===s.kind?Y(e.data,s.alg)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"jwt",code:o.invalid_string,message:s.message}),t.dirty()):"cidr"===s.kind?z(e.data,s.version)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"cidr",code:o.invalid_string,message:s.message}),t.dirty()):"base64"===s.kind?F.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64",code:o.invalid_string,message:s.message}),t.dirty()):"base64url"===s.kind?U.test(e.data)||(n=this._getOrReturnCtx(e,n),p(n,{validation:"base64url",code:o.invalid_string,message:s.message}),t.dirty()):r.assertNever(s);var a,i;return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:o.invalid_string,...m.errToObj(n)})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...m.errToObj(e)})}url(e){return this._addCheck({kind:"url",...m.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...m.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...m.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...m.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...m.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...m.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...m.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...m.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...m.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...m.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...m.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...m.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...m.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...m.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...m.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...m.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...m.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...m.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...m.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...m.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...m.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...m.errToObj(t)})}nonempty(e){return this.min(1,m.errToObj(e))}trim(){return new Z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Z({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isCIDR(){return!!this._def.checks.find((e=>"cidr"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get isBase64url(){return!!this._def.checks.find((e=>"base64url"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function W(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}Z.create=e=>new Z({checks:[],typeName:Ie.ZodString,coerce:e?.coerce??!1,...O(e)});class X extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==s.number){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.number,received:t.parsedType}),h}let t;const n=new d;for(const a of this._def.checks)"int"===a.kind?r.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:o.invalid_type,expected:"integer",received:"float",message:a.message}),n.dirty()):"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:o.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:o.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),n.dirty()):"multipleOf"===a.kind?0!==W(e.data,a.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:o.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):"finite"===a.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),p(t,{code:o.not_finite,message:a.message}),n.dirty()):r.assertNever(a);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,m.toString(t))}gt(e,t){return this.setLimit("min",e,!1,m.toString(t))}lte(e,t){return this.setLimit("max",e,!0,m.toString(t))}lt(e,t){return this.setLimit("max",e,!1,m.toString(t))}setLimit(e,t,n,r){return new X({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:m.toString(r)}]})}_addCheck(e){return new X({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:m.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:m.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:m.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:m.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:m.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:m.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:m.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:m.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:m.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&r.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}X.create=e=>new X({checks:[],typeName:Ie.ZodNumber,coerce:e?.coerce||!1,...O(e)});class H extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==s.bigint)return this._getInvalidInput(e);let t;const n=new d;for(const a of this._def.checks)"min"===a.kind?(a.inclusive?e.data<a.value:e.data<=a.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:o.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"max"===a.kind?(a.inclusive?e.data>a.value:e.data>=a.value)&&(t=this._getOrReturnCtx(e,t),p(t,{code:o.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),n.dirty()):"multipleOf"===a.kind?e.data%a.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),p(t,{code:o.not_multiple_of,multipleOf:a.value,message:a.message}),n.dirty()):r.assertNever(a);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.bigint,received:t.parsedType}),h}gte(e,t){return this.setLimit("min",e,!0,m.toString(t))}gt(e,t){return this.setLimit("min",e,!1,m.toString(t))}lte(e,t){return this.setLimit("max",e,!0,m.toString(t))}lt(e,t){return this.setLimit("max",e,!1,m.toString(t))}setLimit(e,t,n,r){return new H({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:m.toString(r)}]})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:m.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:m.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:m.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:m.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:m.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}H.create=e=>new H({checks:[],typeName:Ie.ZodBigInt,coerce:e?.coerce??!1,...O(e)});class K extends _{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==s.boolean){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.boolean,received:t.parsedType}),h}return v(e.data)}}K.create=e=>new K({typeName:Ie.ZodBoolean,coerce:e?.coerce||!1,...O(e)});class J extends _{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==s.date){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.date,received:t.parsedType}),h}if(Number.isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:o.invalid_date}),h;const t=new d;let n;for(const a of this._def.checks)"min"===a.kind?e.data.getTime()<a.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:o.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),t.dirty()):"max"===a.kind?e.data.getTime()>a.value&&(n=this._getOrReturnCtx(e,n),p(n,{code:o.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),t.dirty()):r.assertNever(a);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new J({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:m.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:m.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}J.create=e=>new J({checks:[],coerce:e?.coerce||!1,typeName:Ie.ZodDate,...O(e)});class Q extends _{_parse(e){if(this._getType(e)!==s.symbol){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.symbol,received:t.parsedType}),h}return v(e.data)}}Q.create=e=>new Q({typeName:Ie.ZodSymbol,...O(e)});class ee extends _{_parse(e){if(this._getType(e)!==s.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.undefined,received:t.parsedType}),h}return v(e.data)}}ee.create=e=>new ee({typeName:Ie.ZodUndefined,...O(e)});class te extends _{_parse(e){if(this._getType(e)!==s.null){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.null,received:t.parsedType}),h}return v(e.data)}}te.create=e=>new te({typeName:Ie.ZodNull,...O(e)});class ne extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}ne.create=e=>new ne({typeName:Ie.ZodAny,...O(e)});class re extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}re.create=e=>new re({typeName:Ie.ZodUnknown,...O(e)});class ae extends _{_parse(e){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.never,received:t.parsedType}),h}}ae.create=e=>new ae({typeName:Ie.ZodNever,...O(e)});class se extends _{_parse(e){if(this._getType(e)!==s.undefined){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.void,received:t.parsedType}),h}return v(e.data)}}se.create=e=>new se({typeName:Ie.ZodVoid,...O(e)});class ie extends _{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==s.array)return p(t,{code:o.invalid_type,expected:s.array,received:t.parsedType}),h;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&(p(t,{code:e?o.too_big:o.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(p(t,{code:o.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(p(t,{code:o.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new S(t,e,t.path,n))))).then((e=>d.mergeArray(n,e)));const a=[...t.data].map(((e,n)=>r.type._parseSync(new S(t,e,t.path,n))));return d.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new ie({...this._def,minLength:{value:e,message:m.toString(t)}})}max(e,t){return new ie({...this._def,maxLength:{value:e,message:m.toString(t)}})}length(e,t){return new ie({...this._def,exactLength:{value:e,message:m.toString(t)}})}nonempty(e){return this.min(1,e)}}function oe(e){if(e instanceof le){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Se.create(oe(r))}return new le({...e._def,shape:()=>t})}return e instanceof ie?new ie({...e._def,type:oe(e.element)}):e instanceof Se?Se.create(oe(e.unwrap())):e instanceof Ae?Ae.create(oe(e.unwrap())):e instanceof pe?pe.create(e.items.map((e=>oe(e)))):e}ie.create=(e,t)=>new ie({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ie.ZodArray,...O(t)});class le extends _{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=r.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==s.object){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.object,received:t.parsedType}),h}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof ae&&"strip"===this._def.unknownKeys))for(const e in n.data)a.includes(e)||i.push(e);const l=[];for(const e of a){const t=r[e],a=n.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new S(n,a,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof ae){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of i)l.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)i.length>0&&(p(n,{code:o.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new S(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>d.mergeObjectSync(t,e))):d.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return m.errToObj,new le({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{const r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:m.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new le({...this._def,unknownKeys:"strip"})}passthrough(){return new le({...this._def,unknownKeys:"passthrough"})}extend(e){return new le({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new le({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ie.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new le({...this._def,catchall:e})}pick(e){const t={};for(const n of r.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new le({...this._def,shape:()=>t})}omit(e){const t={};for(const n of r.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new le({...this._def,shape:()=>t})}deepPartial(){return oe(this)}partial(e){const t={};for(const n of r.objectKeys(this.shape)){const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new le({...this._def,shape:()=>t})}required(e){const t={};for(const n of r.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Se;)e=e._def.innerType;t[n]=e}return new le({...this._def,shape:()=>t})}keyof(){return ge(r.objectKeys(this.shape))}}le.create=(e,t)=>new le({shape:()=>e,unknownKeys:"strip",catchall:ae.create(),typeName:Ie.ZodObject,...O(t)}),le.strictCreate=(e,t)=>new le({shape:()=>e,unknownKeys:"strict",catchall:ae.create(),typeName:Ie.ZodObject,...O(t)}),le.lazycreate=(e,t)=>new le({shape:e,unknownKeys:"strip",catchall:ae.create(),typeName:Ie.ZodObject,...O(t)});class ce extends _{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new l(e.ctx.common.issues)));return p(t,{code:o.invalid_union,unionErrors:n}),h}));{let e;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},s=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=r.map((e=>new l(e)));return p(t,{code:o.invalid_union,unionErrors:a}),h}}get options(){return this._def.options}}function ue(e,t){const n=i(e),a=i(t);if(e===t)return{valid:!0,data:e};if(n===s.object&&a===s.object){const n=r.objectKeys(t),a=r.objectKeys(e).filter((e=>-1!==n.indexOf(e))),s={...e,...t};for(const n of a){const r=ue(e[n],t[n]);if(!r.valid)return{valid:!1};s[n]=r.data}return{valid:!0,data:s}}if(n===s.array&&a===s.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const a=ue(e[r],t[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===s.date&&a===s.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}ce.create=(e,t)=>new ce({options:e,typeName:Ie.ZodUnion,...O(t)});class me extends _{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(g(e)||g(r))return h;const a=ue(e.value,r.value);return a.valid?(($(e)||$(r))&&t.dirty(),{status:t.value,value:a.data}):(p(n,{code:o.invalid_intersection_types}),h)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}me.create=(e,t,n)=>new me({left:e,right:t,typeName:Ie.ZodIntersection,...O(n)});class pe extends _{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==s.array)return p(n,{code:o.invalid_type,expected:s.array,received:n.parsedType}),h;if(n.data.length<this._def.items.length)return p(n,{code:o.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&n.data.length>this._def.items.length&&(p(n,{code:o.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new S(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>d.mergeArray(t,e))):d.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new pe({...this._def,rest:e})}}pe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new pe({items:e,typeName:Ie.ZodTuple,rest:null,...O(t)})};class de extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==s.map)return p(n,{code:o.invalid_type,expected:s.map,received:n.parsedType}),h;const r=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map((([e,t],s)=>({key:r._parse(new S(n,e,n.path,[s,"key"])),value:a._parse(new S(n,t,n.path,[s,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of i){const r=await n.key,a=await n.value;if("aborted"===r.status||"aborted"===a.status)return h;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of i){const r=n.key,a=n.value;if("aborted"===r.status||"aborted"===a.status)return h;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}de.create=(e,t,n)=>new de({valueType:t,keyType:e,typeName:Ie.ZodMap,...O(n)});class he extends _{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==s.set)return p(n,{code:o.invalid_type,expected:s.set,received:n.parsedType}),h;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(p(n,{code:o.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(p(n,{code:o.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const a=this._def.valueType;function i(e){const n=new Set;for(const r of e){if("aborted"===r.status)return h;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map(((e,t)=>a._parse(new S(n,e,n.path,t))));return n.common.async?Promise.all(l).then((e=>i(e))):i(l)}min(e,t){return new he({...this._def,minSize:{value:e,message:m.toString(t)}})}max(e,t){return new he({...this._def,maxSize:{value:e,message:m.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}he.create=(e,t)=>new he({valueType:e,minSize:null,maxSize:null,typeName:Ie.ZodSet,...O(t)});class fe extends _{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}fe.create=(e,t)=>new fe({getter:e,typeName:Ie.ZodLazy,...O(t)});class ve extends _{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:o.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ge(e,t){return new $e({values:e,typeName:Ie.ZodEnum,...O(t)})}ve.create=(e,t)=>new ve({value:e,typeName:Ie.ZodLiteral,...O(t)});class $e extends _{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{expected:r.joinValues(n),received:t.parsedType,code:o.invalid_type}),h}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return p(t,{received:t.data,code:o.invalid_enum_value,options:n}),h}return v(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return $e.create(e,{...this._def,...t})}exclude(e,t=this._def){return $e.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}$e.create=ge;class Ee extends _{_parse(e){const t=r.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==s.string&&n.parsedType!==s.number){const e=r.objectValues(t);return p(n,{expected:r.joinValues(e),received:n.parsedType,code:o.invalid_type}),h}if(this._cache||(this._cache=new Set(r.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=r.objectValues(t);return p(n,{received:n.data,code:o.invalid_enum_value,options:e}),h}return v(e.data)}get enum(){return this._def.values}}Ee.create=(e,t)=>new Ee({values:e,typeName:Ie.ZodNativeEnum,...O(t)});class ye extends _{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==s.promise&&!1===t.common.async)return p(t,{code:o.invalid_type,expected:s.promise,received:t.parsedType}),h;const n=t.parsedType===s.promise?t.data:Promise.resolve(t.data);return v(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}ye.create=(e,t)=>new ye({type:e,typeName:Ie.ZodPromise,...O(t)});class be extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:e=>{p(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),"preprocess"===a.type){const e=a.transform(n.data,s);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return h;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?h:"dirty"===r.status||"dirty"===t.value?f(r.value):r}));{if("aborted"===t.value)return h;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?h:"dirty"===r.status||"dirty"===t.value?f(r.value):r}}if("refinement"===a.type){const e=e=>{const t=a.refinement(e,s);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===a.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!E(e))return h;const r=a.transform(e.value,s);if(r instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:r}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>E(e)?Promise.resolve(a.transform(e.value,s)).then((e=>({status:t.value,value:e}))):h))}r.assertNever(a)}}be.create=(e,t,n)=>new be({schema:e,typeName:Ie.ZodEffects,effect:t,...O(n)}),be.createWithPreprocess=(e,t,n)=>new be({schema:t,effect:{type:"preprocess",transform:e},typeName:Ie.ZodEffects,...O(n)});class Se extends _{_parse(e){return this._getType(e)===s.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Se.create=(e,t)=>new Se({innerType:e,typeName:Ie.ZodOptional,...O(t)});class Ae extends _{_parse(e){return this._getType(e)===s.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ae.create=(e,t)=>new Ae({innerType:e,typeName:Ie.ZodNullable,...O(t)});class Oe extends _{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===s.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}Oe.create=(e,t)=>new Oe({innerType:e,typeName:Ie.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...O(t)});class _e extends _{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return y(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new l(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}_e.create=(e,t)=>new _e({innerType:e,typeName:Ie.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...O(t)});class xe extends _{_parse(e){if(this._getType(e)!==s.nan){const t=this._getOrReturnCtx(e);return p(t,{code:o.invalid_type,expected:s.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}xe.create=e=>new xe({typeName:Ie.ZodNaN,...O(e)}),Symbol("zod_brand");class Ne extends _{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class Te extends _{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),f(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Te({in:e,out:t,typeName:Ie.ZodPipeline})}}class Re extends _{_parse(e){const t=this._def.innerType._parse(e),n=e=>(E(e)&&(e.value=Object.freeze(e.value)),e);return y(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}var Ie;Re.create=(e,t)=>new Re({innerType:e,typeName:Ie.ZodReadonly,...O(t)}),le.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Ie||(Ie={}));const we=Z.create,Le=X.create,Pe=(xe.create,H.create,K.create),Ce=(J.create,Q.create,ee.create,te.create,ne.create,re.create,ae.create,se.create,ie.create),Me=le.create,je=(le.strictCreate,ce.create);me.create,pe.create,de.create,he.create,fe.create,ve.create,$e.create,Ee.create,ye.create,be.create,Se.create,Ae.create,be.createWithPreprocess,Te.create},92222:(e,t,n)=>{const r=n(50066),a=n(72857);e.exports=(e,t,n)=>{let s=null,i=null,o=null;try{o=new a(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},92625:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:s}=n(24159),i=n(29385),o=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],m=t.t={};let p=0;const d="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",s],[d,a]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),a=p++;i(e,a,t),m[e]=a,c[a]=t,u[a]=r,o[a]=new RegExp(t,n?"g":void 0),l[a]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})\\.(${c[m.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})\\.(${c[m.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[m.NONNUMERICIDENTIFIER]}|${c[m.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASE",`(?:-(${c[m.PRERELEASEIDENTIFIER]}(?:\\.${c[m.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${c[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[m.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${c[m.BUILDIDENTIFIER]}(?:\\.${c[m.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${c[m.MAINVERSION]}${c[m.PRERELEASE]}?${c[m.BUILD]}?`),f("FULL",`^${c[m.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${c[m.MAINVERSIONLOOSE]}${c[m.PRERELEASELOOSE]}?${c[m.BUILD]}?`),f("LOOSE",`^${c[m.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${c[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${c[m.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:\\.(${c[m.XRANGEIDENTIFIER]})(?:${c[m.PRERELEASE]})?${c[m.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[m.XRANGEIDENTIFIERLOOSE]})(?:${c[m.PRERELEASELOOSE]})?${c[m.BUILD]}?)?)?`),f("XRANGE",`^${c[m.GTLT]}\\s*${c[m.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${c[m.GTLT]}\\s*${c[m.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),f("COERCE",`${c[m.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",c[m.COERCEPLAIN]+`(?:${c[m.PRERELEASE]})?`+`(?:${c[m.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",c[m.COERCE],!0),f("COERCERTLFULL",c[m.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${c[m.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${c[m.LONETILDE]}${c[m.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${c[m.LONETILDE]}${c[m.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${c[m.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${c[m.LONECARET]}${c[m.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${c[m.LONECARET]}${c[m.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${c[m.GTLT]}\\s*(${c[m.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${c[m.GTLT]}\\s*(${c[m.LOOSEPLAIN]}|${c[m.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${c[m.XRANGEPLAIN]})\\s+-\\s+(${c[m.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${c[m.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[m.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},92660:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},92721:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},92926:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r=n.css,a=n.media,s=n.sourceMap;a?e.setAttribute("media",a):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,e)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},92945:(e,t,n)=>{const r=n(38366);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},93555:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ANY_NAMESPACE=t.ANY_COLLECTION_NAMESPACE=t.TIME_SERIES=t.VIEW=t.COLLECTION=t.DATABASE=void 0,t.DATABASE="db";const n="coll";t.COLLECTION=n;const r="view";t.VIEW=r;const a="timeseries";t.TIME_SERIES=a;const s=[n,r,a];t.ANY_COLLECTION_NAMESPACE=s;const i=["db",...s];t.ANY_NAMESPACE=i},94045:(e,t,n)=>{const r=n(24472);e.exports=(e,t,n)=>r(e,t,"<",n)},94463:(e,t,n)=>{const r=n(40289);e.exports=(e,t,n)=>0===r(e,t,n)},94706:(e,t,n)=>{const r=n(94463),a=n(36749),s=n(43334),i=n(47775),o=n(3449),l=n(9418);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return a(e,n,c);case">":return s(e,n,c);case">=":return i(e,n,c);case"<":return o(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},94715:(e,t,n)=>{const r=n(17914);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},95153:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_PIPELINE_UTILS=void 0;const a=r(n(51699)),s="8.0.0",i="8.1.0";t.VIEW_PIPELINE_UTILS={MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_DE:s,MIN_VERSION_FOR_VIEW_SEARCH_COMPATIBILITY_COMPASS:i,isPipelineSearchQueryable:e=>{for(const t of e){const e=Object.keys(t)[0];if("$addFields"!==e&&"$set"!==e&&"$match"!==e)return!1;if("$match"===e){const e=t.$match,n=Object.keys(e||{});if(1!==n.length||!n.includes("$expr"))return!1}}return!0},isVersionSearchCompatibleForViewsDataExplorer:e=>{try{return a.default.gte(e,s)}catch{return!1}},isVersionSearchCompatibleForViewsCompass:e=>{try{return a.default.gte(e,i)}catch{return!1}}}},95593:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},i=[],o=0;o<e.length;o++){var l=e[o],c=r.base?l[0]+r.base:l[0],u=s[c]||0,m="".concat(c," ").concat(u);s[c]=u+1;var p=n(m),d={css:l[1],media:l[2],sourceMap:l[3]};-1!==p?(t[p].references++,t[p].updater(d)):t.push({identifier:m,updater:a(d,r),references:1}),i.push(m)}return i}function a(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n.update(e=t)}else n.remove()}}e.exports=function(e,a){var s=r(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<s.length;i++){var o=n(s[i]);t[o].references--}for(var l=r(e,a),c=0;c<s.length;c++){var u=n(s[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}s=l}}},95612:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ParseMode=void 0,t.buildOptions=function(e){return{...o,...i(e&&e.mode||n.Strict),...e}},function(e){e.Strict="strict",e.Extended="extended",e.Loose="loose"}(n||(t.ParseMode=n={}));const r={allowMethods:!1,allowComments:!1},a={allowMethods:!0},s={allowMethods:!0,allowComments:!0};function i(e){switch(e){case n.Strict:return r;case n.Extended:return a;case n.Loose:return s}}const o={mode:n.Strict,...r}},95831:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATION_TEMPLATE=void 0,t.VALIDATION_TEMPLATE='/**\n * This is a starter template for a schema validation rule for a collection.\n * More information on schema validation rules can be found at:\n * https://www.mongodb.com/docs/manual/core/schema-validation/\n */\n{\n $jsonSchema: {\n title: "Library.books",\n bsonType: "object",\n required: ["fieldname1", "fieldname2"],\n properties: {\n fieldname1: {\n bsonType: "string",\n description: "Fieldname1 must be a string",\n },\n fieldname2: {\n bsonType: "int",\n description: "Fieldname2 must be an integer",\n },\n arrayFieldName: {\n bsonType: "array",\n items: {\n bsonType: "string"\n },\n description: "arrayFieldName must be an array of strings"\n },\n }\n }\n}'},96082:(e,t,n)=>{const r=Symbol("SemVer ANY");class a{static get ANY(){return r}constructor(e,t){if(t=s(t),e instanceof a){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new m(e.value,t).test(this.value):""===e.operator?""===e.value||new m(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=a;const s=n(8573),{safeRe:i,t:o}=n(18104),l=n(94706),c=n(72082),u=n(41694),m=n(71333)},96506:(e,t,n)=>{const r=Symbol("SemVer ANY");class a{static get ANY(){return r}constructor(e,t){if(t=s(t),e instanceof a){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new m(e.value,t).test(this.value):""===e.operator?""===e.value||new m(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=a;const s=n(34773),{safeRe:i,t:o}=n(68752),l=n(39149),c=n(52378),u=n(9350),m=n(33629)},96675:(e,t,n)=>{const r=n(66283),a=n(38366);e.exports=(e,t,n)=>{let s=null,i=null,o=null;try{o=new a(t,n)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,n)))})),s}},96775:(e,t,n)=>{const r=n(9480),a=n(40289);e.exports=(e,t,n)=>{const s=[];let i=null,o=null;const l=e.sort(((e,t)=>a(e,t,n)));for(const e of l)r(e,t,n)?(o=e,i||(i=e)):(o&&s.push([i,o]),o=null,i=null);i&&s.push([i,null]);const c=[];for(const[e,t]of s)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const u=c.join(" || "),m="string"==typeof t.raw?t.raw:String(t);return u.length<m.length?u:t}},96807:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ATLAS_VECTOR_SEARCH_TEMPLATE=t.ATLAS_SEARCH_TEMPLATES=void 0,t.ATLAS_SEARCH_TEMPLATES=[{name:"Dynamic field mappings",snippet:'{\n "mappings": {\n "dynamic": true\n }\n}',version:"4.4.0"},{name:"Static field mappings",snippet:'{\n "mappings": {\n "dynamic": false,\n "fields": {\n ${1:<string field name>}: {\n "type": "string"\n },\n ${2:<number field name>}: {\n "type": "number"\n },\n ${3:<date field name>}: {\n "type": "date"\n },\n ${4:<geo field name>}: {\n "type": "geo"\n },\n } \n }\n}',version:"4.4.0"},{name:"Text field mappings",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<string field name>}: [\n {\n // Enables text queries\n "type": "string"\n },\n {\n // Enables autocomplete queries\n "type": "autocomplete"\n \n },\n {\n // Enables sorting\n "type": "token"\n }\n ] \n } \n }\n}',version:"4.4.0"},{name:"Facet field mappings",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<number field name for faceting>}: [\n {\n "type": "numberFacet"\n },\n {\n "type": "number"\n },\n ],\n ${2:<date field name for faceting>}: [\n {\n "type": "dateFacet"\n }\n {\n "type": "date"\n }\n ],\n ${3:<string field name for faceting>}: [\n {\n "type": "stringFacet"\n },\n {\n "type": "string",\n "analyzer": "lucene.keyword"\n },\n ],\n } \n }\n}',version:"4.4.0"},{name:"KNN Vector field mapping",snippet:'{\n "mappings": {\n "dynamic": true,\n "fields": {\n ${1:<vector embedding field name>}: [\n {\n "type": "knnVector",\n "dimensions": ${2:<number of dimensions>},\n "similarity": "${3:<euclidean | cosine | dotProduct>}"\n } \n ] \n } \n }\n}',version:"4.4.0"}],t.ATLAS_VECTOR_SEARCH_TEMPLATE={name:"Vector Search default template",snippet:'{\n "fields": [{\n "type": "vector",\n "path": "${1:<field name to index>}",\n "numDimensions": ${2:<number of dimensions>},\n "similarity": "${3:<euclidean | cosine | dotProduct>}"\n }]\n}',version:"4.4.0"}},97008:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ENVS=t.ON_PREM=t.ADL=t.ATLAS=void 0;const n="atlas";t.ATLAS=n,t.ADL="adl";const r="on-prem";t.ON_PREM=r;const a=[n,"adl",r];t.ENVS=a},97359:(e,t,n)=>{n.d(t,{AO:()=>a});var r=n(21410);r.default,r.DEFAULT_COLLATION,r.DEFAULT_FILTER,r.DEFAULT_LIMIT,r.DEFAULT_MAX_TIME_MS,r.DEFAULT_PROJECT,r.DEFAULT_SKIP,r.DEFAULT_SORT,r.QUERY_PROPERTIES,r.isCollationValid,r.isFilterValid,r.isLimitValid,r.isMaxTimeMSValid,r.isProjectValid,r.isSkipValid,r.isSortValid,r.parseCollation,r.parseFilter,r.parseProject,r.parseSort,r.stringify;const a=r.toJSString;r.validate},97369:(e,t,n)=>{const r=n(32674);e.exports=(e,t,n)=>0!==r(e,t,n)},97575:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_MAX_TIME_MS=t.DEFAULT_COLLATION=t.DEFAULT_PROJECT=t.DEFAULT_SKIP=t.DEFAULT_LIMIT=t.DEFAULT_SORT=t.DEFAULT_FILTER=t.QUERY_PROPERTIES=t.toJSString=t.stringify=t.validate=t.isLimitValid=t.isSkipValid=t.isMaxTimeMSValid=t.isSortValid=t.isProjectValid=t.parseProject=t.isCollationValid=t.isFilterValid=t.parseCollation=t.parseFilter=t.parseSort=void 0;const o=s(n(18578)),l=i(n(20990)),c=i(n(46696)),u=n(98762),m=n(17630);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(t,"toJSString",{enumerable:!0,get:function(){return m.toJSString}});const p=(0,c.default)("mongodb-query-parser"),d={};t.DEFAULT_FILTER=d;const h=null;t.DEFAULT_SORT=h,t.DEFAULT_LIMIT=0,t.DEFAULT_SKIP=0;const f=null;t.DEFAULT_PROJECT=f;const v=null;function g(e){if(null==e)return!0;const t=l.default.trim("number"==typeof e?`${e}`:e);return"{}"===t||l.default.isEmpty(t)}function $(e){return g(e)?0:!!/^\d+$/.test(`${e}`)&&parseInt(`${e}`,10)}function E(e){return(0,o.default)(e,{mode:o.ParseMode.Loose})}function y(e){return(0,o.default)(e,{mode:o.ParseMode.Loose})}function b(e){return g(e)?h:(0,o.default)(e,{mode:o.ParseMode.Loose})}function S(e){return(0,o.default)(e,{mode:o.ParseMode.Loose,allowMethods:!0})}function A(e){if(g(e))return d;try{return S(e)}catch(t){return p('Filter "%s" is invalid',e,t),!1}}function O(e){if(g(e))return v;try{return function(e){for(const[t,n]of Object.entries(e)){if(!u.COLLATION_OPTIONS[t])return p('Collation "%s" is invalid bc of its keys',e),!1;if(!1===u.COLLATION_OPTIONS[t].includes(n))return p('Collation "%s" is invalid bc of its values',e),!1}return e}(y(e))}catch(t){return p('Collation "%s" is invalid',e,t),!1}}function _(){return!0}function x(e){if(g(e))return f;try{const t=E(e);return l.default.isObject(t)?l.default.every(t,_)?t:(p('Project "%s" is invalid bc of its values',e),!1):(p('Project "%s" is invalid. Only documents are allowed',e),!1)}catch(t){return p('Project "%s" is invalid',e,t),!1}}t.DEFAULT_COLLATION=v,t.DEFAULT_MAX_TIME_MS=6e4,t.QUERY_PROPERTIES=["filter","project","sort","skip","limit"],t.parseSort=b,t.parseFilter=function(e){return g(e)?d:S(e)},t.parseCollation=function(e){return g(e)?v:y(e)},t.isFilterValid=A,t.isCollationValid=O,t.parseProject=function(e){return g(e)?f:E(e)},t.isProjectValid=x;const N=[1,-1,"asc","desc"];function T(e){return l.default.includes(N,e)||!(!l.default.isObject(e)||!e.$meta)}function R(e){return l.default.isArray(e)&&2===e.length&&l.default.isString(e[0])&&T(e[1])}function I(e){try{const t=b(e);return g(t)?h:l.default.isArray(t)&&l.default.every(t,R)||l.default.isObject(t)&&!l.default.isArray(t)&&l.default.every(t,T)?t:(p('Sort "%s" is invalid bc of its values',e),!1)}catch(t){return p('Sort "%s" is invalid',e,t),!1}}function w(e){return g(e)?6e4:$(e)}function L(e){return g(e)?0:$(e)}function P(e){return g(e)?0:$(e)}t.isSortValid=I,t.isMaxTimeMSValid=w,t.isSkipValid=L,t.isLimitValid=P;const C={isMaxTimeMSValid:w,isFilterValid:A,isProjectValid:x,isSortValid:I,isLimitValid:P,isSkipValid:L,isCollationValid:O,isNumberValid:$};t.validate=function(e,t){const n=C[`is${l.default.upperFirst(e)}Valid`];return n?n(t):(p("Do not know how to validate `%s`. Returning false.",e),!1)},t.default=function(e,t=null){return 1===arguments.length&&l.default.isString(e)?S(e):{filter:S(e),project:t!==f?E(t):t}}},97660:(e,t,n)=>{const r=n(38358);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},98010:(e,t,n)=>{n.d(t,{rv:()=>a});var r=n(9895);r.ACCUMULATORS,r.ADL,r.ANY_COLLECTION_NAMESPACE,r.ANY_NAMESPACE,r.ATLAS,r.ATLAS_SEARCH_TEMPLATES,r.ATLAS_VECTOR_SEARCH_TEMPLATE,r.BSON_TYPES,r.BSON_TYPE_ALIASES,r.COLLECTION,r.CONVERSION_OPERATORS,r.DATABASE,r.ENVS,r.EXPRESSION_OPERATORS,r.FULL_SCAN_STAGES,r.JSON_SCHEMA,r.ON_PREM,r.OUT_STAGES;const a=r.QUERY_OPERATORS;r.REQUIRED_AS_FIRST_STAGE,r.STAGE_OPERATORS,r.STAGE_OPERATOR_NAMES,r.SYSTEM_VARIABLES,r.TIME_SERIES,r.VALIDATION_TEMPLATE,r.VIEW,r.VIEW_PIPELINE_UTILS,r.getFilteredCompletions,r.wrapField},98249:(e,t,n)=>{const r=n(41755),a=n(97369),s=n(18106),i=n(74227),o=n(28141),l=n(24078);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return a(e,n,c);case">":return s(e,n,c);case">=":return i(e,n,c);case"<":return o(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},98696:(e,t,n)=>{const r=n(48381),a=n(20332),s=n(58809);e.exports=(e,t)=>{e=new a(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const a=e.set[t];let i=null;a.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!s(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||n&&!s(n,i)||(n=i)}return n&&e.test(n)?n:null}},98746:(e,t,n)=>{const r=n(60501);e.exports=(e,t,n)=>0===r(e,t,n)},98762:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.COLLATION_OPTIONS=void 0,t.COLLATION_OPTIONS={locale:["af","sq","am","ar","ar@collation=compat","hy","as","az","az@collation=search","be","bn","bn@collation=traditional","bs","bs@collation=search","bs_Cyrl","bg","my","ca","ca@collation=search","chr","zh","zh@collation=big5han","zh@collation=gb2312han","zh@collation=pinyin","zh@collation=unihan","zh@collation=zhuyin","zh_Hant","zh_Hant@collation=stroke","hr","hr@collation=search","cs","cs@collation=search","da","da@collation=search","nl","dz","en","en_US","en_US_POSIX","eo","et","ee","fo","fil","fi_FI","fi_FI@collation=search","fi_FI@collation=traditional","fr","fr_CA","gl","gl@collation=search","ka","de","de@collation=search","de@collation=eor","de@collation=phonebook","de_AT","de_AT@collation=phonebook","el","gu","ha","haw","he","he@collation=search","hi","hu","is","is@collation=search","ig","smn","smn@collation=search","id","ga","it","ja","ja@collation=unihan","kl","kl@collation=search","kn","kn@collation=traditional","kk","km","kok","ko","ko@collation=search","ko@collation=searchjl","ko@collation=unihan","ky","lk","lo","lv","li","li@collation=phonetic","lt","dsb","lb","mk","ms","ml","mt","mr","mn","ne","se","se@collation=search","nb","nb@collation=search","nn","nn@collation=search","or","om","ps","fa","fa_AF","pl","pt","pa","ro","ru","sr","sr_Latn","sr_Latn@collation=search","si","si@collation=dictionary","sk","sk@collation=search","sl","es","es@collation=search","es@collation=traditional","sw","sv","sv@collation=search","ta","te","th","bo","to","tr","tr@collation=search","uk","hsb","ur","ug","vi","vi@collation=traditional","wae","cy","yi","yi@collation=search","yo","zu","simple"],strength:[1,2,3,4,5],caseLevel:[!0,!1],caseFirst:["upper","lower","off"],numericOrdering:[!0,!1],alternate:["non-ignorable","shifted"],maxVariable:[!0,!1],backwards:[!0,!1],normalization:[!0,!1]}},99352:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ENVS=t.ON_PREM=t.ADL=t.ATLAS=void 0;const n="atlas";t.ATLAS=n,t.ADL="adl";const r="on-prem";t.ON_PREM=r;const a=[n,"adl",r];t.ENVS=a},99385:(e,t,n)=>{const r=n(41694),a=n(96082),{ANY:s}=a,i=n(71333),o=n(9480),l=n(43334),c=n(3449),u=n(9418),m=n(47775);e.exports=(e,t,n,p)=>{let d,h,f,v,g;switch(e=new r(e,p),t=new i(t,p),n){case">":d=l,h=u,f=c,v=">",g=">=";break;case"<":d=c,h=m,f=l,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let i=null,o=null;if(r.forEach((e=>{e.semver===s&&(e=new a(">=0.0.0")),i=i||e,o=o||e,d(e.semver,i.semver,p)?i=e:f(e.semver,o.semver,p)&&(o=e)})),i.operator===v||i.operator===g)return!1;if((!o.operator||o.operator===v)&&h(e,o.semver))return!1;if(o.operator===g&&f(e,o.semver))return!1}return!0}},99430:(e,t,n)=>{const r=n(9350);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},99451:(e,t,n)=>{const r=n(38358);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},99597:(e,t,n)=>{const r=n(50066),a=n(67094),{ANY:s}=a,i=n(72857),o=n(12876),l=n(18106),c=n(28141),u=n(24078),m=n(74227);e.exports=(e,t,n,p)=>{let d,h,f,v,g;switch(e=new r(e,p),t=new i(t,p),n){case">":d=l,h=u,f=c,v=">",g=">=";break;case"<":d=c,h=m,f=l,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let i=null,o=null;if(r.forEach((e=>{e.semver===s&&(e=new a(">=0.0.0")),i=i||e,o=o||e,d(e.semver,i.semver,p)?i=e:f(e.semver,o.semver,p)&&(o=e)})),i.operator===v||i.operator===g)return!1;if((!o.operator||o.operator===v)&&h(e,o.semver))return!1;if(o.operator===g&&f(e,o.semver))return!1}return!0}},99625:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.REQUIRED_AS_FIRST_STAGE=t.FULL_SCAN_STAGES=t.OUT_STAGES=t.STAGE_OPERATOR_NAMES=t.STAGE_OPERATORS=void 0;const r=n(1276),a=n(39560),s=[{name:"$addFields",value:"$addFields",label:"$addFields",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value.",comment:"/**\n * newField: The new field name.\n * expression: The new field expression.\n */\n",snippet:"{\n ${1:newField}: ${2:expression}, ${3:...}\n}"},{name:"$bucket",value:"$bucket",label:"$bucket",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Categorizes incoming documents into groups, called buckets, based on specified boundaries.",comment:"/**\n * groupBy: The expression to group by.\n * boundaries: An array of the lower boundaries for each bucket.\n * default: The bucket name for documents that do not fall within the specified boundaries\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n */\n",snippet:"{\n groupBy: ${1:expression},\n boundaries: [ ${2:lowerbound}, ${3:...} ],\n default: ${4:literal},\n output: {\n ${5:outputN}: { ${6:accumulator} }, ${7:...}\n }\n}"},{name:"$bucketAuto",value:"$bucketAuto",label:"$bucketAuto",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Automatically categorizes documents into a specified number of buckets, attempting even distribution if possible.",comment:"/**\n * groupBy: The expression to group by.\n * buckets: The desired number of buckets\n * output: {\n * outputN: Optional. The output object may contain a single or numerous field names used to accumulate values per bucket.\n * }\n * granularity: Optional number series\n */\n",snippet:"{\n groupBy: ${1:expression},\n buckets: ${2:number},\n output: {\n ${3:outputN}: ${4:accumulator}, ${5:...}\n },\n granularity: '${6:string}'\n}"},{name:"$changeStream",value:"$changeStream",label:"$changeStream",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns a Change Stream cursor for the collection.",comment:"/**\n * allChangesForCluster: Optional boolean to include all changes in the cluster.\n * fullDocument: Optional value to request a copy of full document when modified by update operations (Introduced in 6.0).\n * fullDocumentBeforeChange: Value to configure whether to return a full document before the change or not.\n * resumeAfter: Specifies a resume token as the logical starting point for the change stream. Cannot be used with startAfter or startAtOperationTime fields.\n * showExpandedEvents: Specifies whether to include additional change events, such as such as DDL and index operations (Introduced in 6.0).\n * startAfter: Specifies a resume token as the logical starting point for the change stream. Cannot be used with resumeAfter or startAtOperationTime fields.\n * startAtOperationTime: Specifies a time as the logical starting point for the change stream. Cannot be used with resumeAfter or startAfter fields.\n */\n",snippet:"{\n allChangesForCluster: ${1:boolean},\n fullDocument: '${2:string}',\n fullDocumentBeforeChange: '${3:string}',\n resumeAfter: ${4:resumeToken},\n showExpandedEvents: ${5:boolean},\n startAfter: ${6:resumeToken},\n startAtOperationTime: ${7:time},\n}"},{name:"$collStats",value:"$collStats",label:"$collStats",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[],namespaces:[...a.ANY_COLLECTION_NAMESPACE],description:"Returns statistics regarding a collection or view.",comment:"/**\n * histograms: Optional latency histograms.\n * storageStats: Optional storage stats.\n */\n",snippet:"{\n latencyStats: {\n histograms: ${1:boolean}\n },\n storageStats: {${2:}},\n}"},{name:"$count",value:"$count",label:"$count",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Returns a count of the number of documents at this stage of the aggregation pipeline.",comment:"/**\n * Provide the field name for the count.\n */\n",snippet:"'${1:string}'"},{name:"$currentOp",value:"$currentOp",label:"$currentOp",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.6.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns a cursor over information on active and/or dormant operations for the MongoDB deployment as well as inactive sessions that are holding locks as part of a transaction.",comment:"/**\n * allUsers: Optional boolean value to specify whether to return operations for all users or not.\n * idleConnections: Optional boolean value to specify whether to return all operations including idle connections or not.\n * idleCursors: Optional boolean value to specify whether to report on cursors that are idle or not.\n * idleSessions: Optional boolean value to specify whether to report on dormant sessions or not.\n * localOps: Optional boolean value to specify whether to report on operations running locally on targetted mongos or not.\n * backtrace: Optional boolean value to specify whether callstack information is returned as part of the waitingForLatch output field.\n */\n",snippet:"{\n allUsers: ${1:false},\n idleConnections: ${2:false},\n idleCursors: ${3:false},\n idleSessions: ${4:true},\n localOps: ${5:false},\n backtrace: ${6:false},\n}"},{name:"$densify",value:"$densify",label:"$densify",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.1.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Creates new documents to eliminate the gaps in the time or numeric domain at the required granularity level.",comment:"/**\n * field: The required field to densify.\n * partitionByFields: The set of fields that acts as a compound key to define each partition.\n * range: {\n * step: The amount to increment the field value in each document.\n * unit: If specified field must evaluate to a date for every document in the collection, otherwise must evaluate to a numeric.\n * bounds: A string or array of numeric/date bounds, corresponding to the type of the field.\n * }\n */\n",snippet:"{\n field: ${1:string},\n partitionByFields: [${2:string}, ${3:string}, ...],\n range: {\n step: ${4:number},\n unit: ${5:string},\n bounds: [${6:lowerbound}, ${7:upperbound}, ...]\n }\n}"},{name:"$documents",value:"$documents",label:"$documents",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.4.9",apiVersions:[1],namespaces:[a.DATABASE],description:"Returns literal documents from input values.",comment:"/**\n * expression: Any valid expression.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$facet",value:"$facet",label:"$facet",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Allows for multiple parellel aggregations to be specified.",comment:"/**\n * outputFieldN: The first output field.\n * stageN: The first aggregation stage.\n */\n",snippet:"{\n ${1:outputFieldN}: [ ${2:stageN}, ${3:...} ]\n}"},{name:"$fill",value:"$fill",label:"$fill",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.3.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Populates null and missing field values within documents.",comment:'/**\n * sortBy: Syntax is the same as $sort, required if "method" is used in at least one output spec otherwise optional\n * partitionBy: Optional, default is a single partition. Specification is the same as _id in $group (same as partitionBy in window functions).\n * partitionByFields: Optional, set of fields that acts as a compound key to define each partition.\n * output - Required, object for each field to fill in. For a single field, can be a single object.\n * output.<field> - A field to be filled with value, if missing or null in the current document.\n */\n',snippet:"{\n sortBy: ${1:sortSpec},\n partitionBy: ${2:expression},\n partitionByFields: [${3:string}, ${4:string}, ...],\n output: {\n field1: {value: ${5:expression}},\n field2: {method: ${6:string}},\n ...\n }\n}"},{name:"$geoNear",value:"$geoNear",label:"$geoNear",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Returns documents based on proximity to a geospatial point.",comment:"/**\n * near: The point to search near.\n * distanceField: The calculated distance.\n * maxDistance: The maximum distance, in meters, documents can be before being excluded from results.\n * query: Limits results that match the query\n * includeLocs: Optional. Labels and includes the point used to match the document.\n * num: Optional. The maximum number of documents to return.\n * spherical: Defaults to false. Specifies whether to use spherical geometry.\n */\n",snippet:"{\n near: { type: 'Point', coordinates: [ ${1:number}, ${2:number} ] },\n distanceField: '${3:string}',\n maxDistance: ${4:number},\n query: {${5}},\n includeLocs: '${6}',\n num: ${7:number},\n spherical: ${8:boolean}\n}"},{name:"$graphLookup",value:"$graphLookup",label:"$graphLookup",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Performs a recursive search on a collection.",comment:"/**\n * from: The target collection.\n * startWith: Expression to start.\n * connectFromField: Field to connect.\n * connectToField: Field to connect to.\n * as: Name of the array field.\n * maxDepth: Optional max recursion depth.\n * depthField: Optional Name of the depth field.\n * restrictSearchWithMatch: Optional query.\n */\n",snippet:"{\n from: '${1:string}',\n startWith: ${2:expression},\n connectFromField: '${3:string}',\n connectToField: '${4:string}',\n as: '${5:string}',\n maxDepth: ${6:number},\n depthField: '${7:string}',\n restrictSearchWithMatch: {${8}}\n}"},{name:"$group",value:"$group",label:"$group",outputStage:!1,fullScan:!0,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Groups documents by a specified expression.",comment:"/**\n * _id: The id of the group.\n * fieldN: The first field name.\n */\n",snippet:"{\n _id: ${1:expression},\n ${2:fieldN}: {\n ${3:accumulatorN}: ${4:expressionN}\n }\n}"},{name:"$indexStats",value:"$indexStats",label:"$indexStats",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[],namespaces:[...a.ANY_NAMESPACE],description:"Returns statistics regarding the use of each index for the collection.",comment:"/**\n * No parameters.\n */\n",snippet:"{}"},{name:"$limit",value:"$limit",label:"$limit",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Limits the number of documents that flow into subsequent stages.",comment:"/**\n * Provide the number of documents to limit.\n */\n",snippet:"${1:number}"},{name:"$listLocalSessions",value:"$listLocalSessions",label:"$listLocalSessions",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"3.6.0",apiVersions:[1],namespaces:[a.DATABASE],description:"Lists the sessions cached in memory by the mongod or mongos instance.",comment:"/**\n * users: Optional list of users for which local sessions need to be returned.\n * allUsers: Optional boolean value to specify whether to return local sessions for all users or not.\n */\n",snippet:"{\n allUsers: ${1:false},\n users: [\n { user: '${2:string}', db: '${3:string}' }\n ]\n}"},{name:"$lookup",value:"$lookup",label:"$lookup",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Performs a join between two collections.",comment:"/**\n * from: The target collection.\n * localField: The local join field.\n * foreignField: The target join field.\n * as: The name for the results.\n * pipeline: Optional pipeline to run on the foreign collection.\n * let: Optional variables to use in the pipeline field stages.\n */\n",snippet:"{\n from: ${1:collection},\n localField: ${2:field},\n foreignField: ${3:field},\n as: ${4:result}\n}"},{name:"$match",value:"$match",label:"$match",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Filters the document stream to allow only matching documents to pass through to subsequent stages.",comment:"/**\n * query: The query in MQL.\n */\n",snippet:"{\n ${1:query}\n}"},{name:"$merge",value:"$merge",label:"$merge",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"4.1.11",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * into: The target collection.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: '${1:string}',\n on: '${2:string}',\n let: '${3:specification(s)}',\n whenMatched: '${4:string}',\n whenNotMatched: '${5:string}'\n}"},{name:"$merge",value:"$merge",label:"$merge",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ADL],meta:"stage",version:"4.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Merges the resulting documents into a collection, optionally overriding existing documents.",comment:"/**\n * atlas: Location to write the documents from the aggregation pipeline.\n * on: Fields to identify.\n * let: Defined variables.\n * whenMatched: Action for matching docs.\n * whenNotMatched: Action for non-matching docs.\n */\n",snippet:"{\n into: {\n atlas: {\n clusterName: '${1:atlasClusterName}',\n db: '${2:database}',\n coll: '${3:collection}',\n projectId: '${4:optionalAtlasProjectId}'\n }\n },\n on: '${5:identifier}',\n let: { ${6:specification(s)} },\n whenMatched: '${7:string}',\n whenNotMatched: '${8:string}'\n}"},{name:"$out",value:"$out",label:"$out",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Writes the result of a pipeline to a new or existing collection.",comment:"/**\n * Provide the name of the output database and collection.\n */\n",snippet:"{\n db: '${1:string}',\n coll: '${2:string}',\n /*\n timeseries: {\n timeField: '${3:field}',\n bucketMaxSpanSeconds: '${4:number}',\n granularity: '${5:granularity}'\n }\n */\n}"},{name:"$out",value:"$out",label:"$out",outputStage:!0,fullScan:!1,firstStage:!1,score:1,env:[r.ADL],meta:"stage",version:"4.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Writes the result of a pipeline to an Atlas cluster, S3 bucket, or Azure Blob Storage.",comment:"/**\n * Use any one of the following:\n * s3: Parameters to save the data to S3.\n * atlas: Parameters to save the data to Atlas. Example:\n * {\n * atlas: {\n * db: 'string',\n * coll: 'string',\n * projectId: 'string',\n * clusterName: 'string'\n * }\n * },\n * azure: Parameters to save the data to Azure. Example:\n * {\n * azure: {\n * serviceURL: 'string',\n * containerName: 'string',\n * region: 'string,\n * filename: 'string',\n * format: {\n * name: 'string',\n * maxFileSize: 'string',\n * maxRowGroupSize: 'string',\n * columnCompression: 'string'\n * },\n * errorMode: 'string'\n * }\n * }\n */\n",snippet:"{\n s3: {\n bucket: '${1:string}',\n region: '${2:string}',\n filename: '${3:string}',\n format: {\n name: '${4:string}',\n maxFileSize: '${5:bytes}',\n maxRowGroupSize: '${6:string}',\n columnCompression: '${7:string}'\n },\n errorMode: '${8:string}'\n }\n}"},{name:"$project",value:"$project",label:"$project",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields.",comment:"/**\n * specifications: The fields to\n * include or exclude.\n */\n",snippet:"{\n ${1:specification(s)}\n}"},{name:"$rankFusion",value:"$rankFusion",label:"$rankFusion",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"8.0.14",apiVersions:[],namespaces:[a.COLLECTION],description:"Combines multiple pipelines using reciprocal rank fusion to create hybrid search results.",comment:'/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be a Ranked Selection Pipeline operating on the same collection. Minimum of one pipeline.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information in {$meta: "scoreDetails"} for debugging and tuning.\n */\n',snippet:"{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n }\n },\n combination: {\n weights: {\n ${6:searchPipeline}: ${7:number},\n ${8:vectorPipeline}: ${9:number}\n }\n },\n scoreDetails: ${10:false}\n}"},{name:"$redact",value:"$redact",label:"$redact",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.6.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Restricts the content for each document based on information stored in the documents themselves",comment:"/**\n * expression: Any valid expression that\n * evaluates to $$DESCEND, $$PRUNE, or $$KEEP.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$replaceRoot",value:"$replaceRoot",label:"$replaceRoot",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newRoot: ${1:replacementDocument}\n}"},{name:"$replaceWith",value:"$replaceWith",label:"$replaceWith",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Replaces a document with the specified embedded document.",comment:"/**\n * replacementDocument: A document or string.\n */\n",snippet:"{\n newWith: ${1:replacementDocument}\n}"},{name:"$sample",value:"$sample",label:"$sample",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.2.0",apiVersions:[1],namespaces:[...a.ANY_COLLECTION_NAMESPACE],description:"Randomly selects the specified number of documents from its input.",comment:"/**\n * size: The number of documents to sample.\n */\n",snippet:"{\n size: ${1:number}\n}"},{name:"$scoreFusion",value:"$scoreFusion",label:"$scoreFusion",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"8.2.0",apiVersions:[],namespaces:[a.COLLECTION],description:"Combines multiple pipelines using relative score fusion to create hybrid search results.",comment:"/**\n * input.pipelines: Required. Map from name to input pipeline. Each pipeline must be operating on the same collection. Minimum of one pipeline.\n * input.normalization: Required. Normalizes the score to the range 0 to 1 before combining the results. Value can be none, sigmoid or minMaxScaler.\n * combination.weights: Optional. Map from pipeline name to numbers (non-negative). If unspecified, default weight is 1 for each pipeline.\n * combination.method: Optional. Specifies method for combining scores. Value can be avg or expression. Default is avg.\n * combination.expression: Optional. This is the custom expression that is used when combination.method is set to expression.\n * scoreDetails: Optional. Default false. Set to true to include detailed scoring information.\n */\n",snippet:"{\n input: {\n pipelines: {\n ${1:searchPipeline}: [\n {$search: {${2:searchStage}}},\n {$limit: ${3:limit}}\n ],\n ${4:vectorPipeline}: [\n {$vectorSearch: {${5:vectorSearchStage}}}\n ]\n },\n normalization: '${6:none|sigmoid|minMaxScaler}'\n },\n combination: {\n weights: {\n ${7:searchPipeline}: ${8:number},\n ${9:vectorPipeline}: ${10:number}\n },\n method: '${11:avg|expression}',\n expression: '${12:expression}'\n },\n scoreDetails: ${13:false}\n}"},{name:"$search",value:"$search",label:"$search",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"4.1.11",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a full-text search on the specified field(s).",comment:"/**\n * index: The name of the Search index.\n * text: Analyzed search, with required fields of query and path, the analyzed field(s) to search. Use matchCriteria to match 'any' or 'all' query terms.\n * compound: Combines ops.\n * span: Find in text field regions.\n * exists: Test for presence of a field.\n * near: Find near number or date.\n * range: Find in numeric or date range.\n */\n",snippet:"{\n index: '${1:string}',\n text: {\n query: '${2:string}',\n path: '${3:string}',\n matchCriteria: '${4:any}',\n }\n}"},{name:"$searchMeta",value:"$searchMeta",label:"$searchMeta",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS],meta:"stage",version:"4.4.9",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query.",comment:"/**\n * index: The name of the Search index.\n * count: The count of the results.\n * facet: {\n * operator: Analyzed search, with required fields of query and path, can either be replaced with the name of a valid operator.\n * facets: {\n * stringFacet: Narrows search results based on unique string values, with required fields of type and path.\n * numberFacet: Narrows search results by breaking them up into separate ranges of numbers, with required fields of type, path, and boundaries.\n * dateFacet: Narrows search results by breaking them up into separate ranges of dates, with required fields of type, path, and boundaries.\n * }\n * }\n */\n",snippet:"{\n index: ${1:string},\n facet: {\n operator: {\n text: {\n query: ${2:string},\n path: ${3:string}\n }\n },\n facets: {\n ${4:stringFacet}: {\n type: ${5:string},\n path: ${6:string},\n numBuckets: ${7:integer}\n },\n numberFacet: {\n type: 'number',\n path: ${8:string},\n boundaries: [${9:lowerbound}, ${10:upperbound}, ...],\n default: ${11:string}\n }\n }\n }\n}"},{name:"$set",value:"$set",label:"$set",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Adds new fields to documents. $set outputs documents that contain all existing fields from the input documents and newly added fields.",comment:"/**\n * field: The field name\n * expression: The expression.\n */\n",snippet:"{\n ${1:field}: ${2:expression}\n}"},{name:"$setWindowFields",value:"$setWindowFields",label:"$setWindowFields",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"5.0.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Capable of partitioning incoming data, and can apply one or more functions to defined windows within each partition.",comment:"/**\n * partitionBy: partitioning of data.\n * sortBy: fields to sort by.\n * output: {\n * path: {\n * function: The window function to compute over the given window.\n * window: {\n * documents: A number of documents before and after the current document.\n * range: A range of possible values around the value in the current document's sortBy field.\n * unit: Specifies the units for the window bounds.\n * }\n * }\n * }\n */\n",snippet:"{\n partitionBy: ${1:expression},\n sortBy: ${2:sortSpec},\n output: {\n ${3:path}: {\n ${4:function}: ${5:functionArgs},\n window: {\n documents: [${6:lowerbound}, ${7:upperbound}],\n range: [${8:lowerbound}, ${9:upperbound}],\n unit: ${10:string}\n }\n },\n ${11:path2}: ...\n }\n}"},{name:"$skip",value:"$skip",label:"$skip",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Skips a specified number of documents before advancing to the next stage.",comment:"/**\n * Provide the number of documents to skip.\n */\n",snippet:"${1:number}"},{name:"$sort",value:"$sort",label:"$sort",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Reorders the document stream by a specified sort key and direction.",comment:"/**\n * Provide any number of field/order pairs.\n */\n",snippet:"{\n ${1:field1}: ${2:sortOrder}\n}"},{name:"$sortByCount",value:"$sortByCount",label:"$sortByCount",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"3.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group.",comment:"/**\n * expression: Grouping expression or string.\n */\n",snippet:"{\n ${1:expression}\n}"},{name:"$unionWith",value:"$unionWith",label:"$unionWith",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.4.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Perform a union with a pipeline on another collection.",comment:"/**\n * coll: The collection name.\n * pipeline: The pipeline on the other collection.\n */\n",snippet:"{\n coll: '${1:coll}',\n pipeline: [${2:pipeline}]\n}"},{name:"$unset",value:"$unset",label:"$unset",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"4.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Excludes fields from the result document.",comment:"/**\n * Provide the field name to exclude.\n * To exclude multiple fields, pass the field names in an array.\n */\n",snippet:"'${1:string}'"},{name:"$unwind",value:"$unwind",label:"$unwind",outputStage:!1,fullScan:!1,firstStage:!1,score:1,env:[r.ATLAS,r.ADL,r.ON_PREM],meta:"stage",version:"2.2.0",apiVersions:[1],namespaces:[...a.ANY_NAMESPACE],description:"Outputs a new document for each element in a specified array. ",comment:"/**\n * path: Path to the array field.\n * includeArrayIndex: Optional name for index.\n * preserveNullAndEmptyArrays: Optional\n * toggle to unwind null and empty values.\n */\n",snippet:"{\n path: ${1:path},\n includeArrayIndex: '${2:string}',\n preserveNullAndEmptyArrays: ${3:boolean}\n}"},{name:"$vectorSearch",value:"$vectorSearch",label:"$vectorSearch",outputStage:!1,fullScan:!1,firstStage:!0,score:1,env:[r.ATLAS],meta:"stage",version:">=6.0.10 <7.0.0 || >=7.0.2",apiVersions:[],namespaces:[a.COLLECTION,a.VIEW],description:"Performs a kNN search on embeddings in the specified field(s)",comment:"/**\n * queryVector: Array of numbers of BSON types `int` or `double` that represent the query vector. The array size must match the number of vector dimensions specified in the index for the field. (Required)\n * path: The field to search. (Required)\n * numCandidates: Number of nearest neighbors to use during the search. You can specify a number higher than the number of documents to return (`limit`) to increase accuracy. (Required)\n * index: Name of the Atlas Search index to use. (Required)\n * limit: Number (of type `int` only) of documents to return in the results. (Required)\n * filter: Any MongoDB Query Language (MQL) match expression that compares an indexed field with a boolean, number (not decimals), or string to use as a prefilter. (Optional)\n * exact: Choose between false for ANN (Approximate Nearest Neighbor) and true for ENN (Exact Nearest Neighbor). Defaults to false. (Optional)\n */\n",snippet:"{\n queryVector: [${1:dimension1}, ${2:dimension2}, ...],\n path: ${3:string},\n numCandidates: ${4:numCandidates},\n index: ${5:string},\n limit: ${6:limit},\n filter: {${7:expression}},\n exact: ${8:boolean}\n}"}];t.STAGE_OPERATORS=s;const i=s.map((e=>e.name));t.STAGE_OPERATOR_NAMES=i;const o=s.filter((e=>e.outputStage));t.OUT_STAGES=o;const l=s.filter((e=>e.fullScan));t.FULL_SCAN_STAGES=l;const c=s.filter((e=>e.firstStage));t.REQUIRED_AS_FIRST_STAGE=c}};