@point-hub/papi 0.1.8 → 0.1.10
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/lib/index.js +3 -3
- package/lib/src/index.d.ts +2 -1
- package/lib/src/index.d.ts.map +1 -1
- package/lib/src/interfaces/types.d.ts +81 -0
- package/lib/src/interfaces/types.d.ts.map +1 -1
- package/package.json +2 -1
- package/lib/src/app.d.ts +0 -3
- package/lib/src/app.d.ts.map +0 -1
- package/lib/src/app.spec.d.ts +0 -2
- package/lib/src/app.spec.d.ts.map +0 -1
- package/lib/src/console/commands/make-command/index.command.d.ts +0 -6
- package/lib/src/console/commands/make-command/index.spec.d.ts +0 -2
- package/lib/src/console/commands/make-middleware/index.command.d.ts +0 -8
- package/lib/src/console/commands/make-middleware/index.spec.d.ts +0 -2
- package/lib/src/console/index.d.ts +0 -13
- package/lib/src/console/index.spec.d.ts +0 -2
- package/lib/src/database/connection.d.ts +0 -33
- package/lib/src/database/mongodb/connection.d.ts +0 -38
- package/lib/src/database/mongodb/mongodb-error-handler.d.ts +0 -10
- package/lib/src/database/mongodb/mongodb-error-handler.d.ts.map +0 -1
- package/lib/src/database/mongodb/mongodb-helper.d.ts +0 -36
- package/lib/src/database/mongodb/mongodb-querystring.d.ts +0 -82
- package/lib/src/database/mongodb/mongodb-querystring.d.ts.map +0 -1
- package/lib/src/database/mongodb/mongodb-querystring.spec.d.ts +0 -2
- package/lib/src/database/mongodb/mongodb-querystring.spec.d.ts.map +0 -1
- package/lib/src/server.d.ts +0 -16
- package/lib/src/server.d.ts.map +0 -1
- package/lib/src/server.spec.d.ts +0 -2
- package/lib/stub/command/index.command.d.ts +0 -6
- package/lib/stub/command/index.command.d.ts.map +0 -1
- package/lib/stub/command/index.spec.d.ts +0 -2
- package/lib/stub/command/index.spec.d.ts.map +0 -1
- package/lib/stub/middleware/configurable.middleware.d.ts +0 -3
- package/lib/stub/middleware/configurable.middleware.d.ts.map +0 -1
- package/lib/stub/middleware/configurable.spec.d.ts +0 -2
- package/lib/stub/middleware/configurable.spec.d.ts.map +0 -1
- package/lib/stub/middleware/new.middleware.d.ts +0 -3
- package/lib/stub/middleware/new.middleware.d.ts.map +0 -1
- package/lib/stub/middleware/new.spec.d.ts +0 -2
- package/lib/stub/middleware/new.spec.d.ts.map +0 -1
package/lib/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var pB=Object.create;var{defineProperty:kK,getPrototypeOf:lB,getOwnPropertyNames:aB}=Object;var iB=Object.prototype.hasOwnProperty;var $4=(J,Z,$)=>{$=J!=null?pB(lB(J)):{};const X=Z||!J||!J.__esModule?kK($,"default",{value:J,enumerable:!0}):$;for(let Y of aB(J))if(!iB.call(X,Y))kK(X,Y,{get:()=>J[Y],enumerable:!0});return X};var V=(J,Z)=>()=>(Z||J((Z={exports:{}}).exports,Z),Z.exports);var h=(J)=>{return import.meta.require(J)};var U$=V((ut,yK)=>{var r7=function(J,{argv:Z=process.argv.slice(2),permissive:$=!1,stopAtPositional:X=!1}={}){if(!J)throw new x0("argument specification object is required","ARG_CONFIG_NO_SPEC");const Y={_:[]},Q={},K={};for(let G of Object.keys(J)){if(!G)throw new x0("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(G[0]!=="-")throw new x0(`argument key must start with '-' but found: '${G}'`,"ARG_CONFIG_NONOPT_KEY");if(G.length===1)throw new x0(`argument key must have a name; singular '-' keys are not allowed: ${G}`,"ARG_CONFIG_NONAME_KEY");if(typeof J[G]==="string"){Q[G]=J[G];continue}let F=J[G],q=!1;if(Array.isArray(F)&&F.length===1&&typeof F[0]==="function"){const[W]=F;F=(H,U,j=[])=>{return j.push(W(H,U,j[j.length-1])),j},q=W===Boolean||W[z$]===!0}else if(typeof F==="function")q=F===Boolean||F[z$]===!0;else throw new x0(`type missing or not a function or valid array type: ${G}`,"ARG_CONFIG_VAD_TYPE");if(G[1]!=="-"&&G.length>2)throw new x0(`short argument keys (with a single hyphen) must have only one character: ${G}`,"ARG_CONFIG_SHORTOPT_TOOLONG");K[G]=[F,q]}for(let G=0,F=Z.length;G<F;G++){const q=Z[G];if(X&&Y._.length>0){Y._=Y._.concat(Z.slice(G));break}if(q==="--"){Y._=Y._.concat(Z.slice(G+1));break}if(q.length>1&&q[0]==="-"){const W=q[1]==="-"||q.length===2?[q]:q.slice(1).split("").map((H)=>`-${H}`);for(let H=0;H<W.length;H++){const U=W[H],[j,z]=U[1]==="-"?U.split(/=(.*)/,2):[U,void 0];let A=j;while(A in Q)A=Q[A];if(!(A in K))if($){Y._.push(U);continue}else throw new x0(`unknown or unexpected option: ${j}`,"ARG_UNKNOWN_OPTION");const[T,w]=K[A];if(!w&&H+1<W.length)throw new x0(`option requires argument (but was followed by another short argument): ${j}`,"ARG_MISSING_REQUIRED_SHORTARG");if(w)Y[A]=T(!0,A,Y[A]);else if(z===void 0){if(Z.length<G+2||Z[G+1].length>1&&Z[G+1][0]==="-"&&!(Z[G+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(T===Number||typeof BigInt!=="undefined"&&T===BigInt))){const N=j===A?"":` (alias for ${A})`;throw new x0(`option requires argument: ${j}${N}`,"ARG_MISSING_REQUIRED_LONGARG")}Y[A]=T(Z[G+1],A,Y[A]),++G}else Y[A]=T(z,A,Y[A])}}else Y._.push(q)}return Y},z$=Symbol("arg flag");class x0 extends Error{constructor(J,Z){super(J);this.name="ArgError",this.code=Z,Object.setPrototypeOf(this,x0.prototype)}}r7.flag=(J)=>{return J[z$]=!0,J};r7.COUNT=r7.flag((J,Z,$)=>($||0)+1);r7.ArgError=x0;yK.exports=r7});var y9=V((Br,nK)=>{var j$=[],sK=0,s1=(J,Z)=>{if(sK>=Z)j$.push(J)};s1.WARN=1;s1.INFO=2;s1.DEBUG=3;s1.reset=()=>{j$=[]};s1.setDebugLevel=(J)=>{sK=J};s1.warn=(J)=>s1(J,s1.WARN);s1.info=(J)=>s1(J,s1.INFO);s1.debug=(J)=>s1(J,s1.DEBUG);s1.debugMessages=()=>j$;nK.exports=s1});var rK=V((Er,tK)=>{tK.exports=({onlyFirst:J=!1}={})=>{const Z=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(Z,J?void 0:"g")}});var eK=V((Cr,oK)=>{var YE=rK();oK.exports=(J)=>typeof J==="string"?J.replace(YE(),""):J});var ZG=V((hr,A$)=>{var JG=(J)=>{if(Number.isNaN(J))return!1;if(J>=4352&&(J<=4447||J===9001||J===9002||11904<=J&&J<=12871&&J!==12351||12880<=J&&J<=19903||19968<=J&&J<=42182||43360<=J&&J<=43388||44032<=J&&J<=55203||63744<=J&&J<=64255||65040<=J&&J<=65049||65072<=J&&J<=65131||65281<=J&&J<=65376||65504<=J&&J<=65510||110592<=J&&J<=110593||127488<=J&&J<=127569||131072<=J&&J<=262141))return!0;return!1};A$.exports=JG;A$.exports.default=JG});var XG=V((Sr,$G)=>{$G.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var QG=V((Or,L$)=>{var QE=eK(),KE=ZG(),GE=XG(),YG=(J)=>{if(typeof J!=="string"||J.length===0)return 0;if(J=QE(J),J.length===0)return 0;J=J.replace(GE()," ");let Z=0;for(let $=0;$<J.length;$++){const X=J.codePointAt($);if(X<=31||X>=127&&X<=159)continue;if(X>=768&&X<=879)continue;if(X>65535)$++;Z+=KE(X)?2:1}return Z};L$.exports=YG;L$.exports.default=YG});var w$=V((kr,qG)=>{var _9=function(J){return J?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g},D6=function(J){let Z=_9();return(""+J).replace(Z,"").split("\n").reduce(function(Y,Q){return KG(Q)>Y?KG(Q):Y},0)},o7=function(J,Z){return Array(Z+1).join(J)},FE=function(J,Z,$,X){let Y=D6(J);if(Z+1>=Y){let Q=Z-Y;switch(X){case"right":{J=o7($,Q)+J;break}case"center":{let K=Math.ceil(Q/2),G=Q-K;J=o7($,G)+J+o7($,K);break}default:{J=J+o7($,Q);break}}}return J},e7=function(J,Z,$){Z="\x1B["+Z+"m",$="\x1B["+$+"m",u4[Z]={set:J,to:!0},u4[$]={set:J,to:!1},u4[J]={on:Z,off:$}},GG=function(J,Z){let $=Z[1]?parseInt(Z[1].split(";")[0]):0;if($>=30&&$<=39||$>=90&&$<=97){J.lastForegroundAdded=Z[0];return}if($>=40&&$<=49||$>=100&&$<=107){J.lastBackgroundAdded=Z[0];return}if($===0){for(let Y in J)if(Object.prototype.hasOwnProperty.call(J,Y))delete J[Y];return}let X=u4[Z[0]];if(X)J[X.set]=X.to},qE=function(J){let Z=_9(!0),$=Z.exec(J),X={};while($!==null)GG(X,$),$=Z.exec(J);return X},FG=function(J,Z){let{lastBackgroundAdded:$,lastForegroundAdded:X}=J;if(delete J.lastBackgroundAdded,delete J.lastForegroundAdded,Object.keys(J).forEach(function(Y){if(J[Y])Z+=u4[Y].off}),$&&$!="\x1B[49m")Z+="\x1B[49m";if(X&&X!="\x1B[39m")Z+="\x1B[39m";return Z},WE=function(J,Z){let{lastBackgroundAdded:$,lastForegroundAdded:X}=J;if(delete J.lastBackgroundAdded,delete J.lastForegroundAdded,Object.keys(J).forEach(function(Y){if(J[Y])Z=u4[Y].on+Z}),$&&$!="\x1B[49m")Z=$+Z;if(X&&X!="\x1B[39m")Z=X+Z;return Z},HE=function(J,Z){if(J.length===D6(J))return J.substr(0,Z);while(D6(J)>Z)J=J.slice(0,-1);return J},VE=function(J,Z){let $=_9(!0),X=J.split(_9()),Y=0,Q=0,K="",G,F={};while(Q<Z){G=$.exec(J);let q=X[Y];if(Y++,Q+D6(q)>Z)q=HE(q,Z-Q);if(K+=q,Q+=D6(q),Q<Z){if(!G)break;K+=G[0],GG(F,G)}}return FG(F,K)},zE=function(J,Z,$){if($=$||"\u2026",D6(J)<=Z)return J;return Z-=D6($),VE(J,Z)+$},UE=function(){return{chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}},ME=function(J,Z){J=J||{},Z=Z||UE();let $=Object.assign({},Z,J);return $.chars=Object.assign({},Z.chars,J.chars),$.style=Object.assign({},Z.style,J.style),$},jE=function(J,Z){let $=[],X=Z.split(/(\s+)/g),Y=[],Q=0,K;for(let G=0;G<X.length;G+=2){let F=X[G],q=Q+D6(F);if(Q>0&&K)q+=K.length;if(q>J){if(Q!==0)$.push(Y.join(""));Y=[F],Q=D6(F)}else Y.push(K||"",F),Q=q;K=X[G+1]}if(Q)$.push(Y.join(""));return $},AE=function(J,Z){let $=[],X="";function Y(K,G){if(X.length&&G)X+=G;X+=K;while(X.length>J)$.push(X.slice(0,J)),X=X.slice(J)}let Q=Z.split(/(\s+)/g);for(let K=0;K<Q.length;K+=2)Y(Q[K],K&&Q[K-1]);if(X.length)$.push(X);return $},LE=function(J,Z,$=!0){let X=[];Z=Z.split("\n");const Y=$?jE:AE;for(let Q=0;Q<Z.length;Q++)X.push.apply(X,Y(J,Z[Q]));return X},wE=function(J){let Z={},$=[];for(let X=0;X<J.length;X++){let Y=WE(Z,J[X]);Z=qE(Y);let Q=Object.assign({},Z);$.push(FG(Q,Y))}return $},RE=function(J,Z){return["\x1B]","8",";",";",J||Z,"\x07",Z,"\x1B]","8",";",";","\x07"].join("")},KG=QG(),u4={};e7("bold",1,22);e7("italics",3,23);e7("underline",4,24);e7("inverse",7,27);e7("strikethrough",9,29);qG.exports={strlen:D6,repeat:o7,pad:FE,truncate:zE,mergeOptions:ME,wordWrap:LE,colorizeLines:wE,hyperlink:RE}});var zG=V((yr,VG)=>{var HG={};VG.exports=HG;var WG={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(WG).forEach(function(J){var Z=WG[J],$=HG[J]=[];$.open="\x1B["+Z[0]+"m",$.close="\x1B["+Z[1]+"m"})});var MG=V((_r,UG)=>{UG.exports=function(J,Z){Z=Z||process.argv;var $=Z.indexOf("--"),X=/^-{1,2}/.test(J)?"":"--",Y=Z.indexOf(X+J);return Y!==-1&&($===-1?!0:Y<$)}});var AG=V((fr,jG)=>{var PE=function(J){if(J===0)return!1;return{level:J,hasBasic:!0,has256:J>=2,has16m:J>=3}},TE=function(J){if(d4===!1)return 0;if(Z6("color=16m")||Z6("color=full")||Z6("color=truecolor"))return 3;if(Z6("color=256"))return 2;if(J&&!J.isTTY&&d4!==!0)return 0;var Z=d4?1:0;if(process.platform==="win32"){var $=DE.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number($[0])>=10&&Number($[2])>=10586)return Number($[2])>=14931?3:2;return 1}if("CI"in X0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(Y){return Y in X0})||X0.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in X0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X0.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in X0){var X=parseInt((X0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X0.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(X0.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(X0.TERM))return 1;if("COLORTERM"in X0)return 1;if(X0.TERM==="dumb")return Z;return Z},R$=function(J){var Z=TE(J);return PE(Z)},DE=import.meta.require("os"),Z6=MG(),X0=process.env,d4=void 0;if(Z6("no-color")||Z6("no-colors")||Z6("color=false"))d4=!1;else if(Z6("color")||Z6("colors")||Z6("color=true")||Z6("color=always"))d4=!0;if("FORCE_COLOR"in X0)d4=X0.FORCE_COLOR.length===0||parseInt(X0.FORCE_COLOR,10)!==0;jG.exports={supportsColor:R$,stdout:R$(process.stdout),stderr:R$(process.stderr)}});var wG=V((vr,LG)=>{LG.exports=function J(Z,$){var X="";Z=Z||"Run the trap, drop the bass",Z=Z.split("");var Y={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return Z.forEach(function(Q){Q=Q.toLowerCase();var K=Y[Q]||[" "],G=Math.floor(Math.random()*K.length);if(typeof Y[Q]!=="undefined")X+=Y[Q][G];else X+=Q}),X}});var DG=V((xr,RG)=>{RG.exports=function J(Z,$){Z=Z||" he is here ";var X={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},Y=[].concat(X.up,X.down,X.mid);function Q(F){var q=Math.floor(Math.random()*F);return q}function K(F){var q=!1;return Y.filter(function(W){q=W===F}),q}function G(F,q){var W="",H,U;q=q||{},q.up=typeof q.up!=="undefined"?q.up:!0,q.mid=typeof q.mid!=="undefined"?q.mid:!0,q.down=typeof q.down!=="undefined"?q.down:!0,q.size=typeof q.size!=="undefined"?q.size:"maxi",F=F.split("");for(U in F){if(K(U))continue;switch(W=W+F[U],H={up:0,down:0,mid:0},q.size){case"mini":H.up=Q(8),H.mid=Q(2),H.down=Q(8);break;case"maxi":H.up=Q(16)+3,H.mid=Q(4)+1,H.down=Q(64)+3;break;default:H.up=Q(8)+1,H.mid=Q(6)/2,H.down=Q(8)+1;break}var j=["up","mid","down"];for(var z in j){var A=j[z];for(var T=0;T<=H[A];T++)if(q[A])W=W+X[A][Q(X[A].length)]}}return W}return G(Z,$)}});var TG=V((br,PG)=>{PG.exports=function(J){return function(Z,$,X){if(Z===" ")return Z;switch($%3){case 0:return J.red(Z);case 1:return J.white(Z);case 2:return J.blue(Z)}}}});var NG=V((gr,IG)=>{IG.exports=function(J){return function(Z,$,X){return $%2===0?Z:J.inverse(Z)}}});var EG=V((mr,BG)=>{BG.exports=function(J){var Z=["red","yellow","green","blue","magenta"];return function($,X,Y){if($===" ")return $;else return J[Z[X++%Z.length]]($)}}});var hG=V((ur,CG)=>{CG.exports=function(J){var Z=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function($,X,Y){return $===" "?$:J[Z[Math.round(Math.random()*(Z.length-2))]]($)}}});var fG=V((cr,_G)=>{var kG=function(J){var Z=function $(){return hE.apply($,arguments)};return Z._styles=J,Z.__proto__=CE,Z},hE=function(){var J=Array.prototype.slice.call(arguments),Z=J.map(function(K){if(K!=null&&K.constructor===String)return K;else return IE.inspect(K)}).join(" ");if(!d.enabled||!Z)return Z;var $=Z.indexOf("\n")!=-1,X=this._styles,Y=X.length;while(Y--){var Q=X4[X[Y]];if(Z=Q.open+Z.replace(Q.closeRe,Q.open)+Q.close,$)Z=Z.replace(NE,function(K){return Q.close+K+Q.open})}return Z},SE=function(){var J={};return Object.keys(yG).forEach(function(Z){J[Z]={get:function(){return kG([Z])}}}),J},d={};_G.exports=d;d.themes={};var IE=import.meta.require("util"),X4=d.styles=zG(),OG=Object.defineProperties,NE=new RegExp(/[\r\n]+/g);d.supportsColor=AG().supportsColor;if(typeof d.enabled==="undefined")d.enabled=d.supportsColor()!==!1;d.enable=function(){d.enabled=!0};d.disable=function(){d.enabled=!1};d.stripColors=d.strip=function(J){return(""+J).replace(/\x1B\[\d+m/g,"")};var dr=d.stylize=function J(Z,$){if(!d.enabled)return Z+"";var X=X4[$];if(!X&&$ in d)return d[$](Z);return X.open+Z+X.close},BE=/[|\\{}()[\]^$+*?.]/g,EE=function(J){if(typeof J!=="string")throw new TypeError("Expected a string");return J.replace(BE,"\\$&")},yG=function(){var J={};return X4.grey=X4.gray,Object.keys(X4).forEach(function(Z){X4[Z].closeRe=new RegExp(EE(X4[Z].close),"g"),J[Z]={get:function(){return kG(this._styles.concat(Z))}}}),J}(),CE=OG(function J(){},yG);d.setTheme=function(J){if(typeof J==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller\'s) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + \'/../themes/generic-logging.js\'); The new syntax looks like colors.setTheme(require(__dirname + \'/../themes/generic-logging.js\'));");return}for(var Z in J)(function($){d[$]=function(X){if(typeof J[$]==="object"){var Y=X;for(var Q in J[$])Y=d[J[$][Q]](Y);return Y}return d[J[$]](X)}})(Z)};var OE=function J(Z,$){var X=$.split("");return X=X.map(Z),X.join("")};d.trap=wG();d.zalgo=DG();d.maps={};d.maps.america=TG()(d);d.maps.zebra=NG()(d);d.maps.rainbow=EG()(d);d.maps.random=hG()(d);for(SG in d.maps)(function(J){d[J]=function(Z){return OE(d.maps[J],Z)}})(SG);var SG;OG(d,SE())});var xG=V((pr,vG)=>{var kE=fG();vG.exports=kE});var uG=V((lr,x9)=>{var bG=function(...J){return J.filter((Z)=>Z!==void 0&&Z!==null).shift()},D$=function(J,Z,$,X){let Y=$.split("-");if(Y.length>1)Y[1]=Y[1].charAt(0).toUpperCase()+Y[1].substr(1),Y=Y.join(""),X[Y]=bG(J[Y],J[$],Z[Y],Z[$]);else X[$]=bG(J[$],Z[$])},_E=function(J,Z,$){let X=J[Z];for(let Y=1;Y<$;Y++)X+=1+J[Z+Y];return X},gG=function(J,Z){return J+Z+1},{info:yE,debug:mG}=y9(),N0=w$();class J5{constructor(J){this.setOptions(J),this.x=null,this.y=null}setOptions(J){if(["boolean","number","string"].indexOf(typeof J)!==-1)J={content:""+J};J=J||{},this.options=J;let Z=J.content;if(["boolean","number","string"].indexOf(typeof Z)!==-1)this.content=String(Z);else if(!Z)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof Z);if(this.colSpan=J.colSpan||1,this.rowSpan=J.rowSpan||1,this.options.href)Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(J,Z){this.cells=Z;let $=this.options.chars||{},X=J.chars,Y=this.chars={};fE.forEach(function(G){D$($,X,G,Y)}),this.truncate=this.options.truncate||J.truncate;let Q=this.options.style=this.options.style||{},K=J.style;D$(Q,K,"padding-left",this),D$(Q,K,"padding-right",this),this.head=Q.head||K.head,this.border=Q.border||K.border,this.fixedWidth=J.colWidths[this.x],this.lines=this.computeLines(J),this.desiredWidth=N0.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(J){const Z=J.wordWrap||J.textWrap,{wordWrap:$=Z}=this.options;if(this.fixedWidth&&$){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let Q=1;while(Q<this.colSpan)this.fixedWidth+=J.colWidths[this.x+Q],Q++}const{wrapOnWordBoundary:X=!0}=J,{wrapOnWordBoundary:Y=X}=this.options;return this.wrapLines(N0.wordWrap(this.fixedWidth,this.content,Y))}return this.wrapLines(this.content.split("\n"))}wrapLines(J){const Z=N0.colorizeLines(J);if(this.href)return Z.map(($)=>N0.hyperlink(this.href,$));return Z}init(J){let Z=this.x,$=this.y;this.widths=J.colWidths.slice(Z,Z+this.colSpan),this.heights=J.rowHeights.slice($,$+this.rowSpan),this.width=this.widths.reduce(gG,-1),this.height=this.heights.reduce(gG,-1),this.hAlign=this.options.hAlign||J.colAligns[Z],this.vAlign=this.options.vAlign||J.rowAligns[$],this.drawRight=Z+this.colSpan==J.colWidths.length}draw(J,Z){if(J=="top")return this.drawTop(this.drawRight);if(J=="bottom")return this.drawBottom(this.drawRight);let $=N0.truncate(this.content,10,this.truncate);if(!J)yE(`${this.y}-${this.x}: ${this.rowSpan-J}x${this.colSpan} Cell ${$}`);let X=Math.max(this.height-this.lines.length,0),Y;switch(this.vAlign){case"center":Y=Math.ceil(X/2);break;case"bottom":Y=X;break;default:Y=0}if(J<Y||J>=Y+this.lines.length)return this.drawEmpty(this.drawRight,Z);let Q=this.lines.length>this.height&&J+1>=this.height;return this.drawLine(J-Y,this.drawRight,Q,Z)}drawTop(J){let Z=[];if(this.cells)this.widths.forEach(function($,X){Z.push(this._topLeftChar(X)),Z.push(N0.repeat(this.chars[this.y==0?"top":"mid"],$))},this);else Z.push(this._topLeftChar(0)),Z.push(N0.repeat(this.chars[this.y==0?"top":"mid"],this.width));if(J)Z.push(this.chars[this.y==0?"topRight":"rightMid"]);return this.wrapWithStyleColors("border",Z.join(""))}_topLeftChar(J){let Z=this.x+J,$;if(this.y==0)$=Z==0?"topLeft":J==0?"topMid":"top";else if(Z==0)$="leftMid";else if($=J==0?"midMid":"bottomMid",this.cells){if(this.cells[this.y-1][Z]instanceof J5.ColSpanCell)$=J==0?"topMid":"mid";if(J==0){let Y=1;while(this.cells[this.y][Z-Y]instanceof J5.ColSpanCell)Y++;if(this.cells[this.y][Z-Y]instanceof J5.RowSpanCell)$="leftMid"}}return this.chars[$]}wrapWithStyleColors(J,Z){if(this[J]&&this[J].length)try{let $=xG();for(let X=this[J].length-1;X>=0;X--)$=$[this[J][X]];return $(Z)}catch($){return Z}else return Z}drawLine(J,Z,$,X){let Y=this.chars[this.x==0?"left":"middle"];if(this.x&&X&&this.cells){let H=this.cells[this.y+X][this.x-1];while(H instanceof f9)H=this.cells[H.y][H.x-1];if(!(H instanceof v9))Y=this.chars.rightMid}let Q=N0.repeat(" ",this.paddingLeft),K=Z?this.chars.right:"",G=N0.repeat(" ",this.paddingRight),F=this.lines[J],q=this.width-(this.paddingLeft+this.paddingRight);if($)F+=this.truncate||"\u2026";let W=N0.truncate(F,q,this.truncate);return W=N0.pad(W,q," ",this.hAlign),W=Q+W+G,this.stylizeLine(Y,W,K)}stylizeLine(J,Z,$){if(J=this.wrapWithStyleColors("border",J),$=this.wrapWithStyleColors("border",$),this.y===0)Z=this.wrapWithStyleColors("head",Z);return J+Z+$}drawBottom(J){let Z=this.chars[this.x==0?"bottomLeft":"bottomMid"],$=N0.repeat(this.chars.bottom,this.width),X=J?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",Z+$+X)}drawEmpty(J,Z){let $=this.chars[this.x==0?"left":"middle"];if(this.x&&Z&&this.cells){let Q=this.cells[this.y+Z][this.x-1];while(Q instanceof f9)Q=this.cells[Q.y][Q.x-1];if(!(Q instanceof v9))$=this.chars.rightMid}let X=J?this.chars.right:"",Y=N0.repeat(" ",this.width);return this.stylizeLine($,Y,X)}}class f9{constructor(){}draw(J){if(typeof J==="number")mG(`${this.y}-${this.x}: 1x1 ColSpanCell`);return""}init(){}mergeTableOptions(){}}class v9{constructor(J){this.originalCell=J}init(J){let Z=this.y,$=this.originalCell.y;this.cellOffset=Z-$,this.offset=_E(J.rowHeights,$,this.cellOffset)}draw(J){if(J=="top")return this.originalCell.draw(this.offset,this.cellOffset);if(J=="bottom")return this.originalCell.draw("bottom");return mG(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+J)}mergeTableOptions(){}}var fE=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];x9.exports=J5;x9.exports.ColSpanCell=f9;x9.exports.RowSpanCell=v9});var pG=V((ar,cG)=>{var dG=function(J,Z,$,X){return function(Y,Q){let K=[],G=[],F={};Q.forEach(function(q){q.forEach(function(W){if((W[J]||1)>1)G.push(W);else K[W[$]]=Math.max(K[W[$]]||0,W[Z]||0,X)})}),Y.forEach(function(q,W){if(typeof q==="number")K[W]=q});for(let q=G.length-1;q>=0;q--){let W=G[q],H=W[J],U=W[$],j=K[U],z=typeof Y[U]==="number"?0:1;if(typeof j==="number"){for(let A=1;A<H;A++)if(j+=1+K[U+A],typeof Y[U+A]!=="number")z++}else if(j=Z==="desiredWidth"?W.desiredWidth-1:1,!F[U]||F[U]<j)F[U]=j;if(W[Z]>j){let A=0;while(z>0&&W[Z]>j){if(typeof Y[U+A]!=="number"){let T=Math.round((W[Z]-j)/z);j+=T,K[U+A]+=T,z--}A++}}}Object.assign(Y,K,F);for(let q=0;q<Y.length;q++)Y[q]=Math.max(X,Y[q]||0)}},{warn:vE,debug:xE}=y9(),P$=uG(),{ColSpanCell:bE,RowSpanCell:gE}=P$;(function(){function J(j,z){if(j[z]>0)return J(j,z+1);return z}function Z(j){let z={};j.forEach(function(A,T){let w=0;A.forEach(function(N){N.y=T,N.x=T?J(z,w):w;const P=N.rowSpan||1,f=N.colSpan||1;if(P>1)for(let $0=0;$0<f;$0++)z[N.x+$0]=P;w=N.x+f}),Object.keys(z).forEach((N)=>{if(z[N]--,z[N]<1)delete z[N]})})}function $(j){let z=0;return j.forEach(function(A){A.forEach(function(T){z=Math.max(z,T.x+(T.colSpan||1))})}),z}function X(j){return j.length}function Y(j,z){let A=j.y,T=j.y-1+(j.rowSpan||1),w=z.y,N=z.y-1+(z.rowSpan||1),P=!(A>N||w>T),f=j.x,$0=j.x-1+(j.colSpan||1),A8=z.x,k=z.x-1+(z.colSpan||1),B=!(f>k||A8>$0);return P&&B}function Q(j,z,A){let T=Math.min(j.length-1,A),w={x:z,y:A};for(let N=0;N<=T;N++){let P=j[N];for(let f=0;f<P.length;f++)if(Y(w,P[f]))return!0}return!1}function K(j,z,A,T){for(let w=A;w<T;w++)if(Q(j,w,z))return!1;return!0}function G(j){j.forEach(function(z,A){z.forEach(function(T){for(let w=1;w<T.rowSpan;w++){let N=new gE(T);N.x=T.x,N.y=T.y+w,N.colSpan=T.colSpan,q(N,j[A+w])}})})}function F(j){for(let z=j.length-1;z>=0;z--){let A=j[z];for(let T=0;T<A.length;T++){let w=A[T];for(let N=1;N<w.colSpan;N++){let P=new bE;P.x=w.x+N,P.y=w.y,A.splice(T+1,0,P)}}}}function q(j,z){let A=0;while(A<z.length&&z[A].x<j.x)A++;z.splice(A,0,j)}function W(j){let z=X(j),A=$(j);xE(`Max rows: ${z}; Max cols: ${A}`);for(let T=0;T<z;T++)for(let w=0;w<A;w++)if(!Q(j,w,T)){let N={x:w,y:T,colSpan:1,rowSpan:1};w++;while(w<A&&!Q(j,w,T))N.colSpan++,w++;let P=T+1;while(P<z&&K(j,P,N.x,N.x+N.colSpan))N.rowSpan++,P++;let f=new P$(N);f.x=N.x,f.y=N.y,vE(`Missing cell at ${f.y}-${f.x}.`),q(f,j[T])}}function H(j){return j.map(function(z){if(!Array.isArray(z)){let A=Object.keys(z)[0];if(z=z[A],Array.isArray(z))z=z.slice(),z.unshift(A);else z=[A,z]}return z.map(function(A){return new P$(A)})})}function U(j){let z=H(j);return Z(z),W(z),G(z),F(z),z}cG.exports={makeTableLayout:U,layoutTable:Z,addRowSpanCells:G,maxWidth:$,fillInTable:W,computeWidths:dG("colSpan","desiredWidth","x",1),computeHeights:dG("rowSpan","desiredHeight","y",1)}})()});var aG=V((ir,lG)=>{var I$=function(J,Z,$){let X=[];J.forEach(function(Q){X.push(Q.draw(Z))});let Y=X.join("");if(Y.length)$.push(Y)},u6=y9(),mE=w$(),T$=pG();class N$ extends Array{constructor(J){super();const Z=mE.mergeOptions(J);if(Object.defineProperty(this,"options",{value:Z,enumerable:Z.debug}),Z.debug){switch(typeof Z.debug){case"boolean":u6.setDebugLevel(u6.WARN);break;case"number":u6.setDebugLevel(Z.debug);break;case"string":u6.setDebugLevel(parseInt(Z.debug,10));break;default:u6.setDebugLevel(u6.WARN),u6.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof Z.debug}`)}Object.defineProperty(this,"messages",{get(){return u6.debugMessages()}})}}toString(){let J=this,Z=this.options.head&&this.options.head.length;if(Z){if(J=[this.options.head],this.length)J.push.apply(J,this)}else this.options.style.head=[];let $=T$.makeTableLayout(J);$.forEach(function(Y){Y.forEach(function(Q){Q.mergeTableOptions(this.options,$)},this)},this),T$.computeWidths(this.options.colWidths,$),T$.computeHeights(this.options.rowHeights,$),$.forEach(function(Y){Y.forEach(function(Q){Q.init(this.options)},this)},this);let X=[];for(let Y=0;Y<$.length;Y++){let Q=$[Y],K=this.options.rowHeights[Y];if(Y===0||!this.options.style.compact||Y==1&&Z)I$(Q,"top",X);for(let G=0;G<K;G++)I$(Q,G,X);if(Y+1==$.length)I$(Q,"bottom",X)}return X.join("\n")}get width(){return this.toString().split("\n")[0].length}}N$.reset=()=>u6.reset();lG.exports=N$});var j1=V((Jo,nG)=>{var sG=function(J,Z){let $=0,X,Y="",Q="";for(;$<J.length;$++)if(X=J[$],Y+=X.open,Q+=X.close,Z.includes(X.close))Z=Z.replace(X.rgx,X.close+X.open);return Y+Z+Q},pE=function(J,Z){let $={has:J,keys:Z};return $.reset=Z1.reset.bind($),$.bold=Z1.bold.bind($),$.dim=Z1.dim.bind($),$.italic=Z1.italic.bind($),$.underline=Z1.underline.bind($),$.inverse=Z1.inverse.bind($),$.hidden=Z1.hidden.bind($),$.strikethrough=Z1.strikethrough.bind($),$.black=Z1.black.bind($),$.red=Z1.red.bind($),$.green=Z1.green.bind($),$.yellow=Z1.yellow.bind($),$.blue=Z1.blue.bind($),$.magenta=Z1.magenta.bind($),$.cyan=Z1.cyan.bind($),$.white=Z1.white.bind($),$.gray=Z1.gray.bind($),$.grey=Z1.grey.bind($),$.bgBlack=Z1.bgBlack.bind($),$.bgRed=Z1.bgRed.bind($),$.bgGreen=Z1.bgGreen.bind($),$.bgYellow=Z1.bgYellow.bind($),$.bgBlue=Z1.bgBlue.bind($),$.bgMagenta=Z1.bgMagenta.bind($),$.bgCyan=Z1.bgCyan.bind($),$.bgWhite=Z1.bgWhite.bind($),$},W1=function(J,Z){let $={open:`\x1B[${J}m`,close:`\x1B[${Z}m`,rgx:new RegExp(`\\x1b\\[${Z}m`,"g")};return function(X){if(this!==void 0&&this.has!==void 0)return this.has.includes(J)||(this.has.push(J),this.keys.push($)),X===void 0?this:Z1.enabled?sG(this.keys,X+""):X+"";return X===void 0?pE([J],[$]):Z1.enabled?sG([$],X+""):X+""}},{FORCE_COLOR:uE,NODE_DISABLE_COLORS:dE,TERM:cE}=process.env,Z1={enabled:!dE&&cE!=="dumb"&&uE!=="0",reset:W1(0,0),bold:W1(1,22),dim:W1(2,22),italic:W1(3,23),underline:W1(4,24),inverse:W1(7,27),hidden:W1(8,28),strikethrough:W1(9,29),black:W1(30,39),red:W1(31,39),green:W1(32,39),yellow:W1(33,39),blue:W1(34,39),magenta:W1(35,39),cyan:W1(36,39),white:W1(37,39),gray:W1(90,39),grey:W1(90,39),bgBlack:W1(40,49),bgRed:W1(41,49),bgGreen:W1(42,49),bgYellow:W1(43,49),bgBlue:W1(44,49),bgMagenta:W1(45,49),bgCyan:W1(46,49),bgWhite:W1(47,49)};nG.exports=Z1});var rG=V((Zo,tG)=>{tG.exports=(J,Z)=>{if(J.meta&&J.name!=="escape")return;if(J.ctrl){if(J.name==="a")return"first";if(J.name==="c")return"abort";if(J.name==="d")return"abort";if(J.name==="e")return"last";if(J.name==="g")return"reset"}if(Z){if(J.name==="j")return"down";if(J.name==="k")return"up"}if(J.name==="return")return"submit";if(J.name==="enter")return"submit";if(J.name==="backspace")return"delete";if(J.name==="delete")return"deleteForward";if(J.name==="abort")return"abort";if(J.name==="escape")return"exit";if(J.name==="tab")return"next";if(J.name==="pagedown")return"nextPage";if(J.name==="pageup")return"prevPage";if(J.name==="home")return"home";if(J.name==="end")return"end";if(J.name==="up")return"up";if(J.name==="down")return"down";if(J.name==="right")return"right";if(J.name==="left")return"left";return!1}});var g9=V(($o,oG)=>{oG.exports=(J)=>{const Z=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),$=new RegExp(Z,"g");return typeof J==="string"?J.replace($,""):J}});var L1=V((Xo,eG)=>{var A1=`${"\x1B"}[`,C$={to(J,Z){if(!Z)return`${A1}${J+1}G`;return`${A1}${Z+1};${J+1}H`},move(J,Z){let $="";if(J<0)$+=`${A1}${-J}D`;else if(J>0)$+=`${A1}${J}C`;if(Z<0)$+=`${A1}${-Z}A`;else if(Z>0)$+=`${A1}${Z}B`;return $},up:(J=1)=>`${A1}${J}A`,down:(J=1)=>`${A1}${J}B`,forward:(J=1)=>`${A1}${J}C`,backward:(J=1)=>`${A1}${J}D`,nextLine:(J=1)=>`${A1}E`.repeat(J),prevLine:(J=1)=>`${A1}F`.repeat(J),left:`${A1}G`,hide:`${A1}?25l`,show:`${A1}?25h`,save:`${"\x1B"}7`,restore:`${"\x1B"}8`},lE={up:(J=1)=>`${A1}S`.repeat(J),down:(J=1)=>`${A1}T`.repeat(J)},aE={screen:`${A1}2J`,up:(J=1)=>`${A1}1J`.repeat(J),down:(J=1)=>`${A1}J`.repeat(J),line:`${A1}2K`,lineEnd:`${A1}K`,lineStart:`${A1}1K`,lines(J){let Z="";for(let $=0;$<J;$++)Z+=this.line+($<J-1?C$.up():"");if(J)Z+=C$.left;return Z}};eG.exports={cursor:C$,scroll:lE,erase:aE,beep:"\x07"}});var YF=V((Yo,XF)=>{var iE=function(J,Z){var $=typeof Symbol!=="undefined"&&J[Symbol.iterator]||J["@@iterator"];if(!$){if(Array.isArray(J)||($=sE(J))||Z&&J&&typeof J.length==="number"){if($)J=$;var X=0,Y=function F(){};return{s:Y,n:function F(){if(X>=J.length)return{done:!0};return{done:!1,value:J[X++]}},e:function F(q){throw q},f:Y}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Q=!0,K=!1,G;return{s:function F(){$=$.call(J)},n:function F(){var q=$.next();return Q=q.done,q},e:function F(q){K=!0,G=q},f:function F(){try{if(!Q&&$.return!=null)$.return()}finally{if(K)throw G}}}},sE=function(J,Z){if(!J)return;if(typeof J==="string")return JF(J,Z);var $=Object.prototype.toString.call(J).slice(8,-1);if($==="Object"&&J.constructor)$=J.constructor.name;if($==="Map"||$==="Set")return Array.from(J);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return JF(J,Z)},JF=function(J,Z){if(Z==null||Z>J.length)Z=J.length;for(var $=0,X=new Array(Z);$<Z;$++)X[$]=J[$];return X},nE=g9(),$F=L1(),ZF=$F.erase,tE=$F.cursor,rE=(J)=>[...nE(J)].length;XF.exports=function(J,Z){if(!Z)return ZF.line+tE.to(0);let $=0;const X=J.split(/\r?\n/);var Y=iE(X),Q;try{for(Y.s();!(Q=Y.n()).done;){let K=Q.value;$+=1+Math.floor(Math.max(rE(K)-1,0)/Z)}}catch(K){Y.e(K)}finally{Y.f()}return ZF.lines($)}});var h$=V((Qo,QF)=>{var Z5={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},oE={arrowUp:Z5.arrowUp,arrowDown:Z5.arrowDown,arrowLeft:Z5.arrowLeft,arrowRight:Z5.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},eE=process.platform==="win32"?oE:Z5;QF.exports=eE});var GF=V((Ko,KF)=>{var c4=j1(),Y4=h$(),S$=Object.freeze({password:{scale:1,render:(J)=>"*".repeat(J.length)},emoji:{scale:2,render:(J)=>"\uD83D\uDE03".repeat(J.length)},invisible:{scale:0,render:(J)=>""},default:{scale:1,render:(J)=>`${J}`}}),JC=(J)=>S$[J]||S$.default,$5=Object.freeze({aborted:c4.red(Y4.cross),done:c4.green(Y4.tick),exited:c4.yellow(Y4.cross),default:c4.cyan("?")}),ZC=(J,Z,$)=>Z?$5.aborted:$?$5.exited:J?$5.done:$5.default,$C=(J)=>c4.gray(J?Y4.ellipsis:Y4.pointerSmall),XC=(J,Z)=>c4.gray(J?Z?Y4.pointerSmall:"+":Y4.line);KF.exports={styles:S$,render:JC,symbols:$5,symbol:ZC,delimiter:$C,item:XC}});var qF=V((Go,FF)=>{var YC=g9();FF.exports=function(J,Z){let $=String(YC(J)||"").split(/\r?\n/);if(!Z)return $.length;return $.map((X)=>Math.ceil(X.length/Z)).reduce((X,Y)=>X+Y)}});var HF=V((Fo,WF)=>{WF.exports=(J,Z={})=>{const $=Number.isSafeInteger(parseInt(Z.margin))?new Array(parseInt(Z.margin)).fill(" ").join(""):Z.margin||"",X=Z.width;return(J||"").split(/\r?\n/g).map((Y)=>Y.split(/\s+/g).reduce((Q,K)=>{if(K.length+$.length>=X||Q[Q.length-1].length+K.length+1<X)Q[Q.length-1]+=` ${K}`;else Q.push(`${$}${K}`);return Q},[$]).join("\n")).join("\n")}});var zF=V((qo,VF)=>{VF.exports=(J,Z,$)=>{$=$||Z;let X=Math.min(Z-$,J-Math.floor($/2));if(X<0)X=0;let Y=Math.min(X+$,Z);return{startIndex:X,endIndex:Y}}});var X6=V((Wo,UF)=>{UF.exports={action:rG(),clear:YF(),style:GF(),strip:g9(),figures:h$(),lines:qF(),wrap:HF(),entriesToDisplay:zF()}});var c6=V((Ho,LF)=>{var MF=import.meta.require("readline"),QC=X6(),KC=QC.action,GC=import.meta.require("events"),jF=L1(),FC=jF.beep,qC=jF.cursor,WC=j1();class AF extends GC{constructor(J={}){super();this.firstRender=!0,this.in=J.stdin||process.stdin,this.out=J.stdout||process.stdout,this.onRender=(J.onRender||(()=>{return})).bind(this);const Z=MF.createInterface({input:this.in,escapeCodeTimeout:50});if(MF.emitKeypressEvents(this.in,Z),this.in.isTTY)this.in.setRawMode(!0);const $=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,X=(Y,Q)=>{let K=KC(Q,$);if(K===!1)this._&&this._(Y,Q);else if(typeof this[K]==="function")this[K](Q);else this.bell()};this.close=()=>{if(this.out.write(qC.show),this.in.removeListener("keypress",X),this.in.isTTY)this.in.setRawMode(!1);Z.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",X)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(FC)}render(){if(this.onRender(WC),this.firstRender)this.firstRender=!1}}LF.exports=AF});var IF=V((Vo,TF)=>{var wF=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},RF=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){wF(Q,X,Y,K,G,"next",F)}function G(F){wF(Q,X,Y,K,G,"throw",F)}K(void 0)})}},m9=j1(),HC=c6(),DF=L1(),VC=DF.erase,X5=DF.cursor,u9=X6(),O$=u9.style,k$=u9.clear,zC=u9.lines,UC=u9.figures;class PF extends HC{constructor(J={}){super(J);this.transform=O$.render(J.style),this.scale=this.transform.scale,this.msg=J.message,this.initial=J.initial||"",this.validator=J.validate||(()=>!0),this.value="",this.errorMsg=J.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=k$("",this.out.columns),this.render()}set value(J){if(!J&&this.initial)this.placeholder=!0,this.rendered=m9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render(J);this._value=J,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var J=this;return RF(function*(){let Z=yield J.validator(J.value);if(typeof Z==="string")J.errorMsg=Z,Z=!1;J.error=!Z})()}submit(){var J=this;return RF(function*(){if(J.value=J.value||J.initial,J.cursorOffset=0,J.cursor=J.rendered.length,yield J.validate(),J.error){J.red=!0,J.fire(),J.render();return}J.done=!0,J.aborted=!1,J.fire(),J.render(),J.out.write("\n"),J.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(J){if(this.placeholder)return;this.cursor=this.cursor+J,this.cursorOffset+=J}_(J,Z){let $=this.value.slice(0,this.cursor),X=this.value.slice(this.cursor);this.value=`${$}${J}${X}`,this.red=!1,this.cursor=this.placeholder?0:$.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let J=this.value.slice(0,this.cursor-1),Z=this.value.slice(this.cursor);if(this.value=`${J}${Z}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let J=this.value.slice(0,this.cursor),Z=this.value.slice(this.cursor+1);if(this.value=`${J}${Z}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(X5.down(zC(this.outputError,this.out.columns)-1)+k$(this.outputError,this.out.columns));this.out.write(k$(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[O$.symbol(this.done,this.aborted),m9.bold(this.msg),O$.delimiter(this.done),this.red?m9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":UC.pointerSmall} ${m9.red().italic(Z)}`,"");this.out.write(VC.line+X5.to(0)+this.outputText+X5.save+this.outputError+X5.restore+X5.move(this.cursorOffset,0))}}TF.exports=PF});var hF=V((zo,CF)=>{var p6=j1(),MC=c6(),Y5=X6(),NF=Y5.style,BF=Y5.clear,d9=Y5.figures,jC=Y5.wrap,AC=Y5.entriesToDisplay,LC=L1(),wC=LC.cursor;class EF extends MC{constructor(J={}){super(J);this.msg=J.message,this.hint=J.hint||"- Use arrow-keys. Return to submit.",this.warn=J.warn||"- This option is disabled",this.cursor=J.initial||0,this.choices=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),value:Z&&(Z.value===void 0?$:Z.value),description:Z&&Z.description,selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.optionsPerPage=J.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=BF("",this.out.columns),this.render()}moveCursor(J){this.cursor=J,this.value=this.choices[J].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(J,Z){if(J===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(wC.hide);else this.out.write(BF(this.outputText,this.out.columns));super.render();let J=AC(this.cursor,this.choices.length,this.optionsPerPage),Z=J.startIndex,$=J.endIndex;if(this.outputText=[NF.symbol(this.done,this.aborted),p6.bold(this.msg),NF.delimiter(!1),this.done?this.selection.title:this.selection.disabled?p6.yellow(this.warn):p6.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let X=Z;X<$;X++){let Y,Q,K="",G=this.choices[X];if(X===Z&&Z>0)Q=d9.arrowUp;else if(X===$-1&&$<this.choices.length)Q=d9.arrowDown;else Q=" ";if(G.disabled)Y=this.cursor===X?p6.gray().underline(G.title):p6.strikethrough().gray(G.title),Q=(this.cursor===X?p6.bold().gray(d9.pointer)+" ":" ")+Q;else if(Y=this.cursor===X?p6.cyan().underline(G.title):G.title,Q=(this.cursor===X?p6.cyan(d9.pointer)+" ":" ")+Q,G.description&&this.cursor===X){if(K=` - ${G.description}`,Q.length+Y.length+K.length>=this.out.columns||G.description.split(/\r?\n/).length>1)K="\n"+jC(G.description,{margin:3,width:this.out.columns})}this.outputText+=`${Q} ${Y}${p6.gray(K)}\n`}}this.out.write(this.outputText)}}CF.exports=EF});var vF=V((Uo,fF)=>{var c9=j1(),RC=c6(),kF=X6(),SF=kF.style,DC=kF.clear,yF=L1(),OF=yF.cursor,PC=yF.erase;class _F extends RC{constructor(J={}){super(J);this.msg=J.message,this.value=!!J.initial,this.active=J.active||"on",this.inactive=J.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(J,Z){if(J===" ")this.value=!this.value;else if(J==="1")this.value=!0;else if(J==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(OF.hide);else this.out.write(DC(this.outputText,this.out.columns));super.render(),this.outputText=[SF.symbol(this.done,this.aborted),c9.bold(this.msg),SF.delimiter(this.done),this.value?this.inactive:c9.cyan().underline(this.inactive),c9.gray("/"),this.value?c9.cyan().underline(this.active):this.active].join(" "),this.out.write(PC.line+OF.to(0)+this.outputText)}}fF.exports=_F});var P6=V((Mo,xF)=>{class p9{constructor({token:J,date:Z,parts:$,locales:X}){this.token=J,this.date=Z||new Date,this.parts=$||[this],this.locales=X||{}}up(){}down(){}next(){const J=this.parts.indexOf(this);return this.parts.find((Z,$)=>$>J&&Z instanceof p9)}setTo(J){}prev(){let J=[].concat(this.parts).reverse();const Z=J.indexOf(this);return J.find(($,X)=>X>Z&&$ instanceof p9)}toString(){return String(this.date)}}xF.exports=p9});var mF=V((jo,gF)=>{var TC=P6();class bF extends TC{constructor(J={}){super(J)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let J=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?J.toUpperCase():J}}gF.exports=bF});var cF=V((Ao,dF)=>{var IC=P6(),NC=(J)=>{return J=J%10,J===1?"st":J===2?"nd":J===3?"rd":"th"};class uF extends IC{constructor(J={}){super(J)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(J){this.date.setDate(parseInt(J.substr(-2)))}toString(){let J=this.date.getDate(),Z=this.date.getDay();return this.token==="DD"?String(J).padStart(2,"0"):this.token==="Do"?J+NC(J):this.token==="d"?Z+1:this.token==="ddd"?this.locales.weekdaysShort[Z]:this.token==="dddd"?this.locales.weekdays[Z]:J}}dF.exports=uF});var aF=V((Lo,lF)=>{var BC=P6();class pF extends BC{constructor(J={}){super(J)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(J){this.date.setHours(parseInt(J.substr(-2)))}toString(){let J=this.date.getHours();if(/h/.test(this.token))J=J%12||12;return this.token.length>1?String(J).padStart(2,"0"):J}}lF.exports=pF});var nF=V((wo,sF)=>{var EC=P6();class iF extends EC{constructor(J={}){super(J)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(J){this.date.setMilliseconds(parseInt(J.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}sF.exports=iF});var oF=V((Ro,rF)=>{var CC=P6();class tF extends CC{constructor(J={}){super(J)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(J){this.date.setMinutes(parseInt(J.substr(-2)))}toString(){let J=this.date.getMinutes();return this.token.length>1?String(J).padStart(2,"0"):J}}rF.exports=tF});var Zq=V((Do,Jq)=>{var hC=P6();class eF extends hC{constructor(J={}){super(J)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(J){J=parseInt(J.substr(-2))-1,this.date.setMonth(J<0?0:J)}toString(){let J=this.date.getMonth(),Z=this.token.length;return Z===2?String(J+1).padStart(2,"0"):Z===3?this.locales.monthsShort[J]:Z===4?this.locales.months[J]:String(J+1)}}Jq.exports=eF});var Yq=V((Po,Xq)=>{var SC=P6();class $q extends SC{constructor(J={}){super(J)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(J){this.date.setSeconds(parseInt(J.substr(-2)))}toString(){let J=this.date.getSeconds();return this.token.length>1?String(J).padStart(2,"0"):J}}Xq.exports=$q});var Gq=V((To,Kq)=>{var OC=P6();class Qq extends OC{constructor(J={}){super(J)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(J){this.date.setFullYear(J.substr(-4))}toString(){let J=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?J.substr(-2):J}}Kq.exports=Qq});var qq=V((Io,Fq)=>{Fq.exports={DatePart:P6(),Meridiem:mF(),Day:cF(),Hours:aF(),Milliseconds:nF(),Minutes:oF(),Month:Zq(),Seconds:Yq(),Year:Gq()}});var Rq=V((No,wq)=>{var Wq=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},Hq=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){Wq(Q,X,Y,K,G,"next",F)}function G(F){Wq(Q,X,Y,K,G,"throw",F)}K(void 0)})}},y$=j1(),kC=c6(),_$=X6(),Vq=_$.style,zq=_$.clear,yC=_$.figures,Aq=L1(),_C=Aq.erase,Uq=Aq.cursor,l6=qq(),Mq=l6.DatePart,fC=l6.Meridiem,vC=l6.Day,xC=l6.Hours,bC=l6.Milliseconds,gC=l6.Minutes,mC=l6.Month,uC=l6.Seconds,dC=l6.Year,cC=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,jq={1:({token:J})=>J.replace(/\\(.)/g,"$1"),2:(J)=>new vC(J),3:(J)=>new mC(J),4:(J)=>new dC(J),5:(J)=>new fC(J),6:(J)=>new xC(J),7:(J)=>new gC(J),8:(J)=>new uC(J),9:(J)=>new bC(J)},pC={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class Lq extends kC{constructor(J={}){super(J);this.msg=J.message,this.cursor=0,this.typed="",this.locales=Object.assign(pC,J.locales),this._date=J.initial||new Date,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.mask=J.mask||"YYYY-MM-DD HH:mm:ss",this.clear=zq("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(J){if(J)this._date.setTime(J.getTime())}set mask(J){let Z;this.parts=[];while(Z=cC.exec(J)){let X=Z.shift(),Y=Z.findIndex((Q)=>Q!=null);this.parts.push(Y in jq?jq[Y]({token:Z[Y]||X,date:this.date,parts:this.parts,locales:this.locales}):Z[Y]||X)}let $=this.parts.reduce((X,Y)=>{if(typeof Y==="string"&&typeof X[X.length-1]==="string")X[X.length-1]+=Y;else X.push(Y);return X},[]);this.parts.splice(0),this.parts.push(...$),this.reset()}moveCursor(J){this.typed="",this.cursor=J,this.fire()}reset(){this.moveCursor(this.parts.findIndex((J)=>J instanceof Mq)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var J=this;return Hq(function*(){let Z=yield J.validator(J.value);if(typeof Z==="string")J.errorMsg=Z,Z=!1;J.error=!Z})()}submit(){var J=this;return Hq(function*(){if(yield J.validate(),J.error){J.color="red",J.fire(),J.render();return}J.done=!0,J.aborted=!1,J.fire(),J.render(),J.out.write("\n"),J.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let J=this.parts[this.cursor].prev();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}right(){let J=this.parts[this.cursor].next();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}next(){let J=this.parts[this.cursor].next();this.moveCursor(J?this.parts.indexOf(J):this.parts.findIndex((Z)=>Z instanceof Mq)),this.render()}_(J){if(/\d/.test(J))this.typed+=J,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(Uq.hide);else this.out.write(zq(this.outputText,this.out.columns));if(super.render(),this.outputText=[Vq.symbol(this.done,this.aborted),y$.bold(this.msg),Vq.delimiter(!1),this.parts.reduce((J,Z,$)=>J.concat($===this.cursor&&!this.done?y$.cyan().underline(Z.toString()):Z),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":yC.pointerSmall} ${y$.red().italic(Z)}`,"");this.out.write(_C.line+Uq.to(0)+this.outputText)}}wq.exports=Lq});var Cq=V((Bo,Eq)=>{var Dq=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},Pq=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){Dq(Q,X,Y,K,G,"next",F)}function G(F){Dq(Q,X,Y,K,G,"throw",F)}K(void 0)})}},l9=j1(),lC=c6(),Nq=L1(),a9=Nq.cursor,aC=Nq.erase,i9=X6(),f$=i9.style,iC=i9.figures,Tq=i9.clear,sC=i9.lines,nC=/[0-9]/,v$=(J)=>J!==void 0,Iq=(J,Z)=>{let $=Math.pow(10,Z);return Math.round(J*$)/$};class Bq extends lC{constructor(J={}){super(J);this.transform=f$.render(J.style),this.msg=J.message,this.initial=v$(J.initial)?J.initial:"",this.float=!!J.float,this.round=J.round||2,this.inc=J.increment||1,this.min=v$(J.min)?J.min:(-Infinity),this.max=v$(J.max)?J.max:Infinity,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(J){if(!J&&J!==0)this.placeholder=!0,this.rendered=l9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${Iq(J,this.round)}`),this._value=Iq(J,this.round);this.fire()}get value(){return this._value}parse(J){return this.float?parseFloat(J):parseInt(J)}valid(J){return J==="-"||J==="."&&this.float||nC.test(J)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let J=this.value;this.value=J!==""?J:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var J=this;return Pq(function*(){let Z=yield J.validator(J.value);if(typeof Z==="string")J.errorMsg=Z,Z=!1;J.error=!Z})()}submit(){var J=this;return Pq(function*(){if(yield J.validate(),J.error){J.color="red",J.fire(),J.render();return}let Z=J.value;J.value=Z!==""?Z:J.initial,J.done=!0,J.aborted=!1,J.error=!1,J.fire(),J.render(),J.out.write("\n"),J.close()})()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let J=this.value.toString();if(J.length===0)return this.bell();if(this.value=this.parse(J=J.slice(0,-1))||"",this.value!==""&&this.value<this.min)this.value=this.min;this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(J,Z){if(!this.valid(J))return this.bell();const $=Date.now();if($-this.lastHit>1000)this.typed="";if(this.typed+=J,this.lastHit=$,this.color="cyan",J===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire(),this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(a9.down(sC(this.outputError,this.out.columns)-1)+Tq(this.outputError,this.out.columns));this.out.write(Tq(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[f$.symbol(this.done,this.aborted),l9.bold(this.msg),f$.delimiter(this.done),!this.done||!this.done&&!this.placeholder?l9[this.color]().underline(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":iC.pointerSmall} ${l9.red().italic(Z)}`,"");this.out.write(aC.line+a9.to(0)+this.outputText+a9.save+this.outputError+a9.restore)}}Eq.exports=Bq});var x$=V((Eo,kq)=>{var T6=j1(),tC=L1(),rC=tC.cursor,oC=c6(),Q5=X6(),hq=Q5.clear,R8=Q5.figures,Sq=Q5.style,eC=Q5.wrap,J2=Q5.entriesToDisplay;class Oq extends oC{constructor(J={}){super(J);if(this.msg=J.message,this.cursor=J.cursor||0,this.scrollIndex=J.cursor||0,this.hint=J.hint||"",this.warn=J.warn||"- This option is disabled -",this.minSelected=J.min,this.showMinError=!1,this.maxChoices=J.max,this.instructions=J.instructions,this.optionsPerPage=J.optionsPerPage||10,this.value=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),description:Z&&Z.description,value:Z&&(Z.value===void 0?$:Z.value),selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.clear=hq("",this.out.columns),!J.overrideRender)this.render()}reset(){this.value.map((J)=>!J.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((J)=>J.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const J=this.value.filter((Z)=>Z.selected);if(this.minSelected&&J.length<this.minSelected)this.showMinError=!0,this.render();else this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){if(this.cursor===0)this.cursor=this.value.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.value.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const J=this.value[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const J=!this.value[this.cursor].selected;this.value.filter((Z)=>!Z.disabled).forEach((Z)=>Z.selected=J),this.render()}_(J,Z){if(J===" ")this.handleSpaceToggle();else if(J==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return"\nInstructions:\n"+` ${R8.arrowUp}/${R8.arrowDown}: Highlight option\n`+` ${R8.arrowLeft}/${R8.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===void 0?" a: Toggle all\n":"")+" enter/return: Complete answer"}return""}renderOption(J,Z,$,X){const Y=(Z.selected?T6.green(R8.radioOn):R8.radioOff)+" "+X+" ";let Q,K;if(Z.disabled)Q=J===$?T6.gray().underline(Z.title):T6.strikethrough().gray(Z.title);else if(Q=J===$?T6.cyan().underline(Z.title):Z.title,J===$&&Z.description){if(K=` - ${Z.description}`,Y.length+Q.length+K.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)K="\n"+eC(Z.description,{margin:Y.length,width:this.out.columns})}return Y+Q+T6.gray(K||"")}paginateOptions(J){if(J.length===0)return T6.red("No matches for this query.");let Z=J2(this.cursor,J.length,this.optionsPerPage),$=Z.startIndex,X=Z.endIndex,Y,Q=[];for(let K=$;K<X;K++){if(K===$&&$>0)Y=R8.arrowUp;else if(K===X-1&&X<J.length)Y=R8.arrowDown;else Y=" ";Q.push(this.renderOption(this.cursor,J[K],K,Y))}return"\n"+Q.join("\n")}renderOptions(J){if(!this.done)return this.paginateOptions(J);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[T6.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)J.push(T6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(rC.hide);super.render();let J=[Sq.symbol(this.done,this.aborted),T6.bold(this.msg),Sq.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=T6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.value),this.out.write(this.clear+J),this.clear=hq(J,this.out.columns)}}kq.exports=Oq});var mq=V((Co,gq)=>{var yq=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},Z2=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){yq(Q,X,Y,K,G,"next",F)}function G(F){yq(Q,X,Y,K,G,"throw",F)}K(void 0)})}},K5=j1(),$2=c6(),xq=L1(),X2=xq.erase,_q=xq.cursor,G5=X6(),b$=G5.style,fq=G5.clear,g$=G5.figures,Y2=G5.wrap,Q2=G5.entriesToDisplay,vq=(J,Z)=>J[Z]&&(J[Z].value||J[Z].title||J[Z]),K2=(J,Z)=>J[Z]&&(J[Z].title||J[Z].value||J[Z]),G2=(J,Z)=>{const $=J.findIndex((X)=>X.value===Z||X.title===Z);return $>-1?$:void 0};class bq extends $2{constructor(J={}){super(J);this.msg=J.message,this.suggest=J.suggest,this.choices=J.choices,this.initial=typeof J.initial==="number"?J.initial:G2(J.choices,J.initial),this.select=this.initial||J.cursor||0,this.i18n={noMatches:J.noMatches||"no matches found"},this.fallback=J.fallback||this.initial,this.clearFirst=J.clearFirst||!1,this.suggestions=[],this.input="",this.limit=J.limit||10,this.cursor=0,this.transform=b$.render(J.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=fq("",this.out.columns),this.complete(this.render),this.render()}set fallback(J){this._fb=Number.isSafeInteger(parseInt(J))?parseInt(J):J}get fallback(){let J;if(typeof this._fb==="number")J=this.choices[this._fb];else if(typeof this._fb==="string")J={title:this._fb};return J||this._fb||{title:this.i18n.noMatches}}moveSelect(J){if(this.select=J,this.suggestions.length>0)this.value=vq(this.suggestions,J);else this.value=this.fallback.value;this.fire()}complete(J){var Z=this;return Z2(function*(){const $=Z.completing=Z.suggest(Z.input,Z.choices),X=yield $;if(Z.completing!==$)return;Z.suggestions=X.map((Q,K,G)=>({title:K2(G,K),value:vq(G,K),description:Q.description})),Z.completing=!1;const Y=Math.max(X.length-1,0);Z.moveSelect(Math.min(Y,Z.select)),J&&J()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(J,Z){let $=this.input.slice(0,this.cursor),X=this.input.slice(this.cursor);this.input=`${$}${J}${X}`,this.cursor=$.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let J=this.input.slice(0,this.cursor-1),Z=this.input.slice(this.cursor);this.input=`${J}${Z}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let J=this.input.slice(0,this.cursor),Z=this.input.slice(this.cursor+1);this.input=`${J}${Z}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(J,Z,$,X){let Y,Q=$?g$.arrowUp:X?g$.arrowDown:" ",K=Z?K5.cyan().underline(J.title):J.title;if(Q=(Z?K5.cyan(g$.pointer)+" ":" ")+Q,J.description){if(Y=` - ${J.description}`,Q.length+K.length+Y.length>=this.out.columns||J.description.split(/\r?\n/).length>1)Y="\n"+Y2(J.description,{margin:3,width:this.out.columns})}return Q+" "+K+K5.gray(Y||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(_q.hide);else this.out.write(fq(this.outputText,this.out.columns));super.render();let J=Q2(this.select,this.choices.length,this.limit),Z=J.startIndex,$=J.endIndex;if(this.outputText=[b$.symbol(this.done,this.aborted,this.exited),K5.bold(this.msg),b$.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const X=this.suggestions.slice(Z,$).map((Y,Q)=>this.renderOption(Y,this.select===Q+Z,Q===0&&Z>0,Q+Z===$-1&&$<this.choices.length)).join("\n");this.outputText+="\n"+(X||K5.gray(this.fallback.title))}this.out.write(X2.line+_q.to(0)+this.outputText)}}gq.exports=bq});var lq=V((ho,pq)=>{var a6=j1(),F2=L1(),q2=F2.cursor,W2=x$(),m$=X6(),uq=m$.clear,dq=m$.style,p4=m$.figures;class cq extends W2{constructor(J={}){J.overrideRender=!0;super(J);this.inputValue="",this.clear=uq("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){const J=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(($)=>{if(this.inputValue){if(typeof $.title==="string"){if($.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof $.value==="string"){if($.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});const Z=this.filteredOptions.findIndex(($)=>$===J);this.cursor=Z<0?0:Z,this.render()}handleSpaceToggle(){const J=this.filteredOptions[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}handleInputChange(J){this.inputValue=this.inputValue+J,this.updateFilteredOptions()}_(J,Z){if(J===" ")this.handleSpaceToggle();else this.handleInputChange(J)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return`
|
|
2
|
+
var lB=Object.create;var{defineProperty:yK,getPrototypeOf:aB,getOwnPropertyNames:iB}=Object;var sB=Object.prototype.hasOwnProperty;var $4=(J,Z,$)=>{$=J!=null?lB(aB(J)):{};const X=Z||!J||!J.__esModule?yK($,"default",{value:J,enumerable:!0}):$;for(let Y of iB(J))if(!sB.call(X,Y))yK(X,Y,{get:()=>J[Y],enumerable:!0});return X};var V=(J,Z)=>()=>(Z||J((Z={exports:{}}).exports,Z),Z.exports);var h=(J)=>{return import.meta.require(J)};var U$=V((dt,_K)=>{var r7=function(J,{argv:Z=process.argv.slice(2),permissive:$=!1,stopAtPositional:X=!1}={}){if(!J)throw new x0("argument specification object is required","ARG_CONFIG_NO_SPEC");const Y={_:[]},Q={},K={};for(let G of Object.keys(J)){if(!G)throw new x0("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(G[0]!=="-")throw new x0(`argument key must start with '-' but found: '${G}'`,"ARG_CONFIG_NONOPT_KEY");if(G.length===1)throw new x0(`argument key must have a name; singular '-' keys are not allowed: ${G}`,"ARG_CONFIG_NONAME_KEY");if(typeof J[G]==="string"){Q[G]=J[G];continue}let F=J[G],q=!1;if(Array.isArray(F)&&F.length===1&&typeof F[0]==="function"){const[W]=F;F=(H,U,j=[])=>{return j.push(W(H,U,j[j.length-1])),j},q=W===Boolean||W[z$]===!0}else if(typeof F==="function")q=F===Boolean||F[z$]===!0;else throw new x0(`type missing or not a function or valid array type: ${G}`,"ARG_CONFIG_VAD_TYPE");if(G[1]!=="-"&&G.length>2)throw new x0(`short argument keys (with a single hyphen) must have only one character: ${G}`,"ARG_CONFIG_SHORTOPT_TOOLONG");K[G]=[F,q]}for(let G=0,F=Z.length;G<F;G++){const q=Z[G];if(X&&Y._.length>0){Y._=Y._.concat(Z.slice(G));break}if(q==="--"){Y._=Y._.concat(Z.slice(G+1));break}if(q.length>1&&q[0]==="-"){const W=q[1]==="-"||q.length===2?[q]:q.slice(1).split("").map((H)=>`-${H}`);for(let H=0;H<W.length;H++){const U=W[H],[j,z]=U[1]==="-"?U.split(/=(.*)/,2):[U,void 0];let A=j;while(A in Q)A=Q[A];if(!(A in K))if($){Y._.push(U);continue}else throw new x0(`unknown or unexpected option: ${j}`,"ARG_UNKNOWN_OPTION");const[T,w]=K[A];if(!w&&H+1<W.length)throw new x0(`option requires argument (but was followed by another short argument): ${j}`,"ARG_MISSING_REQUIRED_SHORTARG");if(w)Y[A]=T(!0,A,Y[A]);else if(z===void 0){if(Z.length<G+2||Z[G+1].length>1&&Z[G+1][0]==="-"&&!(Z[G+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(T===Number||typeof BigInt!=="undefined"&&T===BigInt))){const N=j===A?"":` (alias for ${A})`;throw new x0(`option requires argument: ${j}${N}`,"ARG_MISSING_REQUIRED_LONGARG")}Y[A]=T(Z[G+1],A,Y[A]),++G}else Y[A]=T(z,A,Y[A])}}else Y._.push(q)}return Y},z$=Symbol("arg flag");class x0 extends Error{constructor(J,Z){super(J);this.name="ArgError",this.code=Z,Object.setPrototypeOf(this,x0.prototype)}}r7.flag=(J)=>{return J[z$]=!0,J};r7.COUNT=r7.flag((J,Z,$)=>($||0)+1);r7.ArgError=x0;_K.exports=r7});var y9=V((Er,tK)=>{var j$=[],nK=0,s1=(J,Z)=>{if(nK>=Z)j$.push(J)};s1.WARN=1;s1.INFO=2;s1.DEBUG=3;s1.reset=()=>{j$=[]};s1.setDebugLevel=(J)=>{nK=J};s1.warn=(J)=>s1(J,s1.WARN);s1.info=(J)=>s1(J,s1.INFO);s1.debug=(J)=>s1(J,s1.DEBUG);s1.debugMessages=()=>j$;tK.exports=s1});var oK=V((Cr,rK)=>{rK.exports=({onlyFirst:J=!1}={})=>{const Z=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(Z,J?void 0:"g")}});var JG=V((hr,eK)=>{var QE=oK();eK.exports=(J)=>typeof J==="string"?J.replace(QE(),""):J});var $G=V((Sr,A$)=>{var ZG=(J)=>{if(Number.isNaN(J))return!1;if(J>=4352&&(J<=4447||J===9001||J===9002||11904<=J&&J<=12871&&J!==12351||12880<=J&&J<=19903||19968<=J&&J<=42182||43360<=J&&J<=43388||44032<=J&&J<=55203||63744<=J&&J<=64255||65040<=J&&J<=65049||65072<=J&&J<=65131||65281<=J&&J<=65376||65504<=J&&J<=65510||110592<=J&&J<=110593||127488<=J&&J<=127569||131072<=J&&J<=262141))return!0;return!1};A$.exports=ZG;A$.exports.default=ZG});var YG=V((Or,XG)=>{XG.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var KG=V((kr,L$)=>{var KE=JG(),GE=$G(),FE=YG(),QG=(J)=>{if(typeof J!=="string"||J.length===0)return 0;if(J=KE(J),J.length===0)return 0;J=J.replace(FE()," ");let Z=0;for(let $=0;$<J.length;$++){const X=J.codePointAt($);if(X<=31||X>=127&&X<=159)continue;if(X>=768&&X<=879)continue;if(X>65535)$++;Z+=GE(X)?2:1}return Z};L$.exports=QG;L$.exports.default=QG});var w$=V((yr,WG)=>{var _9=function(J){return J?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g},D6=function(J){let Z=_9();return(""+J).replace(Z,"").split("\n").reduce(function(Y,Q){return GG(Q)>Y?GG(Q):Y},0)},o7=function(J,Z){return Array(Z+1).join(J)},qE=function(J,Z,$,X){let Y=D6(J);if(Z+1>=Y){let Q=Z-Y;switch(X){case"right":{J=o7($,Q)+J;break}case"center":{let K=Math.ceil(Q/2),G=Q-K;J=o7($,G)+J+o7($,K);break}default:{J=J+o7($,Q);break}}}return J},e7=function(J,Z,$){Z="\x1B["+Z+"m",$="\x1B["+$+"m",u4[Z]={set:J,to:!0},u4[$]={set:J,to:!1},u4[J]={on:Z,off:$}},FG=function(J,Z){let $=Z[1]?parseInt(Z[1].split(";")[0]):0;if($>=30&&$<=39||$>=90&&$<=97){J.lastForegroundAdded=Z[0];return}if($>=40&&$<=49||$>=100&&$<=107){J.lastBackgroundAdded=Z[0];return}if($===0){for(let Y in J)if(Object.prototype.hasOwnProperty.call(J,Y))delete J[Y];return}let X=u4[Z[0]];if(X)J[X.set]=X.to},WE=function(J){let Z=_9(!0),$=Z.exec(J),X={};while($!==null)FG(X,$),$=Z.exec(J);return X},qG=function(J,Z){let{lastBackgroundAdded:$,lastForegroundAdded:X}=J;if(delete J.lastBackgroundAdded,delete J.lastForegroundAdded,Object.keys(J).forEach(function(Y){if(J[Y])Z+=u4[Y].off}),$&&$!="\x1B[49m")Z+="\x1B[49m";if(X&&X!="\x1B[39m")Z+="\x1B[39m";return Z},HE=function(J,Z){let{lastBackgroundAdded:$,lastForegroundAdded:X}=J;if(delete J.lastBackgroundAdded,delete J.lastForegroundAdded,Object.keys(J).forEach(function(Y){if(J[Y])Z=u4[Y].on+Z}),$&&$!="\x1B[49m")Z=$+Z;if(X&&X!="\x1B[39m")Z=X+Z;return Z},VE=function(J,Z){if(J.length===D6(J))return J.substr(0,Z);while(D6(J)>Z)J=J.slice(0,-1);return J},zE=function(J,Z){let $=_9(!0),X=J.split(_9()),Y=0,Q=0,K="",G,F={};while(Q<Z){G=$.exec(J);let q=X[Y];if(Y++,Q+D6(q)>Z)q=VE(q,Z-Q);if(K+=q,Q+=D6(q),Q<Z){if(!G)break;K+=G[0],FG(F,G)}}return qG(F,K)},UE=function(J,Z,$){if($=$||"\u2026",D6(J)<=Z)return J;return Z-=D6($),zE(J,Z)+$},ME=function(){return{chars:{top:"\u2500","top-mid":"\u252C","top-left":"\u250C","top-right":"\u2510",bottom:"\u2500","bottom-mid":"\u2534","bottom-left":"\u2514","bottom-right":"\u2518",left:"\u2502","left-mid":"\u251C",mid:"\u2500","mid-mid":"\u253C",right:"\u2502","right-mid":"\u2524",middle:"\u2502"},truncate:"\u2026",colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:["red"],border:["grey"],compact:!1},head:[]}},jE=function(J,Z){J=J||{},Z=Z||ME();let $=Object.assign({},Z,J);return $.chars=Object.assign({},Z.chars,J.chars),$.style=Object.assign({},Z.style,J.style),$},AE=function(J,Z){let $=[],X=Z.split(/(\s+)/g),Y=[],Q=0,K;for(let G=0;G<X.length;G+=2){let F=X[G],q=Q+D6(F);if(Q>0&&K)q+=K.length;if(q>J){if(Q!==0)$.push(Y.join(""));Y=[F],Q=D6(F)}else Y.push(K||"",F),Q=q;K=X[G+1]}if(Q)$.push(Y.join(""));return $},LE=function(J,Z){let $=[],X="";function Y(K,G){if(X.length&&G)X+=G;X+=K;while(X.length>J)$.push(X.slice(0,J)),X=X.slice(J)}let Q=Z.split(/(\s+)/g);for(let K=0;K<Q.length;K+=2)Y(Q[K],K&&Q[K-1]);if(X.length)$.push(X);return $},wE=function(J,Z,$=!0){let X=[];Z=Z.split("\n");const Y=$?AE:LE;for(let Q=0;Q<Z.length;Q++)X.push.apply(X,Y(J,Z[Q]));return X},RE=function(J){let Z={},$=[];for(let X=0;X<J.length;X++){let Y=HE(Z,J[X]);Z=WE(Y);let Q=Object.assign({},Z);$.push(qG(Q,Y))}return $},DE=function(J,Z){return["\x1B]","8",";",";",J||Z,"\x07",Z,"\x1B]","8",";",";","\x07"].join("")},GG=KG(),u4={};e7("bold",1,22);e7("italics",3,23);e7("underline",4,24);e7("inverse",7,27);e7("strikethrough",9,29);WG.exports={strlen:D6,repeat:o7,pad:qE,truncate:UE,mergeOptions:jE,wordWrap:wE,colorizeLines:RE,hyperlink:DE}});var UG=V((_r,zG)=>{var VG={};zG.exports=VG;var HG={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(HG).forEach(function(J){var Z=HG[J],$=VG[J]=[];$.open="\x1B["+Z[0]+"m",$.close="\x1B["+Z[1]+"m"})});var jG=V((fr,MG)=>{MG.exports=function(J,Z){Z=Z||process.argv;var $=Z.indexOf("--"),X=/^-{1,2}/.test(J)?"":"--",Y=Z.indexOf(X+J);return Y!==-1&&($===-1?!0:Y<$)}});var LG=V((vr,AG)=>{var TE=function(J){if(J===0)return!1;return{level:J,hasBasic:!0,has256:J>=2,has16m:J>=3}},IE=function(J){if(d4===!1)return 0;if(Z6("color=16m")||Z6("color=full")||Z6("color=truecolor"))return 3;if(Z6("color=256"))return 2;if(J&&!J.isTTY&&d4!==!0)return 0;var Z=d4?1:0;if(process.platform==="win32"){var $=PE.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number($[0])>=10&&Number($[2])>=10586)return Number($[2])>=14931?3:2;return 1}if("CI"in X0){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(Y){return Y in X0})||X0.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in X0)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X0.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in X0){var X=parseInt((X0.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X0.TERM_PROGRAM){case"iTerm.app":return X>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(X0.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(X0.TERM))return 1;if("COLORTERM"in X0)return 1;if(X0.TERM==="dumb")return Z;return Z},R$=function(J){var Z=IE(J);return TE(Z)},PE=import.meta.require("os"),Z6=jG(),X0=process.env,d4=void 0;if(Z6("no-color")||Z6("no-colors")||Z6("color=false"))d4=!1;else if(Z6("color")||Z6("colors")||Z6("color=true")||Z6("color=always"))d4=!0;if("FORCE_COLOR"in X0)d4=X0.FORCE_COLOR.length===0||parseInt(X0.FORCE_COLOR,10)!==0;AG.exports={supportsColor:R$,stdout:R$(process.stdout),stderr:R$(process.stderr)}});var RG=V((xr,wG)=>{wG.exports=function J(Z,$){var X="";Z=Z||"Run the trap, drop the bass",Z=Z.split("");var Y={a:["@","\u0104","\u023A","\u0245","\u0394","\u039B","\u0414"],b:["\xDF","\u0181","\u0243","\u026E","\u03B2","\u0E3F"],c:["\xA9","\u023B","\u03FE"],d:["\xD0","\u018A","\u0500","\u0501","\u0502","\u0503"],e:["\xCB","\u0115","\u018E","\u0258","\u03A3","\u03BE","\u04BC","\u0A6C"],f:["\u04FA"],g:["\u0262"],h:["\u0126","\u0195","\u04A2","\u04BA","\u04C7","\u050A"],i:["\u0F0F"],j:["\u0134"],k:["\u0138","\u04A0","\u04C3","\u051E"],l:["\u0139"],m:["\u028D","\u04CD","\u04CE","\u0520","\u0521","\u0D69"],n:["\xD1","\u014B","\u019D","\u0376","\u03A0","\u048A"],o:["\xD8","\xF5","\xF8","\u01FE","\u0298","\u047A","\u05DD","\u06DD","\u0E4F"],p:["\u01F7","\u048E"],q:["\u09CD"],r:["\xAE","\u01A6","\u0210","\u024C","\u0280","\u042F"],s:["\xA7","\u03DE","\u03DF","\u03E8"],t:["\u0141","\u0166","\u0373"],u:["\u01B1","\u054D"],v:["\u05D8"],w:["\u0428","\u0460","\u047C","\u0D70"],x:["\u04B2","\u04FE","\u04FC","\u04FD"],y:["\xA5","\u04B0","\u04CB"],z:["\u01B5","\u0240"]};return Z.forEach(function(Q){Q=Q.toLowerCase();var K=Y[Q]||[" "],G=Math.floor(Math.random()*K.length);if(typeof Y[Q]!=="undefined")X+=Y[Q][G];else X+=Q}),X}});var PG=V((br,DG)=>{DG.exports=function J(Z,$){Z=Z||" he is here ";var X={up:["\u030D","\u030E","\u0304","\u0305","\u033F","\u0311","\u0306","\u0310","\u0352","\u0357","\u0351","\u0307","\u0308","\u030A","\u0342","\u0313","\u0308","\u034A","\u034B","\u034C","\u0303","\u0302","\u030C","\u0350","\u0300","\u0301","\u030B","\u030F","\u0312","\u0313","\u0314","\u033D","\u0309","\u0363","\u0364","\u0365","\u0366","\u0367","\u0368","\u0369","\u036A","\u036B","\u036C","\u036D","\u036E","\u036F","\u033E","\u035B","\u0346","\u031A"],down:["\u0316","\u0317","\u0318","\u0319","\u031C","\u031D","\u031E","\u031F","\u0320","\u0324","\u0325","\u0326","\u0329","\u032A","\u032B","\u032C","\u032D","\u032E","\u032F","\u0330","\u0331","\u0332","\u0333","\u0339","\u033A","\u033B","\u033C","\u0345","\u0347","\u0348","\u0349","\u034D","\u034E","\u0353","\u0354","\u0355","\u0356","\u0359","\u035A","\u0323"],mid:["\u0315","\u031B","\u0300","\u0301","\u0358","\u0321","\u0322","\u0327","\u0328","\u0334","\u0335","\u0336","\u035C","\u035D","\u035E","\u035F","\u0360","\u0362","\u0338","\u0337","\u0361"," \u0489"]},Y=[].concat(X.up,X.down,X.mid);function Q(F){var q=Math.floor(Math.random()*F);return q}function K(F){var q=!1;return Y.filter(function(W){q=W===F}),q}function G(F,q){var W="",H,U;q=q||{},q.up=typeof q.up!=="undefined"?q.up:!0,q.mid=typeof q.mid!=="undefined"?q.mid:!0,q.down=typeof q.down!=="undefined"?q.down:!0,q.size=typeof q.size!=="undefined"?q.size:"maxi",F=F.split("");for(U in F){if(K(U))continue;switch(W=W+F[U],H={up:0,down:0,mid:0},q.size){case"mini":H.up=Q(8),H.mid=Q(2),H.down=Q(8);break;case"maxi":H.up=Q(16)+3,H.mid=Q(4)+1,H.down=Q(64)+3;break;default:H.up=Q(8)+1,H.mid=Q(6)/2,H.down=Q(8)+1;break}var j=["up","mid","down"];for(var z in j){var A=j[z];for(var T=0;T<=H[A];T++)if(q[A])W=W+X[A][Q(X[A].length)]}}return W}return G(Z,$)}});var IG=V((gr,TG)=>{TG.exports=function(J){return function(Z,$,X){if(Z===" ")return Z;switch($%3){case 0:return J.red(Z);case 1:return J.white(Z);case 2:return J.blue(Z)}}}});var BG=V((mr,NG)=>{NG.exports=function(J){return function(Z,$,X){return $%2===0?Z:J.inverse(Z)}}});var CG=V((ur,EG)=>{EG.exports=function(J){var Z=["red","yellow","green","blue","magenta"];return function($,X,Y){if($===" ")return $;else return J[Z[X++%Z.length]]($)}}});var SG=V((dr,hG)=>{hG.exports=function(J){var Z=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function($,X,Y){return $===" "?$:J[Z[Math.round(Math.random()*(Z.length-2))]]($)}}});var vG=V((pr,fG)=>{var yG=function(J){var Z=function $(){return SE.apply($,arguments)};return Z._styles=J,Z.__proto__=hE,Z},SE=function(){var J=Array.prototype.slice.call(arguments),Z=J.map(function(K){if(K!=null&&K.constructor===String)return K;else return NE.inspect(K)}).join(" ");if(!d.enabled||!Z)return Z;var $=Z.indexOf("\n")!=-1,X=this._styles,Y=X.length;while(Y--){var Q=X4[X[Y]];if(Z=Q.open+Z.replace(Q.closeRe,Q.open)+Q.close,$)Z=Z.replace(BE,function(K){return Q.close+K+Q.open})}return Z},OE=function(){var J={};return Object.keys(_G).forEach(function(Z){J[Z]={get:function(){return yG([Z])}}}),J},d={};fG.exports=d;d.themes={};var NE=import.meta.require("util"),X4=d.styles=UG(),kG=Object.defineProperties,BE=new RegExp(/[\r\n]+/g);d.supportsColor=LG().supportsColor;if(typeof d.enabled==="undefined")d.enabled=d.supportsColor()!==!1;d.enable=function(){d.enabled=!0};d.disable=function(){d.enabled=!1};d.stripColors=d.strip=function(J){return(""+J).replace(/\x1B\[\d+m/g,"")};var cr=d.stylize=function J(Z,$){if(!d.enabled)return Z+"";var X=X4[$];if(!X&&$ in d)return d[$](Z);return X.open+Z+X.close},EE=/[|\\{}()[\]^$+*?.]/g,CE=function(J){if(typeof J!=="string")throw new TypeError("Expected a string");return J.replace(EE,"\\$&")},_G=function(){var J={};return X4.grey=X4.gray,Object.keys(X4).forEach(function(Z){X4[Z].closeRe=new RegExp(CE(X4[Z].close),"g"),J[Z]={get:function(){return yG(this._styles.concat(Z))}}}),J}(),hE=kG(function J(){},_G);d.setTheme=function(J){if(typeof J==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller\'s) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + \'/../themes/generic-logging.js\'); The new syntax looks like colors.setTheme(require(__dirname + \'/../themes/generic-logging.js\'));");return}for(var Z in J)(function($){d[$]=function(X){if(typeof J[$]==="object"){var Y=X;for(var Q in J[$])Y=d[J[$][Q]](Y);return Y}return d[J[$]](X)}})(Z)};var kE=function J(Z,$){var X=$.split("");return X=X.map(Z),X.join("")};d.trap=RG();d.zalgo=PG();d.maps={};d.maps.america=IG()(d);d.maps.zebra=BG()(d);d.maps.rainbow=CG()(d);d.maps.random=SG()(d);for(OG in d.maps)(function(J){d[J]=function(Z){return kE(d.maps[J],Z)}})(OG);var OG;kG(d,OE())});var bG=V((lr,xG)=>{var yE=vG();xG.exports=yE});var dG=V((ar,x9)=>{var gG=function(...J){return J.filter((Z)=>Z!==void 0&&Z!==null).shift()},D$=function(J,Z,$,X){let Y=$.split("-");if(Y.length>1)Y[1]=Y[1].charAt(0).toUpperCase()+Y[1].substr(1),Y=Y.join(""),X[Y]=gG(J[Y],J[$],Z[Y],Z[$]);else X[$]=gG(J[$],Z[$])},fE=function(J,Z,$){let X=J[Z];for(let Y=1;Y<$;Y++)X+=1+J[Z+Y];return X},mG=function(J,Z){return J+Z+1},{info:_E,debug:uG}=y9(),N0=w$();class J5{constructor(J){this.setOptions(J),this.x=null,this.y=null}setOptions(J){if(["boolean","number","string"].indexOf(typeof J)!==-1)J={content:""+J};J=J||{},this.options=J;let Z=J.content;if(["boolean","number","string"].indexOf(typeof Z)!==-1)this.content=String(Z);else if(!Z)this.content=this.options.href||"";else throw new Error("Content needs to be a primitive, got: "+typeof Z);if(this.colSpan=J.colSpan||1,this.rowSpan=J.rowSpan||1,this.options.href)Object.defineProperty(this,"href",{get(){return this.options.href}})}mergeTableOptions(J,Z){this.cells=Z;let $=this.options.chars||{},X=J.chars,Y=this.chars={};vE.forEach(function(G){D$($,X,G,Y)}),this.truncate=this.options.truncate||J.truncate;let Q=this.options.style=this.options.style||{},K=J.style;D$(Q,K,"padding-left",this),D$(Q,K,"padding-right",this),this.head=Q.head||K.head,this.border=Q.border||K.border,this.fixedWidth=J.colWidths[this.x],this.lines=this.computeLines(J),this.desiredWidth=N0.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(J){const Z=J.wordWrap||J.textWrap,{wordWrap:$=Z}=this.options;if(this.fixedWidth&&$){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let Q=1;while(Q<this.colSpan)this.fixedWidth+=J.colWidths[this.x+Q],Q++}const{wrapOnWordBoundary:X=!0}=J,{wrapOnWordBoundary:Y=X}=this.options;return this.wrapLines(N0.wordWrap(this.fixedWidth,this.content,Y))}return this.wrapLines(this.content.split("\n"))}wrapLines(J){const Z=N0.colorizeLines(J);if(this.href)return Z.map(($)=>N0.hyperlink(this.href,$));return Z}init(J){let Z=this.x,$=this.y;this.widths=J.colWidths.slice(Z,Z+this.colSpan),this.heights=J.rowHeights.slice($,$+this.rowSpan),this.width=this.widths.reduce(mG,-1),this.height=this.heights.reduce(mG,-1),this.hAlign=this.options.hAlign||J.colAligns[Z],this.vAlign=this.options.vAlign||J.rowAligns[$],this.drawRight=Z+this.colSpan==J.colWidths.length}draw(J,Z){if(J=="top")return this.drawTop(this.drawRight);if(J=="bottom")return this.drawBottom(this.drawRight);let $=N0.truncate(this.content,10,this.truncate);if(!J)_E(`${this.y}-${this.x}: ${this.rowSpan-J}x${this.colSpan} Cell ${$}`);let X=Math.max(this.height-this.lines.length,0),Y;switch(this.vAlign){case"center":Y=Math.ceil(X/2);break;case"bottom":Y=X;break;default:Y=0}if(J<Y||J>=Y+this.lines.length)return this.drawEmpty(this.drawRight,Z);let Q=this.lines.length>this.height&&J+1>=this.height;return this.drawLine(J-Y,this.drawRight,Q,Z)}drawTop(J){let Z=[];if(this.cells)this.widths.forEach(function($,X){Z.push(this._topLeftChar(X)),Z.push(N0.repeat(this.chars[this.y==0?"top":"mid"],$))},this);else Z.push(this._topLeftChar(0)),Z.push(N0.repeat(this.chars[this.y==0?"top":"mid"],this.width));if(J)Z.push(this.chars[this.y==0?"topRight":"rightMid"]);return this.wrapWithStyleColors("border",Z.join(""))}_topLeftChar(J){let Z=this.x+J,$;if(this.y==0)$=Z==0?"topLeft":J==0?"topMid":"top";else if(Z==0)$="leftMid";else if($=J==0?"midMid":"bottomMid",this.cells){if(this.cells[this.y-1][Z]instanceof J5.ColSpanCell)$=J==0?"topMid":"mid";if(J==0){let Y=1;while(this.cells[this.y][Z-Y]instanceof J5.ColSpanCell)Y++;if(this.cells[this.y][Z-Y]instanceof J5.RowSpanCell)$="leftMid"}}return this.chars[$]}wrapWithStyleColors(J,Z){if(this[J]&&this[J].length)try{let $=bG();for(let X=this[J].length-1;X>=0;X--)$=$[this[J][X]];return $(Z)}catch($){return Z}else return Z}drawLine(J,Z,$,X){let Y=this.chars[this.x==0?"left":"middle"];if(this.x&&X&&this.cells){let H=this.cells[this.y+X][this.x-1];while(H instanceof f9)H=this.cells[H.y][H.x-1];if(!(H instanceof v9))Y=this.chars.rightMid}let Q=N0.repeat(" ",this.paddingLeft),K=Z?this.chars.right:"",G=N0.repeat(" ",this.paddingRight),F=this.lines[J],q=this.width-(this.paddingLeft+this.paddingRight);if($)F+=this.truncate||"\u2026";let W=N0.truncate(F,q,this.truncate);return W=N0.pad(W,q," ",this.hAlign),W=Q+W+G,this.stylizeLine(Y,W,K)}stylizeLine(J,Z,$){if(J=this.wrapWithStyleColors("border",J),$=this.wrapWithStyleColors("border",$),this.y===0)Z=this.wrapWithStyleColors("head",Z);return J+Z+$}drawBottom(J){let Z=this.chars[this.x==0?"bottomLeft":"bottomMid"],$=N0.repeat(this.chars.bottom,this.width),X=J?this.chars.bottomRight:"";return this.wrapWithStyleColors("border",Z+$+X)}drawEmpty(J,Z){let $=this.chars[this.x==0?"left":"middle"];if(this.x&&Z&&this.cells){let Q=this.cells[this.y+Z][this.x-1];while(Q instanceof f9)Q=this.cells[Q.y][Q.x-1];if(!(Q instanceof v9))$=this.chars.rightMid}let X=J?this.chars.right:"",Y=N0.repeat(" ",this.width);return this.stylizeLine($,Y,X)}}class f9{constructor(){}draw(J){if(typeof J==="number")uG(`${this.y}-${this.x}: 1x1 ColSpanCell`);return""}init(){}mergeTableOptions(){}}class v9{constructor(J){this.originalCell=J}init(J){let Z=this.y,$=this.originalCell.y;this.cellOffset=Z-$,this.offset=fE(J.rowHeights,$,this.cellOffset)}draw(J){if(J=="top")return this.originalCell.draw(this.offset,this.cellOffset);if(J=="bottom")return this.originalCell.draw("bottom");return uG(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+J)}mergeTableOptions(){}}var vE=["top","top-mid","top-left","top-right","bottom","bottom-mid","bottom-left","bottom-right","left","left-mid","mid","mid-mid","right","right-mid","middle"];x9.exports=J5;x9.exports.ColSpanCell=f9;x9.exports.RowSpanCell=v9});var lG=V((ir,pG)=>{var cG=function(J,Z,$,X){return function(Y,Q){let K=[],G=[],F={};Q.forEach(function(q){q.forEach(function(W){if((W[J]||1)>1)G.push(W);else K[W[$]]=Math.max(K[W[$]]||0,W[Z]||0,X)})}),Y.forEach(function(q,W){if(typeof q==="number")K[W]=q});for(let q=G.length-1;q>=0;q--){let W=G[q],H=W[J],U=W[$],j=K[U],z=typeof Y[U]==="number"?0:1;if(typeof j==="number"){for(let A=1;A<H;A++)if(j+=1+K[U+A],typeof Y[U+A]!=="number")z++}else if(j=Z==="desiredWidth"?W.desiredWidth-1:1,!F[U]||F[U]<j)F[U]=j;if(W[Z]>j){let A=0;while(z>0&&W[Z]>j){if(typeof Y[U+A]!=="number"){let T=Math.round((W[Z]-j)/z);j+=T,K[U+A]+=T,z--}A++}}}Object.assign(Y,K,F);for(let q=0;q<Y.length;q++)Y[q]=Math.max(X,Y[q]||0)}},{warn:xE,debug:bE}=y9(),P$=dG(),{ColSpanCell:gE,RowSpanCell:mE}=P$;(function(){function J(j,z){if(j[z]>0)return J(j,z+1);return z}function Z(j){let z={};j.forEach(function(A,T){let w=0;A.forEach(function(N){N.y=T,N.x=T?J(z,w):w;const P=N.rowSpan||1,f=N.colSpan||1;if(P>1)for(let $0=0;$0<f;$0++)z[N.x+$0]=P;w=N.x+f}),Object.keys(z).forEach((N)=>{if(z[N]--,z[N]<1)delete z[N]})})}function $(j){let z=0;return j.forEach(function(A){A.forEach(function(T){z=Math.max(z,T.x+(T.colSpan||1))})}),z}function X(j){return j.length}function Y(j,z){let A=j.y,T=j.y-1+(j.rowSpan||1),w=z.y,N=z.y-1+(z.rowSpan||1),P=!(A>N||w>T),f=j.x,$0=j.x-1+(j.colSpan||1),A8=z.x,k=z.x-1+(z.colSpan||1),B=!(f>k||A8>$0);return P&&B}function Q(j,z,A){let T=Math.min(j.length-1,A),w={x:z,y:A};for(let N=0;N<=T;N++){let P=j[N];for(let f=0;f<P.length;f++)if(Y(w,P[f]))return!0}return!1}function K(j,z,A,T){for(let w=A;w<T;w++)if(Q(j,w,z))return!1;return!0}function G(j){j.forEach(function(z,A){z.forEach(function(T){for(let w=1;w<T.rowSpan;w++){let N=new mE(T);N.x=T.x,N.y=T.y+w,N.colSpan=T.colSpan,q(N,j[A+w])}})})}function F(j){for(let z=j.length-1;z>=0;z--){let A=j[z];for(let T=0;T<A.length;T++){let w=A[T];for(let N=1;N<w.colSpan;N++){let P=new gE;P.x=w.x+N,P.y=w.y,A.splice(T+1,0,P)}}}}function q(j,z){let A=0;while(A<z.length&&z[A].x<j.x)A++;z.splice(A,0,j)}function W(j){let z=X(j),A=$(j);bE(`Max rows: ${z}; Max cols: ${A}`);for(let T=0;T<z;T++)for(let w=0;w<A;w++)if(!Q(j,w,T)){let N={x:w,y:T,colSpan:1,rowSpan:1};w++;while(w<A&&!Q(j,w,T))N.colSpan++,w++;let P=T+1;while(P<z&&K(j,P,N.x,N.x+N.colSpan))N.rowSpan++,P++;let f=new P$(N);f.x=N.x,f.y=N.y,xE(`Missing cell at ${f.y}-${f.x}.`),q(f,j[T])}}function H(j){return j.map(function(z){if(!Array.isArray(z)){let A=Object.keys(z)[0];if(z=z[A],Array.isArray(z))z=z.slice(),z.unshift(A);else z=[A,z]}return z.map(function(A){return new P$(A)})})}function U(j){let z=H(j);return Z(z),W(z),G(z),F(z),z}pG.exports={makeTableLayout:U,layoutTable:Z,addRowSpanCells:G,maxWidth:$,fillInTable:W,computeWidths:cG("colSpan","desiredWidth","x",1),computeHeights:cG("rowSpan","desiredHeight","y",1)}})()});var iG=V((sr,aG)=>{var I$=function(J,Z,$){let X=[];J.forEach(function(Q){X.push(Q.draw(Z))});let Y=X.join("");if(Y.length)$.push(Y)},u6=y9(),uE=w$(),T$=lG();class N$ extends Array{constructor(J){super();const Z=uE.mergeOptions(J);if(Object.defineProperty(this,"options",{value:Z,enumerable:Z.debug}),Z.debug){switch(typeof Z.debug){case"boolean":u6.setDebugLevel(u6.WARN);break;case"number":u6.setDebugLevel(Z.debug);break;case"string":u6.setDebugLevel(parseInt(Z.debug,10));break;default:u6.setDebugLevel(u6.WARN),u6.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof Z.debug}`)}Object.defineProperty(this,"messages",{get(){return u6.debugMessages()}})}}toString(){let J=this,Z=this.options.head&&this.options.head.length;if(Z){if(J=[this.options.head],this.length)J.push.apply(J,this)}else this.options.style.head=[];let $=T$.makeTableLayout(J);$.forEach(function(Y){Y.forEach(function(Q){Q.mergeTableOptions(this.options,$)},this)},this),T$.computeWidths(this.options.colWidths,$),T$.computeHeights(this.options.rowHeights,$),$.forEach(function(Y){Y.forEach(function(Q){Q.init(this.options)},this)},this);let X=[];for(let Y=0;Y<$.length;Y++){let Q=$[Y],K=this.options.rowHeights[Y];if(Y===0||!this.options.style.compact||Y==1&&Z)I$(Q,"top",X);for(let G=0;G<K;G++)I$(Q,G,X);if(Y+1==$.length)I$(Q,"bottom",X)}return X.join("\n")}get width(){return this.toString().split("\n")[0].length}}N$.reset=()=>u6.reset();aG.exports=N$});var j1=V((Zo,tG)=>{var nG=function(J,Z){let $=0,X,Y="",Q="";for(;$<J.length;$++)if(X=J[$],Y+=X.open,Q+=X.close,Z.includes(X.close))Z=Z.replace(X.rgx,X.close+X.open);return Y+Z+Q},lE=function(J,Z){let $={has:J,keys:Z};return $.reset=Z1.reset.bind($),$.bold=Z1.bold.bind($),$.dim=Z1.dim.bind($),$.italic=Z1.italic.bind($),$.underline=Z1.underline.bind($),$.inverse=Z1.inverse.bind($),$.hidden=Z1.hidden.bind($),$.strikethrough=Z1.strikethrough.bind($),$.black=Z1.black.bind($),$.red=Z1.red.bind($),$.green=Z1.green.bind($),$.yellow=Z1.yellow.bind($),$.blue=Z1.blue.bind($),$.magenta=Z1.magenta.bind($),$.cyan=Z1.cyan.bind($),$.white=Z1.white.bind($),$.gray=Z1.gray.bind($),$.grey=Z1.grey.bind($),$.bgBlack=Z1.bgBlack.bind($),$.bgRed=Z1.bgRed.bind($),$.bgGreen=Z1.bgGreen.bind($),$.bgYellow=Z1.bgYellow.bind($),$.bgBlue=Z1.bgBlue.bind($),$.bgMagenta=Z1.bgMagenta.bind($),$.bgCyan=Z1.bgCyan.bind($),$.bgWhite=Z1.bgWhite.bind($),$},W1=function(J,Z){let $={open:`\x1B[${J}m`,close:`\x1B[${Z}m`,rgx:new RegExp(`\\x1b\\[${Z}m`,"g")};return function(X){if(this!==void 0&&this.has!==void 0)return this.has.includes(J)||(this.has.push(J),this.keys.push($)),X===void 0?this:Z1.enabled?nG(this.keys,X+""):X+"";return X===void 0?lE([J],[$]):Z1.enabled?nG([$],X+""):X+""}},{FORCE_COLOR:dE,NODE_DISABLE_COLORS:cE,TERM:pE}=process.env,Z1={enabled:!cE&&pE!=="dumb"&&dE!=="0",reset:W1(0,0),bold:W1(1,22),dim:W1(2,22),italic:W1(3,23),underline:W1(4,24),inverse:W1(7,27),hidden:W1(8,28),strikethrough:W1(9,29),black:W1(30,39),red:W1(31,39),green:W1(32,39),yellow:W1(33,39),blue:W1(34,39),magenta:W1(35,39),cyan:W1(36,39),white:W1(37,39),gray:W1(90,39),grey:W1(90,39),bgBlack:W1(40,49),bgRed:W1(41,49),bgGreen:W1(42,49),bgYellow:W1(43,49),bgBlue:W1(44,49),bgMagenta:W1(45,49),bgCyan:W1(46,49),bgWhite:W1(47,49)};tG.exports=Z1});var oG=V(($o,rG)=>{rG.exports=(J,Z)=>{if(J.meta&&J.name!=="escape")return;if(J.ctrl){if(J.name==="a")return"first";if(J.name==="c")return"abort";if(J.name==="d")return"abort";if(J.name==="e")return"last";if(J.name==="g")return"reset"}if(Z){if(J.name==="j")return"down";if(J.name==="k")return"up"}if(J.name==="return")return"submit";if(J.name==="enter")return"submit";if(J.name==="backspace")return"delete";if(J.name==="delete")return"deleteForward";if(J.name==="abort")return"abort";if(J.name==="escape")return"exit";if(J.name==="tab")return"next";if(J.name==="pagedown")return"nextPage";if(J.name==="pageup")return"prevPage";if(J.name==="home")return"home";if(J.name==="end")return"end";if(J.name==="up")return"up";if(J.name==="down")return"down";if(J.name==="right")return"right";if(J.name==="left")return"left";return!1}});var g9=V((Xo,eG)=>{eG.exports=(J)=>{const Z=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),$=new RegExp(Z,"g");return typeof J==="string"?J.replace($,""):J}});var L1=V((Yo,JF)=>{var A1=`${"\x1B"}[`,C$={to(J,Z){if(!Z)return`${A1}${J+1}G`;return`${A1}${Z+1};${J+1}H`},move(J,Z){let $="";if(J<0)$+=`${A1}${-J}D`;else if(J>0)$+=`${A1}${J}C`;if(Z<0)$+=`${A1}${-Z}A`;else if(Z>0)$+=`${A1}${Z}B`;return $},up:(J=1)=>`${A1}${J}A`,down:(J=1)=>`${A1}${J}B`,forward:(J=1)=>`${A1}${J}C`,backward:(J=1)=>`${A1}${J}D`,nextLine:(J=1)=>`${A1}E`.repeat(J),prevLine:(J=1)=>`${A1}F`.repeat(J),left:`${A1}G`,hide:`${A1}?25l`,show:`${A1}?25h`,save:`${"\x1B"}7`,restore:`${"\x1B"}8`},aE={up:(J=1)=>`${A1}S`.repeat(J),down:(J=1)=>`${A1}T`.repeat(J)},iE={screen:`${A1}2J`,up:(J=1)=>`${A1}1J`.repeat(J),down:(J=1)=>`${A1}J`.repeat(J),line:`${A1}2K`,lineEnd:`${A1}K`,lineStart:`${A1}1K`,lines(J){let Z="";for(let $=0;$<J;$++)Z+=this.line+($<J-1?C$.up():"");if(J)Z+=C$.left;return Z}};JF.exports={cursor:C$,scroll:aE,erase:iE,beep:"\x07"}});var QF=V((Qo,YF)=>{var sE=function(J,Z){var $=typeof Symbol!=="undefined"&&J[Symbol.iterator]||J["@@iterator"];if(!$){if(Array.isArray(J)||($=nE(J))||Z&&J&&typeof J.length==="number"){if($)J=$;var X=0,Y=function F(){};return{s:Y,n:function F(){if(X>=J.length)return{done:!0};return{done:!1,value:J[X++]}},e:function F(q){throw q},f:Y}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Q=!0,K=!1,G;return{s:function F(){$=$.call(J)},n:function F(){var q=$.next();return Q=q.done,q},e:function F(q){K=!0,G=q},f:function F(){try{if(!Q&&$.return!=null)$.return()}finally{if(K)throw G}}}},nE=function(J,Z){if(!J)return;if(typeof J==="string")return ZF(J,Z);var $=Object.prototype.toString.call(J).slice(8,-1);if($==="Object"&&J.constructor)$=J.constructor.name;if($==="Map"||$==="Set")return Array.from(J);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return ZF(J,Z)},ZF=function(J,Z){if(Z==null||Z>J.length)Z=J.length;for(var $=0,X=new Array(Z);$<Z;$++)X[$]=J[$];return X},tE=g9(),XF=L1(),$F=XF.erase,rE=XF.cursor,oE=(J)=>[...tE(J)].length;YF.exports=function(J,Z){if(!Z)return $F.line+rE.to(0);let $=0;const X=J.split(/\r?\n/);var Y=sE(X),Q;try{for(Y.s();!(Q=Y.n()).done;){let K=Q.value;$+=1+Math.floor(Math.max(oE(K)-1,0)/Z)}}catch(K){Y.e(K)}finally{Y.f()}return $F.lines($)}});var h$=V((Ko,KF)=>{var Z5={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},eE={arrowUp:Z5.arrowUp,arrowDown:Z5.arrowDown,arrowLeft:Z5.arrowLeft,arrowRight:Z5.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},JC=process.platform==="win32"?eE:Z5;KF.exports=JC});var FF=V((Go,GF)=>{var c4=j1(),Y4=h$(),S$=Object.freeze({password:{scale:1,render:(J)=>"*".repeat(J.length)},emoji:{scale:2,render:(J)=>"\uD83D\uDE03".repeat(J.length)},invisible:{scale:0,render:(J)=>""},default:{scale:1,render:(J)=>`${J}`}}),ZC=(J)=>S$[J]||S$.default,$5=Object.freeze({aborted:c4.red(Y4.cross),done:c4.green(Y4.tick),exited:c4.yellow(Y4.cross),default:c4.cyan("?")}),$C=(J,Z,$)=>Z?$5.aborted:$?$5.exited:J?$5.done:$5.default,XC=(J)=>c4.gray(J?Y4.ellipsis:Y4.pointerSmall),YC=(J,Z)=>c4.gray(J?Z?Y4.pointerSmall:"+":Y4.line);GF.exports={styles:S$,render:ZC,symbols:$5,symbol:$C,delimiter:XC,item:YC}});var WF=V((Fo,qF)=>{var QC=g9();qF.exports=function(J,Z){let $=String(QC(J)||"").split(/\r?\n/);if(!Z)return $.length;return $.map((X)=>Math.ceil(X.length/Z)).reduce((X,Y)=>X+Y)}});var VF=V((qo,HF)=>{HF.exports=(J,Z={})=>{const $=Number.isSafeInteger(parseInt(Z.margin))?new Array(parseInt(Z.margin)).fill(" ").join(""):Z.margin||"",X=Z.width;return(J||"").split(/\r?\n/g).map((Y)=>Y.split(/\s+/g).reduce((Q,K)=>{if(K.length+$.length>=X||Q[Q.length-1].length+K.length+1<X)Q[Q.length-1]+=` ${K}`;else Q.push(`${$}${K}`);return Q},[$]).join("\n")).join("\n")}});var UF=V((Wo,zF)=>{zF.exports=(J,Z,$)=>{$=$||Z;let X=Math.min(Z-$,J-Math.floor($/2));if(X<0)X=0;let Y=Math.min(X+$,Z);return{startIndex:X,endIndex:Y}}});var X6=V((Ho,MF)=>{MF.exports={action:oG(),clear:QF(),style:FF(),strip:g9(),figures:h$(),lines:WF(),wrap:VF(),entriesToDisplay:UF()}});var c6=V((Vo,wF)=>{var jF=import.meta.require("readline"),KC=X6(),GC=KC.action,FC=import.meta.require("events"),AF=L1(),qC=AF.beep,WC=AF.cursor,HC=j1();class LF extends FC{constructor(J={}){super();this.firstRender=!0,this.in=J.stdin||process.stdin,this.out=J.stdout||process.stdout,this.onRender=(J.onRender||(()=>{return})).bind(this);const Z=jF.createInterface({input:this.in,escapeCodeTimeout:50});if(jF.emitKeypressEvents(this.in,Z),this.in.isTTY)this.in.setRawMode(!0);const $=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,X=(Y,Q)=>{let K=GC(Q,$);if(K===!1)this._&&this._(Y,Q);else if(typeof this[K]==="function")this[K](Q);else this.bell()};this.close=()=>{if(this.out.write(WC.show),this.in.removeListener("keypress",X),this.in.isTTY)this.in.setRawMode(!1);Z.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",X)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(qC)}render(){if(this.onRender(HC),this.firstRender)this.firstRender=!1}}wF.exports=LF});var NF=V((zo,IF)=>{var RF=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},DF=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){RF(Q,X,Y,K,G,"next",F)}function G(F){RF(Q,X,Y,K,G,"throw",F)}K(void 0)})}},m9=j1(),VC=c6(),PF=L1(),zC=PF.erase,X5=PF.cursor,u9=X6(),O$=u9.style,k$=u9.clear,UC=u9.lines,MC=u9.figures;class TF extends VC{constructor(J={}){super(J);this.transform=O$.render(J.style),this.scale=this.transform.scale,this.msg=J.message,this.initial=J.initial||"",this.validator=J.validate||(()=>!0),this.value="",this.errorMsg=J.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=k$("",this.out.columns),this.render()}set value(J){if(!J&&this.initial)this.placeholder=!0,this.rendered=m9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render(J);this._value=J,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var J=this;return DF(function*(){let Z=yield J.validator(J.value);if(typeof Z==="string")J.errorMsg=Z,Z=!1;J.error=!Z})()}submit(){var J=this;return DF(function*(){if(J.value=J.value||J.initial,J.cursorOffset=0,J.cursor=J.rendered.length,yield J.validate(),J.error){J.red=!0,J.fire(),J.render();return}J.done=!0,J.aborted=!1,J.fire(),J.render(),J.out.write("\n"),J.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(J){if(this.placeholder)return;this.cursor=this.cursor+J,this.cursorOffset+=J}_(J,Z){let $=this.value.slice(0,this.cursor),X=this.value.slice(this.cursor);this.value=`${$}${J}${X}`,this.red=!1,this.cursor=this.placeholder?0:$.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let J=this.value.slice(0,this.cursor-1),Z=this.value.slice(this.cursor);if(this.value=`${J}${Z}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let J=this.value.slice(0,this.cursor),Z=this.value.slice(this.cursor+1);if(this.value=`${J}${Z}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(X5.down(UC(this.outputError,this.out.columns)-1)+k$(this.outputError,this.out.columns));this.out.write(k$(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[O$.symbol(this.done,this.aborted),m9.bold(this.msg),O$.delimiter(this.done),this.red?m9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":MC.pointerSmall} ${m9.red().italic(Z)}`,"");this.out.write(zC.line+X5.to(0)+this.outputText+X5.save+this.outputError+X5.restore+X5.move(this.cursorOffset,0))}}IF.exports=TF});var SF=V((Uo,hF)=>{var p6=j1(),jC=c6(),Y5=X6(),BF=Y5.style,EF=Y5.clear,d9=Y5.figures,AC=Y5.wrap,LC=Y5.entriesToDisplay,wC=L1(),RC=wC.cursor;class CF extends jC{constructor(J={}){super(J);this.msg=J.message,this.hint=J.hint||"- Use arrow-keys. Return to submit.",this.warn=J.warn||"- This option is disabled",this.cursor=J.initial||0,this.choices=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),value:Z&&(Z.value===void 0?$:Z.value),description:Z&&Z.description,selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.optionsPerPage=J.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=EF("",this.out.columns),this.render()}moveCursor(J){this.cursor=J,this.value=this.choices[J].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(J,Z){if(J===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(RC.hide);else this.out.write(EF(this.outputText,this.out.columns));super.render();let J=LC(this.cursor,this.choices.length,this.optionsPerPage),Z=J.startIndex,$=J.endIndex;if(this.outputText=[BF.symbol(this.done,this.aborted),p6.bold(this.msg),BF.delimiter(!1),this.done?this.selection.title:this.selection.disabled?p6.yellow(this.warn):p6.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let X=Z;X<$;X++){let Y,Q,K="",G=this.choices[X];if(X===Z&&Z>0)Q=d9.arrowUp;else if(X===$-1&&$<this.choices.length)Q=d9.arrowDown;else Q=" ";if(G.disabled)Y=this.cursor===X?p6.gray().underline(G.title):p6.strikethrough().gray(G.title),Q=(this.cursor===X?p6.bold().gray(d9.pointer)+" ":" ")+Q;else if(Y=this.cursor===X?p6.cyan().underline(G.title):G.title,Q=(this.cursor===X?p6.cyan(d9.pointer)+" ":" ")+Q,G.description&&this.cursor===X){if(K=` - ${G.description}`,Q.length+Y.length+K.length>=this.out.columns||G.description.split(/\r?\n/).length>1)K="\n"+AC(G.description,{margin:3,width:this.out.columns})}this.outputText+=`${Q} ${Y}${p6.gray(K)}\n`}}this.out.write(this.outputText)}}hF.exports=CF});var xF=V((Mo,vF)=>{var c9=j1(),DC=c6(),yF=X6(),OF=yF.style,PC=yF.clear,_F=L1(),kF=_F.cursor,TC=_F.erase;class fF extends DC{constructor(J={}){super(J);this.msg=J.message,this.value=!!J.initial,this.active=J.active||"on",this.inactive=J.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(J,Z){if(J===" ")this.value=!this.value;else if(J==="1")this.value=!0;else if(J==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(kF.hide);else this.out.write(PC(this.outputText,this.out.columns));super.render(),this.outputText=[OF.symbol(this.done,this.aborted),c9.bold(this.msg),OF.delimiter(this.done),this.value?this.inactive:c9.cyan().underline(this.inactive),c9.gray("/"),this.value?c9.cyan().underline(this.active):this.active].join(" "),this.out.write(TC.line+kF.to(0)+this.outputText)}}vF.exports=fF});var P6=V((jo,bF)=>{class p9{constructor({token:J,date:Z,parts:$,locales:X}){this.token=J,this.date=Z||new Date,this.parts=$||[this],this.locales=X||{}}up(){}down(){}next(){const J=this.parts.indexOf(this);return this.parts.find((Z,$)=>$>J&&Z instanceof p9)}setTo(J){}prev(){let J=[].concat(this.parts).reverse();const Z=J.indexOf(this);return J.find(($,X)=>X>Z&&$ instanceof p9)}toString(){return String(this.date)}}bF.exports=p9});var uF=V((Ao,mF)=>{var IC=P6();class gF extends IC{constructor(J={}){super(J)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let J=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?J.toUpperCase():J}}mF.exports=gF});var pF=V((Lo,cF)=>{var NC=P6(),BC=(J)=>{return J=J%10,J===1?"st":J===2?"nd":J===3?"rd":"th"};class dF extends NC{constructor(J={}){super(J)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(J){this.date.setDate(parseInt(J.substr(-2)))}toString(){let J=this.date.getDate(),Z=this.date.getDay();return this.token==="DD"?String(J).padStart(2,"0"):this.token==="Do"?J+BC(J):this.token==="d"?Z+1:this.token==="ddd"?this.locales.weekdaysShort[Z]:this.token==="dddd"?this.locales.weekdays[Z]:J}}cF.exports=dF});var iF=V((wo,aF)=>{var EC=P6();class lF extends EC{constructor(J={}){super(J)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(J){this.date.setHours(parseInt(J.substr(-2)))}toString(){let J=this.date.getHours();if(/h/.test(this.token))J=J%12||12;return this.token.length>1?String(J).padStart(2,"0"):J}}aF.exports=lF});var tF=V((Ro,nF)=>{var CC=P6();class sF extends CC{constructor(J={}){super(J)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(J){this.date.setMilliseconds(parseInt(J.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}nF.exports=sF});var eF=V((Do,oF)=>{var hC=P6();class rF extends hC{constructor(J={}){super(J)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(J){this.date.setMinutes(parseInt(J.substr(-2)))}toString(){let J=this.date.getMinutes();return this.token.length>1?String(J).padStart(2,"0"):J}}oF.exports=rF});var $q=V((Po,Zq)=>{var SC=P6();class Jq extends SC{constructor(J={}){super(J)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(J){J=parseInt(J.substr(-2))-1,this.date.setMonth(J<0?0:J)}toString(){let J=this.date.getMonth(),Z=this.token.length;return Z===2?String(J+1).padStart(2,"0"):Z===3?this.locales.monthsShort[J]:Z===4?this.locales.months[J]:String(J+1)}}Zq.exports=Jq});var Qq=V((To,Yq)=>{var OC=P6();class Xq extends OC{constructor(J={}){super(J)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(J){this.date.setSeconds(parseInt(J.substr(-2)))}toString(){let J=this.date.getSeconds();return this.token.length>1?String(J).padStart(2,"0"):J}}Yq.exports=Xq});var Fq=V((Io,Gq)=>{var kC=P6();class Kq extends kC{constructor(J={}){super(J)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(J){this.date.setFullYear(J.substr(-4))}toString(){let J=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?J.substr(-2):J}}Gq.exports=Kq});var Wq=V((No,qq)=>{qq.exports={DatePart:P6(),Meridiem:uF(),Day:pF(),Hours:iF(),Milliseconds:tF(),Minutes:eF(),Month:$q(),Seconds:Qq(),Year:Fq()}});var Dq=V((Bo,Rq)=>{var Hq=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},Vq=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){Hq(Q,X,Y,K,G,"next",F)}function G(F){Hq(Q,X,Y,K,G,"throw",F)}K(void 0)})}},y$=j1(),yC=c6(),_$=X6(),zq=_$.style,Uq=_$.clear,_C=_$.figures,Lq=L1(),fC=Lq.erase,Mq=Lq.cursor,l6=Wq(),jq=l6.DatePart,vC=l6.Meridiem,xC=l6.Day,bC=l6.Hours,gC=l6.Milliseconds,mC=l6.Minutes,uC=l6.Month,dC=l6.Seconds,cC=l6.Year,pC=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,Aq={1:({token:J})=>J.replace(/\\(.)/g,"$1"),2:(J)=>new xC(J),3:(J)=>new uC(J),4:(J)=>new cC(J),5:(J)=>new vC(J),6:(J)=>new bC(J),7:(J)=>new mC(J),8:(J)=>new dC(J),9:(J)=>new gC(J)},lC={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class wq extends yC{constructor(J={}){super(J);this.msg=J.message,this.cursor=0,this.typed="",this.locales=Object.assign(lC,J.locales),this._date=J.initial||new Date,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.mask=J.mask||"YYYY-MM-DD HH:mm:ss",this.clear=Uq("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(J){if(J)this._date.setTime(J.getTime())}set mask(J){let Z;this.parts=[];while(Z=pC.exec(J)){let X=Z.shift(),Y=Z.findIndex((Q)=>Q!=null);this.parts.push(Y in Aq?Aq[Y]({token:Z[Y]||X,date:this.date,parts:this.parts,locales:this.locales}):Z[Y]||X)}let $=this.parts.reduce((X,Y)=>{if(typeof Y==="string"&&typeof X[X.length-1]==="string")X[X.length-1]+=Y;else X.push(Y);return X},[]);this.parts.splice(0),this.parts.push(...$),this.reset()}moveCursor(J){this.typed="",this.cursor=J,this.fire()}reset(){this.moveCursor(this.parts.findIndex((J)=>J instanceof jq)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var J=this;return Vq(function*(){let Z=yield J.validator(J.value);if(typeof Z==="string")J.errorMsg=Z,Z=!1;J.error=!Z})()}submit(){var J=this;return Vq(function*(){if(yield J.validate(),J.error){J.color="red",J.fire(),J.render();return}J.done=!0,J.aborted=!1,J.fire(),J.render(),J.out.write("\n"),J.close()})()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let J=this.parts[this.cursor].prev();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}right(){let J=this.parts[this.cursor].next();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}next(){let J=this.parts[this.cursor].next();this.moveCursor(J?this.parts.indexOf(J):this.parts.findIndex((Z)=>Z instanceof jq)),this.render()}_(J){if(/\d/.test(J))this.typed+=J,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(Mq.hide);else this.out.write(Uq(this.outputText,this.out.columns));if(super.render(),this.outputText=[zq.symbol(this.done,this.aborted),y$.bold(this.msg),zq.delimiter(!1),this.parts.reduce((J,Z,$)=>J.concat($===this.cursor&&!this.done?y$.cyan().underline(Z.toString()):Z),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":_C.pointerSmall} ${y$.red().italic(Z)}`,"");this.out.write(fC.line+Mq.to(0)+this.outputText)}}Rq.exports=wq});var hq=V((Eo,Cq)=>{var Pq=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},Tq=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){Pq(Q,X,Y,K,G,"next",F)}function G(F){Pq(Q,X,Y,K,G,"throw",F)}K(void 0)})}},l9=j1(),aC=c6(),Bq=L1(),a9=Bq.cursor,iC=Bq.erase,i9=X6(),f$=i9.style,sC=i9.figures,Iq=i9.clear,nC=i9.lines,tC=/[0-9]/,v$=(J)=>J!==void 0,Nq=(J,Z)=>{let $=Math.pow(10,Z);return Math.round(J*$)/$};class Eq extends aC{constructor(J={}){super(J);this.transform=f$.render(J.style),this.msg=J.message,this.initial=v$(J.initial)?J.initial:"",this.float=!!J.float,this.round=J.round||2,this.inc=J.increment||1,this.min=v$(J.min)?J.min:(-Infinity),this.max=v$(J.max)?J.max:Infinity,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(J){if(!J&&J!==0)this.placeholder=!0,this.rendered=l9.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${Nq(J,this.round)}`),this._value=Nq(J,this.round);this.fire()}get value(){return this._value}parse(J){return this.float?parseFloat(J):parseInt(J)}valid(J){return J==="-"||J==="."&&this.float||tC.test(J)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let J=this.value;this.value=J!==""?J:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var J=this;return Tq(function*(){let Z=yield J.validator(J.value);if(typeof Z==="string")J.errorMsg=Z,Z=!1;J.error=!Z})()}submit(){var J=this;return Tq(function*(){if(yield J.validate(),J.error){J.color="red",J.fire(),J.render();return}let Z=J.value;J.value=Z!==""?Z:J.initial,J.done=!0,J.aborted=!1,J.error=!1,J.fire(),J.render(),J.out.write("\n"),J.close()})()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let J=this.value.toString();if(J.length===0)return this.bell();if(this.value=this.parse(J=J.slice(0,-1))||"",this.value!==""&&this.value<this.min)this.value=this.min;this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(J,Z){if(!this.valid(J))return this.bell();const $=Date.now();if($-this.lastHit>1000)this.typed="";if(this.typed+=J,this.lastHit=$,this.color="cyan",J===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire(),this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(a9.down(nC(this.outputError,this.out.columns)-1)+Iq(this.outputError,this.out.columns));this.out.write(Iq(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[f$.symbol(this.done,this.aborted),l9.bold(this.msg),f$.delimiter(this.done),!this.done||!this.done&&!this.placeholder?l9[this.color]().underline(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":sC.pointerSmall} ${l9.red().italic(Z)}`,"");this.out.write(iC.line+a9.to(0)+this.outputText+a9.save+this.outputError+a9.restore)}}Cq.exports=Eq});var x$=V((Co,yq)=>{var T6=j1(),rC=L1(),oC=rC.cursor,eC=c6(),Q5=X6(),Sq=Q5.clear,R8=Q5.figures,Oq=Q5.style,J2=Q5.wrap,Z2=Q5.entriesToDisplay;class kq extends eC{constructor(J={}){super(J);if(this.msg=J.message,this.cursor=J.cursor||0,this.scrollIndex=J.cursor||0,this.hint=J.hint||"",this.warn=J.warn||"- This option is disabled -",this.minSelected=J.min,this.showMinError=!1,this.maxChoices=J.max,this.instructions=J.instructions,this.optionsPerPage=J.optionsPerPage||10,this.value=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),description:Z&&Z.description,value:Z&&(Z.value===void 0?$:Z.value),selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.clear=Sq("",this.out.columns),!J.overrideRender)this.render()}reset(){this.value.map((J)=>!J.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((J)=>J.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const J=this.value.filter((Z)=>Z.selected);if(this.minSelected&&J.length<this.minSelected)this.showMinError=!0,this.render();else this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){if(this.cursor===0)this.cursor=this.value.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.value.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const J=this.value[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const J=!this.value[this.cursor].selected;this.value.filter((Z)=>!Z.disabled).forEach((Z)=>Z.selected=J),this.render()}_(J,Z){if(J===" ")this.handleSpaceToggle();else if(J==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return"\nInstructions:\n"+` ${R8.arrowUp}/${R8.arrowDown}: Highlight option\n`+` ${R8.arrowLeft}/${R8.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===void 0?" a: Toggle all\n":"")+" enter/return: Complete answer"}return""}renderOption(J,Z,$,X){const Y=(Z.selected?T6.green(R8.radioOn):R8.radioOff)+" "+X+" ";let Q,K;if(Z.disabled)Q=J===$?T6.gray().underline(Z.title):T6.strikethrough().gray(Z.title);else if(Q=J===$?T6.cyan().underline(Z.title):Z.title,J===$&&Z.description){if(K=` - ${Z.description}`,Y.length+Q.length+K.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)K="\n"+J2(Z.description,{margin:Y.length,width:this.out.columns})}return Y+Q+T6.gray(K||"")}paginateOptions(J){if(J.length===0)return T6.red("No matches for this query.");let Z=Z2(this.cursor,J.length,this.optionsPerPage),$=Z.startIndex,X=Z.endIndex,Y,Q=[];for(let K=$;K<X;K++){if(K===$&&$>0)Y=R8.arrowUp;else if(K===X-1&&X<J.length)Y=R8.arrowDown;else Y=" ";Q.push(this.renderOption(this.cursor,J[K],K,Y))}return"\n"+Q.join("\n")}renderOptions(J){if(!this.done)return this.paginateOptions(J);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[T6.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)J.push(T6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(oC.hide);super.render();let J=[Oq.symbol(this.done,this.aborted),T6.bold(this.msg),Oq.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=T6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.value),this.out.write(this.clear+J),this.clear=Sq(J,this.out.columns)}}yq.exports=kq});var uq=V((ho,mq)=>{var _q=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},$2=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){_q(Q,X,Y,K,G,"next",F)}function G(F){_q(Q,X,Y,K,G,"throw",F)}K(void 0)})}},K5=j1(),X2=c6(),bq=L1(),Y2=bq.erase,fq=bq.cursor,G5=X6(),b$=G5.style,vq=G5.clear,g$=G5.figures,Q2=G5.wrap,K2=G5.entriesToDisplay,xq=(J,Z)=>J[Z]&&(J[Z].value||J[Z].title||J[Z]),G2=(J,Z)=>J[Z]&&(J[Z].title||J[Z].value||J[Z]),F2=(J,Z)=>{const $=J.findIndex((X)=>X.value===Z||X.title===Z);return $>-1?$:void 0};class gq extends X2{constructor(J={}){super(J);this.msg=J.message,this.suggest=J.suggest,this.choices=J.choices,this.initial=typeof J.initial==="number"?J.initial:F2(J.choices,J.initial),this.select=this.initial||J.cursor||0,this.i18n={noMatches:J.noMatches||"no matches found"},this.fallback=J.fallback||this.initial,this.clearFirst=J.clearFirst||!1,this.suggestions=[],this.input="",this.limit=J.limit||10,this.cursor=0,this.transform=b$.render(J.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=vq("",this.out.columns),this.complete(this.render),this.render()}set fallback(J){this._fb=Number.isSafeInteger(parseInt(J))?parseInt(J):J}get fallback(){let J;if(typeof this._fb==="number")J=this.choices[this._fb];else if(typeof this._fb==="string")J={title:this._fb};return J||this._fb||{title:this.i18n.noMatches}}moveSelect(J){if(this.select=J,this.suggestions.length>0)this.value=xq(this.suggestions,J);else this.value=this.fallback.value;this.fire()}complete(J){var Z=this;return $2(function*(){const $=Z.completing=Z.suggest(Z.input,Z.choices),X=yield $;if(Z.completing!==$)return;Z.suggestions=X.map((Q,K,G)=>({title:G2(G,K),value:xq(G,K),description:Q.description})),Z.completing=!1;const Y=Math.max(X.length-1,0);Z.moveSelect(Math.min(Y,Z.select)),J&&J()})()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(J,Z){let $=this.input.slice(0,this.cursor),X=this.input.slice(this.cursor);this.input=`${$}${J}${X}`,this.cursor=$.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let J=this.input.slice(0,this.cursor-1),Z=this.input.slice(this.cursor);this.input=`${J}${Z}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let J=this.input.slice(0,this.cursor),Z=this.input.slice(this.cursor+1);this.input=`${J}${Z}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(J,Z,$,X){let Y,Q=$?g$.arrowUp:X?g$.arrowDown:" ",K=Z?K5.cyan().underline(J.title):J.title;if(Q=(Z?K5.cyan(g$.pointer)+" ":" ")+Q,J.description){if(Y=` - ${J.description}`,Q.length+K.length+Y.length>=this.out.columns||J.description.split(/\r?\n/).length>1)Y="\n"+Q2(J.description,{margin:3,width:this.out.columns})}return Q+" "+K+K5.gray(Y||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(fq.hide);else this.out.write(vq(this.outputText,this.out.columns));super.render();let J=K2(this.select,this.choices.length,this.limit),Z=J.startIndex,$=J.endIndex;if(this.outputText=[b$.symbol(this.done,this.aborted,this.exited),K5.bold(this.msg),b$.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const X=this.suggestions.slice(Z,$).map((Y,Q)=>this.renderOption(Y,this.select===Q+Z,Q===0&&Z>0,Q+Z===$-1&&$<this.choices.length)).join("\n");this.outputText+="\n"+(X||K5.gray(this.fallback.title))}this.out.write(Y2.line+fq.to(0)+this.outputText)}}mq.exports=gq});var aq=V((So,lq)=>{var a6=j1(),q2=L1(),W2=q2.cursor,H2=x$(),m$=X6(),dq=m$.clear,cq=m$.style,p4=m$.figures;class pq extends H2{constructor(J={}){J.overrideRender=!0;super(J);this.inputValue="",this.clear=dq("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){const J=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(($)=>{if(this.inputValue){if(typeof $.title==="string"){if($.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof $.value==="string"){if($.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});const Z=this.filteredOptions.findIndex(($)=>$===J);this.cursor=Z<0?0:Z,this.render()}handleSpaceToggle(){const J=this.filteredOptions[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}handleInputChange(J){this.inputValue=this.inputValue+J,this.updateFilteredOptions()}_(J,Z){if(J===" ")this.handleSpaceToggle();else this.handleInputChange(J)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return`
|
|
3
3
|
Instructions:
|
|
4
4
|
${p4.arrowUp}/${p4.arrowDown}: Highlight option
|
|
5
5
|
${p4.arrowLeft}/${p4.arrowRight}/[space]: Toggle selection
|
|
6
6
|
[a,b,c]/delete: Filter choices
|
|
7
7
|
enter/return: Complete answer
|
|
8
8
|
`}return""}renderCurrentInput(){return`
|
|
9
|
-
Filtered results for: ${this.inputValue?this.inputValue:a6.gray("Enter something to filter")}\n`}renderOption(J,Z,$){let X;if(Z.disabled)X=J===$?a6.gray().underline(Z.title):a6.strikethrough().gray(Z.title);else X=J===$?a6.cyan().underline(Z.title):Z.title;return(Z.selected?a6.green(p4.radioOn):p4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[a6.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)J.push(a6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(q2.hide);super.render();let J=[dq.symbol(this.done,this.aborted),a6.bold(this.msg),dq.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=a6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+J),this.clear=uq(J,this.out.columns)}}pq.exports=cq});var eq=V((So,oq)=>{var aq=j1(),H2=c6(),nq=X6(),iq=nq.style,V2=nq.clear,tq=L1(),z2=tq.erase,sq=tq.cursor;class rq extends H2{constructor(J={}){super(J);this.msg=J.message,this.value=J.initial,this.initialValue=!!J.initial,this.yesMsg=J.yes||"yes",this.yesOption=J.yesOption||"(Y/n)",this.noMsg=J.no||"no",this.noOption=J.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(J,Z){if(J.toLowerCase()==="y")return this.value=!0,this.submit();if(J.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(sq.hide);else this.out.write(V2(this.outputText,this.out.columns));super.render(),this.outputText=[iq.symbol(this.done,this.aborted),aq.bold(this.msg),iq.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:aq.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(z2.line+sq.to(0)+this.outputText)}}oq.exports=rq});var ZW=V((Oo,JW)=>{JW.exports={TextPrompt:IF(),SelectPrompt:hF(),TogglePrompt:vF(),DatePrompt:Rq(),NumberPrompt:Cq(),MultiselectPrompt:x$(),AutocompletePrompt:mq(),AutocompleteMultiselectPrompt:lq(),ConfirmPrompt:eq()}});var XW=V(($W)=>{var I6=function(J,Z,$={}){return new Promise((X,Y)=>{const Q=new U2[J](Z),K=$.onAbort||s9,G=$.onSubmit||s9,F=$.onExit||s9;Q.on("state",Z.onState||s9),Q.on("submit",(q)=>X(G(q))),Q.on("exit",(q)=>X(F(q))),Q.on("abort",(q)=>Y(K(q)))})},M0=$W,U2=ZW(),s9=(J)=>J;M0.text=(J)=>I6("TextPrompt",J);M0.password=(J)=>{return J.style="password",M0.text(J)};M0.invisible=(J)=>{return J.style="invisible",M0.text(J)};M0.number=(J)=>I6("NumberPrompt",J);M0.date=(J)=>I6("DatePrompt",J);M0.confirm=(J)=>I6("ConfirmPrompt",J);M0.list=(J)=>{const Z=J.separator||",";return I6("TextPrompt",J,{onSubmit:($)=>$.split(Z).map((X)=>X.trim())})};M0.toggle=(J)=>I6("TogglePrompt",J);M0.select=(J)=>I6("SelectPrompt",J);M0.multiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return I6("MultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};M0.autocompleteMultiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return I6("AutocompleteMultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};var M2=(J,Z)=>Promise.resolve(Z.filter(($)=>$.title.slice(0,J.length).toLowerCase()===J.toLowerCase()));M0.autocomplete=(J)=>{return J.suggest=J.suggest||M2,J.choices=[].concat(J.choices||[]),I6("AutocompletePrompt",J)}});var HW=V((yo,WW)=>{var YW=function(J,Z){var $=Object.keys(J);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(J);if(Z)X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(J,Y).enumerable});$.push.apply($,X)}return $},QW=function(J){for(var Z=1;Z<arguments.length;Z++){var $=arguments[Z]!=null?arguments[Z]:{};if(Z%2)YW(Object($),!0).forEach(function(X){j2(J,X,$[X])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(J,Object.getOwnPropertyDescriptors($));else YW(Object($)).forEach(function(X){Object.defineProperty(J,X,Object.getOwnPropertyDescriptor($,X))})}return J},j2=function(J,Z,$){if(Z in J)Object.defineProperty(J,Z,{value:$,enumerable:!0,configurable:!0,writable:!0});else J[Z]=$;return J},A2=function(J,Z){var $=typeof Symbol!=="undefined"&&J[Symbol.iterator]||J["@@iterator"];if(!$){if(Array.isArray(J)||($=L2(J))||Z&&J&&typeof J.length==="number"){if($)J=$;var X=0,Y=function F(){};return{s:Y,n:function F(){if(X>=J.length)return{done:!0};return{done:!1,value:J[X++]}},e:function F(q){throw q},f:Y}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Q=!0,K=!1,G;return{s:function F(){$=$.call(J)},n:function F(){var q=$.next();return Q=q.done,q},e:function F(q){K=!0,G=q},f:function F(){try{if(!Q&&$.return!=null)$.return()}finally{if(K)throw G}}}},L2=function(J,Z){if(!J)return;if(typeof J==="string")return KW(J,Z);var $=Object.prototype.toString.call(J).slice(8,-1);if($==="Object"&&J.constructor)$=J.constructor.name;if($==="Map"||$==="Set")return Array.from(J);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return KW(J,Z)},KW=function(J,Z){if(Z==null||Z>J.length)Z=J.length;for(var $=0,X=new Array(Z);$<Z;$++)X[$]=J[$];return X},GW=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},FW=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){GW(Q,X,Y,K,G,"next",F)}function G(F){GW(Q,X,Y,K,G,"throw",F)}K(void 0)})}},D8=function(){return d$.apply(this,arguments)},d$=function(){return d$=FW(function*(J=[],{onSubmit:Z=qW,onCancel:$=qW}={}){const X={},Y=D8._override||{};J=[].concat(J);let Q,K,G,F,q,W;const H=function(){var T=FW(function*(w,N,P=!1){if(!P&&w.validate&&w.validate(N)!==!0)return;return w.format?yield w.format(N,X):N});return function w(N,P){return T.apply(this,arguments)}}();var U=A2(J),j;try{for(U.s();!(j=U.n()).done;){K=j.value;var z=K;if(F=z.name,q=z.type,typeof q==="function")q=yield q(Q,QW({},X),K),K.type=q;if(!q)continue;for(let T in K){if(w2.includes(T))continue;let w=K[T];K[T]=typeof w==="function"?yield w(Q,QW({},X),W):w}if(W=K,typeof K.message!=="string")throw new Error("prompt message is required");var A=K;if(F=A.name,q=A.type,u$[q]===void 0)throw new Error(`prompt type (${q}) is not defined`);if(Y[K.name]!==void 0){if(Q=yield H(K,Y[K.name]),Q!==void 0){X[F]=Q;continue}}try{Q=D8._injected?R2(D8._injected,K.initial):yield u$[q](K),X[F]=Q=yield H(K,Q,!0),G=yield Z(K,Q,X)}catch(T){G=!(yield $(K,X))}if(G)return X}}catch(T){U.e(T)}finally{U.f()}return X}),d$.apply(this,arguments)},R2=function(J,Z){const $=J.shift();if($ instanceof Error)throw $;return $===void 0?Z:$},D2=function(J){D8._injected=(D8._injected||[]).concat(J)},P2=function(J){D8._override=Object.assign({},J)},u$=XW(),w2=["suggest","format","onState","validate","onRender","type"],qW=()=>{};WW.exports=Object.assign(D8,{prompt:D8,prompts:u$,inject:D2,override:P2})});var zW=V((_o,VW)=>{VW.exports=(J,Z)=>{if(J.meta&&J.name!=="escape")return;if(J.ctrl){if(J.name==="a")return"first";if(J.name==="c")return"abort";if(J.name==="d")return"abort";if(J.name==="e")return"last";if(J.name==="g")return"reset"}if(Z){if(J.name==="j")return"down";if(J.name==="k")return"up"}if(J.name==="return")return"submit";if(J.name==="enter")return"submit";if(J.name==="backspace")return"delete";if(J.name==="delete")return"deleteForward";if(J.name==="abort")return"abort";if(J.name==="escape")return"exit";if(J.name==="tab")return"next";if(J.name==="pagedown")return"nextPage";if(J.name==="pageup")return"prevPage";if(J.name==="home")return"home";if(J.name==="end")return"end";if(J.name==="up")return"up";if(J.name==="down")return"down";if(J.name==="right")return"right";if(J.name==="left")return"left";return!1}});var n9=V((fo,UW)=>{UW.exports=(J)=>{const Z=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),$=new RegExp(Z,"g");return typeof J==="string"?J.replace($,""):J}});var AW=V((vo,jW)=>{var T2=n9(),{erase:MW,cursor:I2}=L1(),N2=(J)=>[...T2(J)].length;jW.exports=function(J,Z){if(!Z)return MW.line+I2.to(0);let $=0;const X=J.split(/\r?\n/);for(let Y of X)$+=1+Math.floor(Math.max(N2(Y)-1,0)/Z);return MW.lines($)}});var c$=V((xo,LW)=>{var F5={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},B2={arrowUp:F5.arrowUp,arrowDown:F5.arrowDown,arrowLeft:F5.arrowLeft,arrowRight:F5.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},E2=process.platform==="win32"?B2:F5;LW.exports=E2});var RW=V((bo,wW)=>{var l4=j1(),Q4=c$(),p$=Object.freeze({password:{scale:1,render:(J)=>"*".repeat(J.length)},emoji:{scale:2,render:(J)=>"\uD83D\uDE03".repeat(J.length)},invisible:{scale:0,render:(J)=>""},default:{scale:1,render:(J)=>`${J}`}}),C2=(J)=>p$[J]||p$.default,q5=Object.freeze({aborted:l4.red(Q4.cross),done:l4.green(Q4.tick),exited:l4.yellow(Q4.cross),default:l4.cyan("?")}),h2=(J,Z,$)=>Z?q5.aborted:$?q5.exited:J?q5.done:q5.default,S2=(J)=>l4.gray(J?Q4.ellipsis:Q4.pointerSmall),O2=(J,Z)=>l4.gray(J?Z?Q4.pointerSmall:"+":Q4.line);wW.exports={styles:p$,render:C2,symbols:q5,symbol:h2,delimiter:S2,item:O2}});var PW=V((go,DW)=>{var k2=n9();DW.exports=function(J,Z){let $=String(k2(J)||"").split(/\r?\n/);if(!Z)return $.length;return $.map((X)=>Math.ceil(X.length/Z)).reduce((X,Y)=>X+Y)}});var IW=V((mo,TW)=>{TW.exports=(J,Z={})=>{const $=Number.isSafeInteger(parseInt(Z.margin))?new Array(parseInt(Z.margin)).fill(" ").join(""):Z.margin||"",X=Z.width;return(J||"").split(/\r?\n/g).map((Y)=>Y.split(/\s+/g).reduce((Q,K)=>{if(K.length+$.length>=X||Q[Q.length-1].length+K.length+1<X)Q[Q.length-1]+=` ${K}`;else Q.push(`${$}${K}`);return Q},[$]).join("\n")).join("\n")}});var BW=V((uo,NW)=>{NW.exports=(J,Z,$)=>{$=$||Z;let X=Math.min(Z-$,J-Math.floor($/2));if(X<0)X=0;let Y=Math.min(X+$,Z);return{startIndex:X,endIndex:Y}}});var Y6=V((co,EW)=>{EW.exports={action:zW(),clear:AW(),style:RW(),strip:n9(),figures:c$(),lines:PW(),wrap:IW(),entriesToDisplay:BW()}});var i6=V((po,SW)=>{var CW=import.meta.require("readline"),{action:y2}=Y6(),_2=import.meta.require("events"),{beep:f2,cursor:v2}=L1(),x2=j1();class hW extends _2{constructor(J={}){super();this.firstRender=!0,this.in=J.stdin||process.stdin,this.out=J.stdout||process.stdout,this.onRender=(J.onRender||(()=>{return})).bind(this);const Z=CW.createInterface({input:this.in,escapeCodeTimeout:50});if(CW.emitKeypressEvents(this.in,Z),this.in.isTTY)this.in.setRawMode(!0);const $=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,X=(Y,Q)=>{let K=y2(Q,$);if(K===!1)this._&&this._(Y,Q);else if(typeof this[K]==="function")this[K](Q);else this.bell()};this.close=()=>{if(this.out.write(v2.show),this.in.removeListener("keypress",X),this.in.isTTY)this.in.setRawMode(!1);Z.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",X)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(f2)}render(){if(this.onRender(x2),this.firstRender)this.firstRender=!1}}SW.exports=hW});var yW=V((lo,kW)=>{var t9=j1(),b2=i6(),{erase:g2,cursor:W5}=L1(),{style:l$,clear:a$,lines:m2,figures:u2}=Y6();class OW extends b2{constructor(J={}){super(J);this.transform=l$.render(J.style),this.scale=this.transform.scale,this.msg=J.message,this.initial=J.initial||"",this.validator=J.validate||(()=>!0),this.value="",this.errorMsg=J.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=a$("",this.out.columns),this.render()}set value(J){if(!J&&this.initial)this.placeholder=!0,this.rendered=t9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render(J);this._value=J,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let J=await this.validator(this.value);if(typeof J==="string")this.errorMsg=J,J=!1;this.error=!J}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(J){if(this.placeholder)return;this.cursor=this.cursor+J,this.cursorOffset+=J}_(J,Z){let $=this.value.slice(0,this.cursor),X=this.value.slice(this.cursor);this.value=`${$}${J}${X}`,this.red=!1,this.cursor=this.placeholder?0:$.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let J=this.value.slice(0,this.cursor-1),Z=this.value.slice(this.cursor);if(this.value=`${J}${Z}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let J=this.value.slice(0,this.cursor),Z=this.value.slice(this.cursor+1);if(this.value=`${J}${Z}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(W5.down(m2(this.outputError,this.out.columns)-1)+a$(this.outputError,this.out.columns));this.out.write(a$(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[l$.symbol(this.done,this.aborted),t9.bold(this.msg),l$.delimiter(this.done),this.red?t9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":u2.pointerSmall} ${t9.red().italic(Z)}`,"");this.out.write(g2.line+W5.to(0)+this.outputText+W5.save+this.outputError+W5.restore+W5.move(this.cursorOffset,0))}}kW.exports=OW});var bW=V((ao,xW)=>{var s6=j1(),d2=i6(),{style:_W,clear:fW,figures:r9,wrap:c2,entriesToDisplay:p2}=Y6(),{cursor:l2}=L1();class vW extends d2{constructor(J={}){super(J);this.msg=J.message,this.hint=J.hint||"- Use arrow-keys. Return to submit.",this.warn=J.warn||"- This option is disabled",this.cursor=J.initial||0,this.choices=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),value:Z&&(Z.value===void 0?$:Z.value),description:Z&&Z.description,selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.optionsPerPage=J.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=fW("",this.out.columns),this.render()}moveCursor(J){this.cursor=J,this.value=this.choices[J].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(J,Z){if(J===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(l2.hide);else this.out.write(fW(this.outputText,this.out.columns));super.render();let{startIndex:J,endIndex:Z}=p2(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[_W.symbol(this.done,this.aborted),s6.bold(this.msg),_W.delimiter(!1),this.done?this.selection.title:this.selection.disabled?s6.yellow(this.warn):s6.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let $=J;$<Z;$++){let X,Y,Q="",K=this.choices[$];if($===J&&J>0)Y=r9.arrowUp;else if($===Z-1&&Z<this.choices.length)Y=r9.arrowDown;else Y=" ";if(K.disabled)X=this.cursor===$?s6.gray().underline(K.title):s6.strikethrough().gray(K.title),Y=(this.cursor===$?s6.bold().gray(r9.pointer)+" ":" ")+Y;else if(X=this.cursor===$?s6.cyan().underline(K.title):K.title,Y=(this.cursor===$?s6.cyan(r9.pointer)+" ":" ")+Y,K.description&&this.cursor===$){if(Q=` - ${K.description}`,Y.length+X.length+Q.length>=this.out.columns||K.description.split(/\r?\n/).length>1)Q="\n"+c2(K.description,{margin:3,width:this.out.columns})}this.outputText+=`${Y} ${X}${s6.gray(Q)}\n`}}this.out.write(this.outputText)}}xW.exports=vW});var cW=V((io,dW)=>{var o9=j1(),a2=i6(),{style:gW,clear:i2}=Y6(),{cursor:mW,erase:s2}=L1();class uW extends a2{constructor(J={}){super(J);this.msg=J.message,this.value=!!J.initial,this.active=J.active||"on",this.inactive=J.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(J,Z){if(J===" ")this.value=!this.value;else if(J==="1")this.value=!0;else if(J==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(mW.hide);else this.out.write(i2(this.outputText,this.out.columns));super.render(),this.outputText=[gW.symbol(this.done,this.aborted),o9.bold(this.msg),gW.delimiter(this.done),this.value?this.inactive:o9.cyan().underline(this.inactive),o9.gray("/"),this.value?o9.cyan().underline(this.active):this.active].join(" "),this.out.write(s2.line+mW.to(0)+this.outputText)}}dW.exports=uW});var N6=V((so,pW)=>{class e9{constructor({token:J,date:Z,parts:$,locales:X}){this.token=J,this.date=Z||new Date,this.parts=$||[this],this.locales=X||{}}up(){}down(){}next(){const J=this.parts.indexOf(this);return this.parts.find((Z,$)=>$>J&&Z instanceof e9)}setTo(J){}prev(){let J=[].concat(this.parts).reverse();const Z=J.indexOf(this);return J.find(($,X)=>X>Z&&$ instanceof e9)}toString(){return String(this.date)}}pW.exports=e9});var iW=V((no,aW)=>{var n2=N6();class lW extends n2{constructor(J={}){super(J)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let J=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?J.toUpperCase():J}}aW.exports=lW});var tW=V((to,nW)=>{var t2=N6(),r2=(J)=>{return J=J%10,J===1?"st":J===2?"nd":J===3?"rd":"th"};class sW extends t2{constructor(J={}){super(J)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(J){this.date.setDate(parseInt(J.substr(-2)))}toString(){let J=this.date.getDate(),Z=this.date.getDay();return this.token==="DD"?String(J).padStart(2,"0"):this.token==="Do"?J+r2(J):this.token==="d"?Z+1:this.token==="ddd"?this.locales.weekdaysShort[Z]:this.token==="dddd"?this.locales.weekdays[Z]:J}}nW.exports=sW});var eW=V((ro,oW)=>{var o2=N6();class rW extends o2{constructor(J={}){super(J)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(J){this.date.setHours(parseInt(J.substr(-2)))}toString(){let J=this.date.getHours();if(/h/.test(this.token))J=J%12||12;return this.token.length>1?String(J).padStart(2,"0"):J}}oW.exports=rW});var $H=V((oo,ZH)=>{var e2=N6();class JH extends e2{constructor(J={}){super(J)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(J){this.date.setMilliseconds(parseInt(J.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}ZH.exports=JH});var QH=V((eo,YH)=>{var Jh=N6();class XH extends Jh{constructor(J={}){super(J)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(J){this.date.setMinutes(parseInt(J.substr(-2)))}toString(){let J=this.date.getMinutes();return this.token.length>1?String(J).padStart(2,"0"):J}}YH.exports=XH});var FH=V((Je,GH)=>{var Zh=N6();class KH extends Zh{constructor(J={}){super(J)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(J){J=parseInt(J.substr(-2))-1,this.date.setMonth(J<0?0:J)}toString(){let J=this.date.getMonth(),Z=this.token.length;return Z===2?String(J+1).padStart(2,"0"):Z===3?this.locales.monthsShort[J]:Z===4?this.locales.months[J]:String(J+1)}}GH.exports=KH});var HH=V((Ze,WH)=>{var $h=N6();class qH extends $h{constructor(J={}){super(J)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(J){this.date.setSeconds(parseInt(J.substr(-2)))}toString(){let J=this.date.getSeconds();return this.token.length>1?String(J).padStart(2,"0"):J}}WH.exports=qH});var UH=V(($e,zH)=>{var Xh=N6();class VH extends Xh{constructor(J={}){super(J)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(J){this.date.setFullYear(J.substr(-4))}toString(){let J=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?J.substr(-2):J}}zH.exports=VH});var jH=V((Xe,MH)=>{MH.exports={DatePart:N6(),Meridiem:iW(),Day:tW(),Hours:eW(),Milliseconds:$H(),Minutes:QH(),Month:FH(),Seconds:HH(),Year:UH()}});var IH=V((Ye,TH)=>{var i$=j1(),Yh=i6(),{style:AH,clear:LH,figures:Qh}=Y6(),{erase:Kh,cursor:wH}=L1(),{DatePart:RH,Meridiem:Gh,Day:Fh,Hours:qh,Milliseconds:Wh,Minutes:Hh,Month:Vh,Seconds:zh,Year:Uh}=jH(),Mh=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,DH={1:({token:J})=>J.replace(/\\(.)/g,"$1"),2:(J)=>new Fh(J),3:(J)=>new Vh(J),4:(J)=>new Uh(J),5:(J)=>new Gh(J),6:(J)=>new qh(J),7:(J)=>new Hh(J),8:(J)=>new zh(J),9:(J)=>new Wh(J)},jh={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class PH extends Yh{constructor(J={}){super(J);this.msg=J.message,this.cursor=0,this.typed="",this.locales=Object.assign(jh,J.locales),this._date=J.initial||new Date,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.mask=J.mask||"YYYY-MM-DD HH:mm:ss",this.clear=LH("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(J){if(J)this._date.setTime(J.getTime())}set mask(J){let Z;this.parts=[];while(Z=Mh.exec(J)){let X=Z.shift(),Y=Z.findIndex((Q)=>Q!=null);this.parts.push(Y in DH?DH[Y]({token:Z[Y]||X,date:this.date,parts:this.parts,locales:this.locales}):Z[Y]||X)}let $=this.parts.reduce((X,Y)=>{if(typeof Y==="string"&&typeof X[X.length-1]==="string")X[X.length-1]+=Y;else X.push(Y);return X},[]);this.parts.splice(0),this.parts.push(...$),this.reset()}moveCursor(J){this.typed="",this.cursor=J,this.fire()}reset(){this.moveCursor(this.parts.findIndex((J)=>J instanceof RH)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let J=await this.validator(this.value);if(typeof J==="string")this.errorMsg=J,J=!1;this.error=!J}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let J=this.parts[this.cursor].prev();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}right(){let J=this.parts[this.cursor].next();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}next(){let J=this.parts[this.cursor].next();this.moveCursor(J?this.parts.indexOf(J):this.parts.findIndex((Z)=>Z instanceof RH)),this.render()}_(J){if(/\d/.test(J))this.typed+=J,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(wH.hide);else this.out.write(LH(this.outputText,this.out.columns));if(super.render(),this.outputText=[AH.symbol(this.done,this.aborted),i$.bold(this.msg),AH.delimiter(!1),this.parts.reduce((J,Z,$)=>J.concat($===this.cursor&&!this.done?i$.cyan().underline(Z.toString()):Z),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":Qh.pointerSmall} ${i$.red().italic(Z)}`,"");this.out.write(Kh.line+wH.to(0)+this.outputText)}}TH.exports=PH});var hH=V((Qe,CH)=>{var JJ=j1(),Ah=i6(),{cursor:ZJ,erase:Lh}=L1(),{style:s$,figures:wh,clear:NH,lines:Rh}=Y6(),Dh=/[0-9]/,n$=(J)=>J!==void 0,BH=(J,Z)=>{let $=Math.pow(10,Z);return Math.round(J*$)/$};class EH extends Ah{constructor(J={}){super(J);this.transform=s$.render(J.style),this.msg=J.message,this.initial=n$(J.initial)?J.initial:"",this.float=!!J.float,this.round=J.round||2,this.inc=J.increment||1,this.min=n$(J.min)?J.min:(-Infinity),this.max=n$(J.max)?J.max:Infinity,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(J){if(!J&&J!==0)this.placeholder=!0,this.rendered=JJ.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${BH(J,this.round)}`),this._value=BH(J,this.round);this.fire()}get value(){return this._value}parse(J){return this.float?parseFloat(J):parseInt(J)}valid(J){return J==="-"||J==="."&&this.float||Dh.test(J)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let J=this.value;this.value=J!==""?J:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let J=await this.validator(this.value);if(typeof J==="string")this.errorMsg=J,J=!1;this.error=!J}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let J=this.value;this.value=J!==""?J:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let J=this.value.toString();if(J.length===0)return this.bell();if(this.value=this.parse(J=J.slice(0,-1))||"",this.value!==""&&this.value<this.min)this.value=this.min;this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(J,Z){if(!this.valid(J))return this.bell();const $=Date.now();if($-this.lastHit>1000)this.typed="";if(this.typed+=J,this.lastHit=$,this.color="cyan",J===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire(),this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(ZJ.down(Rh(this.outputError,this.out.columns)-1)+NH(this.outputError,this.out.columns));this.out.write(NH(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[s$.symbol(this.done,this.aborted),JJ.bold(this.msg),s$.delimiter(this.done),!this.done||!this.done&&!this.placeholder?JJ[this.color]().underline(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":wh.pointerSmall} ${JJ.red().italic(Z)}`,"");this.out.write(Lh.line+ZJ.to(0)+this.outputText+ZJ.save+this.outputError+ZJ.restore)}}CH.exports=EH});var t$=V((Ke,yH)=>{var B6=j1(),{cursor:Ph}=L1(),Th=i6(),{clear:SH,figures:P8,style:OH,wrap:Ih,entriesToDisplay:Nh}=Y6();class kH extends Th{constructor(J={}){super(J);if(this.msg=J.message,this.cursor=J.cursor||0,this.scrollIndex=J.cursor||0,this.hint=J.hint||"",this.warn=J.warn||"- This option is disabled -",this.minSelected=J.min,this.showMinError=!1,this.maxChoices=J.max,this.instructions=J.instructions,this.optionsPerPage=J.optionsPerPage||10,this.value=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),description:Z&&Z.description,value:Z&&(Z.value===void 0?$:Z.value),selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.clear=SH("",this.out.columns),!J.overrideRender)this.render()}reset(){this.value.map((J)=>!J.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((J)=>J.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const J=this.value.filter((Z)=>Z.selected);if(this.minSelected&&J.length<this.minSelected)this.showMinError=!0,this.render();else this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){if(this.cursor===0)this.cursor=this.value.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.value.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const J=this.value[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const J=!this.value[this.cursor].selected;this.value.filter((Z)=>!Z.disabled).forEach((Z)=>Z.selected=J),this.render()}_(J,Z){if(J===" ")this.handleSpaceToggle();else if(J==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return"\nInstructions:\n"+` ${P8.arrowUp}/${P8.arrowDown}: Highlight option\n`+` ${P8.arrowLeft}/${P8.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===void 0?" a: Toggle all\n":"")+" enter/return: Complete answer"}return""}renderOption(J,Z,$,X){const Y=(Z.selected?B6.green(P8.radioOn):P8.radioOff)+" "+X+" ";let Q,K;if(Z.disabled)Q=J===$?B6.gray().underline(Z.title):B6.strikethrough().gray(Z.title);else if(Q=J===$?B6.cyan().underline(Z.title):Z.title,J===$&&Z.description){if(K=` - ${Z.description}`,Y.length+Q.length+K.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)K="\n"+Ih(Z.description,{margin:Y.length,width:this.out.columns})}return Y+Q+B6.gray(K||"")}paginateOptions(J){if(J.length===0)return B6.red("No matches for this query.");let{startIndex:Z,endIndex:$}=Nh(this.cursor,J.length,this.optionsPerPage),X,Y=[];for(let Q=Z;Q<$;Q++){if(Q===Z&&Z>0)X=P8.arrowUp;else if(Q===$-1&&$<J.length)X=P8.arrowDown;else X=" ";Y.push(this.renderOption(this.cursor,J[Q],Q,X))}return"\n"+Y.join("\n")}renderOptions(J){if(!this.done)return this.paginateOptions(J);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[B6.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)J.push(B6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(Ph.hide);super.render();let J=[OH.symbol(this.done,this.aborted),B6.bold(this.msg),OH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=B6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.value),this.out.write(this.clear+J),this.clear=SH(J,this.out.columns)}}yH.exports=kH});var gH=V((Ge,bH)=>{var H5=j1(),Bh=i6(),{erase:Eh,cursor:_H}=L1(),{style:r$,clear:fH,figures:o$,wrap:Ch,entriesToDisplay:hh}=Y6(),vH=(J,Z)=>J[Z]&&(J[Z].value||J[Z].title||J[Z]),Sh=(J,Z)=>J[Z]&&(J[Z].title||J[Z].value||J[Z]),Oh=(J,Z)=>{const $=J.findIndex((X)=>X.value===Z||X.title===Z);return $>-1?$:void 0};class xH extends Bh{constructor(J={}){super(J);this.msg=J.message,this.suggest=J.suggest,this.choices=J.choices,this.initial=typeof J.initial==="number"?J.initial:Oh(J.choices,J.initial),this.select=this.initial||J.cursor||0,this.i18n={noMatches:J.noMatches||"no matches found"},this.fallback=J.fallback||this.initial,this.clearFirst=J.clearFirst||!1,this.suggestions=[],this.input="",this.limit=J.limit||10,this.cursor=0,this.transform=r$.render(J.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=fH("",this.out.columns),this.complete(this.render),this.render()}set fallback(J){this._fb=Number.isSafeInteger(parseInt(J))?parseInt(J):J}get fallback(){let J;if(typeof this._fb==="number")J=this.choices[this._fb];else if(typeof this._fb==="string")J={title:this._fb};return J||this._fb||{title:this.i18n.noMatches}}moveSelect(J){if(this.select=J,this.suggestions.length>0)this.value=vH(this.suggestions,J);else this.value=this.fallback.value;this.fire()}async complete(J){const Z=this.completing=this.suggest(this.input,this.choices),$=await Z;if(this.completing!==Z)return;this.suggestions=$.map((Y,Q,K)=>({title:Sh(K,Q),value:vH(K,Q),description:Y.description})),this.completing=!1;const X=Math.max($.length-1,0);this.moveSelect(Math.min(X,this.select)),J&&J()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(J,Z){let $=this.input.slice(0,this.cursor),X=this.input.slice(this.cursor);this.input=`${$}${J}${X}`,this.cursor=$.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let J=this.input.slice(0,this.cursor-1),Z=this.input.slice(this.cursor);this.input=`${J}${Z}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let J=this.input.slice(0,this.cursor),Z=this.input.slice(this.cursor+1);this.input=`${J}${Z}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(J,Z,$,X){let Y,Q=$?o$.arrowUp:X?o$.arrowDown:" ",K=Z?H5.cyan().underline(J.title):J.title;if(Q=(Z?H5.cyan(o$.pointer)+" ":" ")+Q,J.description){if(Y=` - ${J.description}`,Q.length+K.length+Y.length>=this.out.columns||J.description.split(/\r?\n/).length>1)Y="\n"+Ch(J.description,{margin:3,width:this.out.columns})}return Q+" "+K+H5.gray(Y||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(_H.hide);else this.out.write(fH(this.outputText,this.out.columns));super.render();let{startIndex:J,endIndex:Z}=hh(this.select,this.choices.length,this.limit);if(this.outputText=[r$.symbol(this.done,this.aborted,this.exited),H5.bold(this.msg),r$.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const $=this.suggestions.slice(J,Z).map((X,Y)=>this.renderOption(X,this.select===Y+J,Y===0&&J>0,Y+J===Z-1&&Z<this.choices.length)).join("\n");this.outputText+="\n"+($||H5.gray(this.fallback.title))}this.out.write(Eh.line+_H.to(0)+this.outputText)}}bH.exports=xH});var pH=V((Fe,cH)=>{var n6=j1(),{cursor:kh}=L1(),yh=t$(),{clear:mH,style:uH,figures:a4}=Y6();class dH extends yh{constructor(J={}){J.overrideRender=!0;super(J);this.inputValue="",this.clear=mH("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){const J=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(($)=>{if(this.inputValue){if(typeof $.title==="string"){if($.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof $.value==="string"){if($.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});const Z=this.filteredOptions.findIndex(($)=>$===J);this.cursor=Z<0?0:Z,this.render()}handleSpaceToggle(){const J=this.filteredOptions[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}handleInputChange(J){this.inputValue=this.inputValue+J,this.updateFilteredOptions()}_(J,Z){if(J===" ")this.handleSpaceToggle();else this.handleInputChange(J)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return`
|
|
9
|
+
Filtered results for: ${this.inputValue?this.inputValue:a6.gray("Enter something to filter")}\n`}renderOption(J,Z,$){let X;if(Z.disabled)X=J===$?a6.gray().underline(Z.title):a6.strikethrough().gray(Z.title);else X=J===$?a6.cyan().underline(Z.title):Z.title;return(Z.selected?a6.green(p4.radioOn):p4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[a6.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)J.push(a6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(W2.hide);super.render();let J=[cq.symbol(this.done,this.aborted),a6.bold(this.msg),cq.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=a6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+J),this.clear=dq(J,this.out.columns)}}lq.exports=pq});var JW=V((Oo,eq)=>{var iq=j1(),V2=c6(),tq=X6(),sq=tq.style,z2=tq.clear,rq=L1(),U2=rq.erase,nq=rq.cursor;class oq extends V2{constructor(J={}){super(J);this.msg=J.message,this.value=J.initial,this.initialValue=!!J.initial,this.yesMsg=J.yes||"yes",this.yesOption=J.yesOption||"(Y/n)",this.noMsg=J.no||"no",this.noOption=J.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(J,Z){if(J.toLowerCase()==="y")return this.value=!0,this.submit();if(J.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(nq.hide);else this.out.write(z2(this.outputText,this.out.columns));super.render(),this.outputText=[sq.symbol(this.done,this.aborted),iq.bold(this.msg),sq.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:iq.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(U2.line+nq.to(0)+this.outputText)}}eq.exports=oq});var $W=V((ko,ZW)=>{ZW.exports={TextPrompt:NF(),SelectPrompt:SF(),TogglePrompt:xF(),DatePrompt:Dq(),NumberPrompt:hq(),MultiselectPrompt:x$(),AutocompletePrompt:uq(),AutocompleteMultiselectPrompt:aq(),ConfirmPrompt:JW()}});var YW=V((XW)=>{var I6=function(J,Z,$={}){return new Promise((X,Y)=>{const Q=new M2[J](Z),K=$.onAbort||s9,G=$.onSubmit||s9,F=$.onExit||s9;Q.on("state",Z.onState||s9),Q.on("submit",(q)=>X(G(q))),Q.on("exit",(q)=>X(F(q))),Q.on("abort",(q)=>Y(K(q)))})},M0=XW,M2=$W(),s9=(J)=>J;M0.text=(J)=>I6("TextPrompt",J);M0.password=(J)=>{return J.style="password",M0.text(J)};M0.invisible=(J)=>{return J.style="invisible",M0.text(J)};M0.number=(J)=>I6("NumberPrompt",J);M0.date=(J)=>I6("DatePrompt",J);M0.confirm=(J)=>I6("ConfirmPrompt",J);M0.list=(J)=>{const Z=J.separator||",";return I6("TextPrompt",J,{onSubmit:($)=>$.split(Z).map((X)=>X.trim())})};M0.toggle=(J)=>I6("TogglePrompt",J);M0.select=(J)=>I6("SelectPrompt",J);M0.multiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return I6("MultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};M0.autocompleteMultiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return I6("AutocompleteMultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};var j2=(J,Z)=>Promise.resolve(Z.filter(($)=>$.title.slice(0,J.length).toLowerCase()===J.toLowerCase()));M0.autocomplete=(J)=>{return J.suggest=J.suggest||j2,J.choices=[].concat(J.choices||[]),I6("AutocompletePrompt",J)}});var VW=V((_o,HW)=>{var QW=function(J,Z){var $=Object.keys(J);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(J);if(Z)X=X.filter(function(Y){return Object.getOwnPropertyDescriptor(J,Y).enumerable});$.push.apply($,X)}return $},KW=function(J){for(var Z=1;Z<arguments.length;Z++){var $=arguments[Z]!=null?arguments[Z]:{};if(Z%2)QW(Object($),!0).forEach(function(X){A2(J,X,$[X])});else if(Object.getOwnPropertyDescriptors)Object.defineProperties(J,Object.getOwnPropertyDescriptors($));else QW(Object($)).forEach(function(X){Object.defineProperty(J,X,Object.getOwnPropertyDescriptor($,X))})}return J},A2=function(J,Z,$){if(Z in J)Object.defineProperty(J,Z,{value:$,enumerable:!0,configurable:!0,writable:!0});else J[Z]=$;return J},L2=function(J,Z){var $=typeof Symbol!=="undefined"&&J[Symbol.iterator]||J["@@iterator"];if(!$){if(Array.isArray(J)||($=w2(J))||Z&&J&&typeof J.length==="number"){if($)J=$;var X=0,Y=function F(){};return{s:Y,n:function F(){if(X>=J.length)return{done:!0};return{done:!1,value:J[X++]}},e:function F(q){throw q},f:Y}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Q=!0,K=!1,G;return{s:function F(){$=$.call(J)},n:function F(){var q=$.next();return Q=q.done,q},e:function F(q){K=!0,G=q},f:function F(){try{if(!Q&&$.return!=null)$.return()}finally{if(K)throw G}}}},w2=function(J,Z){if(!J)return;if(typeof J==="string")return GW(J,Z);var $=Object.prototype.toString.call(J).slice(8,-1);if($==="Object"&&J.constructor)$=J.constructor.name;if($==="Map"||$==="Set")return Array.from(J);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return GW(J,Z)},GW=function(J,Z){if(Z==null||Z>J.length)Z=J.length;for(var $=0,X=new Array(Z);$<Z;$++)X[$]=J[$];return X},FW=function(J,Z,$,X,Y,Q,K){try{var G=J[Q](K),F=G.value}catch(q){$(q);return}if(G.done)Z(F);else Promise.resolve(F).then(X,Y)},qW=function(J){return function(){var Z=this,$=arguments;return new Promise(function(X,Y){var Q=J.apply(Z,$);function K(F){FW(Q,X,Y,K,G,"next",F)}function G(F){FW(Q,X,Y,K,G,"throw",F)}K(void 0)})}},D8=function(){return d$.apply(this,arguments)},d$=function(){return d$=qW(function*(J=[],{onSubmit:Z=WW,onCancel:$=WW}={}){const X={},Y=D8._override||{};J=[].concat(J);let Q,K,G,F,q,W;const H=function(){var T=qW(function*(w,N,P=!1){if(!P&&w.validate&&w.validate(N)!==!0)return;return w.format?yield w.format(N,X):N});return function w(N,P){return T.apply(this,arguments)}}();var U=L2(J),j;try{for(U.s();!(j=U.n()).done;){K=j.value;var z=K;if(F=z.name,q=z.type,typeof q==="function")q=yield q(Q,KW({},X),K),K.type=q;if(!q)continue;for(let T in K){if(R2.includes(T))continue;let w=K[T];K[T]=typeof w==="function"?yield w(Q,KW({},X),W):w}if(W=K,typeof K.message!=="string")throw new Error("prompt message is required");var A=K;if(F=A.name,q=A.type,u$[q]===void 0)throw new Error(`prompt type (${q}) is not defined`);if(Y[K.name]!==void 0){if(Q=yield H(K,Y[K.name]),Q!==void 0){X[F]=Q;continue}}try{Q=D8._injected?D2(D8._injected,K.initial):yield u$[q](K),X[F]=Q=yield H(K,Q,!0),G=yield Z(K,Q,X)}catch(T){G=!(yield $(K,X))}if(G)return X}}catch(T){U.e(T)}finally{U.f()}return X}),d$.apply(this,arguments)},D2=function(J,Z){const $=J.shift();if($ instanceof Error)throw $;return $===void 0?Z:$},P2=function(J){D8._injected=(D8._injected||[]).concat(J)},T2=function(J){D8._override=Object.assign({},J)},u$=YW(),R2=["suggest","format","onState","validate","onRender","type"],WW=()=>{};HW.exports=Object.assign(D8,{prompt:D8,prompts:u$,inject:P2,override:T2})});var UW=V((fo,zW)=>{zW.exports=(J,Z)=>{if(J.meta&&J.name!=="escape")return;if(J.ctrl){if(J.name==="a")return"first";if(J.name==="c")return"abort";if(J.name==="d")return"abort";if(J.name==="e")return"last";if(J.name==="g")return"reset"}if(Z){if(J.name==="j")return"down";if(J.name==="k")return"up"}if(J.name==="return")return"submit";if(J.name==="enter")return"submit";if(J.name==="backspace")return"delete";if(J.name==="delete")return"deleteForward";if(J.name==="abort")return"abort";if(J.name==="escape")return"exit";if(J.name==="tab")return"next";if(J.name==="pagedown")return"nextPage";if(J.name==="pageup")return"prevPage";if(J.name==="home")return"home";if(J.name==="end")return"end";if(J.name==="up")return"up";if(J.name==="down")return"down";if(J.name==="right")return"right";if(J.name==="left")return"left";return!1}});var n9=V((vo,MW)=>{MW.exports=(J)=>{const Z=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),$=new RegExp(Z,"g");return typeof J==="string"?J.replace($,""):J}});var LW=V((xo,AW)=>{var I2=n9(),{erase:jW,cursor:N2}=L1(),B2=(J)=>[...I2(J)].length;AW.exports=function(J,Z){if(!Z)return jW.line+N2.to(0);let $=0;const X=J.split(/\r?\n/);for(let Y of X)$+=1+Math.floor(Math.max(B2(Y)-1,0)/Z);return jW.lines($)}});var c$=V((bo,wW)=>{var F5={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},E2={arrowUp:F5.arrowUp,arrowDown:F5.arrowDown,arrowLeft:F5.arrowLeft,arrowRight:F5.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},C2=process.platform==="win32"?E2:F5;wW.exports=C2});var DW=V((go,RW)=>{var l4=j1(),Q4=c$(),p$=Object.freeze({password:{scale:1,render:(J)=>"*".repeat(J.length)},emoji:{scale:2,render:(J)=>"\uD83D\uDE03".repeat(J.length)},invisible:{scale:0,render:(J)=>""},default:{scale:1,render:(J)=>`${J}`}}),h2=(J)=>p$[J]||p$.default,q5=Object.freeze({aborted:l4.red(Q4.cross),done:l4.green(Q4.tick),exited:l4.yellow(Q4.cross),default:l4.cyan("?")}),S2=(J,Z,$)=>Z?q5.aborted:$?q5.exited:J?q5.done:q5.default,O2=(J)=>l4.gray(J?Q4.ellipsis:Q4.pointerSmall),k2=(J,Z)=>l4.gray(J?Z?Q4.pointerSmall:"+":Q4.line);RW.exports={styles:p$,render:h2,symbols:q5,symbol:S2,delimiter:O2,item:k2}});var TW=V((mo,PW)=>{var y2=n9();PW.exports=function(J,Z){let $=String(y2(J)||"").split(/\r?\n/);if(!Z)return $.length;return $.map((X)=>Math.ceil(X.length/Z)).reduce((X,Y)=>X+Y)}});var NW=V((uo,IW)=>{IW.exports=(J,Z={})=>{const $=Number.isSafeInteger(parseInt(Z.margin))?new Array(parseInt(Z.margin)).fill(" ").join(""):Z.margin||"",X=Z.width;return(J||"").split(/\r?\n/g).map((Y)=>Y.split(/\s+/g).reduce((Q,K)=>{if(K.length+$.length>=X||Q[Q.length-1].length+K.length+1<X)Q[Q.length-1]+=` ${K}`;else Q.push(`${$}${K}`);return Q},[$]).join("\n")).join("\n")}});var EW=V((co,BW)=>{BW.exports=(J,Z,$)=>{$=$||Z;let X=Math.min(Z-$,J-Math.floor($/2));if(X<0)X=0;let Y=Math.min(X+$,Z);return{startIndex:X,endIndex:Y}}});var Y6=V((po,CW)=>{CW.exports={action:UW(),clear:LW(),style:DW(),strip:n9(),figures:c$(),lines:TW(),wrap:NW(),entriesToDisplay:EW()}});var i6=V((lo,OW)=>{var hW=import.meta.require("readline"),{action:_2}=Y6(),f2=import.meta.require("events"),{beep:v2,cursor:x2}=L1(),b2=j1();class SW extends f2{constructor(J={}){super();this.firstRender=!0,this.in=J.stdin||process.stdin,this.out=J.stdout||process.stdout,this.onRender=(J.onRender||(()=>{return})).bind(this);const Z=hW.createInterface({input:this.in,escapeCodeTimeout:50});if(hW.emitKeypressEvents(this.in,Z),this.in.isTTY)this.in.setRawMode(!0);const $=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,X=(Y,Q)=>{let K=_2(Q,$);if(K===!1)this._&&this._(Y,Q);else if(typeof this[K]==="function")this[K](Q);else this.bell()};this.close=()=>{if(this.out.write(x2.show),this.in.removeListener("keypress",X),this.in.isTTY)this.in.setRawMode(!1);Z.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",X)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(v2)}render(){if(this.onRender(b2),this.firstRender)this.firstRender=!1}}OW.exports=SW});var _W=V((ao,yW)=>{var t9=j1(),g2=i6(),{erase:m2,cursor:W5}=L1(),{style:l$,clear:a$,lines:u2,figures:d2}=Y6();class kW extends g2{constructor(J={}){super(J);this.transform=l$.render(J.style),this.scale=this.transform.scale,this.msg=J.message,this.initial=J.initial||"",this.validator=J.validate||(()=>!0),this.value="",this.errorMsg=J.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=a$("",this.out.columns),this.render()}set value(J){if(!J&&this.initial)this.placeholder=!0,this.rendered=t9.gray(this.transform.render(this.initial));else this.placeholder=!1,this.rendered=this.transform.render(J);this._value=J,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let J=await this.validator(this.value);if(typeof J==="string")this.errorMsg=J,J=!1;this.error=!J}async submit(){if(this.value=this.value||this.initial,this.cursorOffset=0,this.cursor=this.rendered.length,await this.validate(),this.error){this.red=!0,this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(J){if(this.placeholder)return;this.cursor=this.cursor+J,this.cursorOffset+=J}_(J,Z){let $=this.value.slice(0,this.cursor),X=this.value.slice(this.cursor);this.value=`${$}${J}${X}`,this.red=!1,this.cursor=this.placeholder?0:$.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let J=this.value.slice(0,this.cursor-1),Z=this.value.slice(this.cursor);if(this.value=`${J}${Z}`,this.red=!1,this.isCursorAtStart())this.cursorOffset=0;else this.cursorOffset++,this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let J=this.value.slice(0,this.cursor),Z=this.value.slice(this.cursor+1);if(this.value=`${J}${Z}`,this.red=!1,this.isCursorAtEnd())this.cursorOffset=0;else this.cursorOffset++;this.render()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length,this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1),this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1),this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(W5.down(u2(this.outputError,this.out.columns)-1)+a$(this.outputError,this.out.columns));this.out.write(a$(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[l$.symbol(this.done,this.aborted),t9.bold(this.msg),l$.delimiter(this.done),this.red?t9.red(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":d2.pointerSmall} ${t9.red().italic(Z)}`,"");this.out.write(m2.line+W5.to(0)+this.outputText+W5.save+this.outputError+W5.restore+W5.move(this.cursorOffset,0))}}yW.exports=kW});var gW=V((io,bW)=>{var s6=j1(),c2=i6(),{style:fW,clear:vW,figures:r9,wrap:p2,entriesToDisplay:l2}=Y6(),{cursor:a2}=L1();class xW extends c2{constructor(J={}){super(J);this.msg=J.message,this.hint=J.hint||"- Use arrow-keys. Return to submit.",this.warn=J.warn||"- This option is disabled",this.cursor=J.initial||0,this.choices=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),value:Z&&(Z.value===void 0?$:Z.value),description:Z&&Z.description,selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.optionsPerPage=J.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=vW("",this.out.columns),this.render()}moveCursor(J){this.cursor=J,this.value=this.choices[J].value,this.fire()}reset(){this.moveCursor(0),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){if(!this.selection.disabled)this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close();else this.bell()}first(){this.moveCursor(0),this.render()}last(){this.moveCursor(this.choices.length-1),this.render()}up(){if(this.cursor===0)this.moveCursor(this.choices.length-1);else this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)this.moveCursor(0);else this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length),this.render()}_(J,Z){if(J===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(a2.hide);else this.out.write(vW(this.outputText,this.out.columns));super.render();let{startIndex:J,endIndex:Z}=l2(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[fW.symbol(this.done,this.aborted),s6.bold(this.msg),fW.delimiter(!1),this.done?this.selection.title:this.selection.disabled?s6.yellow(this.warn):s6.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let $=J;$<Z;$++){let X,Y,Q="",K=this.choices[$];if($===J&&J>0)Y=r9.arrowUp;else if($===Z-1&&Z<this.choices.length)Y=r9.arrowDown;else Y=" ";if(K.disabled)X=this.cursor===$?s6.gray().underline(K.title):s6.strikethrough().gray(K.title),Y=(this.cursor===$?s6.bold().gray(r9.pointer)+" ":" ")+Y;else if(X=this.cursor===$?s6.cyan().underline(K.title):K.title,Y=(this.cursor===$?s6.cyan(r9.pointer)+" ":" ")+Y,K.description&&this.cursor===$){if(Q=` - ${K.description}`,Y.length+X.length+Q.length>=this.out.columns||K.description.split(/\r?\n/).length>1)Q="\n"+p2(K.description,{margin:3,width:this.out.columns})}this.outputText+=`${Y} ${X}${s6.gray(Q)}\n`}}this.out.write(this.outputText)}}bW.exports=xW});var pW=V((so,cW)=>{var o9=j1(),i2=i6(),{style:mW,clear:s2}=Y6(),{cursor:uW,erase:n2}=L1();class dW extends i2{constructor(J={}){super(J);this.msg=J.message,this.value=!!J.initial,this.active=J.active||"on",this.inactive=J.inactive||"off",this.initialValue=this.value,this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}deactivate(){if(this.value===!1)return this.bell();this.value=!1,this.render()}activate(){if(this.value===!0)return this.bell();this.value=!0,this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value,this.fire(),this.render()}_(J,Z){if(J===" ")this.value=!this.value;else if(J==="1")this.value=!0;else if(J==="0")this.value=!1;else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(uW.hide);else this.out.write(s2(this.outputText,this.out.columns));super.render(),this.outputText=[mW.symbol(this.done,this.aborted),o9.bold(this.msg),mW.delimiter(this.done),this.value?this.inactive:o9.cyan().underline(this.inactive),o9.gray("/"),this.value?o9.cyan().underline(this.active):this.active].join(" "),this.out.write(n2.line+uW.to(0)+this.outputText)}}cW.exports=dW});var N6=V((no,lW)=>{class e9{constructor({token:J,date:Z,parts:$,locales:X}){this.token=J,this.date=Z||new Date,this.parts=$||[this],this.locales=X||{}}up(){}down(){}next(){const J=this.parts.indexOf(this);return this.parts.find((Z,$)=>$>J&&Z instanceof e9)}setTo(J){}prev(){let J=[].concat(this.parts).reverse();const Z=J.indexOf(this);return J.find(($,X)=>X>Z&&$ instanceof e9)}toString(){return String(this.date)}}lW.exports=e9});var sW=V((to,iW)=>{var t2=N6();class aW extends t2{constructor(J={}){super(J)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let J=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?J.toUpperCase():J}}iW.exports=aW});var rW=V((ro,tW)=>{var r2=N6(),o2=(J)=>{return J=J%10,J===1?"st":J===2?"nd":J===3?"rd":"th"};class nW extends r2{constructor(J={}){super(J)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(J){this.date.setDate(parseInt(J.substr(-2)))}toString(){let J=this.date.getDate(),Z=this.date.getDay();return this.token==="DD"?String(J).padStart(2,"0"):this.token==="Do"?J+o2(J):this.token==="d"?Z+1:this.token==="ddd"?this.locales.weekdaysShort[Z]:this.token==="dddd"?this.locales.weekdays[Z]:J}}tW.exports=nW});var JH=V((oo,eW)=>{var e2=N6();class oW extends e2{constructor(J={}){super(J)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(J){this.date.setHours(parseInt(J.substr(-2)))}toString(){let J=this.date.getHours();if(/h/.test(this.token))J=J%12||12;return this.token.length>1?String(J).padStart(2,"0"):J}}eW.exports=oW});var XH=V((eo,$H)=>{var Jh=N6();class ZH extends Jh{constructor(J={}){super(J)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(J){this.date.setMilliseconds(parseInt(J.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}$H.exports=ZH});var KH=V((Je,QH)=>{var Zh=N6();class YH extends Zh{constructor(J={}){super(J)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(J){this.date.setMinutes(parseInt(J.substr(-2)))}toString(){let J=this.date.getMinutes();return this.token.length>1?String(J).padStart(2,"0"):J}}QH.exports=YH});var qH=V((Ze,FH)=>{var $h=N6();class GH extends $h{constructor(J={}){super(J)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(J){J=parseInt(J.substr(-2))-1,this.date.setMonth(J<0?0:J)}toString(){let J=this.date.getMonth(),Z=this.token.length;return Z===2?String(J+1).padStart(2,"0"):Z===3?this.locales.monthsShort[J]:Z===4?this.locales.months[J]:String(J+1)}}FH.exports=GH});var VH=V(($e,HH)=>{var Xh=N6();class WH extends Xh{constructor(J={}){super(J)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(J){this.date.setSeconds(parseInt(J.substr(-2)))}toString(){let J=this.date.getSeconds();return this.token.length>1?String(J).padStart(2,"0"):J}}HH.exports=WH});var MH=V((Xe,UH)=>{var Yh=N6();class zH extends Yh{constructor(J={}){super(J)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(J){this.date.setFullYear(J.substr(-4))}toString(){let J=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?J.substr(-2):J}}UH.exports=zH});var AH=V((Ye,jH)=>{jH.exports={DatePart:N6(),Meridiem:sW(),Day:rW(),Hours:JH(),Milliseconds:XH(),Minutes:KH(),Month:qH(),Seconds:VH(),Year:MH()}});var NH=V((Qe,IH)=>{var i$=j1(),Qh=i6(),{style:LH,clear:wH,figures:Kh}=Y6(),{erase:Gh,cursor:RH}=L1(),{DatePart:DH,Meridiem:Fh,Day:qh,Hours:Wh,Milliseconds:Hh,Minutes:Vh,Month:zh,Seconds:Uh,Year:Mh}=AH(),jh=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g,PH={1:({token:J})=>J.replace(/\\(.)/g,"$1"),2:(J)=>new qh(J),3:(J)=>new zh(J),4:(J)=>new Mh(J),5:(J)=>new Fh(J),6:(J)=>new Wh(J),7:(J)=>new Vh(J),8:(J)=>new Uh(J),9:(J)=>new Hh(J)},Ah={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class TH extends Qh{constructor(J={}){super(J);this.msg=J.message,this.cursor=0,this.typed="",this.locales=Object.assign(Ah,J.locales),this._date=J.initial||new Date,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.mask=J.mask||"YYYY-MM-DD HH:mm:ss",this.clear=wH("",this.out.columns),this.render()}get value(){return this.date}get date(){return this._date}set date(J){if(J)this._date.setTime(J.getTime())}set mask(J){let Z;this.parts=[];while(Z=jh.exec(J)){let X=Z.shift(),Y=Z.findIndex((Q)=>Q!=null);this.parts.push(Y in PH?PH[Y]({token:Z[Y]||X,date:this.date,parts:this.parts,locales:this.locales}):Z[Y]||X)}let $=this.parts.reduce((X,Y)=>{if(typeof Y==="string"&&typeof X[X.length-1]==="string")X[X.length-1]+=Y;else X.push(Y);return X},[]);this.parts.splice(0),this.parts.push(...$),this.reset()}moveCursor(J){this.typed="",this.cursor=J,this.fire()}reset(){this.moveCursor(this.parts.findIndex((J)=>J instanceof DH)),this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let J=await this.validator(this.value);if(typeof J==="string")this.errorMsg=J,J=!1;this.error=!J}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let J=this.parts[this.cursor].prev();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}right(){let J=this.parts[this.cursor].next();if(J==null)return this.bell();this.moveCursor(this.parts.indexOf(J)),this.render()}next(){let J=this.parts[this.cursor].next();this.moveCursor(J?this.parts.indexOf(J):this.parts.findIndex((Z)=>Z instanceof DH)),this.render()}_(J){if(/\d/.test(J))this.typed+=J,this.parts[this.cursor].setTo(this.typed),this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(RH.hide);else this.out.write(wH(this.outputText,this.out.columns));if(super.render(),this.outputText=[LH.symbol(this.done,this.aborted),i$.bold(this.msg),LH.delimiter(!1),this.parts.reduce((J,Z,$)=>J.concat($===this.cursor&&!this.done?i$.cyan().underline(Z.toString()):Z),[]).join("")].join(" "),this.error)this.outputText+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":Kh.pointerSmall} ${i$.red().italic(Z)}`,"");this.out.write(Gh.line+RH.to(0)+this.outputText)}}IH.exports=TH});var SH=V((Ke,hH)=>{var JJ=j1(),Lh=i6(),{cursor:ZJ,erase:wh}=L1(),{style:s$,figures:Rh,clear:BH,lines:Dh}=Y6(),Ph=/[0-9]/,n$=(J)=>J!==void 0,EH=(J,Z)=>{let $=Math.pow(10,Z);return Math.round(J*$)/$};class CH extends Lh{constructor(J={}){super(J);this.transform=s$.render(J.style),this.msg=J.message,this.initial=n$(J.initial)?J.initial:"",this.float=!!J.float,this.round=J.round||2,this.inc=J.increment||1,this.min=n$(J.min)?J.min:(-Infinity),this.max=n$(J.max)?J.max:Infinity,this.errorMsg=J.error||"Please Enter A Valid Value",this.validator=J.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(J){if(!J&&J!==0)this.placeholder=!0,this.rendered=JJ.gray(this.transform.render(`${this.initial}`)),this._value="";else this.placeholder=!1,this.rendered=this.transform.render(`${EH(J,this.round)}`),this._value=EH(J,this.round);this.fire()}get value(){return this._value}parse(J){return this.float?parseFloat(J):parseInt(J)}valid(J){return J==="-"||J==="."&&this.float||Ph.test(J)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let J=this.value;this.value=J!==""?J:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let J=await this.validator(this.value);if(typeof J==="string")this.errorMsg=J,J=!1;this.error=!J}async submit(){if(await this.validate(),this.error){this.color="red",this.fire(),this.render();return}let J=this.value;this.value=J!==""?J:this.initial,this.done=!0,this.aborted=!1,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}up(){if(this.typed="",this.value==="")this.value=this.min-this.inc;if(this.value>=this.max)return this.bell();this.value+=this.inc,this.color="cyan",this.fire(),this.render()}down(){if(this.typed="",this.value==="")this.value=this.min+this.inc;if(this.value<=this.min)return this.bell();this.value-=this.inc,this.color="cyan",this.fire(),this.render()}delete(){let J=this.value.toString();if(J.length===0)return this.bell();if(this.value=this.parse(J=J.slice(0,-1))||"",this.value!==""&&this.value<this.min)this.value=this.min;this.color="cyan",this.fire(),this.render()}next(){this.value=this.initial,this.fire(),this.render()}_(J,Z){if(!this.valid(J))return this.bell();const $=Date.now();if($-this.lastHit>1000)this.typed="";if(this.typed+=J,this.lastHit=$,this.color="cyan",J===".")return this.fire();if(this.value=Math.min(this.parse(this.typed),this.max),this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire(),this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(ZJ.down(Dh(this.outputError,this.out.columns)-1)+BH(this.outputError,this.out.columns));this.out.write(BH(this.outputText,this.out.columns))}if(super.render(),this.outputError="",this.outputText=[s$.symbol(this.done,this.aborted),JJ.bold(this.msg),s$.delimiter(this.done),!this.done||!this.done&&!this.placeholder?JJ[this.color]().underline(this.rendered):this.rendered].join(" "),this.error)this.outputError+=this.errorMsg.split("\n").reduce((J,Z,$)=>J+`\n${$?" ":Rh.pointerSmall} ${JJ.red().italic(Z)}`,"");this.out.write(wh.line+ZJ.to(0)+this.outputText+ZJ.save+this.outputError+ZJ.restore)}}hH.exports=CH});var t$=V((Ge,_H)=>{var B6=j1(),{cursor:Th}=L1(),Ih=i6(),{clear:OH,figures:P8,style:kH,wrap:Nh,entriesToDisplay:Bh}=Y6();class yH extends Ih{constructor(J={}){super(J);if(this.msg=J.message,this.cursor=J.cursor||0,this.scrollIndex=J.cursor||0,this.hint=J.hint||"",this.warn=J.warn||"- This option is disabled -",this.minSelected=J.min,this.showMinError=!1,this.maxChoices=J.max,this.instructions=J.instructions,this.optionsPerPage=J.optionsPerPage||10,this.value=J.choices.map((Z,$)=>{if(typeof Z==="string")Z={title:Z,value:$};return{title:Z&&(Z.title||Z.value||Z),description:Z&&Z.description,value:Z&&(Z.value===void 0?$:Z.value),selected:Z&&Z.selected,disabled:Z&&Z.disabled}}),this.clear=OH("",this.out.columns),!J.overrideRender)this.render()}reset(){this.value.map((J)=>!J.selected),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((J)=>J.selected)}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const J=this.value.filter((Z)=>Z.selected);if(this.minSelected&&J.length<this.minSelected)this.showMinError=!0,this.render();else this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}first(){this.cursor=0,this.render()}last(){this.cursor=this.value.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.value.length,this.render()}up(){if(this.cursor===0)this.cursor=this.value.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.value.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.value[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const J=this.value[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}toggleAll(){if(this.maxChoices!==void 0||this.value[this.cursor].disabled)return this.bell();const J=!this.value[this.cursor].selected;this.value.filter((Z)=>!Z.disabled).forEach((Z)=>Z.selected=J),this.render()}_(J,Z){if(J===" ")this.handleSpaceToggle();else if(J==="a")this.toggleAll();else return this.bell()}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return"\nInstructions:\n"+` ${P8.arrowUp}/${P8.arrowDown}: Highlight option\n`+` ${P8.arrowLeft}/${P8.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===void 0?" a: Toggle all\n":"")+" enter/return: Complete answer"}return""}renderOption(J,Z,$,X){const Y=(Z.selected?B6.green(P8.radioOn):P8.radioOff)+" "+X+" ";let Q,K;if(Z.disabled)Q=J===$?B6.gray().underline(Z.title):B6.strikethrough().gray(Z.title);else if(Q=J===$?B6.cyan().underline(Z.title):Z.title,J===$&&Z.description){if(K=` - ${Z.description}`,Y.length+Q.length+K.length>=this.out.columns||Z.description.split(/\r?\n/).length>1)K="\n"+Nh(Z.description,{margin:Y.length,width:this.out.columns})}return Y+Q+B6.gray(K||"")}paginateOptions(J){if(J.length===0)return B6.red("No matches for this query.");let{startIndex:Z,endIndex:$}=Bh(this.cursor,J.length,this.optionsPerPage),X,Y=[];for(let Q=Z;Q<$;Q++){if(Q===Z&&Z>0)X=P8.arrowUp;else if(Q===$-1&&$<J.length)X=P8.arrowDown;else X=" ";Y.push(this.renderOption(this.cursor,J[Q],Q,X))}return"\n"+Y.join("\n")}renderOptions(J){if(!this.done)return this.paginateOptions(J);return""}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[B6.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled)J.push(B6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(Th.hide);super.render();let J=[kH.symbol(this.done,this.aborted),B6.bold(this.msg),kH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=B6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.value),this.out.write(this.clear+J),this.clear=OH(J,this.out.columns)}}_H.exports=yH});var mH=V((Fe,gH)=>{var H5=j1(),Eh=i6(),{erase:Ch,cursor:fH}=L1(),{style:r$,clear:vH,figures:o$,wrap:hh,entriesToDisplay:Sh}=Y6(),xH=(J,Z)=>J[Z]&&(J[Z].value||J[Z].title||J[Z]),Oh=(J,Z)=>J[Z]&&(J[Z].title||J[Z].value||J[Z]),kh=(J,Z)=>{const $=J.findIndex((X)=>X.value===Z||X.title===Z);return $>-1?$:void 0};class bH extends Eh{constructor(J={}){super(J);this.msg=J.message,this.suggest=J.suggest,this.choices=J.choices,this.initial=typeof J.initial==="number"?J.initial:kh(J.choices,J.initial),this.select=this.initial||J.cursor||0,this.i18n={noMatches:J.noMatches||"no matches found"},this.fallback=J.fallback||this.initial,this.clearFirst=J.clearFirst||!1,this.suggestions=[],this.input="",this.limit=J.limit||10,this.cursor=0,this.transform=r$.render(J.style),this.scale=this.transform.scale,this.render=this.render.bind(this),this.complete=this.complete.bind(this),this.clear=vH("",this.out.columns),this.complete(this.render),this.render()}set fallback(J){this._fb=Number.isSafeInteger(parseInt(J))?parseInt(J):J}get fallback(){let J;if(typeof this._fb==="number")J=this.choices[this._fb];else if(typeof this._fb==="string")J={title:this._fb};return J||this._fb||{title:this.i18n.noMatches}}moveSelect(J){if(this.select=J,this.suggestions.length>0)this.value=xH(this.suggestions,J);else this.value=this.fallback.value;this.fire()}async complete(J){const Z=this.completing=this.suggest(this.input,this.choices),$=await Z;if(this.completing!==Z)return;this.suggestions=$.map((Y,Q,K)=>({title:Oh(K,Q),value:xH(K,Q),description:Y.description})),this.completing=!1;const X=Math.max($.length-1,0);this.moveSelect(Math.min(X,this.select)),J&&J()}reset(){this.input="",this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0),this.render()}),this.render()}exit(){if(this.clearFirst&&this.input.length>0)this.reset();else this.done=this.exited=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}abort(){this.done=this.aborted=!0,this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.done=!0,this.aborted=this.exited=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(J,Z){let $=this.input.slice(0,this.cursor),X=this.input.slice(this.cursor);this.input=`${$}${J}${X}`,this.cursor=$.length+1,this.complete(this.render),this.render()}delete(){if(this.cursor===0)return this.bell();let J=this.input.slice(0,this.cursor-1),Z=this.input.slice(this.cursor);this.input=`${J}${Z}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let J=this.input.slice(0,this.cursor),Z=this.input.slice(this.cursor+1);this.input=`${J}${Z}`,this.complete(this.render),this.render()}first(){this.moveSelect(0),this.render()}last(){this.moveSelect(this.suggestions.length-1),this.render()}up(){if(this.select===0)this.moveSelect(this.suggestions.length-1);else this.moveSelect(this.select-1);this.render()}down(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions.length-1)this.moveSelect(0);else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1)),this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0)),this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1,this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1,this.render()}renderOption(J,Z,$,X){let Y,Q=$?o$.arrowUp:X?o$.arrowDown:" ",K=Z?H5.cyan().underline(J.title):J.title;if(Q=(Z?H5.cyan(o$.pointer)+" ":" ")+Q,J.description){if(Y=` - ${J.description}`,Q.length+K.length+Y.length>=this.out.columns||J.description.split(/\r?\n/).length>1)Y="\n"+hh(J.description,{margin:3,width:this.out.columns})}return Q+" "+K+H5.gray(Y||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(fH.hide);else this.out.write(vH(this.outputText,this.out.columns));super.render();let{startIndex:J,endIndex:Z}=Sh(this.select,this.choices.length,this.limit);if(this.outputText=[r$.symbol(this.done,this.aborted,this.exited),H5.bold(this.msg),r$.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" "),!this.done){const $=this.suggestions.slice(J,Z).map((X,Y)=>this.renderOption(X,this.select===Y+J,Y===0&&J>0,Y+J===Z-1&&Z<this.choices.length)).join("\n");this.outputText+="\n"+($||H5.gray(this.fallback.title))}this.out.write(Ch.line+fH.to(0)+this.outputText)}}gH.exports=bH});var lH=V((qe,pH)=>{var n6=j1(),{cursor:yh}=L1(),_h=t$(),{clear:uH,style:dH,figures:a4}=Y6();class cH extends _h{constructor(J={}){J.overrideRender=!0;super(J);this.inputValue="",this.clear=uH("",this.out.columns),this.filteredOptions=this.value,this.render()}last(){this.cursor=this.filteredOptions.length-1,this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length,this.render()}up(){if(this.cursor===0)this.cursor=this.filteredOptions.length-1;else this.cursor--;this.render()}down(){if(this.cursor===this.filteredOptions.length-1)this.cursor=0;else this.cursor++;this.render()}left(){this.filteredOptions[this.cursor].selected=!1,this.render()}right(){if(this.value.filter((J)=>J.selected).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=!0,this.render()}delete(){if(this.inputValue.length)this.inputValue=this.inputValue.substr(0,this.inputValue.length-1),this.updateFilteredOptions()}updateFilteredOptions(){const J=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(($)=>{if(this.inputValue){if(typeof $.title==="string"){if($.title.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}if(typeof $.value==="string"){if($.value.toLowerCase().includes(this.inputValue.toLowerCase()))return!0}return!1}return!0});const Z=this.filteredOptions.findIndex(($)=>$===J);this.cursor=Z<0?0:Z,this.render()}handleSpaceToggle(){const J=this.filteredOptions[this.cursor];if(J.selected)J.selected=!1,this.render();else if(J.disabled||this.value.filter((Z)=>Z.selected).length>=this.maxChoices)return this.bell();else J.selected=!0,this.render()}handleInputChange(J){this.inputValue=this.inputValue+J,this.updateFilteredOptions()}_(J,Z){if(J===" ")this.handleSpaceToggle();else this.handleInputChange(J)}renderInstructions(){if(this.instructions===void 0||this.instructions){if(typeof this.instructions==="string")return this.instructions;return`
|
|
10
10
|
Instructions:
|
|
11
11
|
${a4.arrowUp}/${a4.arrowDown}: Highlight option
|
|
12
12
|
${a4.arrowLeft}/${a4.arrowRight}/[space]: Toggle selection
|
|
13
13
|
[a,b,c]/delete: Filter choices
|
|
14
14
|
enter/return: Complete answer
|
|
15
15
|
`}return""}renderCurrentInput(){return`
|
|
16
|
-
Filtered results for: ${this.inputValue?this.inputValue:n6.gray("Enter something to filter")}\n`}renderOption(J,Z,$){let X;if(Z.disabled)X=J===$?n6.gray().underline(Z.title):n6.strikethrough().gray(Z.title);else X=J===$?n6.cyan().underline(Z.title):Z.title;return(Z.selected?n6.green(a4.radioOn):a4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[n6.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)J.push(n6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(kh.hide);super.render();let J=[uH.symbol(this.done,this.aborted),n6.bold(this.msg),uH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=n6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+J),this.clear=mH(J,this.out.columns)}}cH.exports=dH});var tH=V((qe,nH)=>{var lH=j1(),_h=i6(),{style:aH,clear:fh}=Y6(),{erase:vh,cursor:iH}=L1();class sH extends _h{constructor(J={}){super(J);this.msg=J.message,this.value=J.initial,this.initialValue=!!J.initial,this.yesMsg=J.yes||"yes",this.yesOption=J.yesOption||"(Y/n)",this.noMsg=J.no||"no",this.noOption=J.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(J,Z){if(J.toLowerCase()==="y")return this.value=!0,this.submit();if(J.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(iH.hide);else this.out.write(fh(this.outputText,this.out.columns));super.render(),this.outputText=[aH.symbol(this.done,this.aborted),lH.bold(this.msg),aH.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:lH.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(vh.line+iH.to(0)+this.outputText)}}nH.exports=sH});var oH=V((We,rH)=>{rH.exports={TextPrompt:yW(),SelectPrompt:bW(),TogglePrompt:cW(),DatePrompt:IH(),NumberPrompt:hH(),MultiselectPrompt:t$(),AutocompletePrompt:gH(),AutocompleteMultiselectPrompt:pH(),ConfirmPrompt:tH()}});var JV=V((eH)=>{var E6=function(J,Z,$={}){return new Promise((X,Y)=>{const Q=new xh[J](Z),K=$.onAbort||$J,G=$.onSubmit||$J,F=$.onExit||$J;Q.on("state",Z.onState||$J),Q.on("submit",(q)=>X(G(q))),Q.on("exit",(q)=>X(F(q))),Q.on("abort",(q)=>Y(K(q)))})},j0=eH,xh=oH(),$J=(J)=>J;j0.text=(J)=>E6("TextPrompt",J);j0.password=(J)=>{return J.style="password",j0.text(J)};j0.invisible=(J)=>{return J.style="invisible",j0.text(J)};j0.number=(J)=>E6("NumberPrompt",J);j0.date=(J)=>E6("DatePrompt",J);j0.confirm=(J)=>E6("ConfirmPrompt",J);j0.list=(J)=>{const Z=J.separator||",";return E6("TextPrompt",J,{onSubmit:($)=>$.split(Z).map((X)=>X.trim())})};j0.toggle=(J)=>E6("TogglePrompt",J);j0.select=(J)=>E6("SelectPrompt",J);j0.multiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return E6("MultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};j0.autocompleteMultiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return E6("AutocompleteMultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};var bh=(J,Z)=>Promise.resolve(Z.filter(($)=>$.title.slice(0,J.length).toLowerCase()===J.toLowerCase()));j0.autocomplete=(J)=>{return J.suggest=J.suggest||bh,J.choices=[].concat(J.choices||[]),E6("AutocompletePrompt",J)}});var XV=V((Ve,$V)=>{async function T8(J=[],{onSubmit:Z=ZV,onCancel:$=ZV}={}){const X={},Y=T8._override||{};J=[].concat(J);let Q,K,G,F,q,W;const H=async(U,j,z=!1)=>{if(!z&&U.validate&&U.validate(j)!==!0)return;return U.format?await U.format(j,X):j};for(K of J){if({name:F,type:q}=K,typeof q==="function")q=await q(Q,{...X},K),K.type=q;if(!q)continue;for(let U in K){if(gh.includes(U))continue;let j=K[U];K[U]=typeof j==="function"?await j(Q,{...X},W):j}if(W=K,typeof K.message!=="string")throw new Error("prompt message is required");if({name:F,type:q}=K,e$[q]===void 0)throw new Error(`prompt type (${q}) is not defined`);if(Y[K.name]!==void 0){if(Q=await H(K,Y[K.name]),Q!==void 0){X[F]=Q;continue}}try{Q=T8._injected?mh(T8._injected,K.initial):await e$[q](K),X[F]=Q=await H(K,Q,!0),G=await Z(K,Q,X)}catch(U){G=!await $(K,X)}if(G)return X}return X}var mh=function(J,Z){const $=J.shift();if($ instanceof Error)throw $;return $===void 0?Z:$},uh=function(J){T8._injected=(T8._injected||[]).concat(J)},dh=function(J){T8._override=Object.assign({},J)},e$=JV(),gh=["suggest","format","onState","validate","onRender","type"],ZV=()=>{};$V.exports=Object.assign(T8,{prompt:T8,prompts:e$,inject:uh,override:dh})});var QV=V((ze,YV)=>{var ch=function(J){J=(Array.isArray(J)?J:J.split(".")).map(Number);let Z=0,$=process.versions.node.split(".").map(Number);for(;Z<J.length;Z++){if($[Z]>J[Z])return!1;if(J[Z]>$[Z])return!0}return!1};YV.exports=ch("8.6.0")?HW():XV()});var L5=V((uS)=>{var PX=function(J){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(J))},q4=function(J){return Object.prototype.toString.call(J)==="[object Uint8Array]"},s4=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},TX=function(J){return Object.prototype.toString.call(J)==="[object Map]"},n4=function(J){return Object.prototype.toString.call(J)==="[object Date]"},B0=function(J,Z){return JSON.stringify(J,($,X)=>{if(typeof X==="bigint")return{$numberLong:`${X}`};else if(TX(X))return Object.fromEntries(X);return X})},ah=function(J){if(J!=null&&typeof J==="object"&&"stylize"in J&&typeof J.stylize==="function")return J.stylize},th=function(J){return I8.fromNumberArray(Array.from({length:J},()=>Math.floor(Math.random()*256)))},oh=function(){const{navigator:J}=globalThis;return typeof J==="object"&&J.product==="ReactNative"},eh=function(J){if(J<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${J}`);return o4.fromNumberArray(Array.from({length:J},()=>Math.floor(Math.random()*256)))},bV=function(J){return J!=null&&typeof J==="object"&&"$id"in J&&J.$id!=null&&"$ref"in J&&typeof J.$ref==="string"&&(!("$db"in J)||("$db"in J)&&typeof J.$db==="string")},LV=function(J){return!isNaN(parseInt(J,10))},US=function(J){const Z=M.fromNumber(1e9);let $=M.fromNumber(0);if(!J.parts[0]&&!J.parts[1]&&!J.parts[2]&&!J.parts[3])return{quotient:J,rem:$};for(let X=0;X<=3;X++)$=$.shiftLeft(32),$=$.add(new M(J.parts[X],0)),J.parts[X]=$.div(Z).low,$=$.modulo(Z);return{quotient:J,rem:$}},MS=function(J,Z){if(!J&&!Z)return{high:M.fromNumber(0),low:M.fromNumber(0)};const $=J.shiftRightUnsigned(32),X=new M(J.getLowBits(),0),Y=Z.shiftRightUnsigned(32),Q=new M(Z.getLowBits(),0);let K=$.multiply(Y),G=$.multiply(Q);const F=X.multiply(Y);let q=X.multiply(Q);return K=K.add(G.shiftRightUnsigned(32)),G=new M(G.getLowBits(),0).add(F).add(q.shiftRightUnsigned(32)),K=K.add(G.shiftRightUnsigned(32)),q=G.shiftLeft(32).add(new M(q.getLowBits(),0)),{high:K,low:q}},jS=function(J,Z){const $=J.high>>>0,X=Z.high>>>0;if($<X)return!0;else if($===X){const Y=J.low>>>0,Q=Z.low>>>0;if(Y<Q)return!0}return!1},Q6=function(J,Z){throw new D(`"${J}" is not a valid Decimal128 string - ${Z}`)},KJ=function(J,Z,$){let X=5;if(Array.isArray(J))for(let Y=0;Y<J.length;Y++)X+=wV(Y.toString(),J[Y],Z,!0,$);else{if(typeof J?.toBSON==="function")J=J.toBSON();for(let Y of Object.keys(J))X+=wV(Y,J[Y],Z,!1,$)}return X},wV=function(J,Z,$=!1,X=!1,Y=!1){if(typeof Z?.toBSON==="function")Z=Z.toBSON();switch(typeof Z){case"string":return 1+L.utf8ByteLength(J)+1+4+L.utf8ByteLength(Z)+1;case"number":if(Math.floor(Z)===Z&&Z>=NV&&Z<=IV)if(Z>=UJ&&Z<=zJ)return(J!=null?L.utf8ByteLength(J)+1:0)+5;else return(J!=null?L.utf8ByteLength(J)+1:0)+9;else return(J!=null?L.utf8ByteLength(J)+1:0)+9;case"undefined":if(X||!Y)return(J!=null?L.utf8ByteLength(J)+1:0)+1;return 0;case"boolean":return(J!=null?L.utf8ByteLength(J)+1:0)+2;case"object":if(Z!=null&&typeof Z._bsontype==="string"&&Z[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(Z==null||Z._bsontype==="MinKey"||Z._bsontype==="MaxKey")return(J!=null?L.utf8ByteLength(J)+1:0)+1;else if(Z._bsontype==="ObjectId")return(J!=null?L.utf8ByteLength(J)+1:0)+13;else if(Z instanceof Date||n4(Z))return(J!=null?L.utf8ByteLength(J)+1:0)+9;else if(ArrayBuffer.isView(Z)||Z instanceof ArrayBuffer||PX(Z))return(J!=null?L.utf8ByteLength(J)+1:0)+6+Z.byteLength;else if(Z._bsontype==="Long"||Z._bsontype==="Double"||Z._bsontype==="Timestamp")return(J!=null?L.utf8ByteLength(J)+1:0)+9;else if(Z._bsontype==="Decimal128")return(J!=null?L.utf8ByteLength(J)+1:0)+17;else if(Z._bsontype==="Code")if(Z.scope!=null&&Object.keys(Z.scope).length>0)return(J!=null?L.utf8ByteLength(J)+1:0)+1+4+4+L.utf8ByteLength(Z.code.toString())+1+KJ(Z.scope,$,Y);else return(J!=null?L.utf8ByteLength(J)+1:0)+1+4+L.utf8ByteLength(Z.code.toString())+1;else if(Z._bsontype==="Binary"){const Q=Z;if(Q.sub_type===l.SUBTYPE_BYTE_ARRAY)return(J!=null?L.utf8ByteLength(J)+1:0)+(Q.position+1+4+1+4);else return(J!=null?L.utf8ByteLength(J)+1:0)+(Q.position+1+4+1)}else if(Z._bsontype==="Symbol")return(J!=null?L.utf8ByteLength(J)+1:0)+L.utf8ByteLength(Z.value)+4+1+1;else if(Z._bsontype==="DBRef"){const Q=Object.assign({$ref:Z.collection,$id:Z.oid},Z.fields);if(Z.db!=null)Q.$db=Z.db;return(J!=null?L.utf8ByteLength(J)+1:0)+1+KJ(Q,$,Y)}else if(Z instanceof RegExp||s4(Z))return(J!=null?L.utf8ByteLength(J)+1:0)+1+L.utf8ByteLength(Z.source)+1+(Z.global?1:0)+(Z.ignoreCase?1:0)+(Z.multiline?1:0)+1;else if(Z._bsontype==="BSONRegExp")return(J!=null?L.utf8ByteLength(J)+1:0)+1+L.utf8ByteLength(Z.pattern)+1+L.utf8ByteLength(Z.options)+1;else return(J!=null?L.utf8ByteLength(J)+1:0)+KJ(Z,$,Y)+1;case"function":if($)return(J!=null?L.utf8ByteLength(J)+1:0)+1+4+L.utf8ByteLength(Z.toString())+1}return 0},LS=function(J){return J.split("").sort().join("")},mV=function(J,Z,$){let X=0;for(let Y=Z;Y<$;Y+=1){const Q=J[Y];if(X){if((Q&DS)!==CS)return!1;X-=1}else if(Q&RS)if((Q&PS)===NS)X=1;else if((Q&TS)===BS)X=2;else if((Q&IS)===ES)X=3;else return!1}return!X},uV=function(J,Z,$){Z=Z==null?{}:Z;const X=Z&&Z.index?Z.index:0,Y=J[X]|J[X+1]<<8|J[X+2]<<16|J[X+3]<<24;if(Y<5)throw new D(`bson size must be >= 5, is ${Y}`);if(Z.allowObjectSmallerThanBufferSize&&J.length<Y)throw new D(`buffer length ${J.length} must be >= bson size ${Y}`);if(!Z.allowObjectSmallerThanBufferSize&&J.length!==Y)throw new D(`buffer length ${J.length} must === bson size ${Y}`);if(Y+X>J.byteLength)throw new D(`(bson size ${Y} + options.index ${X} must be <= buffer length ${J.byteLength})`);if(J[X+Y-1]!==0)throw new D("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");return GJ(J,X,Z,$)},GJ=function(J,Z,$,X=!1){const Y=$.fieldsAsRaw==null?null:$.fieldsAsRaw,Q=$.raw==null?!1:$.raw,K=typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,G=$.promoteBuffers??!1,F=$.promoteLongs??!0,q=$.promoteValues??!0,W=$.useBigInt64??!1;if(W&&!q)throw new D("Must either request bigint or Long for int64 deserialization");if(W&&!F)throw new D("Must either request bigint or Long for int64 deserialization");const H=$.validation==null?{utf8:!0}:$.validation;let U=!0,j;const z=new Set,A=H.utf8;if(typeof A==="boolean")j=A;else{U=!1;const k=Object.keys(A).map(function(B){return A[B]});if(k.length===0)throw new D("UTF-8 validation setting cannot be empty");if(typeof k[0]!=="boolean")throw new D("Invalid UTF-8 validation option, must specify boolean values");if(j=k[0],!k.every((B)=>B===j))throw new D("Invalid UTF-8 validation option - keys must be all true or all false")}if(!U)for(let k of Object.keys(A))z.add(k);const T=Z;if(J.length<5)throw new D("corrupt bson message < 5 bytes long");const w=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(w<5||w>J.length)throw new D("corrupt bson message");const N=X?[]:{};let P=0;const f=!1;let $0=X?!1:null;const A8=new DataView(J.buffer,J.byteOffset,J.byteLength);while(!f){const k=J[Z++];if(k===0)break;let B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.byteLength)throw new D("Bad BSON Document: illegal CString");const Q1=X?P++:L.toUTF8(J,Z,B);let g=!0;if(U||z.has(Q1))g=j;else g=!j;if($0!==!1&&Q1[0]==="$")$0=OS.test(Q1);let _;if(Z=B+1,k===BV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");_=QJ(J,Z,Z+C-1,g),Z=Z+C}else if(k===CV){const C=L.allocate(12);C.set(J.subarray(Z,Z+12)),_=new w1(C),Z=Z+12}else if(k===r4&&q===!1)_=new C8(J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24);else if(k===r4)_=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;else if(k===FJ&&q===!1)_=new E8(A8.getFloat64(Z,!0)),Z=Z+8;else if(k===FJ)_=A8.getFloat64(Z,!0),Z=Z+8;else if(k===SV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,O=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;_=new Date(new M(C,O).toNumber())}else if(k===hV){if(J[Z]!==0&&J[Z]!==1)throw new D("illegal boolean type value");_=J[Z++]===1}else if(k===IX){const C=Z,O=J[Z]|J[Z+1]<<8|J[Z+2]<<16|J[Z+3]<<24;if(O<=0||O>J.length-Z)throw new D("bad embedded document length in bson");if(Q)_=J.slice(Z,Z+O);else{let q1=$;if(!U)q1={...$,validation:{utf8:g}};_=GJ(J,C,q1,!1)}Z=Z+O}else if(k===EV){const C=Z,O=J[Z]|J[Z+1]<<8|J[Z+2]<<16|J[Z+3]<<24;let q1=$;const U0=Z+O;if(Y&&Y[Q1])q1={...$,raw:!0};if(!U)q1={...q1,validation:{utf8:g}};if(_=GJ(J,C,q1,!0),Z=Z+O,J[Z-1]!==0)throw new D("invalid array terminator byte");if(Z!==U0)throw new D("corrupted array bson")}else if(k===ih)_=void 0;else if(k===BX)_=null;else if(k===CX){const C=M5.fromUint8Array(J.subarray(Z,Z+8)),O=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,q1=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,U0=new M(O,q1);if(W)_=C.getBigInt64(0,!0);else if(F&&q===!0)_=U0.lessThanOrEqual(hS)&&U0.greaterThanOrEqual(SS)?U0.toNumber():U0;else _=U0}else if(k===_V){const C=L.allocate(16);C.set(J.subarray(Z,Z+16),0),Z=Z+16,_=new n1(C)}else if(k===NX){let C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;const O=C,q1=J[Z++];if(C<0)throw new D("Negative binary type element size found");if(C>J.byteLength)throw new D("Binary type size larger than document size");if(J.slice!=null){if(q1===l.SUBTYPE_BYTE_ARRAY){if(C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,C<0)throw new D("Negative binary type element size found for subtype 0x02");if(C>O-4)throw new D("Binary type with subtype 0x02 contains too long binary size");if(C<O-4)throw new D("Binary type with subtype 0x02 contains too short binary size")}if(G&&q)_=L.toLocalBufferType(J.slice(Z,Z+C));else if(_=new l(J.slice(Z,Z+C),q1),q1===WJ&&f1.isValid(_))_=_.toUUID()}else{const U0=L.allocate(C);if(q1===l.SUBTYPE_BYTE_ARRAY){if(C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,C<0)throw new D("Negative binary type element size found for subtype 0x02");if(C>O-4)throw new D("Binary type with subtype 0x02 contains too long binary size");if(C<O-4)throw new D("Binary type with subtype 0x02 contains too short binary size")}for(B=0;B<C;B++)U0[B]=J[Z+B];if(G&&q)_=U0;else if(_=new l(J.slice(Z,Z+C),q1),q1===WJ&&f1.isValid(_))_=_.toUUID()}Z=Z+C}else if(k===qJ&&K===!1){B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const C=L.toUTF8(J,Z,B);Z=B+1,B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const O=L.toUTF8(J,Z,B);Z=B+1;const q1=new Array(O.length);for(B=0;B<O.length;B++)switch(O[B]){case"m":q1[B]="m";break;case"s":q1[B]="g";break;case"i":q1[B]="i";break}_=new RegExp(C,q1.join(""))}else if(k===qJ&&K===!0){B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const C=L.toUTF8(J,Z,B);Z=B+1,B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const O=L.toUTF8(J,Z,B);Z=B+1,_=new u0(C,O)}else if(k===OV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");const O=QJ(J,Z,Z+C-1,g);_=q?O:new z4(O),Z=Z+C}else if(k===yV){const C=J[Z++]+J[Z++]*(1<<8)+J[Z++]*(1<<16)+J[Z++]*(1<<24),O=J[Z++]+J[Z++]*(1<<8)+J[Z++]*(1<<16)+J[Z++]*(1<<24);_=new m0({i:C,t:O})}else if(k===fV)_=new V4;else if(k===vV)_=new H4;else if(k===EX){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");const O=QJ(J,Z,Z+C-1,g);_=new o6(O),Z=Z+C}else if(k===kV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<13)throw new D("code_w_scope total size shorter minimum expected length");const O=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(O<=0||O>J.length-Z||J[Z+O-1]!==0)throw new D("bad string length in bson");const q1=QJ(J,Z,Z+O-1,g);Z=Z+O;const U0=Z,V$=J[Z]|J[Z+1]<<8|J[Z+2]<<16|J[Z+3]<<24,cB=GJ(J,U0,$,!1);if(Z=Z+V$,C<8+V$+O)throw new D("code_w_scope total size is too short, truncating scope");if(C>8+V$+O)throw new D("code_w_scope total size is too long, clips outer document");_=new o6(q1,cB)}else if(k===sh){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");if(H!=null&&H.utf8){if(!mV(J,Z,Z+C-1))throw new D("Invalid UTF-8 string in BSON document")}const O=L.toUTF8(J,Z,Z+C-1);Z=Z+C;const q1=L.allocate(12);q1.set(J.subarray(Z,Z+12),0);const U0=new w1(q1);Z=Z+12,_=new C6(O,U0)}else throw new D(`Detected unknown BSON type ${k.toString(16)} for fieldname "${Q1}"`);if(Q1==="__proto__")Object.defineProperty(N,Q1,{value:_,writable:!0,enumerable:!0,configurable:!0});else N[Q1]=_}if(w!==Z-T){if(X)throw new D("corrupt array bson");throw new D("corrupt object bson")}if(!$0)return N;if(bV(N)){const k=Object.assign({},N);return delete k.$ref,delete k.$id,delete k.$db,new C6(N.$ref,N.$id,N.$db,k)}return N},QJ=function(J,Z,$,X){const Y=L.toUTF8(J,Z,$);if(X){for(let Q=0;Q<Y.length;Q++)if(Y.charCodeAt(Q)===65533){if(!mV(J,Z,$))throw new D("Invalid UTF-8 string in BSON document");break}}return Y},$X=function(J,Z,$,X){J[X++]=BV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y+1,J[X-1]=0;const Q=L.encodeUTF8Into(J,$,X+4);return J[X+3]=Q+1>>24&255,J[X+2]=Q+1>>16&255,J[X+1]=Q+1>>8&255,J[X]=Q+1&255,X=X+4+Q,J[X++]=0,X},XX=function(J,Z,$,X){const Q=!Object.is($,-0)&&Number.isSafeInteger($)&&$<=zJ&&$>=UJ?r4:FJ;if(Q===r4)e4.setInt32(0,$,!0);else e4.setFloat64(0,$,!0);const K=Q===r4?kS:VJ;J[X++]=Q;const G=L.encodeUTF8Into(J,Z,X);return X=X+G,J[X++]=0,J.set(K,X),X+=K.byteLength,X},YX=function(J,Z,$,X){J[X++]=CX;const Y=L.encodeUTF8Into(J,Z,X);return X+=Y,J[X++]=0,e4.setBigInt64(0,$,!0),J.set(VJ,X),X+=VJ.byteLength,X},U5=function(J,Z,$,X){J[X++]=BX;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,X},QX=function(J,Z,$,X){J[X++]=hV;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,J[X++]=$?1:0,X},KX=function(J,Z,$,X){J[X++]=SV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=M.fromNumber($.getTime()),K=Q.getLowBits(),G=Q.getHighBits();return J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255,J[X++]=G&255,J[X++]=G>>8&255,J[X++]=G>>16&255,J[X++]=G>>24&255,X},GX=function(J,Z,$,X){J[X++]=qJ;const Y=L.encodeUTF8Into(J,Z,X);if(X=X+Y,J[X++]=0,$.source&&$.source.match(HJ)!=null)throw new D("value "+$.source+" must not contain null bytes");if(X=X+L.encodeUTF8Into(J,$.source,X),J[X++]=0,$.ignoreCase)J[X++]=105;if($.global)J[X++]=115;if($.multiline)J[X++]=109;return J[X++]=0,X},FX=function(J,Z,$,X){J[X++]=qJ;const Y=L.encodeUTF8Into(J,Z,X);if(X=X+Y,J[X++]=0,$.pattern.match(HJ)!=null)throw new D("pattern "+$.pattern+" must not contain null bytes");X=X+L.encodeUTF8Into(J,$.pattern,X),J[X++]=0;const Q=$.options.split("").sort().join("");return X=X+L.encodeUTF8Into(J,Q,X),J[X++]=0,X},qX=function(J,Z,$,X){if($===null)J[X++]=BX;else if($._bsontype==="MinKey")J[X++]=fV;else J[X++]=vV;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,X},WX=function(J,Z,$,X){J[X++]=CV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.id;if(q4(Q))for(let K=0;K<12;K++)J[X++]=Q[K];else throw new D("object ["+JSON.stringify($)+"] is not a valid ObjectId");return X},HX=function(J,Z,$,X){J[X++]=NX;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.length;return J[X++]=Q&255,J[X++]=Q>>8&255,J[X++]=Q>>16&255,J[X++]=Q>>24&255,J[X++]=nh,J.set($,X),X=X+Q,X},VX=function(J,Z,$,X,Y,Q,K,G,F){if(F.has($))throw new D("Cannot convert circular structure to BSON");F.add($),J[X++]=Array.isArray($)?EV:IX;const q=L.encodeUTF8Into(J,Z,X);X=X+q,J[X++]=0;const W=A5(J,$,Y,X,Q+1,K,G,F);return F.delete($),W},zX=function(J,Z,$,X){J[X++]=_V;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,J.set($.bytes.subarray(0,16),X),X+16},UX=function(J,Z,$,X){J[X++]=$._bsontype==="Long"?CX:yV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.getLowBits(),K=$.getHighBits();return J[X++]=Q&255,J[X++]=Q>>8&255,J[X++]=Q>>16&255,J[X++]=Q>>24&255,J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255,X},MX=function(J,Z,$,X){$=$.valueOf(),J[X++]=r4;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,J[X++]=$&255,J[X++]=$>>8&255,J[X++]=$>>16&255,J[X++]=$>>24&255,X},jX=function(J,Z,$,X){J[X++]=FJ;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,e4.setFloat64(0,$.value,!0),J.set(VJ,X),X=X+8,X},AX=function(J,Z,$,X){J[X++]=EX;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.toString(),K=L.encodeUTF8Into(J,Q,X+4)+1;return J[X]=K&255,J[X+1]=K>>8&255,J[X+2]=K>>16&255,J[X+3]=K>>24&255,X=X+4+K-1,J[X++]=0,X},LX=function(J,Z,$,X,Y=!1,Q=0,K=!1,G=!0,F){if($.scope&&typeof $.scope==="object"){J[X++]=kV;const q=L.encodeUTF8Into(J,Z,X);X=X+q,J[X++]=0;let W=X;const H=$.code;X=X+4;const U=L.encodeUTF8Into(J,H,X+4)+1;J[X]=U&255,J[X+1]=U>>8&255,J[X+2]=U>>16&255,J[X+3]=U>>24&255,J[X+4+U-1]=0,X=X+U+4;const j=A5(J,$.scope,Y,X,Q+1,K,G,F);X=j-1;const z=j-W;J[W++]=z&255,J[W++]=z>>8&255,J[W++]=z>>16&255,J[W++]=z>>24&255,J[X++]=0}else{J[X++]=EX;const q=L.encodeUTF8Into(J,Z,X);X=X+q,J[X++]=0;const W=$.code.toString(),H=L.encodeUTF8Into(J,W,X+4)+1;J[X]=H&255,J[X+1]=H>>8&255,J[X+2]=H>>16&255,J[X+3]=H>>24&255,X=X+4+H-1,J[X++]=0}return X},wX=function(J,Z,$,X){J[X++]=NX;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.buffer;let K=$.position;if($.sub_type===l.SUBTYPE_BYTE_ARRAY)K=K+4;if(J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255,J[X++]=$.sub_type,$.sub_type===l.SUBTYPE_BYTE_ARRAY)K=K-4,J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255;return J.set(Q,X),X=X+$.position,X},RX=function(J,Z,$,X){J[X++]=OV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=L.encodeUTF8Into(J,$.value,X+4)+1;return J[X]=Q&255,J[X+1]=Q>>8&255,J[X+2]=Q>>16&255,J[X+3]=Q>>24&255,X=X+4+Q-1,J[X++]=0,X},DX=function(J,Z,$,X,Y,Q,K){J[X++]=IX;const G=L.encodeUTF8Into(J,Z,X);X=X+G,J[X++]=0;let F=X,q={$ref:$.collection||$.namespace,$id:$.oid};if($.db!=null)q.$db=$.db;q=Object.assign(q,$.fields);const W=A5(J,q,!1,X,Y+1,Q,!0,K),H=W-F;return J[F++]=H&255,J[F++]=H>>8&255,J[F++]=H>>16&255,J[F++]=H>>24&255,W},A5=function(J,Z,$,X,Y,Q,K,G){if(G==null){if(Z==null)return J[0]=5,J[1]=0,J[2]=0,J[3]=0,J[4]=0,5;if(Array.isArray(Z))throw new D("serialize does not support an array as the root input");if(typeof Z!=="object")throw new D("serialize does not support non-object as the root input");else if("_bsontype"in Z&&typeof Z._bsontype==="string")throw new D("BSON types cannot be serialized as a document");else if(n4(Z)||s4(Z)||q4(Z)||PX(Z))throw new D("date, regexp, typedarray, and arraybuffer cannot be BSON documents");G=new Set}G.add(Z);let F=X+4;if(Array.isArray(Z))for(let W=0;W<Z.length;W++){const H=`${W}`;let U=Z[W];if(typeof U?.toBSON==="function")U=U.toBSON();if(typeof U==="string")F=$X(J,H,U,F);else if(typeof U==="number")F=XX(J,H,U,F);else if(typeof U==="bigint")F=YX(J,H,U,F);else if(typeof U==="boolean")F=QX(J,H,U,F);else if(U instanceof Date||n4(U))F=KX(J,H,U,F);else if(U===void 0)F=U5(J,H,U,F);else if(U===null)F=U5(J,H,U,F);else if(q4(U))F=HX(J,H,U,F);else if(U instanceof RegExp||s4(U))F=GX(J,H,U,F);else if(typeof U==="object"&&U._bsontype==null)F=VX(J,H,U,F,$,Y,Q,K,G);else if(typeof U==="object"&&U[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(U._bsontype==="ObjectId")F=WX(J,H,U,F);else if(U._bsontype==="Decimal128")F=zX(J,H,U,F);else if(U._bsontype==="Long"||U._bsontype==="Timestamp")F=UX(J,H,U,F);else if(U._bsontype==="Double")F=jX(J,H,U,F);else if(typeof U==="function"&&Q)F=AX(J,H,U,F);else if(U._bsontype==="Code")F=LX(J,H,U,F,$,Y,Q,K,G);else if(U._bsontype==="Binary")F=wX(J,H,U,F);else if(U._bsontype==="BSONSymbol")F=RX(J,H,U,F);else if(U._bsontype==="DBRef")F=DX(J,H,U,F,Y,Q,G);else if(U._bsontype==="BSONRegExp")F=FX(J,H,U,F);else if(U._bsontype==="Int32")F=MX(J,H,U,F);else if(U._bsontype==="MinKey"||U._bsontype==="MaxKey")F=qX(J,H,U,F);else if(typeof U._bsontype!=="undefined")throw new D(`Unrecognized or invalid _bsontype: ${String(U._bsontype)}`)}else if(Z instanceof Map||TX(Z)){const W=Z.entries();let H=!1;while(!H){const U=W.next();if(H=!!U.done,H)continue;const j=U.value[0];let z=U.value[1];if(typeof z?.toBSON==="function")z=z.toBSON();const A=typeof z;if(typeof j==="string"&&!RV.has(j)){if(j.match(HJ)!=null)throw new D("key "+j+" must not contain null bytes");if($){if(j[0]==="$")throw new D("key "+j+" must not start with '$'");else if(~j.indexOf("."))throw new D("key "+j+" must not contain '.'")}}if(A==="string")F=$X(J,j,z,F);else if(A==="number")F=XX(J,j,z,F);else if(A==="bigint")F=YX(J,j,z,F);else if(A==="boolean")F=QX(J,j,z,F);else if(z instanceof Date||n4(z))F=KX(J,j,z,F);else if(z===null||z===void 0&&K===!1)F=U5(J,j,z,F);else if(q4(z))F=HX(J,j,z,F);else if(z instanceof RegExp||s4(z))F=GX(J,j,z,F);else if(A==="object"&&z._bsontype==null)F=VX(J,j,z,F,$,Y,Q,K,G);else if(typeof z==="object"&&z[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(z._bsontype==="ObjectId")F=WX(J,j,z,F);else if(A==="object"&&z._bsontype==="Decimal128")F=zX(J,j,z,F);else if(z._bsontype==="Long"||z._bsontype==="Timestamp")F=UX(J,j,z,F);else if(z._bsontype==="Double")F=jX(J,j,z,F);else if(z._bsontype==="Code")F=LX(J,j,z,F,$,Y,Q,K,G);else if(typeof z==="function"&&Q)F=AX(J,j,z,F);else if(z._bsontype==="Binary")F=wX(J,j,z,F);else if(z._bsontype==="BSONSymbol")F=RX(J,j,z,F);else if(z._bsontype==="DBRef")F=DX(J,j,z,F,Y,Q,G);else if(z._bsontype==="BSONRegExp")F=FX(J,j,z,F);else if(z._bsontype==="Int32")F=MX(J,j,z,F);else if(z._bsontype==="MinKey"||z._bsontype==="MaxKey")F=qX(J,j,z,F);else if(typeof z._bsontype!=="undefined")throw new D(`Unrecognized or invalid _bsontype: ${String(z._bsontype)}`)}}else{if(typeof Z?.toBSON==="function"){if(Z=Z.toBSON(),Z!=null&&typeof Z!=="object")throw new D("toBSON function did not return an object")}for(let W of Object.keys(Z)){let H=Z[W];if(typeof H?.toBSON==="function")H=H.toBSON();const U=typeof H;if(typeof W==="string"&&!RV.has(W)){if(W.match(HJ)!=null)throw new D("key "+W+" must not contain null bytes");if($){if(W[0]==="$")throw new D("key "+W+" must not start with '$'");else if(~W.indexOf("."))throw new D("key "+W+" must not contain '.'")}}if(U==="string")F=$X(J,W,H,F);else if(U==="number")F=XX(J,W,H,F);else if(U==="bigint")F=YX(J,W,H,F);else if(U==="boolean")F=QX(J,W,H,F);else if(H instanceof Date||n4(H))F=KX(J,W,H,F);else if(H===void 0){if(K===!1)F=U5(J,W,H,F)}else if(H===null)F=U5(J,W,H,F);else if(q4(H))F=HX(J,W,H,F);else if(H instanceof RegExp||s4(H))F=GX(J,W,H,F);else if(U==="object"&&H._bsontype==null)F=VX(J,W,H,F,$,Y,Q,K,G);else if(typeof H==="object"&&H[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(H._bsontype==="ObjectId")F=WX(J,W,H,F);else if(U==="object"&&H._bsontype==="Decimal128")F=zX(J,W,H,F);else if(H._bsontype==="Long"||H._bsontype==="Timestamp")F=UX(J,W,H,F);else if(H._bsontype==="Double")F=jX(J,W,H,F);else if(H._bsontype==="Code")F=LX(J,W,H,F,$,Y,Q,K,G);else if(typeof H==="function"&&Q)F=AX(J,W,H,F);else if(H._bsontype==="Binary")F=wX(J,W,H,F);else if(H._bsontype==="BSONSymbol")F=RX(J,W,H,F);else if(H._bsontype==="DBRef")F=DX(J,W,H,F,Y,Q,G);else if(H._bsontype==="BSONRegExp")F=FX(J,W,H,F);else if(H._bsontype==="Int32")F=MX(J,W,H,F);else if(H._bsontype==="MinKey"||H._bsontype==="MaxKey")F=qX(J,W,H,F);else if(typeof H._bsontype!=="undefined")throw new D(`Unrecognized or invalid _bsontype: ${String(H._bsontype)}`)}}G.delete(Z),J[F++]=0;const q=F-X;return J[X++]=q&255,J[X++]=q>>8&255,J[X++]=q>>16&255,J[X++]=q>>24&255,F},yS=function(J){return J!=null&&typeof J==="object"&&"_bsontype"in J&&typeof J._bsontype==="string"},dV=function(J,Z={}){if(typeof J==="number"){const X=J<=zJ&&J>=UJ,Y=J<=PV&&J>=TV;if(Z.relaxed||Z.legacy)return J;if(Number.isInteger(J)&&!Object.is(J,-0)){if(X)return new C8(J);if(Y){if(Z.useBigInt64)return BigInt(J);return M.fromNumber(J)}}return new E8(J)}if(J==null||typeof J!=="object")return J;if(J.$undefined)return null;const $=Object.keys(J).filter((X)=>X.startsWith("$")&&J[X]!=null);for(let X=0;X<$.length;X++){const Y=_S[$[X]];if(Y)return Y.fromExtendedJSON(J,Z)}if(J.$date!=null){const X=J.$date,Y=new Date;if(Z.legacy)if(typeof X==="number")Y.setTime(X);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(typeof X==="bigint")Y.setTime(Number(X));else throw new j5(`Unrecognized type for EJSON date: ${typeof X}`);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(M.isLong(X))Y.setTime(X.toNumber());else if(typeof X==="number"&&Z.relaxed)Y.setTime(X);else if(typeof X==="bigint")Y.setTime(Number(X));else throw new j5(`Unrecognized type for EJSON date: ${typeof X}`);return Y}if(J.$code!=null){const X=Object.assign({},J);if(J.$scope)X.$scope=dV(J.$scope);return o6.fromExtendedJSON(J)}if(bV(J)||J.$dbPointer){const X=J.$ref?J:J.$dbPointer;if(X instanceof C6)return X;const Y=Object.keys(X).filter((K)=>K.startsWith("$"));let Q=!0;if(Y.forEach((K)=>{if(["$ref","$id","$db"].indexOf(K)===-1)Q=!1}),Q)return C6.fromExtendedJSON(X)}return J},fS=function(J,Z){return J.map(($,X)=>{Z.seenObjects.push({propertyName:`index ${X}`,obj:null});try{return r6($,Z)}finally{Z.seenObjects.pop()}})},DV=function(J){const Z=J.toISOString();return J.getUTCMilliseconds()!==0?Z:Z.slice(0,-5)+"Z"},r6=function(J,Z){if(J instanceof Map||TX(J)){const $=Object.create(null);for(let[X,Y]of J){if(typeof X!=="string")throw new D("Can only serialize maps with string keys");$[X]=Y}return r6($,Z)}if((typeof J==="object"||typeof J==="function")&&J!==null){const $=Z.seenObjects.findIndex((X)=>X.obj===J);if($!==-1){const X=Z.seenObjects.map((W)=>W.propertyName),Y=X.slice(0,$).map((W)=>`${W} -> `).join(""),Q=X[$],K=" -> "+X.slice($+1,X.length-1).map((W)=>`${W} -> `).join(""),G=X[X.length-1],F=" ".repeat(Y.length+Q.length/2),q="-".repeat(K.length+(Q.length+G.length)/2-1);throw new D("Converting circular structure to EJSON:\n"+` ${Y}${Q}${K}${G}\n`+` ${F}\\${q}/`)}Z.seenObjects[Z.seenObjects.length-1].obj=J}if(Array.isArray(J))return fS(J,Z);if(J===void 0)return null;if(J instanceof Date||n4(J)){const $=J.getTime(),X=$>-1&&$<253402318800000;if(Z.legacy)return Z.relaxed&&X?{$date:J.getTime()}:{$date:DV(J)};return Z.relaxed&&X?{$date:DV(J)}:{$date:{$numberLong:J.getTime().toString()}}}if(typeof J==="number"&&(!Z.relaxed||!isFinite(J))){if(Number.isInteger(J)&&!Object.is(J,-0)){if(J>=UJ&&J<=zJ)return{$numberInt:J.toString()};if(J>=TV&&J<=PV)return{$numberLong:J.toString()}}return{$numberDouble:Object.is(J,-0)?"-0.0":J.toString()}}if(typeof J==="bigint"){if(!Z.relaxed)return{$numberLong:BigInt.asIntN(64,J).toString()};return Number(BigInt.asIntN(64,J))}if(J instanceof RegExp||s4(J)){let $=J.flags;if($===void 0){const Y=J.toString().match(/[gimuy]*$/);if(Y)$=Y[0]}return new u0(J.source,$).toExtendedJSON(Z)}if(J!=null&&typeof J==="object")return xS(J,Z);return J},xS=function(J,Z){if(J==null||typeof J!=="object")throw new D("not an object instance");const $=J._bsontype;if(typeof $==="undefined"){const X={};for(let Y of Object.keys(J)){Z.seenObjects.push({propertyName:Y,obj:null});try{const Q=r6(J[Y],Z);if(Y==="__proto__")Object.defineProperty(X,Y,{value:Q,writable:!0,enumerable:!0,configurable:!0});else X[Y]=Q}finally{Z.seenObjects.pop()}}return X}else if(J!=null&&typeof J==="object"&&typeof J._bsontype==="string"&&J[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(yS(J)){let X=J;if(typeof X.toExtendedJSON!=="function"){const Y=vS[J._bsontype];if(!Y)throw new D("Unrecognized or invalid _bsontype: "+J._bsontype);X=Y(X)}if($==="Code"&&X.scope)X=new o6(X.code,r6(X.scope,Z));else if($==="DBRef"&&X.oid)X=new C6(r6(X.collection,Z),r6(X.oid,Z),r6(X.db,Z),r6(X.fields,Z));return X.toExtendedJSON(Z)}else throw new D("_bsontype must be a string, but was: "+typeof $)},cV=function(J,Z){const $={useBigInt64:Z?.useBigInt64??!1,relaxed:Z?.relaxed??!0,legacy:Z?.legacy??!1};return JSON.parse(J,(X,Y)=>{if(X.indexOf("\0")!==-1)throw new D(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(X)}`);return dV(Y,$)})},pV=function(J,Z,$,X){if($!=null&&typeof $==="object")X=$,$=0;if(Z!=null&&typeof Z==="object"&&!Array.isArray(Z))X=Z,Z=void 0,$=0;const Y=Object.assign({relaxed:!0,legacy:!1},X,{seenObjects:[{propertyName:"(root)",obj:null}]}),Q=r6(J,Y);return JSON.stringify(Q,Z,$)},bS=function(J,Z){return Z=Z||{},JSON.parse(pV(J,Z))},gS=function(J,Z){return Z=Z||{},cV(JSON.stringify(J),Z)},aV=function(J){if(N8.length<J)N8=L.allocate(J)},iV=function(J,Z={}){const $=typeof Z.checkKeys==="boolean"?Z.checkKeys:!1,X=typeof Z.serializeFunctions==="boolean"?Z.serializeFunctions:!1,Y=typeof Z.ignoreUndefined==="boolean"?Z.ignoreUndefined:!0,Q=typeof Z.minInternalBufferSize==="number"?Z.minInternalBufferSize:lV;if(N8.length<Q)N8=L.allocate(Q);const K=A5(N8,J,$,0,0,X,Y,null),G=L.allocate(K);return G.set(N8.subarray(0,K),0),G},sV=function(J,Z,$={}){const X=typeof $.checkKeys==="boolean"?$.checkKeys:!1,Y=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,Q=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!0,K=typeof $.index==="number"?$.index:0,G=A5(N8,J,X,0,0,Y,Q,null);return Z.set(N8.subarray(0,G),K),K+G-1},nV=function(J,Z={}){return uV(L.toLocalBufferType(J),Z)},tV=function(J,Z={}){Z=Z||{};const $=typeof Z.serializeFunctions==="boolean"?Z.serializeFunctions:!1,X=typeof Z.ignoreUndefined==="boolean"?Z.ignoreUndefined:!0;return KJ(J,$,X)},rV=function(J,Z,$,X,Y,Q){const K=Object.assign({allowObjectSmallerThanBufferSize:!0,index:0},Q),G=L.toLocalBufferType(J);let F=Z;for(let q=0;q<$;q++){const W=G[F]|G[F+1]<<8|G[F+2]<<16|G[F+3]<<24;K.index=F,X[Y+q]=uV(G,K),F=F+W}return F},W4=6,zJ=2147483647,UJ=-2147483648,PV=Math.pow(2,63)-1,TV=-Math.pow(2,63),IV=Math.pow(2,53),NV=-Math.pow(2,53),FJ=1,BV=2,IX=3,EV=4,NX=5,ih=6,CV=7,hV=8,SV=9,BX=10,qJ=11,sh=12,EX=13,OV=14,kV=15,r4=16,yV=17,CX=18,_V=19,fV=255,vV=127,nh=0,WJ=4,xV=Object.freeze({double:1,string:2,object:3,array:4,binData:5,undefined:6,objectId:7,bool:8,date:9,null:10,regex:11,dbPointer:12,javascript:13,symbol:14,javascriptWithScope:15,int:16,timestamp:17,long:18,decimal:19,minKey:-1,maxKey:127});class D extends Error{get bsonError(){return!0}get name(){return"BSONError"}constructor(J){super(J)}static isBSONError(J){return J!=null&&typeof J==="object"&&"bsonError"in J&&J.bsonError===!0&&"name"in J&&"message"in J&&"stack"in J}}class B8 extends D{get name(){return"BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${W4}.x.x`)}}class j5 extends D{get name(){return"BSONRuntimeError"}constructor(J){super(J)}}var rh=(()=>{try{return import.meta.require("crypto").randomBytes}catch{return th}})(),I8={toLocalBufferType(J){if(Buffer.isBuffer(J))return J;if(ArrayBuffer.isView(J))return Buffer.from(J.buffer,J.byteOffset,J.byteLength);const Z=J?.[Symbol.toStringTag]??Object.prototype.toString.call(J);if(Z==="ArrayBuffer"||Z==="SharedArrayBuffer"||Z==="[object ArrayBuffer]"||Z==="[object SharedArrayBuffer]")return Buffer.from(J);throw new D(`Cannot create Buffer from ${String(J)}`)},allocate(J){return Buffer.alloc(J)},equals(J,Z){return I8.toLocalBufferType(J).equals(Z)},fromNumberArray(J){return Buffer.from(J)},fromBase64(J){return Buffer.from(J,"base64")},toBase64(J){return I8.toLocalBufferType(J).toString("base64")},fromISO88591(J){return Buffer.from(J,"binary")},toISO88591(J){return I8.toLocalBufferType(J).toString("binary")},fromHex(J){return Buffer.from(J,"hex")},toHex(J){return I8.toLocalBufferType(J).toString("hex")},fromUTF8(J){return Buffer.from(J,"utf8")},toUTF8(J,Z,$){return I8.toLocalBufferType(J).toString("utf8",Z,$)},utf8ByteLength(J){return Buffer.byteLength(J,"utf8")},encodeUTF8Into(J,Z,$){return I8.toLocalBufferType(J).write(Z,$,void 0,"utf8")},randomBytes:rh},JS=(()=>{const{crypto:J}=globalThis;if(J!=null&&typeof J.getRandomValues==="function")return(Z)=>{return J.getRandomValues(o4.allocate(Z))};else{if(oh()){const{console:Z}=globalThis;Z?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.")}return eh}})(),FV=/(\d|[a-f])/i,o4={toLocalBufferType(J){const Z=J?.[Symbol.toStringTag]??Object.prototype.toString.call(J);if(Z==="Uint8Array")return J;if(ArrayBuffer.isView(J))return new Uint8Array(J.buffer.slice(J.byteOffset,J.byteOffset+J.byteLength));if(Z==="ArrayBuffer"||Z==="SharedArrayBuffer"||Z==="[object ArrayBuffer]"||Z==="[object SharedArrayBuffer]")return new Uint8Array(J);throw new D(`Cannot make a Uint8Array from ${String(J)}`)},allocate(J){if(typeof J!=="number")throw new TypeError(`The "size" argument must be of type number. Received ${String(J)}`);return new Uint8Array(J)},equals(J,Z){if(J.byteLength!==Z.byteLength)return!1;for(let $=0;$<J.byteLength;$++)if(J[$]!==Z[$])return!1;return!0},fromNumberArray(J){return Uint8Array.from(J)},fromBase64(J){return Uint8Array.from(atob(J),(Z)=>Z.charCodeAt(0))},toBase64(J){return btoa(o4.toISO88591(J))},fromISO88591(J){return Uint8Array.from(J,(Z)=>Z.charCodeAt(0)&255)},toISO88591(J){return Array.from(Uint16Array.from(J),(Z)=>String.fromCharCode(Z)).join("")},fromHex(J){const Z=J.length%2===0?J:J.slice(0,J.length-1),$=[];for(let X=0;X<Z.length;X+=2){const Y=Z[X],Q=Z[X+1];if(!FV.test(Y))break;if(!FV.test(Q))break;const K=Number.parseInt(`${Y}${Q}`,16);$.push(K)}return Uint8Array.from($)},toHex(J){return Array.from(J,(Z)=>Z.toString(16).padStart(2,"0")).join("")},fromUTF8(J){return(new TextEncoder()).encode(J)},toUTF8(J,Z,$){return new TextDecoder("utf8",{fatal:!1}).decode(J.slice(Z,$))},utf8ByteLength(J){return o4.fromUTF8(J).byteLength},encodeUTF8Into(J,Z,$){const X=o4.fromUTF8(Z);return J.set(X,$),X.byteLength},randomBytes:JS},ZS=typeof Buffer==="function"&&Buffer.prototype?._isBuffer!==!0,L=ZS?I8:o4;class M5 extends DataView{static fromUint8Array(J){return new DataView(J.buffer,J.byteOffset,J.byteLength)}}class Y0{get[Symbol.for("@@mdb.bson.version")](){return W4}[Symbol.for("nodejs.util.inspect.custom")](J,Z,$){return this.inspect(J,Z,$)}}class l extends Y0{get _bsontype(){return"Binary"}constructor(J,Z){super();if(J!=null&&typeof J==="string"&&!ArrayBuffer.isView(J)&&!PX(J)&&!Array.isArray(J))throw new D("Binary can only be constructed from Uint8Array or number[]");if(this.sub_type=Z??l.BSON_BINARY_SUBTYPE_DEFAULT,J==null)this.buffer=L.allocate(l.BUFFER_SIZE),this.position=0;else this.buffer=Array.isArray(J)?L.fromNumberArray(J):L.toLocalBufferType(J),this.position=this.buffer.byteLength}put(J){if(typeof J==="string"&&J.length!==1)throw new D("only accepts single character String");else if(typeof J!=="number"&&J.length!==1)throw new D("only accepts single character Uint8Array or Array");let Z;if(typeof J==="string")Z=J.charCodeAt(0);else if(typeof J==="number")Z=J;else Z=J[0];if(Z<0||Z>255)throw new D("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=Z;else{const $=L.allocate(l.BUFFER_SIZE+this.buffer.length);$.set(this.buffer,0),this.buffer=$,this.buffer[this.position++]=Z}}write(J,Z){if(Z=typeof Z==="number"?Z:this.position,this.buffer.byteLength<Z+J.length){const $=L.allocate(this.buffer.byteLength+J.length);$.set(this.buffer,0),this.buffer=$}if(ArrayBuffer.isView(J))this.buffer.set(L.toLocalBufferType(J),Z),this.position=Z+J.byteLength>this.position?Z+J.length:this.position;else if(typeof J==="string")throw new D("input cannot be string")}read(J,Z){return Z=Z&&Z>0?Z:this.position,this.buffer.slice(J,J+Z)}value(){return this.buffer.length===this.position?this.buffer:this.buffer.subarray(0,this.position)}length(){return this.position}toJSON(){return L.toBase64(this.buffer)}toString(J){if(J==="hex")return L.toHex(this.buffer);if(J==="base64")return L.toBase64(this.buffer);if(J==="utf8"||J==="utf-8")return L.toUTF8(this.buffer,0,this.buffer.byteLength);return L.toUTF8(this.buffer,0,this.buffer.byteLength)}toExtendedJSON(J){J=J||{};const Z=L.toBase64(this.buffer),$=Number(this.sub_type).toString(16);if(J.legacy)return{$binary:Z,$type:$.length===1?"0"+$:$};return{$binary:{base64:Z,subType:$.length===1?"0"+$:$}}}toUUID(){if(this.sub_type===l.SUBTYPE_UUID)return new f1(this.buffer.slice(0,this.position));throw new D(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${l.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(J,Z){return new l(L.fromHex(J),Z)}static createFromBase64(J,Z){return new l(L.fromBase64(J),Z)}static fromExtendedJSON(J,Z){Z=Z||{};let $,X;if("$binary"in J){if(Z.legacy&&typeof J.$binary==="string"&&"$type"in J)X=J.$type?parseInt(J.$type,16):0,$=L.fromBase64(J.$binary);else if(typeof J.$binary!=="string")X=J.$binary.subType?parseInt(J.$binary.subType,16):0,$=L.fromBase64(J.$binary.base64)}else if("$uuid"in J)X=4,$=f1.bytesFromString(J.$uuid);if(!$)throw new D(`Unexpected Binary Extended JSON format ${JSON.stringify(J)}`);return X===WJ?new f1($):new l($,X)}inspect(J,Z,$){$??=B0;const X=L.toBase64(this.buffer.subarray(0,this.position)),Y=$(X,Z),Q=$(this.sub_type,Z);return`Binary.createFromBase64(${Y}, ${Q})`}}l.BSON_BINARY_SUBTYPE_DEFAULT=0;l.BUFFER_SIZE=256;l.SUBTYPE_DEFAULT=0;l.SUBTYPE_FUNCTION=1;l.SUBTYPE_BYTE_ARRAY=2;l.SUBTYPE_UUID_OLD=3;l.SUBTYPE_UUID=4;l.SUBTYPE_MD5=5;l.SUBTYPE_ENCRYPTED=6;l.SUBTYPE_COLUMN=7;l.SUBTYPE_USER_DEFINED=128;var JX=16,$S=/^[0-9A-F]{32}$/i,XS=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class f1 extends l{constructor(J){let Z;if(J==null)Z=f1.generate();else if(J instanceof f1)Z=L.toLocalBufferType(new Uint8Array(J.buffer));else if(ArrayBuffer.isView(J)&&J.byteLength===JX)Z=L.toLocalBufferType(J);else if(typeof J==="string")Z=f1.bytesFromString(J);else throw new D("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");super(Z,WJ)}get id(){return this.buffer}set id(J){this.buffer=J}toHexString(J=!0){if(J)return[L.toHex(this.buffer.subarray(0,4)),L.toHex(this.buffer.subarray(4,6)),L.toHex(this.buffer.subarray(6,8)),L.toHex(this.buffer.subarray(8,10)),L.toHex(this.buffer.subarray(10,16))].join("-");return L.toHex(this.buffer)}toString(J){if(J==="hex")return L.toHex(this.id);if(J==="base64")return L.toBase64(this.id);return this.toHexString()}toJSON(){return this.toHexString()}equals(J){if(!J)return!1;if(J instanceof f1)return L.equals(J.id,this.id);try{return L.equals(new f1(J).id,this.id)}catch{return!1}}toBinary(){return new l(this.id,l.SUBTYPE_UUID)}static generate(){const J=L.randomBytes(JX);return J[6]=J[6]&15|64,J[8]=J[8]&63|128,J}static isValid(J){if(!J)return!1;if(typeof J==="string")return f1.isValidUUIDString(J);if(q4(J))return J.byteLength===JX;return J._bsontype==="Binary"&&J.sub_type===this.SUBTYPE_UUID&&J.buffer.byteLength===16}static createFromHexString(J){const Z=f1.bytesFromString(J);return new f1(Z)}static createFromBase64(J){return new f1(L.fromBase64(J))}static bytesFromString(J){if(!f1.isValidUUIDString(J))throw new D("UUID string representation must be 32 hex digits or canonical hyphenated representation");return L.fromHex(J.replace(/-/g,""))}static isValidUUIDString(J){return $S.test(J)||XS.test(J)}inspect(J,Z,$){return $??=B0,`new UUID(${$(this.toHexString(),Z)})`}}class o6 extends Y0{get _bsontype(){return"Code"}constructor(J,Z){super();this.code=J.toString(),this.scope=Z??null}toJSON(){if(this.scope!=null)return{code:this.code,scope:this.scope};return{code:this.code}}toExtendedJSON(){if(this.scope)return{$code:this.code,$scope:this.scope};return{$code:this.code}}static fromExtendedJSON(J){return new o6(J.$code,J.$scope)}inspect(J,Z,$){$??=B0;let X=$(this.code,Z);const Y=X.includes("\n");if(this.scope!=null)X+=`,${Y?"\n":" "}${$(this.scope,Z)}`;const Q=Y&&this.scope===null;return`new Code(${Y?"\n":""}${X}${Q?"\n":""})`}}class C6 extends Y0{get _bsontype(){return"DBRef"}constructor(J,Z,$,X){super();const Y=J.split(".");if(Y.length===2)$=Y.shift(),J=Y.shift();this.collection=J,this.oid=Z,this.db=$,this.fields=X||{}}get namespace(){return this.collection}set namespace(J){this.collection=J}toJSON(){const J=Object.assign({$ref:this.collection,$id:this.oid},this.fields);if(this.db!=null)J.$db=this.db;return J}toExtendedJSON(J){J=J||{};let Z={$ref:this.collection,$id:this.oid};if(J.legacy)return Z;if(this.db)Z.$db=this.db;return Z=Object.assign(Z,this.fields),Z}static fromExtendedJSON(J){const Z=Object.assign({},J);return delete Z.$ref,delete Z.$id,delete Z.$db,new C6(J.$ref,J.$id,J.$db,Z)}inspect(J,Z,$){$??=B0;const X=[$(this.namespace,Z),$(this.oid,Z),...this.db?[$(this.db,Z)]:[],...Object.keys(this.fields).length>0?[$(this.fields,Z)]:[]];return X[1]=$===B0?`new ObjectId(${X[1]})`:X[1],`new DBRef(${X.join(", ")})`}}var g0=void 0;try{g0=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var qV=1<<16,YS=1<<24,t4=qV*qV,gV=t4*t4,WV=gV/2,HV={},VV={},QS=20,KS=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class M extends Y0{get _bsontype(){return"Long"}get __isLong__(){return!0}constructor(J=0,Z,$){super();if(typeof J==="bigint")Object.assign(this,M.fromBigInt(J,!!Z));else if(typeof J==="string")Object.assign(this,M.fromString(J,!!Z));else this.low=J|0,this.high=Z|0,this.unsigned=!!$}static fromBits(J,Z,$){return new M(J,Z,$)}static fromInt(J,Z){let $,X,Y;if(Z){if(J>>>=0,Y=0<=J&&J<256){if(X=VV[J],X)return X}if($=M.fromBits(J,(J|0)<0?-1:0,!0),Y)VV[J]=$;return $}else{if(J|=0,Y=-128<=J&&J<128){if(X=HV[J],X)return X}if($=M.fromBits(J,J<0?-1:0,!1),Y)HV[J]=$;return $}}static fromNumber(J,Z){if(isNaN(J))return Z?M.UZERO:M.ZERO;if(Z){if(J<0)return M.UZERO;if(J>=gV)return M.MAX_UNSIGNED_VALUE}else{if(J<=-WV)return M.MIN_VALUE;if(J+1>=WV)return M.MAX_VALUE}if(J<0)return M.fromNumber(-J,Z).neg();return M.fromBits(J%t4|0,J/t4|0,Z)}static fromBigInt(J,Z){return M.fromString(J.toString(),Z)}static fromString(J,Z,$){if(J.length===0)throw new D("empty string");if(J==="NaN"||J==="Infinity"||J==="+Infinity"||J==="-Infinity")return M.ZERO;if(typeof Z==="number")$=Z,Z=!1;else Z=!!Z;if($=$||10,$<2||36<$)throw new D("radix");let X;if((X=J.indexOf("-"))>0)throw new D("interior hyphen");else if(X===0)return M.fromString(J.substring(1),Z,$).neg();const Y=M.fromNumber(Math.pow($,8));let Q=M.ZERO;for(let K=0;K<J.length;K+=8){const G=Math.min(8,J.length-K),F=parseInt(J.substring(K,K+G),$);if(G<8){const q=M.fromNumber(Math.pow($,G));Q=Q.mul(q).add(M.fromNumber(F))}else Q=Q.mul(Y),Q=Q.add(M.fromNumber(F))}return Q.unsigned=Z,Q}static fromBytes(J,Z,$){return $?M.fromBytesLE(J,Z):M.fromBytesBE(J,Z)}static fromBytesLE(J,Z){return new M(J[0]|J[1]<<8|J[2]<<16|J[3]<<24,J[4]|J[5]<<8|J[6]<<16|J[7]<<24,Z)}static fromBytesBE(J,Z){return new M(J[4]<<24|J[5]<<16|J[6]<<8|J[7],J[0]<<24|J[1]<<16|J[2]<<8|J[3],Z)}static isLong(J){return J!=null&&typeof J==="object"&&"__isLong__"in J&&J.__isLong__===!0}static fromValue(J,Z){if(typeof J==="number")return M.fromNumber(J,Z);if(typeof J==="string")return M.fromString(J,Z);return M.fromBits(J.low,J.high,typeof Z==="boolean"?Z:J.unsigned)}add(J){if(!M.isLong(J))J=M.fromValue(J);const Z=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=J.high>>>16,K=J.high&65535,G=J.low>>>16,F=J.low&65535;let q=0,W=0,H=0,U=0;return U+=Y+F,H+=U>>>16,U&=65535,H+=X+G,W+=H>>>16,H&=65535,W+=$+K,q+=W>>>16,W&=65535,q+=Z+Q,q&=65535,M.fromBits(H<<16|U,q<<16|W,this.unsigned)}and(J){if(!M.isLong(J))J=M.fromValue(J);return M.fromBits(this.low&J.low,this.high&J.high,this.unsigned)}compare(J){if(!M.isLong(J))J=M.fromValue(J);if(this.eq(J))return 0;const Z=this.isNegative(),$=J.isNegative();if(Z&&!$)return-1;if(!Z&&$)return 1;if(!this.unsigned)return this.sub(J).isNegative()?-1:1;return J.high>>>0>this.high>>>0||J.high===this.high&&J.low>>>0>this.low>>>0?-1:1}comp(J){return this.compare(J)}divide(J){if(!M.isLong(J))J=M.fromValue(J);if(J.isZero())throw new D("division by zero");if(g0){if(!this.unsigned&&this.high===-2147483648&&J.low===-1&&J.high===-1)return this;const Y=(this.unsigned?g0.div_u:g0.div_s)(this.low,this.high,J.low,J.high);return M.fromBits(Y,g0.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?M.UZERO:M.ZERO;let Z,$,X;if(!this.unsigned){if(this.eq(M.MIN_VALUE))if(J.eq(M.ONE)||J.eq(M.NEG_ONE))return M.MIN_VALUE;else if(J.eq(M.MIN_VALUE))return M.ONE;else if(Z=this.shr(1).div(J).shl(1),Z.eq(M.ZERO))return J.isNegative()?M.ONE:M.NEG_ONE;else return $=this.sub(J.mul(Z)),X=Z.add($.div(J)),X;else if(J.eq(M.MIN_VALUE))return this.unsigned?M.UZERO:M.ZERO;if(this.isNegative()){if(J.isNegative())return this.neg().div(J.neg());return this.neg().div(J).neg()}else if(J.isNegative())return this.div(J.neg()).neg();X=M.ZERO}else{if(!J.unsigned)J=J.toUnsigned();if(J.gt(this))return M.UZERO;if(J.gt(this.shru(1)))return M.UONE;X=M.UZERO}$=this;while($.gte(J)){Z=Math.max(1,Math.floor($.toNumber()/J.toNumber()));const Y=Math.ceil(Math.log(Z)/Math.LN2),Q=Y<=48?1:Math.pow(2,Y-48);let K=M.fromNumber(Z),G=K.mul(J);while(G.isNegative()||G.gt($))Z-=Q,K=M.fromNumber(Z,this.unsigned),G=K.mul(J);if(K.isZero())K=M.ONE;X=X.add(K),$=$.sub(G)}return X}div(J){return this.divide(J)}equals(J){if(!M.isLong(J))J=M.fromValue(J);if(this.unsigned!==J.unsigned&&this.high>>>31===1&&J.high>>>31===1)return!1;return this.high===J.high&&this.low===J.low}eq(J){return this.equals(J)}getHighBits(){return this.high}getHighBitsUnsigned(){return this.high>>>0}getLowBits(){return this.low}getLowBitsUnsigned(){return this.low>>>0}getNumBitsAbs(){if(this.isNegative())return this.eq(M.MIN_VALUE)?64:this.neg().getNumBitsAbs();const J=this.high!==0?this.high:this.low;let Z;for(Z=31;Z>0;Z--)if((J&1<<Z)!==0)break;return this.high!==0?Z+33:Z+1}greaterThan(J){return this.comp(J)>0}gt(J){return this.greaterThan(J)}greaterThanOrEqual(J){return this.comp(J)>=0}gte(J){return this.greaterThanOrEqual(J)}ge(J){return this.greaterThanOrEqual(J)}isEven(){return(this.low&1)===0}isNegative(){return!this.unsigned&&this.high<0}isOdd(){return(this.low&1)===1}isPositive(){return this.unsigned||this.high>=0}isZero(){return this.high===0&&this.low===0}lessThan(J){return this.comp(J)<0}lt(J){return this.lessThan(J)}lessThanOrEqual(J){return this.comp(J)<=0}lte(J){return this.lessThanOrEqual(J)}modulo(J){if(!M.isLong(J))J=M.fromValue(J);if(g0){const Z=(this.unsigned?g0.rem_u:g0.rem_s)(this.low,this.high,J.low,J.high);return M.fromBits(Z,g0.get_high(),this.unsigned)}return this.sub(this.div(J).mul(J))}mod(J){return this.modulo(J)}rem(J){return this.modulo(J)}multiply(J){if(this.isZero())return M.ZERO;if(!M.isLong(J))J=M.fromValue(J);if(g0){const j=g0.mul(this.low,this.high,J.low,J.high);return M.fromBits(j,g0.get_high(),this.unsigned)}if(J.isZero())return M.ZERO;if(this.eq(M.MIN_VALUE))return J.isOdd()?M.MIN_VALUE:M.ZERO;if(J.eq(M.MIN_VALUE))return this.isOdd()?M.MIN_VALUE:M.ZERO;if(this.isNegative())if(J.isNegative())return this.neg().mul(J.neg());else return this.neg().mul(J).neg();else if(J.isNegative())return this.mul(J.neg()).neg();if(this.lt(M.TWO_PWR_24)&&J.lt(M.TWO_PWR_24))return M.fromNumber(this.toNumber()*J.toNumber(),this.unsigned);const Z=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=J.high>>>16,K=J.high&65535,G=J.low>>>16,F=J.low&65535;let q=0,W=0,H=0,U=0;return U+=Y*F,H+=U>>>16,U&=65535,H+=X*F,W+=H>>>16,H&=65535,H+=Y*G,W+=H>>>16,H&=65535,W+=$*F,q+=W>>>16,W&=65535,W+=X*G,q+=W>>>16,W&=65535,W+=Y*K,q+=W>>>16,W&=65535,q+=Z*F+$*G+X*K+Y*Q,q&=65535,M.fromBits(H<<16|U,q<<16|W,this.unsigned)}mul(J){return this.multiply(J)}negate(){if(!this.unsigned&&this.eq(M.MIN_VALUE))return M.MIN_VALUE;return this.not().add(M.ONE)}neg(){return this.negate()}not(){return M.fromBits(~this.low,~this.high,this.unsigned)}notEquals(J){return!this.equals(J)}neq(J){return this.notEquals(J)}ne(J){return this.notEquals(J)}or(J){if(!M.isLong(J))J=M.fromValue(J);return M.fromBits(this.low|J.low,this.high|J.high,this.unsigned)}shiftLeft(J){if(M.isLong(J))J=J.toInt();if((J&=63)===0)return this;else if(J<32)return M.fromBits(this.low<<J,this.high<<J|this.low>>>32-J,this.unsigned);else return M.fromBits(0,this.low<<J-32,this.unsigned)}shl(J){return this.shiftLeft(J)}shiftRight(J){if(M.isLong(J))J=J.toInt();if((J&=63)===0)return this;else if(J<32)return M.fromBits(this.low>>>J|this.high<<32-J,this.high>>J,this.unsigned);else return M.fromBits(this.high>>J-32,this.high>=0?0:-1,this.unsigned)}shr(J){return this.shiftRight(J)}shiftRightUnsigned(J){if(M.isLong(J))J=J.toInt();if(J&=63,J===0)return this;else{const Z=this.high;if(J<32){const $=this.low;return M.fromBits($>>>J|Z<<32-J,Z>>>J,this.unsigned)}else if(J===32)return M.fromBits(Z,0,this.unsigned);else return M.fromBits(Z>>>J-32,0,this.unsigned)}}shr_u(J){return this.shiftRightUnsigned(J)}shru(J){return this.shiftRightUnsigned(J)}subtract(J){if(!M.isLong(J))J=M.fromValue(J);return this.add(J.neg())}sub(J){return this.subtract(J)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){if(this.unsigned)return(this.high>>>0)*t4+(this.low>>>0);return this.high*t4+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(J){return J?this.toBytesLE():this.toBytesBE()}toBytesLE(){const J=this.high,Z=this.low;return[Z&255,Z>>>8&255,Z>>>16&255,Z>>>24,J&255,J>>>8&255,J>>>16&255,J>>>24]}toBytesBE(){const J=this.high,Z=this.low;return[J>>>24,J>>>16&255,J>>>8&255,J&255,Z>>>24,Z>>>16&255,Z>>>8&255,Z&255]}toSigned(){if(!this.unsigned)return this;return M.fromBits(this.low,this.high,!1)}toString(J){if(J=J||10,J<2||36<J)throw new D("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(M.MIN_VALUE)){const Y=M.fromNumber(J),Q=this.div(Y),K=Q.mul(Y).sub(this);return Q.toString(J)+K.toInt().toString(J)}else return"-"+this.neg().toString(J);const Z=M.fromNumber(Math.pow(J,6),this.unsigned);let $=this,X="";while(!0){const Y=$.div(Z);let K=($.sub(Y.mul(Z)).toInt()>>>0).toString(J);if($=Y,$.isZero())return K+X;else{while(K.length<6)K="0"+K;X=""+K+X}}}toUnsigned(){if(this.unsigned)return this;return M.fromBits(this.low,this.high,!0)}xor(J){if(!M.isLong(J))J=M.fromValue(J);return M.fromBits(this.low^J.low,this.high^J.high,this.unsigned)}eqz(){return this.isZero()}le(J){return this.lessThanOrEqual(J)}toExtendedJSON(J){if(J&&J.relaxed)return this.toNumber();return{$numberLong:this.toString()}}static fromExtendedJSON(J,Z){const{useBigInt64:$=!1,relaxed:X=!0}={...Z};if(J.$numberLong.length>QS)throw new D("$numberLong string is too long");if(!KS.test(J.$numberLong))throw new D(`\$numberLong string "${J.$numberLong}" is in an invalid format`);if($){const Q=BigInt(J.$numberLong);return BigInt.asIntN(64,Q)}const Y=M.fromString(J.$numberLong);if(X)return Y.toNumber();return Y}inspect(J,Z,$){$??=B0;const X=$(this.toString(),Z),Y=this.unsigned?`, ${$(this.unsigned,Z)}`:"";return`new Long(${X}${Y})`}}M.TWO_PWR_24=M.fromInt(YS);M.MAX_UNSIGNED_VALUE=M.fromBits(4294967295|0,4294967295|0,!0);M.ZERO=M.fromInt(0);M.UZERO=M.fromInt(0,!0);M.ONE=M.fromInt(1);M.UONE=M.fromInt(1,!0);M.NEG_ONE=M.fromInt(-1);M.MAX_VALUE=M.fromBits(4294967295|0,2147483647|0,!1);M.MIN_VALUE=M.fromBits(0,2147483648|0,!1);var GS=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,FS=/^(\+|-)?(Infinity|inf)$/i,qS=/^(\+|-)?NaN$/i,i4=6111,z5=-6176,zV=6176,UV=34,ZX=L.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),MV=L.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),jV=L.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),WS=/^([-+])?(\d+)?$/,HS=31,AV=16383,VS=30,zS=31;class n1 extends Y0{get _bsontype(){return"Decimal128"}constructor(J){super();if(typeof J==="string")this.bytes=n1.fromString(J).bytes;else if(q4(J)){if(J.byteLength!==16)throw new D("Decimal128 must take a Buffer of 16 bytes");this.bytes=J}else throw new D("Decimal128 must take a Buffer or string")}static fromString(J){return n1._fromString(J,{allowRounding:!1})}static fromStringWithRounding(J){return n1._fromString(J,{allowRounding:!0})}static _fromString(J,Z){let $=!1,X=!1,Y=!1,Q=!1,K=0,G=0,F=0,q=0,W=0;const H=[0];let U=0,j=0,z=0,A=0,T=new M(0,0),w=new M(0,0),N=0,P=0;if(J.length>=7000)throw new D(""+J+" not a valid Decimal128 string");const f=J.match(GS),$0=J.match(FS),A8=J.match(qS);if(!f&&!$0&&!A8||J.length===0)throw new D(""+J+" not a valid Decimal128 string");if(f){const g=f[2],_=f[4],C=f[5],O=f[6];if(_&&O===void 0)Q6(J,"missing exponent power");if(_&&g===void 0)Q6(J,"missing exponent base");if(_===void 0&&(C||O))Q6(J,"missing e before exponent")}if(J[P]==="+"||J[P]==="-")X=!0,$=J[P++]==="-";if(!LV(J[P])&&J[P]!=="."){if(J[P]==="i"||J[P]==="I")return new n1($?MV:jV);else if(J[P]==="N")return new n1(ZX)}while(LV(J[P])||J[P]==="."){if(J[P]==="."){if(Y)Q6(J,"contains multiple periods");Y=!0,P=P+1;continue}if(U<UV){if(J[P]!=="0"||Q){if(!Q)W=G;Q=!0,H[j++]=parseInt(J[P],10),U=U+1}}if(Q)F=F+1;if(Y)q=q+1;G=G+1,P=P+1}if(Y&&!G)throw new D(""+J+" not a valid Decimal128 string");if(J[P]==="e"||J[P]==="E"){const g=J.substr(++P).match(WS);if(!g||!g[2])return new n1(ZX);A=parseInt(g[0],10),P=P+g[0].length}if(J[P])return new n1(ZX);if(!U)H[0]=0,F=1,U=1,K=0;else if(z=U-1,K=F,K!==1)while(J[W+K-1+Number(X)+Number(Y)]==="0")K=K-1;if(A<=q&&q>A+(1<<14))A=z5;else A=A-q;while(A>i4){if(z=z+1,z>=UV){if(K===0){A=i4;break}Q6(J,"overflow")}A=A-1}if(Z.allowRounding){while(A<z5||U<F){if(z===0&&K<U){A=z5,K=0;break}if(U<F)F=F-1;else z=z-1;if(A<i4)A=A+1;else{if(H.join("").match(/^0+$/)){A=i4;break}Q6(J,"overflow")}}if(z+1<K){let g=G;if(Y)W=W+1,g=g+1;if(X)W=W+1,g=g+1;const _=parseInt(J[W+z+1],10);let C=0;if(_>=5){if(C=1,_===5){C=H[z]%2===1?1:0;for(let O=W+z+2;O<g;O++)if(parseInt(J[O],10)){C=1;break}}}if(C){let O=z;for(;O>=0;O--)if(++H[O]>9){if(H[O]=0,O===0)if(A<i4)A=A+1,H[O]=1;else return new n1($?MV:jV)}else break}}}else{while(A<z5||U<F){if(z===0){if(K===0){A=z5;break}Q6(J,"exponent underflow")}if(U<F){if(J[F-1+Number(X)+Number(Y)]!=="0"&&K!==0)Q6(J,"inexact rounding");F=F-1}else{if(H[z]!==0)Q6(J,"inexact rounding");z=z-1}if(A<i4)A=A+1;else Q6(J,"overflow")}if(z+1<K){if(Y)W=W+1;if(X)W=W+1;if(parseInt(J[W+z+1],10)!==0)Q6(J,"inexact rounding")}}if(T=M.fromNumber(0),w=M.fromNumber(0),K===0)T=M.fromNumber(0),w=M.fromNumber(0);else if(z<17){let g=0;w=M.fromNumber(H[g++]),T=new M(0,0);for(;g<=z;g++)w=w.multiply(M.fromNumber(10)),w=w.add(M.fromNumber(H[g]))}else{let g=0;T=M.fromNumber(H[g++]);for(;g<=z-17;g++)T=T.multiply(M.fromNumber(10)),T=T.add(M.fromNumber(H[g]));w=M.fromNumber(H[g++]);for(;g<=z;g++)w=w.multiply(M.fromNumber(10)),w=w.add(M.fromNumber(H[g]))}const k=MS(T,M.fromString("100000000000000000"));if(k.low=k.low.add(w),jS(k.low,w))k.high=k.high.add(M.fromNumber(1));N=A+zV;const B={low:M.fromNumber(0),high:M.fromNumber(0)};if(k.high.shiftRightUnsigned(49).and(M.fromNumber(1)).equals(M.fromNumber(1)))B.high=B.high.or(M.fromNumber(3).shiftLeft(61)),B.high=B.high.or(M.fromNumber(N).and(M.fromNumber(16383).shiftLeft(47))),B.high=B.high.or(k.high.and(M.fromNumber(140737488355327)));else B.high=B.high.or(M.fromNumber(N&16383).shiftLeft(49)),B.high=B.high.or(k.high.and(M.fromNumber(562949953421311)));if(B.low=k.low,$)B.high=B.high.or(M.fromString("9223372036854775808"));const Q1=L.allocate(16);return P=0,Q1[P++]=B.low.low&255,Q1[P++]=B.low.low>>8&255,Q1[P++]=B.low.low>>16&255,Q1[P++]=B.low.low>>24&255,Q1[P++]=B.low.high&255,Q1[P++]=B.low.high>>8&255,Q1[P++]=B.low.high>>16&255,Q1[P++]=B.low.high>>24&255,Q1[P++]=B.high.low&255,Q1[P++]=B.high.low>>8&255,Q1[P++]=B.high.low>>16&255,Q1[P++]=B.high.low>>24&255,Q1[P++]=B.high.high&255,Q1[P++]=B.high.high>>8&255,Q1[P++]=B.high.high>>16&255,Q1[P++]=B.high.high>>24&255,new n1(Q1)}toString(){let J,Z=0;const $=new Array(36);for(let P=0;P<$.length;P++)$[P]=0;let X=0,Y=!1,Q,K={parts:[0,0,0,0]},G,F;const q=[];X=0;const W=this.bytes,H=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,U=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,j=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,z=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24;if(X=0,{low:new M(H,U),high:new M(j,z)}.high.lessThan(M.ZERO))q.push("-");const T=z>>26&HS;if(T>>3===3)if(T===VS)return q.join("")+"Infinity";else if(T===zS)return"NaN";else J=z>>15&AV,Q=8+(z>>14&1);else Q=z>>14&7,J=z>>17&AV;const w=J-zV;if(K.parts[0]=(z&16383)+((Q&15)<<14),K.parts[1]=j,K.parts[2]=U,K.parts[3]=H,K.parts[0]===0&&K.parts[1]===0&&K.parts[2]===0&&K.parts[3]===0)Y=!0;else for(F=3;F>=0;F--){let P=0;const f=US(K);if(K=f.quotient,P=f.rem.low,!P)continue;for(G=8;G>=0;G--)$[F*9+G]=P%10,P=Math.floor(P/10)}if(Y)Z=1,$[X]=0;else{Z=36;while(!$[X])Z=Z-1,X=X+1}const N=Z-1+w;if(N>=34||N<=-7||w>0){if(Z>34){if(q.push("0"),w>0)q.push(`E+${w}`);else if(w<0)q.push(`E${w}`);return q.join("")}if(q.push(`${$[X++]}`),Z=Z-1,Z)q.push(".");for(let P=0;P<Z;P++)q.push(`${$[X++]}`);if(q.push("E"),N>0)q.push(`+${N}`);else q.push(`${N}`)}else if(w>=0)for(let P=0;P<Z;P++)q.push(`${$[X++]}`);else{let P=Z+w;if(P>0)for(let f=0;f<P;f++)q.push(`${$[X++]}`);else q.push("0");q.push(".");while(P++<0)q.push("0");for(let f=0;f<Z-Math.max(P-1,0);f++)q.push(`${$[X++]}`)}return q.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(J){return n1.fromString(J.$numberDecimal)}inspect(J,Z,$){return $??=B0,`new Decimal128(${$(this.toString(),Z)})`}}class E8 extends Y0{get _bsontype(){return"Double"}constructor(J){super();if(J instanceof Number)J=J.valueOf();this.value=+J}valueOf(){return this.value}toJSON(){return this.value}toString(J){return this.value.toString(J)}toExtendedJSON(J){if(J&&(J.legacy||J.relaxed&&isFinite(this.value)))return this.value;if(Object.is(Math.sign(this.value),-0))return{$numberDouble:"-0.0"};return{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}}static fromExtendedJSON(J,Z){const $=parseFloat(J.$numberDouble);return Z&&Z.relaxed?$:new E8($)}inspect(J,Z,$){return $??=B0,`new Double(${$(this.value,Z)})`}}class C8 extends Y0{get _bsontype(){return"Int32"}constructor(J){super();if(J instanceof Number)J=J.valueOf();this.value=+J|0}valueOf(){return this.value}toString(J){return this.value.toString(J)}toJSON(){return this.value}toExtendedJSON(J){if(J&&(J.relaxed||J.legacy))return this.value;return{$numberInt:this.value.toString()}}static fromExtendedJSON(J,Z){return Z&&Z.relaxed?parseInt(J.$numberInt,10):new C8(J.$numberInt)}inspect(J,Z,$){return $??=B0,`new Int32(${$(this.value,Z)})`}}class H4 extends Y0{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new H4}inspect(){return"new MaxKey()"}}class V4 extends Y0{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new V4}inspect(){return"new MinKey()"}}var AS=new RegExp("^[0-9a-fA-F]{24}$"),F4=null,t6=Symbol("id");class w1 extends Y0{get _bsontype(){return"ObjectId"}constructor(J){super();let Z;if(typeof J==="object"&&J&&"id"in J){if(typeof J.id!=="string"&&!ArrayBuffer.isView(J.id))throw new D("Argument passed in must have an id that is of type string or Buffer");if("toHexString"in J&&typeof J.toHexString==="function")Z=L.fromHex(J.toHexString());else Z=J.id}else Z=J;if(Z==null||typeof Z==="number")this[t6]=w1.generate(typeof Z==="number"?Z:void 0);else if(ArrayBuffer.isView(Z)&&Z.byteLength===12)this[t6]=L.toLocalBufferType(Z);else if(typeof Z==="string")if(Z.length===24&&AS.test(Z))this[t6]=L.fromHex(Z);else throw new D("input must be a 24 character hex string, 12 byte Uint8Array, or an integer");else throw new D("Argument passed in does not match the accepted types");if(w1.cacheHexString)this.__id=L.toHex(this.id)}get id(){return this[t6]}set id(J){if(this[t6]=J,w1.cacheHexString)this.__id=L.toHex(J)}toHexString(){if(w1.cacheHexString&&this.__id)return this.__id;const J=L.toHex(this.id);if(w1.cacheHexString&&!this.__id)this.__id=J;return J}static getInc(){return w1.index=(w1.index+1)%16777215}static generate(J){if(typeof J!=="number")J=Math.floor(Date.now()/1000);const Z=w1.getInc(),$=L.allocate(12);if(M5.fromUint8Array($).setUint32(0,J,!1),F4===null)F4=L.randomBytes(5);return $[4]=F4[0],$[5]=F4[1],$[6]=F4[2],$[7]=F4[3],$[8]=F4[4],$[11]=Z&255,$[10]=Z>>8&255,$[9]=Z>>16&255,$}toString(J){if(J==="base64")return L.toBase64(this.id);if(J==="hex")return this.toHexString();return this.toHexString()}toJSON(){return this.toHexString()}static is(J){return J!=null&&typeof J==="object"&&"_bsontype"in J&&J._bsontype==="ObjectId"}equals(J){if(J===void 0||J===null)return!1;if(w1.is(J))return this[t6][11]===J[t6][11]&&L.equals(this[t6],J[t6]);if(typeof J==="string")return J.toLowerCase()===this.toHexString();if(typeof J==="object"&&typeof J.toHexString==="function"){const Z=J.toHexString(),$=this.toHexString();return typeof Z==="string"&&Z.toLowerCase()===$}return!1}getTimestamp(){const J=new Date,Z=M5.fromUint8Array(this.id).getUint32(0,!1);return J.setTime(Math.floor(Z)*1000),J}static createPk(){return new w1}static createFromTime(J){const Z=L.fromNumberArray([0,0,0,0,0,0,0,0,0,0,0,0]);return M5.fromUint8Array(Z).setUint32(0,J,!1),new w1(Z)}static createFromHexString(J){if(J?.length!==24)throw new D("hex string must be 24 characters");return new w1(L.fromHex(J))}static createFromBase64(J){if(J?.length!==16)throw new D("base64 string must be 16 characters");return new w1(L.fromBase64(J))}static isValid(J){if(J==null)return!1;try{return new w1(J),!0}catch{return!1}}toExtendedJSON(){if(this.toHexString)return{$oid:this.toHexString()};return{$oid:this.toString("hex")}}static fromExtendedJSON(J){return new w1(J.$oid)}inspect(J,Z,$){return $??=B0,`new ObjectId(${$(this.toHexString(),Z)})`}}w1.index=Math.floor(Math.random()*16777215);class u0 extends Y0{get _bsontype(){return"BSONRegExp"}constructor(J,Z){super();if(this.pattern=J,this.options=LS(Z??""),this.pattern.indexOf("\0")!==-1)throw new D(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(this.options.indexOf("\0")!==-1)throw new D(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);for(let $=0;$<this.options.length;$++)if(!(this.options[$]==="i"||this.options[$]==="m"||this.options[$]==="x"||this.options[$]==="l"||this.options[$]==="s"||this.options[$]==="u"))throw new D(`The regular expression option [${this.options[$]}] is not supported`)}static parseOptions(J){return J?J.split("").sort().join(""):""}toExtendedJSON(J){if(J=J||{},J.legacy)return{$regex:this.pattern,$options:this.options};return{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(J){if("$regex"in J)if(typeof J.$regex!=="string"){if(J.$regex._bsontype==="BSONRegExp")return J}else return new u0(J.$regex,u0.parseOptions(J.$options));if("$regularExpression"in J)return new u0(J.$regularExpression.pattern,u0.parseOptions(J.$regularExpression.options));throw new D(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(J)}`)}inspect(J,Z,$){const X=ah(Z)??((K)=>K);$??=B0;const Y=X($(this.pattern),"regexp"),Q=X($(this.options),"regexp");return`new BSONRegExp(${Y}, ${Q})`}}class z4 extends Y0{get _bsontype(){return"BSONSymbol"}constructor(J){super();this.value=J}valueOf(){return this.value}toString(){return this.value}toJSON(){return this.value}toExtendedJSON(){return{$symbol:this.value}}static fromExtendedJSON(J){return new z4(J.$symbol)}inspect(J,Z,$){return $??=B0,`new BSONSymbol(${$(this.value,Z)})`}}var wS=M;class m0 extends wS{get _bsontype(){return"Timestamp"}constructor(J){if(J==null)super(0,0,!0);else if(typeof J==="bigint")super(J,!0);else if(M.isLong(J))super(J.low,J.high,!0);else if(typeof J==="object"&&"t"in J&&"i"in J){if(typeof J.t!=="number"&&(typeof J.t!=="object"||J.t._bsontype!=="Int32"))throw new D("Timestamp constructed from { t, i } must provide t as a number");if(typeof J.i!=="number"&&(typeof J.i!=="object"||J.i._bsontype!=="Int32"))throw new D("Timestamp constructed from { t, i } must provide i as a number");const Z=Number(J.t),$=Number(J.i);if(Z<0||Number.isNaN(Z))throw new D("Timestamp constructed from { t, i } must provide a positive t");if($<0||Number.isNaN($))throw new D("Timestamp constructed from { t, i } must provide a positive i");if(Z>4294967295)throw new D("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if($>4294967295)throw new D("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super($,Z,!0)}else throw new D("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }")}toJSON(){return{$timestamp:this.toString()}}static fromInt(J){return new m0(M.fromInt(J,!0))}static fromNumber(J){return new m0(M.fromNumber(J,!0))}static fromBits(J,Z){return new m0({i:J,t:Z})}static fromString(J,Z){return new m0(M.fromString(J,!0,Z))}toExtendedJSON(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}}static fromExtendedJSON(J){const Z=M.isLong(J.$timestamp.i)?J.$timestamp.i.getLowBitsUnsigned():J.$timestamp.i,$=M.isLong(J.$timestamp.t)?J.$timestamp.t.getLowBitsUnsigned():J.$timestamp.t;return new m0({t:$,i:Z})}inspect(J,Z,$){$??=B0;const X=$(this.high>>>0,Z),Y=$(this.low>>>0,Z);return`new Timestamp({ t: ${X}, i: ${Y} })`}}m0.MAX_VALUE=M.MAX_UNSIGNED_VALUE;var RS=128,DS=192,PS=224,TS=240,IS=248,NS=192,BS=224,ES=240,CS=128,hS=M.fromNumber(IV),SS=M.fromNumber(NV),OS=/^\$ref$|^\$id$|^\$db$/,HJ=/\x00/,RV=new Set(["$db","$ref","$id","$clusterTime"]),e4=new DataView(new ArrayBuffer(8),0,8),kS=new Uint8Array(e4.buffer,0,4),VJ=new Uint8Array(e4.buffer,0,8),_S={$oid:w1,$binary:l,$uuid:l,$symbol:z4,$numberInt:C8,$numberDecimal:n1,$numberDouble:E8,$numberLong:M,$minKey:V4,$maxKey:H4,$regex:u0,$regularExpression:u0,$timestamp:m0},vS={Binary:(J)=>new l(J.value(),J.sub_type),Code:(J)=>new o6(J.code,J.scope),DBRef:(J)=>new C6(J.collection||J.namespace,J.oid,J.db,J.fields),Decimal128:(J)=>new n1(J.bytes),Double:(J)=>new E8(J.value),Int32:(J)=>new C8(J.value),Long:(J)=>M.fromBits(J.low!=null?J.low:J.low_,J.low!=null?J.high:J.high_,J.low!=null?J.unsigned:J.unsigned_),MaxKey:()=>new H4,MinKey:()=>new V4,ObjectId:(J)=>new w1(J),BSONRegExp:(J)=>new u0(J.pattern,J.options),BSONSymbol:(J)=>new z4(J.value),Timestamp:(J)=>m0.fromBits(J.low,J.high)},U4=Object.create(null);U4.parse=cV;U4.stringify=pV;U4.serialize=bS;U4.deserialize=gS;Object.freeze(U4);var lV=17825792,N8=L.allocate(lV),mS=Object.freeze({__proto__:null,BSONError:D,BSONRegExp:u0,BSONRuntimeError:j5,BSONSymbol:z4,BSONType:xV,BSONValue:Y0,BSONVersionError:B8,Binary:l,Code:o6,DBRef:C6,Decimal128:n1,Double:E8,EJSON:U4,Int32:C8,Long:M,MaxKey:H4,MinKey:V4,ObjectId:w1,Timestamp:m0,UUID:f1,calculateObjectSize:tV,deserialize:nV,deserializeStream:rV,serialize:iV,serializeWithBufferAndIndex:sV,setInternalBufferSize:aV});uS.BSON=mS;uS.BSONError=D;uS.BSONRegExp=u0;uS.BSONRuntimeError=j5;uS.BSONSymbol=z4;uS.BSONType=xV;uS.BSONValue=Y0;uS.BSONVersionError=B8;uS.Binary=l;uS.Code=o6;uS.DBRef=C6;uS.Decimal128=n1;uS.Double=E8;uS.EJSON=U4;uS.Int32=C8;uS.Long=M;uS.MaxKey=H4;uS.MinKey=V4;uS.ObjectId=w1;uS.Timestamp=m0;uS.UUID=f1;uS.calculateObjectSize=tV;uS.deserialize=nV;uS.deserializeStream=rV;uS.serialize=iV;uS.serializeWithBufferAndIndex=sV;uS.setInternalBufferSize=aV});var H1=V((P1)=>{var MO=function(J){const{fieldsAsRaw:Z,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:F,raw:q,enableUtf8Validation:W}=J;return{fieldsAsRaw:Z,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:F,raw:q,enableUtf8Validation:W}},jO=function(J,Z){const $=Z?.bsonOptions;return{raw:J?.raw??$?.raw??!1,useBigInt64:J?.useBigInt64??$?.useBigInt64??!1,promoteLongs:J?.promoteLongs??$?.promoteLongs??!0,promoteValues:J?.promoteValues??$?.promoteValues??!0,promoteBuffers:J?.promoteBuffers??$?.promoteBuffers??!1,ignoreUndefined:J?.ignoreUndefined??$?.ignoreUndefined??!1,bsonRegExp:J?.bsonRegExp??$?.bsonRegExp??!1,serializeFunctions:J?.serializeFunctions??$?.serializeFunctions??!1,fieldsAsRaw:J?.fieldsAsRaw??$?.fieldsAsRaw??{},enableUtf8Validation:J?.enableUtf8Validation??$?.enableUtf8Validation??!0}};Object.defineProperty(P1,"__esModule",{value:!0});P1.resolveBSONOptions=P1.pluckBSONSerializeOptions=P1.UUID=P1.Timestamp=P1.serialize=P1.ObjectId=P1.MinKey=P1.MaxKey=P1.Long=P1.Int32=P1.Double=P1.deserialize=P1.Decimal128=P1.DBRef=P1.Code=P1.calculateObjectSize=P1.BSONType=P1.BSONSymbol=P1.BSONRegExp=P1.BSON=P1.Binary=void 0;var O1=L5();Object.defineProperty(P1,"Binary",{enumerable:!0,get:function(){return O1.Binary}});Object.defineProperty(P1,"BSON",{enumerable:!0,get:function(){return O1.BSON}});Object.defineProperty(P1,"BSONRegExp",{enumerable:!0,get:function(){return O1.BSONRegExp}});Object.defineProperty(P1,"BSONSymbol",{enumerable:!0,get:function(){return O1.BSONSymbol}});Object.defineProperty(P1,"BSONType",{enumerable:!0,get:function(){return O1.BSONType}});Object.defineProperty(P1,"calculateObjectSize",{enumerable:!0,get:function(){return O1.calculateObjectSize}});Object.defineProperty(P1,"Code",{enumerable:!0,get:function(){return O1.Code}});Object.defineProperty(P1,"DBRef",{enumerable:!0,get:function(){return O1.DBRef}});Object.defineProperty(P1,"Decimal128",{enumerable:!0,get:function(){return O1.Decimal128}});Object.defineProperty(P1,"deserialize",{enumerable:!0,get:function(){return O1.deserialize}});Object.defineProperty(P1,"Double",{enumerable:!0,get:function(){return O1.Double}});Object.defineProperty(P1,"Int32",{enumerable:!0,get:function(){return O1.Int32}});Object.defineProperty(P1,"Long",{enumerable:!0,get:function(){return O1.Long}});Object.defineProperty(P1,"MaxKey",{enumerable:!0,get:function(){return O1.MaxKey}});Object.defineProperty(P1,"MinKey",{enumerable:!0,get:function(){return O1.MinKey}});Object.defineProperty(P1,"ObjectId",{enumerable:!0,get:function(){return O1.ObjectId}});Object.defineProperty(P1,"serialize",{enumerable:!0,get:function(){return O1.serialize}});Object.defineProperty(P1,"Timestamp",{enumerable:!0,get:function(){return O1.Timestamp}});Object.defineProperty(P1,"UUID",{enumerable:!0,get:function(){return O1.UUID}});P1.pluckBSONSerializeOptions=MO;P1.resolveBSONOptions=jO});var E=V((Ez)=>{var LO=function(J){return"errors"in J&&Array.isArray(J.errors)},wO=function(J){return J[Az]===!0},RO=function(J){const Z=Object.assign({},J);if(Z.ok===0)Z.ok=1,delete Z.errmsg,delete Z.code,delete Z.codeName;return Z},DO=function(J,Z){if(J instanceof M4)return!0;if(J instanceof h6){if((Z>=9||Nz(J))&&!J.hasErrorLabel(Ez.MongoErrorLabel.HandshakeError))return!1}if(J instanceof kX)return eV.has(J.result?.code??J.code??0);if(J instanceof h6&&typeof J.code==="number")return eV.has(J.code);if(Ez.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(J.message))return!0;if(Ez.NODE_IS_RECOVERING_ERROR_MESSAGE.test(J.message))return!0;return!1},Nz=function(J){return J.hasErrorLabel(Ez.MongoErrorLabel.RetryableWriteError)||J.hasErrorLabel(Ez.MongoErrorLabel.PoolRequstedRetry)},PO=function(J){if(typeof J.code==="number"?Iz.has(J.code):!1)return!0;if(J instanceof M4)return!0;if(Ez.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(J.message))return!0;if(Ez.NODE_IS_RECOVERING_ERROR_MESSAGE.test(J.message))return!0;return!1},Bz=function(J){if(typeof J.code==="number")return TO.has(J.code);return Ez.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(J.message)||Ez.NODE_IS_RECOVERING_ERROR_MESSAGE.test(J.message)},BO=function(J){if(typeof J.code==="number")return IO.has(J.code);if(Bz(J))return!1;return Ez.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(J.message)},EO=function(J){return!!(typeof J.code==="number"&&NO.has(J.code))},CO=function(J){if(J instanceof SX||J==null)return!0;return Bz(J)||BO(J)},hO=function(J){return!!(J instanceof M4&&J.message.match(/timed out/))},SO=function(J,Z){if(J==null||!(J instanceof h6))return!1;if(J instanceof M4)return!0;if(Z!=null&&Z>=9){if(J.code===Ez.MONGODB_ERROR_CODES.CursorNotFound)return!0;return J.hasErrorLabel(Ez.MongoErrorLabel.ResumableChangeStreamError)}if(typeof J.code==="number")return Ez.GET_MORE_RESUMABLE_CODES.has(J.code);return!1};Object.defineProperty(Ez,"__esModule",{value:!0});Ez.isResumableError=Ez.isNetworkTimeoutError=Ez.isSDAMUnrecoverableError=Ez.isNodeShuttingDownError=Ez.isRetryableReadError=Ez.isRetryableWriteError=Ez.needsRetryableWriteLabel=Ez.MongoWriteConcernError=Ez.MongoServerSelectionError=Ez.MongoSystemError=Ez.MongoMissingDependencyError=Ez.MongoMissingCredentialsError=Ez.MongoCompatibilityError=Ez.MongoInvalidArgumentError=Ez.MongoParseError=Ez.MongoNetworkTimeoutError=Ez.MongoNetworkError=Ez.isNetworkErrorBeforeHandshake=Ez.MongoTopologyClosedError=Ez.MongoCursorExhaustedError=Ez.MongoServerClosedError=Ez.MongoCursorInUseError=Ez.MongoUnexpectedServerResponseError=Ez.MongoGridFSChunkError=Ez.MongoGridFSStreamError=Ez.MongoTailableCursorError=Ez.MongoChangeStreamError=Ez.MongoAzureError=Ez.MongoAWSError=Ez.MongoKerberosError=Ez.MongoExpiredSessionError=Ez.MongoTransactionError=Ez.MongoNotConnectedError=Ez.MongoDecompressionError=Ez.MongoBatchReExecutionError=Ez.MongoRuntimeError=Ez.MongoAPIError=Ez.MongoDriverError=Ez.MongoServerError=Ez.MongoError=Ez.MongoErrorLabel=Ez.GET_MORE_RESUMABLE_CODES=Ez.MONGODB_ERROR_CODES=Ez.NODE_IS_RECOVERING_ERROR_MESSAGE=Ez.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=Ez.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;var w5=Symbol("errorLabels");Ez.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=new RegExp("not master","i");Ez.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=new RegExp("not master or secondary","i");Ez.NODE_IS_RECOVERING_ERROR_MESSAGE=new RegExp("node is recovering","i");Ez.MONGODB_ERROR_CODES=Object.freeze({HostUnreachable:6,HostNotFound:7,NetworkTimeout:89,ShutdownInProgress:91,PrimarySteppedDown:189,ExceededTimeLimit:262,SocketException:9001,NotWritablePrimary:10107,InterruptedAtShutdown:11600,InterruptedDueToReplStateChange:11602,NotPrimaryNoSecondaryOk:13435,NotPrimaryOrSecondary:13436,StaleShardVersion:63,StaleEpoch:150,StaleConfig:13388,RetryChangeStream:234,FailedToSatisfyReadPreference:133,CursorNotFound:43,LegacyNotPrimary:10058,WriteConcernFailed:64,NamespaceNotFound:26,IllegalOperation:20,MaxTimeMSExpired:50,UnknownReplWriteConcern:79,UnsatisfiableWriteConcern:100,Reauthenticate:391});Ez.GET_MORE_RESUMABLE_CODES=new Set([Ez.MONGODB_ERROR_CODES.HostUnreachable,Ez.MONGODB_ERROR_CODES.HostNotFound,Ez.MONGODB_ERROR_CODES.NetworkTimeout,Ez.MONGODB_ERROR_CODES.ShutdownInProgress,Ez.MONGODB_ERROR_CODES.PrimarySteppedDown,Ez.MONGODB_ERROR_CODES.ExceededTimeLimit,Ez.MONGODB_ERROR_CODES.SocketException,Ez.MONGODB_ERROR_CODES.NotWritablePrimary,Ez.MONGODB_ERROR_CODES.InterruptedAtShutdown,Ez.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,Ez.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,Ez.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,Ez.MONGODB_ERROR_CODES.StaleShardVersion,Ez.MONGODB_ERROR_CODES.StaleEpoch,Ez.MONGODB_ERROR_CODES.StaleConfig,Ez.MONGODB_ERROR_CODES.RetryChangeStream,Ez.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,Ez.MONGODB_ERROR_CODES.CursorNotFound]);Ez.MongoErrorLabel=Object.freeze({RetryableWriteError:"RetryableWriteError",TransientTransactionError:"TransientTransactionError",UnknownTransactionCommitResult:"UnknownTransactionCommitResult",ResumableChangeStreamError:"ResumableChangeStreamError",HandshakeError:"HandshakeError",ResetPool:"ResetPool",PoolRequstedRetry:"PoolRequstedRetry",InterruptInUseConnections:"InterruptInUseConnections",NoWritesPerformed:"NoWritesPerformed"});class h6 extends Error{constructor(J,Z){super(J,Z);this[w5]=new Set}static buildErrorMessage(J){if(typeof J==="string")return J;if(LO(J)&&J.message.length===0)return J.errors.length===0?"AggregateError has an empty errors array. Please check the `cause` property for more information.":J.errors.map(({message:Z})=>Z).join(", ");return J.message}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(J){return this[w5].has(J)}addErrorLabel(J){this[w5].add(J)}get errorLabels(){return Array.from(this[w5])}}Ez.MongoError=h6;class hX extends h6{constructor(J){super(J.message||J.errmsg||J.$err||"n/a");if(J.errorLabels)this[w5]=new Set(J.errorLabels);for(let Z in J)if(Z!=="errorLabels"&&Z!=="errmsg"&&Z!=="message")this[Z]=J[Z]}get name(){return"MongoServerError"}}Ez.MongoServerError=hX;class D5 extends h6{constructor(J,Z){super(J,Z)}get name(){return"MongoDriverError"}}Ez.MongoDriverError=D5;class Q0 extends D5{constructor(J,Z){super(J,Z)}get name(){return"MongoAPIError"}}Ez.MongoAPIError=Q0;class S6 extends D5{constructor(J,Z){super(J,Z)}get name(){return"MongoRuntimeError"}}Ez.MongoRuntimeError=S6;class Jz extends Q0{constructor(J="This batch has already been executed, create new batch to execute"){super(J)}get name(){return"MongoBatchReExecutionError"}}Ez.MongoBatchReExecutionError=Jz;class Zz extends S6{constructor(J){super(J)}get name(){return"MongoDecompressionError"}}Ez.MongoDecompressionError=Zz;class $z extends Q0{constructor(J){super(J)}get name(){return"MongoNotConnectedError"}}Ez.MongoNotConnectedError=$z;class Xz extends Q0{constructor(J){super(J)}get name(){return"MongoTransactionError"}}Ez.MongoTransactionError=Xz;class Yz extends Q0{constructor(J="Cannot use a session that has ended"){super(J)}get name(){return"MongoExpiredSessionError"}}Ez.MongoExpiredSessionError=Yz;class Qz extends S6{constructor(J){super(J)}get name(){return"MongoKerberosError"}}Ez.MongoKerberosError=Qz;class Kz extends S6{constructor(J){super(J)}get name(){return"MongoAWSError"}}Ez.MongoAWSError=Kz;class Gz extends S6{constructor(J){super(J)}get name(){return"MongoAzureError"}}Ez.MongoAzureError=Gz;class Fz extends S6{constructor(J){super(J)}get name(){return"MongoChangeStreamError"}}Ez.MongoChangeStreamError=Fz;class qz extends Q0{constructor(J="Tailable cursor does not support this operation"){super(J)}get name(){return"MongoTailableCursorError"}}Ez.MongoTailableCursorError=qz;class Wz extends S6{constructor(J){super(J)}get name(){return"MongoGridFSStreamError"}}Ez.MongoGridFSStreamError=Wz;class Hz extends S6{constructor(J){super(J)}get name(){return"MongoGridFSChunkError"}}Ez.MongoGridFSChunkError=Hz;class Vz extends S6{constructor(J){super(J)}get name(){return"MongoUnexpectedServerResponseError"}}Ez.MongoUnexpectedServerResponseError=Vz;class zz extends Q0{constructor(J="Cursor is already initialized"){super(J)}get name(){return"MongoCursorInUseError"}}Ez.MongoCursorInUseError=zz;class Uz extends Q0{constructor(J="Server is closed"){super(J)}get name(){return"MongoServerClosedError"}}Ez.MongoServerClosedError=Uz;class Mz extends Q0{constructor(J){super(J||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}}Ez.MongoCursorExhaustedError=Mz;class jz extends Q0{constructor(J="Topology is closed"){super(J)}get name(){return"MongoTopologyClosedError"}}Ez.MongoTopologyClosedError=jz;var Az=Symbol("beforeHandshake");Ez.isNetworkErrorBeforeHandshake=wO;class M4 extends h6{constructor(J,Z){super(J,{cause:Z?.cause});if(Z&&typeof Z.beforeHandshake==="boolean")this[Az]=Z.beforeHandshake}get name(){return"MongoNetworkError"}}Ez.MongoNetworkError=M4;class Lz extends M4{constructor(J,Z){super(J,Z)}get name(){return"MongoNetworkTimeoutError"}}Ez.MongoNetworkTimeoutError=Lz;class SX extends D5{constructor(J){super(J)}get name(){return"MongoParseError"}}Ez.MongoParseError=SX;class wz extends Q0{constructor(J){super(J)}get name(){return"MongoInvalidArgumentError"}}Ez.MongoInvalidArgumentError=wz;class Rz extends Q0{constructor(J){super(J)}get name(){return"MongoCompatibilityError"}}Ez.MongoCompatibilityError=Rz;class Dz extends Q0{constructor(J){super(J)}get name(){return"MongoMissingCredentialsError"}}Ez.MongoMissingCredentialsError=Dz;class Pz extends Q0{constructor(J,Z={}){super(J,Z)}get name(){return"MongoMissingDependencyError"}}Ez.MongoMissingDependencyError=Pz;class OX extends h6{constructor(J,Z){if(Z&&Z.error)super(h6.buildErrorMessage(Z.error.message||Z.error),{cause:Z.error});else super(J);if(Z)this.reason=Z;this.code=Z.error?.code}get name(){return"MongoSystemError"}}Ez.MongoSystemError=OX;class Tz extends OX{constructor(J,Z){super(J,Z)}get name(){return"MongoServerSelectionError"}}Ez.MongoServerSelectionError=Tz;class kX extends hX{constructor(J,Z){if(Z&&Array.isArray(Z.errorLabels))J.errorLabels=Z.errorLabels;super(J);if(this.errInfo=J.errInfo,Z!=null)this.result=RO(Z)}get name(){return"MongoWriteConcernError"}}Ez.MongoWriteConcernError=kX;var Iz=new Set([Ez.MONGODB_ERROR_CODES.HostUnreachable,Ez.MONGODB_ERROR_CODES.HostNotFound,Ez.MONGODB_ERROR_CODES.NetworkTimeout,Ez.MONGODB_ERROR_CODES.ShutdownInProgress,Ez.MONGODB_ERROR_CODES.PrimarySteppedDown,Ez.MONGODB_ERROR_CODES.SocketException,Ez.MONGODB_ERROR_CODES.NotWritablePrimary,Ez.MONGODB_ERROR_CODES.InterruptedAtShutdown,Ez.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,Ez.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,Ez.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),eV=new Set([...Iz,Ez.MONGODB_ERROR_CODES.ExceededTimeLimit]);Ez.needsRetryableWriteLabel=DO;Ez.isRetryableWriteError=Nz;Ez.isRetryableReadError=PO;var TO=new Set([Ez.MONGODB_ERROR_CODES.ShutdownInProgress,Ez.MONGODB_ERROR_CODES.PrimarySteppedDown,Ez.MONGODB_ERROR_CODES.InterruptedAtShutdown,Ez.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,Ez.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),IO=new Set([Ez.MONGODB_ERROR_CODES.NotWritablePrimary,Ez.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,Ez.MONGODB_ERROR_CODES.LegacyNotPrimary]),NO=new Set([Ez.MONGODB_ERROR_CODES.InterruptedAtShutdown,Ez.MONGODB_ERROR_CODES.ShutdownInProgress]);Ez.isNodeShuttingDownError=EO;Ez.isSDAMUnrecoverableError=CO;Ez.isNetworkTimeoutError=hO;Ez.isResumableError=SO});var k1=V((Oz)=>{Object.defineProperty(Oz,"__esModule",{value:!0});Oz.ReadPreference=Oz.ReadPreferenceMode=void 0;var j4=E();Oz.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class c{constructor(J,Z,$){if(!c.isValid(J))throw new j4.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(J)}`);if($==null&&typeof Z==="object"&&!Array.isArray(Z))$=Z,Z=void 0;else if(Z&&!Array.isArray(Z))throw new j4.MongoInvalidArgumentError("ReadPreference tags must be an array");if(this.mode=J,this.tags=Z,this.hedge=$?.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,$=$??{},$.maxStalenessSeconds!=null){if($.maxStalenessSeconds<=0)throw new j4.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=$.maxStalenessSeconds,this.minWireVersion=5}if(this.mode===c.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new j4.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new j4.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new j4.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(J){return new c(J)}static fromOptions(J){if(!J)return;const Z=J.readPreference??J.session?.transaction.options.readPreference,$=J.readPreferenceTags;if(Z==null)return;if(typeof Z==="string")return new c(Z,$,{maxStalenessSeconds:J.maxStalenessSeconds,hedge:J.hedge});else if(!(Z instanceof c)&&typeof Z==="object"){const X=Z.mode||Z.preference;if(X&&typeof X==="string")return new c(X,Z.tags??$,{maxStalenessSeconds:Z.maxStalenessSeconds,hedge:J.hedge})}if($)Z.tags=$;return Z}static translate(J){if(J.readPreference==null)return J;const Z=J.readPreference;if(typeof Z==="string")J.readPreference=new c(Z);else if(Z&&!(Z instanceof c)&&typeof Z==="object"){const $=Z.mode||Z.preference;if($&&typeof $==="string")J.readPreference=new c($,Z.tags,{maxStalenessSeconds:Z.maxStalenessSeconds})}else if(!(Z instanceof c))throw new j4.MongoInvalidArgumentError(`Invalid read preference: ${Z}`);return J}static isValid(J){return(new Set([c.PRIMARY,c.PRIMARY_PREFERRED,c.SECONDARY,c.SECONDARY_PREFERRED,c.NEAREST,null])).has(J)}isValid(J){return c.isValid(typeof J==="string"?J:this.mode)}secondaryOk(){return(new Set([c.PRIMARY_PREFERRED,c.SECONDARY,c.SECONDARY_PREFERRED,c.NEAREST])).has(this.mode)}equals(J){return J.mode===this.mode}toJSON(){const J={mode:this.mode};if(Array.isArray(this.tags))J.tags=this.tags;if(this.maxStalenessSeconds)J.maxStalenessSeconds=this.maxStalenessSeconds;if(this.hedge)J.hedge=this.hedge;return J}}c.PRIMARY=Oz.ReadPreferenceMode.primary;c.PRIMARY_PREFERRED=Oz.ReadPreferenceMode.primaryPreferred;c.SECONDARY=Oz.ReadPreferenceMode.secondary;c.SECONDARY_PREFERRED=Oz.ReadPreferenceMode.secondaryPreferred;c.NEAREST=Oz.ReadPreferenceMode.nearest;c.primary=new c(Oz.ReadPreferenceMode.primary);c.primaryPreferred=new c(Oz.ReadPreferenceMode.primaryPreferred);c.secondary=new c(Oz.ReadPreferenceMode.secondary);c.secondaryPreferred=new c(Oz.ReadPreferenceMode.secondaryPreferred);c.nearest=new c(Oz.ReadPreferenceMode.nearest);Oz.ReadPreference=c});var d0=V((yz)=>{var Ak=function(J){J.forEach(jk.clearTimeout),J.clear()},Lk=function(J,Z){if(J.clusterTime==null)J.clusterTime=Z;else if(Z.clusterTime.greaterThan(J.clusterTime.clusterTime))J.clusterTime=Z};Object.defineProperty(yz,"__esModule",{value:!0});yz._advanceClusterTime=yz.drainTimerQueue=yz.ServerType=yz.TopologyType=yz.STATE_CONNECTED=yz.STATE_CONNECTING=yz.STATE_CLOSED=yz.STATE_CLOSING=void 0;var jk=import.meta.require("timers");yz.STATE_CLOSING="closing";yz.STATE_CLOSED="closed";yz.STATE_CONNECTING="connecting";yz.STATE_CONNECTED="connected";yz.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"});yz.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"});yz.drainTimerQueue=Ak;yz._advanceClusterTime=Lk});var T5=V((vz)=>{var Ek=function(){return(J,Z)=>yX(J,Z.filter(($)=>$.isWritable))},Ck=function(J){return(Z,$)=>{if(!J)return[];return $.filter((X)=>{return X.address===J.address&&X.type!==E0.ServerType.Unknown})}},hk=function(J,Z){if(!Z||!J||J&&J<vz.MIN_SECONDARY_WRITE_WIRE_VERSION)return _X(P5.ReadPreference.primary);return _X(Z)},Sk=function(J,Z,$){if(J.maxStalenessSeconds==null||J.maxStalenessSeconds<0)return $;const X=J.maxStalenessSeconds,Y=(Z.heartbeatFrequencyMS+Bk)/1000;if(X<Y)throw new LJ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${Y} seconds`);if(X<fz)throw new LJ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${fz} seconds`);if(Z.type===E0.TopologyType.ReplicaSetWithPrimary){const Q=Array.from(Z.servers.values()).filter(AJ)[0];return $.reduce((K,G)=>{const q=(G.lastUpdateTime-G.lastWriteDate-(Q.lastUpdateTime-Q.lastWriteDate)+Z.heartbeatFrequencyMS)/1000,W=J.maxStalenessSeconds??0;if(q<=W)K.push(G);return K},[])}if(Z.type===E0.TopologyType.ReplicaSetNoPrimary){if($.length===0)return $;const Q=$.reduce((K,G)=>G.lastWriteDate>K.lastWriteDate?G:K);return $.reduce((K,G)=>{const q=(Q.lastWriteDate-G.lastWriteDate+Z.heartbeatFrequencyMS)/1000,W=J.maxStalenessSeconds??0;if(q<=W)K.push(G);return K},[])}return $},Ok=function(J,Z){const $=Object.keys(J),X=Object.keys(Z);for(let Y=0;Y<$.length;++Y){const Q=$[Y];if(X.indexOf(Q)===-1||Z[Q]!==J[Q])return!1}return!0},kk=function(J,Z){if(J.tags==null||Array.isArray(J.tags)&&J.tags.length===0)return Z;for(let $=0;$<J.tags.length;++$){const X=J.tags[$],Y=Z.reduce((Q,K)=>{if(Ok(X,K.tags))Q.push(K);return Q},[]);if(Y.length)return Y}return[]},yX=function(J,Z){const $=Z.reduce((Y,Q)=>Y===-1?Q.roundTripTime:Math.min(Q.roundTripTime,Y),-1),X=$+J.localThresholdMS;return Z.reduce((Y,Q)=>{if(Q.roundTripTime<=X&&Q.roundTripTime>=$)Y.push(Q);return Y},[])},AJ=function(J){return J.type===E0.ServerType.RSPrimary},yk=function(J){return J.type===E0.ServerType.RSSecondary},_k=function(J){return J.type===E0.ServerType.RSSecondary||J.type===E0.ServerType.RSPrimary},fk=function(J){return J.type!==E0.ServerType.Unknown},vk=function(J){return J.type===E0.ServerType.LoadBalancer},_X=function(J){if(!J.isValid())throw new LJ.MongoInvalidArgumentError("Invalid read preference specified");return(Z,$)=>{const X=Z.commonWireVersion;if(X&&J.minWireVersion&&J.minWireVersion>X)throw new LJ.MongoCompatibilityError(`Minimum wire version '${J.minWireVersion}' required, but found '${X}'`);if(Z.type===E0.TopologyType.LoadBalanced)return $.filter(vk);if(Z.type===E0.TopologyType.Unknown)return[];if(Z.type===E0.TopologyType.Single||Z.type===E0.TopologyType.Sharded)return yX(Z,$.filter(fk));const Y=J.mode;if(Y===P5.ReadPreference.PRIMARY)return $.filter(AJ);if(Y===P5.ReadPreference.PRIMARY_PREFERRED){const G=$.filter(AJ);if(G.length)return G}const Q=Y===P5.ReadPreference.NEAREST?_k:yk,K=yX(Z,kk(J,Sk(J,Z,$.filter(Q))));if(Y===P5.ReadPreference.SECONDARY_PREFERRED&&K.length===0)return $.filter(AJ);return K}};Object.defineProperty(vz,"__esModule",{value:!0});vz.readPreferenceServerSelector=vz.secondaryWritableServerSelector=vz.sameServerSelector=vz.writableServerSelector=vz.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;var LJ=E(),P5=k1(),E0=d0(),Bk=1e4,fz=90;vz.MIN_SECONDARY_WRITE_WIRE_VERSION=13;vz.writableServerSelector=Ek;vz.sameServerSelector=Ck;vz.secondaryWritableServerSelector=hk;vz.readPreferenceServerSelector=_X});var h8=V((gz)=>{Object.defineProperty(gz,"__esModule",{value:!0});gz.OP_MSG=gz.OP_COMPRESSED=gz.OP_DELETE=gz.OP_QUERY=gz.OP_INSERT=gz.OP_UPDATE=gz.OP_REPLY=gz.MIN_SUPPORTED_QE_SERVER_VERSION=gz.MIN_SUPPORTED_QE_WIRE_VERSION=gz.MAX_SUPPORTED_WIRE_VERSION=gz.MIN_SUPPORTED_WIRE_VERSION=gz.MAX_SUPPORTED_SERVER_VERSION=gz.MIN_SUPPORTED_SERVER_VERSION=void 0;gz.MIN_SUPPORTED_SERVER_VERSION="3.6";gz.MAX_SUPPORTED_SERVER_VERSION="7.0";gz.MIN_SUPPORTED_WIRE_VERSION=6;gz.MAX_SUPPORTED_WIRE_VERSION=21;gz.MIN_SUPPORTED_QE_WIRE_VERSION=21;gz.MIN_SUPPORTED_QE_SERVER_VERSION="7.0";gz.OP_REPLY=1;gz.OP_UPDATE=2001;gz.OP_INSERT=2002;gz.OP_QUERY=2004;gz.OP_DELETE=2006;gz.OP_COMPRESSED=2012;gz.OP_MSG=2013});var v1=V((uz)=>{Object.defineProperty(uz,"__esModule",{value:!0});uz.TOPOLOGY_EVENTS=uz.CMAP_EVENTS=uz.HEARTBEAT_EVENTS=uz.RESUME_TOKEN_CHANGED=uz.END=uz.CHANGE=uz.INIT=uz.MORE=uz.RESPONSE=uz.SERVER_HEARTBEAT_FAILED=uz.SERVER_HEARTBEAT_SUCCEEDED=uz.SERVER_HEARTBEAT_STARTED=uz.COMMAND_FAILED=uz.COMMAND_SUCCEEDED=uz.COMMAND_STARTED=uz.CLUSTER_TIME_RECEIVED=uz.CONNECTION_CHECKED_IN=uz.CONNECTION_CHECKED_OUT=uz.CONNECTION_CHECK_OUT_FAILED=uz.CONNECTION_CHECK_OUT_STARTED=uz.CONNECTION_CLOSED=uz.CONNECTION_READY=uz.CONNECTION_CREATED=uz.CONNECTION_POOL_READY=uz.CONNECTION_POOL_CLEARED=uz.CONNECTION_POOL_CLOSED=uz.CONNECTION_POOL_CREATED=uz.TOPOLOGY_DESCRIPTION_CHANGED=uz.TOPOLOGY_CLOSED=uz.TOPOLOGY_OPENING=uz.SERVER_DESCRIPTION_CHANGED=uz.SERVER_CLOSED=uz.SERVER_OPENING=uz.DESCRIPTION_RECEIVED=uz.UNPINNED=uz.PINNED=uz.MESSAGE=uz.ENDED=uz.CLOSED=uz.CONNECT=uz.OPEN=uz.CLOSE=uz.TIMEOUT=uz.ERROR=uz.SYSTEM_JS_COLLECTION=uz.SYSTEM_COMMAND_COLLECTION=uz.SYSTEM_USER_COLLECTION=uz.SYSTEM_PROFILE_COLLECTION=uz.SYSTEM_INDEX_COLLECTION=uz.SYSTEM_NAMESPACE_COLLECTION=void 0;uz.LEGACY_HELLO_COMMAND_CAMEL_CASE=uz.LEGACY_HELLO_COMMAND=uz.MONGO_CLIENT_EVENTS=uz.LOCAL_SERVER_EVENTS=uz.SERVER_RELAY_EVENTS=uz.APM_EVENTS=void 0;uz.SYSTEM_NAMESPACE_COLLECTION="system.namespaces";uz.SYSTEM_INDEX_COLLECTION="system.indexes";uz.SYSTEM_PROFILE_COLLECTION="system.profile";uz.SYSTEM_USER_COLLECTION="system.users";uz.SYSTEM_COMMAND_COLLECTION="$cmd";uz.SYSTEM_JS_COLLECTION="system.js";uz.ERROR="error";uz.TIMEOUT="timeout";uz.CLOSE="close";uz.OPEN="open";uz.CONNECT="connect";uz.CLOSED="closed";uz.ENDED="ended";uz.MESSAGE="message";uz.PINNED="pinned";uz.UNPINNED="unpinned";uz.DESCRIPTION_RECEIVED="descriptionReceived";uz.SERVER_OPENING="serverOpening";uz.SERVER_CLOSED="serverClosed";uz.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged";uz.TOPOLOGY_OPENING="topologyOpening";uz.TOPOLOGY_CLOSED="topologyClosed";uz.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged";uz.CONNECTION_POOL_CREATED="connectionPoolCreated";uz.CONNECTION_POOL_CLOSED="connectionPoolClosed";uz.CONNECTION_POOL_CLEARED="connectionPoolCleared";uz.CONNECTION_POOL_READY="connectionPoolReady";uz.CONNECTION_CREATED="connectionCreated";uz.CONNECTION_READY="connectionReady";uz.CONNECTION_CLOSED="connectionClosed";uz.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted";uz.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed";uz.CONNECTION_CHECKED_OUT="connectionCheckedOut";uz.CONNECTION_CHECKED_IN="connectionCheckedIn";uz.CLUSTER_TIME_RECEIVED="clusterTimeReceived";uz.COMMAND_STARTED="commandStarted";uz.COMMAND_SUCCEEDED="commandSucceeded";uz.COMMAND_FAILED="commandFailed";uz.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted";uz.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded";uz.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed";uz.RESPONSE="response";uz.MORE="more";uz.INIT="init";uz.CHANGE="change";uz.END="end";uz.RESUME_TOKEN_CHANGED="resumeTokenChanged";uz.HEARTBEAT_EVENTS=Object.freeze([uz.SERVER_HEARTBEAT_STARTED,uz.SERVER_HEARTBEAT_SUCCEEDED,uz.SERVER_HEARTBEAT_FAILED]);uz.CMAP_EVENTS=Object.freeze([uz.CONNECTION_POOL_CREATED,uz.CONNECTION_POOL_READY,uz.CONNECTION_POOL_CLEARED,uz.CONNECTION_POOL_CLOSED,uz.CONNECTION_CREATED,uz.CONNECTION_READY,uz.CONNECTION_CLOSED,uz.CONNECTION_CHECK_OUT_STARTED,uz.CONNECTION_CHECK_OUT_FAILED,uz.CONNECTION_CHECKED_OUT,uz.CONNECTION_CHECKED_IN]);uz.TOPOLOGY_EVENTS=Object.freeze([uz.SERVER_OPENING,uz.SERVER_CLOSED,uz.SERVER_DESCRIPTION_CHANGED,uz.TOPOLOGY_OPENING,uz.TOPOLOGY_CLOSED,uz.TOPOLOGY_DESCRIPTION_CHANGED,uz.ERROR,uz.TIMEOUT,uz.CLOSE]);uz.APM_EVENTS=Object.freeze([uz.COMMAND_STARTED,uz.COMMAND_SUCCEEDED,uz.COMMAND_FAILED]);uz.SERVER_RELAY_EVENTS=Object.freeze([uz.SERVER_HEARTBEAT_STARTED,uz.SERVER_HEARTBEAT_SUCCEEDED,uz.SERVER_HEARTBEAT_FAILED,uz.COMMAND_STARTED,uz.COMMAND_SUCCEEDED,uz.COMMAND_FAILED,...uz.CMAP_EVENTS]);uz.LOCAL_SERVER_EVENTS=Object.freeze([uz.CONNECT,uz.DESCRIPTION_RECEIVED,uz.CLOSED,uz.ENDED]);uz.MONGO_CLIENT_EVENTS=Object.freeze([...uz.CMAP_EVENTS,...uz.APM_EVENTS,...uz.TOPOLOGY_EVENTS,...uz.HEARTBEAT_EVENTS]);uz.LEGACY_HELLO_COMMAND="ismaster";uz.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"});var c0=V((MU)=>{Object.defineProperty(MU,"__esModule",{value:!0});MU.ReadConcern=MU.ReadConcernLevel=void 0;MU.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class Z7{constructor(J){this.level=MU.ReadConcernLevel[J]??J}static fromOptions(J){if(J==null)return;if(J.readConcern){const{readConcern:Z}=J;if(Z instanceof Z7)return Z;else if(typeof Z==="string")return new Z7(Z);else if("level"in Z&&Z.level)return new Z7(Z.level)}if(J.level)return new Z7(J.level);return}static get MAJORITY(){return MU.ReadConcernLevel.majority}static get AVAILABLE(){return MU.ReadConcernLevel.available}static get LINEARIZABLE(){return MU.ReadConcernLevel.linearizable}static get SNAPSHOT(){return MU.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}MU.ReadConcern=Z7});var A0=V((AU)=>{Object.defineProperty(AU,"__esModule",{value:!0});AU.WriteConcern=AU.WRITE_CONCERN_KEYS=void 0;AU.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class I5{constructor(J,Z,$,X){if(J!=null)if(!Number.isNaN(Number(J)))this.w=Number(J);else this.w=J;if(Z!=null)this.wtimeoutMS=this.wtimeout=Z;if($!=null)this.journal=this.j=$;if(X!=null)this.journal=this.j=X?!0:!1}static apply(J,Z){const $={};if(Z.w!=null)$.w=Z.w;if(Z.wtimeoutMS!=null)$.wtimeout=Z.wtimeoutMS;if(Z.journal!=null)$.j=Z.j;return J.writeConcern=$,J}static fromOptions(J,Z){if(J==null)return;Z=Z??{};let $;if(typeof J==="string"||typeof J==="number")$={w:J};else if(J instanceof I5)$=J;else $=J.writeConcern;const X=Z instanceof I5?Z:Z.writeConcern,{w:Y=void 0,wtimeout:Q=void 0,j:K=void 0,fsync:G=void 0,journal:F=void 0,wtimeoutMS:q=void 0}={...X,...$};if(Y!=null||Q!=null||q!=null||K!=null||F!=null||G!=null)return new I5(Y,Q??q,K??F,G);return}}AU.WriteConcern=I5});var y=V((OU)=>{var Sy=function(J,Z){for(let $ of Z)if(J===$||$.startsWith("*.")&&J?.endsWith($.substring(2,$.length))||$.startsWith("*/")&&J?.endsWith($.substring(2,$.length)))return!0;return!1},Oy=function(J){let Z=void 0;if(typeof J==="string")Z=J;else if(Array.isArray(J))Z={},J.forEach(($)=>{Z[$]=1});else if(J!=null&&typeof J==="object"){Z={};for(let $ in J)Z[$]=J[$]}return Z},cX=function(J){return ky(J)==="[object Object]"},yy=function(J,Z){return{...J,...Z}},_y=function(J,Z){const $={};for(let X in J)if(Z.includes(X))$[X]=J[X];return $},fy=function(J,Z){if(Z&&Z.s.options?.retryWrites)J.retryWrites=!0;return J},vy=function(J){return!!J&&typeof J.then==="function"},xy=function(J,Z,$){const X=PU(Z).capabilities;if($.collation&&typeof $.collation==="object")if(X&&X.commandsTakeCollation)J.collation=$.collation;else throw new G6.MongoCompatibilityError("Current topology does not support collation")},by=function(J,Z,$){if($&&$.session&&$.session.inTransaction())return;const X=Object.assign({},J.readConcern||{});if(Z.s.readConcern)Object.assign(X,Z.s.readConcern);if(Object.keys(X).length>0)Object.assign(J,{readConcern:X})},gy=function(J,Z){if(J.explain)return J;return{explain:J,verbosity:Z.verbosity}},PU=function(J){if("topology"in J&&J.topology)return J.topology;else if("client"in J&&J.client.topology)return J.client.topology;throw new G6.MongoNotConnectedError("MongoClient must be connected to perform this operation")},my=function(J){return E5.fromString(J)};function*uy(J=0){let Z=J;while(!0){const $=Z;Z+=1,yield $}}var dy=function(J,Z){const $=J();if(Z==null)return $;$.then((X)=>Z(void 0,X),(X)=>Z(X));return},cy=function(){const J=Ry.randomBytes(16);return J[6]=J[6]&15|64,J[8]=J[8]&63|128,J},py=function(J){if(J){if(J.loadBalanced)return Iy.MAX_SUPPORTED_WIRE_VERSION;if(J.hello)return J.hello.maxWireVersion;if("lastHello"in J&&typeof J.lastHello==="function"){const Z=J.lastHello();if(Z)return Z.maxWireVersion}if(J.description&&"maxWireVersion"in J.description&&J.description.maxWireVersion!=null)return J.description.maxWireVersion}return 0},ly=function(J,Z,$){J=J||[];let X=0,Y=0;for(X=0;X<J.length;++X)Y++,Z(J[X],Q);if(Y===0){$();return}function Q(K){if(Y--,K){$(K);return}if(X===J.length&&Y<=0)$()}},ay=function(J,Z){if(!Array.isArray(J)||!Array.isArray(Z))return!1;return J.length===Z.length&&J.every(($,X)=>$===Z[X])},iy=function(J,Z){if(J===Z)return!0;if(!J||!Z)return J===Z;if(J==null&&Z!=null||J!=null&&Z==null)return!1;if(J.constructor.name!==Z.constructor.name)return!1;if(J.message!==Z.message)return!1;return!0},sy=function(J){return function Z($,X){const Y=J[$.s.state];if(Y&&Y.indexOf(X)<0)throw new G6.MongoRuntimeError(`illegal state transition from [${$.s.state}] => [${X}], allowed: [${Y}]`);$.emit("stateChanged",$.s.state,X),$.s.state=X}},TU=function(){const J=process.hrtime();return Math.floor(J[0]*1000+J[1]/1e6)},ny=function(J){if(typeof J!=="number")throw new G6.MongoInvalidArgumentError("Numeric value required to calculate duration");const Z=TU()-J;return Z<0?0:Z},IU=function(J){if(Array.isArray(J)){for(let $ of J)if(IU($))return!0;return!1}const Z=Object.keys(J);return Z.length>0&&Z[0][0]==="$"},ty=function(J,Z){const $=Object.assign({},Z,DU.resolveBSONOptions(Z,J));if(!Z?.session?.inTransaction()){const Q=By.ReadConcern.fromOptions(Z)??J?.readConcern;if(Q)$.readConcern=Q;const K=hy.WriteConcern.fromOptions(Z)??J?.writeConcern;if(K)$.writeConcern=K}const Y=Ey.ReadPreference.fromOptions(Z)??J?.readPreference;if(Y)$.readPreference=Y;return $},NU=function(J,Z){J=Array.isArray(J)?new Set(J):J,Z=Array.isArray(Z)?new Set(Z):Z;for(let $ of Z)if(!J.has($))return!1;return!0},ry=function(J){return J[Ny.LEGACY_HELLO_COMMAND]||J.hello?!0:!1},oy=function(J,Z){const $=new Set(J);for(let X of Z)$.delete(X);return $},BU=function(J,Z=void 0){if(!cX(J))return!1;const $=J.constructor;if($&&$.prototype){if(!cX($.prototype))return!1;if(!ey($.prototype,"isPrototypeOf"))return!1}if(Z){const X=Object.keys(J);return NU(X,Z)}return!0},pX=function(J){if(J==null)return J;else if(Array.isArray(J))return J.map(($)=>pX($));else if(BU(J)){const $={};for(let X in J)$[X]=pX(J[X]);return $}const Z=J.constructor;if(Z)switch(Z.name.toLowerCase()){case"date":return new Z(Number(J));case"map":return new Map(J);case"set":return new Set(J);case"buffer":return Buffer.from(J)}return J},CU=function(J){return process.emitWarning(J,{code:OU.MONGODB_WARNING_CODE})},J_=function(J){if(!RU.has(J))return RU.add(J),CU(J)},Z_=function(J){return Object.values(J).join(", ")},$_=function(J){if(!J)return!1;if(J.loadBalanced)return!0;if(J.description.logicalSessionTimeoutMinutes!=null){if(J.description.type!==Cy.ServerType.Standalone)return!0}return!1},X_=function(J,Z=0){const $=Array.from(J);if(Z>$.length)throw new G6.MongoRuntimeError("Limit must be less than the number of items");let X=$.length;const Y=Z%$.length===0?1:$.length-Z;while(X>Y){const Q=Math.floor(Math.random()*X);X-=1;const K=$[X];$[X]=$[Q],$[Q]=K}return Z%$.length===0?$:$.slice(Y)},Y_=function(J){if(J.aggregate||J.count||J.distinct||J.find||J.geoNear)return!0;return!1},Q_=function(J,Z){if(J==null&&Z==null)return 0;if(J==null)return-1;if(Z==null)return 1;return OU.ByteUtils.compare(J.id,Z.id)},hU=function(J){if(typeof J==="number")return Math.trunc(J);const Z=Number.parseInt(String(J),10);return Number.isNaN(Z)?null:Z},K_=function(J){const Z=hU(J);return Z!=null&&Z>=0?Z:null},G_=function(J,Z){const $=J.endsWith(".")?J.slice(0,J.length-1):J,X=Z.endsWith(".")?Z.slice(0,Z.length-1):Z,Y=/^.*?\./,Q=`.${$.replace(Y,"")}`,K=`.${X.replace(Y,"")}`;return Q.endsWith(K)};async function F_(J,Z={}){return new Promise(($,X)=>{const Y={method:"GET",timeout:1e4,json:!0,...Py.parse(J),...Z},Q=Dy.request(Y,(K)=>{K.setEncoding("utf8");let G="";K.on("data",(F)=>{G+=F}),K.once("end",()=>{if(Z.json===!1){$(G);return}try{const F=JSON.parse(G);$(F)}catch{X(new G6.MongoRuntimeError(`Invalid JSON response: "${G}"`))}})});Q.once("timeout",()=>Q.destroy(new G6.MongoNetworkTimeoutError(`Network request to ${J} timed out after ${Z.timeout} ms`))),Q.once("error",(K)=>X(K)),Q.end()})}var q_=function(J,Z){return Z&&J.test(Z.toLowerCase())?!0:!1};Object.defineProperty(OU,"__esModule",{value:!0});OU.DOCUMENT_DB_CHECK=OU.TimeoutController=OU.request=OU.matchesParentDomain=OU.parseUnsignedInteger=OU.parseInteger=OU.compareObjectId=OU.commandSupportsReadConcern=OU.shuffle=OU.supportsRetryableWrites=OU.enumToString=OU.emitWarningOnce=OU.emitWarning=OU.MONGODB_WARNING_CODE=OU.DEFAULT_PK_FACTORY=OU.HostAddress=OU.BufferPool=OU.List=OU.deepCopy=OU.isRecord=OU.setDifference=OU.isHello=OU.isSuperset=OU.resolveOptions=OU.hasAtomicOperators=OU.calculateDurationInMs=OU.now=OU.makeStateMachine=OU.errorStrictEqual=OU.arrayStrictEqual=OU.eachAsync=OU.maxWireVersion=OU.uuidV4=OU.maybeCallback=OU.makeCounter=OU.MongoDBCollectionNamespace=OU.MongoDBNamespace=OU.ns=OU.getTopology=OU.decorateWithExplain=OU.decorateWithReadConcern=OU.decorateWithCollation=OU.isPromiseLike=OU.applyRetryableWrites=OU.filterOptions=OU.mergeOptions=OU.isObject=OU.normalizeHintField=OU.hostMatchesWildcards=OU.ByteUtils=void 0;OU.isHostMatch=OU.COSMOS_DB_MSG=OU.DOCUMENT_DB_MSG=OU.COSMOS_DB_CHECK=void 0;var Ry=import.meta.require("crypto"),Dy=import.meta.require("http"),wU=import.meta.require("timers"),Py=import.meta.require("url"),Ty=import.meta.require("url"),DU=H1(),Iy=h8(),Ny=v1(),G6=E(),By=c0(),Ey=k1(),Cy=d0(),hy=A0();OU.ByteUtils={toLocalBufferType(J){return Buffer.isBuffer(J)?J:Buffer.from(J.buffer,J.byteOffset,J.byteLength)},equals(J,Z){return OU.ByteUtils.toLocalBufferType(J).equals(Z)},compare(J,Z){return OU.ByteUtils.toLocalBufferType(J).compare(Z)},toBase64(J){return OU.ByteUtils.toLocalBufferType(J).toString("base64")}};OU.hostMatchesWildcards=Sy;OU.normalizeHintField=Oy;var ky=(J)=>Object.prototype.toString.call(J);OU.isObject=cX;OU.mergeOptions=yy;OU.filterOptions=_y;OU.applyRetryableWrites=fy;OU.isPromiseLike=vy;OU.decorateWithCollation=xy;OU.decorateWithReadConcern=by;OU.decorateWithExplain=gy;OU.getTopology=PU;OU.ns=my;class E5{constructor(J,Z){this.db=J,this.collection=Z,this.collection=Z===""?void 0:Z}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(J){return new lX(this.db,J)}static fromString(J){if(typeof J!=="string"||J==="")throw new G6.MongoRuntimeError(`Cannot parse namespace from "${J}"`);const[Z,...$]=J.split("."),X=$.join(".");return new E5(Z,X===""?void 0:X)}}OU.MongoDBNamespace=E5;class lX extends E5{constructor(J,Z){super(J,Z);this.collection=Z}static fromString(J){return super.fromString(J)}}OU.MongoDBCollectionNamespace=lX;OU.makeCounter=uy;OU.maybeCallback=dy;OU.uuidV4=cy;OU.maxWireVersion=py;OU.eachAsync=ly;OU.arrayStrictEqual=ay;OU.errorStrictEqual=iy;OU.makeStateMachine=sy;OU.now=TU;OU.calculateDurationInMs=ny;OU.hasAtomicOperators=IU;OU.resolveOptions=ty;OU.isSuperset=NU;OU.isHello=ry;OU.setDifference=oy;var ey=(J,Z)=>Object.prototype.hasOwnProperty.call(J,Z);OU.isRecord=BU;OU.deepCopy=pX;class aX{get length(){return this.count}get[Symbol.toStringTag](){return"List"}constructor(){this.count=0,this.head={next:null,prev:null,value:null},this.head.next=this.head,this.head.prev=this.head}toArray(){return Array.from(this)}toString(){return`head <=> ${this.toArray().join(" <=> ")} <=> head`}*[Symbol.iterator](){for(let J of this.nodes())yield J.value}*nodes(){let J=this.head.next;while(J!==this.head){const{next:Z}=J;yield J,J=Z}}push(J){this.count+=1;const Z={next:this.head,prev:this.head.prev,value:J};this.head.prev.next=Z,this.head.prev=Z}pushMany(J){for(let Z of J)this.push(Z)}unshift(J){this.count+=1;const Z={next:this.head.next,prev:this.head,value:J};this.head.next.prev=Z,this.head.next=Z}remove(J){if(J===this.head||this.length===0)return null;this.count-=1;const{prev:Z,next:$}=J;return Z.next=$,$.prev=Z,J.value}shift(){return this.remove(this.head.next)}pop(){return this.remove(this.head.prev)}prune(J){for(let Z of this.nodes())if(J(Z.value))this.remove(Z)}clear(){this.count=0,this.head.next=this.head,this.head.prev=this.head}first(){return this.head.next.value}last(){return this.head.prev.value}}OU.List=aX;class EU{constructor(){this.buffers=new aX,this.totalByteLength=0}get length(){return this.totalByteLength}append(J){this.buffers.push(J),this.totalByteLength+=J.length}getInt32(){if(this.totalByteLength<4)return null;const J=this.buffers.first();if(J!=null&&J.byteLength>=4)return J.readInt32LE(0);const Z=this.read(4),$=Z.readInt32LE(0);return this.totalByteLength+=4,this.buffers.unshift(Z),$}read(J){if(typeof J!=="number"||J<0)throw new G6.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(J>this.totalByteLength)return Buffer.alloc(0);const Z=Buffer.allocUnsafe(J);for(let $=0;$<J;){const X=this.buffers.shift();if(X==null)break;const Y=J-$,Q=Math.min(Y,X.byteLength),K=X.subarray(0,Q);if(Z.set(K,$),$+=Q,this.totalByteLength-=Q,Q<X.byteLength)this.buffers.unshift(X.subarray(Q))}return Z}}OU.BufferPool=EU;class B5{constructor(J){this.host=void 0,this.port=void 0,this.socketPath=void 0,this.isIPv6=!1;const Z=J.split(" ").join("%20");if(Z.endsWith(".sock")){this.socketPath=decodeURIComponent(Z);return}const $=`iLoveJS://${Z}`;let X;try{X=new Ty.URL($)}catch(G){const F=new G6.MongoRuntimeError(`Unable to parse ${Z} with URL`);throw F.cause=G,F}const{hostname:Y,port:Q}=X;let K=decodeURIComponent(Y).toLowerCase();if(K.startsWith("[")&&K.endsWith("]"))this.isIPv6=!0,K=K.substring(1,Y.length-1);if(this.host=K.toLowerCase(),typeof Q==="number")this.port=Q;else if(typeof Q==="string"&&Q!=="")this.port=Number.parseInt(Q,10);else this.port=27017;if(this.port===0)throw new G6.MongoParseError("Invalid port (zero) with hostname");Object.freeze(this)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new HostAddress('${this.toString()}')`}toString(){if(typeof this.host==="string"){if(this.isIPv6)return`[${this.host}]:${this.port}`;return`${this.host}:${this.port}`}return`${this.socketPath}`}static fromString(J){return new B5(J)}static fromHostPort(J,Z){if(J.includes(":"))J=`[${J}]`;return B5.fromString(`${J}:${Z}`)}static fromSrvRecord({name:J,port:Z}){return B5.fromHostPort(J,Z)}toHostPort(){if(this.socketPath)return{host:this.socketPath,port:0};const J=this.host??"",Z=this.port??0;return{host:J,port:Z}}}OU.HostAddress=B5;OU.DEFAULT_PK_FACTORY={createPk(){return new DU.ObjectId}};OU.MONGODB_WARNING_CODE="MONGODB DRIVER";OU.emitWarning=CU;var RU=new Set;OU.emitWarningOnce=J_;OU.enumToString=Z_;OU.supportsRetryableWrites=$_;OU.shuffle=X_;OU.commandSupportsReadConcern=Y_;OU.compareObjectId=Q_;OU.parseInteger=hU;OU.parseUnsignedInteger=K_;OU.matchesParentDomain=G_;OU.request=F_;class SU extends AbortController{constructor(J=0,Z=J>0?wU.setTimeout(()=>this.abort(),J):null){super();this.timeoutId=Z}clear(){if(this.timeoutId!=null)wU.clearTimeout(this.timeoutId);this.timeoutId=null}}OU.TimeoutController=SU;OU.DOCUMENT_DB_CHECK=/(\.docdb\.amazonaws\.com$)|(\.docdb-elastic\.amazonaws\.com$)/;OU.COSMOS_DB_CHECK=/\.cosmos\.azure\.com$/;OU.DOCUMENT_DB_MSG="You appear to be connected to a DocumentDB cluster. For more information regarding feature compatibility and support please visit https://www.mongodb.com/supportability/documentdb";OU.COSMOS_DB_MSG="You appear to be connected to a CosmosDB cluster. For more information regarding feature compatibility and support please visit https://www.mongodb.com/supportability/cosmosdb";OU.isHostMatch=q_});var o=V((vU)=>{var Gf=function(J,Z){if(!Array.isArray(Z)&&!(Z instanceof Set))Z=[Z];return Z=new Set(Z),Object.defineProperty(J,"aspects",{value:Z,writable:!1}),Z};Object.defineProperty(vU,"__esModule",{value:!0});vU.defineAspects=vU.AbstractOperation=vU.Aspect=void 0;var Kf=H1(),iX=k1();vU.Aspect={READ_OPERATION:Symbol("READ_OPERATION"),WRITE_OPERATION:Symbol("WRITE_OPERATION"),RETRYABLE:Symbol("RETRYABLE"),EXPLAINABLE:Symbol("EXPLAINABLE"),SKIP_COLLATION:Symbol("SKIP_COLLATION"),CURSOR_CREATING:Symbol("CURSOR_CREATING"),MUST_SELECT_SAME_SERVER:Symbol("MUST_SELECT_SAME_SERVER")};var sX=Symbol("session");class fU{constructor(J={}){this.readPreference=this.hasAspect(vU.Aspect.WRITE_OPERATION)?iX.ReadPreference.primary:iX.ReadPreference.fromOptions(J)??iX.ReadPreference.primary,this.bsonOptions=Kf.resolveBSONOptions(J),this[sX]=J.session!=null?J.session:void 0,this.options=J,this.bypassPinningCheck=!!J.bypassPinningCheck,this.trySecondaryWrite=!1}hasAspect(J){const Z=this.constructor;if(Z.aspects==null)return!1;return Z.aspects.has(J)}get session(){return this[sX]}clearSession(){this[sX]=void 0}get canRetryRead(){return!0}get canRetryWrite(){return!0}}vU.AbstractOperation=fU;vU.defineAspects=Gf});var L0=V((dU)=>{var Wf=function(J,Z,$){return nX.maybeCallback(()=>Hf(J,Z),$)};async function Hf(J,Z){if(!(Z instanceof S8.AbstractOperation))throw new t1.MongoRuntimeError("This method requires a valid operation instance");if(J.topology==null){if(J.s.hasBeenClosed)throw new t1.MongoNotConnectedError("Client must be connected before running operations");J.s.options[Symbol.for("@@mdb.skipPingOnConnect")]=!0;try{await J.connect()}finally{delete J.s.options[Symbol.for("@@mdb.skipPingOnConnect")]}}const{topology:$}=J;if($==null)throw new t1.MongoRuntimeError("client.connect did not create a topology but also did not throw");let X=Z.session,Y;if(X==null)Y=Symbol(),X=J.startSession({owner:Y,explicit:!1});else if(X.hasEnded)throw new t1.MongoExpiredSessionError("Use of expired sessions is not permitted");else if(X.snapshotEnabled&&!$.capabilities.supportsSnapshotReads)throw new t1.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later");else if(X.client!==J)throw new t1.MongoInvalidArgumentError("ClientSession must be from the same MongoClient");const Q=Z.readPreference??gU.ReadPreference.primary,K=!!X?.inTransaction();if(K&&!Q.equals(gU.ReadPreference.primary))throw new t1.MongoTransactionError(`Read preference in a transaction must be primary, not: ${Q.mode}`);if(X?.isPinned&&X.transaction.isCommitted&&!Z.bypassPinningCheck)X.unpin();let G;if(Z.hasAspect(S8.Aspect.MUST_SELECT_SAME_SERVER))G=mU.sameServerSelector(Z.server?.description);else if(Z.trySecondaryWrite)G=mU.secondaryWritableServerSelector($.commonWireVersion,Q);else G=Q;const F=await $.selectServerAsync(G,{session:X});if(X==null)return Z.execute(F,void 0);if(!Z.hasAspect(S8.Aspect.RETRYABLE))try{return await Z.execute(F,X)}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}const q=$.s.options.retryReads&&!K&&Z.canRetryRead,W=$.s.options.retryWrites&&!K&&nX.supportsRetryableWrites(F)&&Z.canRetryWrite,H=Z.hasAspect(S8.Aspect.READ_OPERATION),U=Z.hasAspect(S8.Aspect.WRITE_OPERATION),j=H&&q||U&&W;if(U&&W)Z.options.willRetryWrite=!0,X.incrementTransactionNumber();try{return await Z.execute(F,X)}catch(z){if(j&&z instanceof t1.MongoError)return await Vf(Z,z,{session:X,topology:$,selector:G});throw z}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}}async function Vf(J,Z,{session:$,topology:X,selector:Y}){const Q=J.hasAspect(S8.Aspect.WRITE_OPERATION),K=J.hasAspect(S8.Aspect.READ_OPERATION);if(Q&&Z.code===qf)throw new t1.MongoServerError({message:uU,errmsg:uU,originalError:Z});if(Q&&!t1.isRetryableWriteError(Z))throw Z;if(K&&!t1.isRetryableReadError(Z))throw Z;if(Z instanceof t1.MongoNetworkError&&$.isPinned&&!$.inTransaction()&&J.hasAspect(S8.Aspect.CURSOR_CREATING))$.unpin({force:!0,forceClear:!0});const G=await X.selectServerAsync(Y,{session:$});if(Q&&!nX.supportsRetryableWrites(G))throw new t1.MongoUnexpectedServerResponseError("Selected server does not support retryable writes");try{return await J.execute(G,$)}catch(F){if(F instanceof t1.MongoError&&F.hasErrorLabel(t1.MongoErrorLabel.NoWritesPerformed))throw Z;throw F}}Object.defineProperty(dU,"__esModule",{value:!0});dU.executeOperation=void 0;var t1=E(),gU=k1(),mU=T5(),nX=y(),S8=o(),qf=t1.MONGODB_ERROR_CODES.IllegalOperation,uU="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";dU.executeOperation=Wf});var oX=V((pU)=>{Object.defineProperty(pU,"__esModule",{value:!0});pU.Explain=pU.ExplainVerbosity=void 0;var zf=E();pU.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class rX{constructor(J){if(typeof J==="boolean")this.verbosity=J?pU.ExplainVerbosity.allPlansExecution:pU.ExplainVerbosity.queryPlanner;else this.verbosity=J}static fromOptions(J){if(J?.explain==null)return;const Z=J.explain;if(typeof Z==="boolean"||typeof Z==="string")return new rX(Z);throw new zf.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}pU.Explain=rX});var T1=V((sU)=>{Object.defineProperty(sU,"__esModule",{value:!0});sU.CommandOperation=void 0;var Uf=E(),Mf=oX(),jf=c0(),Af=T5(),C5=y(),aU=A0(),$7=o();class iU extends $7.AbstractOperation{constructor(J,Z){super(Z);this.options=Z??{};const $=Z?.dbName||Z?.authdb;if($)this.ns=new C5.MongoDBNamespace($,"$cmd");else this.ns=J?J.s.namespace.withCollection("$cmd"):new C5.MongoDBNamespace("admin","$cmd");if(this.readConcern=jf.ReadConcern.fromOptions(Z),this.writeConcern=aU.WriteConcern.fromOptions(Z),this.hasAspect($7.Aspect.EXPLAINABLE))this.explain=Mf.Explain.fromOptions(Z);else if(Z?.explain!=null)throw new Uf.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){if(this.hasAspect($7.Aspect.EXPLAINABLE))return this.explain==null;return!0}async executeCommand(J,Z,$){this.server=J;const X={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:Z},Y=C5.maxWireVersion(J),Q=this.session&&this.session.inTransaction();if(this.readConcern&&C5.commandSupportsReadConcern($)&&!Q)Object.assign($,{readConcern:this.readConcern});if(this.trySecondaryWrite&&Y<Af.MIN_SECONDARY_WRITE_WIRE_VERSION)X.omitReadPreference=!0;if(this.writeConcern&&this.hasAspect($7.Aspect.WRITE_OPERATION)&&!Q)aU.WriteConcern.apply($,this.writeConcern);if(X.collation&&typeof X.collation==="object"&&!this.hasAspect($7.Aspect.SKIP_COLLATION))Object.assign($,{collation:X.collation});if(typeof X.maxTimeMS==="number")$.maxTimeMS=X.maxTimeMS;if(this.hasAspect($7.Aspect.EXPLAINABLE)&&this.explain)$=C5.decorateWithExplain($,this.explain);return J.commandAsync(this.ns,$,X)}}sU.CommandOperation=iU});var eU=V((rU)=>{Object.defineProperty(rU,"__esModule",{value:!0});rU.ListDatabasesOperation=void 0;var tU=y(),Lf=T1(),eX=o();class J3 extends Lf.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z??{},this.ns=new tU.MongoDBNamespace("admin","$cmd")}async execute(J,Z){const $={listDatabases:1};if(typeof this.options.nameOnly==="boolean")$.nameOnly=this.options.nameOnly;if(this.options.filter)$.filter=this.options.filter;if(typeof this.options.authorizedDatabases==="boolean")$.authorizedDatabases=this.options.authorizedDatabases;if(tU.maxWireVersion(J)>=9&&this.options.comment!==void 0)$.comment=this.options.comment;return super.executeCommand(J,Z,$)}}rU.ListDatabasesOperation=J3;eX.defineAspects(J3,[eX.Aspect.READ_OPERATION,eX.Aspect.RETRYABLE])});var $3=V((ZM)=>{Object.defineProperty(ZM,"__esModule",{value:!0});ZM.RemoveUserOperation=void 0;var wf=T1(),JM=o();class Z3 extends wf.CommandOperation{constructor(J,Z,$){super(J,$);this.options=$,this.username=Z}async execute(J,Z){return await super.executeCommand(J,Z,{dropUser:this.username}),!0}}ZM.RemoveUserOperation=Z3;JM.defineAspects(Z3,[JM.Aspect.WRITE_OPERATION])});var X7=V((KM)=>{Object.defineProperty(KM,"__esModule",{value:!0});KM.RunAdminCommandOperation=KM.RunCommandOperation=void 0;var Rf=y(),XM=o();class YM extends XM.AbstractOperation{constructor(J,Z,$){super($);this.command=Z,this.options=$,this.ns=J.s.namespace.withCollection("$cmd")}async execute(J,Z){return this.server=J,J.commandAsync(this.ns,this.command,{...this.options,readPreference:this.readPreference,session:Z})}}KM.RunCommandOperation=YM;class QM extends XM.AbstractOperation{constructor(J,Z){super(Z);this.command=J,this.options=Z,this.ns=new Rf.MongoDBNamespace("admin","$cmd")}async execute(J,Z){return this.server=J,J.commandAsync(this.ns,this.command,{...this.options,readPreference:this.readPreference,session:Z})}}KM.RunAdminCommandOperation=QM});var HM=V((qM)=>{Object.defineProperty(qM,"__esModule",{value:!0});qM.ValidateCollectionOperation=void 0;var X3=E(),Pf=T1();class FM extends Pf.CommandOperation{constructor(J,Z,$){const X={validate:Z},Y=Object.keys($);for(let Q=0;Q<Y.length;Q++)if(Object.prototype.hasOwnProperty.call($,Y[Q])&&Y[Q]!=="session")X[Y[Q]]=$[Y[Q]];super(J.s.db,$);this.options=$,this.command=X,this.collectionName=Z}async execute(J,Z){const $=this.collectionName,X=await super.executeCommand(J,Z,this.command);if(X.result!=null&&typeof X.result!=="string")throw new X3.MongoUnexpectedServerResponseError("Error with validation data");if(X.result!=null&&X.result.match(/exception|corrupt/)!=null)throw new X3.MongoUnexpectedServerResponseError(`Invalid collection ${$}`);if(X.valid!=null&&!X.valid)throw new X3.MongoUnexpectedServerResponseError(`Invalid collection ${$}`);return X}}qM.ValidateCollectionOperation=FM});var Y3=V((zM)=>{Object.defineProperty(zM,"__esModule",{value:!0});zM.Admin=void 0;var Tf=H1(),wJ=L0(),If=eU(),Nf=$3(),Bf=X7(),Ef=HM();class VM{constructor(J){this.s={db:J}}async command(J,Z){return wJ.executeOperation(this.s.db.client,new Bf.RunAdminCommandOperation(J,{...Tf.resolveBSONOptions(Z),session:Z?.session,readPreference:Z?.readPreference}))}async buildInfo(J){return this.command({buildinfo:1},J)}async serverInfo(J){return this.command({buildinfo:1},J)}async serverStatus(J){return this.command({serverStatus:1},J)}async ping(J){return this.command({ping:1},J)}async removeUser(J,Z){return wJ.executeOperation(this.s.db.client,new Nf.RemoveUserOperation(this.s.db,J,{dbName:"admin",...Z}))}async validateCollection(J,Z={}){return wJ.executeOperation(this.s.db.client,new Ef.ValidateCollectionOperation(this,J,Z))}async listDatabases(J){return wJ.executeOperation(this.s.db.client,new If.ListDatabasesOperation(this.s.db,J))}async replSetGetStatus(J){return this.command({replSetGetStatus:1},J)}}zM.Admin=VM});var F3=V((MM)=>{var G3=function(J,Z){const $={q:J,limit:typeof Z.limit==="number"?Z.limit:0};if(Z.collation)$.collation=Z.collation;if(Z.hint)$.hint=Z.hint;return $};Object.defineProperty(MM,"__esModule",{value:!0});MM.makeDeleteStatement=MM.DeleteManyOperation=MM.DeleteOneOperation=MM.DeleteOperation=void 0;var h5=E(),Cf=T1(),p0=o();class S5 extends Cf.CommandOperation{constructor(J,Z,$){super(void 0,$);this.options=$,this.ns=J,this.statements=Z}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((J)=>J.limit!=null?J.limit>0:!0)}async execute(J,Z){const $=this.options??{},X=typeof $.ordered==="boolean"?$.ordered:!0,Y={delete:this.ns.collection,deletes:this.statements,ordered:X};if($.let)Y.let=$.let;if($.comment!==void 0)Y.comment=$.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((K)=>K.hint))throw new h5.MongoCompatibilityError("hint is not supported with unacknowledged writes")}return super.executeCommand(J,Z,Y)}}MM.DeleteOperation=S5;class Q3 extends S5{constructor(J,Z,$){super(J.s.namespace,[G3(Z,{...$,limit:1})],$)}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain)return $;if($.code)throw new h5.MongoServerError($);if($.writeErrors)throw new h5.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,deletedCount:$.n}}}MM.DeleteOneOperation=Q3;class K3 extends S5{constructor(J,Z,$){super(J.s.namespace,[G3(Z,$)],$)}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain)return $;if($.code)throw new h5.MongoServerError($);if($.writeErrors)throw new h5.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,deletedCount:$.n}}}MM.DeleteManyOperation=K3;MM.makeDeleteStatement=G3;p0.defineAspects(S5,[p0.Aspect.RETRYABLE,p0.Aspect.WRITE_OPERATION]);p0.defineAspects(Q3,[p0.Aspect.RETRYABLE,p0.Aspect.WRITE_OPERATION,p0.Aspect.EXPLAINABLE,p0.Aspect.SKIP_COLLATION]);p0.defineAspects(K3,[p0.Aspect.WRITE_OPERATION,p0.Aspect.EXPLAINABLE,p0.Aspect.SKIP_COLLATION])});var H3=V((AM)=>{Object.defineProperty(AM,"__esModule",{value:!0});AM.BulkWriteOperation=void 0;var q3=o();class W3 extends q3.AbstractOperation{constructor(J,Z,$){super($);this.options=$,this.collection=J,this.operations=Z}async execute(J,Z){const $=this.collection,X=this.operations,Y={...this.options,...this.bsonOptions,readPreference:this.readPreference},Q=Y.ordered===!1?$.initializeUnorderedBulkOp(Y):$.initializeOrderedBulkOp(Y);for(let G=0;G<X.length;G++)Q.raw(X[G]);return await Q.execute({...Y,session:Z})}}AM.BulkWriteOperation=W3;q3.defineAspects(W3,[q3.Aspect.WRITE_OPERATION])});var V3=V((wM)=>{async function kf(J,Z,$){if($==null)$={};const X=$.full==null?!1:$.full,Y=await J.collection(Z).listIndexes($).toArray();if(X)return Y;const Q={};for(let K of Y)Q[K.name]=Object.entries(K.key);return Q}var yf=function(J,Z,$){if((typeof $.forceServerObjectId==="boolean"?$.forceServerObjectId:J.s.db.options?.forceServerObjectId)===!0)return Z;return Z.map((Y)=>{if(Y._id==null)Y._id=J.s.pkFactory.createPk();return Y})};Object.defineProperty(wM,"__esModule",{value:!0});wM.prepareDocs=wM.indexInformation=void 0;wM.indexInformation=kf;wM.prepareDocs=yf});var M3=V((PM)=>{Object.defineProperty(PM,"__esModule",{value:!0});PM.InsertManyOperation=PM.InsertOneOperation=PM.InsertOperation=void 0;var RJ=E(),ff=A0(),vf=H3(),xf=T1(),DM=V3(),e6=o();class DJ extends xf.CommandOperation{constructor(J,Z,$){super(void 0,$);this.options={...$,checkKeys:$.checkKeys??!1},this.ns=J,this.documents=Z}async execute(J,Z){const $=this.options??{},X=typeof $.ordered==="boolean"?$.ordered:!0,Y={insert:this.ns.collection,documents:this.documents,ordered:X};if(typeof $.bypassDocumentValidation==="boolean")Y.bypassDocumentValidation=$.bypassDocumentValidation;if($.comment!==void 0)Y.comment=$.comment;return super.executeCommand(J,Z,Y)}}PM.InsertOperation=DJ;class z3 extends DJ{constructor(J,Z,$){super(J.s.namespace,DM.prepareDocs(J,[Z],$),$)}async execute(J,Z){const $=await super.execute(J,Z);if($.code)throw new RJ.MongoServerError($);if($.writeErrors)throw new RJ.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,insertedId:this.documents[0]._id}}}PM.InsertOneOperation=z3;class U3 extends e6.AbstractOperation{constructor(J,Z,$){super($);if(!Array.isArray(Z))throw new RJ.MongoInvalidArgumentError('Argument "docs" must be an array of documents');this.options=$,this.collection=J,this.docs=Z}async execute(J,Z){const $=this.collection,X={...this.options,...this.bsonOptions,readPreference:this.readPreference},Y=ff.WriteConcern.fromOptions(X),Q=new vf.BulkWriteOperation($,DM.prepareDocs($,this.docs,X).map((K)=>({insertOne:{document:K}})),X);try{const K=await Q.execute(J,Z);return{acknowledged:Y?.w!==0,insertedCount:K.insertedCount,insertedIds:K.insertedIds}}catch(K){if(K&&K.message==="Operation must be an object with an operation key")throw new RJ.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values");throw K}}}PM.InsertManyOperation=U3;e6.defineAspects(DJ,[e6.Aspect.RETRYABLE,e6.Aspect.WRITE_OPERATION]);e6.defineAspects(z3,[e6.Aspect.RETRYABLE,e6.Aspect.WRITE_OPERATION]);e6.defineAspects(U3,[e6.Aspect.WRITE_OPERATION])});var R3=V((IM)=>{var PJ=function(J,Z,$){if(J==null||typeof J!=="object")throw new l0.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(Z==null||typeof Z!=="object")throw new l0.MongoInvalidArgumentError("Document must be a valid JavaScript object");const X={q:J,u:Z};if(typeof $.upsert==="boolean")X.upsert=$.upsert;if($.multi)X.multi=$.multi;if($.hint)X.hint=$.hint;if($.arrayFilters)X.arrayFilters=$.arrayFilters;if($.collation)X.collation=$.collation;return X};Object.defineProperty(IM,"__esModule",{value:!0});IM.makeUpdateStatement=IM.ReplaceOneOperation=IM.UpdateManyOperation=IM.UpdateOneOperation=IM.UpdateOperation=void 0;var l0=E(),j3=y(),mf=T1(),b1=o();class Y7 extends mf.CommandOperation{constructor(J,Z,$){super(void 0,$);this.options=$,this.ns=J,this.statements=Z}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((J)=>J.multi==null||J.multi===!1)}async execute(J,Z){const $=this.options??{},X=typeof $.ordered==="boolean"?$.ordered:!0,Y={update:this.ns.collection,updates:this.statements,ordered:X};if(typeof $.bypassDocumentValidation==="boolean")Y.bypassDocumentValidation=$.bypassDocumentValidation;if($.let)Y.let=$.let;if($.comment!==void 0)Y.comment=$.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((K)=>K.hint))throw new l0.MongoCompatibilityError("hint is not supported with unacknowledged writes")}return super.executeCommand(J,Z,Y)}}IM.UpdateOperation=Y7;class A3 extends Y7{constructor(J,Z,$,X){super(J.s.namespace,[PJ(Z,$,{...X,multi:!1})],X);if(!j3.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain!=null)return $;if($.code)throw new l0.MongoServerError($);if($.writeErrors)throw new l0.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,modifiedCount:$.nModified??$.n,upsertedId:Array.isArray($.upserted)&&$.upserted.length>0?$.upserted[0]._id:null,upsertedCount:Array.isArray($.upserted)&&$.upserted.length?$.upserted.length:0,matchedCount:Array.isArray($.upserted)&&$.upserted.length>0?0:$.n}}}IM.UpdateOneOperation=A3;class L3 extends Y7{constructor(J,Z,$,X){super(J.s.namespace,[PJ(Z,$,{...X,multi:!0})],X);if(!j3.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain!=null)return $;if($.code)throw new l0.MongoServerError($);if($.writeErrors)throw new l0.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,modifiedCount:$.nModified??$.n,upsertedId:Array.isArray($.upserted)&&$.upserted.length>0?$.upserted[0]._id:null,upsertedCount:Array.isArray($.upserted)&&$.upserted.length?$.upserted.length:0,matchedCount:Array.isArray($.upserted)&&$.upserted.length>0?0:$.n}}}IM.UpdateManyOperation=L3;class w3 extends Y7{constructor(J,Z,$,X){super(J.s.namespace,[PJ(Z,$,{...X,multi:!1})],X);if(j3.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain!=null)return $;if($.code)throw new l0.MongoServerError($);if($.writeErrors)throw new l0.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,modifiedCount:$.nModified??$.n,upsertedId:Array.isArray($.upserted)&&$.upserted.length>0?$.upserted[0]._id:null,upsertedCount:Array.isArray($.upserted)&&$.upserted.length?$.upserted.length:0,matchedCount:Array.isArray($.upserted)&&$.upserted.length>0?0:$.n}}}IM.ReplaceOneOperation=w3;IM.makeUpdateStatement=PJ;b1.defineAspects(Y7,[b1.Aspect.RETRYABLE,b1.Aspect.WRITE_OPERATION,b1.Aspect.SKIP_COLLATION]);b1.defineAspects(A3,[b1.Aspect.RETRYABLE,b1.Aspect.WRITE_OPERATION,b1.Aspect.EXPLAINABLE,b1.Aspect.SKIP_COLLATION]);b1.defineAspects(L3,[b1.Aspect.WRITE_OPERATION,b1.Aspect.EXPLAINABLE,b1.Aspect.SKIP_COLLATION]);b1.defineAspects(w3,[b1.Aspect.RETRYABLE,b1.Aspect.WRITE_OPERATION,b1.Aspect.SKIP_COLLATION])});var f5=V((kM)=>{var BJ=function(J,Z,$,X){if($)X=$;else if(X&&X.result)X=X.result;if(X==null)return;if(X.ok===0&&Z.ok===1){Z.ok=0;const Q={index:0,code:X.code||0,errmsg:X.message,errInfo:X.errInfo,op:J.operations[0]};Z.writeErrors.push(new NJ(Q));return}else if(X.ok===0&&Z.ok===0)return;if(OM(J)&&X.n)Z.nInserted=Z.nInserted+X.n;if(P3(J)&&X.n)Z.nRemoved=Z.nRemoved+X.n;let Y=0;if(Array.isArray(X.upserted)){Y=X.upserted.length;for(let Q=0;Q<X.upserted.length;Q++)Z.upserted.push({index:X.upserted[Q].index+J.originalZeroIndex,_id:X.upserted[Q]._id})}else if(X.upserted)Y=1,Z.upserted.push({index:J.originalZeroIndex,_id:X.upserted});if(D3(J)&&X.n){const Q=X.nModified;if(Z.nUpserted=Z.nUpserted+Y,Z.nMatched=Z.nMatched+(X.n-Y),typeof Q==="number")Z.nModified=Z.nModified+Q;else Z.nModified=0}if(Array.isArray(X.writeErrors))for(let Q=0;Q<X.writeErrors.length;Q++){const K={index:J.originalIndexes[X.writeErrors[Q].index],code:X.writeErrors[Q].code,errmsg:X.writeErrors[Q].errmsg,errInfo:X.writeErrors[Q].errInfo,op:J.operations[X.writeErrors[Q].index]};Z.writeErrors.push(new NJ(K))}if(X.writeConcernError)Z.writeConcernErrors.push(new _5(X.writeConcernError))},hM=function(J,Z,$){if(J.s.batches.length===0)return $(void 0,new k8(J.s.bulkResult,J.isOrdered));const X=J.s.batches.shift();function Y(K,G){if(K&&"message"in K&&!(K instanceof y1.MongoWriteConcernError))return $(new Q7(K,new k8(J.s.bulkResult,J.isOrdered)));if(K instanceof y1.MongoWriteConcernError)return nf(X,J.s.bulkResult,J.isOrdered,K,$);BJ(X,J.s.bulkResult,K,G);const F=new k8(J.s.bulkResult,J.isOrdered);if(J.handleWriteError($,F))return;hM(J,Z,$)}const Q=O8.resolveOptions(J,{...Z,ordered:J.isOrdered});if(Q.bypassDocumentValidation!==!0)delete Q.bypassDocumentValidation;if(J.operationId)Y.operationId=J.operationId;if(J.s.bypassDocumentValidation===!0)Q.bypassDocumentValidation=!0;if(J.s.checkKeys===!1)Q.checkKeys=!1;if(Q.retryWrites){if(D3(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.multi);if(P3(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.limit===0)}try{if(OM(X))IJ.executeOperation(J.s.collection.client,new af.InsertOperation(J.s.namespace,X.operations,Q),Y);else if(D3(X))IJ.executeOperation(J.s.collection.client,new A4.UpdateOperation(J.s.namespace,X.operations,Q),Y);else if(P3(X))IJ.executeOperation(J.s.collection.client,new y5.DeleteOperation(J.s.namespace,X.operations,Q),Y)}catch(K){K.ok=0,BJ(X,J.s.bulkResult,K,void 0),$()}},nf=function(J,Z,$,X,Y){BJ(J,Z,void 0,X.result),Y(new Q7({message:X.result?.writeConcernError.errmsg,code:X.result?.writeConcernError.result},new k8(Z,$)))},EM=function(J){if(typeof J.s.options.forceServerObjectId==="boolean")return J.s.options.forceServerObjectId;if(typeof J.s.collection.s.db.options?.forceServerObjectId==="boolean")return J.s.collection.s.db.options?.forceServerObjectId;return!1},OM=function(J){return J.batchType===kM.BatchType.INSERT},D3=function(J){return J.batchType===kM.BatchType.UPDATE},P3=function(J){return J.batchType===kM.BatchType.DELETE},k5=function(J){let{currentOp:Z}=J.s;if(J.s.currentOp=void 0,!Z)Z={};return Z};Object.defineProperty(kM,"__esModule",{value:!0});kM.BulkOperationBase=kM.FindOperators=kM.MongoBulkWriteError=kM.mergeBatchResults=kM.WriteError=kM.WriteConcernError=kM.BulkWriteResult=kM.Batch=kM.BatchType=void 0;var lf=import.meta.require("util"),TJ=H1(),y1=E(),y5=F3(),IJ=L0(),af=M3(),sf=o(),A4=R3(),O8=y(),BM=A0(),O5=Symbol("serverError");kM.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3});class CM{constructor(J,Z){this.originalZeroIndex=Z,this.currentIndex=0,this.originalIndexes=[],this.batchType=J,this.operations=[],this.size=0,this.sizeBytes=0}}kM.Batch=CM;class k8{static generateIdMap(J){const Z={};for(let $ of J)Z[$.index]=$._id;return Z}constructor(J,Z){this.result=J,this.insertedCount=this.result.nInserted??0,this.matchedCount=this.result.nMatched??0,this.modifiedCount=this.result.nModified??0,this.deletedCount=this.result.nRemoved??0,this.upsertedCount=this.result.upserted.length??0,this.upsertedIds=k8.generateIdMap(this.result.upserted),this.insertedIds=k8.generateIdMap(this.getSuccessfullyInsertedIds(J,Z)),Object.defineProperty(this,"result",{value:this.result,enumerable:!1})}get ok(){return this.result.ok}getSuccessfullyInsertedIds(J,Z){if(J.writeErrors.length===0)return J.insertedIds;if(Z)return J.insertedIds.slice(0,J.writeErrors[0].index);return J.insertedIds.filter(({index:$})=>!J.writeErrors.some((X)=>$===X.index))}getUpsertedIdAt(J){return this.result.upserted[J]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(J){return J<this.result.writeErrors.length?this.result.writeErrors[J]:void 0}getWriteErrors(){return this.result.writeErrors}getWriteConcernError(){if(this.result.writeConcernErrors.length===0)return;else if(this.result.writeConcernErrors.length===1)return this.result.writeConcernErrors[0];else{let J="";for(let Z=0;Z<this.result.writeConcernErrors.length;Z++){const $=this.result.writeConcernErrors[Z];if(J=J+$.errmsg,Z===0)J=J+" and "}return new _5({errmsg:J,code:y1.MONGODB_ERROR_CODES.WriteConcernFailed})}}toString(){return`BulkWriteResult(${this.result})`}isOk(){return this.result.ok===1}}kM.BulkWriteResult=k8;class _5{constructor(J){this[O5]=J}get code(){return this[O5].code}get errmsg(){return this[O5].errmsg}get errInfo(){return this[O5].errInfo}toJSON(){return this[O5]}toString(){return`WriteConcernError(${this.errmsg})`}}kM.WriteConcernError=_5;class NJ{constructor(J){this.err=J}get code(){return this.err.code}get index(){return this.err.index}get errmsg(){return this.err.errmsg}get errInfo(){return this.err.errInfo}getOperation(){return this.err.op}toJSON(){return{code:this.err.code,index:this.err.index,errmsg:this.err.errmsg,op:this.err.op}}toString(){return`WriteError(${JSON.stringify(this.toJSON())})`}}kM.WriteError=NJ;kM.mergeBatchResults=BJ;class Q7 extends y1.MongoServerError{constructor(J,Z){super(J);if(this.writeErrors=[],J instanceof _5)this.err=J;else if(!(J instanceof Error))this.message=J.message,this.code=J.code,this.writeErrors=J.writeErrors??[];this.result=Z,Object.assign(this,J)}get name(){return"MongoBulkWriteError"}get insertedCount(){return this.result.insertedCount}get matchedCount(){return this.result.matchedCount}get modifiedCount(){return this.result.modifiedCount}get deletedCount(){return this.result.deletedCount}get upsertedCount(){return this.result.upsertedCount}get insertedIds(){return this.result.insertedIds}get upsertedIds(){return this.result.upsertedIds}}kM.MongoBulkWriteError=Q7;class T3{constructor(J){this.bulkOperation=J}update(J){const Z=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(kM.BatchType.UPDATE,A4.makeUpdateStatement(Z.selector,J,{...Z,multi:!0}))}updateOne(J){if(!O8.hasAtomicOperators(J))throw new y1.MongoInvalidArgumentError("Update document requires atomic operators");const Z=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(kM.BatchType.UPDATE,A4.makeUpdateStatement(Z.selector,J,{...Z,multi:!1}))}replaceOne(J){if(O8.hasAtomicOperators(J))throw new y1.MongoInvalidArgumentError("Replacement document must not use atomic operators");const Z=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(kM.BatchType.UPDATE,A4.makeUpdateStatement(Z.selector,J,{...Z,multi:!1}))}deleteOne(){const J=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(kM.BatchType.DELETE,y5.makeDeleteStatement(J.selector,{...J,limit:1}))}delete(){const J=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(kM.BatchType.DELETE,y5.makeDeleteStatement(J.selector,{...J,limit:0}))}upsert(){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.upsert=!0,this}collation(J){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.collation=J,this}arrayFilters(J){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.arrayFilters=J,this}hint(J){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.hint=J,this}}kM.FindOperators=T3;var tf=lf.promisify(hM);class SM extends sf.AbstractOperation{constructor(J,Z){super(Z);this.bulkOperation=J}execute(J,Z){if(this.options.session==null)this.options.session=Z;return tf(this.bulkOperation,this.options)}}class I3{constructor(J,Z,$){this.isOrdered=$;const X=O8.getTopology(J);Z=Z==null?{}:Z;const Y=J.s.namespace,Q=!1,K=void 0,G=X.lastHello(),F=!!(X.s.options&&X.s.options.autoEncrypter),q=G&&G.maxBsonObjectSize?G.maxBsonObjectSize:16777216,W=F?2097152:q,H=G&&G.maxWriteBatchSize?G.maxWriteBatchSize:1000,U=(H-1).toString(10).length+2;let j=Object.assign({},Z);j=O8.applyRetryableWrites(j,J.s.db);const z={ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]};if(this.s={bulkResult:z,currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:BM.WriteConcern.fromOptions(Z),maxBsonObjectSize:q,maxBatchSizeBytes:W,maxWriteBatchSize:H,maxKeySize:U,namespace:Y,topology:X,options:j,bsonOptions:TJ.resolveBSONOptions(Z),currentOp:K,executed:Q,collection:J,err:void 0,checkKeys:typeof Z.checkKeys==="boolean"?Z.checkKeys:!1},Z.bypassDocumentValidation===!0)this.s.bypassDocumentValidation=!0}insert(J){if(J._id==null&&!EM(this))J._id=new TJ.ObjectId;return this.addToOperationsList(kM.BatchType.INSERT,J)}find(J){if(!J)throw new y1.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:J},new T3(this)}raw(J){if(J==null||typeof J!=="object")throw new y1.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in J){const Z=EM(this);if(J.insertOne&&J.insertOne.document==null){if(Z!==!0&&J.insertOne._id==null)J.insertOne._id=new TJ.ObjectId;return this.addToOperationsList(kM.BatchType.INSERT,J.insertOne)}if(Z!==!0&&J.insertOne.document._id==null)J.insertOne.document._id=new TJ.ObjectId;return this.addToOperationsList(kM.BatchType.INSERT,J.insertOne.document)}if("replaceOne"in J||"updateOne"in J||"updateMany"in J){if("replaceOne"in J){if("q"in J.replaceOne)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");const Z=A4.makeUpdateStatement(J.replaceOne.filter,J.replaceOne.replacement,{...J.replaceOne,multi:!1});if(O8.hasAtomicOperators(Z.u))throw new y1.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(kM.BatchType.UPDATE,Z)}if("updateOne"in J){if("q"in J.updateOne)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");const Z=A4.makeUpdateStatement(J.updateOne.filter,J.updateOne.update,{...J.updateOne,multi:!1});if(!O8.hasAtomicOperators(Z.u))throw new y1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(kM.BatchType.UPDATE,Z)}if("updateMany"in J){if("q"in J.updateMany)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");const Z=A4.makeUpdateStatement(J.updateMany.filter,J.updateMany.update,{...J.updateMany,multi:!0});if(!O8.hasAtomicOperators(Z.u))throw new y1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(kM.BatchType.UPDATE,Z)}}if("deleteOne"in J){if("q"in J.deleteOne)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(kM.BatchType.DELETE,y5.makeDeleteStatement(J.deleteOne.filter,{...J.deleteOne,limit:1}))}if("deleteMany"in J){if("q"in J.deleteMany)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(kM.BatchType.DELETE,y5.makeDeleteStatement(J.deleteMany.filter,{...J.deleteMany,limit:0}))}throw new y1.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const J=[...this.s.batches];if(this.isOrdered){if(this.s.currentBatch)J.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)J.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)J.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)J.push(this.s.currentRemoveBatch)}return J}async execute(J={}){if(this.s.executed)throw new y1.MongoBatchReExecutionError;const Z=BM.WriteConcern.fromOptions(J);if(Z)this.s.writeConcern=Z;if(this.isOrdered){if(this.s.currentBatch)this.s.batches.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)this.s.batches.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)this.s.batches.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)this.s.batches.push(this.s.currentRemoveBatch)}if(this.s.batches.length===0)throw new y1.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");this.s.executed=!0;const $={...this.s.options,...J},X=new SM(this,$);return IJ.executeOperation(this.s.collection.client,X)}handleWriteError(J,Z){if(this.s.bulkResult.writeErrors.length>0){const X=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";return J(new Q7({message:X,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},Z)),!0}const $=Z.getWriteConcernError();if($)return J(new Q7($,Z)),!0;return!1}}kM.BulkOperationBase=I3;Object.defineProperty(I3.prototype,"length",{enumerable:!0,get(){return this.s.currentIndex}})});var N3=V((vM)=>{Object.defineProperty(vM,"__esModule",{value:!0});vM.OrderedBulkOperation=void 0;var Yv=H1(),_M=E(),EJ=f5();class fM extends EJ.BulkOperationBase{constructor(J,Z){super(J,Z,!0)}addToOperationsList(J,Z){const $=Yv.calculateObjectSize(Z,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new _M.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch==null)this.s.currentBatch=new EJ.Batch(J,this.s.currentIndex);const X=this.s.maxKeySize;if(this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==J)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new EJ.Batch(J,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0;if(J===EJ.BatchType.INSERT)this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:Z._id});if(Array.isArray(Z))throw new _M.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(Z),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=X+$,this.s.currentIndex+=1,this}}vM.OrderedBulkOperation=fM});var B3=V((mM)=>{Object.defineProperty(mM,"__esModule",{value:!0});mM.UnorderedBulkOperation=void 0;var Qv=H1(),bM=E(),J8=f5();class gM extends J8.BulkOperationBase{constructor(J,Z){super(J,Z,!1)}handleWriteError(J,Z){if(this.s.batches.length)return!1;return super.handleWriteError(J,Z)}addToOperationsList(J,Z){const $=Qv.calculateObjectSize(Z,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new bM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch=void 0,J===J8.BatchType.INSERT)this.s.currentBatch=this.s.currentInsertBatch;else if(J===J8.BatchType.UPDATE)this.s.currentBatch=this.s.currentUpdateBatch;else if(J===J8.BatchType.DELETE)this.s.currentBatch=this.s.currentRemoveBatch;const X=this.s.maxKeySize;if(this.s.currentBatch==null)this.s.currentBatch=new J8.Batch(J,this.s.currentIndex);if(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==J)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new J8.Batch(J,this.s.currentIndex);if(Array.isArray(Z))throw new bM.MongoInvalidArgumentError("Operation passed in cannot be an Array");if(this.s.currentBatch.operations.push(Z),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,J===J8.BatchType.INSERT)this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:Z._id});else if(J===J8.BatchType.UPDATE)this.s.currentUpdateBatch=this.s.currentBatch;else if(J===J8.BatchType.DELETE)this.s.currentRemoveBatch=this.s.currentBatch;return this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=X+$,this}}mM.UnorderedBulkOperation=gM});var CJ=V((cM)=>{Object.defineProperty(cM,"__esModule",{value:!0});cM.AggregateOperation=cM.DB_AGGREGATE_COLLECTION=void 0;var dM=E(),Kv=y(),Gv=A0(),Fv=T1(),v5=o();cM.DB_AGGREGATE_COLLECTION=1;var qv=8;class E3 extends Fv.CommandOperation{constructor(J,Z,$){super(void 0,{...$,dbName:J.db});if(this.options={...$},this.target=J.collection||cM.DB_AGGREGATE_COLLECTION,this.pipeline=Z,this.hasWriteStage=!1,typeof $?.out==="string")this.pipeline=this.pipeline.concat({$out:$.out}),this.hasWriteStage=!0;else if(Z.length>0){const X=Z[Z.length-1];if(X.$out||X.$merge)this.hasWriteStage=!0}if(this.hasWriteStage)this.trySecondaryWrite=!0;else delete this.options.writeConcern;if(this.explain&&this.writeConcern)throw new dM.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if($?.cursor!=null&&typeof $.cursor!=="object")throw new dM.MongoInvalidArgumentError("Cursor options must be an object")}get canRetryRead(){return!this.hasWriteStage}addToPipeline(J){this.pipeline.push(J)}async execute(J,Z){const $=this.options,X=Kv.maxWireVersion(J),Y={aggregate:this.target,pipeline:this.pipeline};if(this.hasWriteStage&&X<qv)this.readConcern=void 0;if(this.hasWriteStage&&this.writeConcern)Gv.WriteConcern.apply(Y,this.writeConcern);if($.bypassDocumentValidation===!0)Y.bypassDocumentValidation=$.bypassDocumentValidation;if(typeof $.allowDiskUse==="boolean")Y.allowDiskUse=$.allowDiskUse;if($.hint)Y.hint=$.hint;if($.let)Y.let=$.let;if($.comment!==void 0)Y.comment=$.comment;if(Y.cursor=$.cursor||{},$.batchSize&&!this.hasWriteStage)Y.cursor.batchSize=$.batchSize;return super.executeCommand(J,Z,Y)}}cM.AggregateOperation=E3;v5.defineAspects(E3,[v5.Aspect.READ_OPERATION,v5.Aspect.RETRYABLE,v5.Aspect.EXPLAINABLE,v5.Aspect.CURSOR_CREATING])});var C0=V((iM)=>{Object.defineProperty(iM,"__esModule",{value:!0});iM.CancellationToken=iM.TypedEventEmitter=void 0;var Wv=import.meta.require("events");class C3 extends Wv.EventEmitter{emitAndLog(J,...Z){if(this.emit(J,...Z),this.component)this.mongoLogger?.debug(this.component,Z[0])}}iM.TypedEventEmitter=C3;class aM extends C3{}iM.CancellationToken=aM});var O3=V((nM)=>{Object.defineProperty(nM,"__esModule",{value:!0});nM.GetMoreOperation=void 0;var h3=E(),Vv=y(),hJ=o();class S3 extends hJ.AbstractOperation{constructor(J,Z,$,X){super(X);this.options=X,this.ns=J,this.cursorId=Z,this.server=$}async execute(J,Z){if(J!==this.server)throw new h3.MongoRuntimeError("Getmore must run on the same server operation began on");if(this.cursorId==null||this.cursorId.isZero())throw new h3.MongoRuntimeError("Unable to iterate cursor with no id");const $=this.ns.collection;if($==null)throw new h3.MongoRuntimeError("A collection name must be determined before getMore");const X={getMore:this.cursorId,collection:$};if(typeof this.options.batchSize==="number")X.batchSize=Math.abs(this.options.batchSize);if(typeof this.options.maxAwaitTimeMS==="number")X.maxTimeMS=this.options.maxAwaitTimeMS;if(this.options.comment!==void 0&&Vv.maxWireVersion(J)>=9)X.comment=this.options.comment;const Y={returnFieldSelector:null,documentsReturnedIn:"nextBatch",...this.options};return J.commandAsync(this.ns,X,Y)}}nM.GetMoreOperation=S3;hJ.defineAspects(S3,[hJ.Aspect.READ_OPERATION,hJ.Aspect.MUST_SELECT_SAME_SERVER])});var Jj=V((oM)=>{Object.defineProperty(oM,"__esModule",{value:!0});oM.KillCursorsOperation=void 0;var rM=E(),k3=o();class y3 extends k3.AbstractOperation{constructor(J,Z,$,X){super(X);this.ns=Z,this.cursorId=J,this.server=$}async execute(J,Z){if(J!==this.server)throw new rM.MongoRuntimeError("Killcursor must run on the same server operation began on");const $=this.ns.collection;if($==null)throw new rM.MongoRuntimeError("A collection name must be determined before killCursors");const X={killCursors:$,cursors:[this.cursorId]};try{await J.commandAsync(this.ns,X,{session:Z})}catch{}}}oM.KillCursorsOperation=y3;k3.defineAspects(y3,[k3.Aspect.MUST_SELECT_SAME_SERVER])});var _3=V((Zj)=>{Object.defineProperty(Zj,"__esModule",{value:!0});Zj.ConnectionPoolMetrics=void 0;class Z8{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}markPinned(J){if(J===Z8.TXN)this.txnConnections+=1;else if(J===Z8.CURSOR)this.cursorConnections+=1;else this.otherConnections+=1}markUnpinned(J){if(J===Z8.TXN)this.txnConnections-=1;else if(J===Z8.CURSOR)this.cursorConnections-=1;else this.otherConnections-=1}info(J){return"Timed out while checking out a connection from connection pool: "+`maxPoolSize: ${J}, `+`connections in use by cursors: ${this.cursorConnections}, `+`connections in use by transactions: ${this.txnConnections}, `+`connections in use by other operations: ${this.otherConnections}`}reset(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}}Z8.TXN="txn";Z8.CURSOR="cursor";Z8.OTHER="other";Zj.ConnectionPoolMetrics=Z8});var x5=V((Kj)=>{var Yj=function(J,Z){if(Z?.loadBalanced)return B1.ServerType.LoadBalancer;if(!J||!J.ok)return B1.ServerType.Unknown;if(J.isreplicaset)return B1.ServerType.RSGhost;if(J.msg&&J.msg==="isdbgrid")return B1.ServerType.Mongos;if(J.setName)if(J.hidden)return B1.ServerType.RSOther;else if(J.isWritablePrimary)return B1.ServerType.RSPrimary;else if(J.secondary)return B1.ServerType.RSSecondary;else if(J.arbiterOnly)return B1.ServerType.RSArbiter;else return B1.ServerType.RSOther;return B1.ServerType.Standalone},jv=function(J,Z){const $=Object.keys(J),X=Object.keys(Z);return $.length===X.length&&$.every((Y)=>Z[Y]===J[Y])},Qj=function(J,Z){if(J==null||Z==null)return-1;if(!J.processId.equals(Z.processId))return-1;const $=SJ.Long.isLong(J.counter)?J.counter:SJ.Long.fromNumber(J.counter),X=SJ.Long.isLong(Z.counter)?Z.counter:SJ.Long.fromNumber(Z.counter);return $.compare(X)};Object.defineProperty(Kj,"__esModule",{value:!0});Kj.compareTopologyVersion=Kj.parseServerType=Kj.ServerDescription=void 0;var SJ=H1(),zv=E(),K7=y(),B1=d0(),Uv=new Set([B1.ServerType.RSPrimary,B1.ServerType.Standalone,B1.ServerType.Mongos,B1.ServerType.LoadBalancer]),Mv=new Set([B1.ServerType.RSPrimary,B1.ServerType.RSSecondary,B1.ServerType.Mongos,B1.ServerType.Standalone,B1.ServerType.LoadBalancer]);class Xj{constructor(J,Z,$={}){if(J==null||J==="")throw new zv.MongoRuntimeError("ServerDescription must be provided with a non-empty address");this.address=typeof J==="string"?K7.HostAddress.fromString(J).toString():J.toString(),this.type=Yj(Z,$),this.hosts=Z?.hosts?.map((X)=>X.toLowerCase())??[],this.passives=Z?.passives?.map((X)=>X.toLowerCase())??[],this.arbiters=Z?.arbiters?.map((X)=>X.toLowerCase())??[],this.tags=Z?.tags??{},this.minWireVersion=Z?.minWireVersion??0,this.maxWireVersion=Z?.maxWireVersion??0,this.roundTripTime=$?.roundTripTime??-1,this.lastUpdateTime=K7.now(),this.lastWriteDate=Z?.lastWrite?.lastWriteDate??0,this.error=$.error??null,this.topologyVersion=this.error?.topologyVersion??Z?.topologyVersion??null,this.setName=Z?.setName??null,this.setVersion=Z?.setVersion??null,this.electionId=Z?.electionId??null,this.logicalSessionTimeoutMinutes=Z?.logicalSessionTimeoutMinutes??null,this.primary=Z?.primary??null,this.me=Z?.me?.toLowerCase()??null,this.$clusterTime=Z?.$clusterTime??null}get hostAddress(){return K7.HostAddress.fromString(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===B1.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return Mv.has(this.type)}get isWritable(){return Uv.has(this.type)}get host(){const J=`:${this.port}`.length;return this.address.slice(0,-J)}get port(){const J=this.address.split(":").pop();return J?Number.parseInt(J,10):27017}equals(J){const Z=this.topologyVersion===J?.topologyVersion||Qj(this.topologyVersion,J?.topologyVersion)===0,$=this.electionId!=null&&J?.electionId!=null?K7.compareObjectId(this.electionId,J.electionId)===0:this.electionId===J?.electionId;return J!=null&&K7.errorStrictEqual(this.error,J.error)&&this.type===J.type&&this.minWireVersion===J.minWireVersion&&K7.arrayStrictEqual(this.hosts,J.hosts)&&jv(this.tags,J.tags)&&this.setName===J.setName&&this.setVersion===J.setVersion&&$&&this.primary===J.primary&&this.logicalSessionTimeoutMinutes===J.logicalSessionTimeoutMinutes&&Z}}Kj.ServerDescription=Xj;Kj.parseServerType=Yj;Kj.compareTopologyVersion=Qj});var v3=V((zj)=>{var Tv=function(J){switch(J){case p.ServerType.Standalone:return p.TopologyType.Single;case p.ServerType.Mongos:return p.TopologyType.Sharded;case p.ServerType.RSPrimary:return p.TopologyType.ReplicaSetWithPrimary;case p.ServerType.RSOther:case p.ServerType.RSSecondary:return p.TopologyType.ReplicaSetNoPrimary;default:return p.TopologyType.Unknown}},Vj=function(J,Z,$=null,X=null,Y=null){if($=$||Z.setName,$!==Z.setName)return J.delete(Z.address),[L4(J),$,X,Y];if(Z.maxWireVersion>=17){const G=f3.compareObjectId(Y,Z.electionId),F=G===0,q=G===-1,W=(X??-1)<=(Z.setVersion??-1);if(q||F&&W)Y=Z.electionId,X=Z.setVersion;else return J.set(Z.address,new y8.ServerDescription(Z.address)),[L4(J),$,X,Y]}else{const G=Z.electionId?Z.electionId:null;if(Z.setVersion&&G){if(X&&Y){if(X>Z.setVersion||f3.compareObjectId(Y,G)>0)return J.set(Z.address,new y8.ServerDescription(Z.address)),[L4(J),$,X,Y]}Y=Z.electionId}if(Z.setVersion!=null&&(X==null||Z.setVersion>X))X=Z.setVersion}for(let[G,F]of J)if(F.type===p.ServerType.RSPrimary&&F.address!==Z.address){J.set(G,new y8.ServerDescription(F.address));break}Z.allHosts.forEach((G)=>{if(!J.has(G))J.set(G,new y8.ServerDescription(G))});const Q=Array.from(J.keys()),K=Z.allHosts;return Q.filter((G)=>K.indexOf(G)===-1).forEach((G)=>{J.delete(G)}),[L4(J),$,X,Y]},Iv=function(J,Z,$=null){if($==null)throw new wv.MongoRuntimeError('Argument "setName" is required if connected to a replica set');if($!==Z.setName||Z.me&&Z.address!==Z.me)J.delete(Z.address);return L4(J)},Nv=function(J,Z,$=null){const X=p.TopologyType.ReplicaSetNoPrimary;if($=$??Z.setName,$!==Z.setName)return J.delete(Z.address),[X,$];if(Z.allHosts.forEach((Y)=>{if(!J.has(Y))J.set(Y,new y8.ServerDescription(Y))}),Z.me&&Z.address!==Z.me)J.delete(Z.address);return[X,$]},L4=function(J){for(let Z of J.values())if(Z.type===p.ServerType.RSPrimary)return p.TopologyType.ReplicaSetWithPrimary;return p.TopologyType.ReplicaSetNoPrimary};Object.defineProperty(zj,"__esModule",{value:!0});zj.TopologyDescription=void 0;var OJ=h8(),wv=E(),f3=y(),p=d0(),y8=x5(),Rv=OJ.MIN_SUPPORTED_SERVER_VERSION,Dv=OJ.MAX_SUPPORTED_SERVER_VERSION,Fj=OJ.MIN_SUPPORTED_WIRE_VERSION,qj=OJ.MAX_SUPPORTED_WIRE_VERSION,Pv=new Set([p.ServerType.Mongos,p.ServerType.Unknown]),Wj=new Set([p.ServerType.Mongos,p.ServerType.Standalone]),Hj=new Set([p.ServerType.RSSecondary,p.ServerType.RSArbiter,p.ServerType.RSOther]);class b5{constructor(J,Z=null,$=null,X=null,Y=null,Q=null,K=null){K=K??{},this.type=J??p.TopologyType.Unknown,this.servers=Z??new Map,this.stale=!1,this.compatible=!0,this.heartbeatFrequencyMS=K.heartbeatFrequencyMS??0,this.localThresholdMS=K.localThresholdMS??15,this.setName=$??null,this.maxElectionId=Y??null,this.maxSetVersion=X??null,this.commonWireVersion=Q??0;for(let G of this.servers.values()){if(G.type===p.ServerType.Unknown||G.type===p.ServerType.LoadBalancer)continue;if(G.minWireVersion>qj)this.compatible=!1,this.compatibilityError=`Server at ${G.address} requires wire version ${G.minWireVersion}, but this version of the driver only supports up to ${qj} (MongoDB ${Dv})`;if(G.maxWireVersion<Fj){this.compatible=!1,this.compatibilityError=`Server at ${G.address} reports wire version ${G.maxWireVersion}, but this version of the driver requires at least ${Fj} (MongoDB ${Rv}).`;break}}this.logicalSessionTimeoutMinutes=null;for(let[,G]of this.servers)if(G.isReadable){if(G.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=null;break}if(this.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=G.logicalSessionTimeoutMinutes;continue}this.logicalSessionTimeoutMinutes=Math.min(this.logicalSessionTimeoutMinutes,G.logicalSessionTimeoutMinutes)}}updateFromSrvPollingEvent(J,Z=0){const $=J.hostnames(),X=new Set(this.servers.keys()),Y=new Set($),Q=new Set;for(let G of X)if(Y.delete(G),!$.has(G))Q.add(G);if(Y.size===0&&Q.size===0)return this;const K=new Map(this.servers);for(let G of Q)K.delete(G);if(Y.size>0){if(Z===0)for(let G of Y)K.set(G,new y8.ServerDescription(G));else if(K.size<Z){const G=f3.shuffle(Y,Z-K.size);for(let F of G)K.set(F,new y8.ServerDescription(F))}}return new b5(this.type,K,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(J){const Z=J.address;let{type:$,setName:X,maxSetVersion:Y,maxElectionId:Q,commonWireVersion:K}=this;const G=J.type,F=new Map(this.servers);if(J.maxWireVersion!==0)if(K==null)K=J.maxWireVersion;else K=Math.min(K,J.maxWireVersion);if(typeof J.setName==="string"&&typeof X==="string"&&J.setName!==X)if($===p.TopologyType.Single)J=new y8.ServerDescription(Z);else F.delete(Z);if(F.set(Z,J),$===p.TopologyType.Single)return new b5(p.TopologyType.Single,F,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if($===p.TopologyType.Unknown)if(G===p.ServerType.Standalone&&this.servers.size!==1)F.delete(Z);else $=Tv(G);if($===p.TopologyType.Sharded){if(!Pv.has(G))F.delete(Z)}if($===p.TopologyType.ReplicaSetNoPrimary){if(Wj.has(G))F.delete(Z);if(G===p.ServerType.RSPrimary){const q=Vj(F,J,X,Y,Q);$=q[0],X=q[1],Y=q[2],Q=q[3]}else if(Hj.has(G)){const q=Nv(F,J,X);$=q[0],X=q[1]}}if($===p.TopologyType.ReplicaSetWithPrimary)if(Wj.has(G))F.delete(Z),$=L4(F);else if(G===p.ServerType.RSPrimary){const q=Vj(F,J,X,Y,Q);$=q[0],X=q[1],Y=q[2],Q=q[3]}else if(Hj.has(G))$=Iv(F,J,X);else $=L4(F);return new b5($,F,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){const J=Array.from(this.servers.values()).filter((Z)=>Z.error);if(J.length>0)return J[0].error;return null}get hasKnownServers(){return Array.from(this.servers.values()).some((J)=>J.type!==p.ServerType.Unknown)}get hasDataBearingServers(){return Array.from(this.servers.values()).some((J)=>J.isDataBearing)}hasServer(J){return this.servers.has(J)}}zj.TopologyDescription=b5});var b3=V((jj)=>{var Cv=function(J){let Z=J?.readPreference??x3.ReadPreference.primary;if(J?.readPreference)Z=J.readPreference;if(typeof Z==="string")Z=x3.ReadPreference.fromString(Z);if(!(Z instanceof x3.ReadPreference))throw new Bv.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return Z},hv=function(J){if(J==null)return!1;if(J.description&&J.description.type===Mj.ServerType.Mongos)return!0;if(J.description&&J.description instanceof Ev.TopologyDescription)return Array.from(J.description.servers.values()).some(($)=>$.type===Mj.ServerType.Mongos);return!1};Object.defineProperty(jj,"__esModule",{value:!0});jj.isSharded=jj.getReadPreference=void 0;var Bv=E(),x3=k1(),Mj=d0(),Ev=v3();jj.getReadPreference=Cv;jj.isSharded=hv});var g3=V((Rj)=>{var xv=function(J){return!!(J.commitTransaction||J.abortTransaction)};Object.defineProperty(Rj,"__esModule",{value:!0});Rj.isTransactionCommand=Rj.Transaction=Rj.TxnState=void 0;var Lj=E(),Ov=c0(),kv=k1(),yv=A0();Rj.TxnState=Object.freeze({NO_TRANSACTION:"NO_TRANSACTION",STARTING_TRANSACTION:"STARTING_TRANSACTION",TRANSACTION_IN_PROGRESS:"TRANSACTION_IN_PROGRESS",TRANSACTION_COMMITTED:"TRANSACTION_COMMITTED",TRANSACTION_COMMITTED_EMPTY:"TRANSACTION_COMMITTED_EMPTY",TRANSACTION_ABORTED:"TRANSACTION_ABORTED"});var _v={[Rj.TxnState.NO_TRANSACTION]:[Rj.TxnState.NO_TRANSACTION,Rj.TxnState.STARTING_TRANSACTION],[Rj.TxnState.STARTING_TRANSACTION]:[Rj.TxnState.TRANSACTION_IN_PROGRESS,Rj.TxnState.TRANSACTION_COMMITTED,Rj.TxnState.TRANSACTION_COMMITTED_EMPTY,Rj.TxnState.TRANSACTION_ABORTED],[Rj.TxnState.TRANSACTION_IN_PROGRESS]:[Rj.TxnState.TRANSACTION_IN_PROGRESS,Rj.TxnState.TRANSACTION_COMMITTED,Rj.TxnState.TRANSACTION_ABORTED],[Rj.TxnState.TRANSACTION_COMMITTED]:[Rj.TxnState.TRANSACTION_COMMITTED,Rj.TxnState.TRANSACTION_COMMITTED_EMPTY,Rj.TxnState.STARTING_TRANSACTION,Rj.TxnState.NO_TRANSACTION],[Rj.TxnState.TRANSACTION_ABORTED]:[Rj.TxnState.STARTING_TRANSACTION,Rj.TxnState.NO_TRANSACTION],[Rj.TxnState.TRANSACTION_COMMITTED_EMPTY]:[Rj.TxnState.TRANSACTION_COMMITTED_EMPTY,Rj.TxnState.NO_TRANSACTION]},fv=new Set([Rj.TxnState.STARTING_TRANSACTION,Rj.TxnState.TRANSACTION_IN_PROGRESS]),vv=new Set([Rj.TxnState.TRANSACTION_COMMITTED,Rj.TxnState.TRANSACTION_COMMITTED_EMPTY,Rj.TxnState.TRANSACTION_ABORTED]);class wj{constructor(J){J=J??{},this.state=Rj.TxnState.NO_TRANSACTION,this.options={};const Z=yv.WriteConcern.fromOptions(J);if(Z){if(Z.w===0)throw new Lj.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=Z}if(J.readConcern)this.options.readConcern=Ov.ReadConcern.fromOptions(J);if(J.readPreference)this.options.readPreference=kv.ReadPreference.fromOptions(J);if(J.maxCommitTimeMS)this.options.maxTimeMS=J.maxCommitTimeMS;this._pinnedServer=void 0,this._recoveryToken=void 0}get server(){return this._pinnedServer}get recoveryToken(){return this._recoveryToken}get isPinned(){return!!this.server}get isStarting(){return this.state===Rj.TxnState.STARTING_TRANSACTION}get isActive(){return fv.has(this.state)}get isCommitted(){return vv.has(this.state)}transition(J){const Z=_v[this.state];if(Z&&Z.includes(J)){if(this.state=J,this.state===Rj.TxnState.NO_TRANSACTION||this.state===Rj.TxnState.STARTING_TRANSACTION||this.state===Rj.TxnState.TRANSACTION_ABORTED)this.unpinServer();return}throw new Lj.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${J}]`)}pinServer(J){if(this.isActive)this._pinnedServer=J}unpinServer(){this._pinnedServer=void 0}}Rj.Transaction=wj;Rj.isTransactionCommand=xv});var m5=V((Oj)=>{var hj=function(J,Z){return F6.calculateDurationInMs(J)<Z},av=function(J){const Z=J instanceof x.MongoServerError&&J.codeName&&lv.has(J.codeName);return xJ(J)||!Z&&J.code!==x.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&J.code!==x.MONGODB_ERROR_CODES.UnknownReplWriteConcern},vJ=function(J,Z){const $=J[F7],X=Z?.error;if(J.inTransaction()&&X&&X instanceof x.MongoError&&X.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError))return;const Y=J.client.topology;if($&&Y!=null){const K=Array.from(Y.s.servers.values())[0];if(Z?.error==null||Z?.force){if(K.pool.checkIn($),$.emit(Ej.UNPINNED,J.transaction.state!==z1.TxnState.NO_TRANSACTION?yJ.ConnectionPoolMetrics.TXN:yJ.ConnectionPoolMetrics.CURSOR),Z?.forceClear)K.pool.clear({serviceId:$.serviceId})}J[F7]=void 0}},xJ=function(J){if(J==null||!(J instanceof x.MongoServerError))return!1;return J.code===x.MONGODB_ERROR_CODES.MaxTimeMSExpired||J.writeConcernError&&J.writeConcernError.code===x.MONGODB_ERROR_CODES.MaxTimeMSExpired},Sj=function(J,Z,$,X,Y){return J.commitTransaction().then(()=>X,(Q)=>{if(Q instanceof x.MongoError&&hj(Z,Cj)&&!xJ(Q)){if(Q.hasErrorLabel(x.MongoErrorLabel.UnknownTransactionCommitResult))return Sj(J,Z,$,X,Y);if(Q.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError))return d3(J,Z,$,Y)}throw Q})},sv=function(J){return iv.has(J.transaction.state)},d3=function(J,Z,$,X={}){J.startTransaction(X);let Y;try{Y=$(J)}catch(Q){Y=Promise.reject(Q)}if(!F6.isPromiseLike(Y))return J.abortTransaction().catch(()=>null),Promise.reject(new x.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise"));return Y.then((Q)=>{if(sv(J))return Q;return Sj(J,Z,$,Q,X)},(Q)=>{function K(G){if(G instanceof x.MongoError&&G.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError)&&hj(Z,Cj))return d3(J,Z,$,X);if(xJ(G))G.addErrorLabel(x.MongoErrorLabel.UnknownTransactionCommitResult);throw G}if(J.inTransaction())return J.abortTransaction().then(()=>K(Q));return K(Q)})},nv=function(J,Z,$){const X=J.transaction.state;if(X===z1.TxnState.NO_TRANSACTION){$(new x.MongoTransactionError("No transaction started"));return}if(Z==="commitTransaction"){if(X===z1.TxnState.STARTING_TRANSACTION||X===z1.TxnState.TRANSACTION_COMMITTED_EMPTY){J.transaction.transition(z1.TxnState.TRANSACTION_COMMITTED_EMPTY),$();return}if(X===z1.TxnState.TRANSACTION_ABORTED){$(new x.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"));return}}else{if(X===z1.TxnState.STARTING_TRANSACTION){J.transaction.transition(z1.TxnState.TRANSACTION_ABORTED),$();return}if(X===z1.TxnState.TRANSACTION_ABORTED){$(new x.MongoTransactionError("Cannot call abortTransaction twice"));return}if(X===z1.TxnState.TRANSACTION_COMMITTED||X===z1.TxnState.TRANSACTION_COMMITTED_EMPTY){$(new x.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"));return}}const Y={[Z]:1};let Q;if(J.transaction.options.writeConcern)Q=Object.assign({},J.transaction.options.writeConcern);else if(J.clientOptions&&J.clientOptions.writeConcern)Q={w:J.clientOptions.writeConcern.w};if(X===z1.TxnState.TRANSACTION_COMMITTED)Q=Object.assign({wtimeoutMS:1e4},Q,{w:"majority"});if(Q)cv.WriteConcern.apply(Y,Q);if(Z==="commitTransaction"&&J.transaction.options.maxTimeMS)Object.assign(Y,{maxTimeMS:J.transaction.options.maxTimeMS});function K(G){if(Z!=="commitTransaction"){if(J.transaction.transition(z1.TxnState.TRANSACTION_ABORTED),J.loadBalanced)vJ(J,{force:!1});return $()}if(J.transaction.transition(z1.TxnState.TRANSACTION_COMMITTED),G instanceof x.MongoError){if(x.isRetryableWriteError(G)||G instanceof x.MongoWriteConcernError||xJ(G)){if(av(G))G.addErrorLabel(x.MongoErrorLabel.UnknownTransactionCommitResult),J.unpin({error:G})}else if(G.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError))J.unpin({error:G})}$(G)}if(J.transaction.recoveryToken)Y.recoveryToken=J.transaction.recoveryToken;Pj.executeOperation(J.client,new Tj.RunAdminCommandOperation(Y,{session:J,readPreference:Ij.ReadPreference.primary,bypassPinningCheck:!0}),(G)=>{if(Y.abortTransaction)J.unpin();if(G instanceof x.MongoError&&x.isRetryableWriteError(G)){if(Y.commitTransaction)J.unpin({force:!0}),Y.writeConcern=Object.assign({wtimeout:1e4},Y.writeConcern,{w:"majority"});return Pj.executeOperation(J.client,new Tj.RunAdminCommandOperation(Y,{session:J,readPreference:Ij.ReadPreference.primary,bypassPinningCheck:!0}),K)}K(G)})},tv=function(J,Z,$){if(J.hasEnded)return new x.MongoExpiredSessionError;const X=J.serverSession;if(X==null)return new x.MongoRuntimeError("Unable to acquire server session");if($.writeConcern?.w===0){if(J&&J.explicit)return new x.MongoAPIError("Cannot have explicit session with unacknowledged writes");return}X.lastUse=F6.now(),Z.lsid=X.id;const Y=J.inTransaction()||z1.isTransactionCommand(Z);if(!!$.willRetryWrite||Y)X.txnNumber+=J[fJ],J[fJ]=0,Z.txnNumber=kJ.Long.fromNumber(X.txnNumber);if(!Y){if(J.transaction.state!==z1.TxnState.NO_TRANSACTION)J.transaction.transition(z1.TxnState.NO_TRANSACTION);if(J.supports.causalConsistency&&J.operationTime&&F6.commandSupportsReadConcern(Z))Z.readConcern=Z.readConcern||{},Object.assign(Z.readConcern,{afterClusterTime:J.operationTime});else if(J[q7]){if(Z.readConcern=Z.readConcern||{level:dv.ReadConcernLevel.snapshot},J[_J]!=null)Object.assign(Z.readConcern,{atClusterTime:J[_J]})}return}if(Z.autocommit=!1,J.transaction.state===z1.TxnState.STARTING_TRANSACTION){J.transaction.transition(z1.TxnState.TRANSACTION_IN_PROGRESS),Z.startTransaction=!0;const K=J.transaction.options.readConcern||J?.clientOptions?.readConcern;if(K)Z.readConcern=K;if(J.supports.causalConsistency&&J.operationTime)Z.readConcern=Z.readConcern||{},Object.assign(Z.readConcern,{afterClusterTime:J.operationTime})}return},rv=function(J,Z){if(Z.$clusterTime)m3._advanceClusterTime(J,Z.$clusterTime);if(Z.operationTime&&J&&J.supports.causalConsistency)J.advanceOperationTime(Z.operationTime);if(Z.recoveryToken&&J&&J.inTransaction())J.transaction._recoveryToken=Z.recoveryToken;if(J?.[q7]&&J[_J]==null){const $=Z.cursor?.atClusterTime||Z.atClusterTime;if($)J[_J]=$}},Bj;Object.defineProperty(Oj,"__esModule",{value:!0});Oj.updateSessionFromResponse=Oj.applySession=Oj.ServerSessionPool=Oj.ServerSession=Oj.maybeClearPinnedConnection=Oj.ClientSession=void 0;var gv=import.meta.require("util"),kJ=H1(),yJ=_3(),mv=b3(),Ej=v1(),x=E(),uv=C0(),Pj=L0(),Tj=X7(),dv=c0(),Ij=k1(),m3=d0(),z1=g3(),F6=y(),cv=A0(),pv=8,G7=Symbol("serverSession"),_J=Symbol("snapshotTime"),q7=Symbol("snapshotEnabled"),F7=Symbol("pinnedConnection"),fJ=Symbol("txnNumberIncrement");class u3 extends uv.TypedEventEmitter{constructor(J,Z,$,X){super();if(this[Bj]=!1,J==null)throw new x.MongoRuntimeError("ClientSession requires a MongoClient");if(Z==null||!(Z instanceof c3))throw new x.MongoRuntimeError("ClientSession requires a ServerSessionPool");if($=$??{},$.snapshot===!0){if(this[q7]=!0,$.causalConsistency===!0)throw new x.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive')}this.client=J,this.sessionPool=Z,this.hasEnded=!1,this.clientOptions=X,this.explicit=!!$.explicit,this[G7]=this.explicit?this.sessionPool.acquire():null,this[fJ]=0;const Y=this.explicit&&$.snapshot!==!0;this.supports={causalConsistency:$.causalConsistency??Y},this.clusterTime=$.initialClusterTime,this.operationTime=void 0,this.owner=$.owner,this.defaultTransactionOptions=Object.assign({},$.defaultTransactionOptions),this.transaction=new z1.Transaction}get id(){return this[G7]?.id}get serverSession(){let J=this[G7];if(J==null){if(this.explicit)throw new x.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new x.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");J=this.sessionPool.acquire(),this[G7]=J}return J}get snapshotEnabled(){return this[q7]}get loadBalanced(){return this.client.topology?.description.type===m3.TopologyType.LoadBalanced}get pinnedConnection(){return this[F7]}pin(J){if(this[F7])throw TypeError("Cannot pin multiple connections to the same session");this[F7]=J,J.emit(Ej.PINNED,this.inTransaction()?yJ.ConnectionPoolMetrics.TXN:yJ.ConnectionPoolMetrics.CURSOR)}unpin(J){if(this.loadBalanced)return vJ(this,J);this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[F7]:this.transaction.isPinned}async endSession(J){try{if(this.inTransaction())await this.abortTransaction();if(!this.hasEnded){const Z=this[G7];if(Z!=null)this.sessionPool.release(Z),Object.defineProperty(this,G7,{value:g5.clone(Z),writable:!1});this.hasEnded=!0,this.emit("ended",this)}}catch{}finally{vJ(this,{force:!0,...J})}}advanceOperationTime(J){if(this.operationTime==null){this.operationTime=J;return}if(J.greaterThan(this.operationTime))this.operationTime=J}advanceClusterTime(J){if(!J||typeof J!=="object")throw new x.MongoInvalidArgumentError("input cluster time must be an object");if(!J.clusterTime||J.clusterTime._bsontype!=="Timestamp")throw new x.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!J.signature||J.signature.hash?._bsontype!=="Binary"||typeof J.signature.keyId!=="bigint"&&typeof J.signature.keyId!=="number"&&J.signature.keyId?._bsontype!=="Long")throw new x.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');m3._advanceClusterTime(this,J)}equals(J){if(!(J instanceof u3))return!1;if(this.id==null||J.id==null)return!1;return F6.ByteUtils.equals(this.id.id.buffer,J.id.id.buffer)}incrementTransactionNumber(){this[fJ]+=1}inTransaction(){return this.transaction.isActive}startTransaction(J){if(this[q7])throw new x.MongoCompatibilityError("Transactions are not supported in snapshot sessions");if(this.inTransaction())throw new x.MongoTransactionError("Transaction already in progress");if(this.isPinned&&this.transaction.isCommitted)this.unpin();const Z=F6.maxWireVersion(this.client.topology);if(mv.isSharded(this.client.topology)&&Z!=null&&Z<pv)throw new x.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.");this.incrementTransactionNumber(),this.transaction=new z1.Transaction({readConcern:J?.readConcern??this.defaultTransactionOptions.readConcern??this.clientOptions?.readConcern,writeConcern:J?.writeConcern??this.defaultTransactionOptions.writeConcern??this.clientOptions?.writeConcern,readPreference:J?.readPreference??this.defaultTransactionOptions.readPreference??this.clientOptions?.readPreference,maxCommitTimeMS:J?.maxCommitTimeMS??this.defaultTransactionOptions.maxCommitTimeMS}),this.transaction.transition(z1.TxnState.STARTING_TRANSACTION)}async commitTransaction(){return Nj(this,"commitTransaction")}async abortTransaction(){return Nj(this,"abortTransaction")}toBSON(){throw new x.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}async withTransaction(J,Z){const $=F6.now();return d3(this,$,J,Z)}}Oj.ClientSession=u3;Bj=q7;var Cj=120000,lv=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);Oj.maybeClearPinnedConnection=vJ;var iv=new Set([z1.TxnState.NO_TRANSACTION,z1.TxnState.TRANSACTION_COMMITTED,z1.TxnState.TRANSACTION_ABORTED]),Nj=gv.promisify(nv);class g5{constructor(){this.id={id:new kJ.Binary(F6.uuidV4(),kJ.Binary.SUBTYPE_UUID)},this.lastUse=F6.now(),this.txnNumber=0,this.isDirty=!1}hasTimedOut(J){return Math.round(F6.calculateDurationInMs(this.lastUse)%86400000%3600000/60000)>J-1}static clone(J){const Z=new ArrayBuffer(16),$=Buffer.from(Z);$.set(J.id.id.buffer);const X=new kJ.Binary($,J.id.id.sub_type);return Object.setPrototypeOf({id:{id:X},lastUse:J.lastUse,txnNumber:J.txnNumber,isDirty:J.isDirty},g5.prototype)}}Oj.ServerSession=g5;class c3{constructor(J){if(J==null)throw new x.MongoRuntimeError("ServerSessionPool requires a MongoClient");this.client=J,this.sessions=new F6.List}acquire(){const J=this.client.topology?.logicalSessionTimeoutMinutes??10;let Z=null;while(this.sessions.length>0){const $=this.sessions.shift();if($!=null&&(!!this.client.topology?.loadBalanced||!$.hasTimedOut(J))){Z=$;break}}if(Z==null)Z=new g5;return Z}release(J){const Z=this.client.topology?.logicalSessionTimeoutMinutes??10;if(this.client.topology?.loadBalanced&&!Z)this.sessions.unshift(J);if(!Z)return;if(this.sessions.prune(($)=>$.hasTimedOut(Z)),!J.hasTimedOut(Z)){if(J.isDirty)return;this.sessions.unshift(J)}}}Oj.ServerSessionPool=c3;Oj.applySession=tv;Oj.updateSessionFromResponse=rv});var X8=V((bj)=>{async function mJ(J,{blocking:Z,transform:$}){if(J.closed)return null;do{if(J[r1]==null)await J[xj]();if(J[o1].length!==0){const Y=J[o1].shift();if(Y!=null&&$&&J[c5])try{return J[c5](Y)}catch(Q){throw await _8(J,{error:Q,needsToEmitClosed:!0}).catch(()=>null),Q}return Y}if(J.isDead)return await _8(J,{}),null;const X=J[x1].batchSize||1000;try{const Y=await J.getMore(X);if(Y){const Q=typeof Y.cursor.id==="number"?q6.Long.fromNumber(Y.cursor.id):typeof Y.cursor.id==="bigint"?q6.Long.fromBigInt(Y.cursor.id):Y.cursor.id;J[o1].pushMany(Y.cursor.nextBatch),J[r1]=Q}}catch(Y){throw await _8(J,{error:Y}).catch(()=>null),Y}if(J.isDead)await _8(J,{});if(J[o1].length===0&&Z===!1)return null}while(!J.isDead||J[o1].length!==0);return null}async function _8(J,Z){const $=J[r1],X=J[u5],Y=J[gJ],Q=J[$8],K=Z?.error,G=Z?.needsToEmitClosed??J[o1].length===0;if(K){if(J.loadBalanced&&K instanceof h0.MongoNetworkError)return F()}if($==null||Y==null||$.isZero()||X==null){if(G)J[w4]=!0,J[r1]=q6.Long.ZERO,J.emit(V7.CLOSE);if(Q){if(Q.owner===J){await Q.endSession({error:K});return}if(!Q.inTransaction())p3.maybeClearPinnedConnection(Q,{error:K})}return}async function F(){if(Q){if(Q.owner===J){try{await Q.endSession({error:K})}finally{J.emit(V7.CLOSE)}return}if(!Q.inTransaction())p3.maybeClearPinnedConnection(Q,{error:K})}J.emit(V7.CLOSE);return}if(J[d5]=!0,Q.hasEnded)return F();try{await vj.executeOperation(J[W7],new Qx.KillCursorsOperation($,X,Y,{session:Q})).catch(()=>null)}finally{await F()}}var R4=function(J){if(J[H7])throw new h0.MongoCursorInUseError};Object.defineProperty(bj,"__esModule",{value:!0});bj.assertUninitialized=bj.AbstractCursor=bj.CURSOR_FLAGS=void 0;var fj=import.meta.require("stream"),q6=H1(),h0=E(),Xx=C0(),vj=L0(),Yx=O3(),Qx=Jj(),yj=c0(),bJ=k1(),p3=m5(),_j=y(),r1=Symbol("id"),o1=Symbol("documents"),gJ=Symbol("server"),u5=Symbol("namespace"),W7=Symbol("client"),$8=Symbol("session"),x1=Symbol("options"),c5=Symbol("transform"),H7=Symbol("initialized"),w4=Symbol("closed"),d5=Symbol("killed"),xj=Symbol("kInit");bj.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class V7 extends Xx.TypedEventEmitter{constructor(J,Z,$={}){super();if(!J.s.isMongoClient)throw new h0.MongoRuntimeError("Cursor must be constructed with MongoClient");this[W7]=J,this[u5]=Z,this[r1]=null,this[o1]=new _j.List,this[H7]=!1,this[w4]=!1,this[d5]=!1,this[x1]={readPreference:$.readPreference&&$.readPreference instanceof bJ.ReadPreference?$.readPreference:bJ.ReadPreference.primary,...q6.pluckBSONSerializeOptions($)};const X=yj.ReadConcern.fromOptions($);if(X)this[x1].readConcern=X;if(typeof $.batchSize==="number")this[x1].batchSize=$.batchSize;if($.comment!==void 0)this[x1].comment=$.comment;if(typeof $.maxTimeMS==="number")this[x1].maxTimeMS=$.maxTimeMS;if(typeof $.maxAwaitTimeMS==="number")this[x1].maxAwaitTimeMS=$.maxAwaitTimeMS;if($.session instanceof p3.ClientSession)this[$8]=$.session;else this[$8]=this[W7].startSession({owner:this,explicit:!1})}get id(){return this[r1]??void 0}get isDead(){return(this[r1]?.isZero()??!1)||this[w4]||this[d5]}get client(){return this[W7]}get server(){return this[gJ]}get namespace(){return this[u5]}get readPreference(){return this[x1].readPreference}get readConcern(){return this[x1].readConcern}get session(){return this[$8]}set session(J){this[$8]=J}get cursorOptions(){return this[x1]}get closed(){return this[w4]}get killed(){return this[d5]}get loadBalanced(){return!!this[W7].topology?.loadBalanced}bufferedCount(){return this[o1].length}readBufferedDocuments(J){const Z=[],$=Math.min(J??this[o1].length,this[o1].length);for(let X=0;X<$;X++){const Y=this[o1].shift();if(Y!=null)Z.push(Y)}return Z}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0){const J=await this.next();if(J===null){if(!this.closed)throw await _8(this,{needsToEmitClosed:!0}).catch(()=>null),new h0.MongoAPIError("Cursor returned a `null` document, but the cursor is not exhausted. Mapping documents to `null` is not supported in the cursor transform.");break}if(yield J,this[r1]===q6.Long.ZERO)break}}finally{if(!this.closed)await this.close().catch(()=>null)}}stream(J){if(J?.transform){const Z=J.transform;return new l3(this).pipe(new fj.Transform({objectMode:!0,highWaterMark:1,transform(X,Y,Q){try{const K=Z(X);Q(void 0,K)}catch(K){Q(K)}}}))}return new l3(this)}async hasNext(){if(this[r1]===q6.Long.ZERO)return!1;if(this[o1].length!==0)return!0;const J=await mJ(this,{blocking:!0,transform:!1});if(J)return this[o1].unshift(J),!0;return!1}async next(){if(this[r1]===q6.Long.ZERO)throw new h0.MongoCursorExhaustedError;return mJ(this,{blocking:!0,transform:!0})}async tryNext(){if(this[r1]===q6.Long.ZERO)throw new h0.MongoCursorExhaustedError;return mJ(this,{blocking:!1,transform:!0})}async forEach(J){if(typeof J!=="function")throw new h0.MongoInvalidArgumentError('Argument "iterator" must be a function');for await(let Z of this)if(J(Z)===!1)break}async close(){const J=!this[w4];this[w4]=!0,await _8(this,{needsToEmitClosed:J})}async toArray(){const J=[];for await(let Z of this)J.push(Z);return J}addCursorFlag(J,Z){if(R4(this),!bj.CURSOR_FLAGS.includes(J))throw new h0.MongoInvalidArgumentError(`Flag ${J} is not one of ${bj.CURSOR_FLAGS}`);if(typeof Z!=="boolean")throw new h0.MongoInvalidArgumentError(`Flag ${J} must be a boolean value`);return this[x1][J]=Z,this}map(J){R4(this);const Z=this[c5];if(Z)this[c5]=($)=>{return J(Z($))};else this[c5]=J;return this}withReadPreference(J){if(R4(this),J instanceof bJ.ReadPreference)this[x1].readPreference=J;else if(typeof J==="string")this[x1].readPreference=bJ.ReadPreference.fromString(J);else throw new h0.MongoInvalidArgumentError(`Invalid read preference: ${J}`);return this}withReadConcern(J){R4(this);const Z=yj.ReadConcern.fromOptions({readConcern:J});if(Z)this[x1].readConcern=Z;return this}maxTimeMS(J){if(R4(this),typeof J!=="number")throw new h0.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[x1].maxTimeMS=J,this}batchSize(J){if(R4(this),this[x1].tailable)throw new h0.MongoTailableCursorError("Tailable cursor does not support batchSize");if(typeof J!=="number")throw new h0.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this[x1].batchSize=J,this}rewind(){if(!this[H7])return;this[r1]=null,this[o1].clear(),this[w4]=!1,this[d5]=!1,this[H7]=!1;const J=this[$8];if(J){if(J.explicit===!1){if(!J.hasEnded)J.endSession().catch(()=>null);this[$8]=this.client.startSession({owner:this,explicit:!1})}}}async getMore(J){const Z=new Yx.GetMoreOperation(this[u5],this[r1],this[gJ],{...this[x1],session:this[$8],batchSize:J});return vj.executeOperation(this[W7],Z)}async[xj](){try{const J=await this._initialize(this[$8]),Z=J.response;if(this[gJ]=J.server,Z.cursor){if(this[r1]=typeof Z.cursor.id==="number"?q6.Long.fromNumber(Z.cursor.id):typeof Z.cursor.id==="bigint"?q6.Long.fromBigInt(Z.cursor.id):Z.cursor.id,Z.cursor.ns)this[u5]=_j.ns(Z.cursor.ns);this[o1].pushMany(Z.cursor.firstBatch)}if(this[r1]==null)this[r1]=q6.Long.ZERO,this[o1].push(J.response);this[H7]=!0}catch(J){throw this[H7]=!0,await _8(this,{error:J}),J}if(this.isDead)await _8(this,void 0);return}}V7.CLOSE="close";bj.AbstractCursor=V7;bj.assertUninitialized=R4;class l3 extends fj.Readable{constructor(J){super({objectMode:!0,autoDestroy:!1,highWaterMark:1});this._readInProgress=!1,this._cursor=J}_read(J){if(!this._readInProgress)this._readInProgress=!0,this._readNext()}_destroy(J,Z){this._cursor.close().then(()=>Z(J),($)=>Z($))}_readNext(){mJ(this._cursor,{blocking:!0,transform:!0}).then((J)=>{if(J==null)this.push(null);else if(this.destroyed)this._cursor.close().catch(()=>null);else{if(this.push(J))return this._readNext();this._readInProgress=!1}},(J)=>{if(J.message.match(/server is closed/))return this._cursor.close().catch(()=>null),this.push(null);if(J.message.match(/operation was interrupted/))return this.push(null);return this.destroy(J)})}}});var p5=V((dj)=>{Object.defineProperty(dj,"__esModule",{value:!0});dj.AggregationCursor=void 0;var mj=CJ(),uj=L0(),Gx=y(),a0=X8(),e1=Symbol("pipeline"),uJ=Symbol("options");class i3 extends a0.AbstractCursor{constructor(J,Z,$=[],X={}){super(J,Z,X);this[e1]=$,this[uJ]=X}get pipeline(){return this[e1]}clone(){const J=Gx.mergeOptions({},this[uJ]);return delete J.session,new i3(this.client,this.namespace,this[e1],{...J})}map(J){return super.map(J)}async _initialize(J){const Z=new mj.AggregateOperation(this.namespace,this[e1],{...this[uJ],...this.cursorOptions,session:J}),$=await uj.executeOperation(this.client,Z);return{server:Z.server,session:J,response:$}}async explain(J){return uj.executeOperation(this.client,new mj.AggregateOperation(this.namespace,this[e1],{...this[uJ],...this.cursorOptions,explain:J??!0}))}group(J){return a0.assertUninitialized(this),this[e1].push({$group:J}),this}limit(J){return a0.assertUninitialized(this),this[e1].push({$limit:J}),this}match(J){return a0.assertUninitialized(this),this[e1].push({$match:J}),this}out(J){return a0.assertUninitialized(this),this[e1].push({$out:J}),this}project(J){return a0.assertUninitialized(this),this[e1].push({$project:J}),this}lookup(J){return a0.assertUninitialized(this),this[e1].push({$lookup:J}),this}redact(J){return a0.assertUninitialized(this),this[e1].push({$redact:J}),this}skip(J){return a0.assertUninitialized(this),this[e1].push({$skip:J}),this}sort(J){return a0.assertUninitialized(this),this[e1].push({$sort:J}),this}unwind(J){return a0.assertUninitialized(this),this[e1].push({$unwind:J}),this}geoNear(J){return a0.assertUninitialized(this),this[e1].push({$geoNear:J}),this}}dj.AggregationCursor=i3});var t3=V((pj)=>{Object.defineProperty(pj,"__esModule",{value:!0});pj.CountOperation=void 0;var Fx=T1(),s3=o();class n3 extends Fx.CommandOperation{constructor(J,Z,$){super({s:{namespace:J}},$);this.options=$,this.collectionName=J.collection,this.query=Z}async execute(J,Z){const $=this.options,X={count:this.collectionName,query:this.query};if(typeof $.limit==="number")X.limit=$.limit;if(typeof $.skip==="number")X.skip=$.skip;if($.hint!=null)X.hint=$.hint;if(typeof $.maxTimeMS==="number")X.maxTimeMS=$.maxTimeMS;const Y=await super.executeCommand(J,Z,X);return Y?Y.n:0}}pj.CountOperation=n3;s3.defineAspects(n3,[s3.Aspect.READ_OPERATION,s3.Aspect.RETRYABLE])});var dJ=V((ij)=>{var z7=function(J=1){const Z=`${J}`.toLowerCase();if(qx(J))return J;switch(Z){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new aj.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(J)}`)}},qx=function(J){return typeof J==="object"&&J!=null&&"$meta"in J&&typeof J.$meta==="string"},Wx=function(J){if(Array.isArray(J)&&J.length===2)try{return z7(J[1]),!0}catch(Z){return!1}return!1},Hx=function(J){return Array.isArray(J)&&Array.isArray(J[0])},Vx=function(J){return J instanceof Map&&J.size>0},zx=function(J){return new Map([[`${J[0]}`,z7([J[1]])]])},Ux=function(J){const Z=J.map(([$,X])=>[`${$}`,z7(X)]);return new Map(Z)},Mx=function(J){const Z=J.map(($)=>[`${$}`,1]);return new Map(Z)},jx=function(J){const Z=Object.entries(J).map(([$,X])=>[`${$}`,z7(X)]);return new Map(Z)},Ax=function(J){const Z=Array.from(J).map(([$,X])=>[`${$}`,z7(X)]);return new Map(Z)},Lx=function(J,Z){if(J==null)return;if(typeof J==="string")return new Map([[J,z7(Z)]]);if(typeof J!=="object")throw new aj.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(J)} Sort must be a valid object`);if(!Array.isArray(J))return Vx(J)?Ax(J):Object.keys(J).length?jx(J):void 0;if(!J.length)return;if(Hx(J))return Ux(J);if(Wx(J))return zx(J);return Mx(J)};Object.defineProperty(ij,"__esModule",{value:!0});ij.formatSort=void 0;var aj=E();ij.formatSort=Lx});var oj=V((tj)=>{var Tx=function(J,Z,$){const X={find:J.collection,filter:Z};if($.sort)X.sort=Dx.formatSort($.sort);if($.projection){let Q=$.projection;if(Q&&Array.isArray(Q))Q=Q.length?Q.reduce((K,G)=>{return K[G]=1,K},{}):{_id:1};X.projection=Q}if($.hint)X.hint=nj.normalizeHintField($.hint);if(typeof $.skip==="number")X.skip=$.skip;if(typeof $.limit==="number")if($.limit<0)X.limit=-$.limit,X.singleBatch=!0;else X.limit=$.limit;if(typeof $.batchSize==="number")if($.batchSize<0){if($.limit&&$.limit!==0&&Math.abs($.batchSize)<Math.abs($.limit))X.limit=-$.batchSize;X.singleBatch=!0}else X.batchSize=$.batchSize;if(typeof $.singleBatch==="boolean")X.singleBatch=$.singleBatch;if($.comment!==void 0)X.comment=$.comment;if(typeof $.maxTimeMS==="number")X.maxTimeMS=$.maxTimeMS;const Y=Rx.ReadConcern.fromOptions($);if(Y)X.readConcern=Y.toJSON();if($.max)X.max=$.max;if($.min)X.min=$.min;if(typeof $.returnKey==="boolean")X.returnKey=$.returnKey;if(typeof $.showRecordId==="boolean")X.showRecordId=$.showRecordId;if(typeof $.tailable==="boolean")X.tailable=$.tailable;if(typeof $.oplogReplay==="boolean")X.oplogReplay=$.oplogReplay;if(typeof $.timeout==="boolean")X.noCursorTimeout=!$.timeout;else if(typeof $.noCursorTimeout==="boolean")X.noCursorTimeout=$.noCursorTimeout;if(typeof $.awaitData==="boolean")X.awaitData=$.awaitData;if(typeof $.allowPartialResults==="boolean")X.allowPartialResults=$.allowPartialResults;if($.collation)X.collation=$.collation;if(typeof $.allowDiskUse==="boolean")X.allowDiskUse=$.allowDiskUse;if($.let)X.let=$.let;return X};Object.defineProperty(tj,"__esModule",{value:!0});tj.FindOperation=void 0;var wx=E(),Rx=c0(),Dx=dJ(),nj=y(),Px=T1(),l5=o();class r3 extends Px.CommandOperation{constructor(J,Z,$={},X={}){super(J,X);if(this.options={...X},delete this.options.writeConcern,this.ns=Z,typeof $!=="object"||Array.isArray($))throw new wx.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");this.filter=$!=null&&$._bsontype==="ObjectId"?{_id:$}:$}async execute(J,Z){this.server=J;const $=this.options;let X=Tx(this.ns,this.filter,$);if(this.explain)X=nj.decorateWithExplain(X,this.explain);return J.commandAsync(this.ns,X,{...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:Z})}}tj.FindOperation=r3;l5.defineAspects(r3,[l5.Aspect.READ_OPERATION,l5.Aspect.RETRYABLE,l5.Aspect.EXPLAINABLE,l5.Aspect.CURSOR_CREATING])});var ZY=V((ZA)=>{Object.defineProperty(ZA,"__esModule",{value:!0});ZA.FindCursor=ZA.FLAGS=void 0;var Ix=H1(),W6=E(),Nx=t3(),o3=L0(),ej=oj(),e3=dJ(),JA=y(),m1=X8(),D4=Symbol("filter"),cJ=Symbol("numReturned"),a=Symbol("builtOptions");ZA.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class JY extends m1.AbstractCursor{constructor(J,Z,$={},X={}){super(J,Z,X);if(this[D4]=$,this[a]=X,X.sort!=null)this[a].sort=e3.formatSort(X.sort)}clone(){const J=JA.mergeOptions({},this[a]);return delete J.session,new JY(this.client,this.namespace,this[D4],{...J})}map(J){return super.map(J)}async _initialize(J){const Z=new ej.FindOperation(void 0,this.namespace,this[D4],{...this[a],...this.cursorOptions,session:J}),$=await o3.executeOperation(this.client,Z);return this[cJ]=$.cursor?.firstBatch?.length,{server:Z.server,session:J,response:$}}async getMore(J){const Z=this[cJ];if(Z){const X=this[a].limit;if(J=X&&X>0&&Z+J>X?X-Z:J,J<=0)return await this.close().catch(()=>null),{cursor:{id:Ix.Long.ZERO,nextBatch:[]}}}const $=await super.getMore(J);if($)this[cJ]=this[cJ]+$.cursor.nextBatch.length;return $}async count(J){if(JA.emitWarningOnce("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),typeof J==="boolean")throw new W6.MongoInvalidArgumentError("Invalid first parameter to count");return o3.executeOperation(this.client,new Nx.CountOperation(this.namespace,this[D4],{...this[a],...this.cursorOptions,...J}))}async explain(J){return o3.executeOperation(this.client,new ej.FindOperation(void 0,this.namespace,this[D4],{...this[a],...this.cursorOptions,explain:J??!0}))}filter(J){return m1.assertUninitialized(this),this[D4]=J,this}hint(J){return m1.assertUninitialized(this),this[a].hint=J,this}min(J){return m1.assertUninitialized(this),this[a].min=J,this}max(J){return m1.assertUninitialized(this),this[a].max=J,this}returnKey(J){return m1.assertUninitialized(this),this[a].returnKey=J,this}showRecordId(J){return m1.assertUninitialized(this),this[a].showRecordId=J,this}addQueryModifier(J,Z){if(m1.assertUninitialized(this),J[0]!=="$")throw new W6.MongoInvalidArgumentError(`${J} is not a valid query modifier`);switch(J.substr(1)){case"comment":this[a].comment=Z;break;case"explain":this[a].explain=Z;break;case"hint":this[a].hint=Z;break;case"max":this[a].max=Z;break;case"maxTimeMS":this[a].maxTimeMS=Z;break;case"min":this[a].min=Z;break;case"orderby":this[a].sort=e3.formatSort(Z);break;case"query":this[D4]=Z;break;case"returnKey":this[a].returnKey=Z;break;case"showDiskLoc":this[a].showRecordId=Z;break;default:throw new W6.MongoInvalidArgumentError(`Invalid query modifier: ${J}`)}return this}comment(J){return m1.assertUninitialized(this),this[a].comment=J,this}maxAwaitTimeMS(J){if(m1.assertUninitialized(this),typeof J!=="number")throw new W6.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this[a].maxAwaitTimeMS=J,this}maxTimeMS(J){if(m1.assertUninitialized(this),typeof J!=="number")throw new W6.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[a].maxTimeMS=J,this}project(J){return m1.assertUninitialized(this),this[a].projection=J,this}sort(J,Z){if(m1.assertUninitialized(this),this[a].tailable)throw new W6.MongoTailableCursorError("Tailable cursor does not support sorting");return this[a].sort=e3.formatSort(J,Z),this}allowDiskUse(J=!0){if(m1.assertUninitialized(this),!this[a].sort)throw new W6.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');if(!J)return this[a].allowDiskUse=!1,this;return this[a].allowDiskUse=!0,this}collation(J){return m1.assertUninitialized(this),this[a].collation=J,this}limit(J){if(m1.assertUninitialized(this),this[a].tailable)throw new W6.MongoTailableCursorError("Tailable cursor does not support limit");if(typeof J!=="number")throw new W6.MongoInvalidArgumentError('Operation "limit" requires an integer');return this[a].limit=J,this}skip(J){if(m1.assertUninitialized(this),this[a].tailable)throw new W6.MongoTailableCursorError("Tailable cursor does not support skip");if(typeof J!=="number")throw new W6.MongoInvalidArgumentError('Operation "skip" requires an integer');return this[a].skip=J,this}}ZA.FindCursor=JY});var a5=V((KA)=>{var hx=function(J){return typeof J==="number"||J==="2d"||J==="2dsphere"||J==="text"||J==="geoHaystack"},Sx=function(J){return Array.isArray(J)&&J.length===2&&hx(J[1])},Ox=function(J,Z){const $=new Map,X=!Array.isArray(J)||Sx(J)?[J]:J;for(let Y of X)if(typeof Y==="string")$.set(Y,1);else if(Array.isArray(Y))$.set(Y[0],Y[1]??1);else if(Y instanceof Map)for(let[Q,K]of Y)$.set(Q,K);else if(XY.isObject(Y))for(let[Q,K]of Object.entries(Y))$.set(Q,K);return{...Z,key:$}};Object.defineProperty(KA,"__esModule",{value:!0});KA.IndexInformationOperation=KA.IndexExistsOperation=KA.ListIndexesOperation=KA.DropIndexOperation=KA.EnsureIndexOperation=KA.CreateIndexOperation=KA.CreateIndexesOperation=KA.IndexesOperation=void 0;var $Y=E(),Ex=k1(),XY=y(),YY=T1(),QY=V3(),K0=o(),Cx=new Set(["background","unique","name","partialFilterExpression","sparse","hidden","expireAfterSeconds","storageEngine","collation","version","weights","default_language","language_override","textIndexVersion","2dsphereIndexVersion","bits","min","max","bucketSize","wildcardProjection"]);class XA extends K0.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.collection=J}async execute(J,Z){const $=this.collection,X=this.options;return QY.indexInformation($.s.db,$.collectionName,{full:!0,...X,readPreference:this.readPreference,session:Z})}}KA.IndexesOperation=XA;class pJ extends YY.CommandOperation{constructor(J,Z,$,X){super(J,X);this.options=X??{},this.collectionName=Z,this.indexes=$.map((Y)=>{const Q=Y.key instanceof Map?Y.key:new Map(Object.entries(Y.key)),K=Y.name!=null?Y.name:Array.from(Q).flat().join("_");return{...Object.fromEntries(Object.entries({...Y}).filter(([F])=>Cx.has(F))),name:K,key:Q}})}async execute(J,Z){const $=this.options,X=this.indexes,Y=XY.maxWireVersion(J),Q={createIndexes:this.collectionName,indexes:X};if($.commitQuorum!=null){if(Y<9)throw new $Y.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4");Q.commitQuorum=$.commitQuorum}return this.options.collation=void 0,await super.executeCommand(J,Z,Q),X.map((G)=>G.name||"")}}KA.CreateIndexesOperation=pJ;class lJ extends pJ{constructor(J,Z,$,X){super(J,Z,[Ox($,X)],X)}async execute(J,Z){return(await super.execute(J,Z))[0]}}KA.CreateIndexOperation=lJ;class KY extends lJ{constructor(J,Z,$,X){super(J,Z,$,X);this.readPreference=Ex.ReadPreference.primary,this.db=J,this.collectionName=Z}async execute(J,Z){const $=this.indexes[0].name,X=await this.db.collection(this.collectionName).listIndexes({session:Z}).toArray().catch((Y)=>{if(Y instanceof $Y.MongoError&&Y.code===$Y.MONGODB_ERROR_CODES.NamespaceNotFound)return[];throw Y});if($&&X.some((Y)=>Y.name===$))return $;return super.execute(J,Z)}}KA.EnsureIndexOperation=KY;class GY extends YY.CommandOperation{constructor(J,Z,$){super(J,$);this.options=$??{},this.collection=J,this.indexName=Z}async execute(J,Z){const $={dropIndexes:this.collection.collectionName,index:this.indexName};return super.executeCommand(J,Z,$)}}KA.DropIndexOperation=GY;class FY extends YY.CommandOperation{constructor(J,Z){super(J,Z);this.options={...Z},delete this.options.writeConcern,this.collectionNamespace=J.s.namespace}async execute(J,Z){const $=XY.maxWireVersion(J),X=this.options.batchSize?{batchSize:this.options.batchSize}:{},Y={listIndexes:this.collectionNamespace.collection,cursor:X};if($>=9&&this.options.comment!==void 0)Y.comment=this.options.comment;return super.executeCommand(J,Z,Y)}}KA.ListIndexesOperation=FY;class YA extends K0.AbstractOperation{constructor(J,Z,$){super($);this.options=$,this.collection=J,this.indexes=Z}async execute(J,Z){const $=this.collection,X=this.indexes,Y=await QY.indexInformation($.s.db,$.collectionName,{...this.options,readPreference:this.readPreference,session:Z});if(!Array.isArray(X))return Y[X]!=null;return X.every((Q)=>Y[Q]!=null)}}KA.IndexExistsOperation=YA;class QA extends K0.AbstractOperation{constructor(J,Z,$){super($);this.options=$??{},this.db=J,this.name=Z}async execute(J,Z){const $=this.db,X=this.name;return QY.indexInformation($,X,{...this.options,readPreference:this.readPreference,session:Z})}}KA.IndexInformationOperation=QA;K0.defineAspects(FY,[K0.Aspect.READ_OPERATION,K0.Aspect.RETRYABLE,K0.Aspect.CURSOR_CREATING]);K0.defineAspects(pJ,[K0.Aspect.WRITE_OPERATION]);K0.defineAspects(lJ,[K0.Aspect.WRITE_OPERATION]);K0.defineAspects(KY,[K0.Aspect.WRITE_OPERATION]);K0.defineAspects(GY,[K0.Aspect.WRITE_OPERATION])});var WY=V((FA)=>{Object.defineProperty(FA,"__esModule",{value:!0});FA.ListIndexesCursor=void 0;var gx=L0(),mx=a5(),ux=X8();class qY extends ux.AbstractCursor{constructor(J,Z){super(J.client,J.s.namespace,Z);this.parent=J,this.options=Z}clone(){return new qY(this.parent,{...this.options,...this.cursorOptions})}async _initialize(J){const Z=new mx.ListIndexesOperation(this.parent,{...this.cursorOptions,...this.options,session:J}),$=await gx.executeOperation(this.parent.client,Z);return{server:Z.server,session:J,response:$}}}FA.ListIndexesCursor=qY});var zA=V((HA)=>{Object.defineProperty(HA,"__esModule",{value:!0});HA.ListSearchIndexesCursor=void 0;var dx=p5();class WA extends dx.AggregationCursor{constructor({fullNamespace:J,client:Z},$,X={}){const Y=$==null?[{$listSearchIndexes:{}}]:[{$listSearchIndexes:{name:$}}];super(Z,J,Y,X)}}HA.ListSearchIndexesCursor=WA});var AA=V((MA)=>{Object.defineProperty(MA,"__esModule",{value:!0});MA.CountDocumentsOperation=void 0;var cx=CJ();class UA extends cx.AggregateOperation{constructor(J,Z,$){const X=[];if(X.push({$match:Z}),typeof $.skip==="number")X.push({$skip:$.skip});if(typeof $.limit==="number")X.push({$limit:$.limit});X.push({$group:{_id:1,n:{$sum:1}}});super(J.s.namespace,X,$)}async execute(J,Z){const X=await super.execute(J,Z);if(X.cursor==null||X.cursor.firstBatch==null)return 0;const Y=X.cursor.firstBatch;return Y.length?Y[0].n:0}}MA.CountDocumentsOperation=UA});var DA=V((wA)=>{Object.defineProperty(wA,"__esModule",{value:!0});wA.DistinctOperation=void 0;var LA=y(),px=T1(),aJ=o();class HY extends px.CommandOperation{constructor(J,Z,$,X){super(J,X);this.options=X??{},this.collection=J,this.key=Z,this.query=$}async execute(J,Z){const $=this.collection,X=this.key,Y=this.query,Q=this.options,K={distinct:$.collectionName,key:X,query:Y};if(typeof Q.maxTimeMS==="number")K.maxTimeMS=Q.maxTimeMS;if(typeof Q.comment!=="undefined")K.comment=Q.comment;LA.decorateWithReadConcern(K,$,Q),LA.decorateWithCollation(K,$,Q);const G=await super.executeCommand(J,Z,K);return this.explain?G:G.values}}wA.DistinctOperation=HY;aJ.defineAspects(HY,[aJ.Aspect.READ_OPERATION,aJ.Aspect.RETRYABLE,aJ.Aspect.EXPLAINABLE])});var zY=V((IA)=>{Object.defineProperty(IA,"__esModule",{value:!0});IA.DropDatabaseOperation=IA.DropCollectionOperation=void 0;var PA=E(),TA=T1(),iJ=o();class sJ extends TA.CommandOperation{constructor(J,Z,$={}){super(J,$);this.db=J,this.options=$,this.name=Z}async execute(J,Z){const $=this.db,X=this.options,Y=this.name,Q=$.client.options.autoEncryption?.encryptedFieldsMap;let K=X.encryptedFields??Q?.[`${$.databaseName}.${Y}`];if(!K&&Q)K=(await $.listCollections({name:Y},{nameOnly:!1}).toArray())?.[0]?.options?.encryptedFields;if(K){const G=K.escCollection||`enxcol_.${Y}.esc`,F=K.ecocCollection||`enxcol_.${Y}.ecoc`;for(let q of[G,F]){const W=new sJ($,q);try{await W.executeWithoutEncryptedFieldsCheck(J,Z)}catch(H){if(!(H instanceof PA.MongoServerError)||H.code!==PA.MONGODB_ERROR_CODES.NamespaceNotFound)throw H}}}return this.executeWithoutEncryptedFieldsCheck(J,Z)}async executeWithoutEncryptedFieldsCheck(J,Z){return await super.executeCommand(J,Z,{drop:this.name}),!0}}IA.DropCollectionOperation=sJ;class VY extends TA.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z}async execute(J,Z){return await super.executeCommand(J,Z,{dropDatabase:1}),!0}}IA.DropDatabaseOperation=VY;iJ.defineAspects(sJ,[iJ.Aspect.WRITE_OPERATION]);iJ.defineAspects(VY,[iJ.Aspect.WRITE_OPERATION])});var CA=V((BA)=>{Object.defineProperty(BA,"__esModule",{value:!0});BA.EstimatedDocumentCountOperation=void 0;var ax=T1(),nJ=o();class UY extends ax.CommandOperation{constructor(J,Z={}){super(J,Z);this.options=Z,this.collectionName=J.collectionName}async execute(J,Z){const $={count:this.collectionName};if(typeof this.options.maxTimeMS==="number")$.maxTimeMS=this.options.maxTimeMS;if(this.options.comment!==void 0)$.comment=this.options.comment;return(await super.executeCommand(J,Z,$))?.n||0}}BA.EstimatedDocumentCountOperation=UY;nJ.defineAspects(UY,[nJ.Aspect.READ_OPERATION,nJ.Aspect.RETRYABLE,nJ.Aspect.CURSOR_CREATING])});var MY=V((yA)=>{var hA=function(J,Z){if(J.new=Z.returnDocument===yA.ReturnDocument.AFTER,J.upsert=Z.upsert===!0,Z.bypassDocumentValidation===!0)J.bypassDocumentValidation=Z.bypassDocumentValidation;return J};Object.defineProperty(yA,"__esModule",{value:!0});yA.FindOneAndUpdateOperation=yA.FindOneAndReplaceOperation=yA.FindOneAndDeleteOperation=yA.ReturnDocument=void 0;var f8=E(),ix=k1(),sx=dJ(),rJ=y(),nx=T1(),tJ=o();yA.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});class i5 extends nx.CommandOperation{constructor(J,Z,$){super(J,$);this.options=$??{},this.cmdBase={remove:!1,new:!1,upsert:!1},$.includeResultMetadata??=!1;const X=sx.formatSort($.sort);if(X)this.cmdBase.sort=X;if($.projection)this.cmdBase.fields=$.projection;if($.maxTimeMS)this.cmdBase.maxTimeMS=$.maxTimeMS;if($.writeConcern)this.cmdBase.writeConcern=$.writeConcern;if($.let)this.cmdBase.let=$.let;if($.comment!==void 0)this.cmdBase.comment=$.comment;this.readPreference=ix.ReadPreference.primary,this.collection=J,this.query=Z}async execute(J,Z){const $=this.collection,X=this.query,Y={...this.options,...this.bsonOptions},Q={findAndModify:$.collectionName,query:X,...this.cmdBase};try{rJ.decorateWithCollation(Q,$,Y)}catch(G){return G}if(Y.hint){if(this.writeConcern?.w===0||rJ.maxWireVersion(J)<8)throw new f8.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands");Q.hint=Y.hint}const K=await super.executeCommand(J,Z,Q);return Y.includeResultMetadata?K:K.value??null}}class SA extends i5{constructor(J,Z,$){if(Z==null||typeof Z!=="object")throw new f8.MongoInvalidArgumentError('Argument "filter" must be an object');super(J,Z,$);this.cmdBase.remove=!0}}yA.FindOneAndDeleteOperation=SA;class OA extends i5{constructor(J,Z,$,X){if(Z==null||typeof Z!=="object")throw new f8.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new f8.MongoInvalidArgumentError('Argument "replacement" must be an object');if(rJ.hasAtomicOperators($))throw new f8.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(J,Z,X);this.cmdBase.update=$,hA(this.cmdBase,X)}}yA.FindOneAndReplaceOperation=OA;class kA extends i5{constructor(J,Z,$,X){if(Z==null||typeof Z!=="object")throw new f8.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new f8.MongoInvalidArgumentError('Argument "update" must be an object');if(!rJ.hasAtomicOperators($))throw new f8.MongoInvalidArgumentError("Update document requires atomic operators");super(J,Z,X);if(this.cmdBase.update=$,hA(this.cmdBase,X),X.arrayFilters)this.cmdBase.arrayFilters=X.arrayFilters}}yA.FindOneAndUpdateOperation=kA;tJ.defineAspects(i5,[tJ.Aspect.WRITE_OPERATION,tJ.Aspect.RETRYABLE,tJ.Aspect.EXPLAINABLE])});var gA=V((xA)=>{Object.defineProperty(xA,"__esModule",{value:!0});xA.IsCappedOperation=void 0;var ox=E(),ex=o();class vA extends ex.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.collection=J}async execute(J,Z){const $=this.collection,[X]=await $.s.db.listCollections({name:$.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:Z}).toArray();if(X==null||X.options==null)throw new ox.MongoAPIError(`collection ${$.namespace} not found`);return!!X.options?.capped}}xA.IsCappedOperation=vA});var cA=V((uA)=>{Object.defineProperty(uA,"__esModule",{value:!0});uA.OptionsOperation=void 0;var Jb=E(),Zb=o();class mA extends Zb.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.collection=J}async execute(J,Z){const $=this.collection,[X]=await $.s.db.listCollections({name:$.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:Z}).toArray();if(X==null||X.options==null)throw new Jb.MongoAPIError(`collection ${$.namespace} not found`);return X.options}}uA.OptionsOperation=mA});var AY=V((lA)=>{Object.defineProperty(lA,"__esModule",{value:!0});lA.RenameOperation=void 0;var $b=P4(),Xb=y(),Yb=T1(),pA=o();class jY extends Yb.CommandOperation{constructor(J,Z,$){super(J,$);this.collection=J,this.newName=Z,this.options=$,this.ns=new Xb.MongoDBNamespace("admin","$cmd")}async execute(J,Z){const $=this.collection.namespace,X=this.collection.s.namespace.withCollection(this.newName).toString(),Y=typeof this.options.dropTarget==="boolean"?this.options.dropTarget:!1,Q={renameCollection:$,to:X,dropTarget:Y};return await super.executeCommand(J,Z,Q),new $b.Collection(this.collection.s.db,this.newName,this.collection.s.options)}}lA.RenameOperation=jY;pA.defineAspects(jY,[pA.Aspect.WRITE_OPERATION])});var tA=V((sA)=>{Object.defineProperty(sA,"__esModule",{value:!0});sA.CreateSearchIndexesOperation=void 0;var Qb=o();class iA extends Qb.AbstractOperation{constructor(J,Z){super();this.collection=J,this.descriptions=Z}async execute(J,Z){const $=this.collection.fullNamespace,X={createSearchIndexes:$.collection,indexes:this.descriptions};return((await J.commandAsync($,X,{session:Z}))?.indexesCreated??[]).map(({name:K})=>K)}}sA.CreateSearchIndexesOperation=iA});var ZL=V((eA)=>{Object.defineProperty(eA,"__esModule",{value:!0});eA.DropSearchIndexOperation=void 0;var rA=E(),Kb=o();class oA extends Kb.AbstractOperation{constructor(J,Z){super();this.collection=J,this.name=Z}async execute(J,Z){const $=this.collection.fullNamespace,X={dropSearchIndex:$.collection};if(typeof this.name==="string")X.name=this.name;try{await J.commandAsync($,X,{session:Z})}catch(Y){if(!(Y instanceof rA.MongoServerError&&Y.code===rA.MONGODB_ERROR_CODES.NamespaceNotFound))throw Y}}}eA.DropSearchIndexOperation=oA});var QL=V((XL)=>{Object.defineProperty(XL,"__esModule",{value:!0});XL.UpdateSearchIndexOperation=void 0;var Gb=o();class $L extends Gb.AbstractOperation{constructor(J,Z,$){super();this.collection=J,this.name=Z,this.definition=$}async execute(J,Z){const $=this.collection.fullNamespace,X={updateSearchIndex:$.collection,name:this.name,definition:this.definition};await J.commandAsync($,X,{session:Z});return}}XL.UpdateSearchIndexOperation=$L});var P4=V((WL)=>{Object.defineProperty(WL,"__esModule",{value:!0});WL.Collection=void 0;var Fb=H1(),qb=N3(),Wb=B3(),Hb=U7(),Vb=p5(),zb=ZY(),Ub=WY(),Mb=zA(),KL=E(),jb=H3(),Ab=t3(),Lb=AA(),GL=F3(),wb=DA(),Rb=zY(),Db=CA(),$1=L0(),LY=MY(),T4=a5(),FL=M3(),Pb=gA(),Tb=cA(),Ib=AY(),Nb=tA(),Bb=ZL(),Eb=QL(),wY=R3(),Cb=c0(),RY=k1(),n=y(),hb=A0();class qL{constructor(J,Z,$){this.s={db:J,options:$,namespace:new n.MongoDBCollectionNamespace(J.databaseName,Z),pkFactory:J.options?.pkFactory??n.DEFAULT_PK_FACTORY,readPreference:RY.ReadPreference.fromOptions($),bsonOptions:Fb.resolveBSONOptions($,J),readConcern:Cb.ReadConcern.fromOptions($),writeConcern:hb.WriteConcern.fromOptions($)},this.client=J.client}get dbName(){return this.s.namespace.db}get collectionName(){return this.s.namespace.collection}get namespace(){return this.fullNamespace.toString()}get fullNamespace(){return this.s.namespace}get readConcern(){if(this.s.readConcern==null)return this.s.db.readConcern;return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.s.db.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){if(this.s.writeConcern==null)return this.s.db.writeConcern;return this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(J){this.s.collectionHint=n.normalizeHintField(J)}async insertOne(J,Z){return $1.executeOperation(this.client,new FL.InsertOneOperation(this,J,n.resolveOptions(this,Z)))}async insertMany(J,Z){return $1.executeOperation(this.client,new FL.InsertManyOperation(this,J,n.resolveOptions(this,Z??{ordered:!0})))}async bulkWrite(J,Z){if(!Array.isArray(J))throw new KL.MongoInvalidArgumentError('Argument "operations" must be an array of documents');return $1.executeOperation(this.client,new jb.BulkWriteOperation(this,J,n.resolveOptions(this,Z??{ordered:!0})))}async updateOne(J,Z,$){return $1.executeOperation(this.client,new wY.UpdateOneOperation(this,J,Z,n.resolveOptions(this,$)))}async replaceOne(J,Z,$){return $1.executeOperation(this.client,new wY.ReplaceOneOperation(this,J,Z,n.resolveOptions(this,$)))}async updateMany(J,Z,$){return $1.executeOperation(this.client,new wY.UpdateManyOperation(this,J,Z,n.resolveOptions(this,$)))}async deleteOne(J={},Z={}){return $1.executeOperation(this.client,new GL.DeleteOneOperation(this,J,n.resolveOptions(this,Z)))}async deleteMany(J={},Z={}){return $1.executeOperation(this.client,new GL.DeleteManyOperation(this,J,n.resolveOptions(this,Z)))}async rename(J,Z){return $1.executeOperation(this.client,new Ib.RenameOperation(this,J,{...Z,readPreference:RY.ReadPreference.PRIMARY}))}async drop(J){return $1.executeOperation(this.client,new Rb.DropCollectionOperation(this.s.db,this.collectionName,J))}async findOne(J={},Z={}){const $=this.find(J,Z).limit(-1).batchSize(1),X=await $.next();return await $.close(),X}find(J={},Z={}){return new zb.FindCursor(this.client,this.s.namespace,J,n.resolveOptions(this,Z))}async options(J){return $1.executeOperation(this.client,new Tb.OptionsOperation(this,n.resolveOptions(this,J)))}async isCapped(J){return $1.executeOperation(this.client,new Pb.IsCappedOperation(this,n.resolveOptions(this,J)))}async createIndex(J,Z){return $1.executeOperation(this.client,new T4.CreateIndexOperation(this,this.collectionName,J,n.resolveOptions(this,Z)))}async createIndexes(J,Z){return $1.executeOperation(this.client,new T4.CreateIndexesOperation(this,this.collectionName,J,n.resolveOptions(this,{...Z,maxTimeMS:void 0})))}async dropIndex(J,Z){return $1.executeOperation(this.client,new T4.DropIndexOperation(this,J,{...n.resolveOptions(this,Z),readPreference:RY.ReadPreference.primary}))}async dropIndexes(J){try{return await $1.executeOperation(this.client,new T4.DropIndexOperation(this,"*",n.resolveOptions(this,J))),!0}catch{return!1}}listIndexes(J){return new Ub.ListIndexesCursor(this,n.resolveOptions(this,J))}async indexExists(J,Z){return $1.executeOperation(this.client,new T4.IndexExistsOperation(this,J,n.resolveOptions(this,Z)))}async indexInformation(J){return $1.executeOperation(this.client,new T4.IndexInformationOperation(this.s.db,this.collectionName,n.resolveOptions(this,J)))}async estimatedDocumentCount(J){return $1.executeOperation(this.client,new Db.EstimatedDocumentCountOperation(this,n.resolveOptions(this,J)))}async countDocuments(J={},Z={}){return $1.executeOperation(this.client,new Lb.CountDocumentsOperation(this,J,n.resolveOptions(this,Z)))}async distinct(J,Z={},$={}){return $1.executeOperation(this.client,new wb.DistinctOperation(this,J,Z,n.resolveOptions(this,$)))}async indexes(J){return $1.executeOperation(this.client,new T4.IndexesOperation(this,n.resolveOptions(this,J)))}async findOneAndDelete(J,Z){return $1.executeOperation(this.client,new LY.FindOneAndDeleteOperation(this,J,n.resolveOptions(this,Z)))}async findOneAndReplace(J,Z,$){return $1.executeOperation(this.client,new LY.FindOneAndReplaceOperation(this,J,Z,n.resolveOptions(this,$)))}async findOneAndUpdate(J,Z,$){return $1.executeOperation(this.client,new LY.FindOneAndUpdateOperation(this,J,Z,n.resolveOptions(this,$)))}aggregate(J=[],Z){if(!Array.isArray(J))throw new KL.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');return new Vb.AggregationCursor(this.client,this.s.namespace,J,n.resolveOptions(this,Z))}watch(J=[],Z={}){if(!Array.isArray(J))Z=J,J=[];return new Hb.ChangeStream(this,J,n.resolveOptions(this,Z))}initializeUnorderedBulkOp(J){return new Wb.UnorderedBulkOperation(this,n.resolveOptions(this,J))}initializeOrderedBulkOp(J){return new qb.OrderedBulkOperation(this,n.resolveOptions(this,J))}async count(J={},Z={}){return $1.executeOperation(this.client,new Ab.CountOperation(this.fullNamespace,J,n.resolveOptions(this,Z)))}listSearchIndexes(J,Z){Z=typeof J==="object"?J:Z==null?{}:Z;const $=J==null?null:typeof J==="object"?null:J;return new Mb.ListSearchIndexesCursor(this,$,Z)}async createSearchIndex(J){const[Z]=await this.createSearchIndexes([J]);return Z}async createSearchIndexes(J){return $1.executeOperation(this.client,new Nb.CreateSearchIndexesOperation(this,J))}async dropSearchIndex(J){return $1.executeOperation(this.client,new Bb.DropSearchIndexOperation(this,J))}async updateSearchIndex(J,Z){return $1.executeOperation(this.client,new Eb.UpdateSearchIndexOperation(this,J,Z))}}WL.Collection=qL});var IY=V((zL)=>{Object.defineProperty(zL,"__esModule",{value:!0});zL.ChangeStreamCursor=void 0;var DY=U7(),VL=v1(),Sb=CJ(),Ob=L0(),PY=y(),kb=X8();class TY extends kb.AbstractCursor{constructor(J,Z,$=[],X={}){super(J,Z,X);if(this.pipeline=$,this.options=X,this._resumeToken=null,this.startAtOperationTime=X.startAtOperationTime,X.startAfter)this.resumeToken=X.startAfter;else if(X.resumeAfter)this.resumeToken=X.resumeAfter}set resumeToken(J){this._resumeToken=J,this.emit(DY.ChangeStream.RESUME_TOKEN_CHANGED,J)}get resumeToken(){return this._resumeToken}get resumeOptions(){const J={...this.options};for(let Z of["resumeAfter","startAfter","startAtOperationTime"])delete J[Z];if(this.resumeToken!=null)if(this.options.startAfter&&!this.hasReceived)J.startAfter=this.resumeToken;else J.resumeAfter=this.resumeToken;else if(this.startAtOperationTime!=null&&PY.maxWireVersion(this.server)>=7)J.startAtOperationTime=this.startAtOperationTime;return J}cacheResumeToken(J){if(this.bufferedCount()===0&&this.postBatchResumeToken)this.resumeToken=this.postBatchResumeToken;else this.resumeToken=J;this.hasReceived=!0}_processBatch(J){const Z=J.cursor;if(Z.postBatchResumeToken){if(this.postBatchResumeToken=J.cursor.postBatchResumeToken,("firstBatch"in J.cursor?J.cursor.firstBatch:J.cursor.nextBatch).length===0)this.resumeToken=Z.postBatchResumeToken}}clone(){return new TY(this.client,this.namespace,this.pipeline,{...this.cursorOptions})}async _initialize(J){const Z=new Sb.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:J}),$=await Ob.executeOperation(J.client,Z),X=Z.server;if(this.maxWireVersion=PY.maxWireVersion(X),this.startAtOperationTime==null&&this.resumeAfter==null&&this.startAfter==null&&this.maxWireVersion>=7)this.startAtOperationTime=$.operationTime;return this._processBatch($),this.emit(VL.INIT,$),this.emit(VL.RESPONSE),{server:X,session:J,response:$}}async getMore(J){const Z=await super.getMore(J);return this.maxWireVersion=PY.maxWireVersion(this.server),this._processBatch(Z),this.emit(DY.ChangeStream.MORE,Z),this.emit(DY.ChangeStream.RESPONSE),Z}}zL.ChangeStreamCursor=TY});var AL=V((ML)=>{Object.defineProperty(ML,"__esModule",{value:!0});ML.ListCollectionsOperation=void 0;var yb=y(),_b=T1(),oJ=o();class NY extends _b.CommandOperation{constructor(J,Z,$){super(J,$);if(this.options={...$},delete this.options.writeConcern,this.db=J,this.filter=Z,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,typeof this.options.batchSize==="number")this.batchSize=this.options.batchSize}async execute(J,Z){return super.executeCommand(J,Z,this.generateCommand(yb.maxWireVersion(J)))}generateCommand(J){const Z={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};if(J>=9&&this.options.comment!==void 0)Z.comment=this.options.comment;return Z}}ML.ListCollectionsOperation=NY;oJ.defineAspects(NY,[oJ.Aspect.READ_OPERATION,oJ.Aspect.RETRYABLE,oJ.Aspect.CURSOR_CREATING])});var EY=V((LL)=>{Object.defineProperty(LL,"__esModule",{value:!0});LL.ListCollectionsCursor=void 0;var fb=L0(),vb=AL(),xb=X8();class BY extends xb.AbstractCursor{constructor(J,Z,$){super(J.client,J.s.namespace,$);this.parent=J,this.filter=Z,this.options=$}clone(){return new BY(this.parent,this.filter,{...this.options,...this.cursorOptions})}async _initialize(J){const Z=new vb.ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:J}),$=await fb.executeOperation(this.parent.client,Z);return{server:Z.server,session:J,response:$}}}LL.ListCollectionsCursor=BY});var IL=V((PL)=>{Object.defineProperty(PL,"__esModule",{value:!0});PL.RunCommandCursor=void 0;var M7=E(),RL=L0(),bb=O3(),gb=X7(),mb=y(),ub=X8();class DL extends ub.AbstractCursor{setComment(J){return this.getMoreOptions.comment=J,this}setMaxTimeMS(J){return this.getMoreOptions.maxAwaitTimeMS=J,this}setBatchSize(J){return this.getMoreOptions.batchSize=J,this}clone(){throw new M7.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand")}withReadConcern(J){throw new M7.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run")}addCursorFlag(J,Z){throw new M7.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run")}maxTimeMS(J){throw new M7.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()")}batchSize(J){throw new M7.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()")}constructor(J,Z,$={}){super(J.client,mb.ns(J.namespace),$);this.getMoreOptions={},this.db=J,this.command=Object.freeze({...Z})}async _initialize(J){const Z=new gb.RunCommandOperation(this.db,this.command,{...this.cursorOptions,session:J,readPreference:this.cursorOptions.readPreference}),$=await RL.executeOperation(this.client,Z);if($.cursor==null)throw new M7.MongoUnexpectedServerResponseError("Expected server to respond with cursor");return{server:Z.server,session:J,response:$}}async getMore(J){const Z=new bb.GetMoreOperation(this.namespace,this.id,this.server,{...this.cursorOptions,session:this.session,...this.getMoreOptions});return RL.executeOperation(this.client,Z)}}PL.RunCommandCursor=DL});var CL=V((BL)=>{Object.defineProperty(BL,"__esModule",{value:!0});BL.CollectionsOperation=void 0;var db=P4(),cb=o();class NL extends cb.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.db=J}async execute(J,Z){const $=await this.db.listCollections({},{...this.options,nameOnly:!0,readPreference:this.readPreference,session:Z}).toArray(),X=[];for(let{name:Y}of $)if(!Y.includes("$"))X.push(new db.Collection(this.db,Y,this.db.s.options));return X}}BL.CollectionsOperation=NL});var yL=V((OL)=>{Object.defineProperty(OL,"__esModule",{value:!0});OL.CreateCollectionOperation=void 0;var hL=h8(),pb=P4(),lb=E(),ab=T1(),ib=a5(),SL=o(),sb=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","useBigInt64","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]),nb="Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption.";class eJ extends ab.CommandOperation{constructor(J,Z,$={}){super(J,$);this.options=$,this.db=J,this.name=Z}async execute(J,Z){const $=this.db,X=this.name,Y=this.options,Q=Y.encryptedFields??$.client.options.autoEncryption?.encryptedFieldsMap?.[`${$.databaseName}.${X}`];if(Q){if(!J.loadBalanced&&J.description.maxWireVersion<hL.MIN_SUPPORTED_QE_WIRE_VERSION)throw new lb.MongoCompatibilityError(`${nb} The minimum server version required is ${hL.MIN_SUPPORTED_QE_SERVER_VERSION}`);const G=Q.escCollection??`enxcol_.${X}.esc`,F=Q.ecocCollection??`enxcol_.${X}.ecoc`;for(let q of[G,F])await new eJ($,q,{clusteredIndex:{key:{_id:1},unique:!0}}).executeWithoutEncryptedFieldsCheck(J,Z);if(!Y.encryptedFields)this.options={...this.options,encryptedFields:Q}}const K=await this.executeWithoutEncryptedFieldsCheck(J,Z);if(Q)await new ib.CreateIndexOperation($,X,{__safeContent__:1},{}).execute(J,Z);return K}async executeWithoutEncryptedFieldsCheck(J,Z){const $=this.db,X=this.name,Y=this.options,Q={create:X};for(let K in Y)if(Y[K]!=null&&typeof Y[K]!=="function"&&!sb.has(K))Q[K]=Y[K];return await super.executeCommand(J,Z,Q),new pb.Collection($,X,Y)}}OL.CreateCollectionOperation=eJ;SL.defineAspects(eJ,[SL.Aspect.WRITE_OPERATION])});var bL=V((vL)=>{Object.defineProperty(vL,"__esModule",{value:!0});vL.ProfilingLevelOperation=void 0;var _L=E(),tb=T1();class fL extends tb.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z}async execute(J,Z){const $=await super.executeCommand(J,Z,{profile:-1});if($.ok===1){const X=$.was;if(X===0)return"off";if(X===1)return"slow_only";if(X===2)return"all";throw new _L.MongoUnexpectedServerResponseError(`Illegal profiling level value ${X}`)}else throw new _L.MongoUnexpectedServerResponseError("Error with profile command")}}vL.ProfilingLevelOperation=fL});var CY=V((mL)=>{Object.defineProperty(mL,"__esModule",{value:!0});mL.SetProfilingLevelOperation=mL.ProfilingLevel=void 0;var rb=E(),ob=y(),eb=T1(),Jg=new Set(["off","slow_only","all"]);mL.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class gL extends eb.CommandOperation{constructor(J,Z,$){super(J,$);switch(this.options=$,Z){case mL.ProfilingLevel.off:this.profile=0;break;case mL.ProfilingLevel.slowOnly:this.profile=1;break;case mL.ProfilingLevel.all:this.profile=2;break;default:this.profile=0;break}this.level=Z}async execute(J,Z){const $=this.level;if(!Jg.has($))throw new rb.MongoInvalidArgumentError(`Profiling level must be one of "${ob.enumToString(mL.ProfilingLevel)}"`);return await super.executeCommand(J,Z,{profile:this.profile}),$}}mL.SetProfilingLevelOperation=gL});var lL=V((cL)=>{Object.defineProperty(cL,"__esModule",{value:!0});cL.DbStatsOperation=void 0;var Zg=T1(),dL=o();class hY extends Zg.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z}async execute(J,Z){const $={dbStats:!0};if(this.options.scale!=null)$.scale=this.options.scale;return super.executeCommand(J,Z,$)}}cL.DbStatsOperation=hY;dL.defineAspects(hY,[dL.Aspect.READ_OPERATION])});var JZ=V((rL)=>{Object.defineProperty(rL,"__esModule",{value:!0});rL.Db=void 0;var $g=Y3(),aL=H1(),Xg=U7(),Yg=P4(),j7=v1(),Qg=p5(),Kg=EY(),Gg=IL(),iL=E(),Fg=CL(),qg=yL(),sL=zY(),i0=L0(),nL=a5(),Wg=bL(),Hg=$3(),Vg=AY(),zg=X7(),Ug=CY(),Mg=lL(),jg=c0(),tL=k1(),u1=y(),Ag=A0(),Lg=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","useBigInt64","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class v8{constructor(J,Z,$){if($=$??{},$=u1.filterOptions($,Lg),typeof Z==="string"&&Z.includes("."))throw new iL.MongoInvalidArgumentError("Database names cannot contain the character '.'");this.s={options:$,readPreference:tL.ReadPreference.fromOptions($),bsonOptions:aL.resolveBSONOptions($,J),pkFactory:$?.pkFactory??u1.DEFAULT_PK_FACTORY,readConcern:jg.ReadConcern.fromOptions($),writeConcern:Ag.WriteConcern.fromOptions($),namespace:new u1.MongoDBNamespace(Z)},this.client=J}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get secondaryOk(){return this.s.readPreference?.preference!=="primary"||!1}get readConcern(){return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.client.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get namespace(){return this.s.namespace.toString()}async createCollection(J,Z){return i0.executeOperation(this.client,new qg.CreateCollectionOperation(this,J,u1.resolveOptions(this,Z)))}async command(J,Z){return i0.executeOperation(this.client,new zg.RunCommandOperation(this,J,{...aL.resolveBSONOptions(Z),session:Z?.session,readPreference:Z?.readPreference}))}aggregate(J=[],Z){return new Qg.AggregationCursor(this.client,this.s.namespace,J,u1.resolveOptions(this,Z))}admin(){return new $g.Admin(this)}collection(J,Z={}){if(typeof Z==="function")throw new iL.MongoInvalidArgumentError("The callback form of this helper has been removed.");return new Yg.Collection(this,J,u1.resolveOptions(this,Z))}async stats(J){return i0.executeOperation(this.client,new Mg.DbStatsOperation(this,u1.resolveOptions(this,J)))}listCollections(J={},Z={}){return new Kg.ListCollectionsCursor(this,J,u1.resolveOptions(this,Z))}async renameCollection(J,Z,$){return i0.executeOperation(this.client,new Vg.RenameOperation(this.collection(J),Z,{...$,new_collection:!0,readPreference:tL.ReadPreference.primary}))}async dropCollection(J,Z){return i0.executeOperation(this.client,new sL.DropCollectionOperation(this,J,u1.resolveOptions(this,Z)))}async dropDatabase(J){return i0.executeOperation(this.client,new sL.DropDatabaseOperation(this,u1.resolveOptions(this,J)))}async collections(J){return i0.executeOperation(this.client,new Fg.CollectionsOperation(this,u1.resolveOptions(this,J)))}async createIndex(J,Z,$){return i0.executeOperation(this.client,new nL.CreateIndexOperation(this,J,Z,u1.resolveOptions(this,$)))}async removeUser(J,Z){return i0.executeOperation(this.client,new Hg.RemoveUserOperation(this,J,u1.resolveOptions(this,Z)))}async setProfilingLevel(J,Z){return i0.executeOperation(this.client,new Ug.SetProfilingLevelOperation(this,J,u1.resolveOptions(this,Z)))}async profilingLevel(J){return i0.executeOperation(this.client,new Wg.ProfilingLevelOperation(this,u1.resolveOptions(this,J)))}async indexInformation(J,Z){return i0.executeOperation(this.client,new nL.IndexInformationOperation(this,J,u1.resolveOptions(this,Z)))}watch(J=[],Z={}){if(!Array.isArray(J))Z=J,J=[];return new Xg.ChangeStream(this,J,u1.resolveOptions(this,Z))}runCursorCommand(J,Z){return new Gg.RunCommandCursor(this,J,Z)}}v8.SYSTEM_NAMESPACE_COLLECTION=j7.SYSTEM_NAMESPACE_COLLECTION;v8.SYSTEM_INDEX_COLLECTION=j7.SYSTEM_INDEX_COLLECTION;v8.SYSTEM_PROFILE_COLLECTION=j7.SYSTEM_PROFILE_COLLECTION;v8.SYSTEM_USER_COLLECTION=j7.SYSTEM_USER_COLLECTION;v8.SYSTEM_COMMAND_COLLECTION=j7.SYSTEM_COMMAND_COLLECTION;v8.SYSTEM_JS_COLLECTION=j7.SYSTEM_JS_COLLECTION;rL.Db=v8});var H6=V((eL)=>{var n5=function(J){return new Proxy(J?{kModuleError:J}:{},{get:($,X)=>{if(X==="kModuleError")return J;throw J},set:()=>{throw J}})},wg=function(){try{return eL.Kerberos=(()=>{ throw new Error(`Cannot require module "kerberos"`);})(),eL.Kerberos}catch{return eL.Kerberos}},Rg=function(){try{return eL.ZStandard=(()=>{ throw new Error(`Cannot require module "@mongodb-js/zstd"`);})(),eL.ZStandard}catch{return eL.ZStandard}},Dg=function(){try{return (()=>{ throw new Error(`Cannot require module "@aws-sdk/credential-providers"`);})()}catch{return n5(new x8.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk."))}},Pg=function(){try{return (()=>{ throw new Error(`Cannot require module "gcp-metadata"`);})()}catch{return n5(new x8.MongoMissingDependencyError("Optional module `gcp-metadata` not found. Please install it to enable getting gcp credentials via the official sdk."))}},Tg=function(){try{return (()=>{ throw new Error(`Cannot require module "snappy"`);})()}catch(J){return{kModuleError:new x8.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression",{cause:J})}}},Ig=function(){try{return (()=>{ throw new Error(`Cannot require module "socks"`);})()}catch(J){return{kModuleError:new x8.MongoMissingDependencyError("Optional module `socks` not found. Please install it to connections over a SOCKS5 proxy",{cause:J})}}},Ng=function(){let J=null;try{J=(()=>{ throw new Error(`Cannot require module "mongodb-client-encryption"`);})()}catch(Z){return{kModuleError:new x8.MongoMissingDependencyError("Optional module `mongodb-client-encryption` not found. Please install it to use auto encryption or ClientEncryption.",{cause:Z})}}return J};Object.defineProperty(eL,"__esModule",{value:!0});eL.getMongoDBClientEncryption=eL.aws4=eL.getSocks=eL.getSnappy=eL.getGcpMetadata=eL.getAwsCredentialProvider=eL.getZstdLibrary=eL.ZStandard=eL.getKerberos=eL.Kerberos=void 0;var x8=E();eL.Kerberos=n5(new x8.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication"));eL.getKerberos=wg;eL.ZStandard=n5(new x8.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression"));eL.getZstdLibrary=Rg;eL.getAwsCredentialProvider=Dg;eL.getGcpMetadata=Pg;eL.getSnappy=Tg;eL.getSocks=Ig;eL.aws4=n5(new x8.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{eL.aws4=(()=>{ throw new Error(`Cannot require module "aws4"`);})()}catch{}eL.getMongoDBClientEncryption=Ng});var Y8=V((Yw)=>{Object.defineProperty(Yw,"__esModule",{value:!0});Yw.AuthProvider=Yw.AuthContext=void 0;var kg=E();class $w{constructor(J,Z,$){this.reauthenticating=!1,this.connection=J,this.credentials=Z,this.options=$}}Yw.AuthContext=$w;class Xw{async prepare(J,Z){return J}async reauth(J){if(J.reauthenticating)throw new kg.MongoRuntimeError("Reauthentication already in progress.");try{J.reauthenticating=!0,await this.auth(J)}finally{J.reauthenticating=!1}}}Yw.AuthProvider=Xw});var YZ=V((Ww)=>{async function SY(J,Z){return J.commandAsync(fg.ns("$external.$cmd"),Z,void 0)}async function xg(J){const{hostAddress:Z}=J.options,{credentials:$}=J;if(!Z||typeof Z.host!=="string"||!$)throw new Kw.MongoInvalidArgumentError("Connection must have host and port and credentials defined.");if(ug(),"kModuleError"in t5)throw t5.kModuleError;const{initializeClient:X}=t5,{username:Y,password:Q}=$,K=$.mechanismProperties,G=K.SERVICE_NAME??"mongodb",F=await qw(Z.host,K),q={};if(Q!=null)Object.assign(q,{user:Y,password:Q});const W=K.SERVICE_HOST??F;let H=`${G}${process.platform==="win32"?"/":"@"}${W}`;if("SERVICE_REALM"in K)H=`${H}@${K.SERVICE_REALM}`;return X(H,q)}var bg=function(J){return{saslStart:1,mechanism:"GSSAPI",payload:J,autoAuthorize:1}},gg=function(J,Z){return{saslContinue:1,conversationId:Z,payload:J}};async function Fw(J,Z,$){try{return await J.step($)||""}catch(X){if(Z===0)throw X;return Fw(J,Z-1,$)}}async function mg(J,Z,$){const X=await J.unwrap($);return J.wrap(X||"",{user:Z})}async function qw(J,Z){const $=Z.CANONICALIZE_HOST_NAME;if(!$||$===Ww.GSSAPICanonicalizationValue.none)return J;if($===Ww.GSSAPICanonicalizationValue.on||$===Ww.GSSAPICanonicalizationValue.forwardAndReverse){const{address:X}=await OY.promises.lookup(J);try{const Y=await OY.promises.resolvePtr(X);return Y.length>0?Y[0]:J}catch(Y){return kY(J)}}else return kY(J)}async function kY(J){try{const Z=await OY.promises.resolveCname(J);return Z.length>0?Z[0]:J}catch{return J}}var ug=function(){if(!t5)t5=_g.getKerberos()};Object.defineProperty(Ww,"__esModule",{value:!0});Ww.resolveCname=Ww.performGSSAPICanonicalizeHostName=Ww.GSSAPI=Ww.GSSAPICanonicalizationValue=void 0;var OY=import.meta.require("dns"),_g=H6(),Kw=E(),fg=y(),vg=Y8();Ww.GSSAPICanonicalizationValue=Object.freeze({on:!0,off:!1,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});var t5;class Gw extends vg.AuthProvider{async auth(J){const{connection:Z,credentials:$}=J;if($==null)throw new Kw.MongoMissingCredentialsError("Credentials required for GSSAPI authentication");const{username:X}=$,Y=await xg(J),Q=await Y.step(""),K=await SY(Z,bg(Q)),G=await Fw(Y,10,K.payload),F=await SY(Z,gg(G,K.conversationId)),q=await mg(Y,X,F.payload);await SY(Z,{saslContinue:1,conversationId:F.conversationId,payload:q})}}Ww.GSSAPI=Gw;Ww.performGSSAPICanonicalizeHostName=qw;Ww.resolveCname=kY});var O6=V((Vw)=>{Object.defineProperty(Vw,"__esModule",{value:!0});Vw.AUTH_MECHS_AUTH_SRC_EXTERNAL=Vw.AuthMechanism=void 0;Vw.AuthMechanism=Object.freeze({MONGODB_AWS:"MONGODB-AWS",MONGODB_CR:"MONGODB-CR",MONGODB_DEFAULT:"DEFAULT",MONGODB_GSSAPI:"GSSAPI",MONGODB_PLAIN:"PLAIN",MONGODB_SCRAM_SHA1:"SCRAM-SHA-1",MONGODB_SCRAM_SHA256:"SCRAM-SHA-256",MONGODB_X509:"MONGODB-X509",MONGODB_OIDC:"MONGODB-OIDC"});Vw.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([Vw.AuthMechanism.MONGODB_GSSAPI,Vw.AuthMechanism.MONGODB_AWS,Vw.AuthMechanism.MONGODB_OIDC,Vw.AuthMechanism.MONGODB_X509])});var KZ=V((jw)=>{var lg=function(J){if(J){if(Array.isArray(J.saslSupportedMechs))return J.saslSupportedMechs.includes(d1.AuthMechanism.MONGODB_SCRAM_SHA256)?d1.AuthMechanism.MONGODB_SCRAM_SHA256:d1.AuthMechanism.MONGODB_SCRAM_SHA1;if(J.maxWireVersion>=3)return d1.AuthMechanism.MONGODB_SCRAM_SHA1}return d1.AuthMechanism.MONGODB_CR};Object.defineProperty(jw,"__esModule",{value:!0});jw.MongoCredentials=jw.DEFAULT_ALLOWED_HOSTS=void 0;var s0=E(),pg=YZ(),d1=O6(),Uw=["aws","azure"],Mw="Auth mechanism property ALLOWED_HOSTS must be an array of strings.";jw.DEFAULT_ALLOWED_HOSTS=["*.mongodb.net","*.mongodb-dev.net","*.mongodbgov.net","localhost","127.0.0.1","::1"];var ag="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class QZ{constructor(J){if(this.username=J.username??"",this.password=J.password,this.source=J.source,!this.source&&J.db)this.source=J.db;if(this.mechanism=J.mechanism||d1.AuthMechanism.MONGODB_DEFAULT,this.mechanismProperties=J.mechanismProperties||{},this.mechanism.match(/MONGODB-AWS/i)){if(!this.username&&process.env.AWS_ACCESS_KEY_ID)this.username=process.env.AWS_ACCESS_KEY_ID;if(!this.password&&process.env.AWS_SECRET_ACCESS_KEY)this.password=process.env.AWS_SECRET_ACCESS_KEY;if(this.mechanismProperties.AWS_SESSION_TOKEN==null&&process.env.AWS_SESSION_TOKEN!=null)this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN}}if(this.mechanism===d1.AuthMechanism.MONGODB_OIDC&&!this.mechanismProperties.ALLOWED_HOSTS)this.mechanismProperties={...this.mechanismProperties,ALLOWED_HOSTS:jw.DEFAULT_ALLOWED_HOSTS};Object.freeze(this.mechanismProperties),Object.freeze(this)}equals(J){return this.mechanism===J.mechanism&&this.username===J.username&&this.password===J.password&&this.source===J.source}resolveAuthMechanism(J){if(this.mechanism.match(/DEFAULT/i))return new QZ({username:this.username,password:this.password,source:this.source,mechanism:lg(J),mechanismProperties:this.mechanismProperties});return this}validate(){if((this.mechanism===d1.AuthMechanism.MONGODB_GSSAPI||this.mechanism===d1.AuthMechanism.MONGODB_CR||this.mechanism===d1.AuthMechanism.MONGODB_PLAIN||this.mechanism===d1.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===d1.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new s0.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(this.mechanism===d1.AuthMechanism.MONGODB_OIDC){if(this.username&&this.mechanismProperties.PROVIDER_NAME)throw new s0.MongoInvalidArgumentError(`username and PROVIDER_NAME may not be used together for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.PROVIDER_NAME==="azure"&&!this.mechanismProperties.TOKEN_AUDIENCE)throw new s0.MongoAzureError(ag);if(this.mechanismProperties.PROVIDER_NAME&&!Uw.includes(this.mechanismProperties.PROVIDER_NAME))throw new s0.MongoInvalidArgumentError(`Currently only a PROVIDER_NAME in ${Uw.join(",")} is supported for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.REFRESH_TOKEN_CALLBACK&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new s0.MongoInvalidArgumentError(`A REQUEST_TOKEN_CALLBACK must be provided when using a REFRESH_TOKEN_CALLBACK for mechanism '${this.mechanism}'`);if(!this.mechanismProperties.PROVIDER_NAME&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new s0.MongoInvalidArgumentError(`Either a PROVIDER_NAME or a REQUEST_TOKEN_CALLBACK must be specified for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.ALLOWED_HOSTS){const Z=this.mechanismProperties.ALLOWED_HOSTS;if(!Array.isArray(Z))throw new s0.MongoInvalidArgumentError(Mw);for(let $ of Z)if(typeof $!=="string")throw new s0.MongoInvalidArgumentError(Mw)}}if(d1.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)){if(this.source!=null&&this.source!=="$external")throw new s0.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`)}if(this.mechanism===d1.AuthMechanism.MONGODB_PLAIN&&this.source==null)throw new s0.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===d1.AuthMechanism.MONGODB_X509&&this.password!=null){if(this.password===""){Reflect.set(this,"password",void 0);return}throw new s0.MongoAPIError("Password not allowed for mechanism MONGODB-X509")}const J=this.mechanismProperties.CANONICALIZE_HOST_NAME??!1;if(!Object.values(pg.GSSAPICanonicalizationValue).includes(J))throw new s0.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${J}`)}static merge(J,Z){return new QZ({username:Z.username??J?.username??"",password:Z.password??J?.password??"",mechanism:Z.mechanism??J?.mechanism??d1.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:Z.mechanismProperties??J?.mechanismProperties??{},source:Z.source??Z.db??J?.source??"admin"})}}jw.MongoCredentials=QZ});var FZ=V((Pw)=>{var K1=function(J,Z,$){if($.globals)J=$.globals[J.name];return new J(`${$.context?$.context:"Value"} ${Z}.`)},w7=function(J,Z){if(typeof J==="bigint")throw K1(TypeError,"is a BigInt which cannot be converted to a number",Z);if(!Z.globals)return Number(J);return Z.globals.Number(J)},Rw=function(J){if(J>0&&J%1===0.5&&(J&1)===0||J<0&&J%1===-0.5&&(J&1)===1)return o5(Math.floor(J));return o5(Math.round(J))},GZ=function(J){return o5(Math.trunc(J))},ww=function(J){return J<0?-1:1},ig=function(J,Z){const $=J%Z;if(ww(Z)!==ww($))return $+Z;return $},o5=function(J){return J===0?0:J},R7=function(J,{unsigned:Z}){let $,X;if(Z)$=0,X=2**J-1;else $=-(2**(J-1)),X=2**(J-1)-1;const Y=2**J,Q=2**(J-1);return(K,G={})=>{let F=w7(K,G);if(F=o5(F),G.enforceRange){if(!Number.isFinite(F))throw K1(TypeError,"is not a finite number",G);if(F=GZ(F),F<$||F>X)throw K1(TypeError,`is outside the accepted range of ${$} to ${X}, inclusive`,G);return F}if(!Number.isNaN(F)&&G.clamp)return F=Math.min(Math.max(F,$),X),F=Rw(F),F;if(!Number.isFinite(F)||F===0)return 0;if(F=GZ(F),F>=$&&F<=X)return F;if(F=ig(F,Y),!Z&&F>=Q)return F-Y;return F}},Dw=function(J,{unsigned:Z}){const $=Number.MAX_SAFE_INTEGER,X=Z?0:Number.MIN_SAFE_INTEGER,Y=Z?BigInt.asUintN:BigInt.asIntN;return(Q,K={})=>{let G=w7(Q,K);if(G=o5(G),K.enforceRange){if(!Number.isFinite(G))throw K1(TypeError,"is not a finite number",K);if(G=GZ(G),G<X||G>$)throw K1(TypeError,`is outside the accepted range of ${X} to ${$}, inclusive`,K);return G}if(!Number.isNaN(G)&&K.clamp)return G=Math.min(Math.max(G,X),$),G=Rw(G),G;if(!Number.isFinite(G)||G===0)return 0;let F=BigInt(GZ(G));return F=Y(J,F),Number(F)}},yY=function(J){try{return sg.call(J),!0}catch{return!1}},A7=function(J){try{return ng.call(J),!0}catch{return!1}},L7=function(J){try{return new Uint8Array(J),!1}catch{return!0}};Pw.any=(J)=>{return J};Pw.undefined=()=>{return};Pw.boolean=(J)=>{return Boolean(J)};Pw.byte=R7(8,{unsigned:!1});Pw.octet=R7(8,{unsigned:!0});Pw.short=R7(16,{unsigned:!1});Pw["unsigned short"]=R7(16,{unsigned:!0});Pw.long=R7(32,{unsigned:!1});Pw["unsigned long"]=R7(32,{unsigned:!0});Pw["long long"]=Dw(64,{unsigned:!1});Pw["unsigned long long"]=Dw(64,{unsigned:!0});Pw.double=(J,Z={})=>{const $=w7(J,Z);if(!Number.isFinite($))throw K1(TypeError,"is not a finite floating-point value",Z);return $};Pw["unrestricted double"]=(J,Z={})=>{return w7(J,Z)};Pw.float=(J,Z={})=>{const $=w7(J,Z);if(!Number.isFinite($))throw K1(TypeError,"is not a finite floating-point value",Z);if(Object.is($,-0))return $;const X=Math.fround($);if(!Number.isFinite(X))throw K1(TypeError,"is outside the range of a single-precision floating-point value",Z);return X};Pw["unrestricted float"]=(J,Z={})=>{const $=w7(J,Z);if(isNaN($))return $;if(Object.is($,-0))return $;return Math.fround($)};Pw.DOMString=(J,Z={})=>{if(Z.treatNullAsEmptyString&&J===null)return"";if(typeof J==="symbol")throw K1(TypeError,"is a symbol, which cannot be converted to a string",Z);return(Z.globals?Z.globals.String:String)(J)};Pw.ByteString=(J,Z={})=>{const $=Pw.DOMString(J,Z);let X;for(let Y=0;(X=$.codePointAt(Y))!==void 0;++Y)if(X>255)throw K1(TypeError,"is not a valid ByteString",Z);return $};Pw.USVString=(J,Z={})=>{const $=Pw.DOMString(J,Z),X=$.length,Y=[];for(let Q=0;Q<X;++Q){const K=$.charCodeAt(Q);if(K<55296||K>57343)Y.push(String.fromCodePoint(K));else if(56320<=K&&K<=57343)Y.push(String.fromCodePoint(65533));else if(Q===X-1)Y.push(String.fromCodePoint(65533));else{const G=$.charCodeAt(Q+1);if(56320<=G&&G<=57343){const F=K&1023,q=G&1023;Y.push(String.fromCodePoint((2<<15)+(2<<9)*F+q)),++Q}else Y.push(String.fromCodePoint(65533))}}return Y.join("")};Pw.object=(J,Z={})=>{if(J===null||typeof J!=="object"&&typeof J!=="function")throw K1(TypeError,"is not an object",Z);return J};var sg=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,ng=typeof SharedArrayBuffer==="function"?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;Pw.ArrayBuffer=(J,Z={})=>{if(!yY(J)){if(Z.allowShared&&!A7(J))throw K1(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",Z);throw K1(TypeError,"is not an ArrayBuffer",Z)}if(L7(J))throw K1(TypeError,"is a detached ArrayBuffer",Z);return J};var tg=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;Pw.DataView=(J,Z={})=>{try{tg.call(J)}catch($){throw K1(TypeError,"is not a DataView",Z)}if(!Z.allowShared&&A7(J.buffer))throw K1(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",Z);if(L7(J.buffer))throw K1(TypeError,"is backed by a detached ArrayBuffer",Z);return J};var rg=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((J)=>{const{name:Z}=J,$=/^[AEIOU]/u.test(Z)?"an":"a";Pw[Z]=(X,Y={})=>{if(!ArrayBuffer.isView(X)||rg.call(X)!==Z)throw K1(TypeError,`is not ${$} ${Z} object`,Y);if(!Y.allowShared&&A7(X.buffer))throw K1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Y);if(L7(X.buffer))throw K1(TypeError,"is a view on a detached ArrayBuffer",Y);return X}});Pw.ArrayBufferView=(J,Z={})=>{if(!ArrayBuffer.isView(J))throw K1(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",Z);if(!Z.allowShared&&A7(J.buffer))throw K1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Z);if(L7(J.buffer))throw K1(TypeError,"is a view on a detached ArrayBuffer",Z);return J};Pw.BufferSource=(J,Z={})=>{if(ArrayBuffer.isView(J)){if(!Z.allowShared&&A7(J.buffer))throw K1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Z);if(L7(J.buffer))throw K1(TypeError,"is a view on a detached ArrayBuffer",Z);return J}if(!Z.allowShared&&!yY(J))throw K1(TypeError,"is not an ArrayBuffer or a view on one",Z);if(Z.allowShared&&!A7(J)&&!yY(J))throw K1(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",Z);if(L7(J))throw K1(TypeError,"is a detached ArrayBuffer",Z);return J};Pw.DOMTimeStamp=Pw["unsigned long long"]});var WZ=V((Sw,Ow)=>{var Rm=function(J){return typeof J==="object"&&J!==null||typeof J==="function"},Dm=function(J,Z){for(let $ of Reflect.ownKeys(Z)){const X=Reflect.getOwnPropertyDescriptor(Z,$);if(X&&!Reflect.defineProperty(J,$,X))throw new TypeError(`Cannot redefine property: ${String($)}`)}},Pm=function(J,Z){const $=Ew(J);return Object.defineProperties(Object.create($["%Object.prototype%"]),Object.getOwnPropertyDescriptors(Z))},Ew=function(J){if(Iw(J,qZ))return J[qZ];const Z=Object.create(null);Z["%Object.prototype%"]=J.Object.prototype,Z["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(new J.Array()[Symbol.iterator]()));try{Z["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(J.eval("(async function* () {})").prototype))}catch{Z["%AsyncIteratorPrototype%"]=Tm}return J[qZ]=Z,Z},Im=function(J,Z,$){if(!J[D7])J[D7]=Object.create(null);if(Z in J[D7])return J[D7][Z];return J[D7][Z]=$(),J[D7][Z]},Cw=function(J){return J?J[Nw]:null},hw=function(J){return J?J[Bw]:null},Nm=function(J){const Z=Cw(J);return Z?Z:J},Bm=function(J){const Z=hw(J);return Z?Z:J},Cm=function(J){if(typeof J!=="string")return!1;const Z=J>>>0;if(Z===4294967295)return!1;const $=`${Z}`;if(J!==$)return!1;return!0},Sm=function(J){try{return hm.call(J),!0}catch(Z){return!1}},Om=function([J,Z],$){let X;switch($){case"key":X=J;break;case"value":X=Z;break;case"key+value":X=[J,Z];break}return{value:X,done:!1}},Iw=Function.prototype.call.bind(Object.prototype.hasOwnProperty),Nw=Symbol("wrapper"),Bw=Symbol("impl"),D7=Symbol("SameObject caches"),qZ=Symbol.for("[webidl2js] constructor registry"),Tm=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),Em=Symbol("internal"),hm=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,km=Symbol("supports property index"),ym=Symbol("supported property indices"),_m=Symbol("supports property name"),fm=Symbol("supported property names"),vm=Symbol("indexed property get"),xm=Symbol("indexed property set new"),bm=Symbol("indexed property set existing"),gm=Symbol("named property get"),mm=Symbol("named property set new"),um=Symbol("named property set existing"),dm=Symbol("named property delete"),cm=Symbol("async iterator get the next iteration result"),pm=Symbol("async iterator return steps"),lm=Symbol("async iterator initialization steps"),am=Symbol("async iterator end of iteration");Ow.exports=Sw={isObject:Rm,hasOwn:Iw,define:Dm,newObjectInRealm:Pm,wrapperSymbol:Nw,implSymbol:Bw,getSameObject:Im,ctorRegistrySymbol:qZ,initCtorRegistry:Ew,wrapperForImpl:Cw,implForWrapper:hw,tryWrapperForImpl:Nm,tryImplForWrapper:Bm,iterInternalSymbol:Em,isArrayBuffer:Sm,isArrayIndexPropName:Cm,supportsPropertyIndex:km,supportedPropertyIndices:ym,supportsPropertyName:_m,supportedPropertyNames:fm,indexedGet:vm,indexedSetNew:xm,indexedSetExisting:bm,namedGet:gm,namedSetNew:mm,namedSetExisting:um,namedDelete:dm,asyncIteratorNext:cm,asyncIteratorReturn:pm,asyncIteratorInit:lm,asyncIteratorEOI:am,iteratorResult:Om}});var gw=V((h01,bw)=>{var b8=function(J){throw new RangeError(tm[J])},rm=function(J,Z){const $=[];let X=J.length;while(X--)$[X]=Z(J[X]);return $},yw=function(J,Z){const $=J.split("@");let X="";if($.length>1)X=$[0]+"@",J=$[1];J=J.replace(nm,".");const Y=J.split("."),Q=rm(Y,Z).join(".");return X+Q},_w=function(J){const Z=[];let $=0;const X=J.length;while($<X){const Y=J.charCodeAt($++);if(Y>=55296&&Y<=56319&&$<X){const Q=J.charCodeAt($++);if((Q&64512)==56320)Z.push(((Y&1023)<<10)+(Q&1023)+65536);else Z.push(Y),$--}else Z.push(Y)}return Z},im=/^xn--/,sm=/[^\0-\x7F]/,nm=/[\x2E\u3002\uFF0E\uFF61]/g,tm={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k6=Math.floor,fY=String.fromCharCode,om=(J)=>String.fromCodePoint(...J),em=function(J){if(J>=48&&J<58)return 26+(J-48);if(J>=65&&J<91)return J-65;if(J>=97&&J<123)return J-97;return 36},kw=function(J,Z){return J+22+75*(J<26)-((Z!=0)<<5)},fw=function(J,Z,$){let X=0;J=$?k6(J/700):J>>1,J+=k6(J/Z);for(;J>910>>1;X+=36)J=k6(J/35);return k6(X+36*J/(J+38))},vw=function(J){const Z=[],$=J.length;let X=0,Y=128,Q=72,K=J.lastIndexOf("-");if(K<0)K=0;for(let G=0;G<K;++G){if(J.charCodeAt(G)>=128)b8("not-basic");Z.push(J.charCodeAt(G))}for(let G=K>0?K+1:0;G<$;){const F=X;for(let W=1,H=36;;H+=36){if(G>=$)b8("invalid-input");const U=em(J.charCodeAt(G++));if(U>=36)b8("invalid-input");if(U>k6((2147483647-X)/W))b8("overflow");X+=U*W;const j=H<=Q?1:H>=Q+26?26:H-Q;if(U<j)break;const z=36-j;if(W>k6(2147483647/z))b8("overflow");W*=z}const q=Z.length+1;if(Q=fw(X-F,q,F==0),k6(X/q)>2147483647-Y)b8("overflow");Y+=k6(X/q),X%=q,Z.splice(X++,0,Y)}return String.fromCodePoint(...Z)},xw=function(J){const Z=[];J=_w(J);const $=J.length;let X=128,Y=0,Q=72;for(let F of J)if(F<128)Z.push(fY(F));const K=Z.length;let G=K;if(K)Z.push("-");while(G<$){let F=2147483647;for(let W of J)if(W>=X&&W<F)F=W;const q=G+1;if(F-X>k6((2147483647-Y)/q))b8("overflow");Y+=(F-X)*q,X=F;for(let W of J){if(W<X&&++Y>2147483647)b8("overflow");if(W===X){let H=Y;for(let U=36;;U+=36){const j=U<=Q?1:U>=Q+26?26:U-Q;if(H<j)break;const z=H-j,A=36-j;Z.push(fY(kw(j+z%A,0))),H=k6(z/A)}Z.push(fY(kw(H,0))),Q=fw(Y,q,G===K),Y=0,++G}}++Y,++X}return Z.join("")},Ju=function(J){return yw(J,function(Z){return im.test(Z)?vw(Z.slice(4).toLowerCase()):Z})},Zu=function(J){return yw(J,function(Z){return sm.test(Z)?"xn--"+xw(Z):Z})},$u={version:"2.3.1",ucs2:{decode:_w,encode:om},decode:vw,encode:xw,toASCII:Zu,toUnicode:Ju};bw.exports=$u});var uw=V((S01,mw)=>{var Xu=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{11241}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{11F00}\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,Yu=/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}]/u,Qu=/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u08A0-\u08A9\u08AF\u08B0\u08B3\u08B4\u08B6-\u08B8\u08BA-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0855\u0860\u0862-\u0865\u0867-\u086A\u08A0-\u08AC\u08AE-\u08B4\u08B6-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{1E900}-\u{1E943}]/u,Ku=/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,Gu=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,Fu=/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,qu=/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0898-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2426\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E3\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10EFD}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11FD5}-\u{11FF1}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6DB}\u{1D715}\u{1D74F}\u{1D789}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E4EC}-\u{1E4EF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA88}\u{1FA90}-\u{1FABD}\u{1FABF}-\u{1FAC5}\u{1FACE}-\u{1FADB}\u{1FAE0}-\u{1FAE8}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,Wu=/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,Hu=/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,Vu=/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,zu=/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B7E\u1B80-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2426\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E3\u31F0-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{13455}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E4D0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA88}\u{1FA90}-\u{1FABD}\u{1FABF}-\u{1FAC5}\u{1FACE}-\u{1FADB}\u{1FAE0}-\u{1FAE8}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,Uu=/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u;mw.exports={combiningMarks:Xu,combiningClassVirama:Yu,validZWNJ:Qu,bidiDomain:Ku,bidiS1LTR:Gu,bidiS1RTL:Fu,bidiS2:qu,bidiS3:Wu,bidiS4EN:Hu,bidiS4AN:Vu,bidiS5:zu,bidiS6:Uu}});var dw=V((O01,Mu)=>{Mu.exports=[[[0,44],4],[[45,46],2],[47,4],[[48,57],2],[[58,64],4],[65,1,"a"],[66,1,"b"],[67,1,"c"],[68,1,"d"],[69,1,"e"],[70,1,"f"],[71,1,"g"],[72,1,"h"],[73,1,"i"],[74,1,"j"],[75,1,"k"],[76,1,"l"],[77,1,"m"],[78,1,"n"],[79,1,"o"],[80,1,"p"],[81,1,"q"],[82,1,"r"],[83,1,"s"],[84,1,"t"],[85,1,"u"],[86,1,"v"],[87,1,"w"],[88,1,"x"],[89,1,"y"],[90,1,"z"],[[91,96],4],[[97,122],2],[[123,127],4],[[128,159],3],[160,5," "],[[161,167],2],[168,5," \u0308"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," \u0304"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," \u0301"],[181,1,"\u03BC"],[182,2],[183,2],[184,5," \u0327"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1\u20444"],[189,1,"1\u20442"],[190,1,"3\u20444"],[191,2],[192,1,"\xE0"],[193,1,"\xE1"],[194,1,"\xE2"],[195,1,"\xE3"],[196,1,"\xE4"],[197,1,"\xE5"],[198,1,"\xE6"],[199,1,"\xE7"],[200,1,"\xE8"],[201,1,"\xE9"],[202,1,"\xEA"],[203,1,"\xEB"],[204,1,"\xEC"],[205,1,"\xED"],[206,1,"\xEE"],[207,1,"\xEF"],[208,1,"\xF0"],[209,1,"\xF1"],[210,1,"\xF2"],[211,1,"\xF3"],[212,1,"\xF4"],[213,1,"\xF5"],[214,1,"\xF6"],[215,2],[216,1,"\xF8"],[217,1,"\xF9"],[218,1,"\xFA"],[219,1,"\xFB"],[220,1,"\xFC"],[221,1,"\xFD"],[222,1,"\xFE"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"\u0101"],[257,2],[258,1,"\u0103"],[259,2],[260,1,"\u0105"],[261,2],[262,1,"\u0107"],[263,2],[264,1,"\u0109"],[265,2],[266,1,"\u010B"],[267,2],[268,1,"\u010D"],[269,2],[270,1,"\u010F"],[271,2],[272,1,"\u0111"],[273,2],[274,1,"\u0113"],[275,2],[276,1,"\u0115"],[277,2],[278,1,"\u0117"],[279,2],[280,1,"\u0119"],[281,2],[282,1,"\u011B"],[283,2],[284,1,"\u011D"],[285,2],[286,1,"\u011F"],[287,2],[288,1,"\u0121"],[289,2],[290,1,"\u0123"],[291,2],[292,1,"\u0125"],[293,2],[294,1,"\u0127"],[295,2],[296,1,"\u0129"],[297,2],[298,1,"\u012B"],[299,2],[300,1,"\u012D"],[301,2],[302,1,"\u012F"],[303,2],[304,1,"i\u0307"],[305,2],[[306,307],1,"ij"],[308,1,"\u0135"],[309,2],[310,1,"\u0137"],[[311,312],2],[313,1,"\u013A"],[314,2],[315,1,"\u013C"],[316,2],[317,1,"\u013E"],[318,2],[[319,320],1,"l\xB7"],[321,1,"\u0142"],[322,2],[323,1,"\u0144"],[324,2],[325,1,"\u0146"],[326,2],[327,1,"\u0148"],[328,2],[329,1,"\u02BCn"],[330,1,"\u014B"],[331,2],[332,1,"\u014D"],[333,2],[334,1,"\u014F"],[335,2],[336,1,"\u0151"],[337,2],[338,1,"\u0153"],[339,2],[340,1,"\u0155"],[341,2],[342,1,"\u0157"],[343,2],[344,1,"\u0159"],[345,2],[346,1,"\u015B"],[347,2],[348,1,"\u015D"],[349,2],[350,1,"\u015F"],[351,2],[352,1,"\u0161"],[353,2],[354,1,"\u0163"],[355,2],[356,1,"\u0165"],[357,2],[358,1,"\u0167"],[359,2],[360,1,"\u0169"],[361,2],[362,1,"\u016B"],[363,2],[364,1,"\u016D"],[365,2],[366,1,"\u016F"],[367,2],[368,1,"\u0171"],[369,2],[370,1,"\u0173"],[371,2],[372,1,"\u0175"],[373,2],[374,1,"\u0177"],[375,2],[376,1,"\xFF"],[377,1,"\u017A"],[378,2],[379,1,"\u017C"],[380,2],[381,1,"\u017E"],[382,2],[383,1,"s"],[384,2],[385,1,"\u0253"],[386,1,"\u0183"],[387,2],[388,1,"\u0185"],[389,2],[390,1,"\u0254"],[391,1,"\u0188"],[392,2],[393,1,"\u0256"],[394,1,"\u0257"],[395,1,"\u018C"],[[396,397],2],[398,1,"\u01DD"],[399,1,"\u0259"],[400,1,"\u025B"],[401,1,"\u0192"],[402,2],[403,1,"\u0260"],[404,1,"\u0263"],[405,2],[406,1,"\u0269"],[407,1,"\u0268"],[408,1,"\u0199"],[[409,411],2],[412,1,"\u026F"],[413,1,"\u0272"],[414,2],[415,1,"\u0275"],[416,1,"\u01A1"],[417,2],[418,1,"\u01A3"],[419,2],[420,1,"\u01A5"],[421,2],[422,1,"\u0280"],[423,1,"\u01A8"],[424,2],[425,1,"\u0283"],[[426,427],2],[428,1,"\u01AD"],[429,2],[430,1,"\u0288"],[431,1,"\u01B0"],[432,2],[433,1,"\u028A"],[434,1,"\u028B"],[435,1,"\u01B4"],[436,2],[437,1,"\u01B6"],[438,2],[439,1,"\u0292"],[440,1,"\u01B9"],[[441,443],2],[444,1,"\u01BD"],[[445,451],2],[[452,454],1,"d\u017E"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"\u01CE"],[462,2],[463,1,"\u01D0"],[464,2],[465,1,"\u01D2"],[466,2],[467,1,"\u01D4"],[468,2],[469,1,"\u01D6"],[470,2],[471,1,"\u01D8"],[472,2],[473,1,"\u01DA"],[474,2],[475,1,"\u01DC"],[[476,477],2],[478,1,"\u01DF"],[479,2],[480,1,"\u01E1"],[481,2],[482,1,"\u01E3"],[483,2],[484,1,"\u01E5"],[485,2],[486,1,"\u01E7"],[487,2],[488,1,"\u01E9"],[489,2],[490,1,"\u01EB"],[491,2],[492,1,"\u01ED"],[493,2],[494,1,"\u01EF"],[[495,496],2],[[497,499],1,"dz"],[500,1,"\u01F5"],[501,2],[502,1,"\u0195"],[503,1,"\u01BF"],[504,1,"\u01F9"],[505,2],[506,1,"\u01FB"],[507,2],[508,1,"\u01FD"],[509,2],[510,1,"\u01FF"],[511,2],[512,1,"\u0201"],[513,2],[514,1,"\u0203"],[515,2],[516,1,"\u0205"],[517,2],[518,1,"\u0207"],[519,2],[520,1,"\u0209"],[521,2],[522,1,"\u020B"],[523,2],[524,1,"\u020D"],[525,2],[526,1,"\u020F"],[527,2],[528,1,"\u0211"],[529,2],[530,1,"\u0213"],[531,2],[532,1,"\u0215"],[533,2],[534,1,"\u0217"],[535,2],[536,1,"\u0219"],[537,2],[538,1,"\u021B"],[539,2],[540,1,"\u021D"],[541,2],[542,1,"\u021F"],[543,2],[544,1,"\u019E"],[545,2],[546,1,"\u0223"],[547,2],[548,1,"\u0225"],[549,2],[550,1,"\u0227"],[551,2],[552,1,"\u0229"],[553,2],[554,1,"\u022B"],[555,2],[556,1,"\u022D"],[557,2],[558,1,"\u022F"],[559,2],[560,1,"\u0231"],[561,2],[562,1,"\u0233"],[563,2],[[564,566],2],[[567,569],2],[570,1,"\u2C65"],[571,1,"\u023C"],[572,2],[573,1,"\u019A"],[574,1,"\u2C66"],[[575,576],2],[577,1,"\u0242"],[578,2],[579,1,"\u0180"],[580,1,"\u0289"],[581,1,"\u028C"],[582,1,"\u0247"],[583,2],[584,1,"\u0249"],[585,2],[586,1,"\u024B"],[587,2],[588,1,"\u024D"],[589,2],[590,1,"\u024F"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"\u0266"],[690,1,"j"],[691,1,"r"],[692,1,"\u0279"],[693,1,"\u027B"],[694,1,"\u0281"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," \u0306"],[729,5," \u0307"],[730,5," \u030A"],[731,5," \u0328"],[732,5," \u0303"],[733,5," \u030B"],[734,2],[735,2],[736,1,"\u0263"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"\u0295"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"\u0300"],[833,1,"\u0301"],[834,2],[835,1,"\u0313"],[836,1,"\u0308\u0301"],[837,1,"\u03B9"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"\u0371"],[881,2],[882,1,"\u0373"],[883,2],[884,1,"\u02B9"],[885,2],[886,1,"\u0377"],[887,2],[[888,889],3],[890,5," \u03B9"],[[891,893],2],[894,5,";"],[895,1,"\u03F3"],[[896,899],3],[900,5," \u0301"],[901,5," \u0308\u0301"],[902,1,"\u03AC"],[903,1,"\xB7"],[904,1,"\u03AD"],[905,1,"\u03AE"],[906,1,"\u03AF"],[907,3],[908,1,"\u03CC"],[909,3],[910,1,"\u03CD"],[911,1,"\u03CE"],[912,2],[913,1,"\u03B1"],[914,1,"\u03B2"],[915,1,"\u03B3"],[916,1,"\u03B4"],[917,1,"\u03B5"],[918,1,"\u03B6"],[919,1,"\u03B7"],[920,1,"\u03B8"],[921,1,"\u03B9"],[922,1,"\u03BA"],[923,1,"\u03BB"],[924,1,"\u03BC"],[925,1,"\u03BD"],[926,1,"\u03BE"],[927,1,"\u03BF"],[928,1,"\u03C0"],[929,1,"\u03C1"],[930,3],[931,1,"\u03C3"],[932,1,"\u03C4"],[933,1,"\u03C5"],[934,1,"\u03C6"],[935,1,"\u03C7"],[936,1,"\u03C8"],[937,1,"\u03C9"],[938,1,"\u03CA"],[939,1,"\u03CB"],[[940,961],2],[962,6,"\u03C3"],[[963,974],2],[975,1,"\u03D7"],[976,1,"\u03B2"],[977,1,"\u03B8"],[978,1,"\u03C5"],[979,1,"\u03CD"],[980,1,"\u03CB"],[981,1,"\u03C6"],[982,1,"\u03C0"],[983,2],[984,1,"\u03D9"],[985,2],[986,1,"\u03DB"],[987,2],[988,1,"\u03DD"],[989,2],[990,1,"\u03DF"],[991,2],[992,1,"\u03E1"],[993,2],[994,1,"\u03E3"],[995,2],[996,1,"\u03E5"],[997,2],[998,1,"\u03E7"],[999,2],[1000,1,"\u03E9"],[1001,2],[1002,1,"\u03EB"],[1003,2],[1004,1,"\u03ED"],[1005,2],[1006,1,"\u03EF"],[1007,2],[1008,1,"\u03BA"],[1009,1,"\u03C1"],[1010,1,"\u03C3"],[1011,2],[1012,1,"\u03B8"],[1013,1,"\u03B5"],[1014,2],[1015,1,"\u03F8"],[1016,2],[1017,1,"\u03C3"],[1018,1,"\u03FB"],[1019,2],[1020,2],[1021,1,"\u037B"],[1022,1,"\u037C"],[1023,1,"\u037D"],[1024,1,"\u0450"],[1025,1,"\u0451"],[1026,1,"\u0452"],[1027,1,"\u0453"],[1028,1,"\u0454"],[1029,1,"\u0455"],[1030,1,"\u0456"],[1031,1,"\u0457"],[1032,1,"\u0458"],[1033,1,"\u0459"],[1034,1,"\u045A"],[1035,1,"\u045B"],[1036,1,"\u045C"],[1037,1,"\u045D"],[1038,1,"\u045E"],[1039,1,"\u045F"],[1040,1,"\u0430"],[1041,1,"\u0431"],[1042,1,"\u0432"],[1043,1,"\u0433"],[1044,1,"\u0434"],[1045,1,"\u0435"],[1046,1,"\u0436"],[1047,1,"\u0437"],[1048,1,"\u0438"],[1049,1,"\u0439"],[1050,1,"\u043A"],[1051,1,"\u043B"],[1052,1,"\u043C"],[1053,1,"\u043D"],[1054,1,"\u043E"],[1055,1,"\u043F"],[1056,1,"\u0440"],[1057,1,"\u0441"],[1058,1,"\u0442"],[1059,1,"\u0443"],[1060,1,"\u0444"],[1061,1,"\u0445"],[1062,1,"\u0446"],[1063,1,"\u0447"],[1064,1,"\u0448"],[1065,1,"\u0449"],[1066,1,"\u044A"],[1067,1,"\u044B"],[1068,1,"\u044C"],[1069,1,"\u044D"],[1070,1,"\u044E"],[1071,1,"\u044F"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"\u0461"],[1121,2],[1122,1,"\u0463"],[1123,2],[1124,1,"\u0465"],[1125,2],[1126,1,"\u0467"],[1127,2],[1128,1,"\u0469"],[1129,2],[1130,1,"\u046B"],[1131,2],[1132,1,"\u046D"],[1133,2],[1134,1,"\u046F"],[1135,2],[1136,1,"\u0471"],[1137,2],[1138,1,"\u0473"],[1139,2],[1140,1,"\u0475"],[1141,2],[1142,1,"\u0477"],[1143,2],[1144,1,"\u0479"],[1145,2],[1146,1,"\u047B"],[1147,2],[1148,1,"\u047D"],[1149,2],[1150,1,"\u047F"],[1151,2],[1152,1,"\u0481"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"\u048B"],[1163,2],[1164,1,"\u048D"],[1165,2],[1166,1,"\u048F"],[1167,2],[1168,1,"\u0491"],[1169,2],[1170,1,"\u0493"],[1171,2],[1172,1,"\u0495"],[1173,2],[1174,1,"\u0497"],[1175,2],[1176,1,"\u0499"],[1177,2],[1178,1,"\u049B"],[1179,2],[1180,1,"\u049D"],[1181,2],[1182,1,"\u049F"],[1183,2],[1184,1,"\u04A1"],[1185,2],[1186,1,"\u04A3"],[1187,2],[1188,1,"\u04A5"],[1189,2],[1190,1,"\u04A7"],[1191,2],[1192,1,"\u04A9"],[1193,2],[1194,1,"\u04AB"],[1195,2],[1196,1,"\u04AD"],[1197,2],[1198,1,"\u04AF"],[1199,2],[1200,1,"\u04B1"],[1201,2],[1202,1,"\u04B3"],[1203,2],[1204,1,"\u04B5"],[1205,2],[1206,1,"\u04B7"],[1207,2],[1208,1,"\u04B9"],[1209,2],[1210,1,"\u04BB"],[1211,2],[1212,1,"\u04BD"],[1213,2],[1214,1,"\u04BF"],[1215,2],[1216,3],[1217,1,"\u04C2"],[1218,2],[1219,1,"\u04C4"],[1220,2],[1221,1,"\u04C6"],[1222,2],[1223,1,"\u04C8"],[1224,2],[1225,1,"\u04CA"],[1226,2],[1227,1,"\u04CC"],[1228,2],[1229,1,"\u04CE"],[1230,2],[1231,2],[1232,1,"\u04D1"],[1233,2],[1234,1,"\u04D3"],[1235,2],[1236,1,"\u04D5"],[1237,2],[1238,1,"\u04D7"],[1239,2],[1240,1,"\u04D9"],[1241,2],[1242,1,"\u04DB"],[1243,2],[1244,1,"\u04DD"],[1245,2],[1246,1,"\u04DF"],[1247,2],[1248,1,"\u04E1"],[1249,2],[1250,1,"\u04E3"],[1251,2],[1252,1,"\u04E5"],[1253,2],[1254,1,"\u04E7"],[1255,2],[1256,1,"\u04E9"],[1257,2],[1258,1,"\u04EB"],[1259,2],[1260,1,"\u04ED"],[1261,2],[1262,1,"\u04EF"],[1263,2],[1264,1,"\u04F1"],[1265,2],[1266,1,"\u04F3"],[1267,2],[1268,1,"\u04F5"],[1269,2],[1270,1,"\u04F7"],[1271,2],[1272,1,"\u04F9"],[1273,2],[1274,1,"\u04FB"],[1275,2],[1276,1,"\u04FD"],[1277,2],[1278,1,"\u04FF"],[1279,2],[1280,1,"\u0501"],[1281,2],[1282,1,"\u0503"],[1283,2],[1284,1,"\u0505"],[1285,2],[1286,1,"\u0507"],[1287,2],[1288,1,"\u0509"],[1289,2],[1290,1,"\u050B"],[1291,2],[1292,1,"\u050D"],[1293,2],[1294,1,"\u050F"],[1295,2],[1296,1,"\u0511"],[1297,2],[1298,1,"\u0513"],[1299,2],[1300,1,"\u0515"],[1301,2],[1302,1,"\u0517"],[1303,2],[1304,1,"\u0519"],[1305,2],[1306,1,"\u051B"],[1307,2],[1308,1,"\u051D"],[1309,2],[1310,1,"\u051F"],[1311,2],[1312,1,"\u0521"],[1313,2],[1314,1,"\u0523"],[1315,2],[1316,1,"\u0525"],[1317,2],[1318,1,"\u0527"],[1319,2],[1320,1,"\u0529"],[1321,2],[1322,1,"\u052B"],[1323,2],[1324,1,"\u052D"],[1325,2],[1326,1,"\u052F"],[1327,2],[1328,3],[1329,1,"\u0561"],[1330,1,"\u0562"],[1331,1,"\u0563"],[1332,1,"\u0564"],[1333,1,"\u0565"],[1334,1,"\u0566"],[1335,1,"\u0567"],[1336,1,"\u0568"],[1337,1,"\u0569"],[1338,1,"\u056A"],[1339,1,"\u056B"],[1340,1,"\u056C"],[1341,1,"\u056D"],[1342,1,"\u056E"],[1343,1,"\u056F"],[1344,1,"\u0570"],[1345,1,"\u0571"],[1346,1,"\u0572"],[1347,1,"\u0573"],[1348,1,"\u0574"],[1349,1,"\u0575"],[1350,1,"\u0576"],[1351,1,"\u0577"],[1352,1,"\u0578"],[1353,1,"\u0579"],[1354,1,"\u057A"],[1355,1,"\u057B"],[1356,1,"\u057C"],[1357,1,"\u057D"],[1358,1,"\u057E"],[1359,1,"\u057F"],[1360,1,"\u0580"],[1361,1,"\u0581"],[1362,1,"\u0582"],[1363,1,"\u0583"],[1364,1,"\u0584"],[1365,1,"\u0585"],[1366,1,"\u0586"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"\u0565\u0582"],[1416,2],[1417,2],[1418,2],[[1419,1420],3],[[1421,1422],2],[1423,2],[1424,3],[[1425,1441],2],[1442,2],[[1443,1455],2],[[1456,1465],2],[1466,2],[[1467,1469],2],[1470,2],[1471,2],[1472,2],[[1473,1474],2],[1475,2],[1476,2],[1477,2],[1478,2],[1479,2],[[1480,1487],3],[[1488,1514],2],[[1515,1518],3],[1519,2],[[1520,1524],2],[[1525,1535],3],[[1536,1539],3],[1540,3],[1541,3],[[1542,1546],2],[1547,2],[1548,2],[[1549,1551],2],[[1552,1557],2],[[1558,1562],2],[1563,2],[1564,3],[1565,2],[1566,2],[1567,2],[1568,2],[[1569,1594],2],[[1595,1599],2],[1600,2],[[1601,1618],2],[[1619,1621],2],[[1622,1624],2],[[1625,1630],2],[1631,2],[[1632,1641],2],[[1642,1645],2],[[1646,1647],2],[[1648,1652],2],[1653,1,"\u0627\u0674"],[1654,1,"\u0648\u0674"],[1655,1,"\u06C7\u0674"],[1656,1,"\u064A\u0674"],[[1657,1719],2],[[1720,1721],2],[[1722,1726],2],[1727,2],[[1728,1742],2],[1743,2],[[1744,1747],2],[1748,2],[[1749,1756],2],[1757,3],[1758,2],[[1759,1768],2],[1769,2],[[1770,1773],2],[[1774,1775],2],[[1776,1785],2],[[1786,1790],2],[1791,2],[[1792,1805],2],[1806,3],[1807,3],[[1808,1836],2],[[1837,1839],2],[[1840,1866],2],[[1867,1868],3],[[1869,1871],2],[[1872,1901],2],[[1902,1919],2],[[1920,1968],2],[1969,2],[[1970,1983],3],[[1984,2037],2],[[2038,2042],2],[[2043,2044],3],[2045,2],[[2046,2047],2],[[2048,2093],2],[[2094,2095],3],[[2096,2110],2],[2111,3],[[2112,2139],2],[[2140,2141],3],[2142,2],[2143,3],[[2144,2154],2],[[2155,2159],3],[[2160,2183],2],[2184,2],[[2185,2190],2],[2191,3],[[2192,2193],3],[[2194,2199],3],[[2200,2207],2],[2208,2],[2209,2],[[2210,2220],2],[[2221,2226],2],[[2227,2228],2],[2229,2],[[2230,2237],2],[[2238,2247],2],[[2248,2258],2],[2259,2],[[2260,2273],2],[2274,3],[2275,2],[[2276,2302],2],[2303,2],[2304,2],[[2305,2307],2],[2308,2],[[2309,2361],2],[[2362,2363],2],[[2364,2381],2],[2382,2],[2383,2],[[2384,2388],2],[2389,2],[[2390,2391],2],[2392,1,"\u0915\u093C"],[2393,1,"\u0916\u093C"],[2394,1,"\u0917\u093C"],[2395,1,"\u091C\u093C"],[2396,1,"\u0921\u093C"],[2397,1,"\u0922\u093C"],[2398,1,"\u092B\u093C"],[2399,1,"\u092F\u093C"],[[2400,2403],2],[[2404,2405],2],[[2406,2415],2],[2416,2],[[2417,2418],2],[[2419,2423],2],[2424,2],[[2425,2426],2],[[2427,2428],2],[2429,2],[[2430,2431],2],[2432,2],[[2433,2435],2],[2436,3],[[2437,2444],2],[[2445,2446],3],[[2447,2448],2],[[2449,2450],3],[[2451,2472],2],[2473,3],[[2474,2480],2],[2481,3],[2482,2],[[2483,2485],3],[[2486,2489],2],[[2490,2491],3],[2492,2],[2493,2],[[2494,2500],2],[[2501,2502],3],[[2503,2504],2],[[2505,2506],3],[[2507,2509],2],[2510,2],[[2511,2518],3],[2519,2],[[2520,2523],3],[2524,1,"\u09A1\u09BC"],[2525,1,"\u09A2\u09BC"],[2526,3],[2527,1,"\u09AF\u09BC"],[[2528,2531],2],[[2532,2533],3],[[2534,2545],2],[[2546,2554],2],[2555,2],[2556,2],[2557,2],[2558,2],[[2559,2560],3],[2561,2],[2562,2],[2563,2],[2564,3],[[2565,2570],2],[[2571,2574],3],[[2575,2576],2],[[2577,2578],3],[[2579,2600],2],[2601,3],[[2602,2608],2],[2609,3],[2610,2],[2611,1,"\u0A32\u0A3C"],[2612,3],[2613,2],[2614,1,"\u0A38\u0A3C"],[2615,3],[[2616,2617],2],[[2618,2619],3],[2620,2],[2621,3],[[2622,2626],2],[[2627,2630],3],[[2631,2632],2],[[2633,2634],3],[[2635,2637],2],[[2638,2640],3],[2641,2],[[2642,2648],3],[2649,1,"\u0A16\u0A3C"],[2650,1,"\u0A17\u0A3C"],[2651,1,"\u0A1C\u0A3C"],[2652,2],[2653,3],[2654,1,"\u0A2B\u0A3C"],[[2655,2661],3],[[2662,2676],2],[2677,2],[2678,2],[[2679,2688],3],[[2689,2691],2],[2692,3],[[2693,2699],2],[2700,2],[2701,2],[2702,3],[[2703,2705],2],[2706,3],[[2707,2728],2],[2729,3],[[2730,2736],2],[2737,3],[[2738,2739],2],[2740,3],[[2741,2745],2],[[2746,2747],3],[[2748,2757],2],[2758,3],[[2759,2761],2],[2762,3],[[2763,2765],2],[[2766,2767],3],[2768,2],[[2769,2783],3],[2784,2],[[2785,2787],2],[[2788,2789],3],[[2790,2799],2],[2800,2],[2801,2],[[2802,2808],3],[2809,2],[[2810,2815],2],[2816,3],[[2817,2819],2],[2820,3],[[2821,2828],2],[[2829,2830],3],[[2831,2832],2],[[2833,2834],3],[[2835,2856],2],[2857,3],[[2858,2864],2],[2865,3],[[2866,2867],2],[2868,3],[2869,2],[[2870,2873],2],[[2874,2875],3],[[2876,2883],2],[2884,2],[[2885,2886],3],[[2887,2888],2],[[2889,2890],3],[[2891,2893],2],[[2894,2900],3],[2901,2],[[2902,2903],2],[[2904,2907],3],[2908,1,"\u0B21\u0B3C"],[2909,1,"\u0B22\u0B3C"],[2910,3],[[2911,2913],2],[[2914,2915],2],[[2916,2917],3],[[2918,2927],2],[2928,2],[2929,2],[[2930,2935],2],[[2936,2945],3],[[2946,2947],2],[2948,3],[[2949,2954],2],[[2955,2957],3],[[2958,2960],2],[2961,3],[[2962,2965],2],[[2966,2968],3],[[2969,2970],2],[2971,3],[2972,2],[2973,3],[[2974,2975],2],[[2976,2978],3],[[2979,2980],2],[[2981,2983],3],[[2984,2986],2],[[2987,2989],3],[[2990,2997],2],[2998,2],[[2999,3001],2],[[3002,3005],3],[[3006,3010],2],[[3011,3013],3],[[3014,3016],2],[3017,3],[[3018,3021],2],[[3022,3023],3],[3024,2],[[3025,3030],3],[3031,2],[[3032,3045],3],[3046,2],[[3047,3055],2],[[3056,3058],2],[[3059,3066],2],[[3067,3071],3],[3072,2],[[3073,3075],2],[3076,2],[[3077,3084],2],[3085,3],[[3086,3088],2],[3089,3],[[3090,3112],2],[3113,3],[[3114,3123],2],[3124,2],[[3125,3129],2],[[3130,3131],3],[3132,2],[3133,2],[[3134,3140],2],[3141,3],[[3142,3144],2],[3145,3],[[3146,3149],2],[[3150,3156],3],[[3157,3158],2],[3159,3],[[3160,3161],2],[3162,2],[[3163,3164],3],[3165,2],[[3166,3167],3],[[3168,3169],2],[[3170,3171],2],[[3172,3173],3],[[3174,3183],2],[[3184,3190],3],[3191,2],[[3192,3199],2],[3200,2],[3201,2],[[3202,3203],2],[3204,2],[[3205,3212],2],[3213,3],[[3214,3216],2],[3217,3],[[3218,3240],2],[3241,3],[[3242,3251],2],[3252,3],[[3253,3257],2],[[3258,3259],3],[[3260,3261],2],[[3262,3268],2],[3269,3],[[3270,3272],2],[3273,3],[[3274,3277],2],[[3278,3284],3],[[3285,3286],2],[[3287,3292],3],[3293,2],[3294,2],[3295,3],[[3296,3297],2],[[3298,3299],2],[[3300,3301],3],[[3302,3311],2],[3312,3],[[3313,3314],2],[3315,2],[[3316,3327],3],[3328,2],[3329,2],[[3330,3331],2],[3332,2],[[3333,3340],2],[3341,3],[[3342,3344],2],[3345,3],[[3346,3368],2],[3369,2],[[3370,3385],2],[3386,2],[[3387,3388],2],[3389,2],[[3390,3395],2],[3396,2],[3397,3],[[3398,3400],2],[3401,3],[[3402,3405],2],[3406,2],[3407,2],[[3408,3411],3],[[3412,3414],2],[3415,2],[[3416,3422],2],[3423,2],[[3424,3425],2],[[3426,3427],2],[[3428,3429],3],[[3430,3439],2],[[3440,3445],2],[[3446,3448],2],[3449,2],[[3450,3455],2],[3456,3],[3457,2],[[3458,3459],2],[3460,3],[[3461,3478],2],[[3479,3481],3],[[3482,3505],2],[3506,3],[[3507,3515],2],[3516,3],[3517,2],[[3518,3519],3],[[3520,3526],2],[[3527,3529],3],[3530,2],[[3531,3534],3],[[3535,3540],2],[3541,3],[3542,2],[3543,3],[[3544,3551],2],[[3552,3557],3],[[3558,3567],2],[[3568,3569],3],[[3570,3571],2],[3572,2],[[3573,3584],3],[[3585,3634],2],[3635,1,"\u0E4D\u0E32"],[[3636,3642],2],[[3643,3646],3],[3647,2],[[3648,3662],2],[3663,2],[[3664,3673],2],[[3674,3675],2],[[3676,3712],3],[[3713,3714],2],[3715,3],[3716,2],[3717,3],[3718,2],[[3719,3720],2],[3721,2],[3722,2],[3723,3],[3724,2],[3725,2],[[3726,3731],2],[[3732,3735],2],[3736,2],[[3737,3743],2],[3744,2],[[3745,3747],2],[3748,3],[3749,2],[3750,3],[3751,2],[[3752,3753],2],[[3754,3755],2],[3756,2],[[3757,3762],2],[3763,1,"\u0ECD\u0EB2"],[[3764,3769],2],[3770,2],[[3771,3773],2],[[3774,3775],3],[[3776,3780],2],[3781,3],[3782,2],[3783,3],[[3784,3789],2],[3790,2],[3791,3],[[3792,3801],2],[[3802,3803],3],[3804,1,"\u0EAB\u0E99"],[3805,1,"\u0EAB\u0EA1"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"\u0F0B"],[[3853,3863],2],[[3864,3865],2],[[3866,3871],2],[[3872,3881],2],[[3882,3892],2],[3893,2],[3894,2],[3895,2],[3896,2],[3897,2],[[3898,3901],2],[[3902,3906],2],[3907,1,"\u0F42\u0FB7"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"\u0F4C\u0FB7"],[[3918,3921],2],[3922,1,"\u0F51\u0FB7"],[[3923,3926],2],[3927,1,"\u0F56\u0FB7"],[[3928,3931],2],[3932,1,"\u0F5B\u0FB7"],[[3933,3944],2],[3945,1,"\u0F40\u0FB5"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"\u0F71\u0F72"],[3956,2],[3957,1,"\u0F71\u0F74"],[3958,1,"\u0FB2\u0F80"],[3959,1,"\u0FB2\u0F71\u0F80"],[3960,1,"\u0FB3\u0F80"],[3961,1,"\u0FB3\u0F71\u0F80"],[[3962,3968],2],[3969,1,"\u0F71\u0F80"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"\u0F92\u0FB7"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"\u0F9C\u0FB7"],[[3998,4001],2],[4002,1,"\u0FA1\u0FB7"],[[4003,4006],2],[4007,1,"\u0FA6\u0FB7"],[[4008,4011],2],[4012,1,"\u0FAB\u0FB7"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"\u0F90\u0FB5"],[[4026,4028],2],[4029,3],[[4030,4037],2],[4038,2],[[4039,4044],2],[4045,3],[4046,2],[4047,2],[[4048,4049],2],[[4050,4052],2],[[4053,4056],2],[[4057,4058],2],[[4059,4095],3],[[4096,4129],2],[4130,2],[[4131,4135],2],[4136,2],[[4137,4138],2],[4139,2],[[4140,4146],2],[[4147,4149],2],[[4150,4153],2],[[4154,4159],2],[[4160,4169],2],[[4170,4175],2],[[4176,4185],2],[[4186,4249],2],[[4250,4253],2],[[4254,4255],2],[[4256,4293],3],[4294,3],[4295,1,"\u2D27"],[[4296,4300],3],[4301,1,"\u2D2D"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"\u10DC"],[[4349,4351],2],[[4352,4441],2],[[4442,4446],2],[[4447,4448],3],[[4449,4514],2],[[4515,4519],2],[[4520,4601],2],[[4602,4607],2],[[4608,4614],2],[4615,2],[[4616,4678],2],[4679,2],[4680,2],[4681,3],[[4682,4685],2],[[4686,4687],3],[[4688,4694],2],[4695,3],[4696,2],[4697,3],[[4698,4701],2],[[4702,4703],3],[[4704,4742],2],[4743,2],[4744,2],[4745,3],[[4746,4749],2],[[4750,4751],3],[[4752,4782],2],[4783,2],[4784,2],[4785,3],[[4786,4789],2],[[4790,4791],3],[[4792,4798],2],[4799,3],[4800,2],[4801,3],[[4802,4805],2],[[4806,4807],3],[[4808,4814],2],[4815,2],[[4816,4822],2],[4823,3],[[4824,4846],2],[4847,2],[[4848,4878],2],[4879,2],[4880,2],[4881,3],[[4882,4885],2],[[4886,4887],3],[[4888,4894],2],[4895,2],[[4896,4934],2],[4935,2],[[4936,4954],2],[[4955,4956],3],[[4957,4958],2],[4959,2],[4960,2],[[4961,4988],2],[[4989,4991],3],[[4992,5007],2],[[5008,5017],2],[[5018,5023],3],[[5024,5108],2],[5109,2],[[5110,5111],3],[5112,1,"\u13F0"],[5113,1,"\u13F1"],[5114,1,"\u13F2"],[5115,1,"\u13F3"],[5116,1,"\u13F4"],[5117,1,"\u13F5"],[[5118,5119],3],[5120,2],[[5121,5740],2],[[5741,5742],2],[[5743,5750],2],[[5751,5759],2],[5760,3],[[5761,5786],2],[[5787,5788],2],[[5789,5791],3],[[5792,5866],2],[[5867,5872],2],[[5873,5880],2],[[5881,5887],3],[[5888,5900],2],[5901,2],[[5902,5908],2],[5909,2],[[5910,5918],3],[5919,2],[[5920,5940],2],[[5941,5942],2],[[5943,5951],3],[[5952,5971],2],[[5972,5983],3],[[5984,5996],2],[5997,3],[[5998,6000],2],[6001,3],[[6002,6003],2],[[6004,6015],3],[[6016,6067],2],[[6068,6069],3],[[6070,6099],2],[[6100,6102],2],[6103,2],[[6104,6107],2],[6108,2],[6109,2],[[6110,6111],3],[[6112,6121],2],[[6122,6127],3],[[6128,6137],2],[[6138,6143],3],[[6144,6149],2],[6150,3],[[6151,6154],2],[[6155,6157],7],[6158,3],[6159,7],[[6160,6169],2],[[6170,6175],3],[[6176,6263],2],[6264,2],[[6265,6271],3],[[6272,6313],2],[6314,2],[[6315,6319],3],[[6320,6389],2],[[6390,6399],3],[[6400,6428],2],[[6429,6430],2],[6431,3],[[6432,6443],2],[[6444,6447],3],[[6448,6459],2],[[6460,6463],3],[6464,2],[[6465,6467],3],[[6468,6469],2],[[6470,6509],2],[[6510,6511],3],[[6512,6516],2],[[6517,6527],3],[[6528,6569],2],[[6570,6571],2],[[6572,6575],3],[[6576,6601],2],[[6602,6607],3],[[6608,6617],2],[6618,2],[[6619,6621],3],[[6622,6623],2],[[6624,6655],2],[[6656,6683],2],[[6684,6685],3],[[6686,6687],2],[[6688,6750],2],[6751,3],[[6752,6780],2],[[6781,6782],3],[[6783,6793],2],[[6794,6799],3],[[6800,6809],2],[[6810,6815],3],[[6816,6822],2],[6823,2],[[6824,6829],2],[[6830,6831],3],[[6832,6845],2],[6846,2],[[6847,6848],2],[[6849,6862],2],[[6863,6911],3],[[6912,6987],2],[6988,2],[[6989,6991],3],[[6992,7001],2],[[7002,7018],2],[[7019,7027],2],[[7028,7036],2],[[7037,7038],2],[7039,3],[[7040,7082],2],[[7083,7085],2],[[7086,7097],2],[[7098,7103],2],[[7104,7155],2],[[7156,7163],3],[[7164,7167],2],[[7168,7223],2],[[7224,7226],3],[[7227,7231],2],[[7232,7241],2],[[7242,7244],3],[[7245,7293],2],[[7294,7295],2],[7296,1,"\u0432"],[7297,1,"\u0434"],[7298,1,"\u043E"],[7299,1,"\u0441"],[[7300,7301],1,"\u0442"],[7302,1,"\u044A"],[7303,1,"\u0463"],[7304,1,"\uA64B"],[[7305,7311],3],[7312,1,"\u10D0"],[7313,1,"\u10D1"],[7314,1,"\u10D2"],[7315,1,"\u10D3"],[7316,1,"\u10D4"],[7317,1,"\u10D5"],[7318,1,"\u10D6"],[7319,1,"\u10D7"],[7320,1,"\u10D8"],[7321,1,"\u10D9"],[7322,1,"\u10DA"],[7323,1,"\u10DB"],[7324,1,"\u10DC"],[7325,1,"\u10DD"],[7326,1,"\u10DE"],[7327,1,"\u10DF"],[7328,1,"\u10E0"],[7329,1,"\u10E1"],[7330,1,"\u10E2"],[7331,1,"\u10E3"],[7332,1,"\u10E4"],[7333,1,"\u10E5"],[7334,1,"\u10E6"],[7335,1,"\u10E7"],[7336,1,"\u10E8"],[7337,1,"\u10E9"],[7338,1,"\u10EA"],[7339,1,"\u10EB"],[7340,1,"\u10EC"],[7341,1,"\u10ED"],[7342,1,"\u10EE"],[7343,1,"\u10EF"],[7344,1,"\u10F0"],[7345,1,"\u10F1"],[7346,1,"\u10F2"],[7347,1,"\u10F3"],[7348,1,"\u10F4"],[7349,1,"\u10F5"],[7350,1,"\u10F6"],[7351,1,"\u10F7"],[7352,1,"\u10F8"],[7353,1,"\u10F9"],[7354,1,"\u10FA"],[[7355,7356],3],[7357,1,"\u10FD"],[7358,1,"\u10FE"],[7359,1,"\u10FF"],[[7360,7367],2],[[7368,7375],3],[[7376,7378],2],[7379,2],[[7380,7410],2],[[7411,7414],2],[7415,2],[[7416,7417],2],[7418,2],[[7419,7423],3],[[7424,7467],2],[7468,1,"a"],[7469,1,"\xE6"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"\u01DD"],[7475,1,"g"],[7476,1,"h"],[7477,1,"i"],[7478,1,"j"],[7479,1,"k"],[7480,1,"l"],[7481,1,"m"],[7482,1,"n"],[7483,2],[7484,1,"o"],[7485,1,"\u0223"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"\u0250"],[7493,1,"\u0251"],[7494,1,"\u1D02"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"\u0259"],[7499,1,"\u025B"],[7500,1,"\u025C"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"\u014B"],[7506,1,"o"],[7507,1,"\u0254"],[7508,1,"\u1D16"],[7509,1,"\u1D17"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"\u1D1D"],[7514,1,"\u026F"],[7515,1,"v"],[7516,1,"\u1D25"],[7517,1,"\u03B2"],[7518,1,"\u03B3"],[7519,1,"\u03B4"],[7520,1,"\u03C6"],[7521,1,"\u03C7"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"\u03B2"],[7527,1,"\u03B3"],[7528,1,"\u03C1"],[7529,1,"\u03C6"],[7530,1,"\u03C7"],[7531,2],[[7532,7543],2],[7544,1,"\u043D"],[[7545,7578],2],[7579,1,"\u0252"],[7580,1,"c"],[7581,1,"\u0255"],[7582,1,"\xF0"],[7583,1,"\u025C"],[7584,1,"f"],[7585,1,"\u025F"],[7586,1,"\u0261"],[7587,1,"\u0265"],[7588,1,"\u0268"],[7589,1,"\u0269"],[7590,1,"\u026A"],[7591,1,"\u1D7B"],[7592,1,"\u029D"],[7593,1,"\u026D"],[7594,1,"\u1D85"],[7595,1,"\u029F"],[7596,1,"\u0271"],[7597,1,"\u0270"],[7598,1,"\u0272"],[7599,1,"\u0273"],[7600,1,"\u0274"],[7601,1,"\u0275"],[7602,1,"\u0278"],[7603,1,"\u0282"],[7604,1,"\u0283"],[7605,1,"\u01AB"],[7606,1,"\u0289"],[7607,1,"\u028A"],[7608,1,"\u1D1C"],[7609,1,"\u028B"],[7610,1,"\u028C"],[7611,1,"z"],[7612,1,"\u0290"],[7613,1,"\u0291"],[7614,1,"\u0292"],[7615,1,"\u03B8"],[[7616,7619],2],[[7620,7626],2],[[7627,7654],2],[[7655,7669],2],[[7670,7673],2],[7674,2],[7675,2],[7676,2],[7677,2],[[7678,7679],2],[7680,1,"\u1E01"],[7681,2],[7682,1,"\u1E03"],[7683,2],[7684,1,"\u1E05"],[7685,2],[7686,1,"\u1E07"],[7687,2],[7688,1,"\u1E09"],[7689,2],[7690,1,"\u1E0B"],[7691,2],[7692,1,"\u1E0D"],[7693,2],[7694,1,"\u1E0F"],[7695,2],[7696,1,"\u1E11"],[7697,2],[7698,1,"\u1E13"],[7699,2],[7700,1,"\u1E15"],[7701,2],[7702,1,"\u1E17"],[7703,2],[7704,1,"\u1E19"],[7705,2],[7706,1,"\u1E1B"],[7707,2],[7708,1,"\u1E1D"],[7709,2],[7710,1,"\u1E1F"],[7711,2],[7712,1,"\u1E21"],[7713,2],[7714,1,"\u1E23"],[7715,2],[7716,1,"\u1E25"],[7717,2],[7718,1,"\u1E27"],[7719,2],[7720,1,"\u1E29"],[7721,2],[7722,1,"\u1E2B"],[7723,2],[7724,1,"\u1E2D"],[7725,2],[7726,1,"\u1E2F"],[7727,2],[7728,1,"\u1E31"],[7729,2],[7730,1,"\u1E33"],[7731,2],[7732,1,"\u1E35"],[7733,2],[7734,1,"\u1E37"],[7735,2],[7736,1,"\u1E39"],[7737,2],[7738,1,"\u1E3B"],[7739,2],[7740,1,"\u1E3D"],[7741,2],[7742,1,"\u1E3F"],[7743,2],[7744,1,"\u1E41"],[7745,2],[7746,1,"\u1E43"],[7747,2],[7748,1,"\u1E45"],[7749,2],[7750,1,"\u1E47"],[7751,2],[7752,1,"\u1E49"],[7753,2],[7754,1,"\u1E4B"],[7755,2],[7756,1,"\u1E4D"],[7757,2],[7758,1,"\u1E4F"],[7759,2],[7760,1,"\u1E51"],[7761,2],[7762,1,"\u1E53"],[7763,2],[7764,1,"\u1E55"],[7765,2],[7766,1,"\u1E57"],[7767,2],[7768,1,"\u1E59"],[7769,2],[7770,1,"\u1E5B"],[7771,2],[7772,1,"\u1E5D"],[7773,2],[7774,1,"\u1E5F"],[7775,2],[7776,1,"\u1E61"],[7777,2],[7778,1,"\u1E63"],[7779,2],[7780,1,"\u1E65"],[7781,2],[7782,1,"\u1E67"],[7783,2],[7784,1,"\u1E69"],[7785,2],[7786,1,"\u1E6B"],[7787,2],[7788,1,"\u1E6D"],[7789,2],[7790,1,"\u1E6F"],[7791,2],[7792,1,"\u1E71"],[7793,2],[7794,1,"\u1E73"],[7795,2],[7796,1,"\u1E75"],[7797,2],[7798,1,"\u1E77"],[7799,2],[7800,1,"\u1E79"],[7801,2],[7802,1,"\u1E7B"],[7803,2],[7804,1,"\u1E7D"],[7805,2],[7806,1,"\u1E7F"],[7807,2],[7808,1,"\u1E81"],[7809,2],[7810,1,"\u1E83"],[7811,2],[7812,1,"\u1E85"],[7813,2],[7814,1,"\u1E87"],[7815,2],[7816,1,"\u1E89"],[7817,2],[7818,1,"\u1E8B"],[7819,2],[7820,1,"\u1E8D"],[7821,2],[7822,1,"\u1E8F"],[7823,2],[7824,1,"\u1E91"],[7825,2],[7826,1,"\u1E93"],[7827,2],[7828,1,"\u1E95"],[[7829,7833],2],[7834,1,"a\u02BE"],[7835,1,"\u1E61"],[[7836,7837],2],[7838,1,"ss"],[7839,2],[7840,1,"\u1EA1"],[7841,2],[7842,1,"\u1EA3"],[7843,2],[7844,1,"\u1EA5"],[7845,2],[7846,1,"\u1EA7"],[7847,2],[7848,1,"\u1EA9"],[7849,2],[7850,1,"\u1EAB"],[7851,2],[7852,1,"\u1EAD"],[7853,2],[7854,1,"\u1EAF"],[7855,2],[7856,1,"\u1EB1"],[7857,2],[7858,1,"\u1EB3"],[7859,2],[7860,1,"\u1EB5"],[7861,2],[7862,1,"\u1EB7"],[7863,2],[7864,1,"\u1EB9"],[7865,2],[7866,1,"\u1EBB"],[7867,2],[7868,1,"\u1EBD"],[7869,2],[7870,1,"\u1EBF"],[7871,2],[7872,1,"\u1EC1"],[7873,2],[7874,1,"\u1EC3"],[7875,2],[7876,1,"\u1EC5"],[7877,2],[7878,1,"\u1EC7"],[7879,2],[7880,1,"\u1EC9"],[7881,2],[7882,1,"\u1ECB"],[7883,2],[7884,1,"\u1ECD"],[7885,2],[7886,1,"\u1ECF"],[7887,2],[7888,1,"\u1ED1"],[7889,2],[7890,1,"\u1ED3"],[7891,2],[7892,1,"\u1ED5"],[7893,2],[7894,1,"\u1ED7"],[7895,2],[7896,1,"\u1ED9"],[7897,2],[7898,1,"\u1EDB"],[7899,2],[7900,1,"\u1EDD"],[7901,2],[7902,1,"\u1EDF"],[7903,2],[7904,1,"\u1EE1"],[7905,2],[7906,1,"\u1EE3"],[7907,2],[7908,1,"\u1EE5"],[7909,2],[7910,1,"\u1EE7"],[7911,2],[7912,1,"\u1EE9"],[7913,2],[7914,1,"\u1EEB"],[7915,2],[7916,1,"\u1EED"],[7917,2],[7918,1,"\u1EEF"],[7919,2],[7920,1,"\u1EF1"],[7921,2],[7922,1,"\u1EF3"],[7923,2],[7924,1,"\u1EF5"],[7925,2],[7926,1,"\u1EF7"],[7927,2],[7928,1,"\u1EF9"],[7929,2],[7930,1,"\u1EFB"],[7931,2],[7932,1,"\u1EFD"],[7933,2],[7934,1,"\u1EFF"],[7935,2],[[7936,7943],2],[7944,1,"\u1F00"],[7945,1,"\u1F01"],[7946,1,"\u1F02"],[7947,1,"\u1F03"],[7948,1,"\u1F04"],[7949,1,"\u1F05"],[7950,1,"\u1F06"],[7951,1,"\u1F07"],[[7952,7957],2],[[7958,7959],3],[7960,1,"\u1F10"],[7961,1,"\u1F11"],[7962,1,"\u1F12"],[7963,1,"\u1F13"],[7964,1,"\u1F14"],[7965,1,"\u1F15"],[[7966,7967],3],[[7968,7975],2],[7976,1,"\u1F20"],[7977,1,"\u1F21"],[7978,1,"\u1F22"],[7979,1,"\u1F23"],[7980,1,"\u1F24"],[7981,1,"\u1F25"],[7982,1,"\u1F26"],[7983,1,"\u1F27"],[[7984,7991],2],[7992,1,"\u1F30"],[7993,1,"\u1F31"],[7994,1,"\u1F32"],[7995,1,"\u1F33"],[7996,1,"\u1F34"],[7997,1,"\u1F35"],[7998,1,"\u1F36"],[7999,1,"\u1F37"],[[8000,8005],2],[[8006,8007],3],[8008,1,"\u1F40"],[8009,1,"\u1F41"],[8010,1,"\u1F42"],[8011,1,"\u1F43"],[8012,1,"\u1F44"],[8013,1,"\u1F45"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"\u1F51"],[8026,3],[8027,1,"\u1F53"],[8028,3],[8029,1,"\u1F55"],[8030,3],[8031,1,"\u1F57"],[[8032,8039],2],[8040,1,"\u1F60"],[8041,1,"\u1F61"],[8042,1,"\u1F62"],[8043,1,"\u1F63"],[8044,1,"\u1F64"],[8045,1,"\u1F65"],[8046,1,"\u1F66"],[8047,1,"\u1F67"],[8048,2],[8049,1,"\u03AC"],[8050,2],[8051,1,"\u03AD"],[8052,2],[8053,1,"\u03AE"],[8054,2],[8055,1,"\u03AF"],[8056,2],[8057,1,"\u03CC"],[8058,2],[8059,1,"\u03CD"],[8060,2],[8061,1,"\u03CE"],[[8062,8063],3],[8064,1,"\u1F00\u03B9"],[8065,1,"\u1F01\u03B9"],[8066,1,"\u1F02\u03B9"],[8067,1,"\u1F03\u03B9"],[8068,1,"\u1F04\u03B9"],[8069,1,"\u1F05\u03B9"],[8070,1,"\u1F06\u03B9"],[8071,1,"\u1F07\u03B9"],[8072,1,"\u1F00\u03B9"],[8073,1,"\u1F01\u03B9"],[8074,1,"\u1F02\u03B9"],[8075,1,"\u1F03\u03B9"],[8076,1,"\u1F04\u03B9"],[8077,1,"\u1F05\u03B9"],[8078,1,"\u1F06\u03B9"],[8079,1,"\u1F07\u03B9"],[8080,1,"\u1F20\u03B9"],[8081,1,"\u1F21\u03B9"],[8082,1,"\u1F22\u03B9"],[8083,1,"\u1F23\u03B9"],[8084,1,"\u1F24\u03B9"],[8085,1,"\u1F25\u03B9"],[8086,1,"\u1F26\u03B9"],[8087,1,"\u1F27\u03B9"],[8088,1,"\u1F20\u03B9"],[8089,1,"\u1F21\u03B9"],[8090,1,"\u1F22\u03B9"],[8091,1,"\u1F23\u03B9"],[8092,1,"\u1F24\u03B9"],[8093,1,"\u1F25\u03B9"],[8094,1,"\u1F26\u03B9"],[8095,1,"\u1F27\u03B9"],[8096,1,"\u1F60\u03B9"],[8097,1,"\u1F61\u03B9"],[8098,1,"\u1F62\u03B9"],[8099,1,"\u1F63\u03B9"],[8100,1,"\u1F64\u03B9"],[8101,1,"\u1F65\u03B9"],[8102,1,"\u1F66\u03B9"],[8103,1,"\u1F67\u03B9"],[8104,1,"\u1F60\u03B9"],[8105,1,"\u1F61\u03B9"],[8106,1,"\u1F62\u03B9"],[8107,1,"\u1F63\u03B9"],[8108,1,"\u1F64\u03B9"],[8109,1,"\u1F65\u03B9"],[8110,1,"\u1F66\u03B9"],[8111,1,"\u1F67\u03B9"],[[8112,8113],2],[8114,1,"\u1F70\u03B9"],[8115,1,"\u03B1\u03B9"],[8116,1,"\u03AC\u03B9"],[8117,3],[8118,2],[8119,1,"\u1FB6\u03B9"],[8120,1,"\u1FB0"],[8121,1,"\u1FB1"],[8122,1,"\u1F70"],[8123,1,"\u03AC"],[8124,1,"\u03B1\u03B9"],[8125,5," \u0313"],[8126,1,"\u03B9"],[8127,5," \u0313"],[8128,5," \u0342"],[8129,5," \u0308\u0342"],[8130,1,"\u1F74\u03B9"],[8131,1,"\u03B7\u03B9"],[8132,1,"\u03AE\u03B9"],[8133,3],[8134,2],[8135,1,"\u1FC6\u03B9"],[8136,1,"\u1F72"],[8137,1,"\u03AD"],[8138,1,"\u1F74"],[8139,1,"\u03AE"],[8140,1,"\u03B7\u03B9"],[8141,5," \u0313\u0300"],[8142,5," \u0313\u0301"],[8143,5," \u0313\u0342"],[[8144,8146],2],[8147,1,"\u0390"],[[8148,8149],3],[[8150,8151],2],[8152,1,"\u1FD0"],[8153,1,"\u1FD1"],[8154,1,"\u1F76"],[8155,1,"\u03AF"],[8156,3],[8157,5," \u0314\u0300"],[8158,5," \u0314\u0301"],[8159,5," \u0314\u0342"],[[8160,8162],2],[8163,1,"\u03B0"],[[8164,8167],2],[8168,1,"\u1FE0"],[8169,1,"\u1FE1"],[8170,1,"\u1F7A"],[8171,1,"\u03CD"],[8172,1,"\u1FE5"],[8173,5," \u0308\u0300"],[8174,5," \u0308\u0301"],[8175,5,"`"],[[8176,8177],3],[8178,1,"\u1F7C\u03B9"],[8179,1,"\u03C9\u03B9"],[8180,1,"\u03CE\u03B9"],[8181,3],[8182,2],[8183,1,"\u1FF6\u03B9"],[8184,1,"\u1F78"],[8185,1,"\u03CC"],[8186,1,"\u1F7C"],[8187,1,"\u03CE"],[8188,1,"\u03C9\u03B9"],[8189,5," \u0301"],[8190,5," \u0314"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"\u2010"],[[8210,8214],2],[8215,5," \u0333"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"\u2032\u2032"],[8244,1,"\u2032\u2032\u2032"],[8245,2],[8246,1,"\u2035\u2035"],[8247,1,"\u2035\u2035\u2035"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," \u0305"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"\u2032\u2032\u2032\u2032"],[[8280,8286],2],[8287,5," "],[8288,7],[[8289,8291],3],[8292,7],[8293,3],[[8294,8297],3],[[8298,8303],3],[8304,1,"0"],[8305,1,"i"],[[8306,8307],3],[8308,1,"4"],[8309,1,"5"],[8310,1,"6"],[8311,1,"7"],[8312,1,"8"],[8313,1,"9"],[8314,5,"+"],[8315,1,"\u2212"],[8316,5,"="],[8317,5,"("],[8318,5,")"],[8319,1,"n"],[8320,1,"0"],[8321,1,"1"],[8322,1,"2"],[8323,1,"3"],[8324,1,"4"],[8325,1,"5"],[8326,1,"6"],[8327,1,"7"],[8328,1,"8"],[8329,1,"9"],[8330,5,"+"],[8331,1,"\u2212"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"\u0259"],[8341,1,"h"],[8342,1,"k"],[8343,1,"l"],[8344,1,"m"],[8345,1,"n"],[8346,1,"p"],[8347,1,"s"],[8348,1,"t"],[[8349,8351],3],[[8352,8359],2],[8360,1,"rs"],[[8361,8362],2],[8363,2],[8364,2],[[8365,8367],2],[[8368,8369],2],[[8370,8373],2],[[8374,8376],2],[8377,2],[8378,2],[[8379,8381],2],[8382,2],[8383,2],[8384,2],[[8385,8399],3],[[8400,8417],2],[[8418,8419],2],[[8420,8426],2],[8427,2],[[8428,8431],2],[8432,2],[[8433,8447],3],[8448,5,"a/c"],[8449,5,"a/s"],[8450,1,"c"],[8451,1,"\xB0c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"\u025B"],[8456,2],[8457,1,"\xB0f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"\u0127"],[[8464,8465],1,"i"],[[8466,8467],1,"l"],[8468,2],[8469,1,"n"],[8470,1,"no"],[[8471,8472],2],[8473,1,"p"],[8474,1,"q"],[[8475,8477],1,"r"],[[8478,8479],2],[8480,1,"sm"],[8481,1,"tel"],[8482,1,"tm"],[8483,2],[8484,1,"z"],[8485,2],[8486,1,"\u03C9"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"\xE5"],[8492,1,"b"],[8493,1,"c"],[8494,2],[[8495,8496],1,"e"],[8497,1,"f"],[8498,3],[8499,1,"m"],[8500,1,"o"],[8501,1,"\u05D0"],[8502,1,"\u05D1"],[8503,1,"\u05D2"],[8504,1,"\u05D3"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"\u03C0"],[[8509,8510],1,"\u03B3"],[8511,1,"\u03C0"],[8512,1,"\u2211"],[[8513,8516],2],[[8517,8518],1,"d"],[8519,1,"e"],[8520,1,"i"],[8521,1,"j"],[[8522,8523],2],[8524,2],[8525,2],[8526,2],[8527,2],[8528,1,"1\u20447"],[8529,1,"1\u20449"],[8530,1,"1\u204410"],[8531,1,"1\u20443"],[8532,1,"2\u20443"],[8533,1,"1\u20445"],[8534,1,"2\u20445"],[8535,1,"3\u20445"],[8536,1,"4\u20445"],[8537,1,"1\u20446"],[8538,1,"5\u20446"],[8539,1,"1\u20448"],[8540,1,"3\u20448"],[8541,1,"5\u20448"],[8542,1,"7\u20448"],[8543,1,"1\u2044"],[8544,1,"i"],[8545,1,"ii"],[8546,1,"iii"],[8547,1,"iv"],[8548,1,"v"],[8549,1,"vi"],[8550,1,"vii"],[8551,1,"viii"],[8552,1,"ix"],[8553,1,"x"],[8554,1,"xi"],[8555,1,"xii"],[8556,1,"l"],[8557,1,"c"],[8558,1,"d"],[8559,1,"m"],[8560,1,"i"],[8561,1,"ii"],[8562,1,"iii"],[8563,1,"iv"],[8564,1,"v"],[8565,1,"vi"],[8566,1,"vii"],[8567,1,"viii"],[8568,1,"ix"],[8569,1,"x"],[8570,1,"xi"],[8571,1,"xii"],[8572,1,"l"],[8573,1,"c"],[8574,1,"d"],[8575,1,"m"],[[8576,8578],2],[8579,3],[8580,2],[[8581,8584],2],[8585,1,"0\u20443"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"\u222B\u222B"],[8749,1,"\u222B\u222B\u222B"],[8750,2],[8751,1,"\u222E\u222E"],[8752,1,"\u222E\u222E\u222E"],[[8753,8799],2],[8800,4],[[8801,8813],2],[[8814,8815],4],[[8816,8945],2],[[8946,8959],2],[8960,2],[8961,2],[[8962,9000],2],[9001,1,"\u3008"],[9002,1,"\u3009"],[[9003,9082],2],[9083,2],[9084,2],[[9085,9114],2],[[9115,9166],2],[[9167,9168],2],[[9169,9179],2],[[9180,9191],2],[9192,2],[[9193,9203],2],[[9204,9210],2],[[9211,9214],2],[9215,2],[[9216,9252],2],[[9253,9254],2],[[9255,9279],3],[[9280,9290],2],[[9291,9311],3],[9312,1,"1"],[9313,1,"2"],[9314,1,"3"],[9315,1,"4"],[9316,1,"5"],[9317,1,"6"],[9318,1,"7"],[9319,1,"8"],[9320,1,"9"],[9321,1,"10"],[9322,1,"11"],[9323,1,"12"],[9324,1,"13"],[9325,1,"14"],[9326,1,"15"],[9327,1,"16"],[9328,1,"17"],[9329,1,"18"],[9330,1,"19"],[9331,1,"20"],[9332,5,"(1)"],[9333,5,"(2)"],[9334,5,"(3)"],[9335,5,"(4)"],[9336,5,"(5)"],[9337,5,"(6)"],[9338,5,"(7)"],[9339,5,"(8)"],[9340,5,"(9)"],[9341,5,"(10)"],[9342,5,"(11)"],[9343,5,"(12)"],[9344,5,"(13)"],[9345,5,"(14)"],[9346,5,"(15)"],[9347,5,"(16)"],[9348,5,"(17)"],[9349,5,"(18)"],[9350,5,"(19)"],[9351,5,"(20)"],[[9352,9371],3],[9372,5,"(a)"],[9373,5,"(b)"],[9374,5,"(c)"],[9375,5,"(d)"],[9376,5,"(e)"],[9377,5,"(f)"],[9378,5,"(g)"],[9379,5,"(h)"],[9380,5,"(i)"],[9381,5,"(j)"],[9382,5,"(k)"],[9383,5,"(l)"],[9384,5,"(m)"],[9385,5,"(n)"],[9386,5,"(o)"],[9387,5,"(p)"],[9388,5,"(q)"],[9389,5,"(r)"],[9390,5,"(s)"],[9391,5,"(t)"],[9392,5,"(u)"],[9393,5,"(v)"],[9394,5,"(w)"],[9395,5,"(x)"],[9396,5,"(y)"],[9397,5,"(z)"],[9398,1,"a"],[9399,1,"b"],[9400,1,"c"],[9401,1,"d"],[9402,1,"e"],[9403,1,"f"],[9404,1,"g"],[9405,1,"h"],[9406,1,"i"],[9407,1,"j"],[9408,1,"k"],[9409,1,"l"],[9410,1,"m"],[9411,1,"n"],[9412,1,"o"],[9413,1,"p"],[9414,1,"q"],[9415,1,"r"],[9416,1,"s"],[9417,1,"t"],[9418,1,"u"],[9419,1,"v"],[9420,1,"w"],[9421,1,"x"],[9422,1,"y"],[9423,1,"z"],[9424,1,"a"],[9425,1,"b"],[9426,1,"c"],[9427,1,"d"],[9428,1,"e"],[9429,1,"f"],[9430,1,"g"],[9431,1,"h"],[9432,1,"i"],[9433,1,"j"],[9434,1,"k"],[9435,1,"l"],[9436,1,"m"],[9437,1,"n"],[9438,1,"o"],[9439,1,"p"],[9440,1,"q"],[9441,1,"r"],[9442,1,"s"],[9443,1,"t"],[9444,1,"u"],[9445,1,"v"],[9446,1,"w"],[9447,1,"x"],[9448,1,"y"],[9449,1,"z"],[9450,1,"0"],[[9451,9470],2],[9471,2],[[9472,9621],2],[[9622,9631],2],[[9632,9711],2],[[9712,9719],2],[[9720,9727],2],[[9728,9747],2],[[9748,9749],2],[[9750,9751],2],[9752,2],[9753,2],[[9754,9839],2],[[9840,9841],2],[[9842,9853],2],[[9854,9855],2],[[9856,9865],2],[[9866,9873],2],[[9874,9884],2],[9885,2],[[9886,9887],2],[[9888,9889],2],[[9890,9905],2],[9906,2],[[9907,9916],2],[[9917,9919],2],[[9920,9923],2],[[9924,9933],2],[9934,2],[[9935,9953],2],[9954,2],[9955,2],[[9956,9959],2],[[9960,9983],2],[9984,2],[[9985,9988],2],[9989,2],[[9990,9993],2],[[9994,9995],2],[[9996,10023],2],[10024,2],[[10025,10059],2],[10060,2],[10061,2],[10062,2],[[10063,10066],2],[[10067,10069],2],[10070,2],[10071,2],[[10072,10078],2],[[10079,10080],2],[[10081,10087],2],[[10088,10101],2],[[10102,10132],2],[[10133,10135],2],[[10136,10159],2],[10160,2],[[10161,10174],2],[10175,2],[[10176,10182],2],[[10183,10186],2],[10187,2],[10188,2],[10189,2],[[10190,10191],2],[[10192,10219],2],[[10220,10223],2],[[10224,10239],2],[[10240,10495],2],[[10496,10763],2],[10764,1,"\u222B\u222B\u222B\u222B"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"\u2ADD\u0338"],[[10973,11007],2],[[11008,11021],2],[[11022,11027],2],[[11028,11034],2],[[11035,11039],2],[[11040,11043],2],[[11044,11084],2],[[11085,11087],2],[[11088,11092],2],[[11093,11097],2],[[11098,11123],2],[[11124,11125],3],[[11126,11157],2],[11158,3],[11159,2],[[11160,11193],2],[[11194,11196],2],[[11197,11208],2],[11209,2],[[11210,11217],2],[11218,2],[[11219,11243],2],[[11244,11247],2],[[11248,11262],2],[11263,2],[11264,1,"\u2C30"],[11265,1,"\u2C31"],[11266,1,"\u2C32"],[11267,1,"\u2C33"],[11268,1,"\u2C34"],[11269,1,"\u2C35"],[11270,1,"\u2C36"],[11271,1,"\u2C37"],[11272,1,"\u2C38"],[11273,1,"\u2C39"],[11274,1,"\u2C3A"],[11275,1,"\u2C3B"],[11276,1,"\u2C3C"],[11277,1,"\u2C3D"],[11278,1,"\u2C3E"],[11279,1,"\u2C3F"],[11280,1,"\u2C40"],[11281,1,"\u2C41"],[11282,1,"\u2C42"],[11283,1,"\u2C43"],[11284,1,"\u2C44"],[11285,1,"\u2C45"],[11286,1,"\u2C46"],[11287,1,"\u2C47"],[11288,1,"\u2C48"],[11289,1,"\u2C49"],[11290,1,"\u2C4A"],[11291,1,"\u2C4B"],[11292,1,"\u2C4C"],[11293,1,"\u2C4D"],[11294,1,"\u2C4E"],[11295,1,"\u2C4F"],[11296,1,"\u2C50"],[11297,1,"\u2C51"],[11298,1,"\u2C52"],[11299,1,"\u2C53"],[11300,1,"\u2C54"],[11301,1,"\u2C55"],[11302,1,"\u2C56"],[11303,1,"\u2C57"],[11304,1,"\u2C58"],[11305,1,"\u2C59"],[11306,1,"\u2C5A"],[11307,1,"\u2C5B"],[11308,1,"\u2C5C"],[11309,1,"\u2C5D"],[11310,1,"\u2C5E"],[11311,1,"\u2C5F"],[[11312,11358],2],[11359,2],[11360,1,"\u2C61"],[11361,2],[11362,1,"\u026B"],[11363,1,"\u1D7D"],[11364,1,"\u027D"],[[11365,11366],2],[11367,1,"\u2C68"],[11368,2],[11369,1,"\u2C6A"],[11370,2],[11371,1,"\u2C6C"],[11372,2],[11373,1,"\u0251"],[11374,1,"\u0271"],[11375,1,"\u0250"],[11376,1,"\u0252"],[11377,2],[11378,1,"\u2C73"],[11379,2],[11380,2],[11381,1,"\u2C76"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"\u023F"],[11391,1,"\u0240"],[11392,1,"\u2C81"],[11393,2],[11394,1,"\u2C83"],[11395,2],[11396,1,"\u2C85"],[11397,2],[11398,1,"\u2C87"],[11399,2],[11400,1,"\u2C89"],[11401,2],[11402,1,"\u2C8B"],[11403,2],[11404,1,"\u2C8D"],[11405,2],[11406,1,"\u2C8F"],[11407,2],[11408,1,"\u2C91"],[11409,2],[11410,1,"\u2C93"],[11411,2],[11412,1,"\u2C95"],[11413,2],[11414,1,"\u2C97"],[11415,2],[11416,1,"\u2C99"],[11417,2],[11418,1,"\u2C9B"],[11419,2],[11420,1,"\u2C9D"],[11421,2],[11422,1,"\u2C9F"],[11423,2],[11424,1,"\u2CA1"],[11425,2],[11426,1,"\u2CA3"],[11427,2],[11428,1,"\u2CA5"],[11429,2],[11430,1,"\u2CA7"],[11431,2],[11432,1,"\u2CA9"],[11433,2],[11434,1,"\u2CAB"],[11435,2],[11436,1,"\u2CAD"],[11437,2],[11438,1,"\u2CAF"],[11439,2],[11440,1,"\u2CB1"],[11441,2],[11442,1,"\u2CB3"],[11443,2],[11444,1,"\u2CB5"],[11445,2],[11446,1,"\u2CB7"],[11447,2],[11448,1,"\u2CB9"],[11449,2],[11450,1,"\u2CBB"],[11451,2],[11452,1,"\u2CBD"],[11453,2],[11454,1,"\u2CBF"],[11455,2],[11456,1,"\u2CC1"],[11457,2],[11458,1,"\u2CC3"],[11459,2],[11460,1,"\u2CC5"],[11461,2],[11462,1,"\u2CC7"],[11463,2],[11464,1,"\u2CC9"],[11465,2],[11466,1,"\u2CCB"],[11467,2],[11468,1,"\u2CCD"],[11469,2],[11470,1,"\u2CCF"],[11471,2],[11472,1,"\u2CD1"],[11473,2],[11474,1,"\u2CD3"],[11475,2],[11476,1,"\u2CD5"],[11477,2],[11478,1,"\u2CD7"],[11479,2],[11480,1,"\u2CD9"],[11481,2],[11482,1,"\u2CDB"],[11483,2],[11484,1,"\u2CDD"],[11485,2],[11486,1,"\u2CDF"],[11487,2],[11488,1,"\u2CE1"],[11489,2],[11490,1,"\u2CE3"],[[11491,11492],2],[[11493,11498],2],[11499,1,"\u2CEC"],[11500,2],[11501,1,"\u2CEE"],[[11502,11505],2],[11506,1,"\u2CF3"],[11507,2],[[11508,11512],3],[[11513,11519],2],[[11520,11557],2],[11558,3],[11559,2],[[11560,11564],3],[11565,2],[[11566,11567],3],[[11568,11621],2],[[11622,11623],2],[[11624,11630],3],[11631,1,"\u2D61"],[11632,2],[[11633,11646],3],[11647,2],[[11648,11670],2],[[11671,11679],3],[[11680,11686],2],[11687,3],[[11688,11694],2],[11695,3],[[11696,11702],2],[11703,3],[[11704,11710],2],[11711,3],[[11712,11718],2],[11719,3],[[11720,11726],2],[11727,3],[[11728,11734],2],[11735,3],[[11736,11742],2],[11743,3],[[11744,11775],2],[[11776,11799],2],[[11800,11803],2],[[11804,11805],2],[[11806,11822],2],[11823,2],[11824,2],[11825,2],[[11826,11835],2],[[11836,11842],2],[[11843,11844],2],[[11845,11849],2],[[11850,11854],2],[11855,2],[[11856,11858],2],[[11859,11869],2],[[11870,11903],3],[[11904,11929],2],[11930,3],[[11931,11934],2],[11935,1,"\u6BCD"],[[11936,12018],2],[12019,1,"\u9F9F"],[[12020,12031],3],[12032,1,"\u4E00"],[12033,1,"\u4E28"],[12034,1,"\u4E36"],[12035,1,"\u4E3F"],[12036,1,"\u4E59"],[12037,1,"\u4E85"],[12038,1,"\u4E8C"],[12039,1,"\u4EA0"],[12040,1,"\u4EBA"],[12041,1,"\u513F"],[12042,1,"\u5165"],[12043,1,"\u516B"],[12044,1,"\u5182"],[12045,1,"\u5196"],[12046,1,"\u51AB"],[12047,1,"\u51E0"],[12048,1,"\u51F5"],[12049,1,"\u5200"],[12050,1,"\u529B"],[12051,1,"\u52F9"],[12052,1,"\u5315"],[12053,1,"\u531A"],[12054,1,"\u5338"],[12055,1,"\u5341"],[12056,1,"\u535C"],[12057,1,"\u5369"],[12058,1,"\u5382"],[12059,1,"\u53B6"],[12060,1,"\u53C8"],[12061,1,"\u53E3"],[12062,1,"\u56D7"],[12063,1,"\u571F"],[12064,1,"\u58EB"],[12065,1,"\u5902"],[12066,1,"\u590A"],[12067,1,"\u5915"],[12068,1,"\u5927"],[12069,1,"\u5973"],[12070,1,"\u5B50"],[12071,1,"\u5B80"],[12072,1,"\u5BF8"],[12073,1,"\u5C0F"],[12074,1,"\u5C22"],[12075,1,"\u5C38"],[12076,1,"\u5C6E"],[12077,1,"\u5C71"],[12078,1,"\u5DDB"],[12079,1,"\u5DE5"],[12080,1,"\u5DF1"],[12081,1,"\u5DFE"],[12082,1,"\u5E72"],[12083,1,"\u5E7A"],[12084,1,"\u5E7F"],[12085,1,"\u5EF4"],[12086,1,"\u5EFE"],[12087,1,"\u5F0B"],[12088,1,"\u5F13"],[12089,1,"\u5F50"],[12090,1,"\u5F61"],[12091,1,"\u5F73"],[12092,1,"\u5FC3"],[12093,1,"\u6208"],[12094,1,"\u6236"],[12095,1,"\u624B"],[12096,1,"\u652F"],[12097,1,"\u6534"],[12098,1,"\u6587"],[12099,1,"\u6597"],[12100,1,"\u65A4"],[12101,1,"\u65B9"],[12102,1,"\u65E0"],[12103,1,"\u65E5"],[12104,1,"\u66F0"],[12105,1,"\u6708"],[12106,1,"\u6728"],[12107,1,"\u6B20"],[12108,1,"\u6B62"],[12109,1,"\u6B79"],[12110,1,"\u6BB3"],[12111,1,"\u6BCB"],[12112,1,"\u6BD4"],[12113,1,"\u6BDB"],[12114,1,"\u6C0F"],[12115,1,"\u6C14"],[12116,1,"\u6C34"],[12117,1,"\u706B"],[12118,1,"\u722A"],[12119,1,"\u7236"],[12120,1,"\u723B"],[12121,1,"\u723F"],[12122,1,"\u7247"],[12123,1,"\u7259"],[12124,1,"\u725B"],[12125,1,"\u72AC"],[12126,1,"\u7384"],[12127,1,"\u7389"],[12128,1,"\u74DC"],[12129,1,"\u74E6"],[12130,1,"\u7518"],[12131,1,"\u751F"],[12132,1,"\u7528"],[12133,1,"\u7530"],[12134,1,"\u758B"],[12135,1,"\u7592"],[12136,1,"\u7676"],[12137,1,"\u767D"],[12138,1,"\u76AE"],[12139,1,"\u76BF"],[12140,1,"\u76EE"],[12141,1,"\u77DB"],[12142,1,"\u77E2"],[12143,1,"\u77F3"],[12144,1,"\u793A"],[12145,1,"\u79B8"],[12146,1,"\u79BE"],[12147,1,"\u7A74"],[12148,1,"\u7ACB"],[12149,1,"\u7AF9"],[12150,1,"\u7C73"],[12151,1,"\u7CF8"],[12152,1,"\u7F36"],[12153,1,"\u7F51"],[12154,1,"\u7F8A"],[12155,1,"\u7FBD"],[12156,1,"\u8001"],[12157,1,"\u800C"],[12158,1,"\u8012"],[12159,1,"\u8033"],[12160,1,"\u807F"],[12161,1,"\u8089"],[12162,1,"\u81E3"],[12163,1,"\u81EA"],[12164,1,"\u81F3"],[12165,1,"\u81FC"],[12166,1,"\u820C"],[12167,1,"\u821B"],[12168,1,"\u821F"],[12169,1,"\u826E"],[12170,1,"\u8272"],[12171,1,"\u8278"],[12172,1,"\u864D"],[12173,1,"\u866B"],[12174,1,"\u8840"],[12175,1,"\u884C"],[12176,1,"\u8863"],[12177,1,"\u897E"],[12178,1,"\u898B"],[12179,1,"\u89D2"],[12180,1,"\u8A00"],[12181,1,"\u8C37"],[12182,1,"\u8C46"],[12183,1,"\u8C55"],[12184,1,"\u8C78"],[12185,1,"\u8C9D"],[12186,1,"\u8D64"],[12187,1,"\u8D70"],[12188,1,"\u8DB3"],[12189,1,"\u8EAB"],[12190,1,"\u8ECA"],[12191,1,"\u8F9B"],[12192,1,"\u8FB0"],[12193,1,"\u8FB5"],[12194,1,"\u9091"],[12195,1,"\u9149"],[12196,1,"\u91C6"],[12197,1,"\u91CC"],[12198,1,"\u91D1"],[12199,1,"\u9577"],[12200,1,"\u9580"],[12201,1,"\u961C"],[12202,1,"\u96B6"],[12203,1,"\u96B9"],[12204,1,"\u96E8"],[12205,1,"\u9751"],[12206,1,"\u975E"],[12207,1,"\u9762"],[12208,1,"\u9769"],[12209,1,"\u97CB"],[12210,1,"\u97ED"],[12211,1,"\u97F3"],[12212,1,"\u9801"],[12213,1,"\u98A8"],[12214,1,"\u98DB"],[12215,1,"\u98DF"],[12216,1,"\u9996"],[12217,1,"\u9999"],[12218,1,"\u99AC"],[12219,1,"\u9AA8"],[12220,1,"\u9AD8"],[12221,1,"\u9ADF"],[12222,1,"\u9B25"],[12223,1,"\u9B2F"],[12224,1,"\u9B32"],[12225,1,"\u9B3C"],[12226,1,"\u9B5A"],[12227,1,"\u9CE5"],[12228,1,"\u9E75"],[12229,1,"\u9E7F"],[12230,1,"\u9EA5"],[12231,1,"\u9EBB"],[12232,1,"\u9EC3"],[12233,1,"\u9ECD"],[12234,1,"\u9ED1"],[12235,1,"\u9EF9"],[12236,1,"\u9EFD"],[12237,1,"\u9F0E"],[12238,1,"\u9F13"],[12239,1,"\u9F20"],[12240,1,"\u9F3B"],[12241,1,"\u9F4A"],[12242,1,"\u9F52"],[12243,1,"\u9F8D"],[12244,1,"\u9F9C"],[12245,1,"\u9FA0"],[[12246,12271],3],[[12272,12283],3],[[12284,12287],3],[12288,5," "],[12289,2],[12290,1,"."],[[12291,12292],2],[[12293,12295],2],[[12296,12329],2],[[12330,12333],2],[[12334,12341],2],[12342,1,"\u3012"],[12343,2],[12344,1,"\u5341"],[12345,1,"\u5344"],[12346,1,"\u5345"],[12347,2],[12348,2],[12349,2],[12350,2],[12351,2],[12352,3],[[12353,12436],2],[[12437,12438],2],[[12439,12440],3],[[12441,12442],2],[12443,5," \u3099"],[12444,5," \u309A"],[[12445,12446],2],[12447,1,"\u3088\u308A"],[12448,2],[[12449,12542],2],[12543,1,"\u30B3\u30C8"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"\u1100"],[12594,1,"\u1101"],[12595,1,"\u11AA"],[12596,1,"\u1102"],[12597,1,"\u11AC"],[12598,1,"\u11AD"],[12599,1,"\u1103"],[12600,1,"\u1104"],[12601,1,"\u1105"],[12602,1,"\u11B0"],[12603,1,"\u11B1"],[12604,1,"\u11B2"],[12605,1,"\u11B3"],[12606,1,"\u11B4"],[12607,1,"\u11B5"],[12608,1,"\u111A"],[12609,1,"\u1106"],[12610,1,"\u1107"],[12611,1,"\u1108"],[12612,1,"\u1121"],[12613,1,"\u1109"],[12614,1,"\u110A"],[12615,1,"\u110B"],[12616,1,"\u110C"],[12617,1,"\u110D"],[12618,1,"\u110E"],[12619,1,"\u110F"],[12620,1,"\u1110"],[12621,1,"\u1111"],[12622,1,"\u1112"],[12623,1,"\u1161"],[12624,1,"\u1162"],[12625,1,"\u1163"],[12626,1,"\u1164"],[12627,1,"\u1165"],[12628,1,"\u1166"],[12629,1,"\u1167"],[12630,1,"\u1168"],[12631,1,"\u1169"],[12632,1,"\u116A"],[12633,1,"\u116B"],[12634,1,"\u116C"],[12635,1,"\u116D"],[12636,1,"\u116E"],[12637,1,"\u116F"],[12638,1,"\u1170"],[12639,1,"\u1171"],[12640,1,"\u1172"],[12641,1,"\u1173"],[12642,1,"\u1174"],[12643,1,"\u1175"],[12644,3],[12645,1,"\u1114"],[12646,1,"\u1115"],[12647,1,"\u11C7"],[12648,1,"\u11C8"],[12649,1,"\u11CC"],[12650,1,"\u11CE"],[12651,1,"\u11D3"],[12652,1,"\u11D7"],[12653,1,"\u11D9"],[12654,1,"\u111C"],[12655,1,"\u11DD"],[12656,1,"\u11DF"],[12657,1,"\u111D"],[12658,1,"\u111E"],[12659,1,"\u1120"],[12660,1,"\u1122"],[12661,1,"\u1123"],[12662,1,"\u1127"],[12663,1,"\u1129"],[12664,1,"\u112B"],[12665,1,"\u112C"],[12666,1,"\u112D"],[12667,1,"\u112E"],[12668,1,"\u112F"],[12669,1,"\u1132"],[12670,1,"\u1136"],[12671,1,"\u1140"],[12672,1,"\u1147"],[12673,1,"\u114C"],[12674,1,"\u11F1"],[12675,1,"\u11F2"],[12676,1,"\u1157"],[12677,1,"\u1158"],[12678,1,"\u1159"],[12679,1,"\u1184"],[12680,1,"\u1185"],[12681,1,"\u1188"],[12682,1,"\u1191"],[12683,1,"\u1192"],[12684,1,"\u1194"],[12685,1,"\u119E"],[12686,1,"\u11A1"],[12687,3],[[12688,12689],2],[12690,1,"\u4E00"],[12691,1,"\u4E8C"],[12692,1,"\u4E09"],[12693,1,"\u56DB"],[12694,1,"\u4E0A"],[12695,1,"\u4E2D"],[12696,1,"\u4E0B"],[12697,1,"\u7532"],[12698,1,"\u4E59"],[12699,1,"\u4E19"],[12700,1,"\u4E01"],[12701,1,"\u5929"],[12702,1,"\u5730"],[12703,1,"\u4EBA"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12783],3],[[12784,12799],2],[12800,5,"(\u1100)"],[12801,5,"(\u1102)"],[12802,5,"(\u1103)"],[12803,5,"(\u1105)"],[12804,5,"(\u1106)"],[12805,5,"(\u1107)"],[12806,5,"(\u1109)"],[12807,5,"(\u110B)"],[12808,5,"(\u110C)"],[12809,5,"(\u110E)"],[12810,5,"(\u110F)"],[12811,5,"(\u1110)"],[12812,5,"(\u1111)"],[12813,5,"(\u1112)"],[12814,5,"(\uAC00)"],[12815,5,"(\uB098)"],[12816,5,"(\uB2E4)"],[12817,5,"(\uB77C)"],[12818,5,"(\uB9C8)"],[12819,5,"(\uBC14)"],[12820,5,"(\uC0AC)"],[12821,5,"(\uC544)"],[12822,5,"(\uC790)"],[12823,5,"(\uCC28)"],[12824,5,"(\uCE74)"],[12825,5,"(\uD0C0)"],[12826,5,"(\uD30C)"],[12827,5,"(\uD558)"],[12828,5,"(\uC8FC)"],[12829,5,"(\uC624\uC804)"],[12830,5,"(\uC624\uD6C4)"],[12831,3],[12832,5,"(\u4E00)"],[12833,5,"(\u4E8C)"],[12834,5,"(\u4E09)"],[12835,5,"(\u56DB)"],[12836,5,"(\u4E94)"],[12837,5,"(\u516D)"],[12838,5,"(\u4E03)"],[12839,5,"(\u516B)"],[12840,5,"(\u4E5D)"],[12841,5,"(\u5341)"],[12842,5,"(\u6708)"],[12843,5,"(\u706B)"],[12844,5,"(\u6C34)"],[12845,5,"(\u6728)"],[12846,5,"(\u91D1)"],[12847,5,"(\u571F)"],[12848,5,"(\u65E5)"],[12849,5,"(\u682A)"],[12850,5,"(\u6709)"],[12851,5,"(\u793E)"],[12852,5,"(\u540D)"],[12853,5,"(\u7279)"],[12854,5,"(\u8CA1)"],[12855,5,"(\u795D)"],[12856,5,"(\u52B4)"],[12857,5,"(\u4EE3)"],[12858,5,"(\u547C)"],[12859,5,"(\u5B66)"],[12860,5,"(\u76E3)"],[12861,5,"(\u4F01)"],[12862,5,"(\u8CC7)"],[12863,5,"(\u5354)"],[12864,5,"(\u796D)"],[12865,5,"(\u4F11)"],[12866,5,"(\u81EA)"],[12867,5,"(\u81F3)"],[12868,1,"\u554F"],[12869,1,"\u5E7C"],[12870,1,"\u6587"],[12871,1,"\u7B8F"],[[12872,12879],2],[12880,1,"pte"],[12881,1,"21"],[12882,1,"22"],[12883,1,"23"],[12884,1,"24"],[12885,1,"25"],[12886,1,"26"],[12887,1,"27"],[12888,1,"28"],[12889,1,"29"],[12890,1,"30"],[12891,1,"31"],[12892,1,"32"],[12893,1,"33"],[12894,1,"34"],[12895,1,"35"],[12896,1,"\u1100"],[12897,1,"\u1102"],[12898,1,"\u1103"],[12899,1,"\u1105"],[12900,1,"\u1106"],[12901,1,"\u1107"],[12902,1,"\u1109"],[12903,1,"\u110B"],[12904,1,"\u110C"],[12905,1,"\u110E"],[12906,1,"\u110F"],[12907,1,"\u1110"],[12908,1,"\u1111"],[12909,1,"\u1112"],[12910,1,"\uAC00"],[12911,1,"\uB098"],[12912,1,"\uB2E4"],[12913,1,"\uB77C"],[12914,1,"\uB9C8"],[12915,1,"\uBC14"],[12916,1,"\uC0AC"],[12917,1,"\uC544"],[12918,1,"\uC790"],[12919,1,"\uCC28"],[12920,1,"\uCE74"],[12921,1,"\uD0C0"],[12922,1,"\uD30C"],[12923,1,"\uD558"],[12924,1,"\uCC38\uACE0"],[12925,1,"\uC8FC\uC758"],[12926,1,"\uC6B0"],[12927,2],[12928,1,"\u4E00"],[12929,1,"\u4E8C"],[12930,1,"\u4E09"],[12931,1,"\u56DB"],[12932,1,"\u4E94"],[12933,1,"\u516D"],[12934,1,"\u4E03"],[12935,1,"\u516B"],[12936,1,"\u4E5D"],[12937,1,"\u5341"],[12938,1,"\u6708"],[12939,1,"\u706B"],[12940,1,"\u6C34"],[12941,1,"\u6728"],[12942,1,"\u91D1"],[12943,1,"\u571F"],[12944,1,"\u65E5"],[12945,1,"\u682A"],[12946,1,"\u6709"],[12947,1,"\u793E"],[12948,1,"\u540D"],[12949,1,"\u7279"],[12950,1,"\u8CA1"],[12951,1,"\u795D"],[12952,1,"\u52B4"],[12953,1,"\u79D8"],[12954,1,"\u7537"],[12955,1,"\u5973"],[12956,1,"\u9069"],[12957,1,"\u512A"],[12958,1,"\u5370"],[12959,1,"\u6CE8"],[12960,1,"\u9805"],[12961,1,"\u4F11"],[12962,1,"\u5199"],[12963,1,"\u6B63"],[12964,1,"\u4E0A"],[12965,1,"\u4E2D"],[12966,1,"\u4E0B"],[12967,1,"\u5DE6"],[12968,1,"\u53F3"],[12969,1,"\u533B"],[12970,1,"\u5B97"],[12971,1,"\u5B66"],[12972,1,"\u76E3"],[12973,1,"\u4F01"],[12974,1,"\u8CC7"],[12975,1,"\u5354"],[12976,1,"\u591C"],[12977,1,"36"],[12978,1,"37"],[12979,1,"38"],[12980,1,"39"],[12981,1,"40"],[12982,1,"41"],[12983,1,"42"],[12984,1,"43"],[12985,1,"44"],[12986,1,"45"],[12987,1,"46"],[12988,1,"47"],[12989,1,"48"],[12990,1,"49"],[12991,1,"50"],[12992,1,"1\u6708"],[12993,1,"2\u6708"],[12994,1,"3\u6708"],[12995,1,"4\u6708"],[12996,1,"5\u6708"],[12997,1,"6\u6708"],[12998,1,"7\u6708"],[12999,1,"8\u6708"],[13000,1,"9\u6708"],[13001,1,"10\u6708"],[13002,1,"11\u6708"],[13003,1,"12\u6708"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"\u30A2"],[13009,1,"\u30A4"],[13010,1,"\u30A6"],[13011,1,"\u30A8"],[13012,1,"\u30AA"],[13013,1,"\u30AB"],[13014,1,"\u30AD"],[13015,1,"\u30AF"],[13016,1,"\u30B1"],[13017,1,"\u30B3"],[13018,1,"\u30B5"],[13019,1,"\u30B7"],[13020,1,"\u30B9"],[13021,1,"\u30BB"],[13022,1,"\u30BD"],[13023,1,"\u30BF"],[13024,1,"\u30C1"],[13025,1,"\u30C4"],[13026,1,"\u30C6"],[13027,1,"\u30C8"],[13028,1,"\u30CA"],[13029,1,"\u30CB"],[13030,1,"\u30CC"],[13031,1,"\u30CD"],[13032,1,"\u30CE"],[13033,1,"\u30CF"],[13034,1,"\u30D2"],[13035,1,"\u30D5"],[13036,1,"\u30D8"],[13037,1,"\u30DB"],[13038,1,"\u30DE"],[13039,1,"\u30DF"],[13040,1,"\u30E0"],[13041,1,"\u30E1"],[13042,1,"\u30E2"],[13043,1,"\u30E4"],[13044,1,"\u30E6"],[13045,1,"\u30E8"],[13046,1,"\u30E9"],[13047,1,"\u30EA"],[13048,1,"\u30EB"],[13049,1,"\u30EC"],[13050,1,"\u30ED"],[13051,1,"\u30EF"],[13052,1,"\u30F0"],[13053,1,"\u30F1"],[13054,1,"\u30F2"],[13055,1,"\u4EE4\u548C"],[13056,1,"\u30A2\u30D1\u30FC\u30C8"],[13057,1,"\u30A2\u30EB\u30D5\u30A1"],[13058,1,"\u30A2\u30F3\u30DA\u30A2"],[13059,1,"\u30A2\u30FC\u30EB"],[13060,1,"\u30A4\u30CB\u30F3\u30B0"],[13061,1,"\u30A4\u30F3\u30C1"],[13062,1,"\u30A6\u30A9\u30F3"],[13063,1,"\u30A8\u30B9\u30AF\u30FC\u30C9"],[13064,1,"\u30A8\u30FC\u30AB\u30FC"],[13065,1,"\u30AA\u30F3\u30B9"],[13066,1,"\u30AA\u30FC\u30E0"],[13067,1,"\u30AB\u30A4\u30EA"],[13068,1,"\u30AB\u30E9\u30C3\u30C8"],[13069,1,"\u30AB\u30ED\u30EA\u30FC"],[13070,1,"\u30AC\u30ED\u30F3"],[13071,1,"\u30AC\u30F3\u30DE"],[13072,1,"\u30AE\u30AC"],[13073,1,"\u30AE\u30CB\u30FC"],[13074,1,"\u30AD\u30E5\u30EA\u30FC"],[13075,1,"\u30AE\u30EB\u30C0\u30FC"],[13076,1,"\u30AD\u30ED"],[13077,1,"\u30AD\u30ED\u30B0\u30E9\u30E0"],[13078,1,"\u30AD\u30ED\u30E1\u30FC\u30C8\u30EB"],[13079,1,"\u30AD\u30ED\u30EF\u30C3\u30C8"],[13080,1,"\u30B0\u30E9\u30E0"],[13081,1,"\u30B0\u30E9\u30E0\u30C8\u30F3"],[13082,1,"\u30AF\u30EB\u30BC\u30A4\u30ED"],[13083,1,"\u30AF\u30ED\u30FC\u30CD"],[13084,1,"\u30B1\u30FC\u30B9"],[13085,1,"\u30B3\u30EB\u30CA"],[13086,1,"\u30B3\u30FC\u30DD"],[13087,1,"\u30B5\u30A4\u30AF\u30EB"],[13088,1,"\u30B5\u30F3\u30C1\u30FC\u30E0"],[13089,1,"\u30B7\u30EA\u30F3\u30B0"],[13090,1,"\u30BB\u30F3\u30C1"],[13091,1,"\u30BB\u30F3\u30C8"],[13092,1,"\u30C0\u30FC\u30B9"],[13093,1,"\u30C7\u30B7"],[13094,1,"\u30C9\u30EB"],[13095,1,"\u30C8\u30F3"],[13096,1,"\u30CA\u30CE"],[13097,1,"\u30CE\u30C3\u30C8"],[13098,1,"\u30CF\u30A4\u30C4"],[13099,1,"\u30D1\u30FC\u30BB\u30F3\u30C8"],[13100,1,"\u30D1\u30FC\u30C4"],[13101,1,"\u30D0\u30FC\u30EC\u30EB"],[13102,1,"\u30D4\u30A2\u30B9\u30C8\u30EB"],[13103,1,"\u30D4\u30AF\u30EB"],[13104,1,"\u30D4\u30B3"],[13105,1,"\u30D3\u30EB"],[13106,1,"\u30D5\u30A1\u30E9\u30C3\u30C9"],[13107,1,"\u30D5\u30A3\u30FC\u30C8"],[13108,1,"\u30D6\u30C3\u30B7\u30A7\u30EB"],[13109,1,"\u30D5\u30E9\u30F3"],[13110,1,"\u30D8\u30AF\u30BF\u30FC\u30EB"],[13111,1,"\u30DA\u30BD"],[13112,1,"\u30DA\u30CB\u30D2"],[13113,1,"\u30D8\u30EB\u30C4"],[13114,1,"\u30DA\u30F3\u30B9"],[13115,1,"\u30DA\u30FC\u30B8"],[13116,1,"\u30D9\u30FC\u30BF"],[13117,1,"\u30DD\u30A4\u30F3\u30C8"],[13118,1,"\u30DC\u30EB\u30C8"],[13119,1,"\u30DB\u30F3"],[13120,1,"\u30DD\u30F3\u30C9"],[13121,1,"\u30DB\u30FC\u30EB"],[13122,1,"\u30DB\u30FC\u30F3"],[13123,1,"\u30DE\u30A4\u30AF\u30ED"],[13124,1,"\u30DE\u30A4\u30EB"],[13125,1,"\u30DE\u30C3\u30CF"],[13126,1,"\u30DE\u30EB\u30AF"],[13127,1,"\u30DE\u30F3\u30B7\u30E7\u30F3"],[13128,1,"\u30DF\u30AF\u30ED\u30F3"],[13129,1,"\u30DF\u30EA"],[13130,1,"\u30DF\u30EA\u30D0\u30FC\u30EB"],[13131,1,"\u30E1\u30AC"],[13132,1,"\u30E1\u30AC\u30C8\u30F3"],[13133,1,"\u30E1\u30FC\u30C8\u30EB"],[13134,1,"\u30E4\u30FC\u30C9"],[13135,1,"\u30E4\u30FC\u30EB"],[13136,1,"\u30E6\u30A2\u30F3"],[13137,1,"\u30EA\u30C3\u30C8\u30EB"],[13138,1,"\u30EA\u30E9"],[13139,1,"\u30EB\u30D4\u30FC"],[13140,1,"\u30EB\u30FC\u30D6\u30EB"],[13141,1,"\u30EC\u30E0"],[13142,1,"\u30EC\u30F3\u30C8\u30B2\u30F3"],[13143,1,"\u30EF\u30C3\u30C8"],[13144,1,"0\u70B9"],[13145,1,"1\u70B9"],[13146,1,"2\u70B9"],[13147,1,"3\u70B9"],[13148,1,"4\u70B9"],[13149,1,"5\u70B9"],[13150,1,"6\u70B9"],[13151,1,"7\u70B9"],[13152,1,"8\u70B9"],[13153,1,"9\u70B9"],[13154,1,"10\u70B9"],[13155,1,"11\u70B9"],[13156,1,"12\u70B9"],[13157,1,"13\u70B9"],[13158,1,"14\u70B9"],[13159,1,"15\u70B9"],[13160,1,"16\u70B9"],[13161,1,"17\u70B9"],[13162,1,"18\u70B9"],[13163,1,"19\u70B9"],[13164,1,"20\u70B9"],[13165,1,"21\u70B9"],[13166,1,"22\u70B9"],[13167,1,"23\u70B9"],[13168,1,"24\u70B9"],[13169,1,"hpa"],[13170,1,"da"],[13171,1,"au"],[13172,1,"bar"],[13173,1,"ov"],[13174,1,"pc"],[13175,1,"dm"],[13176,1,"dm2"],[13177,1,"dm3"],[13178,1,"iu"],[13179,1,"\u5E73\u6210"],[13180,1,"\u662D\u548C"],[13181,1,"\u5927\u6B63"],[13182,1,"\u660E\u6CBB"],[13183,1,"\u682A\u5F0F\u4F1A\u793E"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"\u03BCa"],[13187,1,"ma"],[13188,1,"ka"],[13189,1,"kb"],[13190,1,"mb"],[13191,1,"gb"],[13192,1,"cal"],[13193,1,"kcal"],[13194,1,"pf"],[13195,1,"nf"],[13196,1,"\u03BCf"],[13197,1,"\u03BCg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"\u03BCl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"\u03BCm"],[13212,1,"mm"],[13213,1,"cm"],[13214,1,"km"],[13215,1,"mm2"],[13216,1,"cm2"],[13217,1,"m2"],[13218,1,"km2"],[13219,1,"mm3"],[13220,1,"cm3"],[13221,1,"m3"],[13222,1,"km3"],[13223,1,"m\u2215s"],[13224,1,"m\u2215s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad\u2215s"],[13231,1,"rad\u2215s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"\u03BCs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"\u03BCv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"\u03BCw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"k\u03C9"],[13249,1,"m\u03C9"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c\u2215kg"],[13255,3],[13256,1,"db"],[13257,1,"gy"],[13258,1,"ha"],[13259,1,"hp"],[13260,1,"in"],[13261,1,"kk"],[13262,1,"km"],[13263,1,"kt"],[13264,1,"lm"],[13265,1,"ln"],[13266,1,"log"],[13267,1,"lx"],[13268,1,"mb"],[13269,1,"mil"],[13270,1,"mol"],[13271,1,"ph"],[13272,3],[13273,1,"ppm"],[13274,1,"pr"],[13275,1,"sr"],[13276,1,"sv"],[13277,1,"wb"],[13278,1,"v\u2215m"],[13279,1,"a\u2215m"],[13280,1,"1\u65E5"],[13281,1,"2\u65E5"],[13282,1,"3\u65E5"],[13283,1,"4\u65E5"],[13284,1,"5\u65E5"],[13285,1,"6\u65E5"],[13286,1,"7\u65E5"],[13287,1,"8\u65E5"],[13288,1,"9\u65E5"],[13289,1,"10\u65E5"],[13290,1,"11\u65E5"],[13291,1,"12\u65E5"],[13292,1,"13\u65E5"],[13293,1,"14\u65E5"],[13294,1,"15\u65E5"],[13295,1,"16\u65E5"],[13296,1,"17\u65E5"],[13297,1,"18\u65E5"],[13298,1,"19\u65E5"],[13299,1,"20\u65E5"],[13300,1,"21\u65E5"],[13301,1,"22\u65E5"],[13302,1,"23\u65E5"],[13303,1,"24\u65E5"],[13304,1,"25\u65E5"],[13305,1,"26\u65E5"],[13306,1,"27\u65E5"],[13307,1,"28\u65E5"],[13308,1,"29\u65E5"],[13309,1,"30\u65E5"],[13310,1,"31\u65E5"],[13311,1,"gal"],[[13312,19893],2],[[19894,19903],2],[[19904,19967],2],[[19968,40869],2],[[40870,40891],2],[[40892,40899],2],[[40900,40907],2],[40908,2],[[40909,40917],2],[[40918,40938],2],[[40939,40943],2],[[40944,40956],2],[[40957,40959],2],[[40960,42124],2],[[42125,42127],3],[[42128,42145],2],[[42146,42147],2],[[42148,42163],2],[42164,2],[[42165,42176],2],[42177,2],[[42178,42180],2],[42181,2],[42182,2],[[42183,42191],3],[[42192,42237],2],[[42238,42239],2],[[42240,42508],2],[[42509,42511],2],[[42512,42539],2],[[42540,42559],3],[42560,1,"\uA641"],[42561,2],[42562,1,"\uA643"],[42563,2],[42564,1,"\uA645"],[42565,2],[42566,1,"\uA647"],[42567,2],[42568,1,"\uA649"],[42569,2],[42570,1,"\uA64B"],[42571,2],[42572,1,"\uA64D"],[42573,2],[42574,1,"\uA64F"],[42575,2],[42576,1,"\uA651"],[42577,2],[42578,1,"\uA653"],[42579,2],[42580,1,"\uA655"],[42581,2],[42582,1,"\uA657"],[42583,2],[42584,1,"\uA659"],[42585,2],[42586,1,"\uA65B"],[42587,2],[42588,1,"\uA65D"],[42589,2],[42590,1,"\uA65F"],[42591,2],[42592,1,"\uA661"],[42593,2],[42594,1,"\uA663"],[42595,2],[42596,1,"\uA665"],[42597,2],[42598,1,"\uA667"],[42599,2],[42600,1,"\uA669"],[42601,2],[42602,1,"\uA66B"],[42603,2],[42604,1,"\uA66D"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"\uA681"],[42625,2],[42626,1,"\uA683"],[42627,2],[42628,1,"\uA685"],[42629,2],[42630,1,"\uA687"],[42631,2],[42632,1,"\uA689"],[42633,2],[42634,1,"\uA68B"],[42635,2],[42636,1,"\uA68D"],[42637,2],[42638,1,"\uA68F"],[42639,2],[42640,1,"\uA691"],[42641,2],[42642,1,"\uA693"],[42643,2],[42644,1,"\uA695"],[42645,2],[42646,1,"\uA697"],[42647,2],[42648,1,"\uA699"],[42649,2],[42650,1,"\uA69B"],[42651,2],[42652,1,"\u044A"],[42653,1,"\u044C"],[42654,2],[42655,2],[[42656,42725],2],[[42726,42735],2],[[42736,42737],2],[[42738,42743],2],[[42744,42751],3],[[42752,42774],2],[[42775,42778],2],[[42779,42783],2],[[42784,42785],2],[42786,1,"\uA723"],[42787,2],[42788,1,"\uA725"],[42789,2],[42790,1,"\uA727"],[42791,2],[42792,1,"\uA729"],[42793,2],[42794,1,"\uA72B"],[42795,2],[42796,1,"\uA72D"],[42797,2],[42798,1,"\uA72F"],[[42799,42801],2],[42802,1,"\uA733"],[42803,2],[42804,1,"\uA735"],[42805,2],[42806,1,"\uA737"],[42807,2],[42808,1,"\uA739"],[42809,2],[42810,1,"\uA73B"],[42811,2],[42812,1,"\uA73D"],[42813,2],[42814,1,"\uA73F"],[42815,2],[42816,1,"\uA741"],[42817,2],[42818,1,"\uA743"],[42819,2],[42820,1,"\uA745"],[42821,2],[42822,1,"\uA747"],[42823,2],[42824,1,"\uA749"],[42825,2],[42826,1,"\uA74B"],[42827,2],[42828,1,"\uA74D"],[42829,2],[42830,1,"\uA74F"],[42831,2],[42832,1,"\uA751"],[42833,2],[42834,1,"\uA753"],[42835,2],[42836,1,"\uA755"],[42837,2],[42838,1,"\uA757"],[42839,2],[42840,1,"\uA759"],[42841,2],[42842,1,"\uA75B"],[42843,2],[42844,1,"\uA75D"],[42845,2],[42846,1,"\uA75F"],[42847,2],[42848,1,"\uA761"],[42849,2],[42850,1,"\uA763"],[42851,2],[42852,1,"\uA765"],[42853,2],[42854,1,"\uA767"],[42855,2],[42856,1,"\uA769"],[42857,2],[42858,1,"\uA76B"],[42859,2],[42860,1,"\uA76D"],[42861,2],[42862,1,"\uA76F"],[42863,2],[42864,1,"\uA76F"],[[42865,42872],2],[42873,1,"\uA77A"],[42874,2],[42875,1,"\uA77C"],[42876,2],[42877,1,"\u1D79"],[42878,1,"\uA77F"],[42879,2],[42880,1,"\uA781"],[42881,2],[42882,1,"\uA783"],[42883,2],[42884,1,"\uA785"],[42885,2],[42886,1,"\uA787"],[[42887,42888],2],[[42889,42890],2],[42891,1,"\uA78C"],[42892,2],[42893,1,"\u0265"],[42894,2],[42895,2],[42896,1,"\uA791"],[42897,2],[42898,1,"\uA793"],[42899,2],[[42900,42901],2],[42902,1,"\uA797"],[42903,2],[42904,1,"\uA799"],[42905,2],[42906,1,"\uA79B"],[42907,2],[42908,1,"\uA79D"],[42909,2],[42910,1,"\uA79F"],[42911,2],[42912,1,"\uA7A1"],[42913,2],[42914,1,"\uA7A3"],[42915,2],[42916,1,"\uA7A5"],[42917,2],[42918,1,"\uA7A7"],[42919,2],[42920,1,"\uA7A9"],[42921,2],[42922,1,"\u0266"],[42923,1,"\u025C"],[42924,1,"\u0261"],[42925,1,"\u026C"],[42926,1,"\u026A"],[42927,2],[42928,1,"\u029E"],[42929,1,"\u0287"],[42930,1,"\u029D"],[42931,1,"\uAB53"],[42932,1,"\uA7B5"],[42933,2],[42934,1,"\uA7B7"],[42935,2],[42936,1,"\uA7B9"],[42937,2],[42938,1,"\uA7BB"],[42939,2],[42940,1,"\uA7BD"],[42941,2],[42942,1,"\uA7BF"],[42943,2],[42944,1,"\uA7C1"],[42945,2],[42946,1,"\uA7C3"],[42947,2],[42948,1,"\uA794"],[42949,1,"\u0282"],[42950,1,"\u1D8E"],[42951,1,"\uA7C8"],[42952,2],[42953,1,"\uA7CA"],[42954,2],[[42955,42959],3],[42960,1,"\uA7D1"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"\uA7D7"],[42967,2],[42968,1,"\uA7D9"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"\uA7F6"],[42998,2],[42999,2],[43000,1,"\u0127"],[43001,1,"\u0153"],[43002,2],[[43003,43007],2],[[43008,43047],2],[[43048,43051],2],[43052,2],[[43053,43055],3],[[43056,43065],2],[[43066,43071],3],[[43072,43123],2],[[43124,43127],2],[[43128,43135],3],[[43136,43204],2],[43205,2],[[43206,43213],3],[[43214,43215],2],[[43216,43225],2],[[43226,43231],3],[[43232,43255],2],[[43256,43258],2],[43259,2],[43260,2],[43261,2],[[43262,43263],2],[[43264,43309],2],[[43310,43311],2],[[43312,43347],2],[[43348,43358],3],[43359,2],[[43360,43388],2],[[43389,43391],3],[[43392,43456],2],[[43457,43469],2],[43470,3],[[43471,43481],2],[[43482,43485],3],[[43486,43487],2],[[43488,43518],2],[43519,3],[[43520,43574],2],[[43575,43583],3],[[43584,43597],2],[[43598,43599],3],[[43600,43609],2],[[43610,43611],3],[[43612,43615],2],[[43616,43638],2],[[43639,43641],2],[[43642,43643],2],[[43644,43647],2],[[43648,43714],2],[[43715,43738],3],[[43739,43741],2],[[43742,43743],2],[[43744,43759],2],[[43760,43761],2],[[43762,43766],2],[[43767,43776],3],[[43777,43782],2],[[43783,43784],3],[[43785,43790],2],[[43791,43792],3],[[43793,43798],2],[[43799,43807],3],[[43808,43814],2],[43815,3],[[43816,43822],2],[43823,3],[[43824,43866],2],[43867,2],[43868,1,"\uA727"],[43869,1,"\uAB37"],[43870,1,"\u026B"],[43871,1,"\uAB52"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"\u028D"],[[43882,43883],2],[[43884,43887],3],[43888,1,"\u13A0"],[43889,1,"\u13A1"],[43890,1,"\u13A2"],[43891,1,"\u13A3"],[43892,1,"\u13A4"],[43893,1,"\u13A5"],[43894,1,"\u13A6"],[43895,1,"\u13A7"],[43896,1,"\u13A8"],[43897,1,"\u13A9"],[43898,1,"\u13AA"],[43899,1,"\u13AB"],[43900,1,"\u13AC"],[43901,1,"\u13AD"],[43902,1,"\u13AE"],[43903,1,"\u13AF"],[43904,1,"\u13B0"],[43905,1,"\u13B1"],[43906,1,"\u13B2"],[43907,1,"\u13B3"],[43908,1,"\u13B4"],[43909,1,"\u13B5"],[43910,1,"\u13B6"],[43911,1,"\u13B7"],[43912,1,"\u13B8"],[43913,1,"\u13B9"],[43914,1,"\u13BA"],[43915,1,"\u13BB"],[43916,1,"\u13BC"],[43917,1,"\u13BD"],[43918,1,"\u13BE"],[43919,1,"\u13BF"],[43920,1,"\u13C0"],[43921,1,"\u13C1"],[43922,1,"\u13C2"],[43923,1,"\u13C3"],[43924,1,"\u13C4"],[43925,1,"\u13C5"],[43926,1,"\u13C6"],[43927,1,"\u13C7"],[43928,1,"\u13C8"],[43929,1,"\u13C9"],[43930,1,"\u13CA"],[43931,1,"\u13CB"],[43932,1,"\u13CC"],[43933,1,"\u13CD"],[43934,1,"\u13CE"],[43935,1,"\u13CF"],[43936,1,"\u13D0"],[43937,1,"\u13D1"],[43938,1,"\u13D2"],[43939,1,"\u13D3"],[43940,1,"\u13D4"],[43941,1,"\u13D5"],[43942,1,"\u13D6"],[43943,1,"\u13D7"],[43944,1,"\u13D8"],[43945,1,"\u13D9"],[43946,1,"\u13DA"],[43947,1,"\u13DB"],[43948,1,"\u13DC"],[43949,1,"\u13DD"],[43950,1,"\u13DE"],[43951,1,"\u13DF"],[43952,1,"\u13E0"],[43953,1,"\u13E1"],[43954,1,"\u13E2"],[43955,1,"\u13E3"],[43956,1,"\u13E4"],[43957,1,"\u13E5"],[43958,1,"\u13E6"],[43959,1,"\u13E7"],[43960,1,"\u13E8"],[43961,1,"\u13E9"],[43962,1,"\u13EA"],[43963,1,"\u13EB"],[43964,1,"\u13EC"],[43965,1,"\u13ED"],[43966,1,"\u13EE"],[43967,1,"\u13EF"],[[43968,44010],2],[44011,2],[[44012,44013],2],[[44014,44015],3],[[44016,44025],2],[[44026,44031],3],[[44032,55203],2],[[55204,55215],3],[[55216,55238],2],[[55239,55242],3],[[55243,55291],2],[[55292,55295],3],[[55296,57343],3],[[57344,63743],3],[63744,1,"\u8C48"],[63745,1,"\u66F4"],[63746,1,"\u8ECA"],[63747,1,"\u8CC8"],[63748,1,"\u6ED1"],[63749,1,"\u4E32"],[63750,1,"\u53E5"],[[63751,63752],1,"\u9F9C"],[63753,1,"\u5951"],[63754,1,"\u91D1"],[63755,1,"\u5587"],[63756,1,"\u5948"],[63757,1,"\u61F6"],[63758,1,"\u7669"],[63759,1,"\u7F85"],[63760,1,"\u863F"],[63761,1,"\u87BA"],[63762,1,"\u88F8"],[63763,1,"\u908F"],[63764,1,"\u6A02"],[63765,1,"\u6D1B"],[63766,1,"\u70D9"],[63767,1,"\u73DE"],[63768,1,"\u843D"],[63769,1,"\u916A"],[63770,1,"\u99F1"],[63771,1,"\u4E82"],[63772,1,"\u5375"],[63773,1,"\u6B04"],[63774,1,"\u721B"],[63775,1,"\u862D"],[63776,1,"\u9E1E"],[63777,1,"\u5D50"],[63778,1,"\u6FEB"],[63779,1,"\u85CD"],[63780,1,"\u8964"],[63781,1,"\u62C9"],[63782,1,"\u81D8"],[63783,1,"\u881F"],[63784,1,"\u5ECA"],[63785,1,"\u6717"],[63786,1,"\u6D6A"],[63787,1,"\u72FC"],[63788,1,"\u90CE"],[63789,1,"\u4F86"],[63790,1,"\u51B7"],[63791,1,"\u52DE"],[63792,1,"\u64C4"],[63793,1,"\u6AD3"],[63794,1,"\u7210"],[63795,1,"\u76E7"],[63796,1,"\u8001"],[63797,1,"\u8606"],[63798,1,"\u865C"],[63799,1,"\u8DEF"],[63800,1,"\u9732"],[63801,1,"\u9B6F"],[63802,1,"\u9DFA"],[63803,1,"\u788C"],[63804,1,"\u797F"],[63805,1,"\u7DA0"],[63806,1,"\u83C9"],[63807,1,"\u9304"],[63808,1,"\u9E7F"],[63809,1,"\u8AD6"],[63810,1,"\u58DF"],[63811,1,"\u5F04"],[63812,1,"\u7C60"],[63813,1,"\u807E"],[63814,1,"\u7262"],[63815,1,"\u78CA"],[63816,1,"\u8CC2"],[63817,1,"\u96F7"],[63818,1,"\u58D8"],[63819,1,"\u5C62"],[63820,1,"\u6A13"],[63821,1,"\u6DDA"],[63822,1,"\u6F0F"],[63823,1,"\u7D2F"],[63824,1,"\u7E37"],[63825,1,"\u964B"],[63826,1,"\u52D2"],[63827,1,"\u808B"],[63828,1,"\u51DC"],[63829,1,"\u51CC"],[63830,1,"\u7A1C"],[63831,1,"\u7DBE"],[63832,1,"\u83F1"],[63833,1,"\u9675"],[63834,1,"\u8B80"],[63835,1,"\u62CF"],[63836,1,"\u6A02"],[63837,1,"\u8AFE"],[63838,1,"\u4E39"],[63839,1,"\u5BE7"],[63840,1,"\u6012"],[63841,1,"\u7387"],[63842,1,"\u7570"],[63843,1,"\u5317"],[63844,1,"\u78FB"],[63845,1,"\u4FBF"],[63846,1,"\u5FA9"],[63847,1,"\u4E0D"],[63848,1,"\u6CCC"],[63849,1,"\u6578"],[63850,1,"\u7D22"],[63851,1,"\u53C3"],[63852,1,"\u585E"],[63853,1,"\u7701"],[63854,1,"\u8449"],[63855,1,"\u8AAA"],[63856,1,"\u6BBA"],[63857,1,"\u8FB0"],[63858,1,"\u6C88"],[63859,1,"\u62FE"],[63860,1,"\u82E5"],[63861,1,"\u63A0"],[63862,1,"\u7565"],[63863,1,"\u4EAE"],[63864,1,"\u5169"],[63865,1,"\u51C9"],[63866,1,"\u6881"],[63867,1,"\u7CE7"],[63868,1,"\u826F"],[63869,1,"\u8AD2"],[63870,1,"\u91CF"],[63871,1,"\u52F5"],[63872,1,"\u5442"],[63873,1,"\u5973"],[63874,1,"\u5EEC"],[63875,1,"\u65C5"],[63876,1,"\u6FFE"],[63877,1,"\u792A"],[63878,1,"\u95AD"],[63879,1,"\u9A6A"],[63880,1,"\u9E97"],[63881,1,"\u9ECE"],[63882,1,"\u529B"],[63883,1,"\u66C6"],[63884,1,"\u6B77"],[63885,1,"\u8F62"],[63886,1,"\u5E74"],[63887,1,"\u6190"],[63888,1,"\u6200"],[63889,1,"\u649A"],[63890,1,"\u6F23"],[63891,1,"\u7149"],[63892,1,"\u7489"],[63893,1,"\u79CA"],[63894,1,"\u7DF4"],[63895,1,"\u806F"],[63896,1,"\u8F26"],[63897,1,"\u84EE"],[63898,1,"\u9023"],[63899,1,"\u934A"],[63900,1,"\u5217"],[63901,1,"\u52A3"],[63902,1,"\u54BD"],[63903,1,"\u70C8"],[63904,1,"\u88C2"],[63905,1,"\u8AAA"],[63906,1,"\u5EC9"],[63907,1,"\u5FF5"],[63908,1,"\u637B"],[63909,1,"\u6BAE"],[63910,1,"\u7C3E"],[63911,1,"\u7375"],[63912,1,"\u4EE4"],[63913,1,"\u56F9"],[63914,1,"\u5BE7"],[63915,1,"\u5DBA"],[63916,1,"\u601C"],[63917,1,"\u73B2"],[63918,1,"\u7469"],[63919,1,"\u7F9A"],[63920,1,"\u8046"],[63921,1,"\u9234"],[63922,1,"\u96F6"],[63923,1,"\u9748"],[63924,1,"\u9818"],[63925,1,"\u4F8B"],[63926,1,"\u79AE"],[63927,1,"\u91B4"],[63928,1,"\u96B8"],[63929,1,"\u60E1"],[63930,1,"\u4E86"],[63931,1,"\u50DA"],[63932,1,"\u5BEE"],[63933,1,"\u5C3F"],[63934,1,"\u6599"],[63935,1,"\u6A02"],[63936,1,"\u71CE"],[63937,1,"\u7642"],[63938,1,"\u84FC"],[63939,1,"\u907C"],[63940,1,"\u9F8D"],[63941,1,"\u6688"],[63942,1,"\u962E"],[63943,1,"\u5289"],[63944,1,"\u677B"],[63945,1,"\u67F3"],[63946,1,"\u6D41"],[63947,1,"\u6E9C"],[63948,1,"\u7409"],[63949,1,"\u7559"],[63950,1,"\u786B"],[63951,1,"\u7D10"],[63952,1,"\u985E"],[63953,1,"\u516D"],[63954,1,"\u622E"],[63955,1,"\u9678"],[63956,1,"\u502B"],[63957,1,"\u5D19"],[63958,1,"\u6DEA"],[63959,1,"\u8F2A"],[63960,1,"\u5F8B"],[63961,1,"\u6144"],[63962,1,"\u6817"],[63963,1,"\u7387"],[63964,1,"\u9686"],[63965,1,"\u5229"],[63966,1,"\u540F"],[63967,1,"\u5C65"],[63968,1,"\u6613"],[63969,1,"\u674E"],[63970,1,"\u68A8"],[63971,1,"\u6CE5"],[63972,1,"\u7406"],[63973,1,"\u75E2"],[63974,1,"\u7F79"],[63975,1,"\u88CF"],[63976,1,"\u88E1"],[63977,1,"\u91CC"],[63978,1,"\u96E2"],[63979,1,"\u533F"],[63980,1,"\u6EBA"],[63981,1,"\u541D"],[63982,1,"\u71D0"],[63983,1,"\u7498"],[63984,1,"\u85FA"],[63985,1,"\u96A3"],[63986,1,"\u9C57"],[63987,1,"\u9E9F"],[63988,1,"\u6797"],[63989,1,"\u6DCB"],[63990,1,"\u81E8"],[63991,1,"\u7ACB"],[63992,1,"\u7B20"],[63993,1,"\u7C92"],[63994,1,"\u72C0"],[63995,1,"\u7099"],[63996,1,"\u8B58"],[63997,1,"\u4EC0"],[63998,1,"\u8336"],[63999,1,"\u523A"],[64000,1,"\u5207"],[64001,1,"\u5EA6"],[64002,1,"\u62D3"],[64003,1,"\u7CD6"],[64004,1,"\u5B85"],[64005,1,"\u6D1E"],[64006,1,"\u66B4"],[64007,1,"\u8F3B"],[64008,1,"\u884C"],[64009,1,"\u964D"],[64010,1,"\u898B"],[64011,1,"\u5ED3"],[64012,1,"\u5140"],[64013,1,"\u55C0"],[[64014,64015],2],[64016,1,"\u585A"],[64017,2],[64018,1,"\u6674"],[[64019,64020],2],[64021,1,"\u51DE"],[64022,1,"\u732A"],[64023,1,"\u76CA"],[64024,1,"\u793C"],[64025,1,"\u795E"],[64026,1,"\u7965"],[64027,1,"\u798F"],[64028,1,"\u9756"],[64029,1,"\u7CBE"],[64030,1,"\u7FBD"],[64031,2],[64032,1,"\u8612"],[64033,2],[64034,1,"\u8AF8"],[[64035,64036],2],[64037,1,"\u9038"],[64038,1,"\u90FD"],[[64039,64041],2],[64042,1,"\u98EF"],[64043,1,"\u98FC"],[64044,1,"\u9928"],[64045,1,"\u9DB4"],[64046,1,"\u90DE"],[64047,1,"\u96B7"],[64048,1,"\u4FAE"],[64049,1,"\u50E7"],[64050,1,"\u514D"],[64051,1,"\u52C9"],[64052,1,"\u52E4"],[64053,1,"\u5351"],[64054,1,"\u559D"],[64055,1,"\u5606"],[64056,1,"\u5668"],[64057,1,"\u5840"],[64058,1,"\u58A8"],[64059,1,"\u5C64"],[64060,1,"\u5C6E"],[64061,1,"\u6094"],[64062,1,"\u6168"],[64063,1,"\u618E"],[64064,1,"\u61F2"],[64065,1,"\u654F"],[64066,1,"\u65E2"],[64067,1,"\u6691"],[64068,1,"\u6885"],[64069,1,"\u6D77"],[64070,1,"\u6E1A"],[64071,1,"\u6F22"],[64072,1,"\u716E"],[64073,1,"\u722B"],[64074,1,"\u7422"],[64075,1,"\u7891"],[64076,1,"\u793E"],[64077,1,"\u7949"],[64078,1,"\u7948"],[64079,1,"\u7950"],[64080,1,"\u7956"],[64081,1,"\u795D"],[64082,1,"\u798D"],[64083,1,"\u798E"],[64084,1,"\u7A40"],[64085,1,"\u7A81"],[64086,1,"\u7BC0"],[64087,1,"\u7DF4"],[64088,1,"\u7E09"],[64089,1,"\u7E41"],[64090,1,"\u7F72"],[64091,1,"\u8005"],[64092,1,"\u81ED"],[[64093,64094],1,"\u8279"],[64095,1,"\u8457"],[64096,1,"\u8910"],[64097,1,"\u8996"],[64098,1,"\u8B01"],[64099,1,"\u8B39"],[64100,1,"\u8CD3"],[64101,1,"\u8D08"],[64102,1,"\u8FB6"],[64103,1,"\u9038"],[64104,1,"\u96E3"],[64105,1,"\u97FF"],[64106,1,"\u983B"],[64107,1,"\u6075"],[64108,1,"\uD850\uDEEE"],[64109,1,"\u8218"],[[64110,64111],3],[64112,1,"\u4E26"],[64113,1,"\u51B5"],[64114,1,"\u5168"],[64115,1,"\u4F80"],[64116,1,"\u5145"],[64117,1,"\u5180"],[64118,1,"\u52C7"],[64119,1,"\u52FA"],[64120,1,"\u559D"],[64121,1,"\u5555"],[64122,1,"\u5599"],[64123,1,"\u55E2"],[64124,1,"\u585A"],[64125,1,"\u58B3"],[64126,1,"\u5944"],[64127,1,"\u5954"],[64128,1,"\u5A62"],[64129,1,"\u5B28"],[64130,1,"\u5ED2"],[64131,1,"\u5ED9"],[64132,1,"\u5F69"],[64133,1,"\u5FAD"],[64134,1,"\u60D8"],[64135,1,"\u614E"],[64136,1,"\u6108"],[64137,1,"\u618E"],[64138,1,"\u6160"],[64139,1,"\u61F2"],[64140,1,"\u6234"],[64141,1,"\u63C4"],[64142,1,"\u641C"],[64143,1,"\u6452"],[64144,1,"\u6556"],[64145,1,"\u6674"],[64146,1,"\u6717"],[64147,1,"\u671B"],[64148,1,"\u6756"],[64149,1,"\u6B79"],[64150,1,"\u6BBA"],[64151,1,"\u6D41"],[64152,1,"\u6EDB"],[64153,1,"\u6ECB"],[64154,1,"\u6F22"],[64155,1,"\u701E"],[64156,1,"\u716E"],[64157,1,"\u77A7"],[64158,1,"\u7235"],[64159,1,"\u72AF"],[64160,1,"\u732A"],[64161,1,"\u7471"],[64162,1,"\u7506"],[64163,1,"\u753B"],[64164,1,"\u761D"],[64165,1,"\u761F"],[64166,1,"\u76CA"],[64167,1,"\u76DB"],[64168,1,"\u76F4"],[64169,1,"\u774A"],[64170,1,"\u7740"],[64171,1,"\u78CC"],[64172,1,"\u7AB1"],[64173,1,"\u7BC0"],[64174,1,"\u7C7B"],[64175,1,"\u7D5B"],[64176,1,"\u7DF4"],[64177,1,"\u7F3E"],[64178,1,"\u8005"],[64179,1,"\u8352"],[64180,1,"\u83EF"],[64181,1,"\u8779"],[64182,1,"\u8941"],[64183,1,"\u8986"],[64184,1,"\u8996"],[64185,1,"\u8ABF"],[64186,1,"\u8AF8"],[64187,1,"\u8ACB"],[64188,1,"\u8B01"],[64189,1,"\u8AFE"],[64190,1,"\u8AED"],[64191,1,"\u8B39"],[64192,1,"\u8B8A"],[64193,1,"\u8D08"],[64194,1,"\u8F38"],[64195,1,"\u9072"],[64196,1,"\u9199"],[64197,1,"\u9276"],[64198,1,"\u967C"],[64199,1,"\u96E3"],[64200,1,"\u9756"],[64201,1,"\u97DB"],[64202,1,"\u97FF"],[64203,1,"\u980B"],[64204,1,"\u983B"],[64205,1,"\u9B12"],[64206,1,"\u9F9C"],[64207,1,"\uD84A\uDC4A"],[64208,1,"\uD84A\uDC44"],[64209,1,"\uD84C\uDFD5"],[64210,1,"\u3B9D"],[64211,1,"\u4018"],[64212,1,"\u4039"],[64213,1,"\uD854\uDE49"],[64214,1,"\uD857\uDCD0"],[64215,1,"\uD85F\uDED3"],[64216,1,"\u9F43"],[64217,1,"\u9F8E"],[[64218,64255],3],[64256,1,"ff"],[64257,1,"fi"],[64258,1,"fl"],[64259,1,"ffi"],[64260,1,"ffl"],[[64261,64262],1,"st"],[[64263,64274],3],[64275,1,"\u0574\u0576"],[64276,1,"\u0574\u0565"],[64277,1,"\u0574\u056B"],[64278,1,"\u057E\u0576"],[64279,1,"\u0574\u056D"],[[64280,64284],3],[64285,1,"\u05D9\u05B4"],[64286,2],[64287,1,"\u05F2\u05B7"],[64288,1,"\u05E2"],[64289,1,"\u05D0"],[64290,1,"\u05D3"],[64291,1,"\u05D4"],[64292,1,"\u05DB"],[64293,1,"\u05DC"],[64294,1,"\u05DD"],[64295,1,"\u05E8"],[64296,1,"\u05EA"],[64297,5,"+"],[64298,1,"\u05E9\u05C1"],[64299,1,"\u05E9\u05C2"],[64300,1,"\u05E9\u05BC\u05C1"],[64301,1,"\u05E9\u05BC\u05C2"],[64302,1,"\u05D0\u05B7"],[64303,1,"\u05D0\u05B8"],[64304,1,"\u05D0\u05BC"],[64305,1,"\u05D1\u05BC"],[64306,1,"\u05D2\u05BC"],[64307,1,"\u05D3\u05BC"],[64308,1,"\u05D4\u05BC"],[64309,1,"\u05D5\u05BC"],[64310,1,"\u05D6\u05BC"],[64311,3],[64312,1,"\u05D8\u05BC"],[64313,1,"\u05D9\u05BC"],[64314,1,"\u05DA\u05BC"],[64315,1,"\u05DB\u05BC"],[64316,1,"\u05DC\u05BC"],[64317,3],[64318,1,"\u05DE\u05BC"],[64319,3],[64320,1,"\u05E0\u05BC"],[64321,1,"\u05E1\u05BC"],[64322,3],[64323,1,"\u05E3\u05BC"],[64324,1,"\u05E4\u05BC"],[64325,3],[64326,1,"\u05E6\u05BC"],[64327,1,"\u05E7\u05BC"],[64328,1,"\u05E8\u05BC"],[64329,1,"\u05E9\u05BC"],[64330,1,"\u05EA\u05BC"],[64331,1,"\u05D5\u05B9"],[64332,1,"\u05D1\u05BF"],[64333,1,"\u05DB\u05BF"],[64334,1,"\u05E4\u05BF"],[64335,1,"\u05D0\u05DC"],[[64336,64337],1,"\u0671"],[[64338,64341],1,"\u067B"],[[64342,64345],1,"\u067E"],[[64346,64349],1,"\u0680"],[[64350,64353],1,"\u067A"],[[64354,64357],1,"\u067F"],[[64358,64361],1,"\u0679"],[[64362,64365],1,"\u06A4"],[[64366,64369],1,"\u06A6"],[[64370,64373],1,"\u0684"],[[64374,64377],1,"\u0683"],[[64378,64381],1,"\u0686"],[[64382,64385],1,"\u0687"],[[64386,64387],1,"\u068D"],[[64388,64389],1,"\u068C"],[[64390,64391],1,"\u068E"],[[64392,64393],1,"\u0688"],[[64394,64395],1,"\u0698"],[[64396,64397],1,"\u0691"],[[64398,64401],1,"\u06A9"],[[64402,64405],1,"\u06AF"],[[64406,64409],1,"\u06B3"],[[64410,64413],1,"\u06B1"],[[64414,64415],1,"\u06BA"],[[64416,64419],1,"\u06BB"],[[64420,64421],1,"\u06C0"],[[64422,64425],1,"\u06C1"],[[64426,64429],1,"\u06BE"],[[64430,64431],1,"\u06D2"],[[64432,64433],1,"\u06D3"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"\u06AD"],[[64471,64472],1,"\u06C7"],[[64473,64474],1,"\u06C6"],[[64475,64476],1,"\u06C8"],[64477,1,"\u06C7\u0674"],[[64478,64479],1,"\u06CB"],[[64480,64481],1,"\u06C5"],[[64482,64483],1,"\u06C9"],[[64484,64487],1,"\u06D0"],[[64488,64489],1,"\u0649"],[[64490,64491],1,"\u0626\u0627"],[[64492,64493],1,"\u0626\u06D5"],[[64494,64495],1,"\u0626\u0648"],[[64496,64497],1,"\u0626\u06C7"],[[64498,64499],1,"\u0626\u06C6"],[[64500,64501],1,"\u0626\u06C8"],[[64502,64504],1,"\u0626\u06D0"],[[64505,64507],1,"\u0626\u0649"],[[64508,64511],1,"\u06CC"],[64512,1,"\u0626\u062C"],[64513,1,"\u0626\u062D"],[64514,1,"\u0626\u0645"],[64515,1,"\u0626\u0649"],[64516,1,"\u0626\u064A"],[64517,1,"\u0628\u062C"],[64518,1,"\u0628\u062D"],[64519,1,"\u0628\u062E"],[64520,1,"\u0628\u0645"],[64521,1,"\u0628\u0649"],[64522,1,"\u0628\u064A"],[64523,1,"\u062A\u062C"],[64524,1,"\u062A\u062D"],[64525,1,"\u062A\u062E"],[64526,1,"\u062A\u0645"],[64527,1,"\u062A\u0649"],[64528,1,"\u062A\u064A"],[64529,1,"\u062B\u062C"],[64530,1,"\u062B\u0645"],[64531,1,"\u062B\u0649"],[64532,1,"\u062B\u064A"],[64533,1,"\u062C\u062D"],[64534,1,"\u062C\u0645"],[64535,1,"\u062D\u062C"],[64536,1,"\u062D\u0645"],[64537,1,"\u062E\u062C"],[64538,1,"\u062E\u062D"],[64539,1,"\u062E\u0645"],[64540,1,"\u0633\u062C"],[64541,1,"\u0633\u062D"],[64542,1,"\u0633\u062E"],[64543,1,"\u0633\u0645"],[64544,1,"\u0635\u062D"],[64545,1,"\u0635\u0645"],[64546,1,"\u0636\u062C"],[64547,1,"\u0636\u062D"],[64548,1,"\u0636\u062E"],[64549,1,"\u0636\u0645"],[64550,1,"\u0637\u062D"],[64551,1,"\u0637\u0645"],[64552,1,"\u0638\u0645"],[64553,1,"\u0639\u062C"],[64554,1,"\u0639\u0645"],[64555,1,"\u063A\u062C"],[64556,1,"\u063A\u0645"],[64557,1,"\u0641\u062C"],[64558,1,"\u0641\u062D"],[64559,1,"\u0641\u062E"],[64560,1,"\u0641\u0645"],[64561,1,"\u0641\u0649"],[64562,1,"\u0641\u064A"],[64563,1,"\u0642\u062D"],[64564,1,"\u0642\u0645"],[64565,1,"\u0642\u0649"],[64566,1,"\u0642\u064A"],[64567,1,"\u0643\u0627"],[64568,1,"\u0643\u062C"],[64569,1,"\u0643\u062D"],[64570,1,"\u0643\u062E"],[64571,1,"\u0643\u0644"],[64572,1,"\u0643\u0645"],[64573,1,"\u0643\u0649"],[64574,1,"\u0643\u064A"],[64575,1,"\u0644\u062C"],[64576,1,"\u0644\u062D"],[64577,1,"\u0644\u062E"],[64578,1,"\u0644\u0645"],[64579,1,"\u0644\u0649"],[64580,1,"\u0644\u064A"],[64581,1,"\u0645\u062C"],[64582,1,"\u0645\u062D"],[64583,1,"\u0645\u062E"],[64584,1,"\u0645\u0645"],[64585,1,"\u0645\u0649"],[64586,1,"\u0645\u064A"],[64587,1,"\u0646\u062C"],[64588,1,"\u0646\u062D"],[64589,1,"\u0646\u062E"],[64590,1,"\u0646\u0645"],[64591,1,"\u0646\u0649"],[64592,1,"\u0646\u064A"],[64593,1,"\u0647\u062C"],[64594,1,"\u0647\u0645"],[64595,1,"\u0647\u0649"],[64596,1,"\u0647\u064A"],[64597,1,"\u064A\u062C"],[64598,1,"\u064A\u062D"],[64599,1,"\u064A\u062E"],[64600,1,"\u064A\u0645"],[64601,1,"\u064A\u0649"],[64602,1,"\u064A\u064A"],[64603,1,"\u0630\u0670"],[64604,1,"\u0631\u0670"],[64605,1,"\u0649\u0670"],[64606,5," \u064C\u0651"],[64607,5," \u064D\u0651"],[64608,5," \u064E\u0651"],[64609,5," \u064F\u0651"],[64610,5," \u0650\u0651"],[64611,5," \u0651\u0670"],[64612,1,"\u0626\u0631"],[64613,1,"\u0626\u0632"],[64614,1,"\u0626\u0645"],[64615,1,"\u0626\u0646"],[64616,1,"\u0626\u0649"],[64617,1,"\u0626\u064A"],[64618,1,"\u0628\u0631"],[64619,1,"\u0628\u0632"],[64620,1,"\u0628\u0645"],[64621,1,"\u0628\u0646"],[64622,1,"\u0628\u0649"],[64623,1,"\u0628\u064A"],[64624,1,"\u062A\u0631"],[64625,1,"\u062A\u0632"],[64626,1,"\u062A\u0645"],[64627,1,"\u062A\u0646"],[64628,1,"\u062A\u0649"],[64629,1,"\u062A\u064A"],[64630,1,"\u062B\u0631"],[64631,1,"\u062B\u0632"],[64632,1,"\u062B\u0645"],[64633,1,"\u062B\u0646"],[64634,1,"\u062B\u0649"],[64635,1,"\u062B\u064A"],[64636,1,"\u0641\u0649"],[64637,1,"\u0641\u064A"],[64638,1,"\u0642\u0649"],[64639,1,"\u0642\u064A"],[64640,1,"\u0643\u0627"],[64641,1,"\u0643\u0644"],[64642,1,"\u0643\u0645"],[64643,1,"\u0643\u0649"],[64644,1,"\u0643\u064A"],[64645,1,"\u0644\u0645"],[64646,1,"\u0644\u0649"],[64647,1,"\u0644\u064A"],[64648,1,"\u0645\u0627"],[64649,1,"\u0645\u0645"],[64650,1,"\u0646\u0631"],[64651,1,"\u0646\u0632"],[64652,1,"\u0646\u0645"],[64653,1,"\u0646\u0646"],[64654,1,"\u0646\u0649"],[64655,1,"\u0646\u064A"],[64656,1,"\u0649\u0670"],[64657,1,"\u064A\u0631"],[64658,1,"\u064A\u0632"],[64659,1,"\u064A\u0645"],[64660,1,"\u064A\u0646"],[64661,1,"\u064A\u0649"],[64662,1,"\u064A\u064A"],[64663,1,"\u0626\u062C"],[64664,1,"\u0626\u062D"],[64665,1,"\u0626\u062E"],[64666,1,"\u0626\u0645"],[64667,1,"\u0626\u0647"],[64668,1,"\u0628\u062C"],[64669,1,"\u0628\u062D"],[64670,1,"\u0628\u062E"],[64671,1,"\u0628\u0645"],[64672,1,"\u0628\u0647"],[64673,1,"\u062A\u062C"],[64674,1,"\u062A\u062D"],[64675,1,"\u062A\u062E"],[64676,1,"\u062A\u0645"],[64677,1,"\u062A\u0647"],[64678,1,"\u062B\u0645"],[64679,1,"\u062C\u062D"],[64680,1,"\u062C\u0645"],[64681,1,"\u062D\u062C"],[64682,1,"\u062D\u0645"],[64683,1,"\u062E\u062C"],[64684,1,"\u062E\u0645"],[64685,1,"\u0633\u062C"],[64686,1,"\u0633\u062D"],[64687,1,"\u0633\u062E"],[64688,1,"\u0633\u0645"],[64689,1,"\u0635\u062D"],[64690,1,"\u0635\u062E"],[64691,1,"\u0635\u0645"],[64692,1,"\u0636\u062C"],[64693,1,"\u0636\u062D"],[64694,1,"\u0636\u062E"],[64695,1,"\u0636\u0645"],[64696,1,"\u0637\u062D"],[64697,1,"\u0638\u0645"],[64698,1,"\u0639\u062C"],[64699,1,"\u0639\u0645"],[64700,1,"\u063A\u062C"],[64701,1,"\u063A\u0645"],[64702,1,"\u0641\u062C"],[64703,1,"\u0641\u062D"],[64704,1,"\u0641\u062E"],[64705,1,"\u0641\u0645"],[64706,1,"\u0642\u062D"],[64707,1,"\u0642\u0645"],[64708,1,"\u0643\u062C"],[64709,1,"\u0643\u062D"],[64710,1,"\u0643\u062E"],[64711,1,"\u0643\u0644"],[64712,1,"\u0643\u0645"],[64713,1,"\u0644\u062C"],[64714,1,"\u0644\u062D"],[64715,1,"\u0644\u062E"],[64716,1,"\u0644\u0645"],[64717,1,"\u0644\u0647"],[64718,1,"\u0645\u062C"],[64719,1,"\u0645\u062D"],[64720,1,"\u0645\u062E"],[64721,1,"\u0645\u0645"],[64722,1,"\u0646\u062C"],[64723,1,"\u0646\u062D"],[64724,1,"\u0646\u062E"],[64725,1,"\u0646\u0645"],[64726,1,"\u0646\u0647"],[64727,1,"\u0647\u062C"],[64728,1,"\u0647\u0645"],[64729,1,"\u0647\u0670"],[64730,1,"\u064A\u062C"],[64731,1,"\u064A\u062D"],[64732,1,"\u064A\u062E"],[64733,1,"\u064A\u0645"],[64734,1,"\u064A\u0647"],[64735,1,"\u0626\u0645"],[64736,1,"\u0626\u0647"],[64737,1,"\u0628\u0645"],[64738,1,"\u0628\u0647"],[64739,1,"\u062A\u0645"],[64740,1,"\u062A\u0647"],[64741,1,"\u062B\u0645"],[64742,1,"\u062B\u0647"],[64743,1,"\u0633\u0645"],[64744,1,"\u0633\u0647"],[64745,1,"\u0634\u0645"],[64746,1,"\u0634\u0647"],[64747,1,"\u0643\u0644"],[64748,1,"\u0643\u0645"],[64749,1,"\u0644\u0645"],[64750,1,"\u0646\u0645"],[64751,1,"\u0646\u0647"],[64752,1,"\u064A\u0645"],[64753,1,"\u064A\u0647"],[64754,1,"\u0640\u064E\u0651"],[64755,1,"\u0640\u064F\u0651"],[64756,1,"\u0640\u0650\u0651"],[64757,1,"\u0637\u0649"],[64758,1,"\u0637\u064A"],[64759,1,"\u0639\u0649"],[64760,1,"\u0639\u064A"],[64761,1,"\u063A\u0649"],[64762,1,"\u063A\u064A"],[64763,1,"\u0633\u0649"],[64764,1,"\u0633\u064A"],[64765,1,"\u0634\u0649"],[64766,1,"\u0634\u064A"],[64767,1,"\u062D\u0649"],[64768,1,"\u062D\u064A"],[64769,1,"\u062C\u0649"],[64770,1,"\u062C\u064A"],[64771,1,"\u062E\u0649"],[64772,1,"\u062E\u064A"],[64773,1,"\u0635\u0649"],[64774,1,"\u0635\u064A"],[64775,1,"\u0636\u0649"],[64776,1,"\u0636\u064A"],[64777,1,"\u0634\u062C"],[64778,1,"\u0634\u062D"],[64779,1,"\u0634\u062E"],[64780,1,"\u0634\u0645"],[64781,1,"\u0634\u0631"],[64782,1,"\u0633\u0631"],[64783,1,"\u0635\u0631"],[64784,1,"\u0636\u0631"],[64785,1,"\u0637\u0649"],[64786,1,"\u0637\u064A"],[64787,1,"\u0639\u0649"],[64788,1,"\u0639\u064A"],[64789,1,"\u063A\u0649"],[64790,1,"\u063A\u064A"],[64791,1,"\u0633\u0649"],[64792,1,"\u0633\u064A"],[64793,1,"\u0634\u0649"],[64794,1,"\u0634\u064A"],[64795,1,"\u062D\u0649"],[64796,1,"\u062D\u064A"],[64797,1,"\u062C\u0649"],[64798,1,"\u062C\u064A"],[64799,1,"\u062E\u0649"],[64800,1,"\u062E\u064A"],[64801,1,"\u0635\u0649"],[64802,1,"\u0635\u064A"],[64803,1,"\u0636\u0649"],[64804,1,"\u0636\u064A"],[64805,1,"\u0634\u062C"],[64806,1,"\u0634\u062D"],[64807,1,"\u0634\u062E"],[64808,1,"\u0634\u0645"],[64809,1,"\u0634\u0631"],[64810,1,"\u0633\u0631"],[64811,1,"\u0635\u0631"],[64812,1,"\u0636\u0631"],[64813,1,"\u0634\u062C"],[64814,1,"\u0634\u062D"],[64815,1,"\u0634\u062E"],[64816,1,"\u0634\u0645"],[64817,1,"\u0633\u0647"],[64818,1,"\u0634\u0647"],[64819,1,"\u0637\u0645"],[64820,1,"\u0633\u062C"],[64821,1,"\u0633\u062D"],[64822,1,"\u0633\u062E"],[64823,1,"\u0634\u062C"],[64824,1,"\u0634\u062D"],[64825,1,"\u0634\u062E"],[64826,1,"\u0637\u0645"],[64827,1,"\u0638\u0645"],[[64828,64829],1,"\u0627\u064B"],[[64830,64831],2],[[64832,64847],2],[64848,1,"\u062A\u062C\u0645"],[[64849,64850],1,"\u062A\u062D\u062C"],[64851,1,"\u062A\u062D\u0645"],[64852,1,"\u062A\u062E\u0645"],[64853,1,"\u062A\u0645\u062C"],[64854,1,"\u062A\u0645\u062D"],[64855,1,"\u062A\u0645\u062E"],[[64856,64857],1,"\u062C\u0645\u062D"],[64858,1,"\u062D\u0645\u064A"],[64859,1,"\u062D\u0645\u0649"],[64860,1,"\u0633\u062D\u062C"],[64861,1,"\u0633\u062C\u062D"],[64862,1,"\u0633\u062C\u0649"],[[64863,64864],1,"\u0633\u0645\u062D"],[64865,1,"\u0633\u0645\u062C"],[[64866,64867],1,"\u0633\u0645\u0645"],[[64868,64869],1,"\u0635\u062D\u062D"],[64870,1,"\u0635\u0645\u0645"],[[64871,64872],1,"\u0634\u062D\u0645"],[64873,1,"\u0634\u062C\u064A"],[[64874,64875],1,"\u0634\u0645\u062E"],[[64876,64877],1,"\u0634\u0645\u0645"],[64878,1,"\u0636\u062D\u0649"],[[64879,64880],1,"\u0636\u062E\u0645"],[[64881,64882],1,"\u0637\u0645\u062D"],[64883,1,"\u0637\u0645\u0645"],[64884,1,"\u0637\u0645\u064A"],[64885,1,"\u0639\u062C\u0645"],[[64886,64887],1,"\u0639\u0645\u0645"],[64888,1,"\u0639\u0645\u0649"],[64889,1,"\u063A\u0645\u0645"],[64890,1,"\u063A\u0645\u064A"],[64891,1,"\u063A\u0645\u0649"],[[64892,64893],1,"\u0641\u062E\u0645"],[64894,1,"\u0642\u0645\u062D"],[64895,1,"\u0642\u0645\u0645"],[64896,1,"\u0644\u062D\u0645"],[64897,1,"\u0644\u062D\u064A"],[64898,1,"\u0644\u062D\u0649"],[[64899,64900],1,"\u0644\u062C\u062C"],[[64901,64902],1,"\u0644\u062E\u0645"],[[64903,64904],1,"\u0644\u0645\u062D"],[64905,1,"\u0645\u062D\u062C"],[64906,1,"\u0645\u062D\u0645"],[64907,1,"\u0645\u062D\u064A"],[64908,1,"\u0645\u062C\u062D"],[64909,1,"\u0645\u062C\u0645"],[64910,1,"\u0645\u062E\u062C"],[64911,1,"\u0645\u062E\u0645"],[[64912,64913],3],[64914,1,"\u0645\u062C\u062E"],[64915,1,"\u0647\u0645\u062C"],[64916,1,"\u0647\u0645\u0645"],[64917,1,"\u0646\u062D\u0645"],[64918,1,"\u0646\u062D\u0649"],[[64919,64920],1,"\u0646\u062C\u0645"],[64921,1,"\u0646\u062C\u0649"],[64922,1,"\u0646\u0645\u064A"],[64923,1,"\u0646\u0645\u0649"],[[64924,64925],1,"\u064A\u0645\u0645"],[64926,1,"\u0628\u062E\u064A"],[64927,1,"\u062A\u062C\u064A"],[64928,1,"\u062A\u062C\u0649"],[64929,1,"\u062A\u062E\u064A"],[64930,1,"\u062A\u062E\u0649"],[64931,1,"\u062A\u0645\u064A"],[64932,1,"\u062A\u0645\u0649"],[64933,1,"\u062C\u0645\u064A"],[64934,1,"\u062C\u062D\u0649"],[64935,1,"\u062C\u0645\u0649"],[64936,1,"\u0633\u062E\u0649"],[64937,1,"\u0635\u062D\u064A"],[64938,1,"\u0634\u062D\u064A"],[64939,1,"\u0636\u062D\u064A"],[64940,1,"\u0644\u062C\u064A"],[64941,1,"\u0644\u0645\u064A"],[64942,1,"\u064A\u062D\u064A"],[64943,1,"\u064A\u062C\u064A"],[64944,1,"\u064A\u0645\u064A"],[64945,1,"\u0645\u0645\u064A"],[64946,1,"\u0642\u0645\u064A"],[64947,1,"\u0646\u062D\u064A"],[64948,1,"\u0642\u0645\u062D"],[64949,1,"\u0644\u062D\u0645"],[64950,1,"\u0639\u0645\u064A"],[64951,1,"\u0643\u0645\u064A"],[64952,1,"\u0646\u062C\u062D"],[64953,1,"\u0645\u062E\u064A"],[64954,1,"\u0644\u062C\u0645"],[64955,1,"\u0643\u0645\u0645"],[64956,1,"\u0644\u062C\u0645"],[64957,1,"\u0646\u062C\u062D"],[64958,1,"\u062C\u062D\u064A"],[64959,1,"\u062D\u062C\u064A"],[64960,1,"\u0645\u062C\u064A"],[64961,1,"\u0641\u0645\u064A"],[64962,1,"\u0628\u062D\u064A"],[64963,1,"\u0643\u0645\u0645"],[64964,1,"\u0639\u062C\u0645"],[64965,1,"\u0635\u0645\u0645"],[64966,1,"\u0633\u062E\u064A"],[64967,1,"\u0646\u062C\u064A"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"\u0635\u0644\u06D2"],[65009,1,"\u0642\u0644\u06D2"],[65010,1,"\u0627\u0644\u0644\u0647"],[65011,1,"\u0627\u0643\u0628\u0631"],[65012,1,"\u0645\u062D\u0645\u062F"],[65013,1,"\u0635\u0644\u0639\u0645"],[65014,1,"\u0631\u0633\u0648\u0644"],[65015,1,"\u0639\u0644\u064A\u0647"],[65016,1,"\u0648\u0633\u0644\u0645"],[65017,1,"\u0635\u0644\u0649"],[65018,5,"\u0635\u0644\u0649 \u0627\u0644\u0644\u0647 \u0639\u0644\u064A\u0647 \u0648\u0633\u0644\u0645"],[65019,5,"\u062C\u0644 \u062C\u0644\u0627\u0644\u0647"],[65020,1,"\u0631\u06CC\u0627\u0644"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"\u3001"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"\u3016"],[65048,1,"\u3017"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"\u2014"],[65074,1,"\u2013"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"\u3014"],[65082,1,"\u3015"],[65083,1,"\u3010"],[65084,1,"\u3011"],[65085,1,"\u300A"],[65086,1,"\u300B"],[65087,1,"\u3008"],[65088,1,"\u3009"],[65089,1,"\u300C"],[65090,1,"\u300D"],[65091,1,"\u300E"],[65092,1,"\u300F"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," \u0305"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"\u3001"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"\u2014"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"\u3014"],[65118,1,"\u3015"],[65119,5,"#"],[65120,5,"&"],[65121,5,"*"],[65122,5,"+"],[65123,1,"-"],[65124,5,"<"],[65125,5,">"],[65126,5,"="],[65127,3],[65128,5,"\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," \u064B"],[65137,1,"\u0640\u064B"],[65138,5," \u064C"],[65139,2],[65140,5," \u064D"],[65141,3],[65142,5," \u064E"],[65143,1,"\u0640\u064E"],[65144,5," \u064F"],[65145,1,"\u0640\u064F"],[65146,5," \u0650"],[65147,1,"\u0640\u0650"],[65148,5," \u0651"],[65149,1,"\u0640\u0651"],[65150,5," \u0652"],[65151,1,"\u0640\u0652"],[65152,1,"\u0621"],[[65153,65154],1,"\u0622"],[[65155,65156],1,"\u0623"],[[65157,65158],1,"\u0624"],[[65159,65160],1,"\u0625"],[[65161,65164],1,"\u0626"],[[65165,65166],1,"\u0627"],[[65167,65170],1,"\u0628"],[[65171,65172],1,"\u0629"],[[65173,65176],1,"\u062A"],[[65177,65180],1,"\u062B"],[[65181,65184],1,"\u062C"],[[65185,65188],1,"\u062D"],[[65189,65192],1,"\u062E"],[[65193,65194],1,"\u062F"],[[65195,65196],1,"\u0630"],[[65197,65198],1,"\u0631"],[[65199,65200],1,"\u0632"],[[65201,65204],1,"\u0633"],[[65205,65208],1,"\u0634"],[[65209,65212],1,"\u0635"],[[65213,65216],1,"\u0636"],[[65217,65220],1,"\u0637"],[[65221,65224],1,"\u0638"],[[65225,65228],1,"\u0639"],[[65229,65232],1,"\u063A"],[[65233,65236],1,"\u0641"],[[65237,65240],1,"\u0642"],[[65241,65244],1,"\u0643"],[[65245,65248],1,"\u0644"],[[65249,65252],1,"\u0645"],[[65253,65256],1,"\u0646"],[[65257,65260],1,"\u0647"],[[65261,65262],1,"\u0648"],[[65263,65264],1,"\u0649"],[[65265,65268],1,"\u064A"],[[65269,65270],1,"\u0644\u0622"],[[65271,65272],1,"\u0644\u0623"],[[65273,65274],1,"\u0644\u0625"],[[65275,65276],1,"\u0644\u0627"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,"\""],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"\u2985"],[65376,1,"\u2986"],[65377,1,"."],[65378,1,"\u300C"],[65379,1,"\u300D"],[65380,1,"\u3001"],[65381,1,"\u30FB"],[65382,1,"\u30F2"],[65383,1,"\u30A1"],[65384,1,"\u30A3"],[65385,1,"\u30A5"],[65386,1,"\u30A7"],[65387,1,"\u30A9"],[65388,1,"\u30E3"],[65389,1,"\u30E5"],[65390,1,"\u30E7"],[65391,1,"\u30C3"],[65392,1,"\u30FC"],[65393,1,"\u30A2"],[65394,1,"\u30A4"],[65395,1,"\u30A6"],[65396,1,"\u30A8"],[65397,1,"\u30AA"],[65398,1,"\u30AB"],[65399,1,"\u30AD"],[65400,1,"\u30AF"],[65401,1,"\u30B1"],[65402,1,"\u30B3"],[65403,1,"\u30B5"],[65404,1,"\u30B7"],[65405,1,"\u30B9"],[65406,1,"\u30BB"],[65407,1,"\u30BD"],[65408,1,"\u30BF"],[65409,1,"\u30C1"],[65410,1,"\u30C4"],[65411,1,"\u30C6"],[65412,1,"\u30C8"],[65413,1,"\u30CA"],[65414,1,"\u30CB"],[65415,1,"\u30CC"],[65416,1,"\u30CD"],[65417,1,"\u30CE"],[65418,1,"\u30CF"],[65419,1,"\u30D2"],[65420,1,"\u30D5"],[65421,1,"\u30D8"],[65422,1,"\u30DB"],[65423,1,"\u30DE"],[65424,1,"\u30DF"],[65425,1,"\u30E0"],[65426,1,"\u30E1"],[65427,1,"\u30E2"],[65428,1,"\u30E4"],[65429,1,"\u30E6"],[65430,1,"\u30E8"],[65431,1,"\u30E9"],[65432,1,"\u30EA"],[65433,1,"\u30EB"],[65434,1,"\u30EC"],[65435,1,"\u30ED"],[65436,1,"\u30EF"],[65437,1,"\u30F3"],[65438,1,"\u3099"],[65439,1,"\u309A"],[65440,3],[65441,1,"\u1100"],[65442,1,"\u1101"],[65443,1,"\u11AA"],[65444,1,"\u1102"],[65445,1,"\u11AC"],[65446,1,"\u11AD"],[65447,1,"\u1103"],[65448,1,"\u1104"],[65449,1,"\u1105"],[65450,1,"\u11B0"],[65451,1,"\u11B1"],[65452,1,"\u11B2"],[65453,1,"\u11B3"],[65454,1,"\u11B4"],[65455,1,"\u11B5"],[65456,1,"\u111A"],[65457,1,"\u1106"],[65458,1,"\u1107"],[65459,1,"\u1108"],[65460,1,"\u1121"],[65461,1,"\u1109"],[65462,1,"\u110A"],[65463,1,"\u110B"],[65464,1,"\u110C"],[65465,1,"\u110D"],[65466,1,"\u110E"],[65467,1,"\u110F"],[65468,1,"\u1110"],[65469,1,"\u1111"],[65470,1,"\u1112"],[[65471,65473],3],[65474,1,"\u1161"],[65475,1,"\u1162"],[65476,1,"\u1163"],[65477,1,"\u1164"],[65478,1,"\u1165"],[65479,1,"\u1166"],[[65480,65481],3],[65482,1,"\u1167"],[65483,1,"\u1168"],[65484,1,"\u1169"],[65485,1,"\u116A"],[65486,1,"\u116B"],[65487,1,"\u116C"],[[65488,65489],3],[65490,1,"\u116D"],[65491,1,"\u116E"],[65492,1,"\u116F"],[65493,1,"\u1170"],[65494,1,"\u1171"],[65495,1,"\u1172"],[[65496,65497],3],[65498,1,"\u1173"],[65499,1,"\u1174"],[65500,1,"\u1175"],[[65501,65503],3],[65504,1,"\xA2"],[65505,1,"\xA3"],[65506,1,"\xAC"],[65507,5," \u0304"],[65508,1,"\xA6"],[65509,1,"\xA5"],[65510,1,"\u20A9"],[65511,3],[65512,1,"\u2502"],[65513,1,"\u2190"],[65514,1,"\u2191"],[65515,1,"\u2192"],[65516,1,"\u2193"],[65517,1,"\u25A0"],[65518,1,"\u25CB"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66000,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"\uD801\uDC28"],[66561,1,"\uD801\uDC29"],[66562,1,"\uD801\uDC2A"],[66563,1,"\uD801\uDC2B"],[66564,1,"\uD801\uDC2C"],[66565,1,"\uD801\uDC2D"],[66566,1,"\uD801\uDC2E"],[66567,1,"\uD801\uDC2F"],[66568,1,"\uD801\uDC30"],[66569,1,"\uD801\uDC31"],[66570,1,"\uD801\uDC32"],[66571,1,"\uD801\uDC33"],[66572,1,"\uD801\uDC34"],[66573,1,"\uD801\uDC35"],[66574,1,"\uD801\uDC36"],[66575,1,"\uD801\uDC37"],[66576,1,"\uD801\uDC38"],[66577,1,"\uD801\uDC39"],[66578,1,"\uD801\uDC3A"],[66579,1,"\uD801\uDC3B"],[66580,1,"\uD801\uDC3C"],[66581,1,"\uD801\uDC3D"],[66582,1,"\uD801\uDC3E"],[66583,1,"\uD801\uDC3F"],[66584,1,"\uD801\uDC40"],[66585,1,"\uD801\uDC41"],[66586,1,"\uD801\uDC42"],[66587,1,"\uD801\uDC43"],[66588,1,"\uD801\uDC44"],[66589,1,"\uD801\uDC45"],[66590,1,"\uD801\uDC46"],[66591,1,"\uD801\uDC47"],[66592,1,"\uD801\uDC48"],[66593,1,"\uD801\uDC49"],[66594,1,"\uD801\uDC4A"],[66595,1,"\uD801\uDC4B"],[66596,1,"\uD801\uDC4C"],[66597,1,"\uD801\uDC4D"],[66598,1,"\uD801\uDC4E"],[66599,1,"\uD801\uDC4F"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"\uD801\uDCD8"],[66737,1,"\uD801\uDCD9"],[66738,1,"\uD801\uDCDA"],[66739,1,"\uD801\uDCDB"],[66740,1,"\uD801\uDCDC"],[66741,1,"\uD801\uDCDD"],[66742,1,"\uD801\uDCDE"],[66743,1,"\uD801\uDCDF"],[66744,1,"\uD801\uDCE0"],[66745,1,"\uD801\uDCE1"],[66746,1,"\uD801\uDCE2"],[66747,1,"\uD801\uDCE3"],[66748,1,"\uD801\uDCE4"],[66749,1,"\uD801\uDCE5"],[66750,1,"\uD801\uDCE6"],[66751,1,"\uD801\uDCE7"],[66752,1,"\uD801\uDCE8"],[66753,1,"\uD801\uDCE9"],[66754,1,"\uD801\uDCEA"],[66755,1,"\uD801\uDCEB"],[66756,1,"\uD801\uDCEC"],[66757,1,"\uD801\uDCED"],[66758,1,"\uD801\uDCEE"],[66759,1,"\uD801\uDCEF"],[66760,1,"\uD801\uDCF0"],[66761,1,"\uD801\uDCF1"],[66762,1,"\uD801\uDCF2"],[66763,1,"\uD801\uDCF3"],[66764,1,"\uD801\uDCF4"],[66765,1,"\uD801\uDCF5"],[66766,1,"\uD801\uDCF6"],[66767,1,"\uD801\uDCF7"],[66768,1,"\uD801\uDCF8"],[66769,1,"\uD801\uDCF9"],[66770,1,"\uD801\uDCFA"],[66771,1,"\uD801\uDCFB"],[[66772,66775],3],[[66776,66811],2],[[66812,66815],3],[[66816,66855],2],[[66856,66863],3],[[66864,66915],2],[[66916,66926],3],[66927,2],[66928,1,"\uD801\uDD97"],[66929,1,"\uD801\uDD98"],[66930,1,"\uD801\uDD99"],[66931,1,"\uD801\uDD9A"],[66932,1,"\uD801\uDD9B"],[66933,1,"\uD801\uDD9C"],[66934,1,"\uD801\uDD9D"],[66935,1,"\uD801\uDD9E"],[66936,1,"\uD801\uDD9F"],[66937,1,"\uD801\uDDA0"],[66938,1,"\uD801\uDDA1"],[66939,3],[66940,1,"\uD801\uDDA3"],[66941,1,"\uD801\uDDA4"],[66942,1,"\uD801\uDDA5"],[66943,1,"\uD801\uDDA6"],[66944,1,"\uD801\uDDA7"],[66945,1,"\uD801\uDDA8"],[66946,1,"\uD801\uDDA9"],[66947,1,"\uD801\uDDAA"],[66948,1,"\uD801\uDDAB"],[66949,1,"\uD801\uDDAC"],[66950,1,"\uD801\uDDAD"],[66951,1,"\uD801\uDDAE"],[66952,1,"\uD801\uDDAF"],[66953,1,"\uD801\uDDB0"],[66954,1,"\uD801\uDDB1"],[66955,3],[66956,1,"\uD801\uDDB3"],[66957,1,"\uD801\uDDB4"],[66958,1,"\uD801\uDDB5"],[66959,1,"\uD801\uDDB6"],[66960,1,"\uD801\uDDB7"],[66961,1,"\uD801\uDDB8"],[66962,1,"\uD801\uDDB9"],[66963,3],[66964,1,"\uD801\uDDBB"],[66965,1,"\uD801\uDDBC"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"\u02D0"],[67458,1,"\u02D1"],[67459,1,"\xE6"],[67460,1,"\u0299"],[67461,1,"\u0253"],[67462,3],[67463,1,"\u02A3"],[67464,1,"\uAB66"],[67465,1,"\u02A5"],[67466,1,"\u02A4"],[67467,1,"\u0256"],[67468,1,"\u0257"],[67469,1,"\u1D91"],[67470,1,"\u0258"],[67471,1,"\u025E"],[67472,1,"\u02A9"],[67473,1,"\u0264"],[67474,1,"\u0262"],[67475,1,"\u0260"],[67476,1,"\u029B"],[67477,1,"\u0127"],[67478,1,"\u029C"],[67479,1,"\u0267"],[67480,1,"\u0284"],[67481,1,"\u02AA"],[67482,1,"\u02AB"],[67483,1,"\u026C"],[67484,1,"\uD837\uDF04"],[67485,1,"\uA78E"],[67486,1,"\u026E"],[67487,1,"\uD837\uDF05"],[67488,1,"\u028E"],[67489,1,"\uD837\uDF06"],[67490,1,"\xF8"],[67491,1,"\u0276"],[67492,1,"\u0277"],[67493,1,"q"],[67494,1,"\u027A"],[67495,1,"\uD837\uDF08"],[67496,1,"\u027D"],[67497,1,"\u027E"],[67498,1,"\u0280"],[67499,1,"\u02A8"],[67500,1,"\u02A6"],[67501,1,"\uAB67"],[67502,1,"\u02A7"],[67503,1,"\u0288"],[67504,1,"\u2C71"],[67505,3],[67506,1,"\u028F"],[67507,1,"\u02A1"],[67508,1,"\u02A2"],[67509,1,"\u0298"],[67510,1,"\u01C0"],[67511,1,"\u01C1"],[67512,1,"\u01C2"],[67513,1,"\uD837\uDF0A"],[67514,1,"\uD837\uDF1E"],[[67515,67583],3],[[67584,67589],2],[[67590,67591],3],[67592,2],[67593,3],[[67594,67637],2],[67638,3],[[67639,67640],2],[[67641,67643],3],[67644,2],[[67645,67646],3],[67647,2],[[67648,67669],2],[67670,3],[[67671,67679],2],[[67680,67702],2],[[67703,67711],2],[[67712,67742],2],[[67743,67750],3],[[67751,67759],2],[[67760,67807],3],[[67808,67826],2],[67827,3],[[67828,67829],2],[[67830,67834],3],[[67835,67839],2],[[67840,67861],2],[[67862,67865],2],[[67866,67867],2],[[67868,67870],3],[67871,2],[[67872,67897],2],[[67898,67902],3],[67903,2],[[67904,67967],3],[[67968,68023],2],[[68024,68027],3],[[68028,68029],2],[[68030,68031],2],[[68032,68047],2],[[68048,68049],3],[[68050,68095],2],[[68096,68099],2],[68100,3],[[68101,68102],2],[[68103,68107],3],[[68108,68115],2],[68116,3],[[68117,68119],2],[68120,3],[[68121,68147],2],[[68148,68149],2],[[68150,68151],3],[[68152,68154],2],[[68155,68158],3],[68159,2],[[68160,68167],2],[68168,2],[[68169,68175],3],[[68176,68184],2],[[68185,68191],3],[[68192,68220],2],[[68221,68223],2],[[68224,68252],2],[[68253,68255],2],[[68256,68287],3],[[68288,68295],2],[68296,2],[[68297,68326],2],[[68327,68330],3],[[68331,68342],2],[[68343,68351],3],[[68352,68405],2],[[68406,68408],3],[[68409,68415],2],[[68416,68437],2],[[68438,68439],3],[[68440,68447],2],[[68448,68466],2],[[68467,68471],3],[[68472,68479],2],[[68480,68497],2],[[68498,68504],3],[[68505,68508],2],[[68509,68520],3],[[68521,68527],2],[[68528,68607],3],[[68608,68680],2],[[68681,68735],3],[68736,1,"\uD803\uDCC0"],[68737,1,"\uD803\uDCC1"],[68738,1,"\uD803\uDCC2"],[68739,1,"\uD803\uDCC3"],[68740,1,"\uD803\uDCC4"],[68741,1,"\uD803\uDCC5"],[68742,1,"\uD803\uDCC6"],[68743,1,"\uD803\uDCC7"],[68744,1,"\uD803\uDCC8"],[68745,1,"\uD803\uDCC9"],[68746,1,"\uD803\uDCCA"],[68747,1,"\uD803\uDCCB"],[68748,1,"\uD803\uDCCC"],[68749,1,"\uD803\uDCCD"],[68750,1,"\uD803\uDCCE"],[68751,1,"\uD803\uDCCF"],[68752,1,"\uD803\uDCD0"],[68753,1,"\uD803\uDCD1"],[68754,1,"\uD803\uDCD2"],[68755,1,"\uD803\uDCD3"],[68756,1,"\uD803\uDCD4"],[68757,1,"\uD803\uDCD5"],[68758,1,"\uD803\uDCD6"],[68759,1,"\uD803\uDCD7"],[68760,1,"\uD803\uDCD8"],[68761,1,"\uD803\uDCD9"],[68762,1,"\uD803\uDCDA"],[68763,1,"\uD803\uDCDB"],[68764,1,"\uD803\uDCDC"],[68765,1,"\uD803\uDCDD"],[68766,1,"\uD803\uDCDE"],[68767,1,"\uD803\uDCDF"],[68768,1,"\uD803\uDCE0"],[68769,1,"\uD803\uDCE1"],[68770,1,"\uD803\uDCE2"],[68771,1,"\uD803\uDCE3"],[68772,1,"\uD803\uDCE4"],[68773,1,"\uD803\uDCE5"],[68774,1,"\uD803\uDCE6"],[68775,1,"\uD803\uDCE7"],[68776,1,"\uD803\uDCE8"],[68777,1,"\uD803\uDCE9"],[68778,1,"\uD803\uDCEA"],[68779,1,"\uD803\uDCEB"],[68780,1,"\uD803\uDCEC"],[68781,1,"\uD803\uDCED"],[68782,1,"\uD803\uDCEE"],[68783,1,"\uD803\uDCEF"],[68784,1,"\uD803\uDCF0"],[68785,1,"\uD803\uDCF1"],[68786,1,"\uD803\uDCF2"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69372],3],[[69373,69375],2],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70209],2],[[70210,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"\uD806\uDCC0"],[71841,1,"\uD806\uDCC1"],[71842,1,"\uD806\uDCC2"],[71843,1,"\uD806\uDCC3"],[71844,1,"\uD806\uDCC4"],[71845,1,"\uD806\uDCC5"],[71846,1,"\uD806\uDCC6"],[71847,1,"\uD806\uDCC7"],[71848,1,"\uD806\uDCC8"],[71849,1,"\uD806\uDCC9"],[71850,1,"\uD806\uDCCA"],[71851,1,"\uD806\uDCCB"],[71852,1,"\uD806\uDCCC"],[71853,1,"\uD806\uDCCD"],[71854,1,"\uD806\uDCCE"],[71855,1,"\uD806\uDCCF"],[71856,1,"\uD806\uDCD0"],[71857,1,"\uD806\uDCD1"],[71858,1,"\uD806\uDCD2"],[71859,1,"\uD806\uDCD3"],[71860,1,"\uD806\uDCD4"],[71861,1,"\uD806\uDCD5"],[71862,1,"\uD806\uDCD6"],[71863,1,"\uD806\uDCD7"],[71864,1,"\uD806\uDCD8"],[71865,1,"\uD806\uDCD9"],[71866,1,"\uD806\uDCDA"],[71867,1,"\uD806\uDCDB"],[71868,1,"\uD806\uDCDC"],[71869,1,"\uD806\uDCDD"],[71870,1,"\uD806\uDCDE"],[71871,1,"\uD806\uDCDF"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72447],3],[[72448,72457],2],[[72458,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73471],3],[[73472,73488],2],[73489,3],[[73490,73530],2],[[73531,73533],3],[[73534,73538],2],[[73539,73551],2],[[73552,73561],2],[[73562,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,2],[[78896,78904],3],[[78905,78911],3],[[78912,78933],2],[[78934,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"\uD81B\uDE60"],[93761,1,"\uD81B\uDE61"],[93762,1,"\uD81B\uDE62"],[93763,1,"\uD81B\uDE63"],[93764,1,"\uD81B\uDE64"],[93765,1,"\uD81B\uDE65"],[93766,1,"\uD81B\uDE66"],[93767,1,"\uD81B\uDE67"],[93768,1,"\uD81B\uDE68"],[93769,1,"\uD81B\uDE69"],[93770,1,"\uD81B\uDE6A"],[93771,1,"\uD81B\uDE6B"],[93772,1,"\uD81B\uDE6C"],[93773,1,"\uD81B\uDE6D"],[93774,1,"\uD81B\uDE6E"],[93775,1,"\uD81B\uDE6F"],[93776,1,"\uD81B\uDE70"],[93777,1,"\uD81B\uDE71"],[93778,1,"\uD81B\uDE72"],[93779,1,"\uD81B\uDE73"],[93780,1,"\uD81B\uDE74"],[93781,1,"\uD81B\uDE75"],[93782,1,"\uD81B\uDE76"],[93783,1,"\uD81B\uDE77"],[93784,1,"\uD81B\uDE78"],[93785,1,"\uD81B\uDE79"],[93786,1,"\uD81B\uDE7A"],[93787,1,"\uD81B\uDE7B"],[93788,1,"\uD81B\uDE7C"],[93789,1,"\uD81B\uDE7D"],[93790,1,"\uD81B\uDE7E"],[93791,1,"\uD81B\uDE7F"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110897],3],[110898,2],[[110899,110927],3],[[110928,110930],2],[[110931,110932],3],[110933,2],[[110934,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"\uD834\uDD57\uD834\uDD65"],[119135,1,"\uD834\uDD58\uD834\uDD65"],[119136,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6E"],[119137,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6F"],[119138,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD70"],[119139,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD71"],[119140,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD72"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"\uD834\uDDB9\uD834\uDD65"],[119228,1,"\uD834\uDDBA\uD834\uDD65"],[119229,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6E"],[119230,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6E"],[119231,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6F"],[119232,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6F"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119487],3],[[119488,119507],2],[[119508,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[120000,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"\u0131"],[120485,1,"\u0237"],[[120486,120487],3],[120488,1,"\u03B1"],[120489,1,"\u03B2"],[120490,1,"\u03B3"],[120491,1,"\u03B4"],[120492,1,"\u03B5"],[120493,1,"\u03B6"],[120494,1,"\u03B7"],[120495,1,"\u03B8"],[120496,1,"\u03B9"],[120497,1,"\u03BA"],[120498,1,"\u03BB"],[120499,1,"\u03BC"],[120500,1,"\u03BD"],[120501,1,"\u03BE"],[120502,1,"\u03BF"],[120503,1,"\u03C0"],[120504,1,"\u03C1"],[120505,1,"\u03B8"],[120506,1,"\u03C3"],[120507,1,"\u03C4"],[120508,1,"\u03C5"],[120509,1,"\u03C6"],[120510,1,"\u03C7"],[120511,1,"\u03C8"],[120512,1,"\u03C9"],[120513,1,"\u2207"],[120514,1,"\u03B1"],[120515,1,"\u03B2"],[120516,1,"\u03B3"],[120517,1,"\u03B4"],[120518,1,"\u03B5"],[120519,1,"\u03B6"],[120520,1,"\u03B7"],[120521,1,"\u03B8"],[120522,1,"\u03B9"],[120523,1,"\u03BA"],[120524,1,"\u03BB"],[120525,1,"\u03BC"],[120526,1,"\u03BD"],[120527,1,"\u03BE"],[120528,1,"\u03BF"],[120529,1,"\u03C0"],[120530,1,"\u03C1"],[[120531,120532],1,"\u03C3"],[120533,1,"\u03C4"],[120534,1,"\u03C5"],[120535,1,"\u03C6"],[120536,1,"\u03C7"],[120537,1,"\u03C8"],[120538,1,"\u03C9"],[120539,1,"\u2202"],[120540,1,"\u03B5"],[120541,1,"\u03B8"],[120542,1,"\u03BA"],[120543,1,"\u03C6"],[120544,1,"\u03C1"],[120545,1,"\u03C0"],[120546,1,"\u03B1"],[120547,1,"\u03B2"],[120548,1,"\u03B3"],[120549,1,"\u03B4"],[120550,1,"\u03B5"],[120551,1,"\u03B6"],[120552,1,"\u03B7"],[120553,1,"\u03B8"],[120554,1,"\u03B9"],[120555,1,"\u03BA"],[120556,1,"\u03BB"],[120557,1,"\u03BC"],[120558,1,"\u03BD"],[120559,1,"\u03BE"],[120560,1,"\u03BF"],[120561,1,"\u03C0"],[120562,1,"\u03C1"],[120563,1,"\u03B8"],[120564,1,"\u03C3"],[120565,1,"\u03C4"],[120566,1,"\u03C5"],[120567,1,"\u03C6"],[120568,1,"\u03C7"],[120569,1,"\u03C8"],[120570,1,"\u03C9"],[120571,1,"\u2207"],[120572,1,"\u03B1"],[120573,1,"\u03B2"],[120574,1,"\u03B3"],[120575,1,"\u03B4"],[120576,1,"\u03B5"],[120577,1,"\u03B6"],[120578,1,"\u03B7"],[120579,1,"\u03B8"],[120580,1,"\u03B9"],[120581,1,"\u03BA"],[120582,1,"\u03BB"],[120583,1,"\u03BC"],[120584,1,"\u03BD"],[120585,1,"\u03BE"],[120586,1,"\u03BF"],[120587,1,"\u03C0"],[120588,1,"\u03C1"],[[120589,120590],1,"\u03C3"],[120591,1,"\u03C4"],[120592,1,"\u03C5"],[120593,1,"\u03C6"],[120594,1,"\u03C7"],[120595,1,"\u03C8"],[120596,1,"\u03C9"],[120597,1,"\u2202"],[120598,1,"\u03B5"],[120599,1,"\u03B8"],[120600,1,"\u03BA"],[120601,1,"\u03C6"],[120602,1,"\u03C1"],[120603,1,"\u03C0"],[120604,1,"\u03B1"],[120605,1,"\u03B2"],[120606,1,"\u03B3"],[120607,1,"\u03B4"],[120608,1,"\u03B5"],[120609,1,"\u03B6"],[120610,1,"\u03B7"],[120611,1,"\u03B8"],[120612,1,"\u03B9"],[120613,1,"\u03BA"],[120614,1,"\u03BB"],[120615,1,"\u03BC"],[120616,1,"\u03BD"],[120617,1,"\u03BE"],[120618,1,"\u03BF"],[120619,1,"\u03C0"],[120620,1,"\u03C1"],[120621,1,"\u03B8"],[120622,1,"\u03C3"],[120623,1,"\u03C4"],[120624,1,"\u03C5"],[120625,1,"\u03C6"],[120626,1,"\u03C7"],[120627,1,"\u03C8"],[120628,1,"\u03C9"],[120629,1,"\u2207"],[120630,1,"\u03B1"],[120631,1,"\u03B2"],[120632,1,"\u03B3"],[120633,1,"\u03B4"],[120634,1,"\u03B5"],[120635,1,"\u03B6"],[120636,1,"\u03B7"],[120637,1,"\u03B8"],[120638,1,"\u03B9"],[120639,1,"\u03BA"],[120640,1,"\u03BB"],[120641,1,"\u03BC"],[120642,1,"\u03BD"],[120643,1,"\u03BE"],[120644,1,"\u03BF"],[120645,1,"\u03C0"],[120646,1,"\u03C1"],[[120647,120648],1,"\u03C3"],[120649,1,"\u03C4"],[120650,1,"\u03C5"],[120651,1,"\u03C6"],[120652,1,"\u03C7"],[120653,1,"\u03C8"],[120654,1,"\u03C9"],[120655,1,"\u2202"],[120656,1,"\u03B5"],[120657,1,"\u03B8"],[120658,1,"\u03BA"],[120659,1,"\u03C6"],[120660,1,"\u03C1"],[120661,1,"\u03C0"],[120662,1,"\u03B1"],[120663,1,"\u03B2"],[120664,1,"\u03B3"],[120665,1,"\u03B4"],[120666,1,"\u03B5"],[120667,1,"\u03B6"],[120668,1,"\u03B7"],[120669,1,"\u03B8"],[120670,1,"\u03B9"],[120671,1,"\u03BA"],[120672,1,"\u03BB"],[120673,1,"\u03BC"],[120674,1,"\u03BD"],[120675,1,"\u03BE"],[120676,1,"\u03BF"],[120677,1,"\u03C0"],[120678,1,"\u03C1"],[120679,1,"\u03B8"],[120680,1,"\u03C3"],[120681,1,"\u03C4"],[120682,1,"\u03C5"],[120683,1,"\u03C6"],[120684,1,"\u03C7"],[120685,1,"\u03C8"],[120686,1,"\u03C9"],[120687,1,"\u2207"],[120688,1,"\u03B1"],[120689,1,"\u03B2"],[120690,1,"\u03B3"],[120691,1,"\u03B4"],[120692,1,"\u03B5"],[120693,1,"\u03B6"],[120694,1,"\u03B7"],[120695,1,"\u03B8"],[120696,1,"\u03B9"],[120697,1,"\u03BA"],[120698,1,"\u03BB"],[120699,1,"\u03BC"],[120700,1,"\u03BD"],[120701,1,"\u03BE"],[120702,1,"\u03BF"],[120703,1,"\u03C0"],[120704,1,"\u03C1"],[[120705,120706],1,"\u03C3"],[120707,1,"\u03C4"],[120708,1,"\u03C5"],[120709,1,"\u03C6"],[120710,1,"\u03C7"],[120711,1,"\u03C8"],[120712,1,"\u03C9"],[120713,1,"\u2202"],[120714,1,"\u03B5"],[120715,1,"\u03B8"],[120716,1,"\u03BA"],[120717,1,"\u03C6"],[120718,1,"\u03C1"],[120719,1,"\u03C0"],[120720,1,"\u03B1"],[120721,1,"\u03B2"],[120722,1,"\u03B3"],[120723,1,"\u03B4"],[120724,1,"\u03B5"],[120725,1,"\u03B6"],[120726,1,"\u03B7"],[120727,1,"\u03B8"],[120728,1,"\u03B9"],[120729,1,"\u03BA"],[120730,1,"\u03BB"],[120731,1,"\u03BC"],[120732,1,"\u03BD"],[120733,1,"\u03BE"],[120734,1,"\u03BF"],[120735,1,"\u03C0"],[120736,1,"\u03C1"],[120737,1,"\u03B8"],[120738,1,"\u03C3"],[120739,1,"\u03C4"],[120740,1,"\u03C5"],[120741,1,"\u03C6"],[120742,1,"\u03C7"],[120743,1,"\u03C8"],[120744,1,"\u03C9"],[120745,1,"\u2207"],[120746,1,"\u03B1"],[120747,1,"\u03B2"],[120748,1,"\u03B3"],[120749,1,"\u03B4"],[120750,1,"\u03B5"],[120751,1,"\u03B6"],[120752,1,"\u03B7"],[120753,1,"\u03B8"],[120754,1,"\u03B9"],[120755,1,"\u03BA"],[120756,1,"\u03BB"],[120757,1,"\u03BC"],[120758,1,"\u03BD"],[120759,1,"\u03BE"],[120760,1,"\u03BF"],[120761,1,"\u03C0"],[120762,1,"\u03C1"],[[120763,120764],1,"\u03C3"],[120765,1,"\u03C4"],[120766,1,"\u03C5"],[120767,1,"\u03C6"],[120768,1,"\u03C7"],[120769,1,"\u03C8"],[120770,1,"\u03C9"],[120771,1,"\u2202"],[120772,1,"\u03B5"],[120773,1,"\u03B8"],[120774,1,"\u03BA"],[120775,1,"\u03C6"],[120776,1,"\u03C1"],[120777,1,"\u03C0"],[[120778,120779],1,"\u03DD"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122660],3],[[122661,122666],2],[[122667,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,122927],3],[122928,1,"\u0430"],[122929,1,"\u0431"],[122930,1,"\u0432"],[122931,1,"\u0433"],[122932,1,"\u0434"],[122933,1,"\u0435"],[122934,1,"\u0436"],[122935,1,"\u0437"],[122936,1,"\u0438"],[122937,1,"\u043A"],[122938,1,"\u043B"],[122939,1,"\u043C"],[122940,1,"\u043E"],[122941,1,"\u043F"],[122942,1,"\u0440"],[122943,1,"\u0441"],[122944,1,"\u0442"],[122945,1,"\u0443"],[122946,1,"\u0444"],[122947,1,"\u0445"],[122948,1,"\u0446"],[122949,1,"\u0447"],[122950,1,"\u0448"],[122951,1,"\u044B"],[122952,1,"\u044D"],[122953,1,"\u044E"],[122954,1,"\uA689"],[122955,1,"\u04D9"],[122956,1,"\u0456"],[122957,1,"\u0458"],[122958,1,"\u04E9"],[122959,1,"\u04AF"],[122960,1,"\u04CF"],[122961,1,"\u0430"],[122962,1,"\u0431"],[122963,1,"\u0432"],[122964,1,"\u0433"],[122965,1,"\u0434"],[122966,1,"\u0435"],[122967,1,"\u0436"],[122968,1,"\u0437"],[122969,1,"\u0438"],[122970,1,"\u043A"],[122971,1,"\u043B"],[122972,1,"\u043E"],[122973,1,"\u043F"],[122974,1,"\u0441"],[122975,1,"\u0443"],[122976,1,"\u0444"],[122977,1,"\u0445"],[122978,1,"\u0446"],[122979,1,"\u0447"],[122980,1,"\u0448"],[122981,1,"\u044A"],[122982,1,"\u044B"],[122983,1,"\u0491"],[122984,1,"\u0456"],[122985,1,"\u0455"],[122986,1,"\u045F"],[122987,1,"\u04AB"],[122988,1,"\uA651"],[122989,1,"\u04B1"],[[122990,123022],3],[123023,2],[[123024,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124111],3],[[124112,124153],2],[[124154,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"\uD83A\uDD22"],[125185,1,"\uD83A\uDD23"],[125186,1,"\uD83A\uDD24"],[125187,1,"\uD83A\uDD25"],[125188,1,"\uD83A\uDD26"],[125189,1,"\uD83A\uDD27"],[125190,1,"\uD83A\uDD28"],[125191,1,"\uD83A\uDD29"],[125192,1,"\uD83A\uDD2A"],[125193,1,"\uD83A\uDD2B"],[125194,1,"\uD83A\uDD2C"],[125195,1,"\uD83A\uDD2D"],[125196,1,"\uD83A\uDD2E"],[125197,1,"\uD83A\uDD2F"],[125198,1,"\uD83A\uDD30"],[125199,1,"\uD83A\uDD31"],[125200,1,"\uD83A\uDD32"],[125201,1,"\uD83A\uDD33"],[125202,1,"\uD83A\uDD34"],[125203,1,"\uD83A\uDD35"],[125204,1,"\uD83A\uDD36"],[125205,1,"\uD83A\uDD37"],[125206,1,"\uD83A\uDD38"],[125207,1,"\uD83A\uDD39"],[125208,1,"\uD83A\uDD3A"],[125209,1,"\uD83A\uDD3B"],[125210,1,"\uD83A\uDD3C"],[125211,1,"\uD83A\uDD3D"],[125212,1,"\uD83A\uDD3E"],[125213,1,"\uD83A\uDD3F"],[125214,1,"\uD83A\uDD40"],[125215,1,"\uD83A\uDD41"],[125216,1,"\uD83A\uDD42"],[125217,1,"\uD83A\uDD43"],[[125218,125258],2],[125259,2],[[125260,125263],3],[[125264,125273],2],[[125274,125277],3],[[125278,125279],2],[[125280,126064],3],[[126065,126132],2],[[126133,126208],3],[[126209,126269],2],[[126270,126463],3],[126464,1,"\u0627"],[126465,1,"\u0628"],[126466,1,"\u062C"],[126467,1,"\u062F"],[126468,3],[126469,1,"\u0648"],[126470,1,"\u0632"],[126471,1,"\u062D"],[126472,1,"\u0637"],[126473,1,"\u064A"],[126474,1,"\u0643"],[126475,1,"\u0644"],[126476,1,"\u0645"],[126477,1,"\u0646"],[126478,1,"\u0633"],[126479,1,"\u0639"],[126480,1,"\u0641"],[126481,1,"\u0635"],[126482,1,"\u0642"],[126483,1,"\u0631"],[126484,1,"\u0634"],[126485,1,"\u062A"],[126486,1,"\u062B"],[126487,1,"\u062E"],[126488,1,"\u0630"],[126489,1,"\u0636"],[126490,1,"\u0638"],[126491,1,"\u063A"],[126492,1,"\u066E"],[126493,1,"\u06BA"],[126494,1,"\u06A1"],[126495,1,"\u066F"],[126496,3],[126497,1,"\u0628"],[126498,1,"\u062C"],[126499,3],[126500,1,"\u0647"],[[126501,126502],3],[126503,1,"\u062D"],[126504,3],[126505,1,"\u064A"],[126506,1,"\u0643"],[126507,1,"\u0644"],[126508,1,"\u0645"],[126509,1,"\u0646"],[126510,1,"\u0633"],[126511,1,"\u0639"],[126512,1,"\u0641"],[126513,1,"\u0635"],[126514,1,"\u0642"],[126515,3],[126516,1,"\u0634"],[126517,1,"\u062A"],[126518,1,"\u062B"],[126519,1,"\u062E"],[126520,3],[126521,1,"\u0636"],[126522,3],[126523,1,"\u063A"],[[126524,126529],3],[126530,1,"\u062C"],[[126531,126534],3],[126535,1,"\u062D"],[126536,3],[126537,1,"\u064A"],[126538,3],[126539,1,"\u0644"],[126540,3],[126541,1,"\u0646"],[126542,1,"\u0633"],[126543,1,"\u0639"],[126544,3],[126545,1,"\u0635"],[126546,1,"\u0642"],[126547,3],[126548,1,"\u0634"],[[126549,126550],3],[126551,1,"\u062E"],[126552,3],[126553,1,"\u0636"],[126554,3],[126555,1,"\u063A"],[126556,3],[126557,1,"\u06BA"],[126558,3],[126559,1,"\u066F"],[126560,3],[126561,1,"\u0628"],[126562,1,"\u062C"],[126563,3],[126564,1,"\u0647"],[[126565,126566],3],[126567,1,"\u062D"],[126568,1,"\u0637"],[126569,1,"\u064A"],[126570,1,"\u0643"],[126571,3],[126572,1,"\u0645"],[126573,1,"\u0646"],[126574,1,"\u0633"],[126575,1,"\u0639"],[126576,1,"\u0641"],[126577,1,"\u0635"],[126578,1,"\u0642"],[126579,3],[126580,1,"\u0634"],[126581,1,"\u062A"],[126582,1,"\u062B"],[126583,1,"\u062E"],[126584,3],[126585,1,"\u0636"],[126586,1,"\u0638"],[126587,1,"\u063A"],[126588,1,"\u066E"],[126589,3],[126590,1,"\u06A1"],[126591,3],[126592,1,"\u0627"],[126593,1,"\u0628"],[126594,1,"\u062C"],[126595,1,"\u062F"],[126596,1,"\u0647"],[126597,1,"\u0648"],[126598,1,"\u0632"],[126599,1,"\u062D"],[126600,1,"\u0637"],[126601,1,"\u064A"],[126602,3],[126603,1,"\u0644"],[126604,1,"\u0645"],[126605,1,"\u0646"],[126606,1,"\u0633"],[126607,1,"\u0639"],[126608,1,"\u0641"],[126609,1,"\u0635"],[126610,1,"\u0642"],[126611,1,"\u0631"],[126612,1,"\u0634"],[126613,1,"\u062A"],[126614,1,"\u062B"],[126615,1,"\u062E"],[126616,1,"\u0630"],[126617,1,"\u0636"],[126618,1,"\u0638"],[126619,1,"\u063A"],[[126620,126624],3],[126625,1,"\u0628"],[126626,1,"\u062C"],[126627,1,"\u062F"],[126628,3],[126629,1,"\u0648"],[126630,1,"\u0632"],[126631,1,"\u062D"],[126632,1,"\u0637"],[126633,1,"\u064A"],[126634,3],[126635,1,"\u0644"],[126636,1,"\u0645"],[126637,1,"\u0646"],[126638,1,"\u0633"],[126639,1,"\u0639"],[126640,1,"\u0641"],[126641,1,"\u0635"],[126642,1,"\u0642"],[126643,1,"\u0631"],[126644,1,"\u0634"],[126645,1,"\u062A"],[126646,1,"\u062B"],[126647,1,"\u062E"],[126648,1,"\u0630"],[126649,1,"\u0636"],[126650,1,"\u0638"],[126651,1,"\u063A"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"\u3014s\u3015"],[127275,1,"c"],[127276,1,"r"],[127277,1,"cd"],[127278,1,"wz"],[127279,2],[127280,1,"a"],[127281,1,"b"],[127282,1,"c"],[127283,1,"d"],[127284,1,"e"],[127285,1,"f"],[127286,1,"g"],[127287,1,"h"],[127288,1,"i"],[127289,1,"j"],[127290,1,"k"],[127291,1,"l"],[127292,1,"m"],[127293,1,"n"],[127294,1,"o"],[127295,1,"p"],[127296,1,"q"],[127297,1,"r"],[127298,1,"s"],[127299,1,"t"],[127300,1,"u"],[127301,1,"v"],[127302,1,"w"],[127303,1,"x"],[127304,1,"y"],[127305,1,"z"],[127306,1,"hv"],[127307,1,"mv"],[127308,1,"sd"],[127309,1,"ss"],[127310,1,"ppv"],[127311,1,"wc"],[[127312,127318],2],[127319,2],[[127320,127326],2],[127327,2],[[127328,127337],2],[127338,1,"mc"],[127339,1,"md"],[127340,1,"mr"],[[127341,127343],2],[[127344,127352],2],[127353,2],[127354,2],[[127355,127356],2],[[127357,127358],2],[127359,2],[[127360,127369],2],[[127370,127373],2],[[127374,127375],2],[127376,1,"dj"],[[127377,127386],2],[[127387,127404],2],[127405,2],[[127406,127461],3],[[127462,127487],2],[127488,1,"\u307B\u304B"],[127489,1,"\u30B3\u30B3"],[127490,1,"\u30B5"],[[127491,127503],3],[127504,1,"\u624B"],[127505,1,"\u5B57"],[127506,1,"\u53CC"],[127507,1,"\u30C7"],[127508,1,"\u4E8C"],[127509,1,"\u591A"],[127510,1,"\u89E3"],[127511,1,"\u5929"],[127512,1,"\u4EA4"],[127513,1,"\u6620"],[127514,1,"\u7121"],[127515,1,"\u6599"],[127516,1,"\u524D"],[127517,1,"\u5F8C"],[127518,1,"\u518D"],[127519,1,"\u65B0"],[127520,1,"\u521D"],[127521,1,"\u7D42"],[127522,1,"\u751F"],[127523,1,"\u8CA9"],[127524,1,"\u58F0"],[127525,1,"\u5439"],[127526,1,"\u6F14"],[127527,1,"\u6295"],[127528,1,"\u6355"],[127529,1,"\u4E00"],[127530,1,"\u4E09"],[127531,1,"\u904A"],[127532,1,"\u5DE6"],[127533,1,"\u4E2D"],[127534,1,"\u53F3"],[127535,1,"\u6307"],[127536,1,"\u8D70"],[127537,1,"\u6253"],[127538,1,"\u7981"],[127539,1,"\u7A7A"],[127540,1,"\u5408"],[127541,1,"\u6E80"],[127542,1,"\u6709"],[127543,1,"\u6708"],[127544,1,"\u7533"],[127545,1,"\u5272"],[127546,1,"\u55B6"],[127547,1,"\u914D"],[[127548,127551],3],[127552,1,"\u3014\u672C\u3015"],[127553,1,"\u3014\u4E09\u3015"],[127554,1,"\u3014\u4E8C\u3015"],[127555,1,"\u3014\u5B89\u3015"],[127556,1,"\u3014\u70B9\u3015"],[127557,1,"\u3014\u6253\u3015"],[127558,1,"\u3014\u76D7\u3015"],[127559,1,"\u3014\u52DD\u3015"],[127560,1,"\u3014\u6557\u3015"],[[127561,127567],3],[127568,1,"\u5F97"],[127569,1,"\u53EF"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128000,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128731],3],[128732,2],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128886],2],[[128887,128890],3],[[128891,128895],2],[[128896,128980],2],[[128981,128984],2],[128985,2],[[128986,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],2],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129672],2],[[129673,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],2],[[129712,129718],2],[[129719,129722],2],[[129723,129725],2],[129726,3],[129727,2],[[129728,129730],2],[[129731,129733],2],[[129734,129741],3],[[129742,129743],2],[[129744,129750],2],[[129751,129753],2],[[129754,129755],2],[[129756,129759],3],[[129760,129767],2],[129768,2],[[129769,129775],3],[[129776,129782],2],[[129783,129784],2],[[129785,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[177977,2],[[177978,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,194559],3],[194560,1,"\u4E3D"],[194561,1,"\u4E38"],[194562,1,"\u4E41"],[194563,1,"\uD840\uDD22"],[194564,1,"\u4F60"],[194565,1,"\u4FAE"],[194566,1,"\u4FBB"],[194567,1,"\u5002"],[194568,1,"\u507A"],[194569,1,"\u5099"],[194570,1,"\u50E7"],[194571,1,"\u50CF"],[194572,1,"\u349E"],[194573,1,"\uD841\uDE3A"],[194574,1,"\u514D"],[194575,1,"\u5154"],[194576,1,"\u5164"],[194577,1,"\u5177"],[194578,1,"\uD841\uDD1C"],[194579,1,"\u34B9"],[194580,1,"\u5167"],[194581,1,"\u518D"],[194582,1,"\uD841\uDD4B"],[194583,1,"\u5197"],[194584,1,"\u51A4"],[194585,1,"\u4ECC"],[194586,1,"\u51AC"],[194587,1,"\u51B5"],[194588,1,"\uD864\uDDDF"],[194589,1,"\u51F5"],[194590,1,"\u5203"],[194591,1,"\u34DF"],[194592,1,"\u523B"],[194593,1,"\u5246"],[194594,1,"\u5272"],[194595,1,"\u5277"],[194596,1,"\u3515"],[194597,1,"\u52C7"],[194598,1,"\u52C9"],[194599,1,"\u52E4"],[194600,1,"\u52FA"],[194601,1,"\u5305"],[194602,1,"\u5306"],[194603,1,"\u5317"],[194604,1,"\u5349"],[194605,1,"\u5351"],[194606,1,"\u535A"],[194607,1,"\u5373"],[194608,1,"\u537D"],[[194609,194611],1,"\u537F"],[194612,1,"\uD842\uDE2C"],[194613,1,"\u7070"],[194614,1,"\u53CA"],[194615,1,"\u53DF"],[194616,1,"\uD842\uDF63"],[194617,1,"\u53EB"],[194618,1,"\u53F1"],[194619,1,"\u5406"],[194620,1,"\u549E"],[194621,1,"\u5438"],[194622,1,"\u5448"],[194623,1,"\u5468"],[194624,1,"\u54A2"],[194625,1,"\u54F6"],[194626,1,"\u5510"],[194627,1,"\u5553"],[194628,1,"\u5563"],[[194629,194630],1,"\u5584"],[194631,1,"\u5599"],[194632,1,"\u55AB"],[194633,1,"\u55B3"],[194634,1,"\u55C2"],[194635,1,"\u5716"],[194636,1,"\u5606"],[194637,1,"\u5717"],[194638,1,"\u5651"],[194639,1,"\u5674"],[194640,1,"\u5207"],[194641,1,"\u58EE"],[194642,1,"\u57CE"],[194643,1,"\u57F4"],[194644,1,"\u580D"],[194645,1,"\u578B"],[194646,1,"\u5832"],[194647,1,"\u5831"],[194648,1,"\u58AC"],[194649,1,"\uD845\uDCE4"],[194650,1,"\u58F2"],[194651,1,"\u58F7"],[194652,1,"\u5906"],[194653,1,"\u591A"],[194654,1,"\u5922"],[194655,1,"\u5962"],[194656,1,"\uD845\uDEA8"],[194657,1,"\uD845\uDEEA"],[194658,1,"\u59EC"],[194659,1,"\u5A1B"],[194660,1,"\u5A27"],[194661,1,"\u59D8"],[194662,1,"\u5A66"],[194663,1,"\u36EE"],[194664,3],[194665,1,"\u5B08"],[[194666,194667],1,"\u5B3E"],[194668,1,"\uD846\uDDC8"],[194669,1,"\u5BC3"],[194670,1,"\u5BD8"],[194671,1,"\u5BE7"],[194672,1,"\u5BF3"],[194673,1,"\uD846\uDF18"],[194674,1,"\u5BFF"],[194675,1,"\u5C06"],[194676,3],[194677,1,"\u5C22"],[194678,1,"\u3781"],[194679,1,"\u5C60"],[194680,1,"\u5C6E"],[194681,1,"\u5CC0"],[194682,1,"\u5C8D"],[194683,1,"\uD847\uDDE4"],[194684,1,"\u5D43"],[194685,1,"\uD847\uDDE6"],[194686,1,"\u5D6E"],[194687,1,"\u5D6B"],[194688,1,"\u5D7C"],[194689,1,"\u5DE1"],[194690,1,"\u5DE2"],[194691,1,"\u382F"],[194692,1,"\u5DFD"],[194693,1,"\u5E28"],[194694,1,"\u5E3D"],[194695,1,"\u5E69"],[194696,1,"\u3862"],[194697,1,"\uD848\uDD83"],[194698,1,"\u387C"],[194699,1,"\u5EB0"],[194700,1,"\u5EB3"],[194701,1,"\u5EB6"],[194702,1,"\u5ECA"],[194703,1,"\uD868\uDF92"],[194704,1,"\u5EFE"],[[194705,194706],1,"\uD848\uDF31"],[194707,1,"\u8201"],[[194708,194709],1,"\u5F22"],[194710,1,"\u38C7"],[194711,1,"\uD84C\uDEB8"],[194712,1,"\uD858\uDDDA"],[194713,1,"\u5F62"],[194714,1,"\u5F6B"],[194715,1,"\u38E3"],[194716,1,"\u5F9A"],[194717,1,"\u5FCD"],[194718,1,"\u5FD7"],[194719,1,"\u5FF9"],[194720,1,"\u6081"],[194721,1,"\u393A"],[194722,1,"\u391C"],[194723,1,"\u6094"],[194724,1,"\uD849\uDED4"],[194725,1,"\u60C7"],[194726,1,"\u6148"],[194727,1,"\u614C"],[194728,1,"\u614E"],[194729,1,"\u614C"],[194730,1,"\u617A"],[194731,1,"\u618E"],[194732,1,"\u61B2"],[194733,1,"\u61A4"],[194734,1,"\u61AF"],[194735,1,"\u61DE"],[194736,1,"\u61F2"],[194737,1,"\u61F6"],[194738,1,"\u6210"],[194739,1,"\u621B"],[194740,1,"\u625D"],[194741,1,"\u62B1"],[194742,1,"\u62D4"],[194743,1,"\u6350"],[194744,1,"\uD84A\uDF0C"],[194745,1,"\u633D"],[194746,1,"\u62FC"],[194747,1,"\u6368"],[194748,1,"\u6383"],[194749,1,"\u63E4"],[194750,1,"\uD84A\uDFF1"],[194751,1,"\u6422"],[194752,1,"\u63C5"],[194753,1,"\u63A9"],[194754,1,"\u3A2E"],[194755,1,"\u6469"],[194756,1,"\u647E"],[194757,1,"\u649D"],[194758,1,"\u6477"],[194759,1,"\u3A6C"],[194760,1,"\u654F"],[194761,1,"\u656C"],[194762,1,"\uD84C\uDC0A"],[194763,1,"\u65E3"],[194764,1,"\u66F8"],[194765,1,"\u6649"],[194766,1,"\u3B19"],[194767,1,"\u6691"],[194768,1,"\u3B08"],[194769,1,"\u3AE4"],[194770,1,"\u5192"],[194771,1,"\u5195"],[194772,1,"\u6700"],[194773,1,"\u669C"],[194774,1,"\u80AD"],[194775,1,"\u43D9"],[194776,1,"\u6717"],[194777,1,"\u671B"],[194778,1,"\u6721"],[194779,1,"\u675E"],[194780,1,"\u6753"],[194781,1,"\uD84C\uDFC3"],[194782,1,"\u3B49"],[194783,1,"\u67FA"],[194784,1,"\u6785"],[194785,1,"\u6852"],[194786,1,"\u6885"],[194787,1,"\uD84D\uDC6D"],[194788,1,"\u688E"],[194789,1,"\u681F"],[194790,1,"\u6914"],[194791,1,"\u3B9D"],[194792,1,"\u6942"],[194793,1,"\u69A3"],[194794,1,"\u69EA"],[194795,1,"\u6AA8"],[194796,1,"\uD84D\uDEA3"],[194797,1,"\u6ADB"],[194798,1,"\u3C18"],[194799,1,"\u6B21"],[194800,1,"\uD84E\uDCA7"],[194801,1,"\u6B54"],[194802,1,"\u3C4E"],[194803,1,"\u6B72"],[194804,1,"\u6B9F"],[194805,1,"\u6BBA"],[194806,1,"\u6BBB"],[194807,1,"\uD84E\uDE8D"],[194808,1,"\uD847\uDD0B"],[194809,1,"\uD84E\uDEFA"],[194810,1,"\u6C4E"],[194811,1,"\uD84F\uDCBC"],[194812,1,"\u6CBF"],[194813,1,"\u6CCD"],[194814,1,"\u6C67"],[194815,1,"\u6D16"],[194816,1,"\u6D3E"],[194817,1,"\u6D77"],[194818,1,"\u6D41"],[194819,1,"\u6D69"],[194820,1,"\u6D78"],[194821,1,"\u6D85"],[194822,1,"\uD84F\uDD1E"],[194823,1,"\u6D34"],[194824,1,"\u6E2F"],[194825,1,"\u6E6E"],[194826,1,"\u3D33"],[194827,1,"\u6ECB"],[194828,1,"\u6EC7"],[194829,1,"\uD84F\uDED1"],[194830,1,"\u6DF9"],[194831,1,"\u6F6E"],[194832,1,"\uD84F\uDF5E"],[194833,1,"\uD84F\uDF8E"],[194834,1,"\u6FC6"],[194835,1,"\u7039"],[194836,1,"\u701E"],[194837,1,"\u701B"],[194838,1,"\u3D96"],[194839,1,"\u704A"],[194840,1,"\u707D"],[194841,1,"\u7077"],[194842,1,"\u70AD"],[194843,1,"\uD841\uDD25"],[194844,1,"\u7145"],[194845,1,"\uD850\uDE63"],[194846,1,"\u719C"],[194847,3],[194848,1,"\u7228"],[194849,1,"\u7235"],[194850,1,"\u7250"],[194851,1,"\uD851\uDE08"],[194852,1,"\u7280"],[194853,1,"\u7295"],[194854,1,"\uD851\uDF35"],[194855,1,"\uD852\uDC14"],[194856,1,"\u737A"],[194857,1,"\u738B"],[194858,1,"\u3EAC"],[194859,1,"\u73A5"],[[194860,194861],1,"\u3EB8"],[194862,1,"\u7447"],[194863,1,"\u745C"],[194864,1,"\u7471"],[194865,1,"\u7485"],[194866,1,"\u74CA"],[194867,1,"\u3F1B"],[194868,1,"\u7524"],[194869,1,"\uD853\uDC36"],[194870,1,"\u753E"],[194871,1,"\uD853\uDC92"],[194872,1,"\u7570"],[194873,1,"\uD848\uDD9F"],[194874,1,"\u7610"],[194875,1,"\uD853\uDFA1"],[194876,1,"\uD853\uDFB8"],[194877,1,"\uD854\uDC44"],[194878,1,"\u3FFC"],[194879,1,"\u4008"],[194880,1,"\u76F4"],[194881,1,"\uD854\uDCF3"],[194882,1,"\uD854\uDCF2"],[194883,1,"\uD854\uDD19"],[194884,1,"\uD854\uDD33"],[194885,1,"\u771E"],[[194886,194887],1,"\u771F"],[194888,1,"\u774A"],[194889,1,"\u4039"],[194890,1,"\u778B"],[194891,1,"\u4046"],[194892,1,"\u4096"],[194893,1,"\uD855\uDC1D"],[194894,1,"\u784E"],[194895,1,"\u788C"],[194896,1,"\u78CC"],[194897,1,"\u40E3"],[194898,1,"\uD855\uDE26"],[194899,1,"\u7956"],[194900,1,"\uD855\uDE9A"],[194901,1,"\uD855\uDEC5"],[194902,1,"\u798F"],[194903,1,"\u79EB"],[194904,1,"\u412F"],[194905,1,"\u7A40"],[194906,1,"\u7A4A"],[194907,1,"\u7A4F"],[194908,1,"\uD856\uDD7C"],[[194909,194910],1,"\uD856\uDEA7"],[194911,3],[194912,1,"\u4202"],[194913,1,"\uD856\uDFAB"],[194914,1,"\u7BC6"],[194915,1,"\u7BC9"],[194916,1,"\u4227"],[194917,1,"\uD857\uDC80"],[194918,1,"\u7CD2"],[194919,1,"\u42A0"],[194920,1,"\u7CE8"],[194921,1,"\u7CE3"],[194922,1,"\u7D00"],[194923,1,"\uD857\uDF86"],[194924,1,"\u7D63"],[194925,1,"\u4301"],[194926,1,"\u7DC7"],[194927,1,"\u7E02"],[194928,1,"\u7E45"],[194929,1,"\u4334"],[194930,1,"\uD858\uDE28"],[194931,1,"\uD858\uDE47"],[194932,1,"\u4359"],[194933,1,"\uD858\uDED9"],[194934,1,"\u7F7A"],[194935,1,"\uD858\uDF3E"],[194936,1,"\u7F95"],[194937,1,"\u7FFA"],[194938,1,"\u8005"],[194939,1,"\uD859\uDCDA"],[194940,1,"\uD859\uDD23"],[194941,1,"\u8060"],[194942,1,"\uD859\uDDA8"],[194943,1,"\u8070"],[194944,1,"\uD84C\uDF5F"],[194945,1,"\u43D5"],[194946,1,"\u80B2"],[194947,1,"\u8103"],[194948,1,"\u440B"],[194949,1,"\u813E"],[194950,1,"\u5AB5"],[194951,1,"\uD859\uDFA7"],[194952,1,"\uD859\uDFB5"],[194953,1,"\uD84C\uDF93"],[194954,1,"\uD84C\uDF9C"],[194955,1,"\u8201"],[194956,1,"\u8204"],[194957,1,"\u8F9E"],[194958,1,"\u446B"],[194959,1,"\u8291"],[194960,1,"\u828B"],[194961,1,"\u829D"],[194962,1,"\u52B3"],[194963,1,"\u82B1"],[194964,1,"\u82B3"],[194965,1,"\u82BD"],[194966,1,"\u82E6"],[194967,1,"\uD85A\uDF3C"],[194968,1,"\u82E5"],[194969,1,"\u831D"],[194970,1,"\u8363"],[194971,1,"\u83AD"],[194972,1,"\u8323"],[194973,1,"\u83BD"],[194974,1,"\u83E7"],[194975,1,"\u8457"],[194976,1,"\u8353"],[194977,1,"\u83CA"],[194978,1,"\u83CC"],[194979,1,"\u83DC"],[194980,1,"\uD85B\uDC36"],[194981,1,"\uD85B\uDD6B"],[194982,1,"\uD85B\uDCD5"],[194983,1,"\u452B"],[194984,1,"\u84F1"],[194985,1,"\u84F3"],[194986,1,"\u8516"],[194987,1,"\uD85C\uDFCA"],[194988,1,"\u8564"],[194989,1,"\uD85B\uDF2C"],[194990,1,"\u455D"],[194991,1,"\u4561"],[194992,1,"\uD85B\uDFB1"],[194993,1,"\uD85C\uDCD2"],[194994,1,"\u456B"],[194995,1,"\u8650"],[194996,1,"\u865C"],[194997,1,"\u8667"],[194998,1,"\u8669"],[194999,1,"\u86A9"],[195000,1,"\u8688"],[195001,1,"\u870E"],[195002,1,"\u86E2"],[195003,1,"\u8779"],[195004,1,"\u8728"],[195005,1,"\u876B"],[195006,1,"\u8786"],[195007,3],[195008,1,"\u87E1"],[195009,1,"\u8801"],[195010,1,"\u45F9"],[195011,1,"\u8860"],[195012,1,"\u8863"],[195013,1,"\uD85D\uDE67"],[195014,1,"\u88D7"],[195015,1,"\u88DE"],[195016,1,"\u4635"],[195017,1,"\u88FA"],[195018,1,"\u34BB"],[195019,1,"\uD85E\uDCAE"],[195020,1,"\uD85E\uDD66"],[195021,1,"\u46BE"],[195022,1,"\u46C7"],[195023,1,"\u8AA0"],[195024,1,"\u8AED"],[195025,1,"\u8B8A"],[195026,1,"\u8C55"],[195027,1,"\uD85F\uDCA8"],[195028,1,"\u8CAB"],[195029,1,"\u8CC1"],[195030,1,"\u8D1B"],[195031,1,"\u8D77"],[195032,1,"\uD85F\uDF2F"],[195033,1,"\uD842\uDC04"],[195034,1,"\u8DCB"],[195035,1,"\u8DBC"],[195036,1,"\u8DF0"],[195037,1,"\uD842\uDCDE"],[195038,1,"\u8ED4"],[195039,1,"\u8F38"],[195040,1,"\uD861\uDDD2"],[195041,1,"\uD861\uDDED"],[195042,1,"\u9094"],[195043,1,"\u90F1"],[195044,1,"\u9111"],[195045,1,"\uD861\uDF2E"],[195046,1,"\u911B"],[195047,1,"\u9238"],[195048,1,"\u92D7"],[195049,1,"\u92D8"],[195050,1,"\u927C"],[195051,1,"\u93F9"],[195052,1,"\u9415"],[195053,1,"\uD862\uDFFA"],[195054,1,"\u958B"],[195055,1,"\u4995"],[195056,1,"\u95B7"],[195057,1,"\uD863\uDD77"],[195058,1,"\u49E6"],[195059,1,"\u96C3"],[195060,1,"\u5DB2"],[195061,1,"\u9723"],[195062,1,"\uD864\uDD45"],[195063,1,"\uD864\uDE1A"],[195064,1,"\u4A6E"],[195065,1,"\u4A76"],[195066,1,"\u97E0"],[195067,1,"\uD865\uDC0A"],[195068,1,"\u4AB2"],[195069,1,"\uD865\uDC96"],[[195070,195071],1,"\u980B"],[195072,1,"\u9829"],[195073,1,"\uD865\uDDB6"],[195074,1,"\u98E2"],[195075,1,"\u4B33"],[195076,1,"\u9929"],[195077,1,"\u99A7"],[195078,1,"\u99C2"],[195079,1,"\u99FE"],[195080,1,"\u4BCE"],[195081,1,"\uD866\uDF30"],[195082,1,"\u9B12"],[195083,1,"\u9C40"],[195084,1,"\u9CFD"],[195085,1,"\u4CCE"],[195086,1,"\u4CED"],[195087,1,"\u9D67"],[195088,1,"\uD868\uDCCE"],[195089,1,"\u4CF8"],[195090,1,"\uD868\uDD05"],[195091,1,"\uD868\uDE0E"],[195092,1,"\uD868\uDE91"],[195093,1,"\u9EBB"],[195094,1,"\u4D56"],[195095,1,"\u9EF9"],[195096,1,"\u9EFE"],[195097,1,"\u9F05"],[195098,1,"\u9F0F"],[195099,1,"\u9F16"],[195100,1,"\u9F3B"],[195101,1,"\uD869\uDE00"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,201551],3],[[201552,205743],2],[[205744,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918000,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]]});var pw=V((ju,cw)=>{ju.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}});var nw=V((k01,sw)=>{var Lu=function(J){return/[^\x00-\x7F]/u.test(J)},aw=function(J,{useSTD3ASCIIRules:Z}){let $=0,X=lw.length-1;while($<=X){const Y=Math.floor(($+X)/2),Q=lw[Y],K=Array.isArray(Q[0])?Q[0][0]:Q[0],G=Array.isArray(Q[0])?Q[0][1]:Q[0];if(K<=J&&G>=J){if(Z&&(Q[1]===G0.disallowed_STD3_valid||Q[1]===G0.disallowed_STD3_mapped))return[G0.disallowed,...Q.slice(2)];else if(Q[1]===G0.disallowed_STD3_valid)return[G0.valid,...Q.slice(2)];else if(Q[1]===G0.disallowed_STD3_mapped)return[G0.mapped,...Q.slice(2)];return Q.slice(1)}else if(K>J)X=Y-1;else $=Y+1}return null},wu=function(J,{useSTD3ASCIIRules:Z,processingOption:$}){let X=!1,Y="";for(let Q of J){const[K,G]=aw(Q.codePointAt(0),{useSTD3ASCIIRules:Z});switch(K){case G0.disallowed:X=!0,Y+=Q;break;case G0.ignored:break;case G0.mapped:Y+=G;break;case G0.deviation:if($==="transitional")Y+=G;else Y+=Q;break;case G0.valid:Y+=Q;break}}return{string:Y,error:X}},Ru=function(J,{checkHyphens:Z,checkBidi:$,checkJoiners:X,processingOption:Y,useSTD3ASCIIRules:Q}){if(J.normalize("NFC")!==J)return!1;const K=Array.from(J);if(Z){if(K[2]==="-"&&K[3]==="-"||(J.startsWith("-")||J.endsWith("-")))return!1}if(J.includes(".")||K.length>0&&n0.combiningMarks.test(K[0]))return!1;for(let G of K){const[F]=aw(G.codePointAt(0),{useSTD3ASCIIRules:Q});if(Y==="transitional"&&F!==G0.valid||Y==="nontransitional"&&F!==G0.valid&&F!==G0.deviation)return!1}if(X){let G=0;for(let[F,q]of K.entries())if(q==="\u200C"||q==="\u200D"){if(F>0){if(n0.combiningClassVirama.test(K[F-1]))continue;if(q==="\u200C"){const W=K.indexOf("\u200C",F+1),H=W<0?K.slice(G):K.slice(G,W);if(n0.validZWNJ.test(H.join(""))){G=F+1;continue}}}return!1}}if($&&K.length>0){let G;if(n0.bidiS1LTR.test(K[0]))G=!1;else if(n0.bidiS1RTL.test(K[0]))G=!0;else return!1;if(G){if(!n0.bidiS2.test(J)||!n0.bidiS3.test(J)||n0.bidiS4EN.test(J)&&n0.bidiS4AN.test(J))return!1}else if(!n0.bidiS5.test(J)||!n0.bidiS6.test(J))return!1}return!0},Du=function(J){const Z=J.map(($)=>{if($.startsWith("xn--"))try{return vY.decode($.substring(4))}catch(X){return""}return $}).join(".");return n0.bidiDomain.test(Z)},iw=function(J,Z){const{processingOption:$}=Z;let{string:X,error:Y}=wu(J,Z);X=X.normalize("NFC");const Q=X.split("."),K=Du(Q);for(let[G,F]of Q.entries()){let q=F,W=$;if(q.startsWith("xn--")){try{q=vY.decode(q.substring(4)),Q[G]=q}catch(U){Y=!0;continue}W="nontransitional"}if(Y)continue;if(!Ru(q,{...Z,processingOption:W,checkBidi:Z.checkBidi&&K}))Y=!0}return{string:Q.join("."),error:Y}},Pu=function(J,{checkHyphens:Z=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional",verifyDNSLength:K=!1}={}){if(Q!=="transitional"&&Q!=="nontransitional")throw new RangeError("processingOption must be either transitional or nontransitional");const G=iw(J,{processingOption:Q,checkHyphens:Z,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});let F=G.string.split(".");if(F=F.map((q)=>{if(Lu(q))try{return`xn--${vY.encode(q)}`}catch(W){G.error=!0}return q}),K){const q=F.join(".").length;if(q>253||q===0)G.error=!0;for(let W=0;W<F.length;++W)if(F[W].length>63||F[W].length===0){G.error=!0;break}}if(G.error)return null;return F.join(".")},Tu=function(J,{checkHyphens:Z=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional"}={}){const K=iw(J,{processingOption:Q,checkHyphens:Z,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});return{domain:K.string,error:K.error}},vY=gw(),n0=uw(),lw=dw(),{STATUS_MAPPING:G0}=pw();sw.exports={toASCII:Pu,toUnicode:Tu}});var bY=V((y01,rw)=>{var xY=function(J){return J>=48&&J<=57},tw=function(J){return J>=65&&J<=90||J>=97&&J<=122},Iu=function(J){return tw(J)||xY(J)},Nu=function(J){return xY(J)||J>=65&&J<=70||J>=97&&J<=102};rw.exports={isASCIIDigit:xY,isASCIIAlpha:tw,isASCIIAlphanumeric:Iu,isASCIIHex:Nu}});var HZ=V((_01,ow)=>{var Cu=function(J){return Bu.encode(J)},hu=function(J){return Eu.decode(J)},Bu=new TextEncoder,Eu=new TextDecoder("utf-8",{ignoreBOM:!0});ow.exports={utf8Encode:Cu,utf8DecodeWithoutBOM:hu}});var VZ=V((f01,QR)=>{var i=function(J){return J.codePointAt(0)},Su=function(J){let Z=J.toString(16).toUpperCase();if(Z.length===1)Z=`0${Z}`;return`%${Z}`},ZR=function(J){const Z=new Uint8Array(J.byteLength);let $=0;for(let X=0;X<J.byteLength;++X){const Y=J[X];if(Y!==37)Z[$++]=Y;else if(Y===37&&(!ew(J[X+1])||!ew(J[X+2])))Z[$++]=Y;else{const Q=parseInt(String.fromCodePoint(J[X+1],J[X+2]),16);Z[$++]=Q,X+=2}}return Z.slice(0,$)},Ou=function(J){const Z=JR(J);return ZR(Z)},gY=function(J){return J<=31||J>126},yu=function(J){return gY(J)||ku.has(J)},mY=function(J){return gY(J)||_u.has(J)},fu=function(J){return mY(J)||J===i("'")},$R=function(J){return mY(J)||vu.has(J)},XR=function(J){return $R(J)||xu.has(J)},gu=function(J){return XR(J)||bu.has(J)},uu=function(J){return gu(J)||mu.has(J)},YR=function(J,Z){const $=JR(J);let X="";for(let Y of $)if(!Z(Y))X+=String.fromCharCode(Y);else X+=Su(Y);return X},du=function(J,Z){return YR(String.fromCodePoint(J),Z)},cu=function(J,Z,$=!1){let X="";for(let Y of J)if($&&Y===" ")X+="+";else X+=YR(Y,Z);return X},{isASCIIHex:ew}=bY(),{utf8Encode:JR}=HZ(),ku=new Set([i(" "),i("\""),i("<"),i(">"),i("`")]),_u=new Set([i(" "),i("\""),i("#"),i("<"),i(">")]),vu=new Set([i("?"),i("`"),i("{"),i("}")]),xu=new Set([i("/"),i(":"),i(";"),i("="),i("@"),i("["),i("\\"),i("]"),i("^"),i("|")]),bu=new Set([i("$"),i("%"),i("&"),i("+"),i(",")]),mu=new Set([i("!"),i("'"),i("("),i(")"),i("~")]);QR.exports={isC0ControlPercentEncode:gY,isFragmentPercentEncode:yu,isQueryPercentEncode:mY,isSpecialQueryPercentEncode:fu,isPathPercentEncode:$R,isUserinfoPercentEncode:XR,isURLEncodedPercentEncode:uu,percentDecodeString:Ou,percentDecodeBytes:ZR,utf8PercentEncodeString:cu,utf8PercentEncodeCodePoint:du}});var aY=V((jd,F0)=>{var I=function(J){return J.codePointAt(0)},KR=function(J){return[...J].length},GR=function(J,Z){const $=J[Z];return isNaN($)?void 0:String.fromCodePoint($)},FR=function(J){return J==="."||J.toLowerCase()==="%2e"},ru=function(J){return J=J.toLowerCase(),J===".."||J==="%2e."||J===".%2e"||J==="%2e%2e"},ou=function(J,Z){return p1.isASCIIAlpha(J)&&(Z===I(":")||Z===I("|"))},VR=function(J){return J.length===2&&p1.isASCIIAlpha(J.codePointAt(0))&&(J[1]===":"||J[1]==="|")},eu=function(J){return J.length===2&&p1.isASCIIAlpha(J.codePointAt(0))&&J[1]===":"},zR=function(J){return J.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},Jd=function(J){return zR(J)||J.search(/[\u0000-\u001F]|%|\u007F/u)!==-1},zZ=function(J){return HR[J]!==void 0},c1=function(J){return zZ(J.scheme)},uY=function(J){return!zZ(J.scheme)},UR=function(J){return HR[J]},MR=function(J){if(J==="")return b;let Z=10;if(J.length>=2&&J.charAt(0)==="0"&&J.charAt(1).toLowerCase()==="x")J=J.substring(2),Z=16;else if(J.length>=2&&J.charAt(0)==="0")J=J.substring(1),Z=8;if(J==="")return 0;let $=/[^0-7]/u;if(Z===10)$=/[^0-9]/u;if(Z===16)$=/[^0-9A-Fa-f]/u;if($.test(J))return b;return parseInt(J,Z)},Zd=function(J){const Z=J.split(".");if(Z[Z.length-1]===""){if(Z.length>1)Z.pop()}if(Z.length>4)return b;const $=[];for(let Q of Z){const K=MR(Q);if(K===b)return b;$.push(K)}for(let Q=0;Q<$.length-1;++Q)if($[Q]>255)return b;if($[$.length-1]>=256**(5-$.length))return b;let X=$.pop(),Y=0;for(let Q of $)X+=Q*256**(3-Y),++Y;return X},$d=function(J){let Z="",$=J;for(let X=1;X<=4;++X){if(Z=String($%256)+Z,X!==4)Z=`.${Z}`;$=Math.floor($/256)}return Z},Xd=function(J){const Z=[0,0,0,0,0,0,0,0];let $=0,X=null,Y=0;if(J=Array.from(J,(Q)=>Q.codePointAt(0)),J[Y]===I(":")){if(J[Y+1]!==I(":"))return b;Y+=2,++$,X=$}while(Y<J.length){if($===8)return b;if(J[Y]===I(":")){if(X!==null)return b;++Y,++$,X=$;continue}let Q=0,K=0;while(K<4&&p1.isASCIIHex(J[Y]))Q=Q*16+parseInt(GR(J,Y),16),++Y,++K;if(J[Y]===I(".")){if(K===0)return b;if(Y-=K,$>6)return b;let G=0;while(J[Y]!==void 0){let F=null;if(G>0)if(J[Y]===I(".")&&G<4)++Y;else return b;if(!p1.isASCIIDigit(J[Y]))return b;while(p1.isASCIIDigit(J[Y])){const q=parseInt(GR(J,Y));if(F===null)F=q;else if(F===0)return b;else F=F*10+q;if(F>255)return b;++Y}if(Z[$]=Z[$]*256+F,++G,G===2||G===4)++$}if(G!==4)return b;break}else if(J[Y]===I(":")){if(++Y,J[Y]===void 0)return b}else if(J[Y]!==void 0)return b;Z[$]=Q,++$}if(X!==null){let Q=$-X;$=7;while($!==0&&Q>0){const K=Z[X+Q-1];Z[X+Q-1]=Z[$],Z[$]=K,--$,--Q}}else if(X===null&&$!==8)return b;return Z},Yd=function(J){let Z="";const $=Gd(J);let X=!1;for(let Y=0;Y<=7;++Y){if(X&&J[Y]===0)continue;else if(X)X=!1;if($===Y){Z+=Y===0?"::":":",X=!0;continue}if(Z+=J[Y].toString(16),Y!==7)Z+=":"}return Z},dY=function(J,Z=!1){if(J[0]==="["){if(J[J.length-1]!=="]")return b;return Xd(J.substring(1,J.length-1))}if(Z)return Kd(J);const $=lu(au(J)),X=Fd($);if(X===b)return b;if(Jd(X))return b;if(Qd(X))return Zd(X);return X},Qd=function(J){const Z=J.split(".");if(Z[Z.length-1]===""){if(Z.length===1)return!1;Z.pop()}const $=Z[Z.length-1];if(MR($)!==b)return!0;if(/^[0-9]+$/u.test($))return!0;return!1},Kd=function(J){if(zR(J))return b;return MZ(J,WR)},Gd=function(J){let Z=null,$=1,X=null,Y=0;for(let Q=0;Q<J.length;++Q)if(J[Q]!==0){if(Y>$)Z=X,$=Y;X=null,Y=0}else{if(X===null)X=Q;++Y}if(Y>$)return X;return Z},pY=function(J){if(typeof J==="number")return $d(J);if(J instanceof Array)return`[${Yd(J)}]`;return J},Fd=function(J,Z=!1){const $=pu.toASCII(J,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:Z,verifyDNSLength:Z});if($===null||$==="")return b;return $},qd=function(J){return J.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/ug,"")},Wd=function(J){return J.replace(/\u0009|\u000A|\u000D/ug,"")},jR=function(J){const{path:Z}=J;if(Z.length===0)return;if(J.scheme==="file"&&Z.length===1&&Vd(Z[0]))return;Z.pop()},AR=function(J){return J.username!==""||J.password!==""},Hd=function(J){return J.host===null||J.host===""||J.scheme==="file"},e5=function(J){return typeof J.path==="string"},Vd=function(J){return/^[A-Za-z]:$/u.test(J)},D1=function(J,Z,$,X,Y){if(this.pointer=0,this.input=J,this.base=Z||null,this.encodingOverride=$||"utf-8",this.stateOverride=Y,this.url=X,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const K=qd(this.input);if(K!==this.input)this.parseError=!0;this.input=K}const Q=Wd(this.input);if(Q!==this.input)this.parseError=!0;this.input=Q,this.state=Y||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(K)=>K.codePointAt(0));for(;this.pointer<=this.input.length;++this.pointer){const K=this.input[this.pointer],G=isNaN(K)?void 0:String.fromCodePoint(K),F=this[`parse ${this.state}`](K,G);if(!F)break;else if(F===b){this.failure=!0;break}}},LR=function(J,Z){const $=J.length-Z;return $>=2&&ou(J[Z],J[Z+1])&&($===2||zd.has(J[Z+2]))},Ud=function(J,Z){let $=`${J.scheme}:`;if(J.host!==null){if($+="//",J.username!==""||J.password!==""){if($+=J.username,J.password!=="")$+=`:${J.password}`;$+="@"}if($+=pY(J.host),J.port!==null)$+=`:${J.port}`}if(J.host===null&&!e5(J)&&J.path.length>1&&J.path[0]==="")$+="/.";if($+=lY(J),J.query!==null)$+=`?${J.query}`;if(!Z&&J.fragment!==null)$+=`#${J.fragment}`;return $},Md=function(J){let Z=`${J.scheme}://`;if(Z+=pY(J.host),J.port!==null)Z+=`:${J.port}`;return Z},lY=function(J){if(e5(J))return J.path;let Z="";for(let $ of J.path)Z+=`/${$}`;return Z},pu=nw(),p1=bY(),{utf8DecodeWithoutBOM:lu}=HZ(),{percentDecodeString:au,utf8PercentEncodeCodePoint:UZ,utf8PercentEncodeString:MZ,isC0ControlPercentEncode:WR,isFragmentPercentEncode:iu,isQueryPercentEncode:su,isSpecialQueryPercentEncode:nu,isPathPercentEncode:tu,isUserinfoPercentEncode:cY}=VZ(),HR={ftp:21,file:null,http:80,https:443,ws:80,wss:443},b=Symbol("failure");D1.prototype["parse scheme start"]=function J(Z,$){if(p1.isASCIIAlpha(Z))this.buffer+=$.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,b;return!0};D1.prototype["parse scheme"]=function J(Z,$){if(p1.isASCIIAlphanumeric(Z)||Z===I("+")||Z===I("-")||Z===I("."))this.buffer+=$.toLowerCase();else if(Z===I(":")){if(this.stateOverride){if(c1(this.url)&&!zZ(this.buffer))return!1;if(!c1(this.url)&&zZ(this.buffer))return!1;if((AR(this.url)||this.url.port!==null)&&this.buffer==="file")return!1;if(this.url.scheme==="file"&&this.url.host==="")return!1}if(this.url.scheme=this.buffer,this.stateOverride){if(this.url.port===UR(this.url.scheme))this.url.port=null;return!1}if(this.buffer="",this.url.scheme==="file"){if(this.input[this.pointer+1]!==I("/")||this.input[this.pointer+2]!==I("/"))this.parseError=!0;this.state="file"}else if(c1(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme)this.state="special relative or authority";else if(c1(this.url))this.state="special authority slashes";else if(this.input[this.pointer+1]===I("/"))this.state="path or authority",++this.pointer;else this.url.path="",this.state="opaque path"}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=!0,b;return!0};D1.prototype["parse no scheme"]=function J(Z){if(this.base===null||e5(this.base)&&Z!==I("#"))return b;else if(e5(this.base)&&Z===I("#"))this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment";else if(this.base.scheme==="file")this.state="file",--this.pointer;else this.state="relative",--this.pointer;return!0};D1.prototype["parse special relative or authority"]=function J(Z){if(Z===I("/")&&this.input[this.pointer+1]===I("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="relative",--this.pointer;return!0};D1.prototype["parse path or authority"]=function J(Z){if(Z===I("/"))this.state="authority";else this.state="path",--this.pointer;return!0};D1.prototype["parse relative"]=function J(Z){if(this.url.scheme=this.base.scheme,Z===I("/"))this.state="relative slash";else if(c1(this.url)&&Z===I("\\"))this.parseError=!0,this.state="relative slash";else if(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,Z===I("?"))this.url.query="",this.state="query";else if(Z===I("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(Z))this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer;return!0};D1.prototype["parse relative slash"]=function J(Z){if(c1(this.url)&&(Z===I("/")||Z===I("\\"))){if(Z===I("\\"))this.parseError=!0;this.state="special authority ignore slashes"}else if(Z===I("/"))this.state="authority";else this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer;return!0};D1.prototype["parse special authority slashes"]=function J(Z){if(Z===I("/")&&this.input[this.pointer+1]===I("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="special authority ignore slashes",--this.pointer;return!0};D1.prototype["parse special authority ignore slashes"]=function J(Z){if(Z!==I("/")&&Z!==I("\\"))this.state="authority",--this.pointer;else this.parseError=!0;return!0};D1.prototype["parse authority"]=function J(Z,$){if(Z===I("@")){if(this.parseError=!0,this.atFlag)this.buffer=`%40${this.buffer}`;this.atFlag=!0;const X=KR(this.buffer);for(let Y=0;Y<X;++Y){const Q=this.buffer.codePointAt(Y);if(Q===I(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const K=UZ(Q,cY);if(this.passwordTokenSeenFlag)this.url.password+=K;else this.url.username+=K}this.buffer=""}else if(isNaN(Z)||Z===I("/")||Z===I("?")||Z===I("#")||c1(this.url)&&Z===I("\\")){if(this.atFlag&&this.buffer==="")return this.parseError=!0,b;this.pointer-=KR(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=$;return!0};D1.prototype["parse hostname"]=D1.prototype["parse host"]=function J(Z,$){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(Z===I(":")&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,b;if(this.stateOverride==="hostname")return!1;const X=dY(this.buffer,uY(this.url));if(X===b)return b;this.url.host=X,this.buffer="",this.state="port"}else if(isNaN(Z)||Z===I("/")||Z===I("?")||Z===I("#")||c1(this.url)&&Z===I("\\")){if(--this.pointer,c1(this.url)&&this.buffer==="")return this.parseError=!0,b;else if(this.stateOverride&&this.buffer===""&&(AR(this.url)||this.url.port!==null))return this.parseError=!0,!1;const X=dY(this.buffer,uY(this.url));if(X===b)return b;if(this.url.host=X,this.buffer="",this.state="path start",this.stateOverride)return!1}else{if(Z===I("["))this.arrFlag=!0;else if(Z===I("]"))this.arrFlag=!1;this.buffer+=$}return!0};D1.prototype["parse port"]=function J(Z,$){if(p1.isASCIIDigit(Z))this.buffer+=$;else if(isNaN(Z)||Z===I("/")||Z===I("?")||Z===I("#")||c1(this.url)&&Z===I("\\")||this.stateOverride){if(this.buffer!==""){const X=parseInt(this.buffer);if(X>65535)return this.parseError=!0,b;this.url.port=X===UR(this.url.scheme)?null:X,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,b;return!0};var zd=new Set([I("/"),I("\\"),I("?"),I("#")]);D1.prototype["parse file"]=function J(Z){if(this.url.scheme="file",this.url.host="",Z===I("/")||Z===I("\\")){if(Z===I("\\"))this.parseError=!0;this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,Z===I("?"))this.url.query="",this.state="query";else if(Z===I("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(Z)){if(this.url.query=null,!LR(this.input,this.pointer))jR(this.url);else this.parseError=!0,this.url.path=[];this.state="path",--this.pointer}}else this.state="path",--this.pointer;return!0};D1.prototype["parse file slash"]=function J(Z){if(Z===I("/")||Z===I("\\")){if(Z===I("\\"))this.parseError=!0;this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(!LR(this.input,this.pointer)&&eu(this.base.path[0]))this.url.path.push(this.base.path[0]);this.url.host=this.base.host}this.state="path",--this.pointer}return!0};D1.prototype["parse file host"]=function J(Z,$){if(isNaN(Z)||Z===I("/")||Z===I("\\")||Z===I("?")||Z===I("#"))if(--this.pointer,!this.stateOverride&&VR(this.buffer))this.parseError=!0,this.state="path";else if(this.buffer===""){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let X=dY(this.buffer,uY(this.url));if(X===b)return b;if(X==="localhost")X="";if(this.url.host=X,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=$;return!0};D1.prototype["parse path start"]=function J(Z){if(c1(this.url)){if(Z===I("\\"))this.parseError=!0;if(this.state="path",Z!==I("/")&&Z!==I("\\"))--this.pointer}else if(!this.stateOverride&&Z===I("?"))this.url.query="",this.state="query";else if(!this.stateOverride&&Z===I("#"))this.url.fragment="",this.state="fragment";else if(Z!==void 0){if(this.state="path",Z!==I("/"))--this.pointer}else if(this.stateOverride&&this.url.host===null)this.url.path.push("");return!0};D1.prototype["parse path"]=function J(Z){if(isNaN(Z)||Z===I("/")||c1(this.url)&&Z===I("\\")||!this.stateOverride&&(Z===I("?")||Z===I("#"))){if(c1(this.url)&&Z===I("\\"))this.parseError=!0;if(ru(this.buffer)){if(jR(this.url),Z!==I("/")&&!(c1(this.url)&&Z===I("\\")))this.url.path.push("")}else if(FR(this.buffer)&&Z!==I("/")&&!(c1(this.url)&&Z===I("\\")))this.url.path.push("");else if(!FR(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&VR(this.buffer))this.buffer=`${this.buffer[0]}:`;this.url.path.push(this.buffer)}if(this.buffer="",Z===I("?"))this.url.query="",this.state="query";if(Z===I("#"))this.url.fragment="",this.state="fragment"}else{if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=UZ(Z,tu)}return!0};D1.prototype["parse opaque path"]=function J(Z){if(Z===I("?"))this.url.query="",this.state="query";else if(Z===I("#"))this.url.fragment="",this.state="fragment";else{if(!isNaN(Z)&&Z!==I("%"))this.parseError=!0;if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;if(!isNaN(Z))this.url.path+=UZ(Z,WR)}return!0};D1.prototype["parse query"]=function J(Z,$){if(!c1(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")this.encodingOverride="utf-8";if(!this.stateOverride&&Z===I("#")||isNaN(Z)){const X=c1(this.url)?nu:su;if(this.url.query+=MZ(this.buffer,X),this.buffer="",Z===I("#"))this.url.fragment="",this.state="fragment"}else if(!isNaN(Z)){if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=$}return!0};D1.prototype["parse fragment"]=function J(Z){if(!isNaN(Z)){if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.url.fragment+=UZ(Z,iu)}return!0};jd.serializeURL=Ud;jd.serializePath=lY;jd.serializeURLOrigin=function(J){switch(J.scheme){case"blob":{const Z=jd.parseURL(lY(J));if(Z===null)return"null";if(Z.scheme!=="http"&&Z.scheme!=="https")return"null";return jd.serializeURLOrigin(Z)}case"ftp":case"http":case"https":case"ws":case"wss":return Md({scheme:J.scheme,host:J.host,port:J.port});case"file":return"null";default:return"null"}};jd.basicURLParse=function(J,Z){if(Z===void 0)Z={};const $=new D1(J,Z.baseURL,Z.encodingOverride,Z.url,Z.stateOverride);if($.failure)return null;return $.url};jd.setTheUsername=function(J,Z){J.username=MZ(Z,cY)};jd.setThePassword=function(J,Z){J.password=MZ(Z,cY)};jd.serializeHost=pY;jd.cannotHaveAUsernamePasswordPort=Hd;jd.hasAnOpaquePath=e5;jd.serializeInteger=function(J){return String(J)};jd.parseURL=function(J,Z){if(Z===void 0)Z={};return jd.basicURLParse(J,{baseURL:Z.baseURL,encodingOverride:Z.encodingOverride})}});var iY=V((v01,BR)=>{var IR=function(J){return J.codePointAt(0)},Ed=function(J){const Z=Sd(J,IR("&")),$=[];for(let X of Z){if(X.length===0)continue;let Y,Q;const K=X.indexOf(IR("="));if(K>=0)Y=X.slice(0,K),Q=X.slice(K+1);else Y=X,Q=new Uint8Array(0);Y=NR(Y,43,32),Q=NR(Q,43,32);const G=RR(DR(Y)),F=RR(DR(Q));$.push([G,F])}return $},Cd=function(J){return Ed(Bd(J))},hd=function(J,Z=void 0){let $="utf-8";if(Z!==void 0)$=Z;let X="";for(let[Y,Q]of J.entries()){const K=PR(Q[0],TR,!0);let G=Q[1];if(Q.length>2&&Q[2]!==void 0){if(Q[2]==="hidden"&&K==="_charset_")G=$;else if(Q[2]==="file")G=G.name}if(G=PR(G,TR,!0),Y!==0)X+="&";X+=`${K}=${G}`}return X},Sd=function(J,Z){const $=[];let X=0,Y=J.indexOf(Z);while(Y>=0)$.push(J.slice(X,Y)),X=Y+1,Y=J.indexOf(Z,X);if(X!==J.length)$.push(J.slice(X));return $},NR=function(J,Z,$){let X=J.indexOf(Z);while(X>=0)J[X]=$,X=J.indexOf(Z,X+1);return J},{utf8Encode:Bd,utf8DecodeWithoutBOM:RR}=HZ(),{percentDecodeBytes:DR,utf8PercentEncodeString:PR,isURLEncodedPercentEncode:TR}=VZ();BR.exports={parseUrlencodedString:Cd,serializeUrlencoded:hd}});var CR=V((Od)=>{var ER=FZ(),jZ=WZ();Od.convert=(J,Z,{context:$="The provided value"}={})=>{if(typeof Z!=="function")throw new J.TypeError($+" is not a function");function X(...Y){const Q=jZ.tryWrapperForImpl(this);let K;for(let G=0;G<Y.length;G++)Y[G]=jZ.tryWrapperForImpl(Y[G]);return K=Reflect.apply(Z,Q,Y),K=ER.any(K,{context:$,globals:J}),K}return X.construct=(...Y)=>{for(let K=0;K<Y.length;K++)Y[K]=jZ.tryWrapperForImpl(Y[K]);let Q=Reflect.construct(Z,Y);return Q=ER.any(Q,{context:$,globals:J}),Q},X[jZ.wrapperSymbol]=Z,X.objectReference=Z,X}});var hR=V((yd)=>{var sY=iY();yd.implementation=class J{constructor(Z,$,{doNotStripQMark:X=!1}){let Y=$[0];if(this._list=[],this._url=null,!X&&typeof Y==="string"&&Y[0]==="?")Y=Y.slice(1);if(Array.isArray(Y))for(let Q of Y){if(Q.length!==2)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([Q[0],Q[1]])}else if(typeof Y==="object"&&Object.getPrototypeOf(Y)===null)for(let Q of Object.keys(Y)){const K=Y[Q];this._list.push([Q,K])}else this._list=sY.parseUrlencodedString(Y)}_updateSteps(){if(this._url!==null){let Z=sY.serializeUrlencoded(this._list);if(Z==="")Z=null;if(this._url._url.query=Z,Z===null)this._url._potentiallyStripTrailingSpacesFromAnOpaquePath()}}get size(){return this._list.length}append(Z,$){this._list.push([Z,$]),this._updateSteps()}delete(Z,$){let X=0;while(X<this._list.length)if(this._list[X][0]===Z&&($===void 0||this._list[X][1]===$))this._list.splice(X,1);else X++;this._updateSteps()}get(Z){for(let $ of this._list)if($[0]===Z)return $[1];return null}getAll(Z){const $=[];for(let X of this._list)if(X[0]===Z)$.push(X[1]);return $}has(Z,$){for(let X of this._list)if(X[0]===Z&&($===void 0||X[1]===$))return!0;return!1}set(Z,$){let X=!1,Y=0;while(Y<this._list.length)if(this._list[Y][0]===Z)if(X)this._list.splice(Y,1);else X=!0,this._list[Y][1]=$,Y++;else Y++;if(!X)this._list.push([Z,$]);this._updateSteps()}sort(){this._list.sort((Z,$)=>{if(Z[0]<$[0])return-1;if(Z[0]>$[0])return 1;return 0}),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return sY.serializeUrlencoded(this._list)}}});var tY=V((xd)=>{var kR=function(J,Z){let $;if(Z!==void 0)$=Z.prototype;if(!G1.isObject($))$=J[OR].URLSearchParams.prototype;return Object.create($)},w0=FZ(),G1=WZ(),fd=CR(),SR=G1.newObjectInRealm,I1=G1.implSymbol,OR=G1.ctorRegistrySymbol;xd.is=(J)=>{return G1.isObject(J)&&G1.hasOwn(J,I1)&&J[I1]instanceof g8.implementation};xd.isImpl=(J)=>{return G1.isObject(J)&&J instanceof g8.implementation};xd.convert=(J,Z,{context:$="The provided value"}={})=>{if(xd.is(Z))return G1.implForWrapper(Z);throw new J.TypeError(`${$} is not of type 'URLSearchParams'.`)};xd.createDefaultIterator=(J,Z,$)=>{const Y=J[OR]["URLSearchParams Iterator"],Q=Object.create(Y);return Object.defineProperty(Q,G1.iterInternalSymbol,{value:{target:Z,kind:$,index:0},configurable:!0}),Q};xd.create=(J,Z,$)=>{const X=kR(J);return xd.setup(X,J,Z,$)};xd.createImpl=(J,Z,$)=>{const X=xd.create(J,Z,$);return G1.implForWrapper(X)};xd._internalSetup=(J,Z)=>{};xd.setup=(J,Z,$=[],X={})=>{if(X.wrapper=J,xd._internalSetup(J,Z),Object.defineProperty(J,I1,{value:new g8.implementation(Z,$,X),configurable:!0}),J[I1][G1.wrapperSymbol]=J,g8.init)g8.init(J[I1]);return J};xd.new=(J,Z)=>{const $=kR(J,Z);if(xd._internalSetup($,J),Object.defineProperty($,I1,{value:Object.create(g8.implementation.prototype),configurable:!0}),$[I1][G1.wrapperSymbol]=$,g8.init)g8.init($[I1]);return $[I1]};var vd=new Set(["Window","Worker"]);xd.install=(J,Z)=>{if(!Z.some((Y)=>vd.has(Y)))return;const $=G1.initCtorRegistry(J);class X{constructor(){const Y=[];{let Q=arguments[0];if(Q!==void 0)if(G1.isObject(Q))if(Q[Symbol.iterator]!==void 0)if(!G1.isObject(Q))throw new J.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");else{const K=[],G=Q;for(let F of G){if(!G1.isObject(F))throw new J.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");else{const q=[],W=F;for(let H of W)H=w0.USVString(H,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:J}),q.push(H);F=q}K.push(F)}Q=K}else if(!G1.isObject(Q))throw new J.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");else{const K=Object.create(null);for(let G of Reflect.ownKeys(Q)){const F=Object.getOwnPropertyDescriptor(Q,G);if(F&&F.enumerable){let q=G;q=w0.USVString(q,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:J});let W=Q[G];W=w0.USVString(W,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:J}),K[q]=W}}Q=K}else Q=w0.USVString(Q,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:J});else Q="";Y.push(Q)}return xd.setup(Object.create(new.target.prototype),J,Y)}append(Y,Q){const K=this!==null&&this!==void 0?this:J;if(!xd.is(K))throw new J.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new J.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let F=arguments[0];F=w0.USVString(F,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:J}),G.push(F)}{let F=arguments[1];F=w0.USVString(F,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:J}),G.push(F)}return G1.tryWrapperForImpl(K[I1].append(...G))}delete(Y){const Q=this!==null&&this!==void 0?this:J;if(!xd.is(Q))throw new J.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}{let G=arguments[1];if(G!==void 0)G=w0.USVString(G,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:J});K.push(G)}return G1.tryWrapperForImpl(Q[I1].delete(...K))}get(Y){const Q=this!==null&&this!==void 0?this:J;if(!xd.is(Q))throw new J.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}return Q[I1].get(...K)}getAll(Y){const Q=this!==null&&this!==void 0?this:J;if(!xd.is(Q))throw new J.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}return G1.tryWrapperForImpl(Q[I1].getAll(...K))}has(Y){const Q=this!==null&&this!==void 0?this:J;if(!xd.is(Q))throw new J.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}{let G=arguments[1];if(G!==void 0)G=w0.USVString(G,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:J});K.push(G)}return Q[I1].has(...K)}set(Y,Q){const K=this!==null&&this!==void 0?this:J;if(!xd.is(K))throw new J.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new J.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let F=arguments[0];F=w0.USVString(F,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:J}),G.push(F)}{let F=arguments[1];F=w0.USVString(F,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:J}),G.push(F)}return G1.tryWrapperForImpl(K[I1].set(...G))}sort(){const Y=this!==null&&this!==void 0?this:J;if(!xd.is(Y))throw new J.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return G1.tryWrapperForImpl(Y[I1].sort())}toString(){const Y=this!==null&&this!==void 0?this:J;if(!xd.is(Y))throw new J.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return Y[I1].toString()}keys(){if(!xd.is(this))throw new J.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return xd.createDefaultIterator(J,this,"key")}values(){if(!xd.is(this))throw new J.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return xd.createDefaultIterator(J,this,"value")}entries(){if(!xd.is(this))throw new J.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return xd.createDefaultIterator(J,this,"key+value")}forEach(Y){if(!xd.is(this))throw new J.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");Y=fd.convert(J,Y,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const Q=arguments[1];let K=Array.from(this[I1]),G=0;while(G<K.length){const[F,q]=K[G].map(G1.tryWrapperForImpl);Y.call(Q,q,F,this),K=Array.from(this[I1]),G++}}get size(){const Y=this!==null&&this!==void 0?this:J;if(!xd.is(Y))throw new J.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return Y[I1].size}}Object.defineProperties(X.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},size:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:X.prototype.entries,configurable:!0,writable:!0}}),$["URLSearchParams"]=X,$["URLSearchParams Iterator"]=Object.create($["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),G1.define($["URLSearchParams Iterator"],{next(){const Y=this&&this[G1.iterInternalSymbol];if(!Y)throw new J.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:Q,kind:K,index:G}=Y,F=Array.from(Q[I1]),q=F.length;if(G>=q)return SR(J,{value:void 0,done:!0});const W=F[G];return Y.index=G+1,SR(J,G1.iteratorResult(W.map(G1.tryWrapperForImpl),K))}}),Object.defineProperty(J,"URLSearchParams",{configurable:!0,writable:!0,value:X})};var g8=hR()});var vR=V((pd)=>{var X1=aY(),fR=iY(),cd=tY();pd.implementation=class J{constructor(Z,$){const X=$[0],Y=$[1];let Q=null;if(Y!==void 0){if(Q=X1.basicURLParse(Y),Q===null)throw new TypeError(`Invalid base URL: ${Y}`)}const K=X1.basicURLParse(X,{baseURL:Q});if(K===null)throw new TypeError(`Invalid URL: ${X}`);const G=K.query!==null?K.query:"";this._url=K,this._query=cd.createImpl(Z,[G],{doNotStripQMark:!0}),this._query._url=this}static canParse(Z,$){let X=null;if($!==void 0){if(X=X1.basicURLParse($),X===null)return!1}if(X1.basicURLParse(Z,{baseURL:X})===null)return!1;return!0}get href(){return X1.serializeURL(this._url)}set href(Z){const $=X1.basicURLParse(Z);if($===null)throw new TypeError(`Invalid URL: ${Z}`);this._url=$,this._query._list.splice(0);const{query:X}=$;if(X!==null)this._query._list=fR.parseUrlencodedString(X)}get origin(){return X1.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(Z){X1.basicURLParse(`${Z}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(Z){if(X1.cannotHaveAUsernamePasswordPort(this._url))return;X1.setTheUsername(this._url,Z)}get password(){return this._url.password}set password(Z){if(X1.cannotHaveAUsernamePasswordPort(this._url))return;X1.setThePassword(this._url,Z)}get host(){const Z=this._url;if(Z.host===null)return"";if(Z.port===null)return X1.serializeHost(Z.host);return`${X1.serializeHost(Z.host)}:${X1.serializeInteger(Z.port)}`}set host(Z){if(X1.hasAnOpaquePath(this._url))return;X1.basicURLParse(Z,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null)return"";return X1.serializeHost(this._url.host)}set hostname(Z){if(X1.hasAnOpaquePath(this._url))return;X1.basicURLParse(Z,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null)return"";return X1.serializeInteger(this._url.port)}set port(Z){if(X1.cannotHaveAUsernamePasswordPort(this._url))return;if(Z==="")this._url.port=null;else X1.basicURLParse(Z,{url:this._url,stateOverride:"port"})}get pathname(){return X1.serializePath(this._url)}set pathname(Z){if(X1.hasAnOpaquePath(this._url))return;this._url.path=[],X1.basicURLParse(Z,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query==="")return"";return`?${this._url.query}`}set search(Z){const $=this._url;if(Z===""){$.query=null,this._query._list=[],this._potentiallyStripTrailingSpacesFromAnOpaquePath();return}const X=Z[0]==="?"?Z.substring(1):Z;$.query="",X1.basicURLParse(X,{url:$,stateOverride:"query"}),this._query._list=fR.parseUrlencodedString(X)}get searchParams(){return this._query}get hash(){if(this._url.fragment===null||this._url.fragment==="")return"";return`#${this._url.fragment}`}set hash(Z){if(Z===""){this._url.fragment=null,this._potentiallyStripTrailingSpacesFromAnOpaquePath();return}const $=Z[0]==="#"?Z.substring(1):Z;this._url.fragment="",X1.basicURLParse($,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}_potentiallyStripTrailingSpacesFromAnOpaquePath(){if(!X1.hasAnOpaquePath(this._url))return;if(this._url.fragment!==null)return;if(this._url.query!==null)return;this._url.path=this._url.path.replace(/\u0020+$/u,"")}}});var mR=V((sd)=>{var xR=function(J,Z){let $;if(Z!==void 0)$=Z.prototype;if(!S0.isObject($))$=J[ad].URL.prototype;return Object.create($)},R0=FZ(),S0=WZ(),t=S0.implSymbol,ad=S0.ctorRegistrySymbol;sd.is=(J)=>{return S0.isObject(J)&&S0.hasOwn(J,t)&&J[t]instanceof Q8.implementation};sd.isImpl=(J)=>{return S0.isObject(J)&&J instanceof Q8.implementation};sd.convert=(J,Z,{context:$="The provided value"}={})=>{if(sd.is(Z))return S0.implForWrapper(Z);throw new J.TypeError(`${$} is not of type 'URL'.`)};sd.create=(J,Z,$)=>{const X=xR(J);return sd.setup(X,J,Z,$)};sd.createImpl=(J,Z,$)=>{const X=sd.create(J,Z,$);return S0.implForWrapper(X)};sd._internalSetup=(J,Z)=>{};sd.setup=(J,Z,$=[],X={})=>{if(X.wrapper=J,sd._internalSetup(J,Z),Object.defineProperty(J,t,{value:new Q8.implementation(Z,$,X),configurable:!0}),J[t][S0.wrapperSymbol]=J,Q8.init)Q8.init(J[t]);return J};sd.new=(J,Z)=>{const $=xR(J,Z);if(sd._internalSetup($,J),Object.defineProperty($,t,{value:Object.create(Q8.implementation.prototype),configurable:!0}),$[t][S0.wrapperSymbol]=$,Q8.init)Q8.init($[t]);return $[t]};var id=new Set(["Window","Worker"]);sd.install=(J,Z)=>{if(!Z.some((Y)=>id.has(Y)))return;const $=S0.initCtorRegistry(J);class X{constructor(Y){if(arguments.length<1)throw new J.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const Q=[];{let K=arguments[0];K=R0.USVString(K,{context:"Failed to construct 'URL': parameter 1",globals:J}),Q.push(K)}{let K=arguments[1];if(K!==void 0)K=R0.USVString(K,{context:"Failed to construct 'URL': parameter 2",globals:J});Q.push(K)}return sd.setup(Object.create(new.target.prototype),J,Q)}toJSON(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return Y[t].toJSON()}get href(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get href' called on an object that is not a valid instance of URL.");return Y[t].href}set href(Y){const Q=this!==null&&this!==void 0?this:J;if(!sd.is(Q))throw new J.TypeError("'set href' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:J}),Q[t].href=Y}toString(){const Y=this;if(!sd.is(Y))throw new J.TypeError("'toString' called on an object that is not a valid instance of URL.");return Y[t].href}get origin(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get origin' called on an object that is not a valid instance of URL.");return Y[t].origin}get protocol(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return Y[t].protocol}set protocol(Y){const Q=this!==null&&this!==void 0?this:J;if(!sd.is(Q))throw new J.TypeError("'set protocol' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:J}),Q[t].protocol=Y}get username(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get username' called on an object that is not a valid instance of URL.");return Y[t].username}set username(Y){const Q=this!==null&&this!==void 0?this:J;if(!sd.is(Q))throw new J.TypeError("'set username' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:J}),Q[t].username=Y}get password(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get password' called on an object that is not a valid instance of URL.");return Y[t].password}set password(Y){const Q=this!==null&&this!==void 0?this:J;if(!sd.is(Q))throw new J.TypeError("'set password' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:J}),Q[t].password=Y}get host(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get host' called on an object that is not a valid instance of URL.");return Y[t].host}set host(Y){const Q=this!==null&&this!==void 0?this:J;if(!sd.is(Q))throw new J.TypeError("'set host' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:J}),Q[t].host=Y}get hostname(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return Y[t].hostname}set hostname(Y){const Q=this!==null&&this!==void 0?this:J;if(!sd.is(Q))throw new J.TypeError("'set hostname' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:J}),Q[t].hostname=Y}get port(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get port' called on an object that is not a valid instance of URL.");return Y[t].port}set port(Y){const Q=this!==null&&this!==void 0?this:J;if(!sd.is(Q))throw new J.TypeError("'set port' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:J}),Q[t].port=Y}get pathname(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return Y[t].pathname}set pathname(Y){const Q=this!==null&&this!==void 0?this:J;if(!sd.is(Q))throw new J.TypeError("'set pathname' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:J}),Q[t].pathname=Y}get search(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get search' called on an object that is not a valid instance of URL.");return Y[t].search}set search(Y){const Q=this!==null&&this!==void 0?this:J;if(!sd.is(Q))throw new J.TypeError("'set search' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:J}),Q[t].search=Y}get searchParams(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return S0.getSameObject(this,"searchParams",()=>{return S0.tryWrapperForImpl(Y[t].searchParams)})}get hash(){const Y=this!==null&&this!==void 0?this:J;if(!sd.is(Y))throw new J.TypeError("'get hash' called on an object that is not a valid instance of URL.");return Y[t].hash}set hash(Y){const Q=this!==null&&this!==void 0?this:J;if(!sd.is(Q))throw new J.TypeError("'set hash' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:J}),Q[t].hash=Y}static canParse(Y){if(arguments.length<1)throw new J.TypeError(`Failed to execute 'canParse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const Q=[];{let K=arguments[0];K=R0.USVString(K,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:J}),Q.push(K)}{let K=arguments[1];if(K!==void 0)K=R0.USVString(K,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:J});Q.push(K)}return Q8.implementation.canParse(...Q)}}if(Object.defineProperties(X.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),Object.defineProperties(X,{canParse:{enumerable:!0}}),$["URL"]=X,Object.defineProperty(J,"URL",{configurable:!0,writable:!0,value:X}),Z.includes("Window"))Object.defineProperty(J,"webkitURL",{configurable:!0,writable:!0,value:X})};var Q8=vR()});var uR=V(($c)=>{var Jc=mR(),Zc=tY();$c.URL=Jc;$c.URLSearchParams=Zc});var cR=V((Gc)=>{var{URL:Qc,URLSearchParams:Kc}=uR(),V6=aY(),dR=VZ(),LZ={Array,Object,Promise,String,TypeError};Qc.install(LZ,["Window"]);Kc.install(LZ,["Window"]);Gc.URL=LZ.URL;Gc.URLSearchParams=LZ.URLSearchParams;Gc.parseURL=V6.parseURL;Gc.basicURLParse=V6.basicURLParse;Gc.serializeURL=V6.serializeURL;Gc.serializePath=V6.serializePath;Gc.serializeHost=V6.serializeHost;Gc.serializeInteger=V6.serializeInteger;Gc.serializeURLOrigin=V6.serializeURLOrigin;Gc.setTheUsername=V6.setTheUsername;Gc.setThePassword=V6.setThePassword;Gc.cannotHaveAUsernamePasswordPort=V6.cannotHaveAUsernamePasswordPort;Gc.hasAnOpaquePath=V6.hasAnOpaquePath;Gc.percentDecodeString=dR.percentDecodeString;Gc.percentDecodeBytes=dR.percentDecodeBytes});var lR=V((t0)=>{var Bc=function(J,Z){var $,X;const Y=J.clone(),Q=($=Z===null||Z===void 0?void 0:Z.replacementString)!==null&&$!==void 0?$:"_credentials_",K=(X=Z===null||Z===void 0?void 0:Z.redactUsernames)!==null&&X!==void 0?X:!0;if((Y.username||Y.password)&&K)Y.username=Q,Y.password="";else if(Y.password)Y.password=Q;if(Y.searchParams.has("authMechanismProperties")){const G=new pR.CommaAndColonSeparatedRecord(Y.searchParams.get("authMechanismProperties"));if(G.get("AWS_SESSION_TOKEN"))G.set("AWS_SESSION_TOKEN",Q),Y.searchParams.set("authMechanismProperties",G.toString())}if(Y.searchParams.has("tlsCertificateKeyFilePassword"))Y.searchParams.set("tlsCertificateKeyFilePassword",Q);if(Y.searchParams.has("proxyUsername")&&K)Y.searchParams.set("proxyUsername",Q);if(Y.searchParams.has("proxyPassword"))Y.searchParams.set("proxyPassword",Q);return Y},Ec=function(J,Z){var $,X;const Y=($=Z===null||Z===void 0?void 0:Z.replacementString)!==null&&$!==void 0?$:"<credentials>",Q=(X=Z===null||Z===void 0?void 0:Z.redactUsernames)!==null&&X!==void 0?X:!0;let K;try{K=new pR.default(J)}catch(q){}if(K)return Z={...Z,replacementString:"___credentials___"},K.redact(Z).toString().replace(/___credentials___/g,Y);const G=Y,F=[(q)=>q.replace(Q?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`\$1${G}\$3`),(q)=>q.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`\$1${G}`),(q)=>q.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`\$1${G}`),(q)=>Q?q.replace(/(proxyUsername=)([^&]+)/gi,`\$1${G}`):q,(q)=>q.replace(/(proxyPassword=)([^&]+)/gi,`\$1${G}`)];for(let q of F)J=q(J);return J},Tc=t0&&t0.__createBinding||(Object.create?function(J,Z,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(Z,$);if(!Y||("get"in Y?!Z.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return Z[$]}};Object.defineProperty(J,X,Y)}:function(J,Z,$,X){if(X===void 0)X=$;J[X]=Z[$]}),Ic=t0&&t0.__setModuleDefault||(Object.create?function(J,Z){Object.defineProperty(J,"default",{enumerable:!0,value:Z})}:function(J,Z){J.default=Z}),Nc=t0&&t0.__importStar||function(J){if(J&&J.__esModule)return J;var Z={};if(J!=null){for(var $ in J)if($!=="default"&&Object.prototype.hasOwnProperty.call(J,$))Tc(Z,J,$)}return Ic(Z,J),Z};Object.defineProperty(t0,"__esModule",{value:!0});t0.redactConnectionString=t0.redactValidConnectionString=void 0;var pR=Nc(oY());t0.redactValidConnectionString=Bc;t0.redactConnectionString=Ec});var oY=V((JQ)=>{var hc=function(J){return J.startsWith("mongodb://")||J.startsWith("mongodb+srv://")},Oc=function(J){return class Z extends J{append($,X){return super.append(this._normalizeKey($),X)}delete($){return super.delete(this._normalizeKey($))}get($){return super.get(this._normalizeKey($))}getAll($){return super.getAll(this._normalizeKey($))}has($){return super.has(this._normalizeKey($))}set($,X){return super.set(this._normalizeKey($),X)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey($){return eY.prototype._normalizeKey.call(this,$)}}};Object.defineProperty(JQ,"__esModule",{value:!0});JQ.CommaAndColonSeparatedRecord=JQ.ConnectionString=JQ.redactConnectionString=void 0;var Cc=cR(),aR=lR();Object.defineProperty(JQ,"redactConnectionString",{enumerable:!0,get:function(){return aR.redactConnectionString}});var J9="__this_is_a_placeholder__",Sc=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class eY extends Map{delete(J){return super.delete(this._normalizeKey(J))}get(J){return super.get(this._normalizeKey(J))}has(J){return super.has(this._normalizeKey(J))}set(J,Z){return super.set(this._normalizeKey(J),Z)}_normalizeKey(J){J=`${J}`;for(let Z of this.keys())if(Z.toLowerCase()===J.toLowerCase()){J=Z;break}return J}}class iR extends Cc.URL{}class y6 extends Error{get name(){return"MongoParseError"}}class Z9 extends iR{constructor(J,Z={}){var $;const{looseValidation:X}=Z;if(!X&&!hc(J))throw new y6('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');const Y=J.match(Sc);if(!Y)throw new y6(`Invalid connection string "${J}"`);const{protocol:Q,username:K,password:G,hosts:F,rest:q}=($=Y.groups)!==null&&$!==void 0?$:{};if(!X){if(!Q||!F)throw new y6(`Protocol and host list are required in "${J}"`);try{decodeURIComponent(K!==null&&K!==void 0?K:""),decodeURIComponent(G!==null&&G!==void 0?G:"")}catch(U){throw new y6(U.message)}const H=/[:/?#[\]@]/gi;if(K===null||K===void 0?void 0:K.match(H))throw new y6(`Username contains unescaped characters ${K}`);if(!K||!G){const U=J.replace(`${Q}://`,"");if(U.startsWith("@")||U.startsWith(":"))throw new y6("URI contained empty userinfo section")}if(G===null||G===void 0?void 0:G.match(H))throw new y6("Password contains unescaped characters")}let W="";if(typeof K==="string")W+=K;if(typeof G==="string")W+=`:${G}`;if(W)W+="@";try{super(`${Q.toLowerCase()}://${W}${J9}${q}`)}catch(H){if(X)new Z9(J,{...Z,looseValidation:!1});if(typeof H.message==="string")H.message=H.message.replace(J9,F);throw H}if(this._hosts=F.split(","),!X){if(this.isSRV&&this.hosts.length!==1)throw new y6("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((H)=>H.includes(":")))throw new y6("mongodb+srv URI cannot have port number")}if(!this.pathname)this.pathname="/";Object.setPrototypeOf(this.searchParams,Oc(this.searchParams.constructor).prototype)}get host(){return J9}set host(J){throw new Error("No single host for connection string")}get hostname(){return J9}set hostname(J){throw new Error("No single host for connection string")}get port(){return""}set port(J){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(J){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(J){this._hosts=J}toString(){return super.toString().replace(J9,this.hosts.join(","))}clone(){return new Z9(this.toString(),{looseValidation:!0})}redact(J){return aR.redactValidConnectionString(this,J)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:J,origin:Z,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:F,hash:q}=this;return{href:J,origin:Z,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:F,hash:q}}}JQ.ConnectionString=Z9;class sR extends eY{constructor(J){super();for(let Z of(J!==null&&J!==void 0?J:"").split(",")){if(!Z)continue;const $=Z.indexOf(":");if($===-1)this.set(Z,"");else this.set(Z.slice(0,$),Z.slice($+1))}}toString(){return[...this].map((J)=>J.join(":")).join(",")}}JQ.CommaAndColonSeparatedRecord=sR;JQ.default=Z9});var tR=V((i01,_c)=>{_c.exports={name:"mongodb",version:"6.3.0",description:"The official MongoDB driver for Node.js",main:"lib/index.js",files:["lib","src","etc/prepare.js","mongodb.d.ts","tsconfig.json"],types:"mongodb.d.ts",repository:{type:"git",url:"git@github.com:mongodb/node-mongodb-native.git"},keywords:["mongodb","driver","official"],author:{name:"The MongoDB NodeJS Team",email:"dbx-node@mongodb.com"},dependencies:{"@mongodb-js/saslprep":"^1.1.0",bson:"^6.2.0","mongodb-connection-string-url":"^3.0.0"},peerDependencies:{"@aws-sdk/credential-providers":"^3.188.0","@mongodb-js/zstd":"^1.1.0","gcp-metadata":"^5.2.0",kerberos:"^2.0.1","mongodb-client-encryption":">=6.0.0 <7",snappy:"^7.2.2",socks:"^2.7.1"},peerDependenciesMeta:{"@aws-sdk/credential-providers":{optional:!0},"@mongodb-js/zstd":{optional:!0},kerberos:{optional:!0},snappy:{optional:!0},"mongodb-client-encryption":{optional:!0},"gcp-metadata":{optional:!0},socks:{optional:!0}},devDependencies:{"@iarna/toml":"^2.2.5","@istanbuljs/nyc-config-typescript":"^1.0.2","@microsoft/api-extractor":"^7.36.4","@microsoft/tsdoc-config":"^0.16.2","@mongodb-js/zstd":"^1.1.0","@octokit/core":"^4.2.4","@types/chai":"^4.3.5","@types/chai-subset":"^1.3.3","@types/express":"^4.17.17","@types/kerberos":"^1.1.2","@types/mocha":"^10.0.1","@types/node":"^20.5.9","@types/saslprep":"^1.0.1","@types/semver":"^7.5.0","@types/sinon":"^10.0.16","@types/sinon-chai":"^3.2.9","@types/whatwg-url":"^11.0.0","@typescript-eslint/eslint-plugin":"^5.62.0","@typescript-eslint/parser":"^5.62.0",chai:"^4.3.7","chai-subset":"^1.6.0",chalk:"^4.1.2",eslint:"^8.48.0","eslint-config-prettier":"^8.10.0","eslint-plugin-import":"^2.28.1","eslint-plugin-prettier":"^4.2.1","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-tsdoc":"^0.2.17","eslint-plugin-unused-imports":"^2.0.0",express:"^4.18.2","gcp-metadata":"^5.2.0","js-yaml":"^4.1.0",mocha:"^10.2.0","mocha-sinon":"^2.1.2","mongodb-client-encryption":"^6.0.0","mongodb-legacy":"^6.0.0",nyc:"^15.1.0",prettier:"^2.8.8",semver:"^7.5.4",sinon:"^15.2.0","sinon-chai":"^3.7.0",snappy:"^7.2.2",socks:"^2.7.1","source-map-support":"^0.5.21","ts-node":"^10.9.1",tsd:"^0.28.1",typescript:"^5.0.4","typescript-cached-transpile":"^0.0.6","v8-heapsnapshot":"^1.3.1",yargs:"^17.7.2"},license:"Apache-2.0",engines:{node:">=16.20.1"},bugs:{url:"https://jira.mongodb.org/projects/NODE/issues/"},homepage:"https://github.com/mongodb/node-mongodb-native",scripts:{"build:evergreen":"node .evergreen/generate_evergreen_tasks.js","build:ts":"node ./node_modules/typescript/bin/tsc","build:dts":"npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs && eslint mongodb.d.ts --fix","build:docs":"./etc/docs/build.ts","build:typedoc":"typedoc","build:nightly":"node ./.github/scripts/nightly.mjs","check:bench":"node test/benchmarks/driverBench","check:coverage":"nyc npm run test:all","check:integration-coverage":"nyc npm run check:test","check:lambda":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/handler.test.js","check:lambda:aws":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/aws_handler.test.js","check:lint":"npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd","check:eslint":"eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test","check:tsd":"tsd --version && tsd","check:dependencies":"mocha test/action/dependency.test.ts","check:dts":"node ./node_modules/typescript/bin/tsc --noEmit mongodb.d.ts && tsd","check:search-indexes":"nyc mocha --config test/mocha_mongodb.json test/manual/search-index-management.prose.test.ts","check:test":"mocha --config test/mocha_mongodb.json test/integration","check:unit":"mocha test/unit","check:ts":"node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit","check:atlas":"mocha --config test/manual/mocharc.json test/manual/atlas_connectivity.test.js","check:drivers-atlas-testing":"mocha --config test/mocha_mongodb.json test/atlas/drivers_atlas_testing.test.ts","check:adl":"mocha --config test/mocha_mongodb.json test/manual/atlas-data-lake-testing","check:aws":"nyc mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_aws.test.ts","check:oidc":"mocha --config test/mocha_mongodb.json test/manual/mongodb_oidc.prose.test.ts","check:oidc-azure":"mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_oidc_azure.prose.test.ts","check:ocsp":"mocha --config test/manual/mocharc.json test/manual/ocsp_support.test.js","check:kerberos":"nyc mocha --config test/manual/mocharc.json test/manual/kerberos.test.ts","check:tls":"mocha --config test/manual/mocharc.json test/manual/tls_support.test.ts","check:ldap":"nyc mocha --config test/manual/mocharc.json test/manual/ldap.test.js","check:socks5":"mocha --config test/manual/mocharc.json test/manual/socks5.test.ts","check:csfle":"mocha --config test/mocha_mongodb.json test/integration/client-side-encryption","check:snappy":"mocha test/unit/assorted/snappy.test.js","fix:eslint":"npm run check:eslint -- --fix",prepare:"node etc/prepare.js","preview:docs":"ts-node etc/docs/preview.ts",test:"npm run check:lint && npm run test:all","test:all":"npm run check:unit && npm run check:test","update:docs":"npm run build:docs -- --yes"},tsd:{directory:"test/types",compilerOptions:{strict:!0,target:"esnext",module:"commonjs",moduleResolution:"node"}}}});var $Q=V((JD)=>{var fc=function(J){const Z=new ZQ(512),{appName:$=""}=J;if($.length>0){const W=Buffer.byteLength($,"utf8")<=128?J.appName:Buffer.from($,"utf8").subarray(0,128).toString("utf8");Z.ifItFitsItSits("application",{name:W})}const{name:X="",version:Y="",platform:Q=""}=J.driverInfo,K={name:X.length>0?`nodejs|${X}`:"nodejs",version:Y.length>0?`${oR}|${Y}`:oR};if(!Z.ifItFitsItSits("driver",K))throw new rR.MongoInvalidArgumentError("Unable to include driverInfo name and version, metadata cannot exceed 512 bytes");let G=vc();if(Q.length>0)G=`${G}|${Q}`;if(!Z.ifItFitsItSits("platform",G))throw new rR.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");const F=(new Map()).set("name",wZ.platform).set("architecture",wZ.arch).set("version",$9.release()).set("type",$9.type());if(!Z.ifItFitsItSits("os",F))for(let W of F.keys()){if(F.delete(W),F.size===0)break;if(Z.ifItFitsItSits("os",F))break}const q=eR();if(q!=null){if(!Z.ifItFitsItSits("env",q))for(let W of q.keys()){if(q.delete(W),q.size===0)break;if(Z.ifItFitsItSits("env",q))break}}return Z.toObject()},eR=function(){const{AWS_EXECUTION_ENV:J="",AWS_LAMBDA_RUNTIME_API:Z="",FUNCTIONS_WORKER_RUNTIME:$="",K_SERVICE:X="",FUNCTION_NAME:Y="",VERCEL:Q="",AWS_LAMBDA_FUNCTION_MEMORY_SIZE:K="",AWS_REGION:G="",FUNCTION_MEMORY_MB:F="",FUNCTION_REGION:q="",FUNCTION_TIMEOUT_SEC:W="",VERCEL_REGION:H=""}=wZ.env,U=J.startsWith("AWS_Lambda_")||Z.length>0,j=$.length>0,z=X.length>0||Y.length>0,A=Q.length>0,T=new Map;if(A&&!(j||z)){if(H.length>0)T.set("region",H);return T.set("name","vercel"),T}if(U&&!(j||z||A)){if(G.length>0)T.set("region",G);if(K.length>0&&Number.isInteger(+K))T.set("memory_mb",new P7.Int32(K));return T.set("name","aws.lambda"),T}if(j&&!(z||U||A))return T.set("name","azure.func"),T;if(z&&!(j||U||A)){if(q.length>0)T.set("region",q);if(F.length>0&&Number.isInteger(+F))T.set("memory_mb",new P7.Int32(F));if(W.length>0&&Number.isInteger(+W))T.set("timeout_sec",new P7.Int32(W));return T.set("name","gcp.func"),T}return null},vc=function(){if("Deno"in globalThis)return`Deno v${typeof Deno?.version?.deno==="string"?Deno?.version?.deno:"0.0.0-unknown"}, ${$9.endianness()}`;if("Bun"in globalThis)return`Bun v${typeof Bun?.version==="string"?Bun?.version:"0.0.0-unknown"}, ${$9.endianness()}`;return`Node.js ${wZ.version}, ${$9.endianness()}`};Object.defineProperty(JD,"__esModule",{value:!0});JD.getFAASEnv=JD.makeClientMetadata=JD.LimitedSizeDocument=void 0;var $9=import.meta.require("os"),wZ=import.meta.require("process"),P7=H1(),rR=E(),oR=tR().version;class ZQ{constructor(J){this.maxSize=J,this.document=new Map,this.documentSize=5}ifItFitsItSits(J,Z){const $=P7.BSON.serialize((new Map()).set(J,Z)).byteLength-5;if($+this.documentSize>this.maxSize)return!1;return this.documentSize+=$,this.document.set(J,Z),!0}toObject(){return P7.BSON.deserialize(P7.BSON.serialize(this.document),{promoteLongs:!1,promoteBuffers:!1,promoteValues:!1,useBigInt64:!1})}}JD.LimitedSizeDocument=ZQ;JD.makeClientMetadata=fc;JD.getFAASEnv=eR});var Y9=V((qD)=>{Object.defineProperty(qD,"__esModule",{value:!0});qD.OpCompressedRequest=qD.OpMsgResponse=qD.OpMsgRequest=qD.OpQueryResponse=qD.OpQueryRequest=void 0;var m8=H1(),X9=E(),gc=k1(),XQ=N7(),T7=h8(),I7=0,mc=2,uc=4,dc=8,cc=16,pc=32,lc=64,ac=128,ic=1,sc=2,nc=4,tc=8;class QQ{constructor(J,Z,$){this.databaseName=J,this.query=Z;const X=`${J}.\$cmd`;if(typeof J!=="string")throw new X9.MongoRuntimeError("Database name must be a string for a query");if(Z==null)throw new X9.MongoRuntimeError("A query document must be specified for query");if(X.indexOf("\0")!==-1)throw new X9.MongoRuntimeError("Namespace cannot contain a null character");this.ns=X,this.numberToSkip=$.numberToSkip||0,this.numberToReturn=$.numberToReturn||0,this.returnFieldSelector=$.returnFieldSelector||void 0,this.requestId=$.requestId??QQ.getRequestId(),this.pre32Limit=$.pre32Limit,this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.batchSize=this.numberToReturn,this.tailable=!1,this.secondaryOk=typeof $.secondaryOk==="boolean"?$.secondaryOk:!1,this.oplogReplay=!1,this.noCursorTimeout=!1,this.awaitData=!1,this.exhaust=!1,this.partial=!1}incRequestId(){this.requestId=I7++}nextRequestId(){return I7+1}static getRequestId(){return++I7}toBin(){const J=[];let Z=null,$=0;if(this.tailable)$|=mc;if(this.secondaryOk)$|=uc;if(this.oplogReplay)$|=dc;if(this.noCursorTimeout)$|=cc;if(this.awaitData)$|=pc;if(this.exhaust)$|=lc;if(this.partial)$|=ac;if(this.batchSize!==this.numberToReturn)this.numberToReturn=this.batchSize;const X=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);J.push(X);const Y=m8.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});if(J.push(Y),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0)Z=m8.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),J.push(Z);const Q=X.length+Y.length+(Z?Z.length:0);let K=4;return X[3]=Q>>24&255,X[2]=Q>>16&255,X[1]=Q>>8&255,X[0]=Q&255,X[K+3]=this.requestId>>24&255,X[K+2]=this.requestId>>16&255,X[K+1]=this.requestId>>8&255,X[K]=this.requestId&255,K=K+4,X[K+3]=0>>24&255,X[K+2]=0>>16&255,X[K+1]=0>>8&255,X[K]=0&255,K=K+4,X[K+3]=T7.OP_QUERY>>24&255,X[K+2]=T7.OP_QUERY>>16&255,X[K+1]=T7.OP_QUERY>>8&255,X[K]=T7.OP_QUERY&255,K=K+4,X[K+3]=$>>24&255,X[K+2]=$>>16&255,X[K+1]=$>>8&255,X[K]=$&255,K=K+4,K=K+X.write(this.ns,K,"utf8")+1,X[K-1]=0,X[K+3]=this.numberToSkip>>24&255,X[K+2]=this.numberToSkip>>16&255,X[K+1]=this.numberToSkip>>8&255,X[K]=this.numberToSkip&255,K=K+4,X[K+3]=this.numberToReturn>>24&255,X[K+2]=this.numberToReturn>>16&255,X[K+1]=this.numberToReturn>>8&255,X[K]=this.numberToReturn&255,K=K+4,J}}qD.OpQueryRequest=QQ;class XD{constructor(J,Z,$,X){this.documents=new Array(0),this.parsed=!1,this.raw=J,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=Z.length,this.requestId=Z.requestId,this.responseTo=Z.responseTo,this.opCode=Z.opCode,this.fromCompressed=Z.fromCompressed,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1}isParsed(){return this.parsed}parse(J){if(this.parsed)return;J=J??{};const Z=J.raw||!1,$=J.documentsReturnedIn||null,X=J.useBigInt64??this.opts.useBigInt64,Y=J.promoteLongs??this.opts.promoteLongs,Q=J.promoteValues??this.opts.promoteValues,K=J.promoteBuffers??this.opts.promoteBuffers,G=J.bsonRegExp??this.opts.bsonRegExp;let F;const q={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G};this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new m8.Long(this.data.readInt32LE(4),this.data.readInt32LE(8)),this.startingFrom=this.data.readInt32LE(12),this.numberReturned=this.data.readInt32LE(16),this.documents=new Array(this.numberReturned),this.cursorNotFound=(this.responseFlags&ic)!==0,this.queryFailure=(this.responseFlags&sc)!==0,this.shardConfigStale=(this.responseFlags&nc)!==0,this.awaitCapable=(this.responseFlags&tc)!==0;for(let W=0;W<this.numberReturned;W++){if(F=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,Z)this.documents[W]=this.data.slice(this.index,this.index+F);else this.documents[W]=m8.deserialize(this.data.slice(this.index,this.index+F),q);this.index=this.index+F}if(this.documents.length===1&&$!=null&&Z){const W={};W[$]=!0,q.fieldsAsRaw=W;const H=m8.deserialize(this.documents[0],q);this.documents=[H]}this.parsed=!0}}qD.OpQueryResponse=XD;var YD=1,QD=2,KD=1<<16;class RZ{constructor(J,Z,$){if(this.databaseName=J,this.command=Z,this.options=$,Z==null)throw new X9.MongoInvalidArgumentError("Query document must be specified for query");if(this.command.$db=J,$.readPreference&&$.readPreference.mode!==gc.ReadPreference.PRIMARY)this.command.$readPreference=$.readPreference.toJSON();this.options=$??{},this.requestId=$.requestId?$.requestId:RZ.getRequestId(),this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checksumPresent=!1,this.moreToCome=$.moreToCome||!1,this.exhaustAllowed=typeof $.exhaustAllowed==="boolean"?$.exhaustAllowed:!1}toBin(){const J=[];let Z=0;if(this.checksumPresent)Z|=YD;if(this.moreToCome)Z|=QD;if(this.exhaustAllowed)Z|=KD;const $=Buffer.alloc(20);J.push($);let X=$.length;const Y=this.command;return X+=this.makeDocumentSegment(J,Y),$.writeInt32LE(X,0),$.writeInt32LE(this.requestId,4),$.writeInt32LE(0,8),$.writeInt32LE(T7.OP_MSG,12),$.writeUInt32LE(Z,16),J}makeDocumentSegment(J,Z){const $=Buffer.alloc(1);$[0]=0;const X=this.serializeBson(Z);return J.push($),J.push(X),$.length+X.length}serializeBson(J){return m8.serialize(J,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return I7=I7+1&2147483647,I7}}qD.OpMsgRequest=RZ;class GD{constructor(J,Z,$,X){this.parsed=!1,this.raw=J,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=Z.length,this.requestId=Z.requestId,this.responseTo=Z.responseTo,this.opCode=Z.opCode,this.fromCompressed=Z.fromCompressed,this.responseFlags=$.readInt32LE(0),this.checksumPresent=(this.responseFlags&YD)!==0,this.moreToCome=(this.responseFlags&QD)!==0,this.exhaustAllowed=(this.responseFlags&KD)!==0,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1,this.documents=[]}isParsed(){return this.parsed}parse(J){if(this.parsed)return;J=J??{},this.index=4;const Z=J.raw||!1,$=J.documentsReturnedIn||null,X=J.useBigInt64??this.opts.useBigInt64,Y=J.promoteLongs??this.opts.promoteLongs,Q=J.promoteValues??this.opts.promoteValues,K=J.promoteBuffers??this.opts.promoteBuffers,G=J.bsonRegExp??this.opts.bsonRegExp,F=this.parseBsonSerializationOptions(J),q={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G,validation:F};while(this.index<this.data.length){const W=this.data.readUInt8(this.index++);if(W===0){const H=this.data.readUInt32LE(this.index),U=this.data.slice(this.index,this.index+H);this.documents.push(Z?U:m8.deserialize(U,q)),this.index+=H}else if(W===1)throw new X9.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol")}if(this.documents.length===1&&$!=null&&Z){const W={};W[$]=!0,q.fieldsAsRaw=W;const H=m8.deserialize(this.documents[0],q);this.documents=[H]}this.parsed=!0}parseBsonSerializationOptions({enableUtf8Validation:J}){if(J===!1)return{utf8:!1};return{utf8:{writeErrors:!1}}}}qD.OpMsgResponse=GD;var YQ=16,$D=9;class FD{constructor(J,Z){this.command=J,this.options=Z}static canCompress(J){const Z=J instanceof RZ?J.command:J.query,$=Object.keys(Z)[0];return!XQ.uncompressibleCommands.has($)}async toBin(){const J=Buffer.concat(this.command.toBin()),Z=J.slice(YQ),$=J.readInt32LE(12),X=await XQ.compress(this.options,Z),Y=Buffer.alloc(YQ);Y.writeInt32LE(YQ+$D+X.length,0),Y.writeInt32LE(this.command.requestId,4),Y.writeInt32LE(0,8),Y.writeInt32LE(T7.OP_COMPRESSED,12);const Q=Buffer.alloc($D);return Q.writeInt32LE($,0),Q.writeInt32LE(Z.length,4),Q.writeUInt8(XQ.Compressor[this.options.agreedCompressor],8),[Y,Q,X]}}qD.OpCompressedRequest=FD});var N7=V((jD)=>{var zD=function(){if(I4==null){const J=VD.getSnappy();if("kModuleError"in J)throw J.kModuleError;I4=J}return I4};async function Qp(J,Z){const $={};switch(J.agreedCompressor){case"snappy":return I4??=zD(),I4.compress(Z);case"zstd":{if(MD(),"kModuleError"in d8)throw d8.kModuleError;return d8.compress(Z,$p)}case"zlib":{if(J.zlibCompressionLevel)$.level=J.zlibCompressionLevel;return Yp(Z,$)}default:throw new GQ.MongoInvalidArgumentError(`Unknown compressor ${J.agreedCompressor} failed to compress`)}}async function UD(J,Z){if(J!==jD.Compressor.snappy&&J!==jD.Compressor.zstd&&J!==jD.Compressor.zlib&&J!==jD.Compressor.none)throw new GQ.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${J})`);switch(J){case jD.Compressor.snappy:return I4??=zD(),I4.uncompress(Z,{asBuffer:!0});case jD.Compressor.zstd:{if(MD(),"kModuleError"in d8)throw d8.kModuleError;return d8.decompress(Z)}case jD.Compressor.zlib:return Xp(Z);default:return Z}}var MD=function(){if(!d8)d8=VD.getZstdLibrary()};async function Kp(J,Z){const X=await(Z.agreedCompressor==="none"||!B7.OpCompressedRequest.canCompress(J)?J:new B7.OpCompressedRequest(J,{agreedCompressor:Z.agreedCompressor??"none",zlibCompressionLevel:Z.zlibCompressionLevel??0})).toBin();return Buffer.concat(X)}async function Gp(J){const Z={length:J.readInt32LE(0),requestId:J.readInt32LE(4),responseTo:J.readInt32LE(8),opCode:J.readInt32LE(12)};if(Z.opCode!==KQ.OP_COMPRESSED){const G=Z.opCode===KQ.OP_MSG?B7.OpMsgResponse:B7.OpQueryResponse,F=J.subarray(Q9);return new G(J,Z,F)}const $={...Z,fromCompressed:!0,opCode:J.readInt32LE(Q9),length:J.readInt32LE(Q9+4)},X=J[Q9+8],Y=J.slice(Q9+9),Q=$.opCode===KQ.OP_MSG?B7.OpMsgResponse:B7.OpQueryResponse,K=await UD(X,Y);if(K.length!==$.length)throw new GQ.MongoDecompressionError("Message body and message header must be the same length");return new Q(J,$,K)}Object.defineProperty(jD,"__esModule",{value:!0});jD.decompressResponse=jD.compressCommand=jD.decompress=jD.compress=jD.uncompressibleCommands=jD.Compressor=void 0;var HD=import.meta.require("util"),DZ=import.meta.require("zlib"),Zp=v1(),VD=H6(),GQ=E(),B7=Y9(),KQ=h8();jD.Compressor=Object.freeze({none:0,snappy:1,zlib:2,zstd:3});jD.uncompressibleCommands=new Set([Zp.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);var $p=3,Xp=HD.promisify(DZ.inflate.bind(DZ)),Yp=HD.promisify(DZ.deflate.bind(DZ)),d8,I4=null;jD.compress=Qp;jD.decompress=UD;var Q9=16;jD.compressCommand=Kp;jD.decompressResponse=Gp});var qQ=V((LD)=>{var G9=function(J,Z){return function($,X,Y,Q){let K;try{const G=K9[J](Z,$,X);G.setAutoPadding(!1),K=G.update(Y);const F=G.final();if(F.length>0)K=Buffer.concat([K,F])}catch(G){return G}return K.copy(Q),K.length}},Vp=function(J,Z){try{K9.randomFillSync(J,0,Z)}catch($){return $}return Z},zp=function(J,Z){let $;try{$=K9.createHash("sha256").update(J).digest()}catch(X){return X}return $.copy(Z),$.length},FQ=function(J){return(Z,$,X)=>{let Y;try{Y=K9.createHmac(J,Z).update($).digest()}catch(Q){return Q}return Y.copy(X),Y.length}},Up=function(J,Z,$){let X;try{const Y=K9.createSign("sha256WithRSAEncryption"),Q=Buffer.from(`-----BEGIN PRIVATE KEY-----\n${J.toString("base64")}\n-----END PRIVATE KEY-----\n`);X=Y.update(Z).end().sign(Q)}catch(Y){return Y}return X.copy($),X.length};Object.defineProperty(LD,"__esModule",{value:!0});LD.hmacSha256Hook=LD.hmacSha512Hook=LD.aes256CtrDecryptHook=LD.aes256CtrEncryptHook=LD.aes256CbcDecryptHook=LD.aes256CbcEncryptHook=LD.signRsaSha256Hook=LD.makeHmacHook=LD.sha256Hook=LD.randomHook=LD.makeAES256Hook=void 0;var K9=import.meta.require("crypto");LD.makeAES256Hook=G9;LD.randomHook=Vp;LD.sha256Hook=zp;LD.makeHmacHook=FQ;LD.signRsaSha256Hook=Up;LD.aes256CbcEncryptHook=G9("createCipheriv","aes-256-cbc");LD.aes256CbcDecryptHook=G9("createDecipheriv","aes-256-cbc");LD.aes256CtrEncryptHook=G9("createCipheriv","aes-256-ctr");LD.aes256CtrDecryptHook=G9("createDecipheriv","aes-256-ctr");LD.hmacSha512Hook=FQ("sha512");LD.hmacSha256Hook=FQ("sha256")});var B4=V((ND)=>{Object.defineProperty(ND,"__esModule",{value:!0});ND.MongoCryptKMSRequestNetworkTimeoutError=ND.MongoCryptAzureKMSRequestError=ND.MongoCryptCreateEncryptedCollectionError=ND.MongoCryptCreateDataKeyError=ND.MongoCryptInvalidArgumentError=ND.MongoCryptError=void 0;var Np=E();class N4 extends Np.MongoError{constructor(J,Z={}){super(J,Z)}get name(){return"MongoCryptError"}}ND.MongoCryptError=N4;class RD extends N4{constructor(J){super(J)}get name(){return"MongoCryptInvalidArgumentError"}}ND.MongoCryptInvalidArgumentError=RD;class DD extends N4{constructor(J,{cause:Z}){super(`Unable to complete creating data keys: ${Z.message}`,{cause:Z});this.encryptedFields=J}get name(){return"MongoCryptCreateDataKeyError"}}ND.MongoCryptCreateDataKeyError=DD;class PD extends N4{constructor(J,{cause:Z}){super(`Unable to create collection: ${Z.message}`,{cause:Z});this.encryptedFields=J}get name(){return"MongoCryptCreateEncryptedCollectionError"}}ND.MongoCryptCreateEncryptedCollectionError=PD;class TD extends N4{constructor(J,Z){super(J);this.body=Z}get name(){return"MongoCryptAzureKMSRequestError"}}ND.MongoCryptAzureKMSRequestError=TD;class ID extends N4{get name(){return"MongoCryptKMSRequestNetworkTimeoutError"}}ND.MongoCryptKMSRequestNetworkTimeoutError=ID});var hD=V((ED)=>{Object.defineProperty(ED,"__esModule",{value:!0});ED.MongocryptdManager=void 0;var Op=E();class PZ{constructor(J={}){if(this.uri=typeof J.mongocryptdURI==="string"&&J.mongocryptdURI.length>0?J.mongocryptdURI:PZ.DEFAULT_MONGOCRYPTD_URI,this.bypassSpawn=!!J.mongocryptdBypassSpawn,this.spawnPath=J.mongocryptdSpawnPath||"",this.spawnArgs=[],Array.isArray(J.mongocryptdSpawnArgs))this.spawnArgs=this.spawnArgs.concat(J.mongocryptdSpawnArgs);if(this.spawnArgs.filter((Z)=>typeof Z==="string").every((Z)=>Z.indexOf("--idleShutdownTimeoutSecs")<0))this.spawnArgs.push("--idleShutdownTimeoutSecs","60")}async spawn(){const J=this.spawnPath||"mongocryptd",{spawn:Z}=import.meta.require("child_process");this._child=Z(J,this.spawnArgs,{stdio:"ignore",detached:!0}),this._child.on("error",()=>{}),this._child.unref()}async withRespawn(J){try{return await J()}catch($){if(!($ instanceof Op.MongoNetworkTimeoutError&&!this.bypassSpawn))throw $}return await this.spawn(),await J()}}PZ.DEFAULT_MONGOCRYPTD_URI="mongodb://localhost:27020";ED.MongocryptdManager=PZ});var kD=V((SD)=>{async function yp(J){const Z=kp.getAwsCredentialProvider();if("kModuleError"in Z)return J;const{fromNodeProviderChain:$}=Z,Y=await $()();return{...J,aws:Y}}Object.defineProperty(SD,"__esModule",{value:!0});SD.loadAWSCredentials=void 0;var kp=H6();SD.loadAWSCredentials=yp});var fD=V((yD)=>{var vp=function(J,Z={}){return new Promise(($,X)=>{let Y;const Q=_p.get(J,Z,(K)=>{K.setEncoding("utf8");let G="";K.on("data",(F)=>G+=F),K.on("end",()=>{WQ.clearTimeout(Y),$({status:K.statusCode,body:G})})}).on("error",(K)=>{WQ.clearTimeout(Y),X(K)}).end();Y=WQ.setTimeout(()=>{Q.destroy(new fp.MongoCryptKMSRequestNetworkTimeoutError("request timed out after 10 seconds"))},1e4)})};Object.defineProperty(yD,"__esModule",{value:!0});yD.get=void 0;var _p=import.meta.require("http"),WQ=import.meta.require("timers"),fp=B4();yD.get=vp});var uD=V((bD)=>{async function gp(J){const{status:Z,body:$}=J,X=(()=>{try{return JSON.parse($)}catch{throw new E4.MongoCryptAzureKMSRequestError("Malformed JSON body in GET request.")}})();if(Z!==200)throw new E4.MongoCryptAzureKMSRequestError("Unable to complete request.",X);if(!X.access_token)throw new E4.MongoCryptAzureKMSRequestError("Malformed response body - missing field `access_token`.");if(!X.expires_in)throw new E4.MongoCryptAzureKMSRequestError("Malformed response body - missing field `expires_in`.");const Y=Number(X.expires_in)*1000;if(Number.isNaN(Y))throw new E4.MongoCryptAzureKMSRequestError("Malformed response body - unable to parse int from `expires_in` field.");return{accessToken:X.access_token,expiresOnTimestamp:Date.now()+Y}}var vD=function(J){const Z=new URL(J.url?.toString()??"http://169.254.169.254/metadata/identity/oauth2/token");return Z.searchParams.append("api-version","2018-02-01"),Z.searchParams.append("resource","https://vault.azure.net"),{headers:{...J.headers,"Content-Type":"application/json",Metadata:!0},url:Z}};async function xD(J={}){const{headers:Z,url:$}=vD(J),X=await xp.get($,{headers:Z}).catch((Y)=>{if(Y instanceof E4.MongoCryptKMSRequestNetworkTimeoutError)throw new E4.MongoCryptAzureKMSRequestError(`[Azure KMS] ${Y.message}`);throw Y});return gp(X)}async function mp(J){const Z=await bD.tokenCache.getToken();return{...J,azure:Z}}Object.defineProperty(bD,"__esModule",{value:!0});bD.loadAzureCredentials=bD.fetchAzureKMSToken=bD.prepareRequest=bD.tokenCache=bD.AzureCredentialCache=void 0;var E4=B4(),xp=fD(),bp=6000;class HQ{constructor(){this.cachedToken=null}async getToken(){if(this.cachedToken==null||this.needsRefresh(this.cachedToken))this.cachedToken=await this._getToken();return{accessToken:this.cachedToken.accessToken}}needsRefresh(J){return J.expiresOnTimestamp-Date.now()<=bp}resetCache(){this.cachedToken=null}_getToken(){return xD()}}bD.AzureCredentialCache=HQ;bD.tokenCache=new HQ;bD.prepareRequest=vD;bD.fetchAzureKMSToken=xD;bD.loadAzureCredentials=mp});var pD=V((dD)=>{async function lp(J){const Z=pp.getGcpMetadata();if("kModuleError"in Z)return J;const{access_token:$}=await Z.instance({property:"service-accounts/default/token"});return{...J,gcp:{accessToken:$}}}Object.defineProperty(dD,"__esModule",{value:!0});dD.loadGCPCredentials=void 0;var pp=H6();dD.loadGCPCredentials=lp});var VQ=V((lD)=>{var TZ=function(J,Z){const $=Z[J];if($==null)return!1;return typeof $==="object"&&Object.keys($).length===0};async function np(J){let Z=J;if(TZ("aws",J))Z=await ap.loadAWSCredentials(Z);if(TZ("gcp",J))Z=await sp.loadGCPCredentials(Z);if(TZ("azure",J))Z=await ip.loadAzureCredentials(Z);return Z}Object.defineProperty(lD,"__esModule",{value:!0});lD.refreshKMSCredentials=lD.isEmptyCredentials=void 0;var ap=kD(),ip=uD(),sp=pD();lD.isEmptyCredentials=TZ;lD.refreshKMSCredentials=np});var zQ=V((XP)=>{var Jl=function(){if(F9==null){const J=ep.getSocks();if("kModuleError"in J)throw J.kModuleError;F9=J}return F9},sD=function(J){if(process.env.MONGODB_CRYPT_DEBUG)console.error(J)};Object.defineProperty(XP,"__esModule",{value:!0});XP.StateMachine=void 0;var iD=import.meta.require("fs/promises"),rp=import.meta.require("net"),op=import.meta.require("tls"),K8=H1(),ep=H6(),IZ=y(),c8=B4(),F9=null,NZ=0,nD=1,tD=2,rD=3,oD=7,eD=4,JP=5,ZP=6,Zl=443,$l=new Map([[NZ,"MONGOCRYPT_CTX_ERROR"],[nD,"MONGOCRYPT_CTX_NEED_MONGO_COLLINFO"],[tD,"MONGOCRYPT_CTX_NEED_MONGO_MARKINGS"],[rD,"MONGOCRYPT_CTX_NEED_MONGO_KEYS"],[oD,"MONGOCRYPT_CTX_NEED_KMS_CREDENTIALS"],[eD,"MONGOCRYPT_CTX_NEED_KMS"],[JP,"MONGOCRYPT_CTX_READY"],[ZP,"MONGOCRYPT_CTX_DONE"]]),Xl=["tlsInsecure","tlsAllowInvalidCertificates","tlsAllowInvalidHostnames","tlsDisableOCSPEndpointCheck","tlsDisableCertificateRevocationCheck"];class $P{constructor(J,Z=K8.pluckBSONSerializeOptions(J)){this.options=J,this.bsonOptions=Z}async execute(J,Z){const{_keyVaultNamespace:$,_keyVaultClient:X,_metaDataClient:Y,_mongocryptdClient:Q,_mongocryptdManager:K}=J;let G=null;while(Z.state!==ZP&&Z.state!==NZ)switch(sD(`[context#${Z.id}] ${$l.get(Z.state)||Z.state}`),Z.state){case nD:{const F=K8.deserialize(Z.nextMongoOperation());if(!Y)throw new c8.MongoCryptError("unreachable state machine state: entered MONGOCRYPT_CTX_NEED_MONGO_COLLINFO but metadata client is undefined");const q=await this.fetchCollectionInfo(Y,Z.ns,F);if(q)Z.addMongoOperationResponse(q);Z.finishMongoOperation();break}case tD:{const F=Z.nextMongoOperation();if(!Q)throw new c8.MongoCryptError("unreachable state machine state: entered MONGOCRYPT_CTX_NEED_MONGO_MARKINGS but mongocryptdClient is undefined");const q=K?await K.withRespawn(this.markCommand.bind(this,Q,Z.ns,F)):await this.markCommand(Q,Z.ns,F);Z.addMongoOperationResponse(q),Z.finishMongoOperation();break}case rD:{const F=Z.nextMongoOperation(),q=await this.fetchKeys(X,$,F);if(q.length===0)G={v:[]};for await(let W of q)Z.addMongoOperationResponse(K8.serialize(W));Z.finishMongoOperation();break}case oD:{const F=await J.askForKMSCredentials();Z.provideKMSProviders(K8.serialize(F));break}case eD:{const F=Array.from(this.requests(Z));await Promise.all(F),Z.finishKMSRequests();break}case JP:{const F=Z.finalize();if(Z.state===NZ){const q=Z.status.message||"Finalization error";throw new c8.MongoCryptError(q)}G=K8.deserialize(F,this.options);break}default:throw new c8.MongoCryptError(`Unknown state: ${Z.state}`)}if(Z.state===NZ||G==null){const F=Z.status.message;if(!F)sD("unidentifiable error in MongoCrypt - received an error status from \`libmongocrypt\` but received no error message.");throw new c8.MongoCryptError(F??"unidentifiable error in MongoCrypt - received an error status from `libmongocrypt` but received no error message.")}return G}kmsRequest(J){const Z=J.endpoint.split(":"),$=Z[1]!=null?Number.parseInt(Z[1],10):Zl,X={host:Z[0],servername:Z[0],port:$},Y=J.message;return new Promise(async(Q,K)=>{const G=new IZ.BufferPool;let F,q;function W(){for(let z of[F,q])if(z)z.removeAllListeners(),z.destroy()}function H(){W(),K(new c8.MongoCryptError("KMS request timed out"))}function U(z){W();const A=new c8.MongoCryptError("KMS request failed",{cause:z});K(A)}if(this.options.proxyOptions&&this.options.proxyOptions.proxyHost){q=rp.connect({host:this.options.proxyOptions.proxyHost,port:this.options.proxyOptions.proxyPort||1080}),q.on("timeout",H),q.on("error",U);try{await import.meta.require("events").once(q,"connect"),F9??=Jl(),X.socket=(await F9.SocksClient.createConnection({existing_socket:q,command:"connect",destination:{host:X.host,port:X.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:this.options.proxyOptions.proxyUsername,password:this.options.proxyOptions.proxyPassword}})).socket}catch(z){return U(z)}}const j=this.options.tlsOptions;if(j){const z=J.kmsProvider,A=j[z];if(A){const T=this.validateTlsOptions(z,A);if(T)K(T);try{await this.setTlsOptions(A,X)}catch(w){return U(w)}}}F=op.connect(X,()=>{F.write(Y)}),F.once("timeout",H),F.once("error",U),F.on("data",(z)=>{G.append(z);while(J.bytesNeeded>0&&G.length){const A=Math.min(J.bytesNeeded,G.length);J.addResponse(G.read(A))}if(J.bytesNeeded<=0)W(),Q()})})}*requests(J){for(let Z=J.nextKMSRequest();Z!=null;Z=J.nextKMSRequest())yield this.kmsRequest(Z)}validateTlsOptions(J,Z){const $=Object.keys(Z);for(let X of Xl)if($.includes(X))return new c8.MongoCryptError(`Insecure TLS options prohibited for ${J}: ${X}`)}async setTlsOptions(J,Z){if(J.tlsCertificateKeyFile){const $=await iD.readFile(J.tlsCertificateKeyFile);Z.cert=Z.key=$}if(J.tlsCAFile)Z.ca=await iD.readFile(J.tlsCAFile);if(J.tlsCertificateKeyFilePassword)Z.passphrase=J.tlsCertificateKeyFilePassword}async fetchCollectionInfo(J,Z,$){const{db:X}=IZ.MongoDBCollectionNamespace.fromString(Z),Y=await J.db(X).listCollections($,{promoteLongs:!1,promoteValues:!1}).toArray();return Y.length>0?K8.serialize(Y[0]):null}async markCommand(J,Z,$){const X={promoteLongs:!1,promoteValues:!1},{db:Y}=IZ.MongoDBCollectionNamespace.fromString(Z),Q=K8.deserialize($,X),K=await J.db(Y).command(Q,X);return K8.serialize(K,this.bsonOptions)}fetchKeys(J,Z,$){const{db:X,collection:Y}=IZ.MongoDBCollectionNamespace.fromString(Z);return J.db(X).collection(Y,{readConcern:{level:"majority"}}).find(K8.deserialize($)).toArray()}}XP.StateMachine=$P});var MQ=V((qP)=>{var FP=function(J,Z,$=!0){if($){if(Buffer.isBuffer(Z))Z=E7.deserialize(Z);if(Buffer.isBuffer(J))throw new BZ.MongoRuntimeError("Expected result of decryption to be deserialized BSON object")}if(!J||typeof J!=="object")return;for(let X of Object.keys(J)){const Y=Z[X];if(Y&&Y._bsontype==="Binary"&&Y.sub_type===6){if(!J[UQ])Object.defineProperty(J,UQ,{value:[],configurable:!0,enumerable:!1,writable:!1});J[UQ].push(X);continue}FP(J[X],Y,!1)}},KP;Object.defineProperty(qP,"__esModule",{value:!0});qP.AutoEncrypter=qP.AutoEncryptionLoggerLevel=void 0;var E7=H1(),Yl=H6(),BZ=E(),Ql=C4(),Kl=y(),Gl=qQ(),Fl=B4(),ql=hD(),Wl=VQ(),QP=zQ();qP.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4});var GP=Symbol.for("@@mdb.decorateDecryptionResult"),UQ=Symbol.for("@@mdb.decryptedKeys");class EZ{static getMongoCrypt(){const J=Yl.getMongoDBClientEncryption();if("kModuleError"in J)throw J.kModuleError;return J.MongoCrypt}constructor(J,Z){this[KP]=!1,this._client=J,this._bypassEncryption=Z.bypassAutoEncryption===!0,this._keyVaultNamespace=Z.keyVaultNamespace||"admin.datakeys",this._keyVaultClient=Z.keyVaultClient||J,this._metaDataClient=Z.metadataClient||J,this._proxyOptions=Z.proxyOptions||{},this._tlsOptions=Z.tlsOptions||{},this._kmsProviders=Z.kmsProviders||{};const $={cryptoCallbacks:Gl};if(Z.schemaMap)$.schemaMap=Buffer.isBuffer(Z.schemaMap)?Z.schemaMap:E7.serialize(Z.schemaMap);if(Z.encryptedFieldsMap)$.encryptedFieldsMap=Buffer.isBuffer(Z.encryptedFieldsMap)?Z.encryptedFieldsMap:E7.serialize(Z.encryptedFieldsMap);if($.kmsProviders=!Buffer.isBuffer(this._kmsProviders)?E7.serialize(this._kmsProviders):this._kmsProviders,Z.options?.logger)$.logger=Z.options.logger;if(Z.extraOptions&&Z.extraOptions.cryptSharedLibPath)$.cryptSharedLibPath=Z.extraOptions.cryptSharedLibPath;if(Z.bypassQueryAnalysis)$.bypassQueryAnalysis=Z.bypassQueryAnalysis;if(this._bypassMongocryptdAndCryptShared=this._bypassEncryption||!!Z.bypassQueryAnalysis,Z.extraOptions&&Z.extraOptions.cryptSharedLibSearchPaths)$.cryptSharedLibSearchPaths=Z.extraOptions.cryptSharedLibSearchPaths;else if(!this._bypassMongocryptdAndCryptShared)$.cryptSharedLibSearchPaths=["$SYSTEM"];const X=EZ.getMongoCrypt();if(this._mongocrypt=new X($),this._contextCounter=0,Z.extraOptions&&Z.extraOptions.cryptSharedLibRequired&&!this.cryptSharedLibVersionInfo)throw new Fl.MongoCryptInvalidArgumentError("`cryptSharedLibRequired` set but no crypt_shared library loaded");if(!this._bypassMongocryptdAndCryptShared&&!this.cryptSharedLibVersionInfo){this._mongocryptdManager=new ql.MongocryptdManager(Z.extraOptions);const Y={serverSelectionTimeoutMS:1e4};if(Z.extraOptions==null||typeof Z.extraOptions.mongocryptdURI!=="string")Y.family=4;this._mongocryptdClient=new Ql.MongoClient(this._mongocryptdManager.uri,Y)}}async init(){if(this._bypassMongocryptdAndCryptShared||this.cryptSharedLibVersionInfo)return;if(!this._mongocryptdManager)throw new BZ.MongoRuntimeError("Reached impossible state: mongocryptdManager is undefined when neither bypassSpawn nor the shared lib are specified.");if(!this._mongocryptdClient)throw new BZ.MongoRuntimeError("Reached impossible state: mongocryptdClient is undefined when neither bypassSpawn nor the shared lib are specified.");if(!this._mongocryptdManager.bypassSpawn)await this._mongocryptdManager.spawn();try{return await this._mongocryptdClient.connect()}catch(J){const{message:Z}=J;if(Z&&(Z.match(/timed out after/)||Z.match(/ENOTFOUND/)))throw new BZ.MongoRuntimeError("Unable to connect to `mongocryptd`, please make sure it is running or in your PATH for auto-spawn",{cause:J});throw J}}async teardown(J){await this._mongocryptdClient?.close(J)}async encrypt(J,Z,$={}){if(this._bypassEncryption)return Z;const X=Buffer.isBuffer(Z)?Z:E7.serialize(Z,$),Y=this._mongocrypt.makeEncryptionContext(Kl.MongoDBCollectionNamespace.fromString(J).db,X);return Y.id=this._contextCounter++,Y.ns=J,Y.document=Z,new QP.StateMachine({promoteValues:!1,promoteLongs:!1,proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}).execute(this,Y)}async decrypt(J,Z={}){const $=Buffer.isBuffer(J)?J:E7.serialize(J,Z),X=this._mongocrypt.makeDecryptionContext($);X.id=this._contextCounter++;const Y=new QP.StateMachine({...Z,proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),Q=this[GP],K=await Y.execute(this,X);if(Q)FP(K,J);return K}async askForKMSCredentials(){return Wl.refreshKMSCredentials(this._kmsProviders)}get cryptSharedLibVersionInfo(){return this._mongocrypt.cryptSharedLibVersionInfo}static get libmongocryptVersion(){return EZ.getMongoCrypt().libmongocryptVersion}}qP.AutoEncrypter=EZ;KP=GP});var MP=V((zP)=>{Object.defineProperty(zP,"__esModule",{value:!0});zP.Encrypter=void 0;var Vl=import.meta.require("util"),zl=MQ(),Ul=v1(),Ml=H6(),HP=E(),jl=C4(),q9=Symbol("internalClient");class VP{constructor(J,Z,$){if(typeof $.autoEncryption!=="object")throw new HP.MongoInvalidArgumentError('Option "autoEncryption" must be specified');if(this[q9]=null,this.bypassAutoEncryption=!!$.autoEncryption.bypassAutoEncryption,this.needsConnecting=!1,$.maxPoolSize===0&&$.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=J;else if($.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=this.getInternalClient(J,Z,$);if(this.bypassAutoEncryption)$.autoEncryption.metadataClient=void 0;else if($.maxPoolSize===0)$.autoEncryption.metadataClient=J;else $.autoEncryption.metadataClient=this.getInternalClient(J,Z,$);if($.proxyHost)$.autoEncryption.proxyOptions={proxyHost:$.proxyHost,proxyPort:$.proxyPort,proxyUsername:$.proxyUsername,proxyPassword:$.proxyPassword};this.autoEncrypter=new zl.AutoEncrypter(J,$.autoEncryption)}getInternalClient(J,Z,$){let X=this[q9];if(X==null){const Y={};for(let Q of[...Object.getOwnPropertyNames($),...Object.getOwnPropertySymbols($)]){if(["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(Q))continue;Reflect.set(Y,Q,Reflect.get($,Q))}Y.minPoolSize=0,X=new jl.MongoClient(Z,Y),this[q9]=X;for(let Q of Ul.MONGO_CLIENT_EVENTS)for(let K of J.listeners(Q))X.on(Q,K);J.on("newListener",(Q,K)=>{X?.on(Q,K)}),this.needsConnecting=!0}return X}async connectInternalClient(){const J=this[q9];if(this.needsConnecting&&J!=null)this.needsConnecting=!1,await J.connect()}closeCallback(J,Z,$){Vl.callbackify(this.close.bind(this))(J,Z,$)}async close(J,Z){const $=await this.autoEncrypter.teardown(!!Z).catch((Y)=>Y),X=this[q9];if(X!=null&&J!==X)return X.close(Z);if($)throw $}static checkForMongoCrypt(){if("kModuleError"in Ml.getMongoDBClientEncryption())throw new HP.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project")}}zP.Encrypter=VP});var RQ=V((wP)=>{var jP=function(J){const Z=Object.values(wP.SeverityLevel),$=J?.toLowerCase();if($!=null&&Z.includes($))return $;return null},h7=function(J){return{write:(Z)=>{J.write(Ll.inspect(Z,{compact:!0,breakLength:Infinity}),"utf-8");return}}},wl=function({MONGODB_LOG_PATH:J},{mongodbLogPath:Z}){if(typeof Z==="string"&&/^stderr$/i.test(Z))return h7(process.stderr);if(typeof Z==="string"&&/^stdout$/i.test(Z))return h7(process.stdout);if(typeof Z==="object"&&typeof Z?.write==="function")return Z;if(J&&/^stderr$/i.test(J))return h7(process.stderr);if(J&&/^stdout$/i.test(J))return h7(process.stdout);return h7(process.stderr)},C7=function(J,Z,$){return jP(J)??jP(Z)??$},Rl=function(J,Z){const $=wP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(J),X=wP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(Z);return $<X?-1:$>X?1:0},AQ=function(J,Z){const $=Al.EJSON.stringify(J);return Z!==0&&$.length>Z?`${$.slice(0,Z)}...`:$},Dl=function(J){const Z=J;return Z.toLog!==void 0&&typeof Z.toLog==="function"},jQ=function(J,Z){J.commandName=Z.commandName,J.requestId=Z.requestId,J.driverConnectionId=Z?.connectionId;const{host:$,port:X}=wQ.HostAddress.fromString(Z.address).toHostPort();if(J.serverHost=$,J.serverPort=X,Z?.serviceId)J.serviceId=Z.serviceId.toHexString();return J},z6=function(J,Z){const{host:$,port:X}=wQ.HostAddress.fromString(Z.address).toHostPort();return J.serverHost=$,J.serverPort=X,J},Pl=function(J,Z=wP.DEFAULT_MAX_DOCUMENT_LENGTH){let $=Object.create(null);switch(J.name){case D0.COMMAND_STARTED:return $=jQ($,J),$.message="Command started",$.command=AQ(J.command,Z),$.databaseName=J.databaseName,$;case D0.COMMAND_SUCCEEDED:return $=jQ($,J),$.message="Command succeeded",$.durationMS=J.duration,$.reply=AQ(J.reply,Z),$;case D0.COMMAND_FAILED:return $=jQ($,J),$.message="Command failed",$.durationMS=J.duration,$.failure=J.failure,$;case D0.CONNECTION_POOL_CREATED:if($=z6($,J),$.message="Connection pool created",J.options){const{maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}=J.options;$={...$,maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}}return $;case D0.CONNECTION_POOL_READY:return $=z6($,J),$.message="Connection pool ready",$;case D0.CONNECTION_POOL_CLEARED:if($=z6($,J),$.message="Connection pool cleared",J.serviceId?._bsontype==="ObjectId")$.serviceId=J.serviceId.toHexString();return $;case D0.CONNECTION_POOL_CLOSED:return $=z6($,J),$.message="Connection pool closed",$;case D0.CONNECTION_CREATED:return $=z6($,J),$.message="Connection created",$.driverConnectionId=J.connectionId,$;case D0.CONNECTION_READY:return $=z6($,J),$.message="Connection ready",$.driverConnectionId=J.connectionId,$;case D0.CONNECTION_CLOSED:switch($=z6($,J),$.message="Connection closed",$.driverConnectionId=J.connectionId,J.reason){case"stale":$.reason="Connection became stale because the pool was cleared";break;case"idle":$.reason="Connection has been available but unused for longer than the configured max idle time";break;case"error":if($.reason="An error occurred while using the connection",J.error)$.error=J.error;break;case"poolClosed":$.reason="Connection pool was closed";break;default:$.reason=`Unknown close reason: ${J.reason}`}return $;case D0.CONNECTION_CHECK_OUT_STARTED:return $=z6($,J),$.message="Connection checkout started",$;case D0.CONNECTION_CHECK_OUT_FAILED:switch($=z6($,J),$.message="Connection checkout failed",J.reason){case"poolClosed":$.reason="Connection pool was closed";break;case"timeout":$.reason="Wait queue timeout elapsed without a connection becoming available";break;case"connectionError":if($.reason="An error occurred while trying to establish a new connection",J.error)$.error=J.error;break;default:$.reason=`Unknown close reason: ${J.reason}`}return $;case D0.CONNECTION_CHECKED_OUT:return $=z6($,J),$.message="Connection checked out",$.driverConnectionId=J.connectionId,$;case D0.CONNECTION_CHECKED_IN:return $=z6($,J),$.message="Connection checked in",$.driverConnectionId=J.connectionId,$;default:for(let[X,Y]of Object.entries(J))if(Y!=null)$[X]=Y}return $};Object.defineProperty(wP,"__esModule",{value:!0});wP.MongoLogger=wP.stringifyWithMaxLen=wP.createStdioLogger=wP.MongoLoggableComponent=wP.SEVERITY_LEVEL_MAP=wP.DEFAULT_MAX_DOCUMENT_LENGTH=wP.SeverityLevel=void 0;var Al=L5(),Ll=import.meta.require("util"),D0=v1(),wQ=y();wP.SeverityLevel=Object.freeze({EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warn",NOTICE:"notice",INFORMATIONAL:"info",DEBUG:"debug",TRACE:"trace",OFF:"off"});wP.DEFAULT_MAX_DOCUMENT_LENGTH=1000;class AP extends Map{constructor(J){const Z=[];for(let[$,X]of J)Z.push([X,$]);Z.push(...J);super(Z)}getNumericSeverityLevel(J){return this.get(J)}getSeverityLevelName(J){return this.get(J)}}wP.SEVERITY_LEVEL_MAP=new AP([[wP.SeverityLevel.OFF,(-Infinity)],[wP.SeverityLevel.EMERGENCY,0],[wP.SeverityLevel.ALERT,1],[wP.SeverityLevel.CRITICAL,2],[wP.SeverityLevel.ERROR,3],[wP.SeverityLevel.WARNING,4],[wP.SeverityLevel.NOTICE,5],[wP.SeverityLevel.INFORMATIONAL,6],[wP.SeverityLevel.DEBUG,7],[wP.SeverityLevel.TRACE,8]]);wP.MongoLoggableComponent=Object.freeze({COMMAND:"command",TOPOLOGY:"topology",SERVER_SELECTION:"serverSelection",CONNECTION:"connection",CLIENT:"client"});wP.createStdioLogger=h7;wP.stringifyWithMaxLen=AQ;class LP{constructor(J){this.error=this.log.bind(this,"error"),this.warn=this.log.bind(this,"warn"),this.info=this.log.bind(this,"info"),this.debug=this.log.bind(this,"debug"),this.trace=this.log.bind(this,"trace"),this.componentSeverities=J.componentSeverities,this.maxDocumentLength=J.maxDocumentLength,this.logDestination=J.logDestination}log(J,Z,$){if(Rl(J,this.componentSeverities[Z])>0)return;let X={t:new Date,c:Z,s:J};if(typeof $==="string")X.message=$;else if(typeof $==="object")if(Dl($))X={...X,...$.toLog()};else X={...X,...Pl($,this.maxDocumentLength)};this.logDestination.write(X)}static resolveOptions(J,Z){const $={...J,...Z,mongodbLogPath:wl(J,Z)},X=C7($.mongodbLogComponentSeverities?.default,$.MONGODB_LOG_ALL,wP.SeverityLevel.OFF);return{componentSeverities:{command:C7($.mongodbLogComponentSeverities?.command,$.MONGODB_LOG_COMMAND,X),topology:C7($.mongodbLogComponentSeverities?.topology,$.MONGODB_LOG_TOPOLOGY,X),serverSelection:C7($.mongodbLogComponentSeverities?.serverSelection,$.MONGODB_LOG_SERVER_SELECTION,X),connection:C7($.mongodbLogComponentSeverities?.connection,$.MONGODB_LOG_CONNECTION,X),client:C7($.mongodbLogComponentSeverities?.client,$.MONGODB_LOG_CLIENT,X),default:X},maxDocumentLength:$.mongodbLogMaxDocumentLength??wQ.parseUnsignedInteger($.MONGODB_LOG_MAX_DOCUMENT_LENGTH)??1000,logDestination:$.mongodbLogPath}}}wP.MongoLogger=LP});var EP=V((NP)=>{Object.defineProperty(NP,"__esModule",{value:!0});NP.MongoCR=void 0;var PP=import.meta.require("crypto"),Bl=E(),TP=y(),El=Y8();class IP extends El.AuthProvider{async auth(J){const{connection:Z,credentials:$}=J;if(!$)throw new Bl.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y,source:Q}=$,{nonce:K}=await Z.commandAsync(TP.ns(`${Q}.\$cmd`),{getnonce:1},void 0),G=PP.createHash("md5").update(`${X}:mongo:${Y}`,"utf8").digest("hex"),F=PP.createHash("md5").update(`${K}${X}${G}`,"utf8").digest("hex"),q={authenticate:1,user:X,nonce:K,key:F};await Z.commandAsync(TP.ns(`${Q}.\$cmd`),q,void 0)}}NP.MongoCR=IP});var OP=V((hP)=>{async function vl(J){function Z($){if(!$.AccessKeyId||!$.SecretAccessKey||!$.Token)throw new h4.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials");return new Ol.MongoCredentials({username:$.AccessKeyId,password:$.SecretAccessKey,source:J.source,mechanism:kl.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:$.Token}})}if(S4.credentialProvider??=CZ.getAwsCredentialProvider(),"kModuleError"in S4.credentialProvider){if(DQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)return Z(await G8.request(`${fl}${DQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`));const $=await G8.request(`${TQ}/latest/api/token`,{method:"PUT",json:!1,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}}),X=await G8.request(`${TQ}/${CP}`,{json:!1,headers:{"X-aws-ec2-metadata-token":$}}),Y=await G8.request(`${TQ}/${CP}/${X}`,{headers:{"X-aws-ec2-metadata-token":$}});return Z(Y)}else{let{AWS_STS_REGIONAL_ENDPOINTS:$="",AWS_REGION:X=""}=DQ.env;$=$.toLowerCase(),X=X.toLowerCase();const Y=X.length!==0&&$.length!==0,Q=$==="regional"||$==="legacy"&&!yl.has(X),K=Y&&Q?S4.credentialProvider.fromNodeProviderChain({clientConfig:{region:X}}):S4.credentialProvider.fromNodeProviderChain();try{const G=await K();return Z({AccessKeyId:G.accessKeyId,SecretAccessKey:G.secretAccessKey,Token:G.sessionToken,Expiration:G.expiration})}catch(G){throw new h4.MongoAWSError(G.message)}}}var xl=function(J){const Z=J.split(".");if(Z.length===1||Z[1]==="amazonaws")return"us-east-1";return Z[1]};Object.defineProperty(hP,"__esModule",{value:!0});hP.MongoDBAWS=void 0;var Cl=import.meta.require("crypto"),DQ=import.meta.require("process"),hl=import.meta.require("util"),PQ=H1(),CZ=H6(),h4=E(),G8=y(),Sl=Y8(),Ol=KZ(),kl=O6(),yl=new Set(["ap-northeast-1","ap-south-1","ap-southeast-1","ap-southeast-2","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),_l=110,fl="http://169.254.170.2",TQ="http://169.254.169.254",CP="/latest/meta-data/iam/security-credentials",IQ={useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1};class S4 extends Sl.AuthProvider{constructor(){super();this.randomBytesAsync=hl.promisify(Cl.randomBytes)}async auth(J){const{connection:Z}=J;if(!J.credentials)throw new h4.MongoMissingCredentialsError("AuthContext must provide credentials.");if("kModuleError"in CZ.aws4)throw CZ.aws4.kModuleError;const{sign:$}=CZ.aws4;if(G8.maxWireVersion(Z)<9)throw new h4.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later");if(!J.credentials.username)J.credentials=await vl(J.credentials);const{credentials:X}=J,Y=X.username,Q=X.password,K=X.mechanismProperties.AWS_SESSION_TOKEN,G=Y&&Q&&K?{accessKeyId:Y,secretAccessKey:Q,sessionToken:K}:Y&&Q?{accessKeyId:Y,secretAccessKey:Q}:void 0,F=X.source,q=await this.randomBytesAsync(32),W={saslStart:1,mechanism:"MONGODB-AWS",payload:PQ.serialize({r:q,p:_l},IQ)},H=await Z.commandAsync(G8.ns(`${F}.\$cmd`),W,void 0),U=PQ.deserialize(H.payload.buffer,IQ),j=U.h,z=U.s.buffer;if(z.length!==64)throw new h4.MongoRuntimeError(`Invalid server nonce length ${z.length}, expected 64`);if(!G8.ByteUtils.equals(z.subarray(0,q.byteLength),q))throw new h4.MongoRuntimeError("Server nonce does not begin with client nonce");if(j.length<1||j.length>255||j.indexOf("..")!==-1)throw new h4.MongoRuntimeError(`Server returned an invalid host: "${j}"`);const A="Action=GetCallerIdentity&Version=2011-06-15",T=$({method:"POST",host:j,region:xl(U.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":A.length,"X-MongoDB-Server-Nonce":G8.ByteUtils.toBase64(z),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:A},G),w={a:T.headers.Authorization,d:T.headers["X-Amz-Date"]};if(K)w.t=K;const N={saslContinue:1,conversationId:1,payload:PQ.serialize(w,IQ)};await Z.commandAsync(G8.ns(`${F}.\$cmd`),N,void 0)}}S4.credentialProvider=null;hP.MongoDBAWS=S4});var BQ=V((yP)=>{var NQ=function(J){return{saslStart:1,mechanism:ml.AuthMechanism.MONGODB_OIDC,payload:bl.BSON.serialize({jwt:J})}};Object.defineProperty(yP,"__esModule",{value:!0});yP.commandDocument=yP.ServiceWorkflow=void 0;var bl=L5(),gl=y(),ml=O6();class kP{async execute(J,Z){const $=await this.getToken(Z),X=NQ($);return J.commandAsync(gl.ns(Z.source),X,void 0)}async speculativeAuth(J){const Z=await this.getToken(J),$=NQ(Z);return $.db=J.source,{speculativeAuthenticate:$}}}yP.ServiceWorkflow=kP;yP.commandDocument=NQ});var bP=V((vP)=>{Object.defineProperty(vP,"__esModule",{value:!0});vP.AwsServiceWorkflow=void 0;var dl=import.meta.require("fs"),cl=E(),pl=BQ(),ll="AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.";class fP extends pl.ServiceWorkflow{constructor(){super()}async getToken(){const J=process.env.AWS_WEB_IDENTITY_TOKEN_FILE;if(!J)throw new cl.MongoAWSError(ll);return dl.promises.readFile(J,"utf8")}}vP.AwsServiceWorkflow=fP});var hZ=V((uP)=>{Object.defineProperty(uP,"__esModule",{value:!0});uP.Cache=uP.ExpiringCacheEntry=void 0;var al=300000;class gP{constructor(J){this.expiration=this.expirationTime(J)}isValid(){return this.expiration-Date.now()>al}expirationTime(J){return Date.now()+J*1000}}uP.ExpiringCacheEntry=gP;class mP{constructor(){this.entries=new Map}clear(){this.entries.clear()}hashedCacheKey(J,Z,$){return JSON.stringify([J,Z,$])}}uP.Cache=mP});var iP=V((lP)=>{Object.defineProperty(lP,"__esModule",{value:!0});lP.AzureTokenCache=lP.AzureTokenEntry=void 0;var cP=hZ();class EQ extends cP.ExpiringCacheEntry{constructor(J,Z){super(Z);this.token=J}}lP.AzureTokenEntry=EQ;class pP extends cP.Cache{addEntry(J,Z){const $=new EQ(Z.access_token,Z.expires_in);return this.entries.set(J,$),$}cacheKey(J){return J}deleteEntry(J){this.entries.delete(J)}getEntry(J){return this.entries.get(J)}}lP.AzureTokenCache=pP});var oP=V((tP)=>{async function $a(J){const Z=`${ol}&resource=${J}`;return await nl.request(Z,{json:!0,headers:el})}var Xa=function(J){if(J==null||typeof J!=="object")return!1;return"access_token"in J&&"expires_in"in J};Object.defineProperty(tP,"__esModule",{value:!0});tP.AzureServiceWorkflow=void 0;var sP=E(),nl=y(),tl=iP(),rl=BQ(),ol="http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01",el=Object.freeze({Metadata:"true",Accept:"application/json"}),Ja="Azure endpoint did not return a value with only access_token and expires_in properties",Za="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class nP extends rl.ServiceWorkflow{constructor(){super(...arguments);this.cache=new tl.AzureTokenCache}async getToken(J){const Z=J?.mechanismProperties.TOKEN_AUDIENCE;if(!Z)throw new sP.MongoAzureError(Za);let $;const X=this.cache.getEntry(Z);if(X?.isValid())$=X.token;else{this.cache.deleteEntry(Z);const Y=await $a(Z);if(!Xa(Y))throw new sP.MongoAzureError(Ja);this.cache.addEntry(Z,Y),$=Y.access_token}return $}}tP.AzureServiceWorkflow=nP});var YT=V(($T)=>{var eP=function(J){let Z=Promise.resolve();return async($,X)=>{return await Z,Z=Z.then(()=>J($,X)),Z}},Ga=function(J,Z){let $=W9.get(J),X=W9.get(Z??JT);if($==null)O4++,$=O4,W9.set(J,O4);if(X==null&&Z)O4++,X=O4,W9.set(Z,O4);return`${$}-${X}`};Object.defineProperty($T,"__esModule",{value:!0});$T.CallbackLockCache=void 0;var Ya=E(),Qa=hZ(),Ka="Auth mechanism property REQUEST_TOKEN_CALLBACK is required.",O4=0,JT=async()=>({accessToken:"test"}),W9=new WeakMap;W9.set(JT,O4);class ZT extends Qa.Cache{getEntry(J,Z){const $=Z.mechanismProperties.REQUEST_TOKEN_CALLBACK,X=Z.mechanismProperties.REFRESH_TOKEN_CALLBACK;if(!$)throw new Ya.MongoInvalidArgumentError(Ka);const Y=Ga($,X),Q=this.cacheKey(J.address,Z.username,Y),K=this.entries.get(Q);if(K)return K;return this.addEntry(Q,Y,$,X)}addEntry(J,Z,$,X){const Y={requestCallback:eP($),refreshCallback:X?eP(X):void 0,callbackHash:Z};return this.entries.set(J,Y),Y}cacheKey(J,Z,$){return this.hashedCacheKey(J,Z,$)}}$T.CallbackLockCache=ZT});var qT=V((GT)=>{Object.defineProperty(GT,"__esModule",{value:!0});GT.TokenEntryCache=GT.TokenEntry=void 0;var QT=hZ(),Fa=0;class CQ extends QT.ExpiringCacheEntry{constructor(J,Z,$){super($);this.tokenResult=J,this.serverInfo=Z}}GT.TokenEntry=CQ;class KT extends QT.Cache{addEntry(J,Z,$,X,Y){const Q=new CQ(X,Y,X.expiresInSeconds??Fa);return this.entries.set(this.cacheKey(J,Z,$),Q),Q}deleteEntry(J,Z,$){this.entries.delete(this.cacheKey(J,Z,$))}getEntry(J,Z,$){return this.entries.get(this.cacheKey(J,Z,$))}deleteExpiredEntries(){for(let[J,Z]of this.entries)if(!Z.isValid())this.entries.delete(J)}cacheKey(J,Z,$){return this.hashedCacheKey(J,Z,$)}}GT.TokenEntryCache=KT});var jT=V((UT)=>{var ja=function(J,Z){if(Z!=null&&typeof Z==="number")return{saslContinue:1,conversationId:Z,payload:new k4.Binary(k4.BSON.serialize({jwt:J}))};return{saslStart:1,mechanism:VT.AuthMechanism.MONGODB_OIDC,payload:new k4.Binary(k4.BSON.serialize({jwt:J}))}},Aa=function(J){if(J==null||typeof J!=="object")return!0;if(!("accessToken"in J))return!0;return!Object.getOwnPropertyNames(J).every((Z)=>Ua.includes(Z))},HT=function(J){const Z={};if(J.username)Z.n=J.username;return{saslStart:1,autoAuthorize:1,mechanism:VT.AuthMechanism.MONGODB_OIDC,payload:new k4.Binary(k4.BSON.serialize(Z))}};Object.defineProperty(UT,"__esModule",{value:!0});UT.CallbackWorkflow=void 0;var k4=L5(),hQ=E(),WT=y(),VT=O6(),Wa=YT(),Ha=qT(),Va=0,za=300,Ua=["accessToken","expiresInSeconds","refreshToken"],Ma="User provided OIDC callbacks must return a valid object with an accessToken.";class zT{constructor(){this.cache=new Ha.TokenEntryCache,this.callbackCache=new Wa.CallbackLockCache}async speculativeAuth(J){const Z=HT(J);return Z.db=J.source,{speculativeAuthenticate:Z}}async execute(J,Z,$,X){const{requestCallback:Y,refreshCallback:Q,callbackHash:K}=this.callbackCache.getEntry(J,Z),G=this.cache.getEntry(J.address,Z.username,K);let F;if(G)if(G.isValid()&&!$)F=await this.finishAuthentication(J,Z,G.tokenResult,X?.speculativeAuthenticate?.conversationId);else{const q=await this.fetchAccessToken(J,Z,G.serverInfo,$,K,Y,Q);try{F=await this.finishAuthentication(J,Z,q,$?void 0:X?.speculativeAuthenticate?.conversationId)}catch(W){if($&&W instanceof hQ.MongoError&&W.code===hQ.MONGODB_ERROR_CODES.Reauthenticate)this.cache.deleteEntry(J.address,Z.username,K),F=await this.execute(J,Z,$);else throw W}}else{const q=await this.startAuthentication(J,Z,$,X),W=q.conversationId,H=k4.BSON.deserialize(q.payload.buffer),U=await this.fetchAccessToken(J,Z,H,$,K,Y,Q);F=await this.finishAuthentication(J,Z,U,W)}return F}async startAuthentication(J,Z,$,X){let Y;if(!$&&X?.speculativeAuthenticate)Y=X.speculativeAuthenticate;else Y=await J.commandAsync(WT.ns(Z.source),HT(Z),void 0);return Y}async finishAuthentication(J,Z,$,X){return await J.commandAsync(WT.ns(Z.source),ja($.accessToken,X),void 0)}async fetchAccessToken(J,Z,$,X,Y,Q,K){const G=this.cache.getEntry(J.address,Z.username,Y);let F;const q={timeoutSeconds:za,version:Va};if(G){if(G.isValid()&&!X)return G.tokenResult;if(K)q.refreshToken=G.tokenResult.refreshToken,F=await K($,q);else F=await Q($,q)}else F=await Q($,q);if(Aa(F))throw this.cache.deleteEntry(J.address,Z.username,Y),new hQ.MongoMissingCredentialsError(Ma);return this.cache.deleteExpiredEntries(),this.cache.addEntry(J.address,Z.username||"",Y,F,$),F}}UT.CallbackWorkflow=zT});var TT=V((DT)=>{var AT=function(J){const{credentials:Z}=J;if(!Z)throw new wT.MongoMissingCredentialsError(Pa);return Z},LT=function(J){const Z=J.mechanismProperties.PROVIDER_NAME,$=DT.OIDC_WORKFLOWS.get(Z||"callback");if(!$)throw new wT.MongoInvalidArgumentError(`Could not load workflow for provider ${J.mechanismProperties.PROVIDER_NAME}`);return $};Object.defineProperty(DT,"__esModule",{value:!0});DT.MongoDBOIDC=DT.OIDC_WORKFLOWS=void 0;var wT=E(),La=Y8(),wa=bP(),Ra=oP(),Da=jT(),Pa="AuthContext must provide credentials.";DT.OIDC_WORKFLOWS=new Map;DT.OIDC_WORKFLOWS.set("callback",new Da.CallbackWorkflow);DT.OIDC_WORKFLOWS.set("aws",new wa.AwsServiceWorkflow);DT.OIDC_WORKFLOWS.set("azure",new Ra.AzureServiceWorkflow);class RT extends La.AuthProvider{constructor(){super()}async auth(J){const{connection:Z,reauthenticating:$,response:X}=J,Y=AT(J);await LT(Y).execute(Z,Y,$,X)}async prepare(J,Z){const $=AT(Z),Y=await LT($).speculativeAuth($);return{...J,...Y}}}DT.MongoDBOIDC=RT});var ET=V((NT)=>{Object.defineProperty(NT,"__esModule",{value:!0});NT.Plain=void 0;var Ta=H1(),Ia=E(),Na=y(),Ba=Y8();class IT extends Ba.AuthProvider{async auth(J){const{connection:Z,credentials:$}=J;if(!$)throw new Ia.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y}=$,K={saslStart:1,mechanism:"PLAIN",payload:new Ta.Binary(Buffer.from(`\0${X}\0${Y}`)),autoAuthorize:1};await Z.commandAsync(Na.ns("$external.$cmd"),K,void 0)}}NT.Plain=IT});var ST=V((D61,hT)=>{var F8=function(J,Z){if(!(this instanceof F8))return new F8(J,Z);this.length=0,this.updates=[],this.path=new Uint16Array(4),this.pages=new Array(32768),this.maxPages=this.pages.length,this.level=0,this.pageSize=J||1024,this.deduplicate=Z?Z.deduplicate:null,this.zeros=this.deduplicate?SZ(this.deduplicate.length):null},Ea=function(J,Z){while(J.maxPages<Z){var $=J.pages;J.pages=new Array(32768),J.pages[0]=$,J.level++,J.maxPages*=32768}},Ca=function(J,Z){if(J.length===Z)return J;if(J.length>Z)return J.slice(0,Z);var $=SZ(Z);return J.copy($),$},SZ=function(J){if(Buffer.alloc)return Buffer.alloc(J);var Z=new Buffer(J);return Z.fill(0),Z},ha=function(J){var Z=Buffer.allocUnsafe?Buffer.allocUnsafe(J.length):new Buffer(J.length);return J.copy(Z),Z},CT=function(J,Z){this.offset=J*Z.length,this.buffer=Z,this.updated=!1,this.deduplicate=0},Sa=function(J,Z){J=(J-(Z[0]=J&32767))/32768,J=(J-(Z[1]=J&32767))/32768,Z[3]=(J-(Z[2]=J&32767))/32768&32767};hT.exports=F8;F8.prototype.updated=function(J){while(this.deduplicate&&J.buffer[J.deduplicate]===this.deduplicate[J.deduplicate])if(J.deduplicate++,J.deduplicate===this.deduplicate.length){if(J.deduplicate=0,J.buffer.equals&&J.buffer.equals(this.deduplicate))J.buffer=this.deduplicate;break}if(J.updated||!this.updates)return;J.updated=!0,this.updates.push(J)};F8.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var J=this.updates.pop();return J.updated=!1,J};F8.prototype._array=function(J,Z){if(J>=this.maxPages){if(Z)return;Ea(this,J)}Sa(J,this.path);var $=this.pages;for(var X=this.level;X>0;X--){var Y=this.path[X],Q=$[Y];if(!Q){if(Z)return;Q=$[Y]=new Array(32768)}$=Q}return $};F8.prototype.get=function(J,Z){var $=this._array(J,Z),X=this.path[0],Y=$&&$[X];if(!Y&&!Z){if(Y=$[X]=new CT(J,SZ(this.pageSize)),J>=this.length)this.length=J+1}if(Y&&Y.buffer===this.deduplicate&&this.deduplicate&&!Z)Y.buffer=ha(Y.buffer),Y.deduplicate=0;return Y};F8.prototype.set=function(J,Z){var $=this._array(J,!1),X=this.path[0];if(J>=this.length)this.length=J+1;if(!Z||this.zeros&&Z.equals&&Z.equals(this.zeros)){$[X]=void 0;return}if(this.deduplicate&&Z.equals&&Z.equals(this.deduplicate))Z=this.deduplicate;var Y=$[X],Q=Ca(Z,this.pageSize);if(Y)Y.buffer=Q;else $[X]=new CT(J,Q)};F8.prototype.toBuffer=function(){var J=new Array(this.length),Z=SZ(this.pageSize),$=0;while($<J.length){var X=this._array($,!0);for(var Y=0;Y<32768&&$<J.length;Y++)J[$++]=X&&X[Y]?X[Y].buffer:Z}return Buffer.concat(J)}});var kT=V((P61,OT)=>{var p8=function(J){if(!(this instanceof p8))return new p8(J);if(!J)J={};if(Buffer.isBuffer(J))J={buffer:J};if(this.pageOffset=J.pageOffset||0,this.pageSize=J.pageSize||1024,this.pages=J.pages||Oa(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,!ya(this.pageSize))throw new Error("The page size should be a power of two");if(this._trackUpdates=!!J.trackUpdates,this._pageMask=this.pageSize-1,J.buffer){for(var Z=0;Z<J.buffer.length;Z+=this.pageSize)this.pages.set(Z/this.pageSize,J.buffer.slice(Z,Z+this.pageSize));this.byteLength=J.buffer.length,this.length=8*this.byteLength}},ka=function(J){if(Buffer.alloc)return Buffer.alloc(J);var Z=new Buffer(J);return Z.fill(0),Z},ya=function(J){return!(J&J-1)},Oa=ST();OT.exports=p8;p8.prototype.get=function(J){var Z=J&7,$=(J-Z)/8;return!!(this.getByte($)&128>>Z)};p8.prototype.getByte=function(J){var Z=J&this._pageMask,$=(J-Z)/this.pageSize,X=this.pages.get($,!0);return X?X.buffer[Z+this.pageOffset]:0};p8.prototype.set=function(J,Z){var $=J&7,X=(J-$)/8,Y=this.getByte(X);return this.setByte(X,Z?Y|128>>$:Y&(255^128>>$))};p8.prototype.toBuffer=function(){var J=ka(this.pages.length*this.pageSize);for(var Z=0;Z<this.pages.length;Z++){var $=this.pages.get(Z,!0),X=Z*this.pageSize;if($)$.buffer.copy(J,X,this.pageOffset,this.pageOffset+this.pageSize)}return J};p8.prototype.setByte=function(J,Z){var $=J&this._pageMask,X=(J-$)/this.pageSize,Y=this.pages.get(X,!1);if($+=this.pageOffset,Y.buffer[$]===Z)return!1;if(Y.buffer[$]=Z,J>=this.byteLength)this.byteLength=J+1,this.length=this.byteLength*8;if(this._trackUpdates)this.pages.updated(Y);return!0}});var _T=V((yT)=>{Object.defineProperty(yT,"__esModule",{value:!0});var _a=import.meta.require("zlib");yT.default=_a.gunzipSync(Buffer.from("H4sIAAAAAAACA+3dTYgcWR0A8FfTnekQ47aCkBxiZpYV8RhwYQM7bA/ksoLgSRD0IOSiePAkLrowvWSF4CkHEW856MlTQHA9RKZ1ZJODsEcVcTOyhxUEbXdXtpPp1PNVV39Uz4czEyaTVOb3G6a7XtWrr/devX49/+qekG2Go7Aa2jHGyozG+Dmrzi2mP/xb/zMhLI+WlRm2byubm2h0ivVi7BYzusVjuNkt1l9uFWsutWL8OP4rzV9KeXdsKx1HFhbSc6vIG0fKBZ14UNfLFS6FRrGRtXh98ZvphL/x4uLV/IOzaat/vlikv/TixavxR8PQitfPpKNbffXSwgtr8fV07GX+L1967urwg5W0/t0LV37y/oWFlQtX8ping7reXE3LT680r9yPKyn/3Vn64SwdVs6m/KN0yHrp9D+RvXsqpe6MSia5mH6LSog//Xq/++O74YVTjfDFWK2VIuNSemiPppphcVYeyzcudKqFMiq6cs3vVkrzlcnE0mxeZ1Jf2ZXsSvk8TmRZWYdpalydxd5bc8eUkt1wlEbtqTVLr8XQLFpKMb+dpr9SbSOt4ozTgXUq8+Ihm8cTt0shtCvT6dwao6sxPf5ydmU208/Z0yH8IZtlvZi3e5fG12yn3PLSdPvnQ7vsK9rxyKpqevzFZGVfu3YHezvbnbvit9Xdm5fGbf/MZ7PuuNrTjLJnaofH7gm0h+VKU/g/tdUocrer3cO4yOcuycGoyLrba6Ta+lrlnkZ5ntvWCrfV39wLTuNg9QvsvHb37P8BAGCP0eNTOH5szf154JmnNQIcn7b+FziyAfX4eWnn+C6Lm4M0mj31ubkViiDV4WLvs56qN54xGS3HWER5su6nQtZubl9tcY/4atbr9e5kWewew/g2a8fdy2Yaa97+pgQAAAAAAIBHtt+dYmWwaN/byI5g/9PYVfMvb4YvvDpOLJxvFgueP9VbPXh8/yCZViZxNYATaejmDQAAAACgfjJ/3QUA4JD3Px1InT+5PtQCAAAAAAAAAKD2xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP6G6+khVCgSAAAAAAAAAKidYQjLYVfNcPSyAE+dhQsnvAAq59/VHAAAAAAAAOCJmv8E/w4HiLqf3nWuWCB1pe0esg/pT3sKd+m4XjhpFpZH3/1THTcU6cfRLnrHf3ZNPZs+bf9rwPuIUPYAWb+j/Zy0EaAxAAAAAADwrPJ1IMBenu6ea99M+0W/17wCAAAAAAAAnGRLm8oA4JnQUAQAAAAAAAAAUHvi/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/jdX0ECsUCQAAAAAAAADUTiMCAAAAAAAAAHU3VAQAAAAAAAAAUH8hLNf1uwsWbhT/uWBzUEx/ei1Nxc001VqrnN2wuRjCK3G4HuNgtuJoSVj17Q9QyBQBAAAAAAAAHMKpuJ4/+Otc5L2XZi8dJlQ/LCPXhc4keJ9UI9uFre3rDfY9uoXZPQBFHL34HSWWm8sx5rH83d967IfZMRZHHG/2Qi8MFnbscXnhnzHei5NND8P2bW2OT3G8vFeebBHbz9dGEf5jDt+fK4/mTve1bnwndsNL92+mE/75xhs/yz65Ed/ZbP29SP96oxvCDxrxcjj333R262/d6X6tG66lYy/z/+rtMn83nHvv9nfOv/dw4+pvspCl4v7+1npa/nHvtbSvjSJ/mf79/VuLC7N03LiW8o/SMU8ldO+jPOul1OVQ3vVwK+TZqBLCt3/RXvveS7eaD0L8YyhrJeV/cC0WGTdD1hzlCo2H98vzK9a+963V7qRVTeaNa+ZGpWp+N62jSmOetJD8dn67fB4n8nzchG7n4+os2tcgzLWUQVg70rta8lE7nqW7IW710v7eDsV1F7e6433njYfd9j9Gl2KIveptMePVamOXQuhXO5tUk6Pv+kiPX43T7/3YevDy4MN+HLw8CHPX6OqOOwKe73z0+pnf3rvT6pX76j/SUU7/3UjqX5r7ZW7PdZU8Vq2id+29Pphdh3n1Tqp/t0aXaWVOPnsFGre+waRdpKf/TK+7fiX3bOWluVeJg77AAPNDwr37fwAA2GP0+BSOHwcn6/231ghwfPr6X+DIBtTj582d47s8LD3xMeYktt+YHXHe6XQuH9P4Nu+H3ctmGmve/qYEAAAAAACAR7bfnWJlsGgSNNoM54tPZ23EI4vYzPY1/fzq1ud/GP/01jjx8P2tYsG7DzrrB4/vHySTz5YB+n8AAAAAgJrJ/XEXAIDHEf/2yXUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgGdABAAAAAAAAADqbqgIAAAAAAAAAKD2hv8DWK79UBhoBgA=","base64"))});var xT=V((J0)=>{var S7=function(){const J=fT.default.readUInt32BE(V9);V9+=4;const Z=fT.default.slice(V9,V9+J);return V9+=J,va.default({buffer:Z})},vT=J0&&J0.__importDefault||function(J){return J&&J.__esModule?J:{default:J}};Object.defineProperty(J0,"__esModule",{value:!0});J0.bidirectional_l=J0.bidirectional_r_al=J0.prohibited_characters=J0.non_ASCII_space_characters=J0.commonly_mapped_to_nothing=J0.unassigned_code_points=void 0;var va=vT(kT()),fT=vT(_T()),V9=0;J0.unassigned_code_points=S7();J0.commonly_mapped_to_nothing=S7();J0.non_ASCII_space_characters=S7();J0.prohibited_characters=S7();J0.bidirectional_r_al=S7();J0.bidirectional_l=S7()});var uT=V((N61,mT)=>{var gT=function(J){const Z=[],$=J.length;for(let X=0;X<$;X+=1){const Y=J.charCodeAt(X);if(Y>=55296&&Y<=56319&&$>X+1){const Q=J.charCodeAt(X+1);if(Q>=56320&&Q<=57343){Z.push((Y-55296)*1024+Q-56320+65536),X+=1;continue}}Z.push(Y)}return Z},z9=function(J,Z={}){if(typeof J!=="string")throw new TypeError("Expected string.");if(J.length===0)return"";const $=gT(J).map((W)=>xa.get(W)?32:W).filter((W)=>!ba.get(W)),X=String.fromCodePoint.apply(null,$).normalize("NFKC"),Y=gT(X);if(Y.some((W)=>l8.prohibited_characters.get(W)))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(Z.allowUnassigned!==!0){if(Y.some((H)=>l8.unassigned_code_points.get(H)))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5")}const K=Y.some((W)=>l8.bidirectional_r_al.get(W)),G=Y.some((W)=>l8.bidirectional_l.get(W));if(K&&G)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const F=l8.bidirectional_r_al.get(bT(ga(X))),q=l8.bidirectional_r_al.get(bT(ma(X)));if(K&&!(F&&q))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return X},l8=xT(),xa=l8.non_ASCII_space_characters,ba=l8.commonly_mapped_to_nothing,bT=(J)=>J.codePointAt(0),ga=(J)=>J[0],ma=(J)=>J[J.length-1];z9.saslprep=z9;z9.default=z9;mT.exports=z9});var oT=V((tT)=>{var pT=function(J){return J.replace("=","=3D").replace(",","=2C")},lT=function(J,Z){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(J,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(Z.toString("base64"),"utf8")])},aT=function(J,Z,$){const X=pT(Z.username);return{saslStart:1,mechanism:J==="sha1"?dT.AuthMechanism.MONGODB_SCRAM_SHA1:dT.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new SQ.Binary(Buffer.concat([Buffer.from("n,,","utf8"),lT(X,$)])),autoAuthorize:1,options:{skipEmptyExchange:!0}}};async function pa(J,Z){const{connection:$,credentials:X}=Z;if(!X)throw new U6.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!Z.nonce)throw new U6.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");const Y=Z.nonce,Q=X.source,K=aT(J,X,Y),G=await $.commandAsync(OQ.ns(`${Q}.\$cmd`),K,void 0);await iT(J,G,Z)}async function iT(J,Z,$){const{connection:X,credentials:Y}=$;if(!Y)throw new U6.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!$.nonce)throw new U6.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");const Q=$.nonce,K=Y.source,G=pT(Y.username),F=Y.password,q=J==="sha256"?ua.saslprep(F):la(G,F),W=Buffer.isBuffer(Z.payload)?new SQ.Binary(Z.payload):Z.payload,H=cT(W),U=parseInt(H.i,10);if(U&&U<4096)throw new U6.MongoRuntimeError(`Server returned an invalid iteration count ${U}`);const{s:j,r:z}=H;if(z.startsWith("nonce"))throw new U6.MongoRuntimeError(`Server returned an invalid nonce: ${z}`);const A=`c=biws,r=${z}`,T=ta(q,Buffer.from(j,"base64"),U,J),w=OZ(J,T,"Client Key"),N=OZ(J,T,"Server Key"),P=ia(J,w),f=[lT(G,Q),W.toString("utf8"),A].join(","),$0=OZ(J,P,f),A8=`p=${aa(w,$0)}`,k=[A,A8].join(","),B=OZ(J,N,f),Q1={saslContinue:1,conversationId:Z.conversationId,payload:new SQ.Binary(Buffer.from(k))},g=await X.commandAsync(OQ.ns(`${K}.\$cmd`),Q1,void 0),_=cT(g.payload);if(!ra(Buffer.from(_.v,"base64"),B))throw new U6.MongoRuntimeError("Server returned an invalid signature");if(g.done!==!1)return;const C={saslContinue:1,conversationId:g.conversationId,payload:Buffer.alloc(0)};await X.commandAsync(OQ.ns(`${K}.\$cmd`),C,void 0)}var cT=function(J){const Z=J.toString("utf8"),$={},X=Z.split(",");for(let Y=0;Y<X.length;Y++){const Q=X[Y].split("=");$[Q[0]]=Q[1]}return $},la=function(J,Z){if(typeof J!=="string")throw new U6.MongoInvalidArgumentError("Username must be a string");if(typeof Z!=="string")throw new U6.MongoInvalidArgumentError("Password must be a string");if(Z.length===0)throw new U6.MongoInvalidArgumentError("Password cannot be empty");let $;try{$=a8.createHash("md5")}catch(X){if(a8.getFips())throw new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode");throw X}return $.update(`${J}:mongo:${Z}`,"utf8"),$.digest("hex")},aa=function(J,Z){if(!Buffer.isBuffer(J))J=Buffer.from(J);if(!Buffer.isBuffer(Z))Z=Buffer.from(Z);const $=Math.max(J.length,Z.length),X=[];for(let Y=0;Y<$;Y+=1)X.push(J[Y]^Z[Y]);return Buffer.from(X).toString("base64")},ia=function(J,Z){return a8.createHash(J).update(Z).digest()},OZ=function(J,Z,$){return a8.createHmac(J,Z).update($).digest()},sa=function(){kZ={},kQ=0},ta=function(J,Z,$,X){const Y=[J,Z.toString("base64"),$].join("_");if(kZ[Y]!=null)return kZ[Y];const Q=a8.pbkdf2Sync(J,Z,$,na[X],X);if(kQ>=200)sa();return kZ[Y]=Q,kQ+=1,Q},ra=function(J,Z){if(J.length!==Z.length)return!1;if(typeof a8.timingSafeEqual==="function")return a8.timingSafeEqual(J,Z);let $=0;for(let X=0;X<J.length;X++)$|=J[X]^Z[X];return $===0};Object.defineProperty(tT,"__esModule",{value:!0});tT.ScramSHA256=tT.ScramSHA1=void 0;var ua=uT(),a8=import.meta.require("crypto"),da=import.meta.require("util"),SQ=H1(),U6=E(),OQ=y(),ca=Y8(),dT=O6();class yQ extends ca.AuthProvider{constructor(J){super();this.cryptoMethod=J||"sha1",this.randomBytesAsync=da.promisify(a8.randomBytes)}async prepare(J,Z){const $=this.cryptoMethod,X=Z.credentials;if(!X)throw new U6.MongoMissingCredentialsError("AuthContext must provide credentials.");const Y=await this.randomBytesAsync(24);return Z.nonce=Y,{...J,speculativeAuthenticate:{...aT($,X,Y),db:X.source}}}async auth(J){const{reauthenticating:Z,response:$}=J;if($?.speculativeAuthenticate&&!Z)return iT(this.cryptoMethod,$.speculativeAuthenticate,J);return pa(this.cryptoMethod,J)}}var kZ={},kQ=0,na={sha256:32,sha1:20};class sT extends yQ{constructor(){super("sha1")}}tT.ScramSHA1=sT;class nT extends yQ{constructor(){super("sha256")}}tT.ScramSHA256=nT});var YI=V(($I)=>{var JI=function(J){const Z={authenticate:1,mechanism:"MONGODB-X509"};if(J.username)Z.user=J.username;return Z};Object.defineProperty($I,"__esModule",{value:!0});$I.X509=void 0;var eT=E(),ea=y(),Ji=Y8();class ZI extends Ji.AuthProvider{async prepare(J,Z){const{credentials:$}=Z;if(!$)throw new eT.MongoMissingCredentialsError("AuthContext must provide credentials.");return{...J,speculativeAuthenticate:JI($)}}async auth(J){const{connection:Z,credentials:$}=J;if(!$)throw new eT.MongoMissingCredentialsError("AuthContext must provide credentials.");if(J.response?.speculativeAuthenticate)return;await Z.commandAsync(ea.ns("$external.$cmd"),JI($),void 0)}}$I.X509=ZI});var bQ=V((HI)=>{var vQ=function(J){if(J instanceof GI.OpMsgRequest)return M6.deepCopy(J.command);if(J.query?.$query){let X;if(J.ns==="admin.$cmd")X=Object.assign({},J.query.$query);else X={find:Xi(J)},Object.keys(QI).forEach((Y)=>{if(J.query[Y]!=null)X[QI[Y]]=M6.deepCopy(J.query[Y])});if(Object.keys(KI).forEach((Y)=>{const Q=Y;if(J[Q]!=null)X[KI[Q]]=M6.deepCopy(J[Q])}),Yi.forEach((Y)=>{if(J[Y])X[Y]=J[Y]}),J.pre32Limit!=null)X.limit=J.pre32Limit;if(J.query.$explain)return{explain:X};return X}const Z={},$={};if(J.query){for(let X in J.query)Z[X]=M6.deepCopy(J.query[X]);$.query=Z}for(let X in J){if(X==="query")continue;$[X]=M6.deepCopy(J[X])}return J.query?Z:$},Qi=function(J,Z){if(!Z)return Z;if(J instanceof GI.OpMsgRequest)return M6.deepCopy(Z.result?Z.result:Z);if(J.query&&J.query.$query!=null)return{ok:1,cursor:{id:M6.deepCopy(Z.cursorId),ns:$i(J),firstBatch:M6.deepCopy(Z.documents)}};return M6.deepCopy(Z.result?Z.result:Z)},xQ=function(J){let Z;if("id"in J)Z=J.id;return{address:J.address,serviceId:J.serviceId,connectionId:Z}};Object.defineProperty(HI,"__esModule",{value:!0});HI.SENSITIVE_COMMANDS=HI.CommandFailedEvent=HI.CommandSucceededEvent=HI.CommandStartedEvent=void 0;var U9=v1(),M6=y(),GI=Y9();class FI{constructor(J,Z){this.name=U9.COMMAND_STARTED;const $=vQ(Z),X=_Q($),{address:Y,connectionId:Q,serviceId:K}=xQ(J);if(HI.SENSITIVE_COMMANDS.has(X))this.commandObj={},this.commandObj[X]=!0;this.address=Y,this.connectionId=Q,this.serviceId=K,this.requestId=Z.requestId,this.databaseName=Z.databaseName,this.commandName=X,this.command=fQ(X,$,$)}get hasServiceId(){return!!this.serviceId}}HI.CommandStartedEvent=FI;class qI{constructor(J,Z,$,X){this.name=U9.COMMAND_SUCCEEDED;const Y=vQ(Z),Q=_Q(Y),{address:K,connectionId:G,serviceId:F}=xQ(J);this.address=K,this.connectionId=G,this.serviceId=F,this.requestId=Z.requestId,this.commandName=Q,this.duration=M6.calculateDurationInMs(X),this.reply=fQ(Q,Y,Qi(Z,$))}get hasServiceId(){return!!this.serviceId}}HI.CommandSucceededEvent=qI;class WI{constructor(J,Z,$,X){this.name=U9.COMMAND_FAILED;const Y=vQ(Z),Q=_Q(Y),{address:K,connectionId:G,serviceId:F}=xQ(J);this.address=K,this.connectionId=G,this.serviceId=F,this.requestId=Z.requestId,this.commandName=Q,this.duration=M6.calculateDurationInMs(X),this.failure=fQ(Q,Y,$)}get hasServiceId(){return!!this.serviceId}}HI.CommandFailedEvent=WI;HI.SENSITIVE_COMMANDS=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);var Zi=new Set(["hello",U9.LEGACY_HELLO_COMMAND,U9.LEGACY_HELLO_COMMAND_CAMEL_CASE]),_Q=(J)=>Object.keys(J)[0],$i=(J)=>J.ns,Xi=(J)=>J.ns.split(".")[1],fQ=(J,Z,$)=>HI.SENSITIVE_COMMANDS.has(J)||Zi.has(J)&&Z.speculativeAuthenticate?{}:$,QI={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},KI={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"},Yi=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"]});var jI=V((UI)=>{var j9=function(J,Z){const $=J[fZ],X=$.getInt32();if(X==null)return Z();if(X<0)return Z(new gQ.MongoParseError(`Invalid message size: ${X}`));if(X>J.maxBsonMessageSize)return Z(new gQ.MongoParseError(`Invalid message size: ${X}, max allowed: ${J.maxBsonMessageSize}`));if(X>$.length)return Z();const Y=$.read(X),Q={length:Y.readInt32LE(0),requestId:Y.readInt32LE(4),responseTo:Y.readInt32LE(8),opCode:Y.readInt32LE(12)},K=()=>{if(J.isMonitoringConnection){const W=$.getInt32();if(W!=null&&W<=$.length)return!0}return!1};let G=Q.opCode===_Z.OP_MSG?M9.OpMsgResponse:M9.OpQueryResponse;if(Q.opCode!==_Z.OP_COMPRESSED){const W=Y.subarray(i8);if(K())return j9(J,Z);if(J.emit("message",new G(Y,Q,W)),$.length>=4)return j9(J,Z);return Z()}Q.fromCompressed=!0,Q.opCode=Y.readInt32LE(i8),Q.length=Y.readInt32LE(i8+4);const F=Y[i8+8],q=Y.slice(i8+9);G=Q.opCode===_Z.OP_MSG?M9.OpMsgResponse:M9.OpQueryResponse,mQ.decompress(F,q).then((W)=>{if(W.length!==Q.length)return Z(new gQ.MongoDecompressionError("Message body and message header must be the same length"));if(K())return j9(J,Z);if(J.emit("message",new G(Y,Q,W)),$.length>=4)return j9(J,Z);return Z()},(W)=>{return Z(W)})};Object.defineProperty(UI,"__esModule",{value:!0});UI.MessageStream=void 0;var qi=import.meta.require("stream"),gQ=E(),Wi=y(),M9=Y9(),mQ=N7(),_Z=h8(),i8=16,VI=9,Hi=67108864,fZ=Symbol("buffer");class zI extends qi.Duplex{constructor(J={}){super(J);this.isMonitoringConnection=!1,this.maxBsonMessageSize=J.maxBsonMessageSize||Hi,this[fZ]=new Wi.BufferPool}get buffer(){return this[fZ]}_write(J,Z,$){this[fZ].append(J),j9(this,$)}_read(){return}writeCommand(J,Z){const $=Z.agreedCompressor??"none";if($==="none"||!M9.OpCompressedRequest.canCompress(J)){const G=J.toBin();this.push(Array.isArray(G)?Buffer.concat(G):G);return}const X=Buffer.concat(J.toBin()),Y=X.slice(i8),Q=X.readInt32LE(12),K={agreedCompressor:$,zlibCompressionLevel:Z.zlibCompressionLevel??0};mQ.compress(K,Y).then((G)=>{const F=Buffer.alloc(i8);F.writeInt32LE(i8+VI+G.length,0),F.writeInt32LE(J.requestId,4),F.writeInt32LE(0,8),F.writeInt32LE(_Z.OP_COMPRESSED,12);const q=Buffer.alloc(VI);q.writeInt32LE(Q,0),q.writeInt32LE(Y.length,4),q.writeUInt8(mQ.Compressor[$],8),this.push(Buffer.concat([F,q,G]))},(G)=>{Z.cb(G)})}}UI.MessageStream=zI});var RI=V((LI)=>{Object.defineProperty(LI,"__esModule",{value:!0});LI.StreamDescription=void 0;var Vi=d0(),zi=x5(),Ui=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];class AI{constructor(J,Z){this.address=J,this.type=Vi.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48000000,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=Z?.logicalSessionTimeoutMinutes,this.loadBalanced=!!Z?.loadBalanced,this.compressors=Z&&Z.compressors&&Array.isArray(Z.compressors)?Z.compressors:[]}receiveResponse(J){if(J==null)return;this.type=zi.parseServerType(J);for(let Z of Ui){if(J[Z]!=null)this[Z]=J[Z];if("__nodejs_mock_server__"in J)this.__nodejs_mock_server__=J.__nodejs_mock_server__}if(J.compression)this.compressor=this.compressors.filter((Z)=>J.compression?.includes(Z))[0]}}LI.StreamDescription=AI});var A9=V((yI)=>{var CI=function(J){return J.description.logicalSessionTimeoutMinutes!=null},Li=function(J){const Z=J.description;if(Z==null)return!1;return k0.maxWireVersion(J)>=6&&!Z.__nodejs_mock_server__},hI=function(J,Z){if(Z.proxyHost)return Z.hostAddress.toString();const{remoteAddress:$,remotePort:X}=J;if(typeof $==="string"&&typeof X==="number")return k0.HostAddress.fromHostPort($,X).toString();return k0.uuidV4().toString("hex")},SI=function(J,Z,$,X){$=$??{};const Y={requestId:Z.requestId,cb:X,session:$.session,noResponse:typeof $.noResponse==="boolean"?$.noResponse:!1,documentsReturnedIn:$.documentsReturnedIn,useBigInt64:typeof $.useBigInt64==="boolean"?$.useBigInt64:!1,promoteLongs:typeof $.promoteLongs==="boolean"?$.promoteLongs:!0,promoteValues:typeof $.promoteValues==="boolean"?$.promoteValues:!0,promoteBuffers:typeof $.promoteBuffers==="boolean"?$.promoteBuffers:!1,bsonRegExp:typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,enableUtf8Validation:typeof $.enableUtf8Validation==="boolean"?$.enableUtf8Validation:!0,raw:typeof $.raw==="boolean"?$.raw:!1,started:0};if(J[W0]&&J[W0].compressor){if(Y.agreedCompressor=J[W0].compressor,J[W0].zlibCompressionLevel)Y.zlibCompressionLevel=J[W0].zlibCompressionLevel}if(typeof $.socketTimeoutMS==="number")J[l1].setTimeout($.socketTimeoutMS);else if(J.socketTimeoutMS!==0)J[l1].setTimeout(J.socketTimeoutMS);if(J.monitorCommands)J.emit(R1.COMMAND_STARTED,new vZ.CommandStartedEvent(J,Z)),Y.started=k0.now(),Y.cb=(Q,K)=>{if(Q&&K?.ok!==1)J.emit(R1.COMMAND_FAILED,new vZ.CommandFailedEvent(J,Z,Q,Y.started));else if(K&&(K.ok===0||K.$err))J.emit(R1.COMMAND_FAILED,new vZ.CommandFailedEvent(J,Z,K,Y.started));else J.emit(R1.COMMAND_SUCCEEDED,new vZ.CommandSucceededEvent(J,Z,K,Y.started));if(typeof X==="function")X(Q,Q instanceof C1.MongoWriteConcernError?void 0:K)};if(!Y.noResponse)J[E1].set(Y.requestId,Y);try{J[_1].writeCommand(Z,Y)}catch(Q){if(!Y.noResponse){J[E1].delete(Y.requestId),Y.cb(Q);return}}if(Y.noResponse)Y.cb()};async function*OI(J){const Z=new k0.BufferPool,$=J.hello?.maxBsonMessageSize??wi;for await(let[X]of ji.on(J.socket,"data")){Z.append(X);const Y=Z.getInt32();if(Y==null)continue;if(Y<0)throw new C1.MongoParseError(`Invalid message size: ${Y}`);if(Y>$)throw new C1.MongoParseError(`Invalid message size: ${Y}, max allowed: ${$}`);if(Y>Z.length)continue;yield Z.read(Y)}}async function Ri(J,Z,$){const X=Mi.once(J.socket,"drain"),Y=$.agreedCompressor==="none"||!f7.OpCompressedRequest.canCompress(Z)?Z:new f7.OpCompressedRequest(Z,{agreedCompressor:$.agreedCompressor??"none",zlibCompressionLevel:$.zlibCompressionLevel??0}),Q=Buffer.concat(await Y.toBin());J.socket.push(Q),await X}async function*kI(J){for await(let Z of OI(J)){const $=await Ai.decompressResponse(Z);if(yield $,!("moreToCome"in $)||!$.moreToCome)return}}async function Di(J){for await(let Z of kI(J))return Z;throw new C1.MongoRuntimeError("unable to read message off of connection")}Object.defineProperty(yI,"__esModule",{value:!0});yI.read=yI.readMany=yI.writeCommand=yI.readWireProtocolMessages=yI.ModernConnection=yI.hasSessionSupport=yI.CryptoConnection=yI.Connection=void 0;var Mi=import.meta.require("events"),ji=import.meta.require("stream"),xZ=import.meta.require("timers"),PI=import.meta.require("util"),Z0=v1(),C1=E(),TI=C0(),bZ=m5(),k0=y(),vZ=bQ(),f7=Y9(),II=jI(),NI=RI(),Ai=N7(),gZ=b3(),l1=Symbol("stream"),E1=Symbol("queue"),_1=Symbol("messageStream"),O7=Symbol("generation"),k7=Symbol("lastUseTime"),y7=Symbol("clusterTime"),W0=Symbol("description"),_7=Symbol("hello"),DI=Symbol("autoEncrypter"),s8=Symbol("delayedTimeoutId"),BI="Connection internal queue contains more than 1 operation description";class R1 extends TI.TypedEventEmitter{constructor(J,Z){super();this.commandAsync=PI.promisify(($,X,Y,Q)=>this.command($,X,Y,Q)),this.id=Z.id,this.address=hI(J,Z),this.socketTimeoutMS=Z.socketTimeoutMS??0,this.monitorCommands=Z.monitorCommands,this.serverApi=Z.serverApi,this.closed=!1,this[_7]=null,this[y7]=null,this[W0]=new NI.StreamDescription(this.address,Z),this[O7]=Z.generation,this[k7]=k0.now(),this[E1]=new Map,this[_1]=new II.MessageStream({...Z,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this[l1]=J,this[s8]=null,this[_1].on("message",($)=>this.onMessage($)),this[_1].on("error",($)=>this.onError($)),this[l1].on("close",()=>this.onClose()),this[l1].on("timeout",()=>this.onTimeout()),this[l1].on("error",()=>{}),this[l1].pipe(this[_1]),this[_1].pipe(this[l1])}get description(){return this[W0]}get hello(){return this[_7]}set hello(J){this[W0].receiveResponse(J),this[W0]=Object.freeze(this[W0]),this[_7]=J}set isMonitoringConnection(J){this[_1].isMonitoringConnection=J}get isMonitoringConnection(){return this[_1].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[O7]||0}set generation(J){this[O7]=J}get idleTime(){return k0.calculateDurationInMs(this[k7])}get clusterTime(){return this[y7]}get stream(){return this[l1]}markAvailable(){this[k7]=k0.now()}onError(J){this.cleanup(!0,J)}onClose(){const J=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new C1.MongoNetworkError(J))}onTimeout(){this[s8]=xZ.setTimeout(()=>{const J=`connection ${this.id} to ${this.address} timed out`,Z=this.hello==null;this.cleanup(!0,new C1.MongoNetworkTimeoutError(J,{beforeHandshake:Z}))},1).unref()}onMessage(J){const Z=this[s8];if(Z!=null)xZ.clearTimeout(Z),this[s8]=null;const $=this[l1].timeout??0;this[l1].setTimeout(0),this.emit("message",J);let X=this[E1].get(J.responseTo);if(!X&&this.isMonitoringConnection)if(this[E1].size>1)this.cleanup(!0,new C1.MongoRuntimeError(BI));else{const Q=this[E1].entries().next();if(Q.value!=null){const[K,G]=Q.value;X=G,this[E1].delete(K)}}if(!X)return;const Y=X.cb;if(this[E1].delete(J.responseTo),"moreToCome"in J&&J.moreToCome)this[E1].set(J.requestId,X),this[l1].setTimeout($);try{J.parse(X)}catch(Q){Y(Q);return}if(J.documents[0]){const Q=J.documents[0],K=X.session;if(K)bZ.updateSessionFromResponse(K,Q);if(Q.$clusterTime)this[y7]=Q.$clusterTime,this.emit(R1.CLUSTER_TIME_RECEIVED,Q.$clusterTime);if(Q.writeConcernError){Y(new C1.MongoWriteConcernError(Q.writeConcernError,Q),Q);return}if(Q.ok===0||Q.$err||Q.errmsg||Q.code){Y(new C1.MongoServerError(Q));return}}Y(void 0,J.documents[0])}destroy(J,Z){if(this.closed){process.nextTick(()=>Z?.());return}if(typeof Z==="function")this.once("close",()=>process.nextTick(()=>Z()));this.removeAllListeners(R1.PINNED),this.removeAllListeners(R1.UNPINNED);const $=`connection ${this.id} to ${this.address} closed`;this.cleanup(J.force,new C1.MongoNetworkError($))}cleanup(J,Z){if(this.closed)return;this.closed=!0;const $=()=>{for(let X of this[E1].values())X.cb(Z);this[E1].clear(),this.emit(R1.CLOSE)};if(this[l1].removeAllListeners(),this[_1].removeAllListeners(),this[_1].destroy(),J){this[l1].destroy(),$();return}if(!this[l1].writableEnded)this[l1].end(()=>{this[l1].destroy(),$()});else $()}command(J,Z,$,X){let Y={...Z};const Q=gZ.getReadPreference($),K=Li(this),G=$?.session;let F=this.clusterTime;if(this.serverApi){const{version:H,strict:U,deprecationErrors:j}=this.serverApi;if(Y.apiVersion=H,U!=null)Y.apiStrict=U;if(j!=null)Y.apiDeprecationErrors=j}if(CI(this)&&G){if(G.clusterTime&&F&&G.clusterTime.clusterTime.greaterThan(F.clusterTime))F=G.clusterTime;const H=bZ.applySession(G,Y,$);if(H)return X(H)}else if(G?.explicit)return X(new C1.MongoCompatibilityError("Current topology does not support sessions"));if(F)Y.$clusterTime=F;if(gZ.isSharded(this)&&!K&&Q&&Q.mode!=="primary")Y={$query:Y,$readPreference:Q.toJSON()};const q=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:Q.secondaryOk()},$),W=K?new f7.OpMsgRequest(J.db,Y,q):new f7.OpQueryRequest(J.db,Y,q);try{SI(this,W,q,X)}catch(H){X(H)}}}R1.COMMAND_STARTED=Z0.COMMAND_STARTED;R1.COMMAND_SUCCEEDED=Z0.COMMAND_SUCCEEDED;R1.COMMAND_FAILED=Z0.COMMAND_FAILED;R1.CLUSTER_TIME_RECEIVED=Z0.CLUSTER_TIME_RECEIVED;R1.CLOSE=Z0.CLOSE;R1.MESSAGE=Z0.MESSAGE;R1.PINNED=Z0.PINNED;R1.UNPINNED=Z0.UNPINNED;yI.Connection=R1;class EI extends R1{constructor(J,Z){super(J,Z);this[DI]=Z.autoEncrypter}command(J,Z,$,X){const Y=this[DI];if(!Y)return X(new C1.MongoMissingDependencyError("No AutoEncrypter available for encryption"));const Q=k0.maxWireVersion(this);if(Q===0)return super.command(J,Z,$,X);if(Q<8){X(new C1.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2"));return}const K=Z.find||Z.findAndModify?Z.sort:null,G=Z.createIndexes?Z.indexes.map((F)=>F.key):null;Y.encrypt(J.toString(),Z,$).then((F)=>{if(K!=null&&(Z.find||Z.findAndModify))F.sort=K;if(G!=null&&Z.createIndexes)for(let[q,W]of G.entries())F.indexes[q].key=W;super.command(J,F,$,(q,W)=>{if(q||W==null){X(q,W);return}Y.decrypt(W,$).then((H)=>X(void 0,H),(H)=>X(H))})},(F)=>{if(F)X(F,null)})}}yI.CryptoConnection=EI;yI.hasSessionSupport=CI;class _6 extends TI.TypedEventEmitter{constructor(J,Z){super();this.commandAsync=PI.promisify(($,X,Y,Q)=>this.command($,X,Y,Q)),this.id=Z.id,this.address=hI(J,Z),this.socketTimeoutMS=Z.socketTimeoutMS??0,this.monitorCommands=Z.monitorCommands,this.serverApi=Z.serverApi,this.closed=!1,this[_7]=null,this[y7]=null,this[W0]=new NI.StreamDescription(this.address,Z),this[O7]=Z.generation,this[k7]=k0.now(),this[E1]=new Map,this[_1]=new II.MessageStream({...Z,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this.socket=J,this[s8]=null,this[_1].on("message",($)=>this.onMessage($)),this[_1].on("error",($)=>this.onError($)),this.socket.on("close",()=>this.onClose()),this.socket.on("timeout",()=>this.onTimeout()),this.socket.on("error",()=>{}),this.socket.pipe(this[_1]),this[_1].pipe(this.socket)}get description(){return this[W0]}get hello(){return this[_7]}set hello(J){this[W0].receiveResponse(J),this[W0]=Object.freeze(this[W0]),this[_7]=J}set isMonitoringConnection(J){this[_1].isMonitoringConnection=J}get isMonitoringConnection(){return this[_1].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[O7]||0}set generation(J){this[O7]=J}get idleTime(){return k0.calculateDurationInMs(this[k7])}get clusterTime(){return this[y7]}get stream(){return this.socket}get hasSessionSupport(){return this.description.logicalSessionTimeoutMinutes!=null}get supportsOpMsg(){return this.description!=null&&k0.maxWireVersion(this)>=6&&!this.description.__nodejs_mock_server__}markAvailable(){this[k7]=k0.now()}onError(J){this.cleanup(!0,J)}onClose(){const J=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new C1.MongoNetworkError(J))}onTimeout(){this[s8]=xZ.setTimeout(()=>{const J=`connection ${this.id} to ${this.address} timed out`,Z=this.hello==null;this.cleanup(!0,new C1.MongoNetworkTimeoutError(J,{beforeHandshake:Z}))},1).unref()}onMessage(J){const Z=this[s8];if(Z!=null)xZ.clearTimeout(Z),this[s8]=null;const $=this.socket.timeout??0;this.socket.setTimeout(0),this.emit("message",J);let X=this[E1].get(J.responseTo);if(!X&&this.isMonitoringConnection)if(this[E1].size>1)this.cleanup(!0,new C1.MongoRuntimeError(BI));else{const Q=this[E1].entries().next();if(Q.value!=null){const[K,G]=Q.value;X=G,this[E1].delete(K)}}if(!X)return;const Y=X.cb;if(this[E1].delete(J.responseTo),"moreToCome"in J&&J.moreToCome)this[E1].set(J.requestId,X),this.socket.setTimeout($);try{J.parse(X)}catch(Q){Y(Q);return}if(J.documents[0]){const Q=J.documents[0],K=X.session;if(K)bZ.updateSessionFromResponse(K,Q);if(Q.$clusterTime)this[y7]=Q.$clusterTime,this.emit(R1.CLUSTER_TIME_RECEIVED,Q.$clusterTime);if(Q.writeConcernError){Y(new C1.MongoWriteConcernError(Q.writeConcernError,Q),Q);return}if(Q.ok===0||Q.$err||Q.errmsg||Q.code){Y(new C1.MongoServerError(Q));return}}Y(void 0,J.documents[0])}destroy(J,Z){if(this.closed){process.nextTick(()=>Z?.());return}if(typeof Z==="function")this.once("close",()=>process.nextTick(()=>Z()));this.removeAllListeners(R1.PINNED),this.removeAllListeners(R1.UNPINNED);const $=`connection ${this.id} to ${this.address} closed`;this.cleanup(J.force,new C1.MongoNetworkError($))}cleanup(J,Z){if(this.closed)return;this.closed=!0;const $=()=>{for(let X of this[E1].values())X.cb(Z);this[E1].clear(),this.emit(R1.CLOSE)};if(this.socket.removeAllListeners(),this[_1].removeAllListeners(),this[_1].destroy(),J){this.socket.destroy(),$();return}if(!this.socket.writableEnded)this.socket.end(()=>{this.socket.destroy(),$()});else $()}command(J,Z,$,X){let Y={...Z};const Q=gZ.getReadPreference($),K=$?.session;let G=this.clusterTime;if(this.serverApi){const{version:W,strict:H,deprecationErrors:U}=this.serverApi;if(Y.apiVersion=W,H!=null)Y.apiStrict=H;if(U!=null)Y.apiDeprecationErrors=U}if(this.hasSessionSupport&&K){if(K.clusterTime&&G&&K.clusterTime.clusterTime.greaterThan(G.clusterTime))G=K.clusterTime;const W=bZ.applySession(K,Y,$);if(W)return X(W)}else if(K?.explicit)return X(new C1.MongoCompatibilityError("Current topology does not support sessions"));if(G)Y.$clusterTime=G;if(gZ.isSharded(this)&&!this.supportsOpMsg&&Q&&Q.mode!=="primary")Y={$query:Y,$readPreference:Q.toJSON()};const F=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:Q.secondaryOk()},$),q=this.supportsOpMsg?new f7.OpMsgRequest(J.db,Y,F):new f7.OpQueryRequest(J.db,Y,F);try{SI(this,q,F,X)}catch(W){X(W)}}}_6.COMMAND_STARTED=Z0.COMMAND_STARTED;_6.COMMAND_SUCCEEDED=Z0.COMMAND_SUCCEEDED;_6.COMMAND_FAILED=Z0.COMMAND_FAILED;_6.CLUSTER_TIME_RECEIVED=Z0.CLUSTER_TIME_RECEIVED;_6.CLOSE=Z0.CLOSE;_6.MESSAGE=Z0.MESSAGE;_6.PINNED=Z0.PINNED;_6.UNPINNED=Z0.UNPINNED;yI.ModernConnection=_6;var wi=67108864;yI.readWireProtocolMessages=OI;yI.writeCommand=Ri;yI.readMany=kI;yI.read=Di});var lQ=V((dI)=>{var bi=function(J,Z){dQ({...J,existingSocket:void 0},($,X)=>{if($||!X)return Z($);let Y=J.connectionType??vI.Connection;if(J.autoEncrypter)Y=vI.CryptoConnection;const Q=new Y(X,J);mi(Q,J).then(()=>Z(void 0,Q),(K)=>{Q.destroy({force:!1}),Z(K)})})},gi=function(J,Z){const $=Number(J.maxWireVersion),X=Number(J.minWireVersion),Y=!Number.isNaN($)&&$>=v7.MIN_SUPPORTED_WIRE_VERSION,Q=!Number.isNaN(X)&&X<=v7.MAX_SUPPORTED_WIRE_VERSION;if(Y){if(Q)return null;const G=`Server at ${Z.hostAddress} reports minimum wire version ${JSON.stringify(J.minWireVersion)}, but this version of the Node.js Driver requires at most ${v7.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${v7.MAX_SUPPORTED_SERVER_VERSION})`;return new h1.MongoCompatibilityError(G)}const K=`Server at ${Z.hostAddress} reports maximum wire version ${JSON.stringify(J.maxWireVersion)??0}, but this version of the Node.js Driver requires at least ${v7.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${v7.MIN_SUPPORTED_SERVER_VERSION})`;return new h1.MongoCompatibilityError(K)};async function mi(J,Z){const $=Z.credentials;if($){if($.mechanism!==r0.AuthMechanism.MONGODB_DEFAULT&&!dI.AUTH_PROVIDERS.get($.mechanism))throw new h1.MongoInvalidArgumentError(`AuthMechanism '${$.mechanism}' not supported`)}const X=new Oi.AuthContext(J,$,Z);J.authContext=X;const Y=await mI(X),Q={...Z};if(typeof Z.connectTimeoutMS==="number")Q.socketTimeoutMS=Z.connectTimeoutMS;const K=(new Date()).getTime(),G=await J.commandAsync(gI.ns("admin.$cmd"),Y,Q);if(!("isWritablePrimary"in G))G.isWritablePrimary=G[bI.LEGACY_HELLO_COMMAND];if(G.helloOk)J.helloOk=!0;const F=gi(G,Z);if(F)throw F;if(Z.loadBalanced){if(!G.serviceId)throw new h1.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode.")}if(J.hello=G,J.lastHelloMS=(new Date()).getTime()-K,!G.arbiterOnly&&$){X.response=G;const q=$.resolveAuthMechanism(G),W=dI.AUTH_PROVIDERS.get(q.mechanism);if(!W)throw new h1.MongoInvalidArgumentError(`No AuthProvider for ${q.mechanism} defined.`);try{await W.auth(X)}catch(H){if(H instanceof h1.MongoError){if(H.addErrorLabel(h1.MongoErrorLabel.HandshakeError),h1.needsRetryableWriteLabel(H,G.maxWireVersion))H.addErrorLabel(h1.MongoErrorLabel.RetryableWriteError)}throw H}}}async function mI(J){const Z=J.options,$=Z.compressors?Z.compressors:[],{serverApi:X}=J.connection,Y={[X?.version||Z.loadBalanced===!0?"hello":bI.LEGACY_HELLO_COMMAND]:1,helloOk:!0,client:Z.metadata,compression:$};if(Z.loadBalanced===!0)Y.loadBalanced=!0;const Q=J.credentials;if(Q){if(Q.mechanism===r0.AuthMechanism.MONGODB_DEFAULT&&Q.username){Y.saslSupportedMechs=`${Q.source}.${Q.username}`;const G=dI.AUTH_PROVIDERS.get(r0.AuthMechanism.MONGODB_SCRAM_SHA256);if(!G)throw new h1.MongoInvalidArgumentError(`No AuthProvider for ${r0.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`);return G.prepare(Y,J)}const K=dI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)throw new h1.MongoInvalidArgumentError(`No AuthProvider for ${Q.mechanism} defined.`);return K.prepare(Y,J)}return Y}var cQ=function(J){const Z=J.hostAddress;if(!Z)throw new h1.MongoInvalidArgumentError('Option "hostAddress" is required');const $={};for(let X of dI.LEGAL_TCP_SOCKET_OPTIONS)if(J[X]!=null)$[X]=J[X];if(typeof Z.socketPath==="string")return $.path=Z.socketPath,$;else if(typeof Z.host==="string")return $.host=Z.host,$.port=Z.port,$;else throw new h1.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(Z)}`)},ui=function(J){const Z=cQ(J);for(let $ of dI.LEGAL_TLS_SOCKET_OPTIONS)if(J[$]!=null)Z[$]=J[$];if(J.existingSocket)Z.socket=J.existingSocket;if(Z.servername==null&&Z.host&&!xI.isIP(Z.host))Z.servername=Z.host;return Z},dQ=function(J,Z){const $=J.tls??!1,X=J.noDelay??!0,Y=J.connectTimeoutMS??30000,Q=J.rejectUnauthorized??!0,K=J.existingSocket;let G;const F=function(j,z){if(j&&G)G.destroy();Z(j,z)};if(J.proxyHost!=null)return pi({...J,connectTimeoutMS:Y},F);if($){const j=hi.connect(ui(J));if(typeof j.disableRenegotiation==="function")j.disableRenegotiation();G=j}else if(K)G=K;else G=xI.createConnection(cQ(J));G.setKeepAlive(!0,300000),G.setTimeout(Y),G.setNoDelay(X);const q=$?"secureConnect":"connect";let W;function H(j){return(z)=>{if(uQ.forEach((A)=>G.removeAllListeners(A)),W&&J.cancellationToken)J.cancellationToken.removeListener("cancel",W);G.removeListener(q,U),F(uI(j,z))}}function U(){if(uQ.forEach((j)=>G.removeAllListeners(j)),W&&J.cancellationToken)J.cancellationToken.removeListener("cancel",W);if("authorizationError"in G){if(G.authorizationError&&Q)return F(G.authorizationError)}G.setTimeout(0),F(void 0,G)}if(uQ.forEach((j)=>G.once(j,H(j))),J.cancellationToken)W=H("cancel"),J.cancellationToken.once("cancel",W);if(K)process.nextTick(U);else G.once(q,U)},ci=function(){if(L9==null){const J=Si.getSocks();if("kModuleError"in J)throw J.kModuleError;L9=J}return L9},pi=function(J,Z){const $=gI.HostAddress.fromHostPort(J.proxyHost??"",J.proxyPort??1080);dQ({...J,hostAddress:$,tls:!1,proxyHost:void 0},(X,Y)=>{if(X||!Y)return Z(X);const Q=cQ(J);if(typeof Q.host!=="string"||typeof Q.port!=="number")return Z(new h1.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"));try{L9??=ci()}catch(K){return Z(K)}L9.SocksClient.createConnection({existing_socket:Y,timeout:J.connectTimeoutMS,command:"connect",destination:{host:Q.host,port:Q.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:J.proxyUsername||void 0,password:J.proxyPassword||void 0}}).then(({socket:K})=>{dQ({...J,existingSocket:K,proxyHost:void 0},Z)},(K)=>Z(uI("error",K)))})},uI=function(J,Z){switch(J){case"error":return new h1.MongoNetworkError(h1.MongoError.buildErrorMessage(Z),{cause:Z});case"timeout":return new h1.MongoNetworkTimeoutError("connection timed out");case"close":return new h1.MongoNetworkError("connection closed");case"cancel":return new h1.MongoNetworkError("connection establishment was cancelled");default:return new h1.MongoNetworkError("unknown network error")}};Object.defineProperty(dI,"__esModule",{value:!0});dI.LEGAL_TCP_SOCKET_OPTIONS=dI.LEGAL_TLS_SOCKET_OPTIONS=dI.prepareHandshakeDocument=dI.connect=dI.AUTH_PROVIDERS=void 0;var xI=import.meta.require("net"),hi=import.meta.require("tls"),bI=v1(),Si=H6(),h1=E(),gI=y(),Oi=Y8(),ki=YZ(),yi=EP(),_i=OP(),fi=TT(),vi=ET(),r0=O6(),fI=oT(),xi=YI(),vI=A9(),v7=h8();dI.AUTH_PROVIDERS=new Map([[r0.AuthMechanism.MONGODB_AWS,new _i.MongoDBAWS],[r0.AuthMechanism.MONGODB_CR,new yi.MongoCR],[r0.AuthMechanism.MONGODB_GSSAPI,new ki.GSSAPI],[r0.AuthMechanism.MONGODB_OIDC,new fi.MongoDBOIDC],[r0.AuthMechanism.MONGODB_PLAIN,new vi.Plain],[r0.AuthMechanism.MONGODB_SCRAM_SHA1,new fI.ScramSHA1],[r0.AuthMechanism.MONGODB_SCRAM_SHA256,new fI.ScramSHA256],[r0.AuthMechanism.MONGODB_X509,new xi.X509]]);dI.connect=bi;dI.prepareHandshakeDocument=mI;dI.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"];dI.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];var di=["error","close","timeout","parseError"],uQ=new Set(di),L9=null});var mZ=V((eI)=>{Object.defineProperty(eI,"__esModule",{value:!0});eI.ServerHeartbeatFailedEvent=eI.ServerHeartbeatSucceededEvent=eI.ServerHeartbeatStartedEvent=eI.TopologyClosedEvent=eI.TopologyOpeningEvent=eI.TopologyDescriptionChangedEvent=eI.ServerClosedEvent=eI.ServerOpeningEvent=eI.ServerDescriptionChangedEvent=void 0;class pI{constructor(J,Z,$,X){this.topologyId=J,this.address=Z,this.previousDescription=$,this.newDescription=X}}eI.ServerDescriptionChangedEvent=pI;class lI{constructor(J,Z){this.topologyId=J,this.address=Z}}eI.ServerOpeningEvent=lI;class aI{constructor(J,Z){this.topologyId=J,this.address=Z}}eI.ServerClosedEvent=aI;class iI{constructor(J,Z,$){this.topologyId=J,this.previousDescription=Z,this.newDescription=$}}eI.TopologyDescriptionChangedEvent=iI;class sI{constructor(J){this.topologyId=J}}eI.TopologyOpeningEvent=sI;class nI{constructor(J){this.topologyId=J}}eI.TopologyClosedEvent=nI;class tI{constructor(J,Z){this.connectionId=J,this.awaited=Z}}eI.ServerHeartbeatStartedEvent=tI;class rI{constructor(J,Z,$,X){this.connectionId=J,this.duration=Z,this.reply=$??{},this.awaited=X}}eI.ServerHeartbeatSucceededEvent=rI;class oI{constructor(J,Z,$,X){this.connectionId=J,this.duration=Z,this.failure=$,this.awaited=X}}eI.ServerHeartbeatFailedEvent=oI});var aQ=V((VN)=>{Object.defineProperty(VN,"__esModule",{value:!0});VN.ConnectionPoolClearedEvent=VN.ConnectionCheckedInEvent=VN.ConnectionCheckedOutEvent=VN.ConnectionCheckOutFailedEvent=VN.ConnectionCheckOutStartedEvent=VN.ConnectionClosedEvent=VN.ConnectionReadyEvent=VN.ConnectionCreatedEvent=VN.ConnectionPoolClosedEvent=VN.ConnectionPoolReadyEvent=VN.ConnectionPoolCreatedEvent=VN.ConnectionPoolMonitoringEvent=void 0;var j6=v1();class y0{constructor(J){this.time=new Date,this.address=J.address}}VN.ConnectionPoolMonitoringEvent=y0;class ZN extends y0{constructor(J){super(J);this.name=j6.CONNECTION_POOL_CREATED;const{maxConnecting:Z,maxPoolSize:$,minPoolSize:X,maxIdleTimeMS:Y,waitQueueTimeoutMS:Q}=J.options;this.options={maxConnecting:Z,maxPoolSize:$,minPoolSize:X,maxIdleTimeMS:Y,waitQueueTimeoutMS:Q}}}VN.ConnectionPoolCreatedEvent=ZN;class $N extends y0{constructor(J){super(J);this.name=j6.CONNECTION_POOL_READY}}VN.ConnectionPoolReadyEvent=$N;class XN extends y0{constructor(J){super(J);this.name=j6.CONNECTION_POOL_CLOSED}}VN.ConnectionPoolClosedEvent=XN;class YN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_CREATED,this.connectionId=Z.id}}VN.ConnectionCreatedEvent=YN;class QN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_READY,this.connectionId=Z.id}}VN.ConnectionReadyEvent=QN;class KN extends y0{constructor(J,Z,$,X){super(J);this.name=j6.CONNECTION_CLOSED,this.connectionId=Z.id,this.reason=$,this.serviceId=Z.serviceId,this.error=X??null}}VN.ConnectionClosedEvent=KN;class GN extends y0{constructor(J){super(J);this.name=j6.CONNECTION_CHECK_OUT_STARTED}}VN.ConnectionCheckOutStartedEvent=GN;class FN extends y0{constructor(J,Z,$){super(J);this.name=j6.CONNECTION_CHECK_OUT_FAILED,this.reason=Z,this.error=$}}VN.ConnectionCheckOutFailedEvent=FN;class qN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_CHECKED_OUT,this.connectionId=Z.id}}VN.ConnectionCheckedOutEvent=qN;class WN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_CHECKED_IN,this.connectionId=Z.id}}VN.ConnectionCheckedInEvent=WN;class HN extends y0{constructor(J,Z={}){super(J);this.name=j6.CONNECTION_POOL_CLEARED,this.serviceId=Z.serviceId,this.interruptInUseConnections=Z.interruptInUseConnections}}VN.ConnectionPoolClearedEvent=HN});var sQ=V((AN)=>{Object.defineProperty(AN,"__esModule",{value:!0});AN.WaitQueueTimeoutError=AN.PoolClearedOnNetworkError=AN.PoolClearedError=AN.PoolClosedError=void 0;var uZ=E();class UN extends uZ.MongoDriverError{constructor(J){super("Attempted to check out a connection from closed connection pool");this.address=J.address}get name(){return"MongoPoolClosedError"}}AN.PoolClosedError=UN;class iQ extends uZ.MongoNetworkError{constructor(J,Z){const $=Z?Z:`Connection pool for ${J.address} was cleared because another operation failed with: "${J.serverError?.message}"`;super($,J.serverError?{cause:J.serverError}:void 0);this.address=J.address,this.addErrorLabel(uZ.MongoErrorLabel.PoolRequstedRetry)}get name(){return"MongoPoolClearedError"}}AN.PoolClearedError=iQ;class MN extends iQ{constructor(J){super(J,`Connection to ${J.address} interrupted due to server monitor timeout`)}get name(){return"PoolClearedOnNetworkError"}}AN.PoolClearedOnNetworkError=MN;class jN extends uZ.MongoDriverError{constructor(J,Z){super(J);this.address=Z}get name(){return"MongoWaitQueueTimeoutError"}}AN.WaitQueueTimeoutError=jN});var IN=V((PN)=>{Object.defineProperty(PN,"__esModule",{value:!0});PN.ConnectionPool=PN.PoolState=void 0;var x7=import.meta.require("timers"),e0=v1(),A6=E(),wN=C0(),R9=y(),RN=lQ(),dZ=A9(),a1=aQ(),b7=sQ(),Ms=_3(),cZ=Symbol("server"),q8=Symbol("connections"),g7=Symbol("pending"),n8=Symbol("checkedOut"),y4=Symbol("minPoolSizeTimer"),m7=Symbol("generation"),DN=Symbol("serviceGenerations"),pZ=Symbol("connectionCounter"),lZ=Symbol("cancellationToken"),W8=Symbol("waitQueue"),aZ=Symbol("cancelled"),iZ=Symbol("metrics"),sZ=Symbol("processingWaitQueue"),L6=Symbol("poolState");PN.PoolState=Object.freeze({paused:"paused",ready:"ready",closed:"closed"});class J1 extends wN.TypedEventEmitter{constructor(J,Z){super();if(this.options=Object.freeze({...Z,connectionType:dZ.Connection,maxPoolSize:Z.maxPoolSize??100,minPoolSize:Z.minPoolSize??0,maxConnecting:Z.maxConnecting??2,maxIdleTimeMS:Z.maxIdleTimeMS??0,waitQueueTimeoutMS:Z.waitQueueTimeoutMS??0,minPoolSizeCheckFrequencyMS:Z.minPoolSizeCheckFrequencyMS??100,autoEncrypter:Z.autoEncrypter,metadata:Z.metadata}),this.options.minPoolSize>this.options.maxPoolSize)throw new A6.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this[L6]=PN.PoolState.paused,this[cZ]=J,this[q8]=new R9.List,this[g7]=0,this[n8]=new Set,this[y4]=void 0,this[m7]=0,this[DN]=new Map,this[pZ]=R9.makeCounter(1),this[lZ]=new wN.CancellationToken,this[lZ].setMaxListeners(Infinity),this[W8]=new R9.List,this[iZ]=new Ms.ConnectionPoolMetrics,this[sZ]=!1,this.mongoLogger=this[cZ].topology.client.mongoLogger,this.component="connection",process.nextTick(()=>{this.emitAndLog(J1.CONNECTION_POOL_CREATED,new a1.ConnectionPoolCreatedEvent(this))})}get address(){return this.options.hostAddress.toString()}get closed(){return this[L6]===PN.PoolState.closed}get generation(){return this[m7]}get totalConnectionCount(){return this.availableConnectionCount+this.pendingConnectionCount+this.currentCheckedOutCount}get availableConnectionCount(){return this[q8].length}get pendingConnectionCount(){return this[g7]}get currentCheckedOutCount(){return this[n8].size}get waitQueueSize(){return this[W8].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[DN]}get serverError(){return this[cZ].description.error}get checkedOutConnections(){return this[n8]}waitQueueErrorMetrics(){return this[iZ].info(this.options.maxPoolSize)}ready(){if(this[L6]!==PN.PoolState.paused)return;this[L6]=PN.PoolState.ready,this.emitAndLog(J1.CONNECTION_POOL_READY,new a1.ConnectionPoolReadyEvent(this)),x7.clearTimeout(this[y4]),this.ensureMinPoolSize()}checkOut(J){this.emitAndLog(J1.CONNECTION_CHECK_OUT_STARTED,new a1.ConnectionCheckOutStartedEvent(this));const Z=this.options.waitQueueTimeoutMS,$={callback:J,timeoutController:new R9.TimeoutController(Z)};$.timeoutController.signal.addEventListener("abort",()=>{$[aZ]=!0,$.timeoutController.clear(),this.emitAndLog(J1.CONNECTION_CHECK_OUT_FAILED,new a1.ConnectionCheckOutFailedEvent(this,"timeout")),$.callback(new b7.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))}),this[W8].push($),process.nextTick(()=>this.processWaitQueue())}checkIn(J){if(!this[n8].has(J))return;const Z=this.closed,$=this.connectionIsStale(J),X=!!(Z||$||J.closed);if(!X)J.markAvailable(),this[q8].unshift(J);if(this[n8].delete(J),this.emitAndLog(J1.CONNECTION_CHECKED_IN,new a1.ConnectionCheckedInEvent(this,J)),X){const Y=J.closed?"error":Z?"poolClosed":"stale";this.destroyConnection(J,Y)}process.nextTick(()=>this.processWaitQueue())}clear(J={}){if(this.closed)return;if(this.loadBalanced){const{serviceId:Y}=J;if(!Y)throw new A6.MongoRuntimeError("ConnectionPool.clear() called in load balanced mode with no serviceId.");const Q=Y.toHexString(),K=this.serviceGenerations.get(Q);if(K==null)throw new A6.MongoRuntimeError("Service generations are required in load balancer mode.");else this.serviceGenerations.set(Q,K+1);this.emitAndLog(J1.CONNECTION_POOL_CLEARED,new a1.ConnectionPoolClearedEvent(this,{serviceId:Y}));return}const Z=J.interruptInUseConnections??!1,$=this[m7];this[m7]+=1;const X=this[L6]===PN.PoolState.paused;if(this[L6]=PN.PoolState.paused,this.clearMinPoolSizeTimer(),!X)this.emitAndLog(J1.CONNECTION_POOL_CLEARED,new a1.ConnectionPoolClearedEvent(this,{interruptInUseConnections:Z}));if(Z)process.nextTick(()=>this.interruptInUseConnections($));this.processWaitQueue()}interruptInUseConnections(J){for(let Z of this[n8])if(Z.generation<=J)this.checkIn(Z),Z.onError(new b7.PoolClearedOnNetworkError(this))}close(J,Z){let $=J;const X=Z??J;if(typeof $==="function")$={};if($=Object.assign({force:!1},$),this.closed)return X();if(this[lZ].emit("cancel"),typeof this[pZ].return==="function")this[pZ].return(void 0);this[L6]=PN.PoolState.closed,this.clearMinPoolSizeTimer(),this.processWaitQueue(),R9.eachAsync(this[q8].toArray(),(Y,Q)=>{this.emitAndLog(J1.CONNECTION_CLOSED,new a1.ConnectionClosedEvent(this,Y,"poolClosed")),Y.destroy({force:!!$.force},Q)},(Y)=>{this[q8].clear(),this.emitAndLog(J1.CONNECTION_POOL_CLOSED,new a1.ConnectionPoolClosedEvent(this)),X(Y)})}withConnection(J,Z,$){if(J){Z(void 0,J,(X,Y)=>{if(X)return this.withReauthentication(X,J,Z,$);$(void 0,Y)});return}this.checkOut((X,Y)=>{Z(X,Y,(Q,K)=>{if(Q)if(Y)this.withReauthentication(Q,Y,Z,$);else $(Q);else $(void 0,K);if(Y)this.checkIn(Y)})})}withReauthentication(J,Z,$,X){if(J instanceof A6.MongoError&&J.code===A6.MONGODB_ERROR_CODES.Reauthenticate)this.reauthenticate(Z,$,(Y,Q)=>{if(Y)return X(Y);X(void 0,Q)});else X(J)}reauthenticate(J,Z,$){const X=J.authContext;if(!X)return $(new A6.MongoRuntimeError("No auth context found on connection."));const Y=X.credentials;if(!Y)return $(new A6.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate"));const Q=Y.resolveAuthMechanism(J.hello||void 0),K=RN.AUTH_PROVIDERS.get(Q.mechanism);if(!K)return $(new A6.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${Y.mechanism}`));K.reauth(X).then(()=>{Z(void 0,J,(G,F)=>{if(G)return $(G);$(void 0,F)})},(G)=>$(G))}clearMinPoolSizeTimer(){const J=this[y4];if(J)x7.clearTimeout(J)}destroyConnection(J,Z){this.emitAndLog(J1.CONNECTION_CLOSED,new a1.ConnectionClosedEvent(this,J,Z)),process.nextTick(()=>J.destroy({force:!1}))}connectionIsStale(J){const Z=J.serviceId;if(this.loadBalanced&&Z){const $=Z.toHexString(),X=this.serviceGenerations.get($);return J.generation!==X}return J.generation!==this[m7]}connectionIsIdle(J){return!!(this.options.maxIdleTimeMS&&J.idleTime>this.options.maxIdleTimeMS)}destroyConnectionIfPerished(J){const Z=this.connectionIsStale(J),$=this.connectionIsIdle(J);if(!Z&&!$&&!J.closed)return!1;const X=J.closed?"error":Z?"stale":"idle";return this.destroyConnection(J,X),!0}createConnection(J){const Z={...this.options,id:this[pZ].next().value,generation:this[m7],cancellationToken:this[lZ]};this[g7]++,this.emitAndLog(J1.CONNECTION_CREATED,new a1.ConnectionCreatedEvent(this,{id:Z.id})),RN.connect(Z,($,X)=>{if($||!X){if(this[g7]--,this.emitAndLog(J1.CONNECTION_CLOSED,new a1.ConnectionClosedEvent(this,{id:Z.id,serviceId:void 0},"error",$)),$ instanceof A6.MongoNetworkError||$ instanceof A6.MongoServerError)$.connectionGeneration=Z.generation;J($??new A6.MongoRuntimeError("Connection creation failed without error"));return}if(this[L6]!==PN.PoolState.ready){this[g7]--,X.destroy({force:!0}),J(this.closed?new b7.PoolClosedError(this):new b7.PoolClearedError(this));return}for(let Y of[...e0.APM_EVENTS,dZ.Connection.CLUSTER_TIME_RECEIVED])X.on(Y,(Q)=>this.emit(Y,Q));if(this.loadBalanced){X.on(dZ.Connection.PINNED,(Q)=>this[iZ].markPinned(Q)),X.on(dZ.Connection.UNPINNED,(Q)=>this[iZ].markUnpinned(Q));const Y=X.serviceId;if(Y){let Q;const K=Y.toHexString();if(Q=this.serviceGenerations.get(K))X.generation=Q;else this.serviceGenerations.set(K,0),X.generation=0}}X.markAvailable(),this.emitAndLog(J1.CONNECTION_READY,new a1.ConnectionReadyEvent(this,X)),this[g7]--,J(void 0,X);return})}ensureMinPoolSize(){const J=this.options.minPoolSize;if(this[L6]!==PN.PoolState.ready||J===0)return;if(this[q8].prune((Z)=>this.destroyConnectionIfPerished(Z)),this.totalConnectionCount<J&&this.pendingConnectionCount<this.options.maxConnecting)this.createConnection((Z,$)=>{if(Z)this[cZ].handleError(Z);if(!Z&&$)this[q8].push($),process.nextTick(()=>this.processWaitQueue());if(this[L6]===PN.PoolState.ready)x7.clearTimeout(this[y4]),this[y4]=x7.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)});else x7.clearTimeout(this[y4]),this[y4]=x7.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)}processWaitQueue(){if(this[sZ])return;this[sZ]=!0;while(this.waitQueueSize){const $=this[W8].first();if(!$){this[W8].shift();continue}if($[aZ]){this[W8].shift();continue}if(this[L6]!==PN.PoolState.ready){const Y=this.closed?"poolClosed":"connectionError",Q=this.closed?new b7.PoolClosedError(this):new b7.PoolClearedError(this);this.emitAndLog(J1.CONNECTION_CHECK_OUT_FAILED,new a1.ConnectionCheckOutFailedEvent(this,Y,Q)),$.timeoutController.clear(),this[W8].shift(),$.callback(Q);continue}if(!this.availableConnectionCount)break;const X=this[q8].shift();if(!X)break;if(!this.destroyConnectionIfPerished(X))this[n8].add(X),this.emitAndLog(J1.CONNECTION_CHECKED_OUT,new a1.ConnectionCheckedOutEvent(this,X)),$.timeoutController.clear(),this[W8].shift(),$.callback(void 0,X)}const{maxPoolSize:J,maxConnecting:Z}=this.options;while(this.waitQueueSize>0&&this.pendingConnectionCount<Z&&(J===0||this.totalConnectionCount<J)){const $=this[W8].shift();if(!$||$[aZ])continue;this.createConnection((X,Y)=>{if($[aZ]){if(!X&&Y)this[q8].push(Y)}else{if(X)this.emitAndLog(J1.CONNECTION_CHECK_OUT_FAILED,new a1.ConnectionCheckOutFailedEvent(this,"connectionError",X));else if(Y)this[n8].add(Y),this.emitAndLog(J1.CONNECTION_CHECKED_OUT,new a1.ConnectionCheckedOutEvent(this,Y));$.timeoutController.clear(),$.callback(X,Y)}process.nextTick(()=>this.processWaitQueue())})}this[sZ]=!1}}J1.CONNECTION_POOL_CREATED=e0.CONNECTION_POOL_CREATED;J1.CONNECTION_POOL_CLOSED=e0.CONNECTION_POOL_CLOSED;J1.CONNECTION_POOL_CLEARED=e0.CONNECTION_POOL_CLEARED;J1.CONNECTION_POOL_READY=e0.CONNECTION_POOL_READY;J1.CONNECTION_CREATED=e0.CONNECTION_CREATED;J1.CONNECTION_READY=e0.CONNECTION_READY;J1.CONNECTION_CLOSED=e0.CONNECTION_CLOSED;J1.CONNECTION_CHECK_OUT_STARTED=e0.CONNECTION_CHECK_OUT_STARTED;J1.CONNECTION_CHECK_OUT_FAILED=e0.CONNECTION_CHECK_OUT_FAILED;J1.CONNECTION_CHECKED_OUT=e0.CONNECTION_CHECKED_OUT;J1.CONNECTION_CHECKED_IN=e0.CONNECTION_CHECKED_IN;PN.ConnectionPool=J1});var eQ=V((BN)=>{var Ps=function(J,Z){if(J===-1)return Z;const $=0.2;return $*Z+(1-$)*J},nQ=function(J,Z){if(J.loadBalanced)return;if(Z instanceof U1.MongoNetworkError&&!(Z instanceof U1.MongoNetworkTimeoutError))J.monitor?.reset();J.emit(P0.DESCRIPTION_RECEIVED,new oQ.ServerDescription(J.description.hostAddress,void 0,{error:Z}))},Ts=function(J,Z){if(Z)return Z.inTransaction()||"aggregate"in J||"find"in J||"getMore"in J||"listCollections"in J||"listIndexes"in J;return!1},Is=function(J,Z){if(Z.serviceId)return Z.generation!==J.serviceGenerations.get(Z.serviceId.toHexString());return Z.generation!==J.generation},Ns=function(J,Z){const $=Z.topologyVersion,X=J.description.topologyVersion;return oQ.compareTopologyVersion(X,$)<0},tQ=function(J,Z){return J&&J.inTransaction()&&!rQ.isTransactionCommand(Z)},NN=function(J){return J.s.options.retryWrites!==!1},Bs=function(J,Z,$,X,Y){const Q=X?.session;return function K(G,F){if(G==null&&F!=null)return Y(void 0,F);if(X!=null&&"noResponse"in X&&X.noResponse===!0)return Y(void 0,null);if(!G)return Y(new U1.MongoUnexpectedServerResponseError("Empty response with no error"));if(!(G instanceof U1.MongoError))return Y(G);if(Is(J.pool,Z))return Y(G);if(G instanceof U1.MongoNetworkError){if(Q&&!Q.hasEnded&&Q.serverSession)Q.serverSession.isDirty=!0;if(tQ(Q,$)&&!G.hasErrorLabel(U1.MongoErrorLabel.TransientTransactionError))G.addErrorLabel(U1.MongoErrorLabel.TransientTransactionError);if((NN(J.topology)||rQ.isTransactionCommand($))&&nZ.supportsRetryableWrites(J)&&!tQ(Q,$))G.addErrorLabel(U1.MongoErrorLabel.RetryableWriteError)}else if((NN(J.topology)||rQ.isTransactionCommand($))&&U1.needsRetryableWriteLabel(G,nZ.maxWireVersion(J))&&!tQ(Q,$))G.addErrorLabel(U1.MongoErrorLabel.RetryableWriteError);if(Q&&Q.isPinned&&G.hasErrorLabel(U1.MongoErrorLabel.TransientTransactionError))Q.unpin({force:!0});return J.handleError(G,Z),Y(G)}};Object.defineProperty(BN,"__esModule",{value:!0});BN.Server=void 0;var js=import.meta.require("util"),As=A9(),Ls=IN(),ws=sQ(),f6=v1(),U1=E(),Rs=C0(),rQ=g3(),nZ=y(),F1=d0(),Ds=JK(),oQ=x5(),D9=nZ.makeStateMachine({[F1.STATE_CLOSED]:[F1.STATE_CLOSED,F1.STATE_CONNECTING],[F1.STATE_CONNECTING]:[F1.STATE_CONNECTING,F1.STATE_CLOSING,F1.STATE_CONNECTED,F1.STATE_CLOSED],[F1.STATE_CONNECTED]:[F1.STATE_CONNECTED,F1.STATE_CLOSING,F1.STATE_CLOSED],[F1.STATE_CLOSING]:[F1.STATE_CLOSING,F1.STATE_CLOSED]});class P0 extends Rs.TypedEventEmitter{constructor(J,Z,$){super();this.commandAsync=js.promisify((Y,Q,K,G)=>this.command(Y,Q,K,G)),this.serverApi=$.serverApi;const X={hostAddress:Z.hostAddress,...$};this.topology=J,this.pool=new Ls.ConnectionPool(this,X),this.s={description:Z,options:$,state:F1.STATE_CLOSED,operationCount:0};for(let Y of[...f6.CMAP_EVENTS,...f6.APM_EVENTS])this.pool.on(Y,(Q)=>this.emit(Y,Q));if(this.pool.on(As.Connection.CLUSTER_TIME_RECEIVED,(Y)=>{this.clusterTime=Y}),this.loadBalanced){this.monitor=null;return}this.monitor=new Ds.Monitor(this,this.s.options);for(let Y of f6.HEARTBEAT_EVENTS)this.monitor.on(Y,(Q)=>this.emit(Y,Q));this.monitor.on("resetServer",(Y)=>nQ(this,Y)),this.monitor.on(P0.SERVER_HEARTBEAT_SUCCEEDED,(Y)=>{if(this.emit(P0.DESCRIPTION_RECEIVED,new oQ.ServerDescription(this.description.hostAddress,Y.reply,{roundTripTime:Ps(this.description.roundTripTime,Y.duration)})),this.s.state===F1.STATE_CONNECTING)D9(this,F1.STATE_CONNECTED),this.emit(P0.CONNECT,this)})}get clusterTime(){return this.topology.clusterTime}set clusterTime(J){this.topology.clusterTime=J}get description(){return this.s.description}get name(){return this.s.description.address}get autoEncrypter(){if(this.s.options&&this.s.options.autoEncrypter)return this.s.options.autoEncrypter;return}get loadBalanced(){return this.topology.description.type===F1.TopologyType.LoadBalanced}connect(){if(this.s.state!==F1.STATE_CLOSED)return;if(D9(this,F1.STATE_CONNECTING),!this.loadBalanced)this.monitor?.connect();else D9(this,F1.STATE_CONNECTED),this.emit(P0.CONNECT,this)}destroy(J,Z){if(typeof J==="function")Z=J,J={force:!1};if(J=Object.assign({},{force:!1},J),this.s.state===F1.STATE_CLOSED){if(typeof Z==="function")Z();return}if(D9(this,F1.STATE_CLOSING),!this.loadBalanced)this.monitor?.close();this.pool.close(J,($)=>{if(D9(this,F1.STATE_CLOSED),this.emit("closed"),typeof Z==="function")Z($)})}requestCheck(){if(!this.loadBalanced)this.monitor?.requestCheck()}command(J,Z,$,X){if(X==null)throw new U1.MongoInvalidArgumentError("Callback must be provided");if(J.db==null||typeof J==="string")throw new U1.MongoInvalidArgumentError("Namespace must not be a string");if(this.s.state===F1.STATE_CLOSING||this.s.state===F1.STATE_CLOSED){X(new U1.MongoServerClosedError);return}const Y=Object.assign({},$,{wireProtocolCommand:!1});if(Y.omitReadPreference)delete Y.readPreference;const Q=Y.session,K=Q?.pinnedConnection;if(this.loadBalanced&&Q&&K==null&&Ts(Z,Q)){this.pool.checkOut((G,F)=>{if(G||F==null){if(X)return X(G);return}Q.pin(F),this.command(J,Z,Y,X)});return}this.incrementOperationCount(),this.pool.withConnection(K,(G,F,q)=>{if(G||!F){if(this.decrementOperationCount(),!G)return q(new U1.MongoRuntimeError("Failed to create connection without error"));if(!(G instanceof ws.PoolClearedError))this.handleError(G);return q(G)}F.command(J,Z,Y,Bs(this,F,Z,Y,(W,H)=>{this.decrementOperationCount(),q(W,H)}))},X)}handleError(J,Z){if(!(J instanceof U1.MongoError))return;if(J.connectionGeneration&&J.connectionGeneration<this.pool.generation)return;const X=J instanceof U1.MongoNetworkError&&!(J instanceof U1.MongoNetworkTimeoutError),Y=U1.isNetworkErrorBeforeHandshake(J),Q=J.hasErrorLabel(U1.MongoErrorLabel.HandshakeError);if(X||Y||Q){if(!this.loadBalanced)J.addErrorLabel(U1.MongoErrorLabel.ResetPool),nQ(this,J);else if(Z)this.pool.clear({serviceId:Z.serviceId})}else if(U1.isSDAMUnrecoverableError(J)){if(Ns(this,J)){const K=nZ.maxWireVersion(this)<=7||U1.isNodeShuttingDownError(J);if(this.loadBalanced&&Z&&K)this.pool.clear({serviceId:Z.serviceId});if(!this.loadBalanced){if(K)J.addErrorLabel(U1.MongoErrorLabel.ResetPool);nQ(this,J),process.nextTick(()=>this.requestCheck())}}}}decrementOperationCount(){return this.s.operationCount-=1}incrementOperationCount(){return this.s.operationCount+=1}}P0.SERVER_HEARTBEAT_STARTED=f6.SERVER_HEARTBEAT_STARTED;P0.SERVER_HEARTBEAT_SUCCEEDED=f6.SERVER_HEARTBEAT_SUCCEEDED;P0.SERVER_HEARTBEAT_FAILED=f6.SERVER_HEARTBEAT_FAILED;P0.CONNECT=f6.CONNECT;P0.DESCRIPTION_RECEIVED=f6.DESCRIPTION_RECEIVED;P0.CLOSED=f6.CLOSED;P0.ENDED=f6.ENDED;BN.Server=P0});var JK=V((fN)=>{var N9=function(J){return J.s.state===i1.STATE_CLOSED||J.s.state===i1.STATE_CLOSING},SN=function(J){J[v6]?.stop(),J[v6]=void 0,J.rttPinger?.close(),J.rttPinger=void 0,J[f4].emit("cancel"),J[H8]?.destroy({force:!0}),J[H8]=void 0},$K=function(J,Z){if(Z==null)return!1;const $=J.options.serverMonitoringMode;if($===fN.ServerMonitoringMode.poll)return!1;if($===fN.ServerMonitoringMode.stream)return!0;if(J.isRunningInFaasEnv)return!1;return!0},Ss=function(J,Z){let $=_0.now();const X=J[tZ].description.topologyVersion,Y=$K(J,X);J.emit(T9.Server.SERVER_HEARTBEAT_STARTED,new P9.ServerHeartbeatStartedEvent(J.address,Y));function Q(G,F){J[H8]?.destroy({force:!0}),J[H8]=void 0,J.emit(T9.Server.SERVER_HEARTBEAT_FAILED,new P9.ServerHeartbeatFailedEvent(J.address,_0.calculateDurationInMs($),G,F));const q=!(G instanceof u7.MongoError)?new u7.MongoError(u7.MongoError.buildErrorMessage(G),{cause:G}):G;if(q.addErrorLabel(u7.MongoErrorLabel.ResetPool),q instanceof u7.MongoNetworkTimeoutError)q.addErrorLabel(u7.MongoErrorLabel.InterruptInUseConnections);J.emit("resetServer",q),Z(G)}const K=J[H8];if(K&&!K.closed){const{serverApi:G,helloOk:F}=K,q=J.options.connectTimeoutMS,W=J.options.heartbeatFrequencyMS,H={[G?.version||F?"hello":ZK.LEGACY_HELLO_COMMAND]:1,...Y&&X?{maxAwaitTimeMS:W,topologyVersion:Os(X)}:{}},U=Y?{socketTimeoutMS:q?q+W:0,exhaustAllowed:!0}:{socketTimeoutMS:q};if(Y&&J.rttPinger==null)J.rttPinger=new YK(J[f4],Object.assign({heartbeatFrequencyMS:J.options.heartbeatFrequencyMS},J.connectOptions));K.command(_0.ns("admin.$cmd"),H,U,(j,z)=>{if(j)return Q(j,Y);if(!("isWritablePrimary"in z))z.isWritablePrimary=z[ZK.LEGACY_HELLO_COMMAND];const A=Y&&J.rttPinger?J.rttPinger.roundTripTime:_0.calculateDurationInMs($);if(J.emit(T9.Server.SERVER_HEARTBEAT_SUCCEEDED,new P9.ServerHeartbeatSucceededEvent(J.address,A,z,Y)),Y)J.emit(T9.Server.SERVER_HEARTBEAT_STARTED,new P9.ServerHeartbeatStartedEvent(J.address,!0)),$=_0.now();else J.rttPinger?.close(),J.rttPinger=void 0,Z(void 0,z)});return}kN.connect(J.connectOptions,(G,F)=>{if(G){J[H8]=void 0,Q(G,!1);return}if(F){if(F.isMonitoringConnection=!0,N9(J)){F.destroy({force:!0});return}J[H8]=F,J.emit(T9.Server.SERVER_HEARTBEAT_SUCCEEDED,new P9.ServerHeartbeatSucceededEvent(J.address,_0.calculateDurationInMs($),F.hello,$K(J,F.hello?.topologyVersion))),Z(void 0,F.hello)}})},ON=function(J){return(Z)=>{if(J.s.state===_4){process.nextTick(Z);return}c7(J,_4);function $(){if(!N9(J))c7(J,d7);Z()}Ss(J,(X,Y)=>{if(X){if(J[tZ].description.type===i1.ServerType.Unknown)return $()}if($K(J,Y?.topologyVersion))t8.setTimeout(()=>{if(!N9(J))J[v6]?.wake()},0);$()})}},Os=function(J){return{processId:J.processId,counter:CN.Long.isLong(J.counter)?J.counter:CN.Long.fromNumber(J.counter)}},_N=function(J,Z){const $=_0.now();Z.cancellationToken=J[f4];const X=Z.heartbeatFrequencyMS;if(J.closed)return;function Y(G){if(J.closed){G?.destroy({force:!0});return}if(J.connection==null)J.connection=G;J[I9]=_0.calculateDurationInMs($),J[v6]=t8.setTimeout(()=>_N(J,Z),X)}const Q=J.connection;if(Q==null){kN.connect(Z,(G,F)=>{if(G){J.connection=void 0,J[I9]=0;return}Y(F)});return}const K=Q.serverApi?.version||Q.helloOk?"hello":ZK.LEGACY_HELLO_COMMAND;Q.commandAsync(_0.ns("admin.$cmd"),{[K]:1},void 0).then(()=>Y(),()=>{J.connection?.destroy({force:!0}),J.connection=void 0,J[I9]=0;return})};Object.defineProperty(fN,"__esModule",{value:!0});fN.MonitorInterval=fN.RTTPinger=fN.Monitor=fN.ServerMonitoringMode=void 0;var t8=import.meta.require("timers"),CN=H1(),kN=lQ(),Es=A9(),Cs=$Q(),ZK=v1(),u7=E(),hN=C0(),_0=y(),i1=d0(),P9=mZ(),T9=eQ(),tZ=Symbol("server"),v6=Symbol("monitorId"),H8=Symbol("connection"),f4=Symbol("cancellationToken"),I9=Symbol("roundTripTime"),d7="idle",_4="monitoring",c7=_0.makeStateMachine({[i1.STATE_CLOSING]:[i1.STATE_CLOSING,d7,i1.STATE_CLOSED],[i1.STATE_CLOSED]:[i1.STATE_CLOSED,_4],[d7]:[d7,_4,i1.STATE_CLOSING],[_4]:[_4,d7,i1.STATE_CLOSING]}),hs=new Set([i1.STATE_CLOSING,i1.STATE_CLOSED,_4]);fN.ServerMonitoringMode=Object.freeze({auto:"auto",poll:"poll",stream:"stream"});class yN extends hN.TypedEventEmitter{get connection(){return this[H8]}constructor(J,Z){super();this[tZ]=J,this[H8]=void 0,this[f4]=new hN.CancellationToken,this[f4].setMaxListeners(Infinity),this[v6]=void 0,this.s={state:i1.STATE_CLOSED},this.address=J.description.address,this.options=Object.freeze({connectTimeoutMS:Z.connectTimeoutMS??1e4,heartbeatFrequencyMS:Z.heartbeatFrequencyMS??1e4,minHeartbeatFrequencyMS:Z.minHeartbeatFrequencyMS??500,serverMonitoringMode:Z.serverMonitoringMode}),this.isRunningInFaasEnv=Cs.getFAASEnv()!=null;const $=this[f4],X=Object.assign({id:"<monitor>",generation:J.pool.generation,connectionType:Es.Connection,cancellationToken:$,hostAddress:J.description.hostAddress},Z,{raw:!1,useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!0});if(delete X.credentials,X.autoEncrypter)delete X.autoEncrypter;this.connectOptions=Object.freeze(X)}connect(){if(this.s.state!==i1.STATE_CLOSED)return;const J=this.options.heartbeatFrequencyMS,Z=this.options.minHeartbeatFrequencyMS;this[v6]=new rZ(ON(this),{heartbeatFrequencyMS:J,minHeartbeatFrequencyMS:Z,immediate:!0})}requestCheck(){if(hs.has(this.s.state))return;this[v6]?.wake()}reset(){const J=this[tZ].description.topologyVersion;if(N9(this)||J==null)return;c7(this,i1.STATE_CLOSING),SN(this),c7(this,d7);const Z=this.options.heartbeatFrequencyMS,$=this.options.minHeartbeatFrequencyMS;this[v6]=new rZ(ON(this),{heartbeatFrequencyMS:Z,minHeartbeatFrequencyMS:$})}close(){if(N9(this))return;c7(this,i1.STATE_CLOSING),SN(this),this.emit("close"),c7(this,i1.STATE_CLOSED)}}fN.Monitor=yN;class YK{constructor(J,Z){this.connection=void 0,this[f4]=J,this[I9]=0,this.closed=!1;const $=Z.heartbeatFrequencyMS;this[v6]=t8.setTimeout(()=>_N(this,Z),$)}get roundTripTime(){return this[I9]}close(){this.closed=!0,t8.clearTimeout(this[v6]),this.connection?.destroy({force:!0}),this.connection=void 0}}fN.RTTPinger=YK;class rZ{constructor(J,Z={}){if(this.isExpeditedCallToFnScheduled=!1,this.stopped=!1,this.isExecutionInProgress=!1,this.hasExecutedOnce=!1,this._executeAndReschedule=()=>{if(this.stopped)return;if(this.timerId)t8.clearTimeout(this.timerId);this.isExpeditedCallToFnScheduled=!1,this.isExecutionInProgress=!0,this.fn(()=>{this.lastExecutionEnded=_0.now(),this.isExecutionInProgress=!1,this._reschedule(this.heartbeatFrequencyMS)})},this.fn=J,this.lastExecutionEnded=(-Infinity),this.heartbeatFrequencyMS=Z.heartbeatFrequencyMS??1000,this.minHeartbeatFrequencyMS=Z.minHeartbeatFrequencyMS??500,Z.immediate)this._executeAndReschedule();else this._reschedule(void 0)}wake(){const Z=_0.now()-this.lastExecutionEnded;if(Z<0)return this._executeAndReschedule();if(this.isExecutionInProgress)return;if(this.isExpeditedCallToFnScheduled)return;if(Z<this.minHeartbeatFrequencyMS){this.isExpeditedCallToFnScheduled=!0,this._reschedule(this.minHeartbeatFrequencyMS-Z);return}this._executeAndReschedule()}stop(){if(this.stopped=!0,this.timerId)t8.clearTimeout(this.timerId),this.timerId=void 0;this.lastExecutionEnded=(-Infinity),this.isExpeditedCallToFnScheduled=!1}toString(){return JSON.stringify(this)}toJSON(){const J=_0.now(),Z=J-this.lastExecutionEnded;return{timerId:this.timerId!=null?"set":"cleared",lastCallTime:this.lastExecutionEnded,isExpeditedCheckScheduled:this.isExpeditedCallToFnScheduled,stopped:this.stopped,heartbeatFrequencyMS:this.heartbeatFrequencyMS,minHeartbeatFrequencyMS:this.minHeartbeatFrequencyMS,currentTime:J,timeSinceLastCall:Z}}_reschedule(J){if(this.stopped)return;if(this.timerId)t8.clearTimeout(this.timerId);this.timerId=t8.setTimeout(this._executeAndReschedule,J||this.heartbeatFrequencyMS)}}fN.MonitorInterval=rZ});var HK=V((dN)=>{async function ds(J){if(typeof J.srvHost!=="string")throw new S.MongoAPIError('Option "srvHost" must not be empty');if(J.srvHost.split(".").length<3)throw new S.MongoAPIError("URI must include hostname, domain name, and tld");const Z=J.srvHost,$=await xN.promises.resolveSrv(`_${J.srvServiceName}._tcp.${Z}`);if($.length===0)throw new S.MongoAPIError("No addresses found at host");for(let{name:W}of $)if(!H0.matchesParentDomain(W,Z))throw new S.MongoAPIError("Server record does not share hostname with parent URI");const X=$.map((W)=>H0.HostAddress.fromString(`${W.name}:${W.port??27017}`));GK(X,J,!0);let Y;try{Y=await xN.promises.resolveTxt(Z)}catch(W){if(W.code!=="ENODATA"&&W.code!=="ENOTFOUND")throw W;return X}if(Y.length>1)throw new S.MongoParseError("Multiple text records not allowed");const Q=new fs.URLSearchParams(Y[0].join(""));if([...Q.keys()].some((W)=>!KK.includes(W)))throw new S.MongoParseError(`Text record may only set any of: ${KK.join(", ")}`);if(KK.some((W)=>Q.get(W)===""))throw new S.MongoParseError("Cannot have empty URI params in DNS TXT Record");const G=Q.get("authSource")??void 0,F=Q.get("replicaSet")??void 0,q=Q.get("loadBalanced")??void 0;if(!J.userSpecifiedAuthSource&&G&&J.credentials&&!x6.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(J.credentials.mechanism))J.credentials=p7.MongoCredentials.merge(J.credentials,{source:G});if(!J.userSpecifiedReplicaSet&&F)J.replicaSet=F;if(q==="true")J.loadBalanced=!0;if(J.replicaSet&&J.srvMaxHosts>0)throw new S.MongoParseError("Cannot combine replicaSet option with srvMaxHosts");return GK(X,J,!0),X}var cs=function(J){if(!J)return;const Z=($,X)=>{if(J.has($)&&J.has(X))throw new S.MongoAPIError(`The '${$}' option cannot be used with the '${X}' option`)};Z("tlsInsecure","tlsAllowInvalidCertificates"),Z("tlsInsecure","tlsAllowInvalidHostnames"),Z("tlsInsecure","tlsDisableCertificateRevocationCheck"),Z("tlsInsecure","tlsDisableOCSPEndpointCheck"),Z("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck"),Z("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck"),Z("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")},z8=function(J,Z){if(typeof Z==="boolean")return Z;switch(Z){case"true":return!0;case"false":return!1;default:throw new S.MongoParseError(`${J} must be either "true" or "false"`)}},qK=function(J,Z){const $=H0.parseInteger(Z);if($!=null)return $;throw new S.MongoParseError(`Expected ${J} to be stringified int value, got: ${Z}`)},B9=function(J,Z){const $=qK(J,Z);if($<0)throw new S.MongoParseError(`${J} can only be a positive int value, got: ${Z}`);return $};function*mN(J){if(J==="")return;const Z=J.split(",");for(let $ of Z){const[X,Y]=$.split(/:(.*)/);if(Y==null)throw new S.MongoParseError("Cannot have undefined values in key value pairs");yield[X,Y]}}var ps=function(J,Z=void 0,$={}){if(Z!=null&&!(Z instanceof oZ.MongoClient))$=Z,Z=void 0;if($.useBigInt64&&typeof $.promoteLongs==="boolean"&&!$.promoteLongs)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");if($.useBigInt64&&typeof $.promoteValues==="boolean"&&!$.promoteValues)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");const X=new _s.default(J),{hosts:Y,isSRV:Q}=X,K=Object.create(null);for(let w of Object.getOwnPropertySymbols($))if(dN.FEATURE_FLAGS.has(w))K[w]=$[w];K.hosts=Q?[]:Y.map(H0.HostAddress.fromString);const G=new E9;if(X.pathname!=="/"&&X.pathname!==""){const w=decodeURIComponent(X.pathname[0]==="/"?X.pathname.slice(1):X.pathname);if(w)G.set("dbName",[w])}if(X.username!==""){const w={username:decodeURIComponent(X.username)};if(typeof X.password==="string")w.password=decodeURIComponent(X.password);G.set("auth",[w])}for(let w of X.searchParams.keys()){const N=X.searchParams.getAll(w),P=/readPreferenceTags/i.test(w);if(!P&&N.length>1)throw new S.MongoInvalidArgumentError(`URI option "${w}" cannot appear more than once in the connection string`);if(!P&&N.includes(""))throw new S.MongoAPIError(`URI option "${w}" cannot be specified with no value`);if(!G.has(w))G.set(w,N)}const F=new E9(Object.entries($).filter(([,w])=>w!=null));if(G.has("serverApi"))throw new S.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client");const q=G.get("authMechanismProperties");if(q){for(let w of q)if(/(^|,)ALLOWED_HOSTS:/.test(w))throw new S.MongoParseError("Auth mechanism property ALLOWED_HOSTS is not allowed in the connection string.")}if(F.has("loadBalanced"))throw new S.MongoParseError("loadBalanced is only a valid option in the URI");const W=new E9,H=new Set([...G.keys(),...F.keys()]);for(let w of H){const N=[],P=F.get(w);if(P!=null)N.push(P);const f=G.get(w)??[];N.push(...f),W.set(w,N)}if(W.has("tls")||W.has("ssl")){const w=(W.get("tls")||[]).concat(W.get("ssl")||[]).map(z8.bind(null,"tls/ssl"));if(new Set(w).size!==1)throw new S.MongoParseError("All values of tls/ssl must be the same.")}cs(W);const U=H0.setDifference(H,Array.from(Object.keys(dN.OPTIONS)).map((w)=>w.toLowerCase()));if(U.size!==0){const w=U.size>1?"options":"option",N=U.size>1?"are":"is";throw new S.MongoParseError(`${w} ${Array.from(U).join(", ")} ${N} not supported`)}for(let[w,N]of Object.entries(dN.OPTIONS)){const P=W.get(w);if(!P||P.length===0){if(dN.DEFAULT_OPTIONS.has(w))uN(K,w,N,[dN.DEFAULT_OPTIONS.get(w)])}else{const{deprecated:f}=N;if(f){const $0=typeof f==="string"?`: ${f}`:"";H0.emitWarning(`${w} is a deprecated option${$0}`)}uN(K,w,N,P)}}if(K.credentials){const w=K.credentials.mechanism===x6.AuthMechanism.MONGODB_GSSAPI,N=K.credentials.mechanism===x6.AuthMechanism.MONGODB_X509,P=K.credentials.mechanism===x6.AuthMechanism.MONGODB_AWS,f=K.credentials.mechanism===x6.AuthMechanism.MONGODB_OIDC;if((w||N)&&W.has("authSource")&&K.credentials.source!=="$external")throw new S.MongoParseError(`authMechanism ${K.credentials.mechanism} requires an authSource of '\$external'`);if(!(w||N||P||f)&&K.dbName&&!W.has("authSource"))K.credentials=p7.MongoCredentials.merge(K.credentials,{source:K.dbName});if(P&&K.credentials.username&&!K.credentials.password)throw new S.MongoMissingCredentialsError(`When using ${K.credentials.mechanism} password must be set when a username is specified`);if(K.credentials.validate(),K.credentials.password===""&&K.credentials.username===""&&K.credentials.mechanism===x6.AuthMechanism.MONGODB_DEFAULT&&Object.keys(K.credentials.mechanismProperties).length===0)delete K.credentials}if(!K.dbName)K.dbName="test";if(GK(Y,K,Q),Z&&K.autoEncryption)gN.Encrypter.checkForMongoCrypt(),K.encrypter=new gN.Encrypter(Z,J,$),K.autoEncrypter=K.encrypter.autoEncrypter;if(K.userSpecifiedAuthSource=F.has("authSource")||G.has("authSource"),K.userSpecifiedReplicaSet=F.has("replicaSet")||G.has("replicaSet"),Q){if(K.srvHost=Y[0],K.directConnection)throw new S.MongoAPIError("SRV URI does not support directConnection");if(K.srvMaxHosts>0&&typeof K.replicaSet==="string")throw new S.MongoParseError("Cannot use srvMaxHosts option with replicaSet");const w=!F.has("tls")&&!G.has("tls"),N=!F.has("ssl")&&!G.has("ssl");if(w&&N)K.tls=!0}else if(G.has("srvMaxHosts")||F.has("srvMaxHosts")||G.has("srvServiceName")||F.has("srvServiceName"))throw new S.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string");if(K.directConnection&&K.hosts.length!==1)throw new S.MongoParseError("directConnection option requires exactly one host");if(!K.proxyHost&&(K.proxyPort||K.proxyUsername||K.proxyPassword))throw new S.MongoParseError("Must specify proxyHost if other proxy options are passed");if(K.proxyUsername&&!K.proxyPassword||!K.proxyUsername&&K.proxyPassword)throw new S.MongoParseError("Can only specify both of proxy username/password or neither");if(["proxyHost","proxyPort","proxyUsername","proxyPassword"].map((w)=>G.get(w)??[]).some((w)=>w.length>1))throw new S.MongoParseError("Proxy options cannot be specified multiple times in the connection string");const z=Symbol.for("@@mdb.enableMongoLogger");K[z]=K[z]??!1;let A={},T={};if(K[z])A={MONGODB_LOG_COMMAND:process.env.MONGODB_LOG_COMMAND,MONGODB_LOG_TOPOLOGY:process.env.MONGODB_LOG_TOPOLOGY,MONGODB_LOG_SERVER_SELECTION:process.env.MONGODB_LOG_SERVER_SELECTION,MONGODB_LOG_CONNECTION:process.env.MONGODB_LOG_CONNECTION,MONGODB_LOG_CLIENT:process.env.MONGODB_LOG_CLIENT,MONGODB_LOG_ALL:process.env.MONGODB_LOG_ALL,MONGODB_LOG_MAX_DOCUMENT_LENGTH:process.env.MONGODB_LOG_MAX_DOCUMENT_LENGTH,MONGODB_LOG_PATH:process.env.MONGODB_LOG_PATH,...K[Symbol.for("@@mdb.internalLoggerConfig")]},T={mongodbLogPath:K.mongodbLogPath,mongodbLogComponentSeverities:K.mongodbLogComponentSeverities,mongodbLogMaxDocumentLength:K.mongodbLogMaxDocumentLength};return K.mongoLoggerOptions=xs.MongoLogger.resolveOptions(A,T),K.metadata=vs.makeClientMetadata(K),K},GK=function(J,Z,$){if(Z.loadBalanced){if(J.length>1)throw new S.MongoParseError(gs);if(Z.replicaSet)throw new S.MongoParseError(ms);if(Z.directConnection)throw new S.MongoParseError(us);if($&&Z.srvMaxHosts>0)throw new S.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}return},uN=function(J,Z,$,X){const{target:Y,type:Q,transform:K}=$,G=Y??Z;switch(Q){case"boolean":J[G]=z8(G,X[0]);break;case"int":J[G]=qK(G,X[0]);break;case"uint":J[G]=B9(G,X[0]);break;case"string":if(X[0]==null)break;J[G]=String(X[0]);break;case"record":if(!H0.isRecord(X[0]))throw new S.MongoParseError(`${G} must be an object`);J[G]=X[0];break;case"any":J[G]=X[0];break;default:{if(!K)throw new S.MongoParseError("Descriptors missing a type must define a transform");const F=K({name:G,options:J,values:X});J[G]=F;break}}};Object.defineProperty(dN,"__esModule",{value:!0});dN.FEATURE_FLAGS=dN.DEFAULT_OPTIONS=dN.OPTIONS=dN.parseOptions=dN.resolveSRVRecord=void 0;var xN=import.meta.require("dns"),_s=oY(),fs=import.meta.require("url"),p7=KZ(),x6=O6(),vs=$Q(),bN=N7(),gN=MP(),S=E(),oZ=C4(),xs=RQ(),QK=c0(),r8=k1(),bs=JK(),H0=y(),V8=A0(),KK=["authSource","replicaSet","loadBalanced"],gs="loadBalanced option only supported with a single host in the URI",ms="loadBalanced option not supported with a replicaSet option",us="loadBalanced option not supported when directConnection is provided";dN.resolveSRVRecord=ds;class E9 extends Map{constructor(J=[]){super(J.map(([Z,$])=>[Z.toLowerCase(),$]))}has(J){return super.has(J.toLowerCase())}get(J){return super.get(J.toLowerCase())}set(J,Z){return super.set(J.toLowerCase(),Z)}delete(J){return super.delete(J.toLowerCase())}}dN.parseOptions=ps;dN.OPTIONS={appName:{type:"string"},auth:{target:"credentials",transform({name:J,options:Z,values:[$]}){if(!H0.isRecord($,["username","password"]))throw new S.MongoParseError(`${J} must be an object with 'username' and 'password' properties`);return p7.MongoCredentials.merge(Z.credentials,{username:$.username,password:$.password})}},authMechanism:{target:"credentials",transform({options:J,values:[Z]}){const $=Object.values(x6.AuthMechanism),[X]=$.filter((K)=>K.match(RegExp(String.raw`\b${Z}\b`,"i")));if(!X)throw new S.MongoParseError(`authMechanism one of ${$}, got ${Z}`);let Y=J.credentials?.source;if(X===x6.AuthMechanism.MONGODB_PLAIN||x6.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(X))Y="$external";let Q=J.credentials?.password;if(X===x6.AuthMechanism.MONGODB_X509&&Q==="")Q=void 0;return p7.MongoCredentials.merge(J.credentials,{mechanism:X,source:Y,password:Q})}},authMechanismProperties:{target:"credentials",transform({options:J,values:Z}){let $=Object.create(null);for(let X of Z)if(typeof X==="string")for(let[Y,Q]of mN(X))try{$[Y]=z8(Y,Q)}catch{$[Y]=Q}else{if(!H0.isRecord(X))throw new S.MongoParseError("AuthMechanismProperties must be an object");$={...X}}return p7.MongoCredentials.merge(J.credentials,{mechanismProperties:$})}},authSource:{target:"credentials",transform({options:J,values:[Z]}){const $=String(Z);return p7.MongoCredentials.merge(J.credentials,{source:$})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[J]}){const Z=typeof J==="string"?{version:J}:J,$=Z&&Z.version;if(!$)throw new S.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(oZ.ServerApiVersion).join('", "')}"]`);if(!Object.values(oZ.ServerApiVersion).some((X)=>X===$))throw new S.MongoParseError(`Invalid server API version=${$}; must be in the following enum: ["${Object.values(oZ.ServerApiVersion).join('", "')}"]`);return Z}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:J}){const Z=new Set;for(let $ of J){const X=typeof $==="string"?$.split(","):$;if(!Array.isArray(X))throw new S.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings");for(let Y of X)if(Object.keys(bN.Compressor).includes(String(Y)))Z.add(String(Y));else throw new S.MongoInvalidArgumentError(`${Y} is not a valid compression mechanism. Must be one of: ${Object.keys(bN.Compressor)}.`)}return[...Z]}},connectTimeoutMS:{default:30000,type:"uint"},dbName:{type:"string"},directConnection:{default:!1,type:"boolean"},driverInfo:{default:{},type:"record"},enableUtf8Validation:{type:"boolean",default:!0},family:{transform({name:J,values:[Z]}){const $=qK(J,Z);if($===4||$===6)return $;throw new S.MongoParseError(`Option 'family' must be 4 or 6 got ${$}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:!1,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:J,options:Z,values:[$]}){const X=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,fsync:z8(J,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from fsync=${$}`);return X}},heartbeatFrequencyMS:{default:1e4,type:"uint"},ignoreUndefined:{type:"boolean"},j:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:J,options:Z,values:[$]}){const X=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,journal:z8(J,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},journal:{target:"writeConcern",transform({name:J,options:Z,values:[$]}){const X=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,journal:z8(J,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},loadBalanced:{default:!1,type:"boolean"},localThresholdMS:{default:15,type:"uint"},maxConnecting:{default:2,transform({name:J,values:[Z]}){const $=B9(J,Z);if($===0)throw new S.MongoInvalidArgumentError("maxConnecting must be > 0 if specified");return $}},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:J,options:Z,values:[$]}){const X=B9(J,$);if(Z.readPreference)return r8.ReadPreference.fromOptions({readPreference:{...Z.readPreference,maxStalenessSeconds:X}});else return new r8.ReadPreference("secondary",void 0,{maxStalenessSeconds:X})}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:!1,type:"boolean"},name:{target:"driverInfo",transform({values:[J],options:Z}){return{...Z.driverInfo,name:String(J)}}},noDelay:{default:!0,type:"boolean"},pkFactory:{default:H0.DEFAULT_PK_FACTORY,transform({values:[J]}){if(H0.isRecord(J,["createPk"])&&typeof J.createPk==="function")return J;throw new S.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${J}`)}},promoteBuffers:{type:"boolean"},promoteLongs:{type:"boolean"},promoteValues:{type:"boolean"},useBigInt64:{type:"boolean"},proxyHost:{type:"string"},proxyPassword:{type:"string"},proxyPort:{type:"uint"},proxyUsername:{type:"string"},raw:{default:!1,type:"boolean"},readConcern:{transform({values:[J],options:Z}){if(J instanceof QK.ReadConcern||H0.isRecord(J,["level"]))return QK.ReadConcern.fromOptions({...Z.readConcern,...J});throw new S.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(J)}`)}},readConcernLevel:{target:"readConcern",transform({values:[J],options:Z}){return QK.ReadConcern.fromOptions({...Z.readConcern,level:J})}},readPreference:{default:r8.ReadPreference.primary,transform({values:[J],options:Z}){if(J instanceof r8.ReadPreference)return r8.ReadPreference.fromOptions({readPreference:{...Z.readPreference,...J},...J});if(H0.isRecord(J,["mode"])){const $=r8.ReadPreference.fromOptions({readPreference:{...Z.readPreference,...J},...J});if($)return $;else throw new S.MongoParseError(`Cannot make read preference from ${JSON.stringify(J)}`)}if(typeof J==="string"){const $={hedge:Z.readPreference?.hedge,maxStalenessSeconds:Z.readPreference?.maxStalenessSeconds};return new r8.ReadPreference(J,Z.readPreference?.tags,$)}throw new S.MongoParseError(`Unknown ReadPreference value: ${J}`)}},readPreferenceTags:{target:"readPreference",transform({values:J,options:Z}){const $=Array.isArray(J[0])?J[0]:J,X=[];for(let Y of $){const Q=Object.create(null);if(typeof Y==="string")for(let[K,G]of mN(Y))Q[K]=G;if(H0.isRecord(Y))for(let[K,G]of Object.entries(Y))Q[K]=G;X.push(Q)}return r8.ReadPreference.fromOptions({readPreference:Z.readPreference,readPreferenceTags:X})}},replicaSet:{type:"string"},retryReads:{default:!0,type:"boolean"},retryWrites:{default:!0,type:"boolean"},serializeFunctions:{type:"boolean"},serverMonitoringMode:{default:"auto",transform({values:[J]}){if(!Object.values(bs.ServerMonitoringMode).includes(J))throw new S.MongoParseError("serverMonitoringMode must be one of `auto`, `poll`, or `stream`");return J}},serverSelectionTimeoutMS:{default:30000,type:"uint"},servername:{type:"string"},socketTimeoutMS:{default:0,type:"uint"},srvMaxHosts:{type:"uint",default:0},srvServiceName:{type:"string",default:"mongodb"},ssl:{target:"tls",type:"boolean"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform({name:J,values:[Z]}){return!z8(J,Z)}},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform({name:J,values:[Z]}){return z8(J,Z)?()=>{return}:void 0}},tlsCAFile:{type:"string"},tlsCRLFile:{type:"string"},tlsCertificateKeyFile:{type:"string"},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:J,options:Z,values:[$]}){const X=z8(J,$);if(X)Z.checkServerIdentity=()=>{return},Z.rejectUnauthorized=!1;else Z.checkServerIdentity=Z.tlsAllowInvalidHostnames?()=>{return}:void 0,Z.rejectUnauthorized=Z.tlsAllowInvalidCertificates?!1:!0;return X}},w:{target:"writeConcern",transform({values:[J],options:Z}){return V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,w:J}})}},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[J],options:Z}){if(H0.isRecord(J)||J instanceof V8.WriteConcern)return V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,...J}});else if(J==="majority"||typeof J==="number")return V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,w:J}});throw new S.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(J)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[J],options:Z}){const $=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,wtimeout:B9("wtimeout",J)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[J],options:Z}){const $=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,wtimeoutMS:B9("wtimeoutMS",J)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},zlibCompressionLevel:{default:0,type:"int"},connectionType:{type:"any"},srvPoller:{type:"any"},minDHSize:{type:"any"},pskCallback:{type:"any"},secureContext:{type:"any"},enableTrace:{type:"any"},requestCert:{type:"any"},rejectUnauthorized:{type:"any"},checkServerIdentity:{type:"any"},ALPNProtocols:{type:"any"},SNICallback:{type:"any"},session:{type:"any"},requestOCSP:{type:"any"},localAddress:{type:"any"},localPort:{type:"any"},hints:{type:"any"},lookup:{type:"any"},ca:{type:"any"},cert:{type:"any"},ciphers:{type:"any"},crl:{type:"any"},ecdhCurve:{type:"any"},key:{type:"any"},passphrase:{type:"any"},pfx:{type:"any"},secureProtocol:{type:"any"},index:{type:"any"},useNewUrlParser:{type:"boolean",deprecated:"useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version"},useUnifiedTopology:{type:"boolean",deprecated:"useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version"},mongodbLogPath:{type:"any"},mongodbLogComponentSeverities:{type:"any"},mongodbLogMaxDocumentLength:{type:"uint"}};dN.DEFAULT_OPTIONS=new E9(Object.entries(dN.OPTIONS).filter(([,J])=>J.default!=null).map(([J,Z])=>[J,Z.default]));dN.FEATURE_FLAGS=new Set([Symbol.for("@@mdb.skipPingOnConnect"),Symbol.for("@@mdb.enableMongoLogger"),Symbol.for("@@mdb.internalLoggerConfig")])});var UK=V((pN)=>{Object.defineProperty(pN,"__esModule",{value:!0});pN.SrvPoller=pN.SrvPollingEvent=void 0;var is=import.meta.require("dns"),VK=import.meta.require("timers"),ss=E(),ns=C0(),cN=y();class zK{constructor(J){this.srvRecords=J}hostnames(){return new Set(this.srvRecords.map((J)=>cN.HostAddress.fromSrvRecord(J).toString()))}}pN.SrvPollingEvent=zK;class J$ extends ns.TypedEventEmitter{constructor(J){super();if(!J||!J.srvHost)throw new ss.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");this.srvHost=J.srvHost,this.srvMaxHosts=J.srvMaxHosts??0,this.srvServiceName=J.srvServiceName??"mongodb",this.rescanSrvIntervalMS=60000,this.heartbeatFrequencyMS=J.heartbeatFrequencyMS??1e4,this.haMode=!1,this.generation=0,this._timeout=void 0}get srvAddress(){return`_${this.srvServiceName}._tcp.${this.srvHost}`}get intervalMS(){return this.haMode?this.heartbeatFrequencyMS:this.rescanSrvIntervalMS}start(){if(!this._timeout)this.schedule()}stop(){if(this._timeout)VK.clearTimeout(this._timeout),this.generation+=1,this._timeout=void 0}schedule(){if(this._timeout)VK.clearTimeout(this._timeout);this._timeout=VK.setTimeout(()=>{this._poll().catch(()=>null)},this.intervalMS)}success(J){this.haMode=!1,this.schedule(),this.emit(J$.SRV_RECORD_DISCOVERY,new zK(J))}failure(){this.haMode=!0,this.schedule()}async _poll(){const J=this.generation;let Z;try{Z=await is.promises.resolveSrv(this.srvAddress)}catch(X){this.failure();return}if(J!==this.generation)return;const $=[];for(let X of Z)if(cN.matchesParentDomain(X.name,this.srvHost))$.push(X);if(!$.length){this.failure();return}this.success($)}}J$.SRV_RECORD_DISCOVERY="srvRecordDiscovery";pN.SrvPoller=J$});var XB=V((ZB)=>{var oN=function(J,Z,$,X){$=$??{force:!1};for(let Y of T0.LOCAL_SERVER_EVENTS)J.removeAllListeners(Y);J.destroy($,()=>{Z.emit(Y1.SERVER_CLOSED,new o8.ServerClosedEvent(Z.s.id,J.description.address));for(let Y of T0.SERVER_RELAY_EVENTS)J.removeAllListeners(Y);if(typeof X==="function")X()})},es=function(J){if(J?.directConnection)return u.TopologyType.Single;if(J?.replicaSet)return u.TopologyType.ReplicaSetNoPrimary;if(J?.loadBalanced)return u.TopologyType.LoadBalanced;return u.TopologyType.Unknown},eN=function(J,Z){J.emit(Y1.SERVER_OPENING,new o8.ServerOpeningEvent(J.s.id,Z.address));const $=new sN.Server(J,Z,J.s.options);for(let X of T0.SERVER_RELAY_EVENTS)$.on(X,(Y)=>J.emit(X,Y));return $.on(sN.Server.DESCRIPTION_RECEIVED,(X)=>J.serverUpdateHandler(X)),$.connect(),$},tN=function(J,Z){if(Z&&J.s.servers.has(Z.address)){const $=J.s.servers.get(Z.address);if($){if($.s.description=Z,Z.error instanceof M8.MongoError&&Z.error.hasErrorLabel(M8.MongoErrorLabel.ResetPool)){const X=Z.error.hasErrorLabel(M8.MongoErrorLabel.InterruptInUseConnections);$.pool.clear({interruptInUseConnections:X})}else if(Z.error==null){const X=J.s.description.type;if(Z.isDataBearing||Z.type!==u.ServerType.Unknown&&X===u.TopologyType.Single)$.pool.ready()}}}for(let $ of J.description.servers.values())if(!J.s.servers.has($.address)){const X=eN(J,$);J.s.servers.set($.address,X)}for(let $ of J.s.servers){const X=$[0];if(J.description.hasServer(X))continue;if(!J.s.servers.has(X))continue;const Y=J.s.servers.get(X);if(J.s.servers.delete(X),Y)oN(Y,J)}},JB=function(J,Z){while(J.length){const $=J.shift();if(!$)continue;if($.timeoutController.clear(),!$[AK])$.callback(Z)}},rN=function(J){if(J.s.state===u.STATE_CLOSED){JB(J[U8],new M8.MongoTopologyClosedError);return}const Z=J.description.type===u.TopologyType.Sharded,$=Array.from(J.description.servers.values()),X=J[U8].length;for(let Y=0;Y<X;++Y){const Q=J[U8].shift();if(!Q)continue;if(Q[AK])continue;let K;try{const q=Q.serverSelector;K=q?q(J.description,$):$}catch(q){Q.timeoutController.clear(),Q.callback(q);continue}let G;if(K.length===0){J[U8].push(Q);continue}else if(K.length===1)G=J.s.servers.get(K[0].address);else{const q=b6.shuffle(K,2),W=J.s.servers.get(q[0].address),H=J.s.servers.get(q[1].address);G=W&&H&&W.s.operationCount<H.s.operationCount?W:H}if(!G){Q.callback(new M8.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",J.description));return}const F=Q.transaction;if(Z&&F&&F.isActive&&G)F.pinServer(G);Q.timeoutController.clear(),Q.callback(void 0,G)}if(J[U8].length>0)for(let[,Y]of J.s.servers)process.nextTick(function Q(){return Y.requestCheck()})},Jn=function(J,Z){const X=J.servers.get(Z.address)?.topologyVersion;return jK.compareTopologyVersion(X,Z.topologyVersion)>0};Object.defineProperty(ZB,"__esModule",{value:!0});ZB.ServerCapabilities=ZB.Topology=void 0;var aN=import.meta.require("util"),iN=HK(),T0=v1(),M8=E(),rs=C0(),C9=k1(),b6=y(),u=d0(),o8=mZ(),sN=eQ(),jK=x5(),MK=T5(),Z$=UK(),nN=v3(),os=0,h9=b6.makeStateMachine({[u.STATE_CLOSED]:[u.STATE_CLOSED,u.STATE_CONNECTING],[u.STATE_CONNECTING]:[u.STATE_CONNECTING,u.STATE_CLOSING,u.STATE_CONNECTED,u.STATE_CLOSED],[u.STATE_CONNECTED]:[u.STATE_CONNECTED,u.STATE_CLOSING,u.STATE_CLOSED],[u.STATE_CLOSING]:[u.STATE_CLOSING,u.STATE_CLOSED]}),AK=Symbol("cancelled"),U8=Symbol("waitQueue");class Y1 extends rs.TypedEventEmitter{constructor(J,Z,$){super();if(this.client=J,this.selectServerAsync=aN.promisify((F,q,W)=>this.selectServer(F,q,W)),$=$??{hosts:[b6.HostAddress.fromString("localhost:27017")],...Object.fromEntries(iN.DEFAULT_OPTIONS.entries()),...Object.fromEntries(iN.FEATURE_FLAGS.entries())},typeof Z==="string")Z=[b6.HostAddress.fromString(Z)];else if(!Array.isArray(Z))Z=[Z];const X=[];for(let F of Z)if(typeof F==="string")X.push(b6.HostAddress.fromString(F));else if(F instanceof b6.HostAddress)X.push(F);else throw new M8.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(F)}`);const Y=es($),Q=os++,K=$.srvMaxHosts==null||$.srvMaxHosts===0||$.srvMaxHosts>=X.length?X:b6.shuffle(X,$.srvMaxHosts),G=new Map;for(let F of K)G.set(F.toString(),new jK.ServerDescription(F));if(this[U8]=new b6.List,this.s={id:Q,options:$,seedlist:X,state:u.STATE_CLOSED,description:new nN.TopologyDescription(Y,G,$.replicaSet,void 0,void 0,void 0,$),serverSelectionTimeoutMS:$.serverSelectionTimeoutMS,heartbeatFrequencyMS:$.heartbeatFrequencyMS,minHeartbeatFrequencyMS:$.minHeartbeatFrequencyMS,servers:new Map,credentials:$?.credentials,clusterTime:void 0,connectionTimers:new Set,detectShardedTopology:(F)=>this.detectShardedTopology(F),detectSrvRecords:(F)=>this.detectSrvRecords(F)},$.srvHost&&!$.loadBalanced)this.s.srvPoller=$.srvPoller??new Z$.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:$.srvHost,srvMaxHosts:$.srvMaxHosts,srvServiceName:$.srvServiceName}),this.on(Y1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology)}detectShardedTopology(J){const Z=J.previousDescription.type,$=J.newDescription.type,X=Z!==u.TopologyType.Sharded&&$===u.TopologyType.Sharded,Q=!!this.s.srvPoller?.listeners(Z$.SrvPoller.SRV_RECORD_DISCOVERY)?.includes(this.s.detectSrvRecords);if(X&&!Q)this.s.srvPoller?.on(Z$.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),this.s.srvPoller?.start()}detectSrvRecords(J){const Z=this.s.description;if(this.s.description=this.s.description.updateFromSrvPollingEvent(J,this.s.options.srvMaxHosts),this.s.description===Z)return;tN(this),this.emit(Y1.TOPOLOGY_DESCRIPTION_CHANGED,new o8.TopologyDescriptionChangedEvent(this.s.id,Z,this.s.description))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new LK(this.lastHello())}connect(J,Z){if(typeof J==="function")Z=J,J={};if(J=J??{},this.s.state===u.STATE_CONNECTED){if(typeof Z==="function")Z();return}h9(this,u.STATE_CONNECTING),this.emit(Y1.TOPOLOGY_OPENING,new o8.TopologyOpeningEvent(this.s.id)),this.emit(Y1.TOPOLOGY_DESCRIPTION_CHANGED,new o8.TopologyDescriptionChangedEvent(this.s.id,new nN.TopologyDescription(u.TopologyType.Unknown),this.s.description));const $=Array.from(this.s.description.servers.values());if(this.s.servers=new Map($.map((Q)=>[Q.address,eN(this,Q)])),this.s.options.loadBalanced)for(let Q of $){const K=new jK.ServerDescription(Q.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(K)}const X=(Q)=>Z?Z(Q):this.emit(Y1.ERROR,Q),Y=J.readPreference??C9.ReadPreference.primary;this.selectServer(MK.readPreferenceServerSelector(Y),J,(Q,K)=>{if(Q)return this.close({force:!1},()=>X(Q));if(this.s.options[Symbol.for("@@mdb.skipPingOnConnect")]!==!0&&K&&this.s.credentials){K.command(b6.ns("admin.$cmd"),{ping:1},{},(F)=>{if(F)return X(F);h9(this,u.STATE_CONNECTED),this.emit(Y1.OPEN,this),this.emit(Y1.CONNECT,this),Z?.(void 0,this)});return}h9(this,u.STATE_CONNECTED),this.emit(Y1.OPEN,this),this.emit(Y1.CONNECT,this),Z?.(void 0,this)})}close(J,Z){if(J=J??{force:!1},this.s.state===u.STATE_CLOSED||this.s.state===u.STATE_CLOSING)return Z?.();const $=Array.from(this.s.servers.values(),(X)=>{return aN.promisify(oN)(X,this,{force:!!J?.force})});Promise.all($).then(()=>{if(this.s.servers.clear(),h9(this,u.STATE_CLOSING),JB(this[U8],new M8.MongoTopologyClosedError),u.drainTimerQueue(this.s.connectionTimers),this.s.srvPoller)this.s.srvPoller.stop(),this.s.srvPoller.removeListener(Z$.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords);this.removeListener(Y1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),h9(this,u.STATE_CLOSED),this.emit(Y1.TOPOLOGY_CLOSED,new o8.TopologyClosedEvent(this.s.id))}).finally(()=>Z?.())}selectServer(J,Z,$){let X;if(typeof J!=="function")if(typeof J==="string")X=MK.readPreferenceServerSelector(C9.ReadPreference.fromString(J));else{let F;if(J instanceof C9.ReadPreference)F=J;else C9.ReadPreference.translate(Z),F=Z.readPreference||C9.ReadPreference.primary;X=MK.readPreferenceServerSelector(F)}else X=J;Z=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},Z);const Y=this.description.type===u.TopologyType.Sharded,Q=Z.session,K=Q&&Q.transaction;if(Y&&K&&K.server){$(void 0,K.server);return}const G={serverSelector:X,transaction:K,callback:$,timeoutController:new b6.TimeoutController(Z.serverSelectionTimeoutMS)};G.timeoutController.signal.addEventListener("abort",()=>{G[AK]=!0,G.timeoutController.clear();const F=new M8.MongoServerSelectionError(`Server selection timed out after ${Z.serverSelectionTimeoutMS} ms`,this.description);G.callback(F)}),this[U8].push(G),rN(this)}serverUpdateHandler(J){if(!this.s.description.hasServer(J.address))return;if(Jn(this.s.description,J))return;const Z=this.s.description,$=this.s.description.servers.get(J.address);if(!$)return;const X=J.$clusterTime;if(X)u._advanceClusterTime(this,X);const Y=$&&$.equals(J);if(this.s.description=this.s.description.update(J),this.s.description.compatibilityError){this.emit(Y1.ERROR,new M8.MongoCompatibilityError(this.s.description.compatibilityError));return}if(!Y){const Q=this.s.description.servers.get(J.address);if(Q)this.emit(Y1.SERVER_DESCRIPTION_CHANGED,new o8.ServerDescriptionChangedEvent(this.s.id,J.address,$,Q))}if(tN(this,J),this[U8].length>0)rN(this);if(!Y)this.emit(Y1.TOPOLOGY_DESCRIPTION_CHANGED,new o8.TopologyDescriptionChangedEvent(this.s.id,Z,this.s.description))}auth(J,Z){if(typeof J==="function")Z=J,J=void 0;if(typeof Z==="function")Z(void 0,!0)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===u.STATE_CONNECTED}isDestroyed(){return this.s.state===u.STATE_CLOSED}lastHello(){const J=Array.from(this.description.servers.values());if(J.length===0)return{};return J.filter((X)=>X.type!==u.ServerType.Unknown)[0]||{maxWireVersion:this.description.commonWireVersion}}get commonWireVersion(){return this.description.commonWireVersion}get logicalSessionTimeoutMinutes(){return this.description.logicalSessionTimeoutMinutes}get clusterTime(){return this.s.clusterTime}set clusterTime(J){this.s.clusterTime=J}}Y1.SERVER_OPENING=T0.SERVER_OPENING;Y1.SERVER_CLOSED=T0.SERVER_CLOSED;Y1.SERVER_DESCRIPTION_CHANGED=T0.SERVER_DESCRIPTION_CHANGED;Y1.TOPOLOGY_OPENING=T0.TOPOLOGY_OPENING;Y1.TOPOLOGY_CLOSED=T0.TOPOLOGY_CLOSED;Y1.TOPOLOGY_DESCRIPTION_CHANGED=T0.TOPOLOGY_DESCRIPTION_CHANGED;Y1.ERROR=T0.ERROR;Y1.OPEN=T0.OPEN;Y1.CONNECT=T0.CONNECT;Y1.CLOSE=T0.CLOSE;Y1.TIMEOUT=T0.TIMEOUT;ZB.Topology=Y1;class LK{constructor(J){this.minWireVersion=J.minWireVersion||0,this.maxWireVersion=J.maxWireVersion||0}get hasAggregationCursor(){return this.maxWireVersion>=1}get hasWriteCommands(){return this.maxWireVersion>=2}get hasTextSearch(){return this.minWireVersion>=0}get hasAuthCommands(){return this.maxWireVersion>=1}get hasListCollectionsCommand(){return this.maxWireVersion>=3}get hasListIndexesCommand(){return this.maxWireVersion>=3}get supportsSnapshotReads(){return this.maxWireVersion>=13}get commandsTakeWriteConcern(){return this.maxWireVersion>=5}get commandsTakeCollation(){return this.maxWireVersion>=5}}ZB.ServerCapabilities=LK});var C4=V((WB)=>{Object.defineProperty(WB,"__esModule",{value:!0});WB.MongoClient=WB.ServerApiVersion=void 0;var wK=import.meta.require("fs"),$n=import.meta.require("util"),Xn=H1(),Yn=U7(),Qn=KZ(),Kn=O6(),YB=HK(),Gn=v1(),Fn=JZ(),QB=E(),qn=RQ(),Wn=C0(),Hn=L0(),Vn=X7(),KB=k1(),zn=T5(),GB=XB(),FB=m5(),f0=y();WB.ServerApiVersion=Object.freeze({v1:"1"});var N1=Symbol("options");class qB extends Wn.TypedEventEmitter{constructor(J,Z){super();this[N1]=YB.parseOptions(J,this,Z),this.mongoLogger=new qn.MongoLogger(this[N1].mongoLoggerOptions);const $=this;this.s={url:J,bsonOptions:Xn.resolveBSONOptions(this[N1]),namespace:f0.ns("admin"),hasBeenClosed:!1,sessionPool:new FB.ServerSessionPool(this),activeSessions:new Set,get options(){return $[N1]},get readConcern(){return $[N1].readConcern},get writeConcern(){return $[N1].writeConcern},get readPreference(){return $[N1].readPreference},get isMongoClient(){return!0}},this.checkForNonGenuineHosts()}checkForNonGenuineHosts(){const J=this[N1].hosts.filter((Y)=>f0.isHostMatch(f0.DOCUMENT_DB_CHECK,Y.host)),Z=f0.isHostMatch(f0.DOCUMENT_DB_CHECK,this[N1].srvHost),$=this[N1].hosts.filter((Y)=>f0.isHostMatch(f0.COSMOS_DB_CHECK,Y.host)),X=f0.isHostMatch(f0.COSMOS_DB_CHECK,this[N1].srvHost);if(J.length!==0||Z)this.mongoLogger.info("client",f0.DOCUMENT_DB_MSG);else if($.length!==0||X)this.mongoLogger.info("client",f0.COSMOS_DB_MSG)}get options(){return Object.freeze({...this[N1]})}get serverApi(){return this[N1].serverApi&&Object.freeze({...this[N1].serverApi})}get monitorCommands(){return this[N1].monitorCommands}set monitorCommands(J){this[N1].monitorCommands=J}get autoEncrypter(){return this[N1].autoEncrypter}get readConcern(){return this.s.readConcern}get writeConcern(){return this.s.writeConcern}get readPreference(){return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}async connect(){if(this.connectionLock)return this.connectionLock;try{this.connectionLock=this._connect(),await this.connectionLock}finally{this.connectionLock=void 0}return this}async _connect(){if(this.topology&&this.topology.isConnected())return this;const J=this[N1];if(J.tls){if(typeof J.tlsCAFile==="string")J.ca??=await wK.promises.readFile(J.tlsCAFile);if(typeof J.tlsCRLFile==="string")J.crl??=await wK.promises.readFile(J.tlsCRLFile);if(typeof J.tlsCertificateKeyFile==="string"){if(!J.key||!J.cert){const $=await wK.promises.readFile(J.tlsCertificateKeyFile);J.key??=$,J.cert??=$}}}if(typeof J.srvHost==="string"){const $=await YB.resolveSRVRecord(J);for(let[X,Y]of $.entries())J.hosts[X]=Y}if(J.credentials?.mechanism===Kn.AuthMechanism.MONGODB_OIDC){const $=J.credentials?.mechanismProperties?.ALLOWED_HOSTS||Qn.DEFAULT_ALLOWED_HOSTS;if(!J.credentials?.mechanismProperties?.PROVIDER_NAME){for(let Y of J.hosts)if(!f0.hostMatchesWildcards(Y.toHostPort().host,$))throw new QB.MongoInvalidArgumentError(`Host '${Y}' is not valid for OIDC authentication with ALLOWED_HOSTS of '${$.join(",")}'`)}}this.topology=new GB.Topology(this,J.hosts,J),this.topology.once(GB.Topology.OPEN,()=>this.emit("open",this));for(let $ of Gn.MONGO_CLIENT_EVENTS)this.topology.on($,(...X)=>this.emit($,...X));const Z=async()=>{try{await $n.promisify(($)=>this.topology?.connect(J,$))()}catch($){throw this.topology?.close({force:!0}),$}};if(this.autoEncrypter)await this.autoEncrypter?.init(),await Z(),await J.encrypter.connectInternalClient();else await Z();return this}async close(J=!1){Object.defineProperty(this.s,"hasBeenClosed",{value:!0,enumerable:!0,configurable:!1,writable:!1});const Z=Array.from(this.s.activeSessions,(G)=>G.endSession());if(this.s.activeSessions.clear(),await Promise.all(Z),this.topology==null)return;const $=zn.readPreferenceServerSelector(KB.ReadPreference.primaryPreferred),X=this.topology.description,Y=Array.from(X.servers.values());if($(X,Y).length!==0){const G=Array.from(this.s.sessionPool.sessions,({id:F})=>F);if(G.length!==0)await Hn.executeOperation(this,new Vn.RunAdminCommandOperation({endSessions:G},{readPreference:KB.ReadPreference.primaryPreferred,noResponse:!0})).catch(()=>null)}const K=this.topology;this.topology=void 0,await new Promise((G,F)=>{K.close({force:J},(q)=>{if(q)return F(q);const{encrypter:W}=this[N1];if(W)return W.closeCallback(this,J,(H)=>{if(H)return F(H);G()});G()})})}db(J,Z){if(Z=Z??{},!J)J=this.options.dbName;const $=Object.assign({},this[N1],Z);return new Fn.Db(this,J,$)}static async connect(J,Z){return new this(J,Z).connect()}startSession(J){const Z=new FB.ClientSession(this,this.s.sessionPool,{explicit:!0,...J},this[N1]);return this.s.activeSessions.add(Z),Z.once("ended",()=>{this.s.activeSessions.delete(Z)}),Z}async withSession(J,Z){const $={owner:Symbol(),...typeof J==="object"?J:{}},X=typeof J==="function"?J:Z;if(X==null)throw new QB.MongoInvalidArgumentError("Missing required callback parameter");const Y=this.startSession($);try{return await X(Y)}finally{try{await Y.endSession()}catch{}}}watch(J=[],Z={}){if(!Array.isArray(J))Z=J,J=[];return new Yn.ChangeStream(this,J,f0.resolveOptions(this,Z))}}WB.MongoClient=qB});var U7=V((VB)=>{Object.defineProperty(VB,"__esModule",{value:!0});VB.ChangeStream=void 0;var Mn=P4(),R6=v1(),jn=IY(),An=JZ(),w6=E(),Ln=C4(),wn=C0(),RK=y(),l7=Symbol("cursorStream"),a7=Symbol("closed"),S9=Symbol("mode"),Rn=["resumeAfter","startAfter","startAtOperationTime","fullDocument","fullDocumentBeforeChange","showExpandedEvents"],v4={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},Dn=[R6.RESUME_TOKEN_CHANGED,R6.END,R6.CLOSE],Pn="A change stream document has been received that lacks a resume token (_id).",$$="ChangeStream is closed";class I0 extends wn.TypedEventEmitter{constructor(J,Z=[],$={}){super();if(this.pipeline=Z,this.options={...$},delete this.options.writeConcern,J instanceof Mn.Collection)this.type=v4.COLLECTION;else if(J instanceof An.Db)this.type=v4.DATABASE;else if(J instanceof Ln.MongoClient)this.type=v4.CLUSTER;else throw new w6.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");if(this.parent=J,this.namespace=J.s.namespace,!this.options.readPreference&&J.readPreference)this.options.readPreference=J.readPreference;this.cursor=this._createChangeStreamCursor($),this[a7]=!1,this[S9]=!1,this.on("newListener",(X)=>{if(X==="change"&&this.cursor&&this.listenerCount("change")===0)this._streamEvents(this.cursor)}),this.on("removeListener",(X)=>{if(X==="change"&&this.listenerCount("change")===0&&this.cursor)this[l7]?.removeAllListeners("data")})}get cursorStream(){return this[l7]}get resumeToken(){return this.cursor?.resumeToken}async hasNext(){this._setIsIterator();while(!0)try{return await this.cursor.hasNext()}catch(J){try{await this._processErrorIteratorMode(J)}catch(Z){try{await this.close()}catch{}throw Z}}}async next(){this._setIsIterator();while(!0)try{const J=await this.cursor.next();return this._processChange(J??null)}catch(J){try{await this._processErrorIteratorMode(J)}catch(Z){try{await this.close()}catch{}throw Z}}}async tryNext(){this._setIsIterator();while(!0)try{return await this.cursor.tryNext()??null}catch(J){try{await this._processErrorIteratorMode(J)}catch(Z){try{await this.close()}catch{}throw Z}}}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0)yield await this.next()}finally{try{await this.close()}catch{}}}get closed(){return this[a7]||this.cursor.closed}async close(){this[a7]=!0;const J=this.cursor;try{await J.close()}finally{this._endStream()}}stream(J){if(this.closed)throw new w6.MongoChangeStreamError($$);return this.streamOptions=J,this.cursor.stream(J)}_setIsEmitter(){if(this[S9]==="iterator")throw new w6.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this[S9]="emitter"}_setIsIterator(){if(this[S9]==="emitter")throw new w6.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this[S9]="iterator"}_createChangeStreamCursor(J){const Z=RK.filterOptions(J,Rn);if(this.type===v4.CLUSTER)Z.allChangesForCluster=!0;const $=[{$changeStream:Z},...this.pipeline],X=this.type===v4.CLUSTER?this.parent:this.type===v4.DATABASE?this.parent.client:this.type===v4.COLLECTION?this.parent.client:null;if(X==null)throw new w6.MongoRuntimeError(`Changestream type should only be one of cluster, database, collection. Found ${this.type.toString()}`);const Y=new jn.ChangeStreamCursor(X,this.namespace,$,J);for(let Q of Dn)Y.on(Q,(K)=>this.emit(Q,K));if(this.listenerCount(I0.CHANGE)>0)this._streamEvents(Y);return Y}_closeEmitterModeWithError(J){this.emit(I0.ERROR,J),this.close().catch(()=>null)}_streamEvents(J){this._setIsEmitter();const Z=this[l7]??J.stream();this[l7]=Z,Z.on("data",($)=>{try{const X=this._processChange($);this.emit(I0.CHANGE,X)}catch(X){this.emit(I0.ERROR,X)}}),Z.on("error",($)=>this._processErrorStreamMode($))}_endStream(){const J=this[l7];if(J)["data","close","end","error"].forEach((Z)=>J.removeAllListeners(Z)),J.destroy();this[l7]=void 0}_processChange(J){if(this[a7])throw new w6.MongoAPIError($$);if(J==null)throw new w6.MongoRuntimeError($$);if(J&&!J._id)throw new w6.MongoChangeStreamError(Pn);return this.cursor.cacheResumeToken(J._id),this.options.startAtOperationTime=void 0,J}_processErrorStreamMode(J){if(this[a7])return;if(w6.isResumableError(J,this.cursor.maxWireVersion))this._endStream(),this.cursor.close().catch(()=>null),RK.getTopology(this.parent).selectServer(this.cursor.readPreference,{},($)=>{if($)return this._closeEmitterModeWithError(J);this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)});else this._closeEmitterModeWithError(J)}async _processErrorIteratorMode(J){if(this[a7])throw new w6.MongoAPIError($$);if(!w6.isResumableError(J,this.cursor.maxWireVersion)){try{await this.close()}catch{}throw J}await this.cursor.close().catch(()=>null);const Z=RK.getTopology(this.parent);try{await Z.selectServerAsync(this.cursor.readPreference,{}),this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}catch{throw await this.close(),J}}}I0.RESPONSE=R6.RESPONSE;I0.MORE=R6.MORE;I0.INIT=R6.INIT;I0.CLOSE=R6.CLOSE;I0.CHANGE=R6.CHANGE;I0.END=R6.END;I0.ERROR=R6.ERROR;I0.RESUME_TOKEN_CHANGED=R6.RESUME_TOKEN_CHANGED;VB.ChangeStream=I0});var DK=V((MB)=>{var UB=function(J){if(J.s.init)throw new v0.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")},In=function(J){if(J.destroyed)return;if(!J.s.cursor)return;if(!J.s.file)return;const Z=({error:$,doc:X})=>{if(J.destroyed)return;if($){J.destroy($);return}if(!X){J.push(null),J.s.cursor?.close().then(()=>null,(U)=>J.destroy(U));return}if(!J.s.file)return;const Y=J.s.file.length-J.s.bytesRead,Q=J.s.expected++,K=Math.min(J.s.file.chunkSize,Y);if(X.n>Q)return J.destroy(new v0.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${X.n}, expected: ${Q}`));if(X.n<Q)return J.destroy(new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected: ${Q}`));let G=Buffer.isBuffer(X.data)?X.data:X.data.buffer;if(G.byteLength!==K){if(Y<=0)return J.destroy(new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected file length ${J.s.file.length} bytes but already read ${J.s.bytesRead} bytes`));return J.destroy(new v0.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${G.byteLength}, expected: ${K}`))}if(J.s.bytesRead+=G.byteLength,G.byteLength===0)return J.push(null);let F=null,q=null;if(J.s.bytesToSkip!=null)F=J.s.bytesToSkip,J.s.bytesToSkip=0;const W=Q===J.s.expectedEnd-1,H=J.s.options.end-J.s.bytesToSkip;if(W&&J.s.bytesToTrim!=null)q=J.s.file.chunkSize-J.s.bytesToTrim;else if(J.s.options.end&&H<X.data.byteLength)q=H;if(F!=null||q!=null)G=G.slice(F||0,q||G.byteLength);J.push(G);return};J.s.cursor.next().then(($)=>Z({error:null,doc:$}),($)=>Z({error:$,doc:null}))},Nn=function(J){const Z={};if(J.s.readPreference)Z.readPreference=J.s.readPreference;if(J.s.options&&J.s.options.sort)Z.sort=J.s.options.sort;if(J.s.options&&J.s.options.skip)Z.skip=J.s.options.skip;const $=({error:X,doc:Y})=>{if(X)return J.destroy(X);if(!Y){const G=`FileNotFound: file ${J.s.filter._id?J.s.filter._id.toString():J.s.filter.filename} was not found`,F=new v0.MongoRuntimeError(G);return F.code="ENOENT",J.destroy(F)}if(Y.length<=0){J.push(null);return}if(J.destroyed){J.destroy();return}try{J.s.bytesToSkip=En(J,Y,J.s.options)}catch(K){return J.destroy(K)}const Q={files_id:Y._id};if(J.s.options&&J.s.options.start!=null){const K=Math.floor(J.s.options.start/Y.chunkSize);if(K>0)Q.n={$gte:K}}if(J.s.cursor=J.s.chunks.find(Q).sort({n:1}),J.s.readPreference)J.s.cursor.withReadPreference(J.s.readPreference);J.s.expectedEnd=Math.ceil(Y.length/Y.chunkSize),J.s.file=Y;try{J.s.bytesToTrim=Cn(J,Y,J.s.cursor,J.s.options)}catch(K){return J.destroy(K)}J.emit(X$.FILE,Y);return};J.s.files.findOne(J.s.filter,Z).then((X)=>$({error:null,doc:X}),(X)=>$({error:X,doc:null}))},Bn=function(J,Z){if(J.s.file)return Z();if(!J.s.init)Nn(J),J.s.init=!0;J.once("file",()=>{Z()})},En=function(J,Z,$){if($&&$.start!=null){if($.start>Z.length)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be more than the length of the file (${Z.length})`);if($.start<0)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be negative`);if($.end!=null&&$.end<$.start)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be greater than stream end (${$.end})`);return J.s.bytesRead=Math.floor($.start/Z.chunkSize)*Z.chunkSize,J.s.expected=Math.floor($.start/Z.chunkSize),$.start-J.s.bytesRead}throw new v0.MongoInvalidArgumentError("Start option must be defined")},Cn=function(J,Z,$,X){if(X&&X.end!=null){if(X.end>Z.length)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be more than the length of the file (${Z.length})`);if(X.start==null||X.start<0)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be negative`);const Y=X.start!=null?Math.floor(X.start/Z.chunkSize):0;return $.limit(Math.ceil(X.end/Z.chunkSize)-Y),J.s.expectedEnd=Math.ceil(X.end/Z.chunkSize),Math.ceil(X.end/Z.chunkSize)*Z.chunkSize-X.end}throw new v0.MongoInvalidArgumentError("End option must be defined")};Object.defineProperty(MB,"__esModule",{value:!0});MB.GridFSBucketReadStream=void 0;var Tn=import.meta.require("stream"),v0=E();class X$ extends Tn.Readable{constructor(J,Z,$,X,Y){super({emitClose:!0});this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:J,expected:0,files:Z,filter:X,init:!1,expectedEnd:0,options:{start:0,end:0,...Y},readPreference:$}}_read(){if(this.destroyed)return;Bn(this,()=>In(this))}start(J=0){return UB(this),this.s.options.start=J,this}end(J=0){return UB(this),this.s.options.end=J,this}async abort(){this.push(null),this.destroy(),await this.s.cursor?.close()}}X$.FILE="file";MB.GridFSBucketReadStream=X$});var IK=V((RB)=>{var TK=function(J,Z,$){if(J.state.errored){process.nextTick($);return}J.state.errored=!0,process.nextTick($,Z)},wB=function(J,Z,$){return{_id:new AB.ObjectId,files_id:J,n:Z,data:$}};async function On(J){const Z={files_id:1,n:1};let $;try{$=await J.chunks.listIndexes().toArray()}catch(Y){if(Y instanceof x4.MongoError&&Y.code===x4.MONGODB_ERROR_CODES.NamespaceNotFound)$=[];else throw Y}if(!$.find((Y)=>{if(Object.keys(Y.key).length===2&&Y.key.files_id===1&&Y.key.n===1)return!0;return!1}))await J.chunks.createIndex(Z,{...J.writeConcern,background:!0,unique:!0})}var PK=function(J,Z){if(J.done)return process.nextTick(Z);if(J.state.streamEnd&&J.state.outstandingRequests===0&&!J.state.errored){J.done=!0;const $=yn(J.id,J.length,J.chunkSizeBytes,J.filename,J.options.contentType,J.options.aliases,J.options.metadata);if(Y$(J,Z))return;J.files.insertOne($,{writeConcern:J.writeConcern}).then(()=>{J.gridFSFile=$,Z()},(X)=>TK(J,X,Z));return}process.nextTick(Z)};async function kn(J){if(await J.files.findOne({},{projection:{_id:1}})!=null)return;const $={filename:1,uploadDate:1};let X;try{X=await J.files.listIndexes().toArray()}catch(Q){if(Q instanceof x4.MongoError&&Q.code===x4.MONGODB_ERROR_CODES.NamespaceNotFound)X=[];else throw Q}if(!X.find((Q)=>{if(Object.keys(Q.key).length===2&&Q.key.filename===1&&Q.key.uploadDate===1)return!0;return!1}))await J.files.createIndex($,{background:!1});await On(J)}var yn=function(J,Z,$,X,Y,Q,K){const G={_id:J,length:Z,chunkSize:$,uploadDate:new Date,filename:X};if(Y)G.contentType=Y;if(Q)G.aliases=Q;if(K)G.metadata=K;return G},_n=function(J,Z,$,X){if(Y$(J,X))return;const Y=Buffer.isBuffer(Z)?Z:Buffer.from(Z,$);if(J.length+=Y.length,J.pos+Y.length<J.chunkSizeBytes){Y.copy(J.bufToStore,J.pos),J.pos+=Y.length,process.nextTick(X);return}let Q=Y.length,K=J.chunkSizeBytes-J.pos,G=Math.min(K,Y.length),F=0;while(Q>0){const q=Y.length-Q;Y.copy(J.bufToStore,J.pos,q,q+G),J.pos+=G,K-=G;let W;if(K===0){if(W=wB(J.id,J.n,Buffer.from(J.bufToStore)),++J.state.outstandingRequests,++F,Y$(J,X))return;J.chunks.insertOne(W,{writeConcern:J.writeConcern}).then(()=>{if(--J.state.outstandingRequests,--F,!F)PK(J,X)},(H)=>TK(J,H,X)),K=J.chunkSizeBytes,J.pos=0,++J.n}Q-=G,G=Math.min(K,Q)}},fn=function(J,Z){if(J.pos===0)return PK(J,Z);++J.state.outstandingRequests;const $=Buffer.alloc(J.pos);J.bufToStore.copy($,0,0,J.pos);const X=wB(J.id,J.n,$);if(Y$(J,Z))return;J.chunks.insertOne(X,{writeConcern:J.writeConcern}).then(()=>{--J.state.outstandingRequests,PK(J,Z)},(Y)=>TK(J,Y,Z))},Y$=function(J,Z){if(J.state.aborted)return process.nextTick(Z,new x4.MongoAPIError("Stream has been aborted")),!0;return!1};Object.defineProperty(RB,"__esModule",{value:!0});RB.GridFSBucketWriteStream=void 0;var hn=import.meta.require("stream"),AB=H1(),x4=E(),Sn=A0();class LB extends hn.Writable{constructor(J,Z,$){super();if(this.gridFSFile=null,$=$??{},this.bucket=J,this.chunks=J.s._chunksCollection,this.filename=Z,this.files=J.s._filesCollection,this.options=$,this.writeConcern=Sn.WriteConcern.fromOptions($)||J.s.options.writeConcern,this.done=!1,this.id=$.id?$.id:new AB.ObjectId,this.chunkSizeBytes=$.chunkSizeBytes||this.bucket.s.options.chunkSizeBytes,this.bufToStore=Buffer.alloc(this.chunkSizeBytes),this.length=0,this.n=0,this.pos=0,this.state={streamEnd:!1,outstandingRequests:0,errored:!1,aborted:!1},!this.bucket.s.calledOpenUploadStream)this.bucket.s.calledOpenUploadStream=!0,kn(this).then(()=>{this.bucket.s.checkedIndexes=!0,this.bucket.emit("index")},()=>null)}_construct(J){if(this.bucket.s.checkedIndexes)return process.nextTick(J);this.bucket.once("index",J)}_write(J,Z,$){_n(this,J,Z,$)}_final(J){if(this.state.streamEnd)return process.nextTick(J);this.state.streamEnd=!0,fn(this,J)}async abort(){if(this.state.streamEnd)throw new x4.MongoAPIError("Cannot abort a stream that has already completed");if(this.state.aborted)throw new x4.MongoAPIError("Cannot call abort() on a stream twice");this.state.aborted=!0,await this.chunks.deleteMany({files_id:this.id})}}RB.GridFSBucketWriteStream=LB});var EB=V((NB)=>{Object.defineProperty(NB,"__esModule",{value:!0});NB.GridFSBucket=void 0;var PB=E(),vn=C0(),xn=A0(),TB=DK(),IB=IK(),bn={bucketName:"fs",chunkSizeBytes:261120};class NK extends vn.TypedEventEmitter{constructor(J,Z){super();this.setMaxListeners(0);const $={...bn,...Z,writeConcern:xn.WriteConcern.fromOptions(Z)};this.s={db:J,options:$,_chunksCollection:J.collection($.bucketName+".chunks"),_filesCollection:J.collection($.bucketName+".files"),checkedIndexes:!1,calledOpenUploadStream:!1}}openUploadStream(J,Z){return new IB.GridFSBucketWriteStream(this,J,Z)}openUploadStreamWithId(J,Z,$){return new IB.GridFSBucketWriteStream(this,Z,{...$,id:J})}openDownloadStream(J,Z){return new TB.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:J},Z)}async delete(J){const{deletedCount:Z}=await this.s._filesCollection.deleteOne({_id:J});if(await this.s._chunksCollection.deleteMany({files_id:J}),Z===0)throw new PB.MongoRuntimeError(`File not found for id ${J}`)}find(J={},Z={}){return this.s._filesCollection.find(J,Z)}openDownloadStreamByName(J,Z){let $={uploadDate:-1},X=void 0;if(Z&&Z.revision!=null)if(Z.revision>=0)$={uploadDate:1},X=Z.revision;else X=-Z.revision-1;return new TB.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:J},{...Z,sort:$,skip:X})}async rename(J,Z){const $={_id:J},X={$set:{filename:Z}},{matchedCount:Y}=await this.s._filesCollection.updateOne($,X);if(Y===0)throw new PB.MongoRuntimeError(`File with id ${J} not found`)}async drop(){await this.s._filesCollection.drop(),await this.s._chunksCollection.drop()}}NK.INDEX="index";NB.GridFSBucket=NK});var SB=V((CB)=>{Object.defineProperty(CB,"__esModule",{value:!0});CB.ClientEncryption=void 0;var g6=H1(),gn=H6(),e8=y(),mn=qQ(),b4=B4(),un=VQ(),Q$=zQ();class K${static getMongoCrypt(){const J=gn.getMongoDBClientEncryption();if("kModuleError"in J)throw J.kModuleError;return J.MongoCrypt}constructor(J,Z){if(this._client=J,this._proxyOptions=Z.proxyOptions??{},this._tlsOptions=Z.tlsOptions??{},this._kmsProviders=Z.kmsProviders||{},Z.keyVaultNamespace==null)throw new b4.MongoCryptInvalidArgumentError("Missing required option `keyVaultNamespace`");const $={...Z,cryptoCallbacks:mn,kmsProviders:!Buffer.isBuffer(this._kmsProviders)?g6.serialize(this._kmsProviders):this._kmsProviders};this._keyVaultNamespace=Z.keyVaultNamespace,this._keyVaultClient=Z.keyVaultClient||J;const X=K$.getMongoCrypt();this._mongoCrypt=new X($)}async createDataKey(J,Z={}){if(Z.keyAltNames&&!Array.isArray(Z.keyAltNames))throw new b4.MongoCryptInvalidArgumentError(`Option "keyAltNames" must be an array of strings, but was of type ${typeof Z.keyAltNames}.`);let $=void 0;if(Z.keyAltNames&&Z.keyAltNames.length>0)$=Z.keyAltNames.map((H,U)=>{if(typeof H!=="string")throw new b4.MongoCryptInvalidArgumentError(`Option "keyAltNames" must be an array of strings, but item at index ${U} was of type ${typeof H}`);return g6.serialize({keyAltName:H})});let X=void 0;if(Z.keyMaterial)X=g6.serialize({keyMaterial:Z.keyMaterial});const Y=g6.serialize({provider:J,...Z.masterKey}),Q=this._mongoCrypt.makeDataKeyContext(Y,{keyAltNames:$,keyMaterial:X}),G=await new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}).execute(this,Q),{db:F,collection:q}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),{insertedId:W}=await this._keyVaultClient.db(F).collection(q).insertOne(G,{writeConcern:{w:"majority"}});return W}async rewrapManyDataKey(J,Z){let $=void 0;if(Z){const H=Object.assign({provider:Z.provider},Z.masterKey);$=g6.serialize(H)}const X=g6.serialize(J),Y=this._mongoCrypt.makeRewrapManyDataKeyContext(X,$),Q=new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),{v:K}=await Q.execute(this,Y);if(K.length===0)return{};const{db:G,collection:F}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),q=K.map((H)=>({updateOne:{filter:{_id:H._id},update:{$set:{masterKey:H.masterKey,keyMaterial:H.keyMaterial},$currentDate:{updateDate:!0}}}}));return{bulkWriteResult:await this._keyVaultClient.db(G).collection(F).bulkWrite(q,{writeConcern:{w:"majority"}})}}async deleteKey(J){const{db:Z,collection:$}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(Z).collection($).deleteOne({_id:J},{writeConcern:{w:"majority"}})}getKeys(){const{db:J,collection:Z}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(J).collection(Z).find({},{readConcern:{level:"majority"}})}async getKey(J){const{db:Z,collection:$}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(Z).collection($).findOne({_id:J},{readConcern:{level:"majority"}})}async getKeyByAltName(J){const{db:Z,collection:$}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(Z).collection($).findOne({keyAltNames:J},{readConcern:{level:"majority"}})}async addKeyAltName(J,Z){const{db:$,collection:X}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return await this._keyVaultClient.db($).collection(X).findOneAndUpdate({_id:J},{$addToSet:{keyAltNames:Z}},{writeConcern:{w:"majority"},returnDocument:"before"})}async removeKeyAltName(J,Z){const{db:$,collection:X}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),Y=[{$set:{keyAltNames:{$cond:[{$eq:["$keyAltNames",[Z]]},"$$REMOVE",{$filter:{input:"$keyAltNames",cond:{$ne:["$$this",Z]}}}]}}}];return await this._keyVaultClient.db($).collection(X).findOneAndUpdate({_id:J},Y,{writeConcern:{w:"majority"},returnDocument:"before"})}async createEncryptedCollection(J,Z,$){const{provider:X,masterKey:Y,createCollectionOptions:{encryptedFields:{...Q},...K}}=$;if(Array.isArray(Q.fields)){const G=Q.fields.map(async(W)=>W==null||typeof W!=="object"||W.keyId!=null?W:{...W,keyId:await this.createDataKey(X,{masterKey:Y})}),F=await Promise.allSettled(G);Q.fields=F.map((W,H)=>W.status==="fulfilled"?W.value:Q.fields[H]);const q=F.find((W)=>W.status==="rejected");if(q!=null)throw new b4.MongoCryptCreateDataKeyError(Q,{cause:q.reason})}try{return{collection:await J.createCollection(Z,{...K,encryptedFields:Q}),encryptedFields:Q}}catch(G){throw new b4.MongoCryptCreateEncryptedCollectionError(Q,{cause:G})}}async encrypt(J,Z){return this._encrypt(J,!1,Z)}async encryptExpression(J,Z){return this._encrypt(J,!0,Z)}async decrypt(J){const Z=g6.serialize({v:J}),$=this._mongoCrypt.makeExplicitDecryptionContext(Z),X=new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),{v:Y}=await X.execute(this,$);return Y}async askForKMSCredentials(){return un.refreshKMSCredentials(this._kmsProviders)}static get libmongocryptVersion(){return K$.getMongoCrypt().libmongocryptVersion}async _encrypt(J,Z,$){const{algorithm:X,keyId:Y,keyAltName:Q,contentionFactor:K,queryType:G,rangeOptions:F}=$,q={expressionMode:Z,algorithm:X};if(Y)q.keyId=Y.buffer;if(Q){if(Y)throw new b4.MongoCryptInvalidArgumentError('"options" cannot contain both "keyId" and "keyAltName"');if(typeof Q!=="string")throw new b4.MongoCryptInvalidArgumentError(`"options.keyAltName" must be of type string, but was of type ${typeof Q}`);q.keyAltName=g6.serialize({keyAltName:Q})}if(typeof K==="number"||typeof K==="bigint")q.contentionFactor=K;if(typeof G==="string")q.queryType=G;if(typeof F==="object")q.rangeOptions=g6.serialize(F);const W=g6.serialize({v:J}),H=new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),U=this._mongoCrypt.makeExplicitEncryptionContext(W,q);return(await H.execute(this,U)).v}}CB.ClientEncryption=K$});var G$=V((R)=>{Object.defineProperty(R,"__esModule",{value:!0});R.MongoUnexpectedServerResponseError=R.MongoTransactionError=R.MongoTopologyClosedError=R.MongoTailableCursorError=R.MongoSystemError=R.MongoServerSelectionError=R.MongoServerError=R.MongoServerClosedError=R.MongoRuntimeError=R.MongoParseError=R.MongoNotConnectedError=R.MongoNetworkTimeoutError=R.MongoNetworkError=R.MongoMissingDependencyError=R.MongoMissingCredentialsError=R.MongoKerberosError=R.MongoInvalidArgumentError=R.MongoGridFSStreamError=R.MongoGridFSChunkError=R.MongoExpiredSessionError=R.MongoError=R.MongoDriverError=R.MongoDecompressionError=R.MongoCursorInUseError=R.MongoCursorExhaustedError=R.MongoCompatibilityError=R.MongoChangeStreamError=R.MongoBatchReExecutionError=R.MongoAzureError=R.MongoAWSError=R.MongoAPIError=R.ChangeStreamCursor=R.ClientEncryption=R.MongoBulkWriteError=R.UUID=R.Timestamp=R.ObjectId=R.MinKey=R.MaxKey=R.Long=R.Int32=R.Double=R.Decimal128=R.DBRef=R.Code=R.BSONType=R.BSONSymbol=R.BSONRegExp=R.Binary=R.BSON=void 0;R.ConnectionPoolReadyEvent=R.ConnectionPoolMonitoringEvent=R.ConnectionPoolCreatedEvent=R.ConnectionPoolClosedEvent=R.ConnectionPoolClearedEvent=R.ConnectionCreatedEvent=R.ConnectionClosedEvent=R.ConnectionCheckOutStartedEvent=R.ConnectionCheckOutFailedEvent=R.ConnectionCheckedOutEvent=R.ConnectionCheckedInEvent=R.CommandSucceededEvent=R.CommandStartedEvent=R.CommandFailedEvent=R.WriteConcern=R.ReadPreference=R.ReadConcern=R.TopologyType=R.ServerType=R.ReadPreferenceMode=R.ReadConcernLevel=R.ProfilingLevel=R.ReturnDocument=R.ServerApiVersion=R.ExplainVerbosity=R.MongoErrorLabel=R.CURSOR_FLAGS=R.Compressor=R.AuthMechanism=R.GSSAPICanonicalizationValue=R.AutoEncryptionLoggerLevel=R.BatchType=R.UnorderedBulkOperation=R.OrderedBulkOperation=R.MongoClient=R.ListIndexesCursor=R.ListCollectionsCursor=R.GridFSBucketWriteStream=R.GridFSBucketReadStream=R.GridFSBucket=R.FindCursor=R.Db=R.Collection=R.ClientSession=R.ChangeStream=R.CancellationToken=R.AggregationCursor=R.Admin=R.AbstractCursor=R.MongoWriteConcernError=void 0;R.MongoCryptKMSRequestNetworkTimeoutError=R.MongoCryptInvalidArgumentError=R.MongoCryptError=R.MongoCryptCreateEncryptedCollectionError=R.MongoCryptCreateDataKeyError=R.MongoCryptAzureKMSRequestError=R.SrvPollingEvent=R.TopologyOpeningEvent=R.TopologyDescriptionChangedEvent=R.TopologyClosedEvent=R.ServerOpeningEvent=R.ServerHeartbeatSucceededEvent=R.ServerHeartbeatStartedEvent=R.ServerHeartbeatFailedEvent=R.ServerDescriptionChangedEvent=R.ServerClosedEvent=R.ConnectionReadyEvent=void 0;var dn=Y3();Object.defineProperty(R,"Admin",{enumerable:!0,get:function(){return dn.Admin}});var cn=N3();Object.defineProperty(R,"OrderedBulkOperation",{enumerable:!0,get:function(){return cn.OrderedBulkOperation}});var pn=B3();Object.defineProperty(R,"UnorderedBulkOperation",{enumerable:!0,get:function(){return pn.UnorderedBulkOperation}});var ln=U7();Object.defineProperty(R,"ChangeStream",{enumerable:!0,get:function(){return ln.ChangeStream}});var an=P4();Object.defineProperty(R,"Collection",{enumerable:!0,get:function(){return an.Collection}});var sn=X8();Object.defineProperty(R,"AbstractCursor",{enumerable:!0,get:function(){return sn.AbstractCursor}});var nn=p5();Object.defineProperty(R,"AggregationCursor",{enumerable:!0,get:function(){return nn.AggregationCursor}});var tn=ZY();Object.defineProperty(R,"FindCursor",{enumerable:!0,get:function(){return tn.FindCursor}});var rn=EY();Object.defineProperty(R,"ListCollectionsCursor",{enumerable:!0,get:function(){return rn.ListCollectionsCursor}});var on=WY();Object.defineProperty(R,"ListIndexesCursor",{enumerable:!0,get:function(){return on.ListIndexesCursor}});var en=JZ();Object.defineProperty(R,"Db",{enumerable:!0,get:function(){return en.Db}});var Jt=EB();Object.defineProperty(R,"GridFSBucket",{enumerable:!0,get:function(){return Jt.GridFSBucket}});var Zt=DK();Object.defineProperty(R,"GridFSBucketReadStream",{enumerable:!0,get:function(){return Zt.GridFSBucketReadStream}});var $t=IK();Object.defineProperty(R,"GridFSBucketWriteStream",{enumerable:!0,get:function(){return $t.GridFSBucketWriteStream}});var Xt=C4();Object.defineProperty(R,"MongoClient",{enumerable:!0,get:function(){return Xt.MongoClient}});var Yt=C0();Object.defineProperty(R,"CancellationToken",{enumerable:!0,get:function(){return Yt.CancellationToken}});var Qt=m5();Object.defineProperty(R,"ClientSession",{enumerable:!0,get:function(){return Qt.ClientSession}});var Kt=H1();Object.defineProperty(R,"BSON",{enumerable:!0,get:function(){return Kt.BSON}});var V0=H1();Object.defineProperty(R,"Binary",{enumerable:!0,get:function(){return V0.Binary}});Object.defineProperty(R,"BSONRegExp",{enumerable:!0,get:function(){return V0.BSONRegExp}});Object.defineProperty(R,"BSONSymbol",{enumerable:!0,get:function(){return V0.BSONSymbol}});Object.defineProperty(R,"BSONType",{enumerable:!0,get:function(){return V0.BSONType}});Object.defineProperty(R,"Code",{enumerable:!0,get:function(){return V0.Code}});Object.defineProperty(R,"DBRef",{enumerable:!0,get:function(){return V0.DBRef}});Object.defineProperty(R,"Decimal128",{enumerable:!0,get:function(){return V0.Decimal128}});Object.defineProperty(R,"Double",{enumerable:!0,get:function(){return V0.Double}});Object.defineProperty(R,"Int32",{enumerable:!0,get:function(){return V0.Int32}});Object.defineProperty(R,"Long",{enumerable:!0,get:function(){return V0.Long}});Object.defineProperty(R,"MaxKey",{enumerable:!0,get:function(){return V0.MaxKey}});Object.defineProperty(R,"MinKey",{enumerable:!0,get:function(){return V0.MinKey}});Object.defineProperty(R,"ObjectId",{enumerable:!0,get:function(){return V0.ObjectId}});Object.defineProperty(R,"Timestamp",{enumerable:!0,get:function(){return V0.Timestamp}});Object.defineProperty(R,"UUID",{enumerable:!0,get:function(){return V0.UUID}});var Gt=f5();Object.defineProperty(R,"MongoBulkWriteError",{enumerable:!0,get:function(){return Gt.MongoBulkWriteError}});var Ft=SB();Object.defineProperty(R,"ClientEncryption",{enumerable:!0,get:function(){return Ft.ClientEncryption}});var qt=IY();Object.defineProperty(R,"ChangeStreamCursor",{enumerable:!0,get:function(){return qt.ChangeStreamCursor}});var r=E();Object.defineProperty(R,"MongoAPIError",{enumerable:!0,get:function(){return r.MongoAPIError}});Object.defineProperty(R,"MongoAWSError",{enumerable:!0,get:function(){return r.MongoAWSError}});Object.defineProperty(R,"MongoAzureError",{enumerable:!0,get:function(){return r.MongoAzureError}});Object.defineProperty(R,"MongoBatchReExecutionError",{enumerable:!0,get:function(){return r.MongoBatchReExecutionError}});Object.defineProperty(R,"MongoChangeStreamError",{enumerable:!0,get:function(){return r.MongoChangeStreamError}});Object.defineProperty(R,"MongoCompatibilityError",{enumerable:!0,get:function(){return r.MongoCompatibilityError}});Object.defineProperty(R,"MongoCursorExhaustedError",{enumerable:!0,get:function(){return r.MongoCursorExhaustedError}});Object.defineProperty(R,"MongoCursorInUseError",{enumerable:!0,get:function(){return r.MongoCursorInUseError}});Object.defineProperty(R,"MongoDecompressionError",{enumerable:!0,get:function(){return r.MongoDecompressionError}});Object.defineProperty(R,"MongoDriverError",{enumerable:!0,get:function(){return r.MongoDriverError}});Object.defineProperty(R,"MongoError",{enumerable:!0,get:function(){return r.MongoError}});Object.defineProperty(R,"MongoExpiredSessionError",{enumerable:!0,get:function(){return r.MongoExpiredSessionError}});Object.defineProperty(R,"MongoGridFSChunkError",{enumerable:!0,get:function(){return r.MongoGridFSChunkError}});Object.defineProperty(R,"MongoGridFSStreamError",{enumerable:!0,get:function(){return r.MongoGridFSStreamError}});Object.defineProperty(R,"MongoInvalidArgumentError",{enumerable:!0,get:function(){return r.MongoInvalidArgumentError}});Object.defineProperty(R,"MongoKerberosError",{enumerable:!0,get:function(){return r.MongoKerberosError}});Object.defineProperty(R,"MongoMissingCredentialsError",{enumerable:!0,get:function(){return r.MongoMissingCredentialsError}});Object.defineProperty(R,"MongoMissingDependencyError",{enumerable:!0,get:function(){return r.MongoMissingDependencyError}});Object.defineProperty(R,"MongoNetworkError",{enumerable:!0,get:function(){return r.MongoNetworkError}});Object.defineProperty(R,"MongoNetworkTimeoutError",{enumerable:!0,get:function(){return r.MongoNetworkTimeoutError}});Object.defineProperty(R,"MongoNotConnectedError",{enumerable:!0,get:function(){return r.MongoNotConnectedError}});Object.defineProperty(R,"MongoParseError",{enumerable:!0,get:function(){return r.MongoParseError}});Object.defineProperty(R,"MongoRuntimeError",{enumerable:!0,get:function(){return r.MongoRuntimeError}});Object.defineProperty(R,"MongoServerClosedError",{enumerable:!0,get:function(){return r.MongoServerClosedError}});Object.defineProperty(R,"MongoServerError",{enumerable:!0,get:function(){return r.MongoServerError}});Object.defineProperty(R,"MongoServerSelectionError",{enumerable:!0,get:function(){return r.MongoServerSelectionError}});Object.defineProperty(R,"MongoSystemError",{enumerable:!0,get:function(){return r.MongoSystemError}});Object.defineProperty(R,"MongoTailableCursorError",{enumerable:!0,get:function(){return r.MongoTailableCursorError}});Object.defineProperty(R,"MongoTopologyClosedError",{enumerable:!0,get:function(){return r.MongoTopologyClosedError}});Object.defineProperty(R,"MongoTransactionError",{enumerable:!0,get:function(){return r.MongoTransactionError}});Object.defineProperty(R,"MongoUnexpectedServerResponseError",{enumerable:!0,get:function(){return r.MongoUnexpectedServerResponseError}});Object.defineProperty(R,"MongoWriteConcernError",{enumerable:!0,get:function(){return r.MongoWriteConcernError}});var Wt=f5();Object.defineProperty(R,"BatchType",{enumerable:!0,get:function(){return Wt.BatchType}});var Ht=MQ();Object.defineProperty(R,"AutoEncryptionLoggerLevel",{enumerable:!0,get:function(){return Ht.AutoEncryptionLoggerLevel}});var Vt=YZ();Object.defineProperty(R,"GSSAPICanonicalizationValue",{enumerable:!0,get:function(){return Vt.GSSAPICanonicalizationValue}});var zt=O6();Object.defineProperty(R,"AuthMechanism",{enumerable:!0,get:function(){return zt.AuthMechanism}});var Ut=N7();Object.defineProperty(R,"Compressor",{enumerable:!0,get:function(){return Ut.Compressor}});var Mt=X8();Object.defineProperty(R,"CURSOR_FLAGS",{enumerable:!0,get:function(){return Mt.CURSOR_FLAGS}});var jt=E();Object.defineProperty(R,"MongoErrorLabel",{enumerable:!0,get:function(){return jt.MongoErrorLabel}});var At=oX();Object.defineProperty(R,"ExplainVerbosity",{enumerable:!0,get:function(){return At.ExplainVerbosity}});var Lt=C4();Object.defineProperty(R,"ServerApiVersion",{enumerable:!0,get:function(){return Lt.ServerApiVersion}});var wt=MY();Object.defineProperty(R,"ReturnDocument",{enumerable:!0,get:function(){return wt.ReturnDocument}});var Rt=CY();Object.defineProperty(R,"ProfilingLevel",{enumerable:!0,get:function(){return Rt.ProfilingLevel}});var Dt=c0();Object.defineProperty(R,"ReadConcernLevel",{enumerable:!0,get:function(){return Dt.ReadConcernLevel}});var Pt=k1();Object.defineProperty(R,"ReadPreferenceMode",{enumerable:!0,get:function(){return Pt.ReadPreferenceMode}});var OB=d0();Object.defineProperty(R,"ServerType",{enumerable:!0,get:function(){return OB.ServerType}});Object.defineProperty(R,"TopologyType",{enumerable:!0,get:function(){return OB.TopologyType}});var Tt=c0();Object.defineProperty(R,"ReadConcern",{enumerable:!0,get:function(){return Tt.ReadConcern}});var It=k1();Object.defineProperty(R,"ReadPreference",{enumerable:!0,get:function(){return It.ReadPreference}});var Nt=A0();Object.defineProperty(R,"WriteConcern",{enumerable:!0,get:function(){return Nt.WriteConcern}});var BK=bQ();Object.defineProperty(R,"CommandFailedEvent",{enumerable:!0,get:function(){return BK.CommandFailedEvent}});Object.defineProperty(R,"CommandStartedEvent",{enumerable:!0,get:function(){return BK.CommandStartedEvent}});Object.defineProperty(R,"CommandSucceededEvent",{enumerable:!0,get:function(){return BK.CommandSucceededEvent}});var J6=aQ();Object.defineProperty(R,"ConnectionCheckedInEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckedInEvent}});Object.defineProperty(R,"ConnectionCheckedOutEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckedOutEvent}});Object.defineProperty(R,"ConnectionCheckOutFailedEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckOutFailedEvent}});Object.defineProperty(R,"ConnectionCheckOutStartedEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckOutStartedEvent}});Object.defineProperty(R,"ConnectionClosedEvent",{enumerable:!0,get:function(){return J6.ConnectionClosedEvent}});Object.defineProperty(R,"ConnectionCreatedEvent",{enumerable:!0,get:function(){return J6.ConnectionCreatedEvent}});Object.defineProperty(R,"ConnectionPoolClearedEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolClearedEvent}});Object.defineProperty(R,"ConnectionPoolClosedEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolClosedEvent}});Object.defineProperty(R,"ConnectionPoolCreatedEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolCreatedEvent}});Object.defineProperty(R,"ConnectionPoolMonitoringEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolMonitoringEvent}});Object.defineProperty(R,"ConnectionPoolReadyEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolReadyEvent}});Object.defineProperty(R,"ConnectionReadyEvent",{enumerable:!0,get:function(){return J6.ConnectionReadyEvent}});var j8=mZ();Object.defineProperty(R,"ServerClosedEvent",{enumerable:!0,get:function(){return j8.ServerClosedEvent}});Object.defineProperty(R,"ServerDescriptionChangedEvent",{enumerable:!0,get:function(){return j8.ServerDescriptionChangedEvent}});Object.defineProperty(R,"ServerHeartbeatFailedEvent",{enumerable:!0,get:function(){return j8.ServerHeartbeatFailedEvent}});Object.defineProperty(R,"ServerHeartbeatStartedEvent",{enumerable:!0,get:function(){return j8.ServerHeartbeatStartedEvent}});Object.defineProperty(R,"ServerHeartbeatSucceededEvent",{enumerable:!0,get:function(){return j8.ServerHeartbeatSucceededEvent}});Object.defineProperty(R,"ServerOpeningEvent",{enumerable:!0,get:function(){return j8.ServerOpeningEvent}});Object.defineProperty(R,"TopologyClosedEvent",{enumerable:!0,get:function(){return j8.TopologyClosedEvent}});Object.defineProperty(R,"TopologyDescriptionChangedEvent",{enumerable:!0,get:function(){return j8.TopologyDescriptionChangedEvent}});Object.defineProperty(R,"TopologyOpeningEvent",{enumerable:!0,get:function(){return j8.TopologyOpeningEvent}});var Bt=UK();Object.defineProperty(R,"SrvPollingEvent",{enumerable:!0,get:function(){return Bt.SrvPollingEvent}});var i7=B4();Object.defineProperty(R,"MongoCryptAzureKMSRequestError",{enumerable:!0,get:function(){return i7.MongoCryptAzureKMSRequestError}});Object.defineProperty(R,"MongoCryptCreateDataKeyError",{enumerable:!0,get:function(){return i7.MongoCryptCreateDataKeyError}});Object.defineProperty(R,"MongoCryptCreateEncryptedCollectionError",{enumerable:!0,get:function(){return i7.MongoCryptCreateEncryptedCollectionError}});Object.defineProperty(R,"MongoCryptError",{enumerable:!0,get:function(){return i7.MongoCryptError}});Object.defineProperty(R,"MongoCryptInvalidArgumentError",{enumerable:!0,get:function(){return i7.MongoCryptInvalidArgumentError}});Object.defineProperty(R,"MongoCryptKMSRequestNetworkTimeoutError",{enumerable:!0,get:function(){return i7.MongoCryptKMSRequestNetworkTimeoutError}})});import{createRequire as lh} from"module";var _K=$4(U$(),1);class m4{static list(J){return _K.default({},{argv:J.slice(2),permissive:!0})._.filter(($)=>{return $.substring(0,1)!=="-"})}static parse(J,Z){if(J.length>Z.length)throw new Error("Too many arguments");const $={};for(let X=0;X<Z.length;X++){const Y=Z[X];$[Y.name]=J[X]}try{return $}catch(X){throw X}}static requireArguments(J){let Z="";if(Object.keys(J).forEach((X,Y,Q)=>{if(J[X]===void 0){if(Z+=X,Y<Q.length-1)Z+=", "}}),Z!=="")throw new Error(`Argument ${Z} is required`)}}class L8{constructor(J){var Z;this.opts={},this.args={},this.name=J.name,this.alias=(Z=J.alias)!==null&&Z!==void 0?Z:[],this.description=J.description,this.summary=J.summary,this.arguments=J.arguments,this.options=J.options}}import*as k9 from"tty";var{env:w8={},argv:vK=[],platform:sB=""}=typeof process==="undefined"?{}:process,nB="NO_COLOR"in w8||vK.includes("--no-color"),tB="FORCE_COLOR"in w8||vK.includes("--color"),rB=sB==="win32",xK=w8.TERM==="dumb",oB=k9&&k9.isatty&&k9.isatty(1)&&w8.TERM&&!xK,eB="CI"in w8&&(("GITHUB_ACTIONS"in w8)||("GITLAB_CI"in w8)||("CIRCLECI"in w8)),JE=!nB&&(tB||rB&&!xK||oB||eB),bK=(J,Z,$,X,Y=Z.substring(0,J)+X,Q=Z.substring(J+$.length),K=Q.indexOf($))=>Y+(K<0?Q:bK(K,Q,$,X)),ZE=(J,Z,$,X,Y)=>J<0?$+Z+X:$+bK(J,Z,X,Y)+X,$E=(J,Z,$=J,X=J.length+1)=>(Y)=>Y||!(Y===""||Y===void 0)?ZE((""+Y).indexOf(Z,X),Y,J,Z,$):"",m=(J,Z,$)=>$E(`\x1B[${J}m`,`\x1B[${Z}m`,$),fK={reset:m(0,0),bold:m(1,22,"\x1B[22m\x1B[1m"),dim:m(2,22,"\x1B[22m\x1B[2m"),italic:m(3,23),underline:m(4,24),inverse:m(7,27),hidden:m(8,28),strikethrough:m(9,29),black:m(30,39),red:m(31,39),green:m(32,39),yellow:m(33,39),blue:m(34,39),magenta:m(35,39),cyan:m(36,39),white:m(37,39),gray:m(90,39),bgBlack:m(40,49),bgRed:m(41,49),bgGreen:m(42,49),bgYellow:m(43,49),bgBlue:m(44,49),bgMagenta:m(45,49),bgCyan:m(46,49),bgWhite:m(47,49),blackBright:m(90,39),redBright:m(91,39),greenBright:m(92,39),yellowBright:m(93,39),blueBright:m(94,39),magentaBright:m(95,39),cyanBright:m(96,39),whiteBright:m(97,39),bgBlackBright:m(100,49),bgRedBright:m(101,49),bgGreenBright:m(102,49),bgYellowBright:m(103,49),bgBlueBright:m(104,49),bgMagentaBright:m(105,49),bgCyanBright:m(106,49),bgWhiteBright:m(107,49)},XE=({useColor:J=JE}={})=>J?fK:Object.keys(fK).reduce((Z,$)=>({...Z,[$]:String}),{}),{reset:pt,bold:lt,dim:at,italic:it,underline:st,inverse:nt,hidden:tt,strikethrough:rt,black:ot,red:gK,green:mK,yellow:uK,blue:dK,magenta:et,cyan:Jr,white:Zr,gray:cK,bgBlack:$r,bgRed:pK,bgGreen:lK,bgYellow:aK,bgBlue:iK,bgMagenta:Xr,bgCyan:Yr,bgWhite:Qr,blackBright:Kr,redBright:Gr,greenBright:Fr,yellowBright:qr,blueBright:Wr,magentaBright:Hr,cyanBright:Vr,whiteBright:zr,bgBlackBright:Ur,bgRedBright:Mr,bgGreenBright:jr,bgYellowBright:Ar,bgBlueBright:Lr,bgMagentaBright:wr,bgCyanBright:Rr,bgWhiteBright:Dr}=XE();class e{static red(J){return gK(J)}static green(J){return mK(J)}static blue(J){return dK(J)}static gray(J){return cK(J)}static yellow(J){return uK(J)}static bgRed(J){return pK(J)}static bgGreen(J){return lK(J)}static bgBlue(J){return iK(J)}static bgYellow(J){return aK(J)}}class M${constructor(J){this.commands=[],this.name=J}getCommands(){return this.commands.filter((J)=>J.name!=="")}getCommand(J){var Z;return(Z=this.commands.find(($)=>$.name===J))!==null&&Z!==void 0?Z:this.commands.find(($)=>$.alias.includes(J))}createCommand(J){this.addHelpFlag(J),this.commands.push(J)}findDuplicate(){const J=new Set,Z=[],$=[],X=[];return this.commands.forEach((Y)=>{if(J.size===J.add(Y.name).size)Z.push(Y.name);const Q=[],K=new Set;if(Y.arguments.forEach((q)=>{if(K.size===K.add(q.name).size)Q.push(q.name)}),Q.length>0)$.push({command:Y.name,arguments:Q});const G=[],F=new Set;if(Y.options.forEach((q)=>{if(F.size===F.add(q.flag).size)G.push(q.flag);if(q.type==="boolean"&&q.shorthand&&F.size===F.add(q.shorthand).size)G.push(q.shorthand)}),G.length>0)X.push({command:Y.name,options:G})}),{isDuplicate:Z.length>0||$.length>0||X.length>0,commands:Z,arguments:$,options:X}}addHelpFlag(J){J.options.push({type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"})}}var iG=$4(aG(),1);class B$ extends iG.default{constructor(J){super(J)}static termsWidth(...J){return Math.max(...J)}}class d6 extends B${constructor(J=30){super({colWidths:[J,process.stdout.columns-J],wordWrap:!0,chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:""}})}}class $6{static rootHelp(J,Z){this.outputRoot+=e.yellow("USAGE"),this.outputRoot+=this.br(),this.outputRoot+=` ${J.name} [options] <command>`,this.outputRoot+=this.br(),this.outputRoot+=this.br(),this.outputRoot+=e.yellow("COMMANDS"),this.outputRoot+=this.br();const $=d6.termsWidth($6.commandTermLength(J.getCommands()),$6.optionTermLength(Z)),X=new d6($+this.separatorLength+Math.round($/2));J.getCommands().forEach((Q)=>{X.push([e.green(Q.name),e.gray(Q.summary)])}),this.outputRoot+=X.toString(),this.outputRoot+=this.br();const Y=new d6($+this.separatorLength+Math.round($/2));this.outputRoot+=this.br(),this.outputRoot+=e.yellow("OPTIONS"),this.outputRoot+=this.br(),Z.forEach((Q)=>{let K=e.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${e.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,e.gray(Q.description)])}),this.outputRoot+=Y.toString(),this.outputRoot+=this.br(),console.log(this.outputRoot)}static commandHelp(J,Z){if(this.output+=e.yellow("USAGE"),this.output+=this.br(),this.output+=` ${J.name} ${Z.name}`,Z.options.length)this.output+=" [options]";Z.arguments.forEach((Q)=>{this.output+=` <${Q.name}>`}),this.output+=this.br(),this.output+=this.br(),this.output+=e.yellow("ARGUMENTS"),this.output+=this.br();const $=d6.termsWidth($6.argumentTermLength(Z.arguments),$6.optionTermLength(Z.options)),X=new d6($+this.separatorLength+Math.round($/2));Z.arguments.forEach((Q)=>{X.push([e.green(Q.name),e.gray(Q.description)])}),this.output+=X.toString(),this.output+=this.br(),this.output+=this.br(),this.output+=e.yellow("OPTIONS"),this.output+=this.br();const Y=new d6($+this.separatorLength+Math.round($/2));if(Z.options.forEach((Q)=>{let K=e.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${e.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,e.gray(Q.description)])}),this.output+=Y.toString(),this.output+=this.br(),Z.alias.length)this.output+=this.br(),this.output+=e.yellow("ALIAS"),this.output+=this.br(),this.output+=` ${e.green(Z.alias.join(","))}`;console.log(this.output)}static br(J=1){let Z="";for(let $=0;$<J;$++)Z+="\n";return Z}static commandTermLength(J){return J.reduce((Z,$)=>{return Math.max(Z,$.name.length)},0)}static optionTermLength(J){return J.reduce((Z,$)=>{return Math.max(Z,$.flag.length)},0)}static argumentTermLength(J){return J.reduce((Z,$)=>{return Math.max(Z,$.name.length)},0)}}$6.separatorLength=10;$6.outputRoot="";$6.output="";var E$=$4(U$(),1);class b9{static convert(J){const Z={};for(let $=0;$<J.length;$++){const X=J[$];if(Z[X.flag]=X.type==="boolean"?Boolean:String,X.type=="boolean"&&X.shorthand)Z[X.shorthand]=X.flag}return Z}static parseRoot(J,Z){try{const $=this.convert(Z);return E$.default($,{argv:J.slice(2)})}catch($){throw $}}static parse(J,Z,$){try{const X=this.convert($),Y=E$.default(X,{argv:J.slice(3)});return{args:m4.parse(Y._,Z),opts:Y}}catch(X){throw X}}}var ph=$4(QV(),1);class KV{constructor(J,Z){if(Z)this.version=Z;else this.version=this.packageVersion();this.command=new M$(J)}packageVersion(){const J=lh(import.meta.url),{version:Z}=J("../package.json");return Z}register(J){this.command.createCommand(J)}run(J){try{const Z=this.command.findDuplicate();if(Z.isDuplicate){if(Z.commands.length)console.error(e.red("[ERROR] Duplicate commands")),console.error(Z.commands);if(Z.arguments.length)console.error(e.red("[ERROR] Duplicate arguments")),console.error(Z.arguments);if(Z.options.length)console.error(e.red("[ERROR] Duplicate options")),console.error(Z.options);return}if(m4.list(J).length===0){const Q=[{type:"boolean",flag:"--version",shorthand:"-v",description:"Display version"},{type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"}];if(b9.parseRoot(J,Q)["--version"])return console.log(this.version);return $6.rootHelp(this.command,Q)}let X=this.command.getCommand(J[2]);if(!X)X=this.command.getCommand("");if(!X)throw new Error("Command not found");const Y=b9.parse(J,X.arguments,X.options);if(X.args=Y.args,X.opts=Y.opts,X.opts["--help"])return $6.commandHelp(this.command,X);m4.requireArguments(X.args),X.handle()}catch(Z){if(Z instanceof Error)return console.error(e.red(`[ERROR] ${Z.message}`));return console.error(Z)}}}function XJ(J,Z,$){$(new K4(404))}class b0 extends Error{constructor(J){super(J.message);Object.setPrototypeOf(this,new.target.prototype),this.code=J.code,this.status=J.status,this.message=J.message,this.errors=J.errors,Error.captureStackTrace(this)}}var V5=(J)=>{if(J instanceof b0)return J.isOperational;return!1};function YJ(J,Z,$,X){if(J instanceof b0&&V5(J)){const Q={name:J.name,code:J.code,status:J.status,message:J.message};if(J.errors)Q.errors=J.errors;return $.status(J.code).json(Q),X(J)}const Y={name:"ServerError",code:500,status:"Internal Server Error",message:"Sorry something went wrong."};$.status(500).json(Y),X(J)}function G4(J){if(typeof J==="number")return GV.find((Z)=>{return Z.code===J});else return GV.find((Z)=>{return Z.status===J})}var GV=[{name:"ClientError",code:400,status:"Bad Request",message:"The server cannot process the request."},{name:"ClientError",code:401,status:"Unauthorized",message:"Authentication credentials is invalid."},{name:"ClientError",code:403,status:"Forbidden",message:"Don't have necessary permissions for this resource."},{name:"ClientError",code:404,status:"Not Found",message:"The URL is not recognized or endpoint is valid but the resource itself does not exist."},{name:"ClientError",code:422,status:"Unprocessable Entity",message:"The request was well-formed but was unable to be followed due to semantic errors."},{name:"ClientError",code:429,status:"Too Many Requests",message:"Sent too many requests in a given amount of time."},{name:"ServerError",code:500,status:"Internal Server Error",message:"An unexpected condition was encountered."}];class K4 extends b0{constructor(J,Z){const $=G4(J);if(!$)throw new Error(`Error codeStatus "${J}" not found`);const X=$;if(Z)X.errors=Z;super(X)}get isOperational(){return!0}get name(){return"ApiError"}}var dB=$4(G$(),1);import $71 from"fs";import Y71 from"path";import G71 from"fs";import q71 from"path";import V71 from"fs";var EK=(J)=>J[0].toUpperCase()+J.slice(1);var O9=(J)=>{return J.replace(/(?:^\w|[A-Z]|\b\w)/g,function(Z,$){return $===0?Z.toLowerCase():Z.toUpperCase()}).replace(/[^0-9a-zA-Z]/g,"")};var g4=(J)=>EK(O9(J));var S1=(J)=>J.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();import s7 from"fs";import yB from"path";class F$ extends L8{constructor(){super({name:"make:command",description:"Make a new console command",summary:"Make a new console command",arguments:[{name:"name",description:"Name of console command"}],options:[]})}async handle(){if(s7.existsSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}`)){console.error(e.red("Command directory is exists"));return}s7.mkdirSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}`,{recursive:!0});const J=s7.readFileSync(yB.resolve(Z4,"./command/index.command.ts")).toString().replace("[name]",S1(this.args.name)).replace("NewCommand",`${g4(this.args.name)}Command`);s7.writeFileSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}/index.command.ts`,J);const Z=s7.readFileSync(yB.resolve(Z4,"./command/index.spec.ts")).toString().replace(/NewCommand/g,`${g4(this.args.name)}Command`).replace(/newCommand/g,`${O9(this.args.name)}Command`);s7.writeFileSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}/index.spec.ts`,Z),console.info(`src/console/commands/${S1(this.args.name)}/index.command.ts`,"has been created"),console.info(`src/console/commands/${S1(this.args.name)}/index.spec.ts`,"has been created")}}import m6 from"fs";import q$ from"path";class W$ extends L8{constructor(){super({name:"make:middleware",description:"Make a new middleware",summary:"Make a new middleware",arguments:[{name:"name",description:"Name of middleware"}],options:[{type:"boolean",flag:"--configurable",shorthand:"-c",description:"Export a function which accepts an options"}]})}async handle(){if(m6.existsSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}`)){console.error(e.red("Middleware directory is exists"));return}if(m6.mkdirSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}`,{recursive:!0}),this.opts["--configurable"])this.copyConfigureableMiddleware();else this.copyMiddleware()}copyMiddleware(){const J=m6.readFileSync(q$.resolve(Z4,"./middleware/new.middleware.ts")).toString().replace("NewMiddleware",`${g4(this.args.name)}Middleware`);m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.middleware.ts`,J);const Z=m6.readFileSync(q$.resolve(Z4,"./middleware/new.spec.ts")).toString().replace("new.middleware.ts","index.middleware.ts");m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.spec.ts`,Z),console.info(`src/middleware/${S1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${S1(this.args.name)}/index.spec.ts`,"has been created")}copyConfigureableMiddleware(){const J=m6.readFileSync(q$.resolve(Z4,"./middleware/configurable.middleware.ts")).toString().replace("NewMiddleware",`${g4(this.args.name)}Middleware`);m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.middleware.ts`,J);const Z=m6.readFileSync(q$.resolve(Z4,"./middleware/configurable.spec.ts")).toString().replace("configurable.middleware.ts","index.middleware.ts");m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.spec.ts`,Z),console.info(`src/middleware/${S1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${S1(this.args.name)}/index.spec.ts`,"has been created")}}class CK{command;constructor(J){this.command=J}async register(){this.command.register(new F$),this.command.register(new W$)}}class hK{J;session;constructor(J){this.adapter=J}async open(){await this.adapter.open()}async close(){await this.adapter.close()}database(J){return this.adapter.database(J),this}collection(J){return this.adapter.collection(J),this}async listCollections(){return this.adapter.listCollections()}startSession(){return this.adapter.startSession()}async endSession(){await this.adapter.endSession()}startTransaction(){this.adapter.startTransaction()}async commitTransaction(){await this.adapter.commitTransaction()}async abortTransaction(){await this.adapter.abortTransaction()}async createIndex(J,Z,$){await this.adapter.createIndex(J,Z,$)}async createCollection(J,Z){await this.adapter.createCollection(J,Z)}async dropCollection(J,Z){await this.adapter.dropCollection(J,Z)}async updateSchema(J,Z){await this.adapter.updateSchema(J,Z)}async create(J,Z){return await this.adapter.create(J,Z)}async createMany(J,Z){return await this.adapter.createMany(J,Z)}async retrieveAll(J,Z){return await this.adapter.retrieveAll(J,Z)}async retrieve(J,Z){return await this.adapter.retrieve(J,Z)}async update(J,Z,$){return await this.adapter.update(J,Z,$)}async updateMany(J,Z,$){return await this.adapter.updateMany(J,Z,$)}async delete(J,Z){return await this.adapter.delete(J,Z)}async deleteMany(J,Z){return await this.adapter.deleteMany(J,Z)}async deleteAll(J){return await this.adapter.deleteAll(J)}async aggregate(J,Z,$){return await this.adapter.aggregate(J,Z,$)}}var t7=$4(G$(),1);function _B(J){const Z=Object.prototype.toString.call(J);if(J instanceof Date||typeof J==="object"&&Z==="[object Date]")return new J.constructor(+J);else if(typeof J==="number"||Z==="[object Number]"||typeof J==="string"||Z==="[object String]")return new Date(J);else return new Date(NaN)}function fB(J){return J instanceof Date||typeof J==="object"&&Object.prototype.toString.call(J)==="[object Date]"}function H$(J){if(!fB(J)&&typeof J!=="number")return!1;const Z=_B(J);return!isNaN(Number(Z))}var n7=$4(G$(),1);class z0{db;constructor(J){this.db=J}async createUnique(J,Z){await this.db.createIndex(J,Z,{unique:!0,collation:{locale:"en",strength:2}})}async createUniqueIfNotNull(J,Z){await this.db.createIndex(J,Z,{unique:!0,sparse:!0,collation:{locale:"en",strength:2}})}async isExists(J){return(await this.db.listCollections()).some(function($){return $.name===J})}static stringToObjectId(J){if(J==null)return null;if(Array.isArray(J))return J.map((Z)=>{return z0.stringToObjectId(Z)});else if(typeof J==="object"&&!H$(J))return Object.keys(J).reduce((Z,$)=>{const X=z0.stringToObjectId(J[$]);return Z[$]=X,Z},{});else if(typeof J==="string"&&n7.ObjectId.isValid(J)&&J===new n7.ObjectId(J).toString())return new n7.ObjectId(J);return J}static objectIdToString(J){if(J==null)return null;if(Array.isArray(J))return J.map((Z)=>{return z0.objectIdToString(Z)});else if(typeof J==="object"&&n7.ObjectId.isValid(J))return J.toString();else if(typeof J==="object"&&!H$(J))return Object.keys(J).reduce((Z,$)=>{if(n7.ObjectId.isValid(J)||H$(J))return J.toString();else{const X=z0.objectIdToString(J[$]);return Z[$]=X,Z}},{});return J}}function vB(J=1){if(typeof J==="string")return parseInt(J);return J}function xB(J=10){if(typeof J==="string")return parseInt(J);return J}function _t(J,Z){return(vB(J)-1)*xB(Z)}function ft(J){return J}function vt(J="",Z=[]){const $=gB(bB(J));return mB($,Z)}function bB(J){return J.split(" ").join().split(",").filter((Z)=>Z)}function gB(J,Z=1){const $={};for(let X=0;X<J.length;X++)$[`${J[X].trim()}`]=Z;return $}function mB(J,Z){for(let $=0;$<Z.length;$++)J[`${Z[$]}`]=0;return J}function xt(J){const Z={};if(J)J.split(",").forEach(function($){if($.charAt(0)==="-")$=$.substring(1),Z[$.trim()]=-1;else Z[$.trim()]=1});return Z}var M1={page:vB,limit:xB,skip:_t,sort:xt,fields:vt,filter:ft,filterExludeFields:mB,convertStringToArray:bB,convertArrayToObject:gB};class SK{Z;client;_database;_collection;session;constructor(J,Z){this.databaseName=Z;const $={};this.client=new t7.MongoClient(J,$),this.database(Z)}async open(){await this.client.connect()}async close(){await this.client.close()}database(J,Z){return this._database=this.client.db(J,Z),this}collection(J,Z){if(!this._database)throw new Error("Database not found");return this._collection=this._database.collection(J,Z),this}async listCollections(){if(!this._database)throw new Error("Database not found");return await this._database.listCollections().toArray()}async createIndex(J,Z,$){if(!this._database)throw new Error("Database not found");await this._database.createIndex(J,Z,$)}async updateSchema(J,Z){if(!this._database)throw new Error("Database not found");await this._database.command({collMod:J,validator:{$jsonSchema:Z}})}async createCollection(J,Z){if(!this._database)throw new Error("Database not found");await this._database.createCollection(J,Z)}async dropCollection(J,Z){if(!this._database)throw new Error("Database not found");await this._database.dropCollection(J,Z)}startSession(){return this.session=this.client.startSession(),this.session}async endSession(){await this.session?.endSession()}startTransaction(){this.session?.startTransaction()}async commitTransaction(){await this.session?.commitTransaction()}async abortTransaction(){await this.session?.abortTransaction()}async create(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z;return{insertedId:(await this._collection.insertOne(J,$)).insertedId.toString()}}async createMany(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z,X=await this._collection.insertMany(J,$),Y=[];return Object.values(X.insertedIds).forEach((Q)=>{Y.push(Q.toString())}),{insertedIds:Y,insertedCount:X.insertedCount}}async retrieveAll(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z,X=this._collection.find(z0.stringToObjectId(J.filter??{}),$).limit(M1.limit(J.pageSize)).skip(M1.skip(M1.page(J.page),M1.limit(J.pageSize)));if(J.sort&&M1.sort(J.sort))X.sort(M1.sort(J.sort));if(M1.fields(J.fields,J.excludeFields))X.project(M1.fields(J.fields,J.excludeFields));const Y=await X.toArray(),Q=await this._collection.countDocuments(J.filter??{},$);return{data:z0.objectIdToString(Y),pagination:{page:M1.page(J.page),pageCount:Math.ceil(Q/M1.limit(J.pageSize)),pageSize:M1.limit(J.pageSize),totalDocument:Q}}}async retrieve(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z,X=await this._collection.findOne({_id:new t7.ObjectId(J)},$);return z0.objectIdToString(X)}async update(J,Z,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateOne({_id:new t7.ObjectId(J)},{$set:z0.stringToObjectId(Z)},X);return{modifiedCount:Y.modifiedCount,matchedCount:Y.matchedCount}}async updateMany(J,Z,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateMany(J,{$set:z0.stringToObjectId(Z)},X);return{matchedCount:Y.matchedCount,modifiedCount:Y.modifiedCount}}async delete(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z;return{deletedCount:(await this._collection.deleteOne({_id:new t7.ObjectId(J)},$)).deletedCount}}async deleteMany(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z;return{deletedCount:(await this._collection.deleteMany({_id:{$in:z0.stringToObjectId(J)}},$)).deletedCount}}async deleteAll(J){if(!this._collection)throw new Error("Collection not found");const Z=J;return{deletedCount:(await this._collection.deleteMany({},Z)).deletedCount}}async aggregate(J,Z,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=this._collection.aggregate([...J,{$skip:(M1.page(Z.page)-1)*M1.limit(Z.pageSize)},{$limit:M1.limit(Z.pageSize)}],X);if(Z.sort&&M1.sort(Z.sort))Y.sort(M1.sort(Z.sort));if(M1.fields(Z.fields,Z.excludeFields))Y.project(M1.fields(Z.fields,Z.excludeFields));const Q=await Y.toArray(),G=await this._collection.aggregate([...J,{$count:"totalDocument"}],X).toArray(),F=G.length?G[0].totalDocument:0;return{data:z0.objectIdToString(Q),pagination:{page:M1.page(Z.page),pageCount:Math.ceil(F/M1.limit(Z.pageSize)),pageSize:M1.limit(Z.pageSize),totalDocument:F}}}}function bt(J,Z){Z.errors={},(J.errInfo?.details.schemaRulesNotSatisfied[0].propertiesNotSatisfied).forEach((X)=>{const Y={};Y[X.propertyName]=[X.details[0].reason],Z.errors=Y})}function gt(J,Z){if(Object.keys(J.keyPattern).length===1)Z.errors={[Object.keys(J.keyPattern)[0]]:[`The ${Object.keys(J.keyPattern)[0]} is exists.`]};else{const $=Object.keys(J.keyPattern).reduce((Y,Q,K)=>{if(K===0)Y+="'";if(Y+=`${Q.toString()}`,K===Object.keys(J.keyPattern).length-1)Y+="'";else Y+=", ";return Y},""),X=Object.keys(J.keyPattern).reduce((Y,Q)=>{return Y[Q]=[`The combination of ${$.toString()} is exists.`],Y},{});Z.errors=X}}class OK extends b0{constructor(J){const Z=G4(400);if(J.code===121)bt(J,Z);else if(J.code===11000)gt(J,Z);super(Z);Object.setPrototypeOf(this,new.target.prototype)}get isOperational(){return!0}get name(){return"MongoErrorHandler"}}class uB{app;server=null;constructor(J){this.app=J}listen(J,Z){return new Promise(($,X)=>{if(Z)this.server=this.app.listen(J,Z).once("listening",$).once("error",X);else this.server=this.app.listen(J).once("listening",$).once("error",X)})}async start(J,Z){await this.listen(J,Z)}stop(){this.server?.close(),this.server=null}get host(){const J=this.server?.address();if(J?.address==="0.0.0.0"||J?.address==="::")return"localhost";else return J?.address}get port(){return this.server?.address()?.port}get url(){return`http://${this.host}${this.port!==80?`:${this.port}`:""}`}}var Z4=import.meta.path.replace("/index.ts","/../stub").replace("/index.js","/../stub"),O91=L8,k91=CK,y91=hK,_91=SK,f91=z0,v91=M1,x91=dB.MongoServerError,b91=OK,g91={ApiError:K4,BaseError:b0,isTrustedError:V5,getHttpError:G4,errorHandlerMiddleware:YJ,invalidPathMiddleware:XJ};export{Z4 as stubDir,uB as BaseServer,x91 as BaseMongoServerError,b91 as BaseMongoErrorHandler,v91 as BaseMongoDBQuerystring,f91 as BaseMongoDBHelper,_91 as BaseMongoDBConnection,g91 as BaseErrorHandler,y91 as BaseDatabaseConnection,k91 as BaseConsoleKernel,O91 as BaseConsoleCommand,KV as BaseConsoleCli};
|
|
16
|
+
Filtered results for: ${this.inputValue?this.inputValue:n6.gray("Enter something to filter")}\n`}renderOption(J,Z,$){let X;if(Z.disabled)X=J===$?n6.gray().underline(Z.title):n6.strikethrough().gray(Z.title);else X=J===$?n6.cyan().underline(Z.title):Z.title;return(Z.selected?n6.green(a4.radioOn):a4.radioOff)+" "+X}renderDoneOrInstructions(){if(this.done)return this.value.filter((Z)=>Z.selected).map((Z)=>Z.title).join(", ");const J=[n6.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled)J.push(n6.yellow(this.warn));return J.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(yh.hide);super.render();let J=[dH.symbol(this.done,this.aborted),n6.bold(this.msg),dH.delimiter(!1),this.renderDoneOrInstructions()].join(" ");if(this.showMinError)J+=n6.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1;J+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+J),this.clear=uH(J,this.out.columns)}}pH.exports=cH});var rH=V((We,tH)=>{var aH=j1(),fh=i6(),{style:iH,clear:vh}=Y6(),{erase:xh,cursor:sH}=L1();class nH extends fh{constructor(J={}){super(J);this.msg=J.message,this.value=J.initial,this.initialValue=!!J.initial,this.yesMsg=J.yes||"yes",this.yesOption=J.yesOption||"(Y/n)",this.noMsg=J.no||"no",this.noOption=J.noOption||"(y/N)",this.render()}reset(){this.value=this.initialValue,this.fire(),this.render()}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){this.value=this.value||!1,this.done=!0,this.aborted=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}_(J,Z){if(J.toLowerCase()==="y")return this.value=!0,this.submit();if(J.toLowerCase()==="n")return this.value=!1,this.submit();return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(sH.hide);else this.out.write(vh(this.outputText,this.out.columns));super.render(),this.outputText=[iH.symbol(this.done,this.aborted),aH.bold(this.msg),iH.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:aH.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(xh.line+sH.to(0)+this.outputText)}}tH.exports=nH});var eH=V((He,oH)=>{oH.exports={TextPrompt:_W(),SelectPrompt:gW(),TogglePrompt:pW(),DatePrompt:NH(),NumberPrompt:SH(),MultiselectPrompt:t$(),AutocompletePrompt:mH(),AutocompleteMultiselectPrompt:lH(),ConfirmPrompt:rH()}});var ZV=V((JV)=>{var E6=function(J,Z,$={}){return new Promise((X,Y)=>{const Q=new bh[J](Z),K=$.onAbort||$J,G=$.onSubmit||$J,F=$.onExit||$J;Q.on("state",Z.onState||$J),Q.on("submit",(q)=>X(G(q))),Q.on("exit",(q)=>X(F(q))),Q.on("abort",(q)=>Y(K(q)))})},j0=JV,bh=eH(),$J=(J)=>J;j0.text=(J)=>E6("TextPrompt",J);j0.password=(J)=>{return J.style="password",j0.text(J)};j0.invisible=(J)=>{return J.style="invisible",j0.text(J)};j0.number=(J)=>E6("NumberPrompt",J);j0.date=(J)=>E6("DatePrompt",J);j0.confirm=(J)=>E6("ConfirmPrompt",J);j0.list=(J)=>{const Z=J.separator||",";return E6("TextPrompt",J,{onSubmit:($)=>$.split(Z).map((X)=>X.trim())})};j0.toggle=(J)=>E6("TogglePrompt",J);j0.select=(J)=>E6("SelectPrompt",J);j0.multiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return E6("MultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};j0.autocompleteMultiselect=(J)=>{J.choices=[].concat(J.choices||[]);const Z=($)=>$.filter((X)=>X.selected).map((X)=>X.value);return E6("AutocompleteMultiselectPrompt",J,{onAbort:Z,onSubmit:Z})};var gh=(J,Z)=>Promise.resolve(Z.filter(($)=>$.title.slice(0,J.length).toLowerCase()===J.toLowerCase()));j0.autocomplete=(J)=>{return J.suggest=J.suggest||gh,J.choices=[].concat(J.choices||[]),E6("AutocompletePrompt",J)}});var YV=V((ze,XV)=>{async function T8(J=[],{onSubmit:Z=$V,onCancel:$=$V}={}){const X={},Y=T8._override||{};J=[].concat(J);let Q,K,G,F,q,W;const H=async(U,j,z=!1)=>{if(!z&&U.validate&&U.validate(j)!==!0)return;return U.format?await U.format(j,X):j};for(K of J){if({name:F,type:q}=K,typeof q==="function")q=await q(Q,{...X},K),K.type=q;if(!q)continue;for(let U in K){if(mh.includes(U))continue;let j=K[U];K[U]=typeof j==="function"?await j(Q,{...X},W):j}if(W=K,typeof K.message!=="string")throw new Error("prompt message is required");if({name:F,type:q}=K,e$[q]===void 0)throw new Error(`prompt type (${q}) is not defined`);if(Y[K.name]!==void 0){if(Q=await H(K,Y[K.name]),Q!==void 0){X[F]=Q;continue}}try{Q=T8._injected?uh(T8._injected,K.initial):await e$[q](K),X[F]=Q=await H(K,Q,!0),G=await Z(K,Q,X)}catch(U){G=!await $(K,X)}if(G)return X}return X}var uh=function(J,Z){const $=J.shift();if($ instanceof Error)throw $;return $===void 0?Z:$},dh=function(J){T8._injected=(T8._injected||[]).concat(J)},ch=function(J){T8._override=Object.assign({},J)},e$=ZV(),mh=["suggest","format","onState","validate","onRender","type"],$V=()=>{};XV.exports=Object.assign(T8,{prompt:T8,prompts:e$,inject:dh,override:ch})});var KV=V((Ue,QV)=>{var ph=function(J){J=(Array.isArray(J)?J:J.split(".")).map(Number);let Z=0,$=process.versions.node.split(".").map(Number);for(;Z<J.length;Z++){if($[Z]>J[Z])return!1;if(J[Z]>$[Z])return!0}return!1};QV.exports=ph("8.6.0")?VW():YV()});var L5=V((dS)=>{var PX=function(J){return["[object ArrayBuffer]","[object SharedArrayBuffer]"].includes(Object.prototype.toString.call(J))},q4=function(J){return Object.prototype.toString.call(J)==="[object Uint8Array]"},s4=function(J){return Object.prototype.toString.call(J)==="[object RegExp]"},TX=function(J){return Object.prototype.toString.call(J)==="[object Map]"},n4=function(J){return Object.prototype.toString.call(J)==="[object Date]"},B0=function(J,Z){return JSON.stringify(J,($,X)=>{if(typeof X==="bigint")return{$numberLong:`${X}`};else if(TX(X))return Object.fromEntries(X);return X})},ih=function(J){if(J!=null&&typeof J==="object"&&"stylize"in J&&typeof J.stylize==="function")return J.stylize},rh=function(J){return I8.fromNumberArray(Array.from({length:J},()=>Math.floor(Math.random()*256)))},eh=function(){const{navigator:J}=globalThis;return typeof J==="object"&&J.product==="ReactNative"},JS=function(J){if(J<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${J}`);return o4.fromNumberArray(Array.from({length:J},()=>Math.floor(Math.random()*256)))},gV=function(J){return J!=null&&typeof J==="object"&&"$id"in J&&J.$id!=null&&"$ref"in J&&typeof J.$ref==="string"&&(!("$db"in J)||("$db"in J)&&typeof J.$db==="string")},wV=function(J){return!isNaN(parseInt(J,10))},MS=function(J){const Z=M.fromNumber(1e9);let $=M.fromNumber(0);if(!J.parts[0]&&!J.parts[1]&&!J.parts[2]&&!J.parts[3])return{quotient:J,rem:$};for(let X=0;X<=3;X++)$=$.shiftLeft(32),$=$.add(new M(J.parts[X],0)),J.parts[X]=$.div(Z).low,$=$.modulo(Z);return{quotient:J,rem:$}},jS=function(J,Z){if(!J&&!Z)return{high:M.fromNumber(0),low:M.fromNumber(0)};const $=J.shiftRightUnsigned(32),X=new M(J.getLowBits(),0),Y=Z.shiftRightUnsigned(32),Q=new M(Z.getLowBits(),0);let K=$.multiply(Y),G=$.multiply(Q);const F=X.multiply(Y);let q=X.multiply(Q);return K=K.add(G.shiftRightUnsigned(32)),G=new M(G.getLowBits(),0).add(F).add(q.shiftRightUnsigned(32)),K=K.add(G.shiftRightUnsigned(32)),q=G.shiftLeft(32).add(new M(q.getLowBits(),0)),{high:K,low:q}},AS=function(J,Z){const $=J.high>>>0,X=Z.high>>>0;if($<X)return!0;else if($===X){const Y=J.low>>>0,Q=Z.low>>>0;if(Y<Q)return!0}return!1},Q6=function(J,Z){throw new D(`"${J}" is not a valid Decimal128 string - ${Z}`)},KJ=function(J,Z,$){let X=5;if(Array.isArray(J))for(let Y=0;Y<J.length;Y++)X+=RV(Y.toString(),J[Y],Z,!0,$);else{if(typeof J?.toBSON==="function")J=J.toBSON();for(let Y of Object.keys(J))X+=RV(Y,J[Y],Z,!1,$)}return X},RV=function(J,Z,$=!1,X=!1,Y=!1){if(typeof Z?.toBSON==="function")Z=Z.toBSON();switch(typeof Z){case"string":return 1+L.utf8ByteLength(J)+1+4+L.utf8ByteLength(Z)+1;case"number":if(Math.floor(Z)===Z&&Z>=BV&&Z<=NV)if(Z>=UJ&&Z<=zJ)return(J!=null?L.utf8ByteLength(J)+1:0)+5;else return(J!=null?L.utf8ByteLength(J)+1:0)+9;else return(J!=null?L.utf8ByteLength(J)+1:0)+9;case"undefined":if(X||!Y)return(J!=null?L.utf8ByteLength(J)+1:0)+1;return 0;case"boolean":return(J!=null?L.utf8ByteLength(J)+1:0)+2;case"object":if(Z!=null&&typeof Z._bsontype==="string"&&Z[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(Z==null||Z._bsontype==="MinKey"||Z._bsontype==="MaxKey")return(J!=null?L.utf8ByteLength(J)+1:0)+1;else if(Z._bsontype==="ObjectId")return(J!=null?L.utf8ByteLength(J)+1:0)+13;else if(Z instanceof Date||n4(Z))return(J!=null?L.utf8ByteLength(J)+1:0)+9;else if(ArrayBuffer.isView(Z)||Z instanceof ArrayBuffer||PX(Z))return(J!=null?L.utf8ByteLength(J)+1:0)+6+Z.byteLength;else if(Z._bsontype==="Long"||Z._bsontype==="Double"||Z._bsontype==="Timestamp")return(J!=null?L.utf8ByteLength(J)+1:0)+9;else if(Z._bsontype==="Decimal128")return(J!=null?L.utf8ByteLength(J)+1:0)+17;else if(Z._bsontype==="Code")if(Z.scope!=null&&Object.keys(Z.scope).length>0)return(J!=null?L.utf8ByteLength(J)+1:0)+1+4+4+L.utf8ByteLength(Z.code.toString())+1+KJ(Z.scope,$,Y);else return(J!=null?L.utf8ByteLength(J)+1:0)+1+4+L.utf8ByteLength(Z.code.toString())+1;else if(Z._bsontype==="Binary"){const Q=Z;if(Q.sub_type===l.SUBTYPE_BYTE_ARRAY)return(J!=null?L.utf8ByteLength(J)+1:0)+(Q.position+1+4+1+4);else return(J!=null?L.utf8ByteLength(J)+1:0)+(Q.position+1+4+1)}else if(Z._bsontype==="Symbol")return(J!=null?L.utf8ByteLength(J)+1:0)+L.utf8ByteLength(Z.value)+4+1+1;else if(Z._bsontype==="DBRef"){const Q=Object.assign({$ref:Z.collection,$id:Z.oid},Z.fields);if(Z.db!=null)Q.$db=Z.db;return(J!=null?L.utf8ByteLength(J)+1:0)+1+KJ(Q,$,Y)}else if(Z instanceof RegExp||s4(Z))return(J!=null?L.utf8ByteLength(J)+1:0)+1+L.utf8ByteLength(Z.source)+1+(Z.global?1:0)+(Z.ignoreCase?1:0)+(Z.multiline?1:0)+1;else if(Z._bsontype==="BSONRegExp")return(J!=null?L.utf8ByteLength(J)+1:0)+1+L.utf8ByteLength(Z.pattern)+1+L.utf8ByteLength(Z.options)+1;else return(J!=null?L.utf8ByteLength(J)+1:0)+KJ(Z,$,Y)+1;case"function":if($)return(J!=null?L.utf8ByteLength(J)+1:0)+1+4+L.utf8ByteLength(Z.toString())+1}return 0},wS=function(J){return J.split("").sort().join("")},uV=function(J,Z,$){let X=0;for(let Y=Z;Y<$;Y+=1){const Q=J[Y];if(X){if((Q&PS)!==hS)return!1;X-=1}else if(Q&DS)if((Q&TS)===BS)X=1;else if((Q&IS)===ES)X=2;else if((Q&NS)===CS)X=3;else return!1}return!X},dV=function(J,Z,$){Z=Z==null?{}:Z;const X=Z&&Z.index?Z.index:0,Y=J[X]|J[X+1]<<8|J[X+2]<<16|J[X+3]<<24;if(Y<5)throw new D(`bson size must be >= 5, is ${Y}`);if(Z.allowObjectSmallerThanBufferSize&&J.length<Y)throw new D(`buffer length ${J.length} must be >= bson size ${Y}`);if(!Z.allowObjectSmallerThanBufferSize&&J.length!==Y)throw new D(`buffer length ${J.length} must === bson size ${Y}`);if(Y+X>J.byteLength)throw new D(`(bson size ${Y} + options.index ${X} must be <= buffer length ${J.byteLength})`);if(J[X+Y-1]!==0)throw new D("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");return GJ(J,X,Z,$)},GJ=function(J,Z,$,X=!1){const Y=$.fieldsAsRaw==null?null:$.fieldsAsRaw,Q=$.raw==null?!1:$.raw,K=typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,G=$.promoteBuffers??!1,F=$.promoteLongs??!0,q=$.promoteValues??!0,W=$.useBigInt64??!1;if(W&&!q)throw new D("Must either request bigint or Long for int64 deserialization");if(W&&!F)throw new D("Must either request bigint or Long for int64 deserialization");const H=$.validation==null?{utf8:!0}:$.validation;let U=!0,j;const z=new Set,A=H.utf8;if(typeof A==="boolean")j=A;else{U=!1;const k=Object.keys(A).map(function(B){return A[B]});if(k.length===0)throw new D("UTF-8 validation setting cannot be empty");if(typeof k[0]!=="boolean")throw new D("Invalid UTF-8 validation option, must specify boolean values");if(j=k[0],!k.every((B)=>B===j))throw new D("Invalid UTF-8 validation option - keys must be all true or all false")}if(!U)for(let k of Object.keys(A))z.add(k);const T=Z;if(J.length<5)throw new D("corrupt bson message < 5 bytes long");const w=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(w<5||w>J.length)throw new D("corrupt bson message");const N=X?[]:{};let P=0;const f=!1;let $0=X?!1:null;const A8=new DataView(J.buffer,J.byteOffset,J.byteLength);while(!f){const k=J[Z++];if(k===0)break;let B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.byteLength)throw new D("Bad BSON Document: illegal CString");const Q1=X?P++:L.toUTF8(J,Z,B);let g=!0;if(U||z.has(Q1))g=j;else g=!j;if($0!==!1&&Q1[0]==="$")$0=kS.test(Q1);let _;if(Z=B+1,k===EV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");_=QJ(J,Z,Z+C-1,g),Z=Z+C}else if(k===hV){const C=L.allocate(12);C.set(J.subarray(Z,Z+12)),_=new w1(C),Z=Z+12}else if(k===r4&&q===!1)_=new C8(J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24);else if(k===r4)_=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;else if(k===FJ&&q===!1)_=new E8(A8.getFloat64(Z,!0)),Z=Z+8;else if(k===FJ)_=A8.getFloat64(Z,!0),Z=Z+8;else if(k===OV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,O=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;_=new Date(new M(C,O).toNumber())}else if(k===SV){if(J[Z]!==0&&J[Z]!==1)throw new D("illegal boolean type value");_=J[Z++]===1}else if(k===IX){const C=Z,O=J[Z]|J[Z+1]<<8|J[Z+2]<<16|J[Z+3]<<24;if(O<=0||O>J.length-Z)throw new D("bad embedded document length in bson");if(Q)_=J.slice(Z,Z+O);else{let q1=$;if(!U)q1={...$,validation:{utf8:g}};_=GJ(J,C,q1,!1)}Z=Z+O}else if(k===CV){const C=Z,O=J[Z]|J[Z+1]<<8|J[Z+2]<<16|J[Z+3]<<24;let q1=$;const U0=Z+O;if(Y&&Y[Q1])q1={...$,raw:!0};if(!U)q1={...q1,validation:{utf8:g}};if(_=GJ(J,C,q1,!0),Z=Z+O,J[Z-1]!==0)throw new D("invalid array terminator byte");if(Z!==U0)throw new D("corrupted array bson")}else if(k===sh)_=void 0;else if(k===BX)_=null;else if(k===CX){const C=M5.fromUint8Array(J.subarray(Z,Z+8)),O=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,q1=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,U0=new M(O,q1);if(W)_=C.getBigInt64(0,!0);else if(F&&q===!0)_=U0.lessThanOrEqual(SS)&&U0.greaterThanOrEqual(OS)?U0.toNumber():U0;else _=U0}else if(k===fV){const C=L.allocate(16);C.set(J.subarray(Z,Z+16),0),Z=Z+16,_=new n1(C)}else if(k===NX){let C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;const O=C,q1=J[Z++];if(C<0)throw new D("Negative binary type element size found");if(C>J.byteLength)throw new D("Binary type size larger than document size");if(J.slice!=null){if(q1===l.SUBTYPE_BYTE_ARRAY){if(C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,C<0)throw new D("Negative binary type element size found for subtype 0x02");if(C>O-4)throw new D("Binary type with subtype 0x02 contains too long binary size");if(C<O-4)throw new D("Binary type with subtype 0x02 contains too short binary size")}if(G&&q)_=L.toLocalBufferType(J.slice(Z,Z+C));else if(_=new l(J.slice(Z,Z+C),q1),q1===WJ&&f1.isValid(_))_=_.toUUID()}else{const U0=L.allocate(C);if(q1===l.SUBTYPE_BYTE_ARRAY){if(C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24,C<0)throw new D("Negative binary type element size found for subtype 0x02");if(C>O-4)throw new D("Binary type with subtype 0x02 contains too long binary size");if(C<O-4)throw new D("Binary type with subtype 0x02 contains too short binary size")}for(B=0;B<C;B++)U0[B]=J[Z+B];if(G&&q)_=U0;else if(_=new l(J.slice(Z,Z+C),q1),q1===WJ&&f1.isValid(_))_=_.toUUID()}Z=Z+C}else if(k===qJ&&K===!1){B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const C=L.toUTF8(J,Z,B);Z=B+1,B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const O=L.toUTF8(J,Z,B);Z=B+1;const q1=new Array(O.length);for(B=0;B<O.length;B++)switch(O[B]){case"m":q1[B]="m";break;case"s":q1[B]="g";break;case"i":q1[B]="i";break}_=new RegExp(C,q1.join(""))}else if(k===qJ&&K===!0){B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const C=L.toUTF8(J,Z,B);Z=B+1,B=Z;while(J[B]!==0&&B<J.length)B++;if(B>=J.length)throw new D("Bad BSON Document: illegal CString");const O=L.toUTF8(J,Z,B);Z=B+1,_=new u0(C,O)}else if(k===kV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");const O=QJ(J,Z,Z+C-1,g);_=q?O:new z4(O),Z=Z+C}else if(k===_V){const C=J[Z++]+J[Z++]*(1<<8)+J[Z++]*(1<<16)+J[Z++]*(1<<24),O=J[Z++]+J[Z++]*(1<<8)+J[Z++]*(1<<16)+J[Z++]*(1<<24);_=new m0({i:C,t:O})}else if(k===vV)_=new V4;else if(k===xV)_=new H4;else if(k===EX){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");const O=QJ(J,Z,Z+C-1,g);_=new o6(O),Z=Z+C}else if(k===yV){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<13)throw new D("code_w_scope total size shorter minimum expected length");const O=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(O<=0||O>J.length-Z||J[Z+O-1]!==0)throw new D("bad string length in bson");const q1=QJ(J,Z,Z+O-1,g);Z=Z+O;const U0=Z,V$=J[Z]|J[Z+1]<<8|J[Z+2]<<16|J[Z+3]<<24,pB=GJ(J,U0,$,!1);if(Z=Z+V$,C<8+V$+O)throw new D("code_w_scope total size is too short, truncating scope");if(C>8+V$+O)throw new D("code_w_scope total size is too long, clips outer document");_=new o6(q1,pB)}else if(k===nh){const C=J[Z++]|J[Z++]<<8|J[Z++]<<16|J[Z++]<<24;if(C<=0||C>J.length-Z||J[Z+C-1]!==0)throw new D("bad string length in bson");if(H!=null&&H.utf8){if(!uV(J,Z,Z+C-1))throw new D("Invalid UTF-8 string in BSON document")}const O=L.toUTF8(J,Z,Z+C-1);Z=Z+C;const q1=L.allocate(12);q1.set(J.subarray(Z,Z+12),0);const U0=new w1(q1);Z=Z+12,_=new C6(O,U0)}else throw new D(`Detected unknown BSON type ${k.toString(16)} for fieldname "${Q1}"`);if(Q1==="__proto__")Object.defineProperty(N,Q1,{value:_,writable:!0,enumerable:!0,configurable:!0});else N[Q1]=_}if(w!==Z-T){if(X)throw new D("corrupt array bson");throw new D("corrupt object bson")}if(!$0)return N;if(gV(N)){const k=Object.assign({},N);return delete k.$ref,delete k.$id,delete k.$db,new C6(N.$ref,N.$id,N.$db,k)}return N},QJ=function(J,Z,$,X){const Y=L.toUTF8(J,Z,$);if(X){for(let Q=0;Q<Y.length;Q++)if(Y.charCodeAt(Q)===65533){if(!uV(J,Z,$))throw new D("Invalid UTF-8 string in BSON document");break}}return Y},$X=function(J,Z,$,X){J[X++]=EV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y+1,J[X-1]=0;const Q=L.encodeUTF8Into(J,$,X+4);return J[X+3]=Q+1>>24&255,J[X+2]=Q+1>>16&255,J[X+1]=Q+1>>8&255,J[X]=Q+1&255,X=X+4+Q,J[X++]=0,X},XX=function(J,Z,$,X){const Q=!Object.is($,-0)&&Number.isSafeInteger($)&&$<=zJ&&$>=UJ?r4:FJ;if(Q===r4)e4.setInt32(0,$,!0);else e4.setFloat64(0,$,!0);const K=Q===r4?yS:VJ;J[X++]=Q;const G=L.encodeUTF8Into(J,Z,X);return X=X+G,J[X++]=0,J.set(K,X),X+=K.byteLength,X},YX=function(J,Z,$,X){J[X++]=CX;const Y=L.encodeUTF8Into(J,Z,X);return X+=Y,J[X++]=0,e4.setBigInt64(0,$,!0),J.set(VJ,X),X+=VJ.byteLength,X},U5=function(J,Z,$,X){J[X++]=BX;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,X},QX=function(J,Z,$,X){J[X++]=SV;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,J[X++]=$?1:0,X},KX=function(J,Z,$,X){J[X++]=OV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=M.fromNumber($.getTime()),K=Q.getLowBits(),G=Q.getHighBits();return J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255,J[X++]=G&255,J[X++]=G>>8&255,J[X++]=G>>16&255,J[X++]=G>>24&255,X},GX=function(J,Z,$,X){J[X++]=qJ;const Y=L.encodeUTF8Into(J,Z,X);if(X=X+Y,J[X++]=0,$.source&&$.source.match(HJ)!=null)throw new D("value "+$.source+" must not contain null bytes");if(X=X+L.encodeUTF8Into(J,$.source,X),J[X++]=0,$.ignoreCase)J[X++]=105;if($.global)J[X++]=115;if($.multiline)J[X++]=109;return J[X++]=0,X},FX=function(J,Z,$,X){J[X++]=qJ;const Y=L.encodeUTF8Into(J,Z,X);if(X=X+Y,J[X++]=0,$.pattern.match(HJ)!=null)throw new D("pattern "+$.pattern+" must not contain null bytes");X=X+L.encodeUTF8Into(J,$.pattern,X),J[X++]=0;const Q=$.options.split("").sort().join("");return X=X+L.encodeUTF8Into(J,Q,X),J[X++]=0,X},qX=function(J,Z,$,X){if($===null)J[X++]=BX;else if($._bsontype==="MinKey")J[X++]=vV;else J[X++]=xV;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,X},WX=function(J,Z,$,X){J[X++]=hV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.id;if(q4(Q))for(let K=0;K<12;K++)J[X++]=Q[K];else throw new D("object ["+JSON.stringify($)+"] is not a valid ObjectId");return X},HX=function(J,Z,$,X){J[X++]=NX;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.length;return J[X++]=Q&255,J[X++]=Q>>8&255,J[X++]=Q>>16&255,J[X++]=Q>>24&255,J[X++]=th,J.set($,X),X=X+Q,X},VX=function(J,Z,$,X,Y,Q,K,G,F){if(F.has($))throw new D("Cannot convert circular structure to BSON");F.add($),J[X++]=Array.isArray($)?CV:IX;const q=L.encodeUTF8Into(J,Z,X);X=X+q,J[X++]=0;const W=A5(J,$,Y,X,Q+1,K,G,F);return F.delete($),W},zX=function(J,Z,$,X){J[X++]=fV;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,J.set($.bytes.subarray(0,16),X),X+16},UX=function(J,Z,$,X){J[X++]=$._bsontype==="Long"?CX:_V;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.getLowBits(),K=$.getHighBits();return J[X++]=Q&255,J[X++]=Q>>8&255,J[X++]=Q>>16&255,J[X++]=Q>>24&255,J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255,X},MX=function(J,Z,$,X){$=$.valueOf(),J[X++]=r4;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,J[X++]=$&255,J[X++]=$>>8&255,J[X++]=$>>16&255,J[X++]=$>>24&255,X},jX=function(J,Z,$,X){J[X++]=FJ;const Y=L.encodeUTF8Into(J,Z,X);return X=X+Y,J[X++]=0,e4.setFloat64(0,$.value,!0),J.set(VJ,X),X=X+8,X},AX=function(J,Z,$,X){J[X++]=EX;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.toString(),K=L.encodeUTF8Into(J,Q,X+4)+1;return J[X]=K&255,J[X+1]=K>>8&255,J[X+2]=K>>16&255,J[X+3]=K>>24&255,X=X+4+K-1,J[X++]=0,X},LX=function(J,Z,$,X,Y=!1,Q=0,K=!1,G=!0,F){if($.scope&&typeof $.scope==="object"){J[X++]=yV;const q=L.encodeUTF8Into(J,Z,X);X=X+q,J[X++]=0;let W=X;const H=$.code;X=X+4;const U=L.encodeUTF8Into(J,H,X+4)+1;J[X]=U&255,J[X+1]=U>>8&255,J[X+2]=U>>16&255,J[X+3]=U>>24&255,J[X+4+U-1]=0,X=X+U+4;const j=A5(J,$.scope,Y,X,Q+1,K,G,F);X=j-1;const z=j-W;J[W++]=z&255,J[W++]=z>>8&255,J[W++]=z>>16&255,J[W++]=z>>24&255,J[X++]=0}else{J[X++]=EX;const q=L.encodeUTF8Into(J,Z,X);X=X+q,J[X++]=0;const W=$.code.toString(),H=L.encodeUTF8Into(J,W,X+4)+1;J[X]=H&255,J[X+1]=H>>8&255,J[X+2]=H>>16&255,J[X+3]=H>>24&255,X=X+4+H-1,J[X++]=0}return X},wX=function(J,Z,$,X){J[X++]=NX;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=$.buffer;let K=$.position;if($.sub_type===l.SUBTYPE_BYTE_ARRAY)K=K+4;if(J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255,J[X++]=$.sub_type,$.sub_type===l.SUBTYPE_BYTE_ARRAY)K=K-4,J[X++]=K&255,J[X++]=K>>8&255,J[X++]=K>>16&255,J[X++]=K>>24&255;return J.set(Q,X),X=X+$.position,X},RX=function(J,Z,$,X){J[X++]=kV;const Y=L.encodeUTF8Into(J,Z,X);X=X+Y,J[X++]=0;const Q=L.encodeUTF8Into(J,$.value,X+4)+1;return J[X]=Q&255,J[X+1]=Q>>8&255,J[X+2]=Q>>16&255,J[X+3]=Q>>24&255,X=X+4+Q-1,J[X++]=0,X},DX=function(J,Z,$,X,Y,Q,K){J[X++]=IX;const G=L.encodeUTF8Into(J,Z,X);X=X+G,J[X++]=0;let F=X,q={$ref:$.collection||$.namespace,$id:$.oid};if($.db!=null)q.$db=$.db;q=Object.assign(q,$.fields);const W=A5(J,q,!1,X,Y+1,Q,!0,K),H=W-F;return J[F++]=H&255,J[F++]=H>>8&255,J[F++]=H>>16&255,J[F++]=H>>24&255,W},A5=function(J,Z,$,X,Y,Q,K,G){if(G==null){if(Z==null)return J[0]=5,J[1]=0,J[2]=0,J[3]=0,J[4]=0,5;if(Array.isArray(Z))throw new D("serialize does not support an array as the root input");if(typeof Z!=="object")throw new D("serialize does not support non-object as the root input");else if("_bsontype"in Z&&typeof Z._bsontype==="string")throw new D("BSON types cannot be serialized as a document");else if(n4(Z)||s4(Z)||q4(Z)||PX(Z))throw new D("date, regexp, typedarray, and arraybuffer cannot be BSON documents");G=new Set}G.add(Z);let F=X+4;if(Array.isArray(Z))for(let W=0;W<Z.length;W++){const H=`${W}`;let U=Z[W];if(typeof U?.toBSON==="function")U=U.toBSON();if(typeof U==="string")F=$X(J,H,U,F);else if(typeof U==="number")F=XX(J,H,U,F);else if(typeof U==="bigint")F=YX(J,H,U,F);else if(typeof U==="boolean")F=QX(J,H,U,F);else if(U instanceof Date||n4(U))F=KX(J,H,U,F);else if(U===void 0)F=U5(J,H,U,F);else if(U===null)F=U5(J,H,U,F);else if(q4(U))F=HX(J,H,U,F);else if(U instanceof RegExp||s4(U))F=GX(J,H,U,F);else if(typeof U==="object"&&U._bsontype==null)F=VX(J,H,U,F,$,Y,Q,K,G);else if(typeof U==="object"&&U[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(U._bsontype==="ObjectId")F=WX(J,H,U,F);else if(U._bsontype==="Decimal128")F=zX(J,H,U,F);else if(U._bsontype==="Long"||U._bsontype==="Timestamp")F=UX(J,H,U,F);else if(U._bsontype==="Double")F=jX(J,H,U,F);else if(typeof U==="function"&&Q)F=AX(J,H,U,F);else if(U._bsontype==="Code")F=LX(J,H,U,F,$,Y,Q,K,G);else if(U._bsontype==="Binary")F=wX(J,H,U,F);else if(U._bsontype==="BSONSymbol")F=RX(J,H,U,F);else if(U._bsontype==="DBRef")F=DX(J,H,U,F,Y,Q,G);else if(U._bsontype==="BSONRegExp")F=FX(J,H,U,F);else if(U._bsontype==="Int32")F=MX(J,H,U,F);else if(U._bsontype==="MinKey"||U._bsontype==="MaxKey")F=qX(J,H,U,F);else if(typeof U._bsontype!=="undefined")throw new D(`Unrecognized or invalid _bsontype: ${String(U._bsontype)}`)}else if(Z instanceof Map||TX(Z)){const W=Z.entries();let H=!1;while(!H){const U=W.next();if(H=!!U.done,H)continue;const j=U.value[0];let z=U.value[1];if(typeof z?.toBSON==="function")z=z.toBSON();const A=typeof z;if(typeof j==="string"&&!DV.has(j)){if(j.match(HJ)!=null)throw new D("key "+j+" must not contain null bytes");if($){if(j[0]==="$")throw new D("key "+j+" must not start with '$'");else if(~j.indexOf("."))throw new D("key "+j+" must not contain '.'")}}if(A==="string")F=$X(J,j,z,F);else if(A==="number")F=XX(J,j,z,F);else if(A==="bigint")F=YX(J,j,z,F);else if(A==="boolean")F=QX(J,j,z,F);else if(z instanceof Date||n4(z))F=KX(J,j,z,F);else if(z===null||z===void 0&&K===!1)F=U5(J,j,z,F);else if(q4(z))F=HX(J,j,z,F);else if(z instanceof RegExp||s4(z))F=GX(J,j,z,F);else if(A==="object"&&z._bsontype==null)F=VX(J,j,z,F,$,Y,Q,K,G);else if(typeof z==="object"&&z[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(z._bsontype==="ObjectId")F=WX(J,j,z,F);else if(A==="object"&&z._bsontype==="Decimal128")F=zX(J,j,z,F);else if(z._bsontype==="Long"||z._bsontype==="Timestamp")F=UX(J,j,z,F);else if(z._bsontype==="Double")F=jX(J,j,z,F);else if(z._bsontype==="Code")F=LX(J,j,z,F,$,Y,Q,K,G);else if(typeof z==="function"&&Q)F=AX(J,j,z,F);else if(z._bsontype==="Binary")F=wX(J,j,z,F);else if(z._bsontype==="BSONSymbol")F=RX(J,j,z,F);else if(z._bsontype==="DBRef")F=DX(J,j,z,F,Y,Q,G);else if(z._bsontype==="BSONRegExp")F=FX(J,j,z,F);else if(z._bsontype==="Int32")F=MX(J,j,z,F);else if(z._bsontype==="MinKey"||z._bsontype==="MaxKey")F=qX(J,j,z,F);else if(typeof z._bsontype!=="undefined")throw new D(`Unrecognized or invalid _bsontype: ${String(z._bsontype)}`)}}else{if(typeof Z?.toBSON==="function"){if(Z=Z.toBSON(),Z!=null&&typeof Z!=="object")throw new D("toBSON function did not return an object")}for(let W of Object.keys(Z)){let H=Z[W];if(typeof H?.toBSON==="function")H=H.toBSON();const U=typeof H;if(typeof W==="string"&&!DV.has(W)){if(W.match(HJ)!=null)throw new D("key "+W+" must not contain null bytes");if($){if(W[0]==="$")throw new D("key "+W+" must not start with '$'");else if(~W.indexOf("."))throw new D("key "+W+" must not contain '.'")}}if(U==="string")F=$X(J,W,H,F);else if(U==="number")F=XX(J,W,H,F);else if(U==="bigint")F=YX(J,W,H,F);else if(U==="boolean")F=QX(J,W,H,F);else if(H instanceof Date||n4(H))F=KX(J,W,H,F);else if(H===void 0){if(K===!1)F=U5(J,W,H,F)}else if(H===null)F=U5(J,W,H,F);else if(q4(H))F=HX(J,W,H,F);else if(H instanceof RegExp||s4(H))F=GX(J,W,H,F);else if(U==="object"&&H._bsontype==null)F=VX(J,W,H,F,$,Y,Q,K,G);else if(typeof H==="object"&&H[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(H._bsontype==="ObjectId")F=WX(J,W,H,F);else if(U==="object"&&H._bsontype==="Decimal128")F=zX(J,W,H,F);else if(H._bsontype==="Long"||H._bsontype==="Timestamp")F=UX(J,W,H,F);else if(H._bsontype==="Double")F=jX(J,W,H,F);else if(H._bsontype==="Code")F=LX(J,W,H,F,$,Y,Q,K,G);else if(typeof H==="function"&&Q)F=AX(J,W,H,F);else if(H._bsontype==="Binary")F=wX(J,W,H,F);else if(H._bsontype==="BSONSymbol")F=RX(J,W,H,F);else if(H._bsontype==="DBRef")F=DX(J,W,H,F,Y,Q,G);else if(H._bsontype==="BSONRegExp")F=FX(J,W,H,F);else if(H._bsontype==="Int32")F=MX(J,W,H,F);else if(H._bsontype==="MinKey"||H._bsontype==="MaxKey")F=qX(J,W,H,F);else if(typeof H._bsontype!=="undefined")throw new D(`Unrecognized or invalid _bsontype: ${String(H._bsontype)}`)}}G.delete(Z),J[F++]=0;const q=F-X;return J[X++]=q&255,J[X++]=q>>8&255,J[X++]=q>>16&255,J[X++]=q>>24&255,F},_S=function(J){return J!=null&&typeof J==="object"&&"_bsontype"in J&&typeof J._bsontype==="string"},cV=function(J,Z={}){if(typeof J==="number"){const X=J<=zJ&&J>=UJ,Y=J<=TV&&J>=IV;if(Z.relaxed||Z.legacy)return J;if(Number.isInteger(J)&&!Object.is(J,-0)){if(X)return new C8(J);if(Y){if(Z.useBigInt64)return BigInt(J);return M.fromNumber(J)}}return new E8(J)}if(J==null||typeof J!=="object")return J;if(J.$undefined)return null;const $=Object.keys(J).filter((X)=>X.startsWith("$")&&J[X]!=null);for(let X=0;X<$.length;X++){const Y=fS[$[X]];if(Y)return Y.fromExtendedJSON(J,Z)}if(J.$date!=null){const X=J.$date,Y=new Date;if(Z.legacy)if(typeof X==="number")Y.setTime(X);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(typeof X==="bigint")Y.setTime(Number(X));else throw new j5(`Unrecognized type for EJSON date: ${typeof X}`);else if(typeof X==="string")Y.setTime(Date.parse(X));else if(M.isLong(X))Y.setTime(X.toNumber());else if(typeof X==="number"&&Z.relaxed)Y.setTime(X);else if(typeof X==="bigint")Y.setTime(Number(X));else throw new j5(`Unrecognized type for EJSON date: ${typeof X}`);return Y}if(J.$code!=null){const X=Object.assign({},J);if(J.$scope)X.$scope=cV(J.$scope);return o6.fromExtendedJSON(J)}if(gV(J)||J.$dbPointer){const X=J.$ref?J:J.$dbPointer;if(X instanceof C6)return X;const Y=Object.keys(X).filter((K)=>K.startsWith("$"));let Q=!0;if(Y.forEach((K)=>{if(["$ref","$id","$db"].indexOf(K)===-1)Q=!1}),Q)return C6.fromExtendedJSON(X)}return J},vS=function(J,Z){return J.map(($,X)=>{Z.seenObjects.push({propertyName:`index ${X}`,obj:null});try{return r6($,Z)}finally{Z.seenObjects.pop()}})},PV=function(J){const Z=J.toISOString();return J.getUTCMilliseconds()!==0?Z:Z.slice(0,-5)+"Z"},r6=function(J,Z){if(J instanceof Map||TX(J)){const $=Object.create(null);for(let[X,Y]of J){if(typeof X!=="string")throw new D("Can only serialize maps with string keys");$[X]=Y}return r6($,Z)}if((typeof J==="object"||typeof J==="function")&&J!==null){const $=Z.seenObjects.findIndex((X)=>X.obj===J);if($!==-1){const X=Z.seenObjects.map((W)=>W.propertyName),Y=X.slice(0,$).map((W)=>`${W} -> `).join(""),Q=X[$],K=" -> "+X.slice($+1,X.length-1).map((W)=>`${W} -> `).join(""),G=X[X.length-1],F=" ".repeat(Y.length+Q.length/2),q="-".repeat(K.length+(Q.length+G.length)/2-1);throw new D("Converting circular structure to EJSON:\n"+` ${Y}${Q}${K}${G}\n`+` ${F}\\${q}/`)}Z.seenObjects[Z.seenObjects.length-1].obj=J}if(Array.isArray(J))return vS(J,Z);if(J===void 0)return null;if(J instanceof Date||n4(J)){const $=J.getTime(),X=$>-1&&$<253402318800000;if(Z.legacy)return Z.relaxed&&X?{$date:J.getTime()}:{$date:PV(J)};return Z.relaxed&&X?{$date:PV(J)}:{$date:{$numberLong:J.getTime().toString()}}}if(typeof J==="number"&&(!Z.relaxed||!isFinite(J))){if(Number.isInteger(J)&&!Object.is(J,-0)){if(J>=UJ&&J<=zJ)return{$numberInt:J.toString()};if(J>=IV&&J<=TV)return{$numberLong:J.toString()}}return{$numberDouble:Object.is(J,-0)?"-0.0":J.toString()}}if(typeof J==="bigint"){if(!Z.relaxed)return{$numberLong:BigInt.asIntN(64,J).toString()};return Number(BigInt.asIntN(64,J))}if(J instanceof RegExp||s4(J)){let $=J.flags;if($===void 0){const Y=J.toString().match(/[gimuy]*$/);if(Y)$=Y[0]}return new u0(J.source,$).toExtendedJSON(Z)}if(J!=null&&typeof J==="object")return bS(J,Z);return J},bS=function(J,Z){if(J==null||typeof J!=="object")throw new D("not an object instance");const $=J._bsontype;if(typeof $==="undefined"){const X={};for(let Y of Object.keys(J)){Z.seenObjects.push({propertyName:Y,obj:null});try{const Q=r6(J[Y],Z);if(Y==="__proto__")Object.defineProperty(X,Y,{value:Q,writable:!0,enumerable:!0,configurable:!0});else X[Y]=Q}finally{Z.seenObjects.pop()}}return X}else if(J!=null&&typeof J==="object"&&typeof J._bsontype==="string"&&J[Symbol.for("@@mdb.bson.version")]!==W4)throw new B8;else if(_S(J)){let X=J;if(typeof X.toExtendedJSON!=="function"){const Y=xS[J._bsontype];if(!Y)throw new D("Unrecognized or invalid _bsontype: "+J._bsontype);X=Y(X)}if($==="Code"&&X.scope)X=new o6(X.code,r6(X.scope,Z));else if($==="DBRef"&&X.oid)X=new C6(r6(X.collection,Z),r6(X.oid,Z),r6(X.db,Z),r6(X.fields,Z));return X.toExtendedJSON(Z)}else throw new D("_bsontype must be a string, but was: "+typeof $)},pV=function(J,Z){const $={useBigInt64:Z?.useBigInt64??!1,relaxed:Z?.relaxed??!0,legacy:Z?.legacy??!1};return JSON.parse(J,(X,Y)=>{if(X.indexOf("\0")!==-1)throw new D(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(X)}`);return cV(Y,$)})},lV=function(J,Z,$,X){if($!=null&&typeof $==="object")X=$,$=0;if(Z!=null&&typeof Z==="object"&&!Array.isArray(Z))X=Z,Z=void 0,$=0;const Y=Object.assign({relaxed:!0,legacy:!1},X,{seenObjects:[{propertyName:"(root)",obj:null}]}),Q=r6(J,Y);return JSON.stringify(Q,Z,$)},gS=function(J,Z){return Z=Z||{},JSON.parse(lV(J,Z))},mS=function(J,Z){return Z=Z||{},pV(JSON.stringify(J),Z)},iV=function(J){if(N8.length<J)N8=L.allocate(J)},sV=function(J,Z={}){const $=typeof Z.checkKeys==="boolean"?Z.checkKeys:!1,X=typeof Z.serializeFunctions==="boolean"?Z.serializeFunctions:!1,Y=typeof Z.ignoreUndefined==="boolean"?Z.ignoreUndefined:!0,Q=typeof Z.minInternalBufferSize==="number"?Z.minInternalBufferSize:aV;if(N8.length<Q)N8=L.allocate(Q);const K=A5(N8,J,$,0,0,X,Y,null),G=L.allocate(K);return G.set(N8.subarray(0,K),0),G},nV=function(J,Z,$={}){const X=typeof $.checkKeys==="boolean"?$.checkKeys:!1,Y=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,Q=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!0,K=typeof $.index==="number"?$.index:0,G=A5(N8,J,X,0,0,Y,Q,null);return Z.set(N8.subarray(0,G),K),K+G-1},tV=function(J,Z={}){return dV(L.toLocalBufferType(J),Z)},rV=function(J,Z={}){Z=Z||{};const $=typeof Z.serializeFunctions==="boolean"?Z.serializeFunctions:!1,X=typeof Z.ignoreUndefined==="boolean"?Z.ignoreUndefined:!0;return KJ(J,$,X)},oV=function(J,Z,$,X,Y,Q){const K=Object.assign({allowObjectSmallerThanBufferSize:!0,index:0},Q),G=L.toLocalBufferType(J);let F=Z;for(let q=0;q<$;q++){const W=G[F]|G[F+1]<<8|G[F+2]<<16|G[F+3]<<24;K.index=F,X[Y+q]=dV(G,K),F=F+W}return F},W4=6,zJ=2147483647,UJ=-2147483648,TV=Math.pow(2,63)-1,IV=-Math.pow(2,63),NV=Math.pow(2,53),BV=-Math.pow(2,53),FJ=1,EV=2,IX=3,CV=4,NX=5,sh=6,hV=7,SV=8,OV=9,BX=10,qJ=11,nh=12,EX=13,kV=14,yV=15,r4=16,_V=17,CX=18,fV=19,vV=255,xV=127,th=0,WJ=4,bV=Object.freeze({double:1,string:2,object:3,array:4,binData:5,undefined:6,objectId:7,bool:8,date:9,null:10,regex:11,dbPointer:12,javascript:13,symbol:14,javascriptWithScope:15,int:16,timestamp:17,long:18,decimal:19,minKey:-1,maxKey:127});class D extends Error{get bsonError(){return!0}get name(){return"BSONError"}constructor(J){super(J)}static isBSONError(J){return J!=null&&typeof J==="object"&&"bsonError"in J&&J.bsonError===!0&&"name"in J&&"message"in J&&"stack"in J}}class B8 extends D{get name(){return"BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${W4}.x.x`)}}class j5 extends D{get name(){return"BSONRuntimeError"}constructor(J){super(J)}}var oh=(()=>{try{return import.meta.require("crypto").randomBytes}catch{return rh}})(),I8={toLocalBufferType(J){if(Buffer.isBuffer(J))return J;if(ArrayBuffer.isView(J))return Buffer.from(J.buffer,J.byteOffset,J.byteLength);const Z=J?.[Symbol.toStringTag]??Object.prototype.toString.call(J);if(Z==="ArrayBuffer"||Z==="SharedArrayBuffer"||Z==="[object ArrayBuffer]"||Z==="[object SharedArrayBuffer]")return Buffer.from(J);throw new D(`Cannot create Buffer from ${String(J)}`)},allocate(J){return Buffer.alloc(J)},equals(J,Z){return I8.toLocalBufferType(J).equals(Z)},fromNumberArray(J){return Buffer.from(J)},fromBase64(J){return Buffer.from(J,"base64")},toBase64(J){return I8.toLocalBufferType(J).toString("base64")},fromISO88591(J){return Buffer.from(J,"binary")},toISO88591(J){return I8.toLocalBufferType(J).toString("binary")},fromHex(J){return Buffer.from(J,"hex")},toHex(J){return I8.toLocalBufferType(J).toString("hex")},fromUTF8(J){return Buffer.from(J,"utf8")},toUTF8(J,Z,$){return I8.toLocalBufferType(J).toString("utf8",Z,$)},utf8ByteLength(J){return Buffer.byteLength(J,"utf8")},encodeUTF8Into(J,Z,$){return I8.toLocalBufferType(J).write(Z,$,void 0,"utf8")},randomBytes:oh},ZS=(()=>{const{crypto:J}=globalThis;if(J!=null&&typeof J.getRandomValues==="function")return(Z)=>{return J.getRandomValues(o4.allocate(Z))};else{if(eh()){const{console:Z}=globalThis;Z?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.")}return JS}})(),qV=/(\d|[a-f])/i,o4={toLocalBufferType(J){const Z=J?.[Symbol.toStringTag]??Object.prototype.toString.call(J);if(Z==="Uint8Array")return J;if(ArrayBuffer.isView(J))return new Uint8Array(J.buffer.slice(J.byteOffset,J.byteOffset+J.byteLength));if(Z==="ArrayBuffer"||Z==="SharedArrayBuffer"||Z==="[object ArrayBuffer]"||Z==="[object SharedArrayBuffer]")return new Uint8Array(J);throw new D(`Cannot make a Uint8Array from ${String(J)}`)},allocate(J){if(typeof J!=="number")throw new TypeError(`The "size" argument must be of type number. Received ${String(J)}`);return new Uint8Array(J)},equals(J,Z){if(J.byteLength!==Z.byteLength)return!1;for(let $=0;$<J.byteLength;$++)if(J[$]!==Z[$])return!1;return!0},fromNumberArray(J){return Uint8Array.from(J)},fromBase64(J){return Uint8Array.from(atob(J),(Z)=>Z.charCodeAt(0))},toBase64(J){return btoa(o4.toISO88591(J))},fromISO88591(J){return Uint8Array.from(J,(Z)=>Z.charCodeAt(0)&255)},toISO88591(J){return Array.from(Uint16Array.from(J),(Z)=>String.fromCharCode(Z)).join("")},fromHex(J){const Z=J.length%2===0?J:J.slice(0,J.length-1),$=[];for(let X=0;X<Z.length;X+=2){const Y=Z[X],Q=Z[X+1];if(!qV.test(Y))break;if(!qV.test(Q))break;const K=Number.parseInt(`${Y}${Q}`,16);$.push(K)}return Uint8Array.from($)},toHex(J){return Array.from(J,(Z)=>Z.toString(16).padStart(2,"0")).join("")},fromUTF8(J){return(new TextEncoder()).encode(J)},toUTF8(J,Z,$){return new TextDecoder("utf8",{fatal:!1}).decode(J.slice(Z,$))},utf8ByteLength(J){return o4.fromUTF8(J).byteLength},encodeUTF8Into(J,Z,$){const X=o4.fromUTF8(Z);return J.set(X,$),X.byteLength},randomBytes:ZS},$S=typeof Buffer==="function"&&Buffer.prototype?._isBuffer!==!0,L=$S?I8:o4;class M5 extends DataView{static fromUint8Array(J){return new DataView(J.buffer,J.byteOffset,J.byteLength)}}class Y0{get[Symbol.for("@@mdb.bson.version")](){return W4}[Symbol.for("nodejs.util.inspect.custom")](J,Z,$){return this.inspect(J,Z,$)}}class l extends Y0{get _bsontype(){return"Binary"}constructor(J,Z){super();if(J!=null&&typeof J==="string"&&!ArrayBuffer.isView(J)&&!PX(J)&&!Array.isArray(J))throw new D("Binary can only be constructed from Uint8Array or number[]");if(this.sub_type=Z??l.BSON_BINARY_SUBTYPE_DEFAULT,J==null)this.buffer=L.allocate(l.BUFFER_SIZE),this.position=0;else this.buffer=Array.isArray(J)?L.fromNumberArray(J):L.toLocalBufferType(J),this.position=this.buffer.byteLength}put(J){if(typeof J==="string"&&J.length!==1)throw new D("only accepts single character String");else if(typeof J!=="number"&&J.length!==1)throw new D("only accepts single character Uint8Array or Array");let Z;if(typeof J==="string")Z=J.charCodeAt(0);else if(typeof J==="number")Z=J;else Z=J[0];if(Z<0||Z>255)throw new D("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=Z;else{const $=L.allocate(l.BUFFER_SIZE+this.buffer.length);$.set(this.buffer,0),this.buffer=$,this.buffer[this.position++]=Z}}write(J,Z){if(Z=typeof Z==="number"?Z:this.position,this.buffer.byteLength<Z+J.length){const $=L.allocate(this.buffer.byteLength+J.length);$.set(this.buffer,0),this.buffer=$}if(ArrayBuffer.isView(J))this.buffer.set(L.toLocalBufferType(J),Z),this.position=Z+J.byteLength>this.position?Z+J.length:this.position;else if(typeof J==="string")throw new D("input cannot be string")}read(J,Z){return Z=Z&&Z>0?Z:this.position,this.buffer.slice(J,J+Z)}value(){return this.buffer.length===this.position?this.buffer:this.buffer.subarray(0,this.position)}length(){return this.position}toJSON(){return L.toBase64(this.buffer)}toString(J){if(J==="hex")return L.toHex(this.buffer);if(J==="base64")return L.toBase64(this.buffer);if(J==="utf8"||J==="utf-8")return L.toUTF8(this.buffer,0,this.buffer.byteLength);return L.toUTF8(this.buffer,0,this.buffer.byteLength)}toExtendedJSON(J){J=J||{};const Z=L.toBase64(this.buffer),$=Number(this.sub_type).toString(16);if(J.legacy)return{$binary:Z,$type:$.length===1?"0"+$:$};return{$binary:{base64:Z,subType:$.length===1?"0"+$:$}}}toUUID(){if(this.sub_type===l.SUBTYPE_UUID)return new f1(this.buffer.slice(0,this.position));throw new D(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${l.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(J,Z){return new l(L.fromHex(J),Z)}static createFromBase64(J,Z){return new l(L.fromBase64(J),Z)}static fromExtendedJSON(J,Z){Z=Z||{};let $,X;if("$binary"in J){if(Z.legacy&&typeof J.$binary==="string"&&"$type"in J)X=J.$type?parseInt(J.$type,16):0,$=L.fromBase64(J.$binary);else if(typeof J.$binary!=="string")X=J.$binary.subType?parseInt(J.$binary.subType,16):0,$=L.fromBase64(J.$binary.base64)}else if("$uuid"in J)X=4,$=f1.bytesFromString(J.$uuid);if(!$)throw new D(`Unexpected Binary Extended JSON format ${JSON.stringify(J)}`);return X===WJ?new f1($):new l($,X)}inspect(J,Z,$){$??=B0;const X=L.toBase64(this.buffer.subarray(0,this.position)),Y=$(X,Z),Q=$(this.sub_type,Z);return`Binary.createFromBase64(${Y}, ${Q})`}}l.BSON_BINARY_SUBTYPE_DEFAULT=0;l.BUFFER_SIZE=256;l.SUBTYPE_DEFAULT=0;l.SUBTYPE_FUNCTION=1;l.SUBTYPE_BYTE_ARRAY=2;l.SUBTYPE_UUID_OLD=3;l.SUBTYPE_UUID=4;l.SUBTYPE_MD5=5;l.SUBTYPE_ENCRYPTED=6;l.SUBTYPE_COLUMN=7;l.SUBTYPE_USER_DEFINED=128;var JX=16,XS=/^[0-9A-F]{32}$/i,YS=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class f1 extends l{constructor(J){let Z;if(J==null)Z=f1.generate();else if(J instanceof f1)Z=L.toLocalBufferType(new Uint8Array(J.buffer));else if(ArrayBuffer.isView(J)&&J.byteLength===JX)Z=L.toLocalBufferType(J);else if(typeof J==="string")Z=f1.bytesFromString(J);else throw new D("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");super(Z,WJ)}get id(){return this.buffer}set id(J){this.buffer=J}toHexString(J=!0){if(J)return[L.toHex(this.buffer.subarray(0,4)),L.toHex(this.buffer.subarray(4,6)),L.toHex(this.buffer.subarray(6,8)),L.toHex(this.buffer.subarray(8,10)),L.toHex(this.buffer.subarray(10,16))].join("-");return L.toHex(this.buffer)}toString(J){if(J==="hex")return L.toHex(this.id);if(J==="base64")return L.toBase64(this.id);return this.toHexString()}toJSON(){return this.toHexString()}equals(J){if(!J)return!1;if(J instanceof f1)return L.equals(J.id,this.id);try{return L.equals(new f1(J).id,this.id)}catch{return!1}}toBinary(){return new l(this.id,l.SUBTYPE_UUID)}static generate(){const J=L.randomBytes(JX);return J[6]=J[6]&15|64,J[8]=J[8]&63|128,J}static isValid(J){if(!J)return!1;if(typeof J==="string")return f1.isValidUUIDString(J);if(q4(J))return J.byteLength===JX;return J._bsontype==="Binary"&&J.sub_type===this.SUBTYPE_UUID&&J.buffer.byteLength===16}static createFromHexString(J){const Z=f1.bytesFromString(J);return new f1(Z)}static createFromBase64(J){return new f1(L.fromBase64(J))}static bytesFromString(J){if(!f1.isValidUUIDString(J))throw new D("UUID string representation must be 32 hex digits or canonical hyphenated representation");return L.fromHex(J.replace(/-/g,""))}static isValidUUIDString(J){return XS.test(J)||YS.test(J)}inspect(J,Z,$){return $??=B0,`new UUID(${$(this.toHexString(),Z)})`}}class o6 extends Y0{get _bsontype(){return"Code"}constructor(J,Z){super();this.code=J.toString(),this.scope=Z??null}toJSON(){if(this.scope!=null)return{code:this.code,scope:this.scope};return{code:this.code}}toExtendedJSON(){if(this.scope)return{$code:this.code,$scope:this.scope};return{$code:this.code}}static fromExtendedJSON(J){return new o6(J.$code,J.$scope)}inspect(J,Z,$){$??=B0;let X=$(this.code,Z);const Y=X.includes("\n");if(this.scope!=null)X+=`,${Y?"\n":" "}${$(this.scope,Z)}`;const Q=Y&&this.scope===null;return`new Code(${Y?"\n":""}${X}${Q?"\n":""})`}}class C6 extends Y0{get _bsontype(){return"DBRef"}constructor(J,Z,$,X){super();const Y=J.split(".");if(Y.length===2)$=Y.shift(),J=Y.shift();this.collection=J,this.oid=Z,this.db=$,this.fields=X||{}}get namespace(){return this.collection}set namespace(J){this.collection=J}toJSON(){const J=Object.assign({$ref:this.collection,$id:this.oid},this.fields);if(this.db!=null)J.$db=this.db;return J}toExtendedJSON(J){J=J||{};let Z={$ref:this.collection,$id:this.oid};if(J.legacy)return Z;if(this.db)Z.$db=this.db;return Z=Object.assign(Z,this.fields),Z}static fromExtendedJSON(J){const Z=Object.assign({},J);return delete Z.$ref,delete Z.$id,delete Z.$db,new C6(J.$ref,J.$id,J.$db,Z)}inspect(J,Z,$){$??=B0;const X=[$(this.namespace,Z),$(this.oid,Z),...this.db?[$(this.db,Z)]:[],...Object.keys(this.fields).length>0?[$(this.fields,Z)]:[]];return X[1]=$===B0?`new ObjectId(${X[1]})`:X[1],`new DBRef(${X.join(", ")})`}}var g0=void 0;try{g0=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}var WV=1<<16,QS=1<<24,t4=WV*WV,mV=t4*t4,HV=mV/2,VV={},zV={},KS=20,GS=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class M extends Y0{get _bsontype(){return"Long"}get __isLong__(){return!0}constructor(J=0,Z,$){super();if(typeof J==="bigint")Object.assign(this,M.fromBigInt(J,!!Z));else if(typeof J==="string")Object.assign(this,M.fromString(J,!!Z));else this.low=J|0,this.high=Z|0,this.unsigned=!!$}static fromBits(J,Z,$){return new M(J,Z,$)}static fromInt(J,Z){let $,X,Y;if(Z){if(J>>>=0,Y=0<=J&&J<256){if(X=zV[J],X)return X}if($=M.fromBits(J,(J|0)<0?-1:0,!0),Y)zV[J]=$;return $}else{if(J|=0,Y=-128<=J&&J<128){if(X=VV[J],X)return X}if($=M.fromBits(J,J<0?-1:0,!1),Y)VV[J]=$;return $}}static fromNumber(J,Z){if(isNaN(J))return Z?M.UZERO:M.ZERO;if(Z){if(J<0)return M.UZERO;if(J>=mV)return M.MAX_UNSIGNED_VALUE}else{if(J<=-HV)return M.MIN_VALUE;if(J+1>=HV)return M.MAX_VALUE}if(J<0)return M.fromNumber(-J,Z).neg();return M.fromBits(J%t4|0,J/t4|0,Z)}static fromBigInt(J,Z){return M.fromString(J.toString(),Z)}static fromString(J,Z,$){if(J.length===0)throw new D("empty string");if(J==="NaN"||J==="Infinity"||J==="+Infinity"||J==="-Infinity")return M.ZERO;if(typeof Z==="number")$=Z,Z=!1;else Z=!!Z;if($=$||10,$<2||36<$)throw new D("radix");let X;if((X=J.indexOf("-"))>0)throw new D("interior hyphen");else if(X===0)return M.fromString(J.substring(1),Z,$).neg();const Y=M.fromNumber(Math.pow($,8));let Q=M.ZERO;for(let K=0;K<J.length;K+=8){const G=Math.min(8,J.length-K),F=parseInt(J.substring(K,K+G),$);if(G<8){const q=M.fromNumber(Math.pow($,G));Q=Q.mul(q).add(M.fromNumber(F))}else Q=Q.mul(Y),Q=Q.add(M.fromNumber(F))}return Q.unsigned=Z,Q}static fromBytes(J,Z,$){return $?M.fromBytesLE(J,Z):M.fromBytesBE(J,Z)}static fromBytesLE(J,Z){return new M(J[0]|J[1]<<8|J[2]<<16|J[3]<<24,J[4]|J[5]<<8|J[6]<<16|J[7]<<24,Z)}static fromBytesBE(J,Z){return new M(J[4]<<24|J[5]<<16|J[6]<<8|J[7],J[0]<<24|J[1]<<16|J[2]<<8|J[3],Z)}static isLong(J){return J!=null&&typeof J==="object"&&"__isLong__"in J&&J.__isLong__===!0}static fromValue(J,Z){if(typeof J==="number")return M.fromNumber(J,Z);if(typeof J==="string")return M.fromString(J,Z);return M.fromBits(J.low,J.high,typeof Z==="boolean"?Z:J.unsigned)}add(J){if(!M.isLong(J))J=M.fromValue(J);const Z=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=J.high>>>16,K=J.high&65535,G=J.low>>>16,F=J.low&65535;let q=0,W=0,H=0,U=0;return U+=Y+F,H+=U>>>16,U&=65535,H+=X+G,W+=H>>>16,H&=65535,W+=$+K,q+=W>>>16,W&=65535,q+=Z+Q,q&=65535,M.fromBits(H<<16|U,q<<16|W,this.unsigned)}and(J){if(!M.isLong(J))J=M.fromValue(J);return M.fromBits(this.low&J.low,this.high&J.high,this.unsigned)}compare(J){if(!M.isLong(J))J=M.fromValue(J);if(this.eq(J))return 0;const Z=this.isNegative(),$=J.isNegative();if(Z&&!$)return-1;if(!Z&&$)return 1;if(!this.unsigned)return this.sub(J).isNegative()?-1:1;return J.high>>>0>this.high>>>0||J.high===this.high&&J.low>>>0>this.low>>>0?-1:1}comp(J){return this.compare(J)}divide(J){if(!M.isLong(J))J=M.fromValue(J);if(J.isZero())throw new D("division by zero");if(g0){if(!this.unsigned&&this.high===-2147483648&&J.low===-1&&J.high===-1)return this;const Y=(this.unsigned?g0.div_u:g0.div_s)(this.low,this.high,J.low,J.high);return M.fromBits(Y,g0.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?M.UZERO:M.ZERO;let Z,$,X;if(!this.unsigned){if(this.eq(M.MIN_VALUE))if(J.eq(M.ONE)||J.eq(M.NEG_ONE))return M.MIN_VALUE;else if(J.eq(M.MIN_VALUE))return M.ONE;else if(Z=this.shr(1).div(J).shl(1),Z.eq(M.ZERO))return J.isNegative()?M.ONE:M.NEG_ONE;else return $=this.sub(J.mul(Z)),X=Z.add($.div(J)),X;else if(J.eq(M.MIN_VALUE))return this.unsigned?M.UZERO:M.ZERO;if(this.isNegative()){if(J.isNegative())return this.neg().div(J.neg());return this.neg().div(J).neg()}else if(J.isNegative())return this.div(J.neg()).neg();X=M.ZERO}else{if(!J.unsigned)J=J.toUnsigned();if(J.gt(this))return M.UZERO;if(J.gt(this.shru(1)))return M.UONE;X=M.UZERO}$=this;while($.gte(J)){Z=Math.max(1,Math.floor($.toNumber()/J.toNumber()));const Y=Math.ceil(Math.log(Z)/Math.LN2),Q=Y<=48?1:Math.pow(2,Y-48);let K=M.fromNumber(Z),G=K.mul(J);while(G.isNegative()||G.gt($))Z-=Q,K=M.fromNumber(Z,this.unsigned),G=K.mul(J);if(K.isZero())K=M.ONE;X=X.add(K),$=$.sub(G)}return X}div(J){return this.divide(J)}equals(J){if(!M.isLong(J))J=M.fromValue(J);if(this.unsigned!==J.unsigned&&this.high>>>31===1&&J.high>>>31===1)return!1;return this.high===J.high&&this.low===J.low}eq(J){return this.equals(J)}getHighBits(){return this.high}getHighBitsUnsigned(){return this.high>>>0}getLowBits(){return this.low}getLowBitsUnsigned(){return this.low>>>0}getNumBitsAbs(){if(this.isNegative())return this.eq(M.MIN_VALUE)?64:this.neg().getNumBitsAbs();const J=this.high!==0?this.high:this.low;let Z;for(Z=31;Z>0;Z--)if((J&1<<Z)!==0)break;return this.high!==0?Z+33:Z+1}greaterThan(J){return this.comp(J)>0}gt(J){return this.greaterThan(J)}greaterThanOrEqual(J){return this.comp(J)>=0}gte(J){return this.greaterThanOrEqual(J)}ge(J){return this.greaterThanOrEqual(J)}isEven(){return(this.low&1)===0}isNegative(){return!this.unsigned&&this.high<0}isOdd(){return(this.low&1)===1}isPositive(){return this.unsigned||this.high>=0}isZero(){return this.high===0&&this.low===0}lessThan(J){return this.comp(J)<0}lt(J){return this.lessThan(J)}lessThanOrEqual(J){return this.comp(J)<=0}lte(J){return this.lessThanOrEqual(J)}modulo(J){if(!M.isLong(J))J=M.fromValue(J);if(g0){const Z=(this.unsigned?g0.rem_u:g0.rem_s)(this.low,this.high,J.low,J.high);return M.fromBits(Z,g0.get_high(),this.unsigned)}return this.sub(this.div(J).mul(J))}mod(J){return this.modulo(J)}rem(J){return this.modulo(J)}multiply(J){if(this.isZero())return M.ZERO;if(!M.isLong(J))J=M.fromValue(J);if(g0){const j=g0.mul(this.low,this.high,J.low,J.high);return M.fromBits(j,g0.get_high(),this.unsigned)}if(J.isZero())return M.ZERO;if(this.eq(M.MIN_VALUE))return J.isOdd()?M.MIN_VALUE:M.ZERO;if(J.eq(M.MIN_VALUE))return this.isOdd()?M.MIN_VALUE:M.ZERO;if(this.isNegative())if(J.isNegative())return this.neg().mul(J.neg());else return this.neg().mul(J).neg();else if(J.isNegative())return this.mul(J.neg()).neg();if(this.lt(M.TWO_PWR_24)&&J.lt(M.TWO_PWR_24))return M.fromNumber(this.toNumber()*J.toNumber(),this.unsigned);const Z=this.high>>>16,$=this.high&65535,X=this.low>>>16,Y=this.low&65535,Q=J.high>>>16,K=J.high&65535,G=J.low>>>16,F=J.low&65535;let q=0,W=0,H=0,U=0;return U+=Y*F,H+=U>>>16,U&=65535,H+=X*F,W+=H>>>16,H&=65535,H+=Y*G,W+=H>>>16,H&=65535,W+=$*F,q+=W>>>16,W&=65535,W+=X*G,q+=W>>>16,W&=65535,W+=Y*K,q+=W>>>16,W&=65535,q+=Z*F+$*G+X*K+Y*Q,q&=65535,M.fromBits(H<<16|U,q<<16|W,this.unsigned)}mul(J){return this.multiply(J)}negate(){if(!this.unsigned&&this.eq(M.MIN_VALUE))return M.MIN_VALUE;return this.not().add(M.ONE)}neg(){return this.negate()}not(){return M.fromBits(~this.low,~this.high,this.unsigned)}notEquals(J){return!this.equals(J)}neq(J){return this.notEquals(J)}ne(J){return this.notEquals(J)}or(J){if(!M.isLong(J))J=M.fromValue(J);return M.fromBits(this.low|J.low,this.high|J.high,this.unsigned)}shiftLeft(J){if(M.isLong(J))J=J.toInt();if((J&=63)===0)return this;else if(J<32)return M.fromBits(this.low<<J,this.high<<J|this.low>>>32-J,this.unsigned);else return M.fromBits(0,this.low<<J-32,this.unsigned)}shl(J){return this.shiftLeft(J)}shiftRight(J){if(M.isLong(J))J=J.toInt();if((J&=63)===0)return this;else if(J<32)return M.fromBits(this.low>>>J|this.high<<32-J,this.high>>J,this.unsigned);else return M.fromBits(this.high>>J-32,this.high>=0?0:-1,this.unsigned)}shr(J){return this.shiftRight(J)}shiftRightUnsigned(J){if(M.isLong(J))J=J.toInt();if(J&=63,J===0)return this;else{const Z=this.high;if(J<32){const $=this.low;return M.fromBits($>>>J|Z<<32-J,Z>>>J,this.unsigned)}else if(J===32)return M.fromBits(Z,0,this.unsigned);else return M.fromBits(Z>>>J-32,0,this.unsigned)}}shr_u(J){return this.shiftRightUnsigned(J)}shru(J){return this.shiftRightUnsigned(J)}subtract(J){if(!M.isLong(J))J=M.fromValue(J);return this.add(J.neg())}sub(J){return this.subtract(J)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){if(this.unsigned)return(this.high>>>0)*t4+(this.low>>>0);return this.high*t4+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(J){return J?this.toBytesLE():this.toBytesBE()}toBytesLE(){const J=this.high,Z=this.low;return[Z&255,Z>>>8&255,Z>>>16&255,Z>>>24,J&255,J>>>8&255,J>>>16&255,J>>>24]}toBytesBE(){const J=this.high,Z=this.low;return[J>>>24,J>>>16&255,J>>>8&255,J&255,Z>>>24,Z>>>16&255,Z>>>8&255,Z&255]}toSigned(){if(!this.unsigned)return this;return M.fromBits(this.low,this.high,!1)}toString(J){if(J=J||10,J<2||36<J)throw new D("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(M.MIN_VALUE)){const Y=M.fromNumber(J),Q=this.div(Y),K=Q.mul(Y).sub(this);return Q.toString(J)+K.toInt().toString(J)}else return"-"+this.neg().toString(J);const Z=M.fromNumber(Math.pow(J,6),this.unsigned);let $=this,X="";while(!0){const Y=$.div(Z);let K=($.sub(Y.mul(Z)).toInt()>>>0).toString(J);if($=Y,$.isZero())return K+X;else{while(K.length<6)K="0"+K;X=""+K+X}}}toUnsigned(){if(this.unsigned)return this;return M.fromBits(this.low,this.high,!0)}xor(J){if(!M.isLong(J))J=M.fromValue(J);return M.fromBits(this.low^J.low,this.high^J.high,this.unsigned)}eqz(){return this.isZero()}le(J){return this.lessThanOrEqual(J)}toExtendedJSON(J){if(J&&J.relaxed)return this.toNumber();return{$numberLong:this.toString()}}static fromExtendedJSON(J,Z){const{useBigInt64:$=!1,relaxed:X=!0}={...Z};if(J.$numberLong.length>KS)throw new D("$numberLong string is too long");if(!GS.test(J.$numberLong))throw new D(`\$numberLong string "${J.$numberLong}" is in an invalid format`);if($){const Q=BigInt(J.$numberLong);return BigInt.asIntN(64,Q)}const Y=M.fromString(J.$numberLong);if(X)return Y.toNumber();return Y}inspect(J,Z,$){$??=B0;const X=$(this.toString(),Z),Y=this.unsigned?`, ${$(this.unsigned,Z)}`:"";return`new Long(${X}${Y})`}}M.TWO_PWR_24=M.fromInt(QS);M.MAX_UNSIGNED_VALUE=M.fromBits(4294967295|0,4294967295|0,!0);M.ZERO=M.fromInt(0);M.UZERO=M.fromInt(0,!0);M.ONE=M.fromInt(1);M.UONE=M.fromInt(1,!0);M.NEG_ONE=M.fromInt(-1);M.MAX_VALUE=M.fromBits(4294967295|0,2147483647|0,!1);M.MIN_VALUE=M.fromBits(0,2147483648|0,!1);var FS=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,qS=/^(\+|-)?(Infinity|inf)$/i,WS=/^(\+|-)?NaN$/i,i4=6111,z5=-6176,UV=6176,MV=34,ZX=L.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),jV=L.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),AV=L.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),HS=/^([-+])?(\d+)?$/,VS=31,LV=16383,zS=30,US=31;class n1 extends Y0{get _bsontype(){return"Decimal128"}constructor(J){super();if(typeof J==="string")this.bytes=n1.fromString(J).bytes;else if(q4(J)){if(J.byteLength!==16)throw new D("Decimal128 must take a Buffer of 16 bytes");this.bytes=J}else throw new D("Decimal128 must take a Buffer or string")}static fromString(J){return n1._fromString(J,{allowRounding:!1})}static fromStringWithRounding(J){return n1._fromString(J,{allowRounding:!0})}static _fromString(J,Z){let $=!1,X=!1,Y=!1,Q=!1,K=0,G=0,F=0,q=0,W=0;const H=[0];let U=0,j=0,z=0,A=0,T=new M(0,0),w=new M(0,0),N=0,P=0;if(J.length>=7000)throw new D(""+J+" not a valid Decimal128 string");const f=J.match(FS),$0=J.match(qS),A8=J.match(WS);if(!f&&!$0&&!A8||J.length===0)throw new D(""+J+" not a valid Decimal128 string");if(f){const g=f[2],_=f[4],C=f[5],O=f[6];if(_&&O===void 0)Q6(J,"missing exponent power");if(_&&g===void 0)Q6(J,"missing exponent base");if(_===void 0&&(C||O))Q6(J,"missing e before exponent")}if(J[P]==="+"||J[P]==="-")X=!0,$=J[P++]==="-";if(!wV(J[P])&&J[P]!=="."){if(J[P]==="i"||J[P]==="I")return new n1($?jV:AV);else if(J[P]==="N")return new n1(ZX)}while(wV(J[P])||J[P]==="."){if(J[P]==="."){if(Y)Q6(J,"contains multiple periods");Y=!0,P=P+1;continue}if(U<MV){if(J[P]!=="0"||Q){if(!Q)W=G;Q=!0,H[j++]=parseInt(J[P],10),U=U+1}}if(Q)F=F+1;if(Y)q=q+1;G=G+1,P=P+1}if(Y&&!G)throw new D(""+J+" not a valid Decimal128 string");if(J[P]==="e"||J[P]==="E"){const g=J.substr(++P).match(HS);if(!g||!g[2])return new n1(ZX);A=parseInt(g[0],10),P=P+g[0].length}if(J[P])return new n1(ZX);if(!U)H[0]=0,F=1,U=1,K=0;else if(z=U-1,K=F,K!==1)while(J[W+K-1+Number(X)+Number(Y)]==="0")K=K-1;if(A<=q&&q>A+(1<<14))A=z5;else A=A-q;while(A>i4){if(z=z+1,z>=MV){if(K===0){A=i4;break}Q6(J,"overflow")}A=A-1}if(Z.allowRounding){while(A<z5||U<F){if(z===0&&K<U){A=z5,K=0;break}if(U<F)F=F-1;else z=z-1;if(A<i4)A=A+1;else{if(H.join("").match(/^0+$/)){A=i4;break}Q6(J,"overflow")}}if(z+1<K){let g=G;if(Y)W=W+1,g=g+1;if(X)W=W+1,g=g+1;const _=parseInt(J[W+z+1],10);let C=0;if(_>=5){if(C=1,_===5){C=H[z]%2===1?1:0;for(let O=W+z+2;O<g;O++)if(parseInt(J[O],10)){C=1;break}}}if(C){let O=z;for(;O>=0;O--)if(++H[O]>9){if(H[O]=0,O===0)if(A<i4)A=A+1,H[O]=1;else return new n1($?jV:AV)}else break}}}else{while(A<z5||U<F){if(z===0){if(K===0){A=z5;break}Q6(J,"exponent underflow")}if(U<F){if(J[F-1+Number(X)+Number(Y)]!=="0"&&K!==0)Q6(J,"inexact rounding");F=F-1}else{if(H[z]!==0)Q6(J,"inexact rounding");z=z-1}if(A<i4)A=A+1;else Q6(J,"overflow")}if(z+1<K){if(Y)W=W+1;if(X)W=W+1;if(parseInt(J[W+z+1],10)!==0)Q6(J,"inexact rounding")}}if(T=M.fromNumber(0),w=M.fromNumber(0),K===0)T=M.fromNumber(0),w=M.fromNumber(0);else if(z<17){let g=0;w=M.fromNumber(H[g++]),T=new M(0,0);for(;g<=z;g++)w=w.multiply(M.fromNumber(10)),w=w.add(M.fromNumber(H[g]))}else{let g=0;T=M.fromNumber(H[g++]);for(;g<=z-17;g++)T=T.multiply(M.fromNumber(10)),T=T.add(M.fromNumber(H[g]));w=M.fromNumber(H[g++]);for(;g<=z;g++)w=w.multiply(M.fromNumber(10)),w=w.add(M.fromNumber(H[g]))}const k=jS(T,M.fromString("100000000000000000"));if(k.low=k.low.add(w),AS(k.low,w))k.high=k.high.add(M.fromNumber(1));N=A+UV;const B={low:M.fromNumber(0),high:M.fromNumber(0)};if(k.high.shiftRightUnsigned(49).and(M.fromNumber(1)).equals(M.fromNumber(1)))B.high=B.high.or(M.fromNumber(3).shiftLeft(61)),B.high=B.high.or(M.fromNumber(N).and(M.fromNumber(16383).shiftLeft(47))),B.high=B.high.or(k.high.and(M.fromNumber(140737488355327)));else B.high=B.high.or(M.fromNumber(N&16383).shiftLeft(49)),B.high=B.high.or(k.high.and(M.fromNumber(562949953421311)));if(B.low=k.low,$)B.high=B.high.or(M.fromString("9223372036854775808"));const Q1=L.allocate(16);return P=0,Q1[P++]=B.low.low&255,Q1[P++]=B.low.low>>8&255,Q1[P++]=B.low.low>>16&255,Q1[P++]=B.low.low>>24&255,Q1[P++]=B.low.high&255,Q1[P++]=B.low.high>>8&255,Q1[P++]=B.low.high>>16&255,Q1[P++]=B.low.high>>24&255,Q1[P++]=B.high.low&255,Q1[P++]=B.high.low>>8&255,Q1[P++]=B.high.low>>16&255,Q1[P++]=B.high.low>>24&255,Q1[P++]=B.high.high&255,Q1[P++]=B.high.high>>8&255,Q1[P++]=B.high.high>>16&255,Q1[P++]=B.high.high>>24&255,new n1(Q1)}toString(){let J,Z=0;const $=new Array(36);for(let P=0;P<$.length;P++)$[P]=0;let X=0,Y=!1,Q,K={parts:[0,0,0,0]},G,F;const q=[];X=0;const W=this.bytes,H=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,U=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,j=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24,z=W[X++]|W[X++]<<8|W[X++]<<16|W[X++]<<24;if(X=0,{low:new M(H,U),high:new M(j,z)}.high.lessThan(M.ZERO))q.push("-");const T=z>>26&VS;if(T>>3===3)if(T===zS)return q.join("")+"Infinity";else if(T===US)return"NaN";else J=z>>15&LV,Q=8+(z>>14&1);else Q=z>>14&7,J=z>>17&LV;const w=J-UV;if(K.parts[0]=(z&16383)+((Q&15)<<14),K.parts[1]=j,K.parts[2]=U,K.parts[3]=H,K.parts[0]===0&&K.parts[1]===0&&K.parts[2]===0&&K.parts[3]===0)Y=!0;else for(F=3;F>=0;F--){let P=0;const f=MS(K);if(K=f.quotient,P=f.rem.low,!P)continue;for(G=8;G>=0;G--)$[F*9+G]=P%10,P=Math.floor(P/10)}if(Y)Z=1,$[X]=0;else{Z=36;while(!$[X])Z=Z-1,X=X+1}const N=Z-1+w;if(N>=34||N<=-7||w>0){if(Z>34){if(q.push("0"),w>0)q.push(`E+${w}`);else if(w<0)q.push(`E${w}`);return q.join("")}if(q.push(`${$[X++]}`),Z=Z-1,Z)q.push(".");for(let P=0;P<Z;P++)q.push(`${$[X++]}`);if(q.push("E"),N>0)q.push(`+${N}`);else q.push(`${N}`)}else if(w>=0)for(let P=0;P<Z;P++)q.push(`${$[X++]}`);else{let P=Z+w;if(P>0)for(let f=0;f<P;f++)q.push(`${$[X++]}`);else q.push("0");q.push(".");while(P++<0)q.push("0");for(let f=0;f<Z-Math.max(P-1,0);f++)q.push(`${$[X++]}`)}return q.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(J){return n1.fromString(J.$numberDecimal)}inspect(J,Z,$){return $??=B0,`new Decimal128(${$(this.toString(),Z)})`}}class E8 extends Y0{get _bsontype(){return"Double"}constructor(J){super();if(J instanceof Number)J=J.valueOf();this.value=+J}valueOf(){return this.value}toJSON(){return this.value}toString(J){return this.value.toString(J)}toExtendedJSON(J){if(J&&(J.legacy||J.relaxed&&isFinite(this.value)))return this.value;if(Object.is(Math.sign(this.value),-0))return{$numberDouble:"-0.0"};return{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}}static fromExtendedJSON(J,Z){const $=parseFloat(J.$numberDouble);return Z&&Z.relaxed?$:new E8($)}inspect(J,Z,$){return $??=B0,`new Double(${$(this.value,Z)})`}}class C8 extends Y0{get _bsontype(){return"Int32"}constructor(J){super();if(J instanceof Number)J=J.valueOf();this.value=+J|0}valueOf(){return this.value}toString(J){return this.value.toString(J)}toJSON(){return this.value}toExtendedJSON(J){if(J&&(J.relaxed||J.legacy))return this.value;return{$numberInt:this.value.toString()}}static fromExtendedJSON(J,Z){return Z&&Z.relaxed?parseInt(J.$numberInt,10):new C8(J.$numberInt)}inspect(J,Z,$){return $??=B0,`new Int32(${$(this.value,Z)})`}}class H4 extends Y0{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new H4}inspect(){return"new MaxKey()"}}class V4 extends Y0{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new V4}inspect(){return"new MinKey()"}}var LS=new RegExp("^[0-9a-fA-F]{24}$"),F4=null,t6=Symbol("id");class w1 extends Y0{get _bsontype(){return"ObjectId"}constructor(J){super();let Z;if(typeof J==="object"&&J&&"id"in J){if(typeof J.id!=="string"&&!ArrayBuffer.isView(J.id))throw new D("Argument passed in must have an id that is of type string or Buffer");if("toHexString"in J&&typeof J.toHexString==="function")Z=L.fromHex(J.toHexString());else Z=J.id}else Z=J;if(Z==null||typeof Z==="number")this[t6]=w1.generate(typeof Z==="number"?Z:void 0);else if(ArrayBuffer.isView(Z)&&Z.byteLength===12)this[t6]=L.toLocalBufferType(Z);else if(typeof Z==="string")if(Z.length===24&&LS.test(Z))this[t6]=L.fromHex(Z);else throw new D("input must be a 24 character hex string, 12 byte Uint8Array, or an integer");else throw new D("Argument passed in does not match the accepted types");if(w1.cacheHexString)this.__id=L.toHex(this.id)}get id(){return this[t6]}set id(J){if(this[t6]=J,w1.cacheHexString)this.__id=L.toHex(J)}toHexString(){if(w1.cacheHexString&&this.__id)return this.__id;const J=L.toHex(this.id);if(w1.cacheHexString&&!this.__id)this.__id=J;return J}static getInc(){return w1.index=(w1.index+1)%16777215}static generate(J){if(typeof J!=="number")J=Math.floor(Date.now()/1000);const Z=w1.getInc(),$=L.allocate(12);if(M5.fromUint8Array($).setUint32(0,J,!1),F4===null)F4=L.randomBytes(5);return $[4]=F4[0],$[5]=F4[1],$[6]=F4[2],$[7]=F4[3],$[8]=F4[4],$[11]=Z&255,$[10]=Z>>8&255,$[9]=Z>>16&255,$}toString(J){if(J==="base64")return L.toBase64(this.id);if(J==="hex")return this.toHexString();return this.toHexString()}toJSON(){return this.toHexString()}static is(J){return J!=null&&typeof J==="object"&&"_bsontype"in J&&J._bsontype==="ObjectId"}equals(J){if(J===void 0||J===null)return!1;if(w1.is(J))return this[t6][11]===J[t6][11]&&L.equals(this[t6],J[t6]);if(typeof J==="string")return J.toLowerCase()===this.toHexString();if(typeof J==="object"&&typeof J.toHexString==="function"){const Z=J.toHexString(),$=this.toHexString();return typeof Z==="string"&&Z.toLowerCase()===$}return!1}getTimestamp(){const J=new Date,Z=M5.fromUint8Array(this.id).getUint32(0,!1);return J.setTime(Math.floor(Z)*1000),J}static createPk(){return new w1}static createFromTime(J){const Z=L.fromNumberArray([0,0,0,0,0,0,0,0,0,0,0,0]);return M5.fromUint8Array(Z).setUint32(0,J,!1),new w1(Z)}static createFromHexString(J){if(J?.length!==24)throw new D("hex string must be 24 characters");return new w1(L.fromHex(J))}static createFromBase64(J){if(J?.length!==16)throw new D("base64 string must be 16 characters");return new w1(L.fromBase64(J))}static isValid(J){if(J==null)return!1;try{return new w1(J),!0}catch{return!1}}toExtendedJSON(){if(this.toHexString)return{$oid:this.toHexString()};return{$oid:this.toString("hex")}}static fromExtendedJSON(J){return new w1(J.$oid)}inspect(J,Z,$){return $??=B0,`new ObjectId(${$(this.toHexString(),Z)})`}}w1.index=Math.floor(Math.random()*16777215);class u0 extends Y0{get _bsontype(){return"BSONRegExp"}constructor(J,Z){super();if(this.pattern=J,this.options=wS(Z??""),this.pattern.indexOf("\0")!==-1)throw new D(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(this.options.indexOf("\0")!==-1)throw new D(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);for(let $=0;$<this.options.length;$++)if(!(this.options[$]==="i"||this.options[$]==="m"||this.options[$]==="x"||this.options[$]==="l"||this.options[$]==="s"||this.options[$]==="u"))throw new D(`The regular expression option [${this.options[$]}] is not supported`)}static parseOptions(J){return J?J.split("").sort().join(""):""}toExtendedJSON(J){if(J=J||{},J.legacy)return{$regex:this.pattern,$options:this.options};return{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(J){if("$regex"in J)if(typeof J.$regex!=="string"){if(J.$regex._bsontype==="BSONRegExp")return J}else return new u0(J.$regex,u0.parseOptions(J.$options));if("$regularExpression"in J)return new u0(J.$regularExpression.pattern,u0.parseOptions(J.$regularExpression.options));throw new D(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(J)}`)}inspect(J,Z,$){const X=ih(Z)??((K)=>K);$??=B0;const Y=X($(this.pattern),"regexp"),Q=X($(this.options),"regexp");return`new BSONRegExp(${Y}, ${Q})`}}class z4 extends Y0{get _bsontype(){return"BSONSymbol"}constructor(J){super();this.value=J}valueOf(){return this.value}toString(){return this.value}toJSON(){return this.value}toExtendedJSON(){return{$symbol:this.value}}static fromExtendedJSON(J){return new z4(J.$symbol)}inspect(J,Z,$){return $??=B0,`new BSONSymbol(${$(this.value,Z)})`}}var RS=M;class m0 extends RS{get _bsontype(){return"Timestamp"}constructor(J){if(J==null)super(0,0,!0);else if(typeof J==="bigint")super(J,!0);else if(M.isLong(J))super(J.low,J.high,!0);else if(typeof J==="object"&&"t"in J&&"i"in J){if(typeof J.t!=="number"&&(typeof J.t!=="object"||J.t._bsontype!=="Int32"))throw new D("Timestamp constructed from { t, i } must provide t as a number");if(typeof J.i!=="number"&&(typeof J.i!=="object"||J.i._bsontype!=="Int32"))throw new D("Timestamp constructed from { t, i } must provide i as a number");const Z=Number(J.t),$=Number(J.i);if(Z<0||Number.isNaN(Z))throw new D("Timestamp constructed from { t, i } must provide a positive t");if($<0||Number.isNaN($))throw new D("Timestamp constructed from { t, i } must provide a positive i");if(Z>4294967295)throw new D("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if($>4294967295)throw new D("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super($,Z,!0)}else throw new D("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }")}toJSON(){return{$timestamp:this.toString()}}static fromInt(J){return new m0(M.fromInt(J,!0))}static fromNumber(J){return new m0(M.fromNumber(J,!0))}static fromBits(J,Z){return new m0({i:J,t:Z})}static fromString(J,Z){return new m0(M.fromString(J,!0,Z))}toExtendedJSON(){return{$timestamp:{t:this.high>>>0,i:this.low>>>0}}}static fromExtendedJSON(J){const Z=M.isLong(J.$timestamp.i)?J.$timestamp.i.getLowBitsUnsigned():J.$timestamp.i,$=M.isLong(J.$timestamp.t)?J.$timestamp.t.getLowBitsUnsigned():J.$timestamp.t;return new m0({t:$,i:Z})}inspect(J,Z,$){$??=B0;const X=$(this.high>>>0,Z),Y=$(this.low>>>0,Z);return`new Timestamp({ t: ${X}, i: ${Y} })`}}m0.MAX_VALUE=M.MAX_UNSIGNED_VALUE;var DS=128,PS=192,TS=224,IS=240,NS=248,BS=192,ES=224,CS=240,hS=128,SS=M.fromNumber(NV),OS=M.fromNumber(BV),kS=/^\$ref$|^\$id$|^\$db$/,HJ=/\x00/,DV=new Set(["$db","$ref","$id","$clusterTime"]),e4=new DataView(new ArrayBuffer(8),0,8),yS=new Uint8Array(e4.buffer,0,4),VJ=new Uint8Array(e4.buffer,0,8),fS={$oid:w1,$binary:l,$uuid:l,$symbol:z4,$numberInt:C8,$numberDecimal:n1,$numberDouble:E8,$numberLong:M,$minKey:V4,$maxKey:H4,$regex:u0,$regularExpression:u0,$timestamp:m0},xS={Binary:(J)=>new l(J.value(),J.sub_type),Code:(J)=>new o6(J.code,J.scope),DBRef:(J)=>new C6(J.collection||J.namespace,J.oid,J.db,J.fields),Decimal128:(J)=>new n1(J.bytes),Double:(J)=>new E8(J.value),Int32:(J)=>new C8(J.value),Long:(J)=>M.fromBits(J.low!=null?J.low:J.low_,J.low!=null?J.high:J.high_,J.low!=null?J.unsigned:J.unsigned_),MaxKey:()=>new H4,MinKey:()=>new V4,ObjectId:(J)=>new w1(J),BSONRegExp:(J)=>new u0(J.pattern,J.options),BSONSymbol:(J)=>new z4(J.value),Timestamp:(J)=>m0.fromBits(J.low,J.high)},U4=Object.create(null);U4.parse=pV;U4.stringify=lV;U4.serialize=gS;U4.deserialize=mS;Object.freeze(U4);var aV=17825792,N8=L.allocate(aV),uS=Object.freeze({__proto__:null,BSONError:D,BSONRegExp:u0,BSONRuntimeError:j5,BSONSymbol:z4,BSONType:bV,BSONValue:Y0,BSONVersionError:B8,Binary:l,Code:o6,DBRef:C6,Decimal128:n1,Double:E8,EJSON:U4,Int32:C8,Long:M,MaxKey:H4,MinKey:V4,ObjectId:w1,Timestamp:m0,UUID:f1,calculateObjectSize:rV,deserialize:tV,deserializeStream:oV,serialize:sV,serializeWithBufferAndIndex:nV,setInternalBufferSize:iV});dS.BSON=uS;dS.BSONError=D;dS.BSONRegExp=u0;dS.BSONRuntimeError=j5;dS.BSONSymbol=z4;dS.BSONType=bV;dS.BSONValue=Y0;dS.BSONVersionError=B8;dS.Binary=l;dS.Code=o6;dS.DBRef=C6;dS.Decimal128=n1;dS.Double=E8;dS.EJSON=U4;dS.Int32=C8;dS.Long=M;dS.MaxKey=H4;dS.MinKey=V4;dS.ObjectId=w1;dS.Timestamp=m0;dS.UUID=f1;dS.calculateObjectSize=rV;dS.deserialize=tV;dS.deserializeStream=oV;dS.serialize=sV;dS.serializeWithBufferAndIndex=nV;dS.setInternalBufferSize=iV});var H1=V((P1)=>{var jO=function(J){const{fieldsAsRaw:Z,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:F,raw:q,enableUtf8Validation:W}=J;return{fieldsAsRaw:Z,useBigInt64:$,promoteValues:X,promoteBuffers:Y,promoteLongs:Q,serializeFunctions:K,ignoreUndefined:G,bsonRegExp:F,raw:q,enableUtf8Validation:W}},AO=function(J,Z){const $=Z?.bsonOptions;return{raw:J?.raw??$?.raw??!1,useBigInt64:J?.useBigInt64??$?.useBigInt64??!1,promoteLongs:J?.promoteLongs??$?.promoteLongs??!0,promoteValues:J?.promoteValues??$?.promoteValues??!0,promoteBuffers:J?.promoteBuffers??$?.promoteBuffers??!1,ignoreUndefined:J?.ignoreUndefined??$?.ignoreUndefined??!1,bsonRegExp:J?.bsonRegExp??$?.bsonRegExp??!1,serializeFunctions:J?.serializeFunctions??$?.serializeFunctions??!1,fieldsAsRaw:J?.fieldsAsRaw??$?.fieldsAsRaw??{},enableUtf8Validation:J?.enableUtf8Validation??$?.enableUtf8Validation??!0}};Object.defineProperty(P1,"__esModule",{value:!0});P1.resolveBSONOptions=P1.pluckBSONSerializeOptions=P1.UUID=P1.Timestamp=P1.serialize=P1.ObjectId=P1.MinKey=P1.MaxKey=P1.Long=P1.Int32=P1.Double=P1.deserialize=P1.Decimal128=P1.DBRef=P1.Code=P1.calculateObjectSize=P1.BSONType=P1.BSONSymbol=P1.BSONRegExp=P1.BSON=P1.Binary=void 0;var O1=L5();Object.defineProperty(P1,"Binary",{enumerable:!0,get:function(){return O1.Binary}});Object.defineProperty(P1,"BSON",{enumerable:!0,get:function(){return O1.BSON}});Object.defineProperty(P1,"BSONRegExp",{enumerable:!0,get:function(){return O1.BSONRegExp}});Object.defineProperty(P1,"BSONSymbol",{enumerable:!0,get:function(){return O1.BSONSymbol}});Object.defineProperty(P1,"BSONType",{enumerable:!0,get:function(){return O1.BSONType}});Object.defineProperty(P1,"calculateObjectSize",{enumerable:!0,get:function(){return O1.calculateObjectSize}});Object.defineProperty(P1,"Code",{enumerable:!0,get:function(){return O1.Code}});Object.defineProperty(P1,"DBRef",{enumerable:!0,get:function(){return O1.DBRef}});Object.defineProperty(P1,"Decimal128",{enumerable:!0,get:function(){return O1.Decimal128}});Object.defineProperty(P1,"deserialize",{enumerable:!0,get:function(){return O1.deserialize}});Object.defineProperty(P1,"Double",{enumerable:!0,get:function(){return O1.Double}});Object.defineProperty(P1,"Int32",{enumerable:!0,get:function(){return O1.Int32}});Object.defineProperty(P1,"Long",{enumerable:!0,get:function(){return O1.Long}});Object.defineProperty(P1,"MaxKey",{enumerable:!0,get:function(){return O1.MaxKey}});Object.defineProperty(P1,"MinKey",{enumerable:!0,get:function(){return O1.MinKey}});Object.defineProperty(P1,"ObjectId",{enumerable:!0,get:function(){return O1.ObjectId}});Object.defineProperty(P1,"serialize",{enumerable:!0,get:function(){return O1.serialize}});Object.defineProperty(P1,"Timestamp",{enumerable:!0,get:function(){return O1.Timestamp}});Object.defineProperty(P1,"UUID",{enumerable:!0,get:function(){return O1.UUID}});P1.pluckBSONSerializeOptions=jO;P1.resolveBSONOptions=AO});var E=V((Cz)=>{var wO=function(J){return"errors"in J&&Array.isArray(J.errors)},RO=function(J){return J[Lz]===!0},DO=function(J){const Z=Object.assign({},J);if(Z.ok===0)Z.ok=1,delete Z.errmsg,delete Z.code,delete Z.codeName;return Z},PO=function(J,Z){if(J instanceof M4)return!0;if(J instanceof h6){if((Z>=9||Bz(J))&&!J.hasErrorLabel(Cz.MongoErrorLabel.HandshakeError))return!1}if(J instanceof kX)return Jz.has(J.result?.code??J.code??0);if(J instanceof h6&&typeof J.code==="number")return Jz.has(J.code);if(Cz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(J.message))return!0;if(Cz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(J.message))return!0;return!1},Bz=function(J){return J.hasErrorLabel(Cz.MongoErrorLabel.RetryableWriteError)||J.hasErrorLabel(Cz.MongoErrorLabel.PoolRequstedRetry)},TO=function(J){if(typeof J.code==="number"?Nz.has(J.code):!1)return!0;if(J instanceof M4)return!0;if(Cz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(J.message))return!0;if(Cz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(J.message))return!0;return!1},Ez=function(J){if(typeof J.code==="number")return IO.has(J.code);return Cz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(J.message)||Cz.NODE_IS_RECOVERING_ERROR_MESSAGE.test(J.message)},EO=function(J){if(typeof J.code==="number")return NO.has(J.code);if(Ez(J))return!1;return Cz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(J.message)},CO=function(J){return!!(typeof J.code==="number"&&BO.has(J.code))},hO=function(J){if(J instanceof SX||J==null)return!0;return Ez(J)||EO(J)},SO=function(J){return!!(J instanceof M4&&J.message.match(/timed out/))},OO=function(J,Z){if(J==null||!(J instanceof h6))return!1;if(J instanceof M4)return!0;if(Z!=null&&Z>=9){if(J.code===Cz.MONGODB_ERROR_CODES.CursorNotFound)return!0;return J.hasErrorLabel(Cz.MongoErrorLabel.ResumableChangeStreamError)}if(typeof J.code==="number")return Cz.GET_MORE_RESUMABLE_CODES.has(J.code);return!1};Object.defineProperty(Cz,"__esModule",{value:!0});Cz.isResumableError=Cz.isNetworkTimeoutError=Cz.isSDAMUnrecoverableError=Cz.isNodeShuttingDownError=Cz.isRetryableReadError=Cz.isRetryableWriteError=Cz.needsRetryableWriteLabel=Cz.MongoWriteConcernError=Cz.MongoServerSelectionError=Cz.MongoSystemError=Cz.MongoMissingDependencyError=Cz.MongoMissingCredentialsError=Cz.MongoCompatibilityError=Cz.MongoInvalidArgumentError=Cz.MongoParseError=Cz.MongoNetworkTimeoutError=Cz.MongoNetworkError=Cz.isNetworkErrorBeforeHandshake=Cz.MongoTopologyClosedError=Cz.MongoCursorExhaustedError=Cz.MongoServerClosedError=Cz.MongoCursorInUseError=Cz.MongoUnexpectedServerResponseError=Cz.MongoGridFSChunkError=Cz.MongoGridFSStreamError=Cz.MongoTailableCursorError=Cz.MongoChangeStreamError=Cz.MongoAzureError=Cz.MongoAWSError=Cz.MongoKerberosError=Cz.MongoExpiredSessionError=Cz.MongoTransactionError=Cz.MongoNotConnectedError=Cz.MongoDecompressionError=Cz.MongoBatchReExecutionError=Cz.MongoRuntimeError=Cz.MongoAPIError=Cz.MongoDriverError=Cz.MongoServerError=Cz.MongoError=Cz.MongoErrorLabel=Cz.GET_MORE_RESUMABLE_CODES=Cz.MONGODB_ERROR_CODES=Cz.NODE_IS_RECOVERING_ERROR_MESSAGE=Cz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=Cz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;var w5=Symbol("errorLabels");Cz.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=new RegExp("not master","i");Cz.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=new RegExp("not master or secondary","i");Cz.NODE_IS_RECOVERING_ERROR_MESSAGE=new RegExp("node is recovering","i");Cz.MONGODB_ERROR_CODES=Object.freeze({HostUnreachable:6,HostNotFound:7,NetworkTimeout:89,ShutdownInProgress:91,PrimarySteppedDown:189,ExceededTimeLimit:262,SocketException:9001,NotWritablePrimary:10107,InterruptedAtShutdown:11600,InterruptedDueToReplStateChange:11602,NotPrimaryNoSecondaryOk:13435,NotPrimaryOrSecondary:13436,StaleShardVersion:63,StaleEpoch:150,StaleConfig:13388,RetryChangeStream:234,FailedToSatisfyReadPreference:133,CursorNotFound:43,LegacyNotPrimary:10058,WriteConcernFailed:64,NamespaceNotFound:26,IllegalOperation:20,MaxTimeMSExpired:50,UnknownReplWriteConcern:79,UnsatisfiableWriteConcern:100,Reauthenticate:391});Cz.GET_MORE_RESUMABLE_CODES=new Set([Cz.MONGODB_ERROR_CODES.HostUnreachable,Cz.MONGODB_ERROR_CODES.HostNotFound,Cz.MONGODB_ERROR_CODES.NetworkTimeout,Cz.MONGODB_ERROR_CODES.ShutdownInProgress,Cz.MONGODB_ERROR_CODES.PrimarySteppedDown,Cz.MONGODB_ERROR_CODES.ExceededTimeLimit,Cz.MONGODB_ERROR_CODES.SocketException,Cz.MONGODB_ERROR_CODES.NotWritablePrimary,Cz.MONGODB_ERROR_CODES.InterruptedAtShutdown,Cz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,Cz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,Cz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,Cz.MONGODB_ERROR_CODES.StaleShardVersion,Cz.MONGODB_ERROR_CODES.StaleEpoch,Cz.MONGODB_ERROR_CODES.StaleConfig,Cz.MONGODB_ERROR_CODES.RetryChangeStream,Cz.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,Cz.MONGODB_ERROR_CODES.CursorNotFound]);Cz.MongoErrorLabel=Object.freeze({RetryableWriteError:"RetryableWriteError",TransientTransactionError:"TransientTransactionError",UnknownTransactionCommitResult:"UnknownTransactionCommitResult",ResumableChangeStreamError:"ResumableChangeStreamError",HandshakeError:"HandshakeError",ResetPool:"ResetPool",PoolRequstedRetry:"PoolRequstedRetry",InterruptInUseConnections:"InterruptInUseConnections",NoWritesPerformed:"NoWritesPerformed"});class h6 extends Error{constructor(J,Z){super(J,Z);this[w5]=new Set}static buildErrorMessage(J){if(typeof J==="string")return J;if(wO(J)&&J.message.length===0)return J.errors.length===0?"AggregateError has an empty errors array. Please check the `cause` property for more information.":J.errors.map(({message:Z})=>Z).join(", ");return J.message}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(J){return this[w5].has(J)}addErrorLabel(J){this[w5].add(J)}get errorLabels(){return Array.from(this[w5])}}Cz.MongoError=h6;class hX extends h6{constructor(J){super(J.message||J.errmsg||J.$err||"n/a");if(J.errorLabels)this[w5]=new Set(J.errorLabels);for(let Z in J)if(Z!=="errorLabels"&&Z!=="errmsg"&&Z!=="message")this[Z]=J[Z]}get name(){return"MongoServerError"}}Cz.MongoServerError=hX;class D5 extends h6{constructor(J,Z){super(J,Z)}get name(){return"MongoDriverError"}}Cz.MongoDriverError=D5;class Q0 extends D5{constructor(J,Z){super(J,Z)}get name(){return"MongoAPIError"}}Cz.MongoAPIError=Q0;class S6 extends D5{constructor(J,Z){super(J,Z)}get name(){return"MongoRuntimeError"}}Cz.MongoRuntimeError=S6;class Zz extends Q0{constructor(J="This batch has already been executed, create new batch to execute"){super(J)}get name(){return"MongoBatchReExecutionError"}}Cz.MongoBatchReExecutionError=Zz;class $z extends S6{constructor(J){super(J)}get name(){return"MongoDecompressionError"}}Cz.MongoDecompressionError=$z;class Xz extends Q0{constructor(J){super(J)}get name(){return"MongoNotConnectedError"}}Cz.MongoNotConnectedError=Xz;class Yz extends Q0{constructor(J){super(J)}get name(){return"MongoTransactionError"}}Cz.MongoTransactionError=Yz;class Qz extends Q0{constructor(J="Cannot use a session that has ended"){super(J)}get name(){return"MongoExpiredSessionError"}}Cz.MongoExpiredSessionError=Qz;class Kz extends S6{constructor(J){super(J)}get name(){return"MongoKerberosError"}}Cz.MongoKerberosError=Kz;class Gz extends S6{constructor(J){super(J)}get name(){return"MongoAWSError"}}Cz.MongoAWSError=Gz;class Fz extends S6{constructor(J){super(J)}get name(){return"MongoAzureError"}}Cz.MongoAzureError=Fz;class qz extends S6{constructor(J){super(J)}get name(){return"MongoChangeStreamError"}}Cz.MongoChangeStreamError=qz;class Wz extends Q0{constructor(J="Tailable cursor does not support this operation"){super(J)}get name(){return"MongoTailableCursorError"}}Cz.MongoTailableCursorError=Wz;class Hz extends S6{constructor(J){super(J)}get name(){return"MongoGridFSStreamError"}}Cz.MongoGridFSStreamError=Hz;class Vz extends S6{constructor(J){super(J)}get name(){return"MongoGridFSChunkError"}}Cz.MongoGridFSChunkError=Vz;class zz extends S6{constructor(J){super(J)}get name(){return"MongoUnexpectedServerResponseError"}}Cz.MongoUnexpectedServerResponseError=zz;class Uz extends Q0{constructor(J="Cursor is already initialized"){super(J)}get name(){return"MongoCursorInUseError"}}Cz.MongoCursorInUseError=Uz;class Mz extends Q0{constructor(J="Server is closed"){super(J)}get name(){return"MongoServerClosedError"}}Cz.MongoServerClosedError=Mz;class jz extends Q0{constructor(J){super(J||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}}Cz.MongoCursorExhaustedError=jz;class Az extends Q0{constructor(J="Topology is closed"){super(J)}get name(){return"MongoTopologyClosedError"}}Cz.MongoTopologyClosedError=Az;var Lz=Symbol("beforeHandshake");Cz.isNetworkErrorBeforeHandshake=RO;class M4 extends h6{constructor(J,Z){super(J,{cause:Z?.cause});if(Z&&typeof Z.beforeHandshake==="boolean")this[Lz]=Z.beforeHandshake}get name(){return"MongoNetworkError"}}Cz.MongoNetworkError=M4;class wz extends M4{constructor(J,Z){super(J,Z)}get name(){return"MongoNetworkTimeoutError"}}Cz.MongoNetworkTimeoutError=wz;class SX extends D5{constructor(J){super(J)}get name(){return"MongoParseError"}}Cz.MongoParseError=SX;class Rz extends Q0{constructor(J){super(J)}get name(){return"MongoInvalidArgumentError"}}Cz.MongoInvalidArgumentError=Rz;class Dz extends Q0{constructor(J){super(J)}get name(){return"MongoCompatibilityError"}}Cz.MongoCompatibilityError=Dz;class Pz extends Q0{constructor(J){super(J)}get name(){return"MongoMissingCredentialsError"}}Cz.MongoMissingCredentialsError=Pz;class Tz extends Q0{constructor(J,Z={}){super(J,Z)}get name(){return"MongoMissingDependencyError"}}Cz.MongoMissingDependencyError=Tz;class OX extends h6{constructor(J,Z){if(Z&&Z.error)super(h6.buildErrorMessage(Z.error.message||Z.error),{cause:Z.error});else super(J);if(Z)this.reason=Z;this.code=Z.error?.code}get name(){return"MongoSystemError"}}Cz.MongoSystemError=OX;class Iz extends OX{constructor(J,Z){super(J,Z)}get name(){return"MongoServerSelectionError"}}Cz.MongoServerSelectionError=Iz;class kX extends hX{constructor(J,Z){if(Z&&Array.isArray(Z.errorLabels))J.errorLabels=Z.errorLabels;super(J);if(this.errInfo=J.errInfo,Z!=null)this.result=DO(Z)}get name(){return"MongoWriteConcernError"}}Cz.MongoWriteConcernError=kX;var Nz=new Set([Cz.MONGODB_ERROR_CODES.HostUnreachable,Cz.MONGODB_ERROR_CODES.HostNotFound,Cz.MONGODB_ERROR_CODES.NetworkTimeout,Cz.MONGODB_ERROR_CODES.ShutdownInProgress,Cz.MONGODB_ERROR_CODES.PrimarySteppedDown,Cz.MONGODB_ERROR_CODES.SocketException,Cz.MONGODB_ERROR_CODES.NotWritablePrimary,Cz.MONGODB_ERROR_CODES.InterruptedAtShutdown,Cz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,Cz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,Cz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),Jz=new Set([...Nz,Cz.MONGODB_ERROR_CODES.ExceededTimeLimit]);Cz.needsRetryableWriteLabel=PO;Cz.isRetryableWriteError=Bz;Cz.isRetryableReadError=TO;var IO=new Set([Cz.MONGODB_ERROR_CODES.ShutdownInProgress,Cz.MONGODB_ERROR_CODES.PrimarySteppedDown,Cz.MONGODB_ERROR_CODES.InterruptedAtShutdown,Cz.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,Cz.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),NO=new Set([Cz.MONGODB_ERROR_CODES.NotWritablePrimary,Cz.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,Cz.MONGODB_ERROR_CODES.LegacyNotPrimary]),BO=new Set([Cz.MONGODB_ERROR_CODES.InterruptedAtShutdown,Cz.MONGODB_ERROR_CODES.ShutdownInProgress]);Cz.isNodeShuttingDownError=CO;Cz.isSDAMUnrecoverableError=hO;Cz.isNetworkTimeoutError=SO;Cz.isResumableError=OO});var k1=V((kz)=>{Object.defineProperty(kz,"__esModule",{value:!0});kz.ReadPreference=kz.ReadPreferenceMode=void 0;var j4=E();kz.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class c{constructor(J,Z,$){if(!c.isValid(J))throw new j4.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(J)}`);if($==null&&typeof Z==="object"&&!Array.isArray(Z))$=Z,Z=void 0;else if(Z&&!Array.isArray(Z))throw new j4.MongoInvalidArgumentError("ReadPreference tags must be an array");if(this.mode=J,this.tags=Z,this.hedge=$?.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,$=$??{},$.maxStalenessSeconds!=null){if($.maxStalenessSeconds<=0)throw new j4.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=$.maxStalenessSeconds,this.minWireVersion=5}if(this.mode===c.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new j4.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new j4.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new j4.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(J){return new c(J)}static fromOptions(J){if(!J)return;const Z=J.readPreference??J.session?.transaction.options.readPreference,$=J.readPreferenceTags;if(Z==null)return;if(typeof Z==="string")return new c(Z,$,{maxStalenessSeconds:J.maxStalenessSeconds,hedge:J.hedge});else if(!(Z instanceof c)&&typeof Z==="object"){const X=Z.mode||Z.preference;if(X&&typeof X==="string")return new c(X,Z.tags??$,{maxStalenessSeconds:Z.maxStalenessSeconds,hedge:J.hedge})}if($)Z.tags=$;return Z}static translate(J){if(J.readPreference==null)return J;const Z=J.readPreference;if(typeof Z==="string")J.readPreference=new c(Z);else if(Z&&!(Z instanceof c)&&typeof Z==="object"){const $=Z.mode||Z.preference;if($&&typeof $==="string")J.readPreference=new c($,Z.tags,{maxStalenessSeconds:Z.maxStalenessSeconds})}else if(!(Z instanceof c))throw new j4.MongoInvalidArgumentError(`Invalid read preference: ${Z}`);return J}static isValid(J){return(new Set([c.PRIMARY,c.PRIMARY_PREFERRED,c.SECONDARY,c.SECONDARY_PREFERRED,c.NEAREST,null])).has(J)}isValid(J){return c.isValid(typeof J==="string"?J:this.mode)}secondaryOk(){return(new Set([c.PRIMARY_PREFERRED,c.SECONDARY,c.SECONDARY_PREFERRED,c.NEAREST])).has(this.mode)}equals(J){return J.mode===this.mode}toJSON(){const J={mode:this.mode};if(Array.isArray(this.tags))J.tags=this.tags;if(this.maxStalenessSeconds)J.maxStalenessSeconds=this.maxStalenessSeconds;if(this.hedge)J.hedge=this.hedge;return J}}c.PRIMARY=kz.ReadPreferenceMode.primary;c.PRIMARY_PREFERRED=kz.ReadPreferenceMode.primaryPreferred;c.SECONDARY=kz.ReadPreferenceMode.secondary;c.SECONDARY_PREFERRED=kz.ReadPreferenceMode.secondaryPreferred;c.NEAREST=kz.ReadPreferenceMode.nearest;c.primary=new c(kz.ReadPreferenceMode.primary);c.primaryPreferred=new c(kz.ReadPreferenceMode.primaryPreferred);c.secondary=new c(kz.ReadPreferenceMode.secondary);c.secondaryPreferred=new c(kz.ReadPreferenceMode.secondaryPreferred);c.nearest=new c(kz.ReadPreferenceMode.nearest);kz.ReadPreference=c});var d0=V((_z)=>{var Lk=function(J){J.forEach(Ak.clearTimeout),J.clear()},wk=function(J,Z){if(J.clusterTime==null)J.clusterTime=Z;else if(Z.clusterTime.greaterThan(J.clusterTime.clusterTime))J.clusterTime=Z};Object.defineProperty(_z,"__esModule",{value:!0});_z._advanceClusterTime=_z.drainTimerQueue=_z.ServerType=_z.TopologyType=_z.STATE_CONNECTED=_z.STATE_CONNECTING=_z.STATE_CLOSED=_z.STATE_CLOSING=void 0;var Ak=import.meta.require("timers");_z.STATE_CLOSING="closing";_z.STATE_CLOSED="closed";_z.STATE_CONNECTING="connecting";_z.STATE_CONNECTED="connected";_z.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"});_z.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"});_z.drainTimerQueue=Lk;_z._advanceClusterTime=wk});var T5=V((xz)=>{var Ck=function(){return(J,Z)=>yX(J,Z.filter(($)=>$.isWritable))},hk=function(J){return(Z,$)=>{if(!J)return[];return $.filter((X)=>{return X.address===J.address&&X.type!==E0.ServerType.Unknown})}},Sk=function(J,Z){if(!Z||!J||J&&J<xz.MIN_SECONDARY_WRITE_WIRE_VERSION)return _X(P5.ReadPreference.primary);return _X(Z)},Ok=function(J,Z,$){if(J.maxStalenessSeconds==null||J.maxStalenessSeconds<0)return $;const X=J.maxStalenessSeconds,Y=(Z.heartbeatFrequencyMS+Ek)/1000;if(X<Y)throw new LJ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${Y} seconds`);if(X<vz)throw new LJ.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${vz} seconds`);if(Z.type===E0.TopologyType.ReplicaSetWithPrimary){const Q=Array.from(Z.servers.values()).filter(AJ)[0];return $.reduce((K,G)=>{const q=(G.lastUpdateTime-G.lastWriteDate-(Q.lastUpdateTime-Q.lastWriteDate)+Z.heartbeatFrequencyMS)/1000,W=J.maxStalenessSeconds??0;if(q<=W)K.push(G);return K},[])}if(Z.type===E0.TopologyType.ReplicaSetNoPrimary){if($.length===0)return $;const Q=$.reduce((K,G)=>G.lastWriteDate>K.lastWriteDate?G:K);return $.reduce((K,G)=>{const q=(Q.lastWriteDate-G.lastWriteDate+Z.heartbeatFrequencyMS)/1000,W=J.maxStalenessSeconds??0;if(q<=W)K.push(G);return K},[])}return $},kk=function(J,Z){const $=Object.keys(J),X=Object.keys(Z);for(let Y=0;Y<$.length;++Y){const Q=$[Y];if(X.indexOf(Q)===-1||Z[Q]!==J[Q])return!1}return!0},yk=function(J,Z){if(J.tags==null||Array.isArray(J.tags)&&J.tags.length===0)return Z;for(let $=0;$<J.tags.length;++$){const X=J.tags[$],Y=Z.reduce((Q,K)=>{if(kk(X,K.tags))Q.push(K);return Q},[]);if(Y.length)return Y}return[]},yX=function(J,Z){const $=Z.reduce((Y,Q)=>Y===-1?Q.roundTripTime:Math.min(Q.roundTripTime,Y),-1),X=$+J.localThresholdMS;return Z.reduce((Y,Q)=>{if(Q.roundTripTime<=X&&Q.roundTripTime>=$)Y.push(Q);return Y},[])},AJ=function(J){return J.type===E0.ServerType.RSPrimary},_k=function(J){return J.type===E0.ServerType.RSSecondary},fk=function(J){return J.type===E0.ServerType.RSSecondary||J.type===E0.ServerType.RSPrimary},vk=function(J){return J.type!==E0.ServerType.Unknown},xk=function(J){return J.type===E0.ServerType.LoadBalancer},_X=function(J){if(!J.isValid())throw new LJ.MongoInvalidArgumentError("Invalid read preference specified");return(Z,$)=>{const X=Z.commonWireVersion;if(X&&J.minWireVersion&&J.minWireVersion>X)throw new LJ.MongoCompatibilityError(`Minimum wire version '${J.minWireVersion}' required, but found '${X}'`);if(Z.type===E0.TopologyType.LoadBalanced)return $.filter(xk);if(Z.type===E0.TopologyType.Unknown)return[];if(Z.type===E0.TopologyType.Single||Z.type===E0.TopologyType.Sharded)return yX(Z,$.filter(vk));const Y=J.mode;if(Y===P5.ReadPreference.PRIMARY)return $.filter(AJ);if(Y===P5.ReadPreference.PRIMARY_PREFERRED){const G=$.filter(AJ);if(G.length)return G}const Q=Y===P5.ReadPreference.NEAREST?fk:_k,K=yX(Z,yk(J,Ok(J,Z,$.filter(Q))));if(Y===P5.ReadPreference.SECONDARY_PREFERRED&&K.length===0)return $.filter(AJ);return K}};Object.defineProperty(xz,"__esModule",{value:!0});xz.readPreferenceServerSelector=xz.secondaryWritableServerSelector=xz.sameServerSelector=xz.writableServerSelector=xz.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;var LJ=E(),P5=k1(),E0=d0(),Ek=1e4,vz=90;xz.MIN_SECONDARY_WRITE_WIRE_VERSION=13;xz.writableServerSelector=Ck;xz.sameServerSelector=hk;xz.secondaryWritableServerSelector=Sk;xz.readPreferenceServerSelector=_X});var h8=V((mz)=>{Object.defineProperty(mz,"__esModule",{value:!0});mz.OP_MSG=mz.OP_COMPRESSED=mz.OP_DELETE=mz.OP_QUERY=mz.OP_INSERT=mz.OP_UPDATE=mz.OP_REPLY=mz.MIN_SUPPORTED_QE_SERVER_VERSION=mz.MIN_SUPPORTED_QE_WIRE_VERSION=mz.MAX_SUPPORTED_WIRE_VERSION=mz.MIN_SUPPORTED_WIRE_VERSION=mz.MAX_SUPPORTED_SERVER_VERSION=mz.MIN_SUPPORTED_SERVER_VERSION=void 0;mz.MIN_SUPPORTED_SERVER_VERSION="3.6";mz.MAX_SUPPORTED_SERVER_VERSION="7.0";mz.MIN_SUPPORTED_WIRE_VERSION=6;mz.MAX_SUPPORTED_WIRE_VERSION=21;mz.MIN_SUPPORTED_QE_WIRE_VERSION=21;mz.MIN_SUPPORTED_QE_SERVER_VERSION="7.0";mz.OP_REPLY=1;mz.OP_UPDATE=2001;mz.OP_INSERT=2002;mz.OP_QUERY=2004;mz.OP_DELETE=2006;mz.OP_COMPRESSED=2012;mz.OP_MSG=2013});var v1=V((dz)=>{Object.defineProperty(dz,"__esModule",{value:!0});dz.TOPOLOGY_EVENTS=dz.CMAP_EVENTS=dz.HEARTBEAT_EVENTS=dz.RESUME_TOKEN_CHANGED=dz.END=dz.CHANGE=dz.INIT=dz.MORE=dz.RESPONSE=dz.SERVER_HEARTBEAT_FAILED=dz.SERVER_HEARTBEAT_SUCCEEDED=dz.SERVER_HEARTBEAT_STARTED=dz.COMMAND_FAILED=dz.COMMAND_SUCCEEDED=dz.COMMAND_STARTED=dz.CLUSTER_TIME_RECEIVED=dz.CONNECTION_CHECKED_IN=dz.CONNECTION_CHECKED_OUT=dz.CONNECTION_CHECK_OUT_FAILED=dz.CONNECTION_CHECK_OUT_STARTED=dz.CONNECTION_CLOSED=dz.CONNECTION_READY=dz.CONNECTION_CREATED=dz.CONNECTION_POOL_READY=dz.CONNECTION_POOL_CLEARED=dz.CONNECTION_POOL_CLOSED=dz.CONNECTION_POOL_CREATED=dz.TOPOLOGY_DESCRIPTION_CHANGED=dz.TOPOLOGY_CLOSED=dz.TOPOLOGY_OPENING=dz.SERVER_DESCRIPTION_CHANGED=dz.SERVER_CLOSED=dz.SERVER_OPENING=dz.DESCRIPTION_RECEIVED=dz.UNPINNED=dz.PINNED=dz.MESSAGE=dz.ENDED=dz.CLOSED=dz.CONNECT=dz.OPEN=dz.CLOSE=dz.TIMEOUT=dz.ERROR=dz.SYSTEM_JS_COLLECTION=dz.SYSTEM_COMMAND_COLLECTION=dz.SYSTEM_USER_COLLECTION=dz.SYSTEM_PROFILE_COLLECTION=dz.SYSTEM_INDEX_COLLECTION=dz.SYSTEM_NAMESPACE_COLLECTION=void 0;dz.LEGACY_HELLO_COMMAND_CAMEL_CASE=dz.LEGACY_HELLO_COMMAND=dz.MONGO_CLIENT_EVENTS=dz.LOCAL_SERVER_EVENTS=dz.SERVER_RELAY_EVENTS=dz.APM_EVENTS=void 0;dz.SYSTEM_NAMESPACE_COLLECTION="system.namespaces";dz.SYSTEM_INDEX_COLLECTION="system.indexes";dz.SYSTEM_PROFILE_COLLECTION="system.profile";dz.SYSTEM_USER_COLLECTION="system.users";dz.SYSTEM_COMMAND_COLLECTION="$cmd";dz.SYSTEM_JS_COLLECTION="system.js";dz.ERROR="error";dz.TIMEOUT="timeout";dz.CLOSE="close";dz.OPEN="open";dz.CONNECT="connect";dz.CLOSED="closed";dz.ENDED="ended";dz.MESSAGE="message";dz.PINNED="pinned";dz.UNPINNED="unpinned";dz.DESCRIPTION_RECEIVED="descriptionReceived";dz.SERVER_OPENING="serverOpening";dz.SERVER_CLOSED="serverClosed";dz.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged";dz.TOPOLOGY_OPENING="topologyOpening";dz.TOPOLOGY_CLOSED="topologyClosed";dz.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged";dz.CONNECTION_POOL_CREATED="connectionPoolCreated";dz.CONNECTION_POOL_CLOSED="connectionPoolClosed";dz.CONNECTION_POOL_CLEARED="connectionPoolCleared";dz.CONNECTION_POOL_READY="connectionPoolReady";dz.CONNECTION_CREATED="connectionCreated";dz.CONNECTION_READY="connectionReady";dz.CONNECTION_CLOSED="connectionClosed";dz.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted";dz.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed";dz.CONNECTION_CHECKED_OUT="connectionCheckedOut";dz.CONNECTION_CHECKED_IN="connectionCheckedIn";dz.CLUSTER_TIME_RECEIVED="clusterTimeReceived";dz.COMMAND_STARTED="commandStarted";dz.COMMAND_SUCCEEDED="commandSucceeded";dz.COMMAND_FAILED="commandFailed";dz.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted";dz.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded";dz.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed";dz.RESPONSE="response";dz.MORE="more";dz.INIT="init";dz.CHANGE="change";dz.END="end";dz.RESUME_TOKEN_CHANGED="resumeTokenChanged";dz.HEARTBEAT_EVENTS=Object.freeze([dz.SERVER_HEARTBEAT_STARTED,dz.SERVER_HEARTBEAT_SUCCEEDED,dz.SERVER_HEARTBEAT_FAILED]);dz.CMAP_EVENTS=Object.freeze([dz.CONNECTION_POOL_CREATED,dz.CONNECTION_POOL_READY,dz.CONNECTION_POOL_CLEARED,dz.CONNECTION_POOL_CLOSED,dz.CONNECTION_CREATED,dz.CONNECTION_READY,dz.CONNECTION_CLOSED,dz.CONNECTION_CHECK_OUT_STARTED,dz.CONNECTION_CHECK_OUT_FAILED,dz.CONNECTION_CHECKED_OUT,dz.CONNECTION_CHECKED_IN]);dz.TOPOLOGY_EVENTS=Object.freeze([dz.SERVER_OPENING,dz.SERVER_CLOSED,dz.SERVER_DESCRIPTION_CHANGED,dz.TOPOLOGY_OPENING,dz.TOPOLOGY_CLOSED,dz.TOPOLOGY_DESCRIPTION_CHANGED,dz.ERROR,dz.TIMEOUT,dz.CLOSE]);dz.APM_EVENTS=Object.freeze([dz.COMMAND_STARTED,dz.COMMAND_SUCCEEDED,dz.COMMAND_FAILED]);dz.SERVER_RELAY_EVENTS=Object.freeze([dz.SERVER_HEARTBEAT_STARTED,dz.SERVER_HEARTBEAT_SUCCEEDED,dz.SERVER_HEARTBEAT_FAILED,dz.COMMAND_STARTED,dz.COMMAND_SUCCEEDED,dz.COMMAND_FAILED,...dz.CMAP_EVENTS]);dz.LOCAL_SERVER_EVENTS=Object.freeze([dz.CONNECT,dz.DESCRIPTION_RECEIVED,dz.CLOSED,dz.ENDED]);dz.MONGO_CLIENT_EVENTS=Object.freeze([...dz.CMAP_EVENTS,...dz.APM_EVENTS,...dz.TOPOLOGY_EVENTS,...dz.HEARTBEAT_EVENTS]);dz.LEGACY_HELLO_COMMAND="ismaster";dz.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"});var c0=V((jU)=>{Object.defineProperty(jU,"__esModule",{value:!0});jU.ReadConcern=jU.ReadConcernLevel=void 0;jU.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class Z7{constructor(J){this.level=jU.ReadConcernLevel[J]??J}static fromOptions(J){if(J==null)return;if(J.readConcern){const{readConcern:Z}=J;if(Z instanceof Z7)return Z;else if(typeof Z==="string")return new Z7(Z);else if("level"in Z&&Z.level)return new Z7(Z.level)}if(J.level)return new Z7(J.level);return}static get MAJORITY(){return jU.ReadConcernLevel.majority}static get AVAILABLE(){return jU.ReadConcernLevel.available}static get LINEARIZABLE(){return jU.ReadConcernLevel.linearizable}static get SNAPSHOT(){return jU.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}jU.ReadConcern=Z7});var A0=V((LU)=>{Object.defineProperty(LU,"__esModule",{value:!0});LU.WriteConcern=LU.WRITE_CONCERN_KEYS=void 0;LU.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class I5{constructor(J,Z,$,X){if(J!=null)if(!Number.isNaN(Number(J)))this.w=Number(J);else this.w=J;if(Z!=null)this.wtimeoutMS=this.wtimeout=Z;if($!=null)this.journal=this.j=$;if(X!=null)this.journal=this.j=X?!0:!1}static apply(J,Z){const $={};if(Z.w!=null)$.w=Z.w;if(Z.wtimeoutMS!=null)$.wtimeout=Z.wtimeoutMS;if(Z.journal!=null)$.j=Z.j;return J.writeConcern=$,J}static fromOptions(J,Z){if(J==null)return;Z=Z??{};let $;if(typeof J==="string"||typeof J==="number")$={w:J};else if(J instanceof I5)$=J;else $=J.writeConcern;const X=Z instanceof I5?Z:Z.writeConcern,{w:Y=void 0,wtimeout:Q=void 0,j:K=void 0,fsync:G=void 0,journal:F=void 0,wtimeoutMS:q=void 0}={...X,...$};if(Y!=null||Q!=null||q!=null||K!=null||F!=null||G!=null)return new I5(Y,Q??q,K??F,G);return}}LU.WriteConcern=I5});var y=V((kU)=>{var Oy=function(J,Z){for(let $ of Z)if(J===$||$.startsWith("*.")&&J?.endsWith($.substring(2,$.length))||$.startsWith("*/")&&J?.endsWith($.substring(2,$.length)))return!0;return!1},ky=function(J){let Z=void 0;if(typeof J==="string")Z=J;else if(Array.isArray(J))Z={},J.forEach(($)=>{Z[$]=1});else if(J!=null&&typeof J==="object"){Z={};for(let $ in J)Z[$]=J[$]}return Z},cX=function(J){return yy(J)==="[object Object]"},_y=function(J,Z){return{...J,...Z}},fy=function(J,Z){const $={};for(let X in J)if(Z.includes(X))$[X]=J[X];return $},vy=function(J,Z){if(Z&&Z.s.options?.retryWrites)J.retryWrites=!0;return J},xy=function(J){return!!J&&typeof J.then==="function"},by=function(J,Z,$){const X=TU(Z).capabilities;if($.collation&&typeof $.collation==="object")if(X&&X.commandsTakeCollation)J.collation=$.collation;else throw new G6.MongoCompatibilityError("Current topology does not support collation")},gy=function(J,Z,$){if($&&$.session&&$.session.inTransaction())return;const X=Object.assign({},J.readConcern||{});if(Z.s.readConcern)Object.assign(X,Z.s.readConcern);if(Object.keys(X).length>0)Object.assign(J,{readConcern:X})},my=function(J,Z){if(J.explain)return J;return{explain:J,verbosity:Z.verbosity}},TU=function(J){if("topology"in J&&J.topology)return J.topology;else if("client"in J&&J.client.topology)return J.client.topology;throw new G6.MongoNotConnectedError("MongoClient must be connected to perform this operation")},uy=function(J){return E5.fromString(J)};function*dy(J=0){let Z=J;while(!0){const $=Z;Z+=1,yield $}}var cy=function(J,Z){const $=J();if(Z==null)return $;$.then((X)=>Z(void 0,X),(X)=>Z(X));return},py=function(){const J=Dy.randomBytes(16);return J[6]=J[6]&15|64,J[8]=J[8]&63|128,J},ly=function(J){if(J){if(J.loadBalanced)return Ny.MAX_SUPPORTED_WIRE_VERSION;if(J.hello)return J.hello.maxWireVersion;if("lastHello"in J&&typeof J.lastHello==="function"){const Z=J.lastHello();if(Z)return Z.maxWireVersion}if(J.description&&"maxWireVersion"in J.description&&J.description.maxWireVersion!=null)return J.description.maxWireVersion}return 0},ay=function(J,Z,$){J=J||[];let X=0,Y=0;for(X=0;X<J.length;++X)Y++,Z(J[X],Q);if(Y===0){$();return}function Q(K){if(Y--,K){$(K);return}if(X===J.length&&Y<=0)$()}},iy=function(J,Z){if(!Array.isArray(J)||!Array.isArray(Z))return!1;return J.length===Z.length&&J.every(($,X)=>$===Z[X])},sy=function(J,Z){if(J===Z)return!0;if(!J||!Z)return J===Z;if(J==null&&Z!=null||J!=null&&Z==null)return!1;if(J.constructor.name!==Z.constructor.name)return!1;if(J.message!==Z.message)return!1;return!0},ny=function(J){return function Z($,X){const Y=J[$.s.state];if(Y&&Y.indexOf(X)<0)throw new G6.MongoRuntimeError(`illegal state transition from [${$.s.state}] => [${X}], allowed: [${Y}]`);$.emit("stateChanged",$.s.state,X),$.s.state=X}},IU=function(){const J=process.hrtime();return Math.floor(J[0]*1000+J[1]/1e6)},ty=function(J){if(typeof J!=="number")throw new G6.MongoInvalidArgumentError("Numeric value required to calculate duration");const Z=IU()-J;return Z<0?0:Z},NU=function(J){if(Array.isArray(J)){for(let $ of J)if(NU($))return!0;return!1}const Z=Object.keys(J);return Z.length>0&&Z[0][0]==="$"},ry=function(J,Z){const $=Object.assign({},Z,PU.resolveBSONOptions(Z,J));if(!Z?.session?.inTransaction()){const Q=Ey.ReadConcern.fromOptions(Z)??J?.readConcern;if(Q)$.readConcern=Q;const K=Sy.WriteConcern.fromOptions(Z)??J?.writeConcern;if(K)$.writeConcern=K}const Y=Cy.ReadPreference.fromOptions(Z)??J?.readPreference;if(Y)$.readPreference=Y;return $},BU=function(J,Z){J=Array.isArray(J)?new Set(J):J,Z=Array.isArray(Z)?new Set(Z):Z;for(let $ of Z)if(!J.has($))return!1;return!0},oy=function(J){return J[By.LEGACY_HELLO_COMMAND]||J.hello?!0:!1},ey=function(J,Z){const $=new Set(J);for(let X of Z)$.delete(X);return $},EU=function(J,Z=void 0){if(!cX(J))return!1;const $=J.constructor;if($&&$.prototype){if(!cX($.prototype))return!1;if(!J_($.prototype,"isPrototypeOf"))return!1}if(Z){const X=Object.keys(J);return BU(X,Z)}return!0},pX=function(J){if(J==null)return J;else if(Array.isArray(J))return J.map(($)=>pX($));else if(EU(J)){const $={};for(let X in J)$[X]=pX(J[X]);return $}const Z=J.constructor;if(Z)switch(Z.name.toLowerCase()){case"date":return new Z(Number(J));case"map":return new Map(J);case"set":return new Set(J);case"buffer":return Buffer.from(J)}return J},hU=function(J){return process.emitWarning(J,{code:kU.MONGODB_WARNING_CODE})},Z_=function(J){if(!DU.has(J))return DU.add(J),hU(J)},$_=function(J){return Object.values(J).join(", ")},X_=function(J){if(!J)return!1;if(J.loadBalanced)return!0;if(J.description.logicalSessionTimeoutMinutes!=null){if(J.description.type!==hy.ServerType.Standalone)return!0}return!1},Y_=function(J,Z=0){const $=Array.from(J);if(Z>$.length)throw new G6.MongoRuntimeError("Limit must be less than the number of items");let X=$.length;const Y=Z%$.length===0?1:$.length-Z;while(X>Y){const Q=Math.floor(Math.random()*X);X-=1;const K=$[X];$[X]=$[Q],$[Q]=K}return Z%$.length===0?$:$.slice(Y)},Q_=function(J){if(J.aggregate||J.count||J.distinct||J.find||J.geoNear)return!0;return!1},K_=function(J,Z){if(J==null&&Z==null)return 0;if(J==null)return-1;if(Z==null)return 1;return kU.ByteUtils.compare(J.id,Z.id)},SU=function(J){if(typeof J==="number")return Math.trunc(J);const Z=Number.parseInt(String(J),10);return Number.isNaN(Z)?null:Z},G_=function(J){const Z=SU(J);return Z!=null&&Z>=0?Z:null},F_=function(J,Z){const $=J.endsWith(".")?J.slice(0,J.length-1):J,X=Z.endsWith(".")?Z.slice(0,Z.length-1):Z,Y=/^.*?\./,Q=`.${$.replace(Y,"")}`,K=`.${X.replace(Y,"")}`;return Q.endsWith(K)};async function q_(J,Z={}){return new Promise(($,X)=>{const Y={method:"GET",timeout:1e4,json:!0,...Ty.parse(J),...Z},Q=Py.request(Y,(K)=>{K.setEncoding("utf8");let G="";K.on("data",(F)=>{G+=F}),K.once("end",()=>{if(Z.json===!1){$(G);return}try{const F=JSON.parse(G);$(F)}catch{X(new G6.MongoRuntimeError(`Invalid JSON response: "${G}"`))}})});Q.once("timeout",()=>Q.destroy(new G6.MongoNetworkTimeoutError(`Network request to ${J} timed out after ${Z.timeout} ms`))),Q.once("error",(K)=>X(K)),Q.end()})}var W_=function(J,Z){return Z&&J.test(Z.toLowerCase())?!0:!1};Object.defineProperty(kU,"__esModule",{value:!0});kU.DOCUMENT_DB_CHECK=kU.TimeoutController=kU.request=kU.matchesParentDomain=kU.parseUnsignedInteger=kU.parseInteger=kU.compareObjectId=kU.commandSupportsReadConcern=kU.shuffle=kU.supportsRetryableWrites=kU.enumToString=kU.emitWarningOnce=kU.emitWarning=kU.MONGODB_WARNING_CODE=kU.DEFAULT_PK_FACTORY=kU.HostAddress=kU.BufferPool=kU.List=kU.deepCopy=kU.isRecord=kU.setDifference=kU.isHello=kU.isSuperset=kU.resolveOptions=kU.hasAtomicOperators=kU.calculateDurationInMs=kU.now=kU.makeStateMachine=kU.errorStrictEqual=kU.arrayStrictEqual=kU.eachAsync=kU.maxWireVersion=kU.uuidV4=kU.maybeCallback=kU.makeCounter=kU.MongoDBCollectionNamespace=kU.MongoDBNamespace=kU.ns=kU.getTopology=kU.decorateWithExplain=kU.decorateWithReadConcern=kU.decorateWithCollation=kU.isPromiseLike=kU.applyRetryableWrites=kU.filterOptions=kU.mergeOptions=kU.isObject=kU.normalizeHintField=kU.hostMatchesWildcards=kU.ByteUtils=void 0;kU.isHostMatch=kU.COSMOS_DB_MSG=kU.DOCUMENT_DB_MSG=kU.COSMOS_DB_CHECK=void 0;var Dy=import.meta.require("crypto"),Py=import.meta.require("http"),RU=import.meta.require("timers"),Ty=import.meta.require("url"),Iy=import.meta.require("url"),PU=H1(),Ny=h8(),By=v1(),G6=E(),Ey=c0(),Cy=k1(),hy=d0(),Sy=A0();kU.ByteUtils={toLocalBufferType(J){return Buffer.isBuffer(J)?J:Buffer.from(J.buffer,J.byteOffset,J.byteLength)},equals(J,Z){return kU.ByteUtils.toLocalBufferType(J).equals(Z)},compare(J,Z){return kU.ByteUtils.toLocalBufferType(J).compare(Z)},toBase64(J){return kU.ByteUtils.toLocalBufferType(J).toString("base64")}};kU.hostMatchesWildcards=Oy;kU.normalizeHintField=ky;var yy=(J)=>Object.prototype.toString.call(J);kU.isObject=cX;kU.mergeOptions=_y;kU.filterOptions=fy;kU.applyRetryableWrites=vy;kU.isPromiseLike=xy;kU.decorateWithCollation=by;kU.decorateWithReadConcern=gy;kU.decorateWithExplain=my;kU.getTopology=TU;kU.ns=uy;class E5{constructor(J,Z){this.db=J,this.collection=Z,this.collection=Z===""?void 0:Z}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(J){return new lX(this.db,J)}static fromString(J){if(typeof J!=="string"||J==="")throw new G6.MongoRuntimeError(`Cannot parse namespace from "${J}"`);const[Z,...$]=J.split("."),X=$.join(".");return new E5(Z,X===""?void 0:X)}}kU.MongoDBNamespace=E5;class lX extends E5{constructor(J,Z){super(J,Z);this.collection=Z}static fromString(J){return super.fromString(J)}}kU.MongoDBCollectionNamespace=lX;kU.makeCounter=dy;kU.maybeCallback=cy;kU.uuidV4=py;kU.maxWireVersion=ly;kU.eachAsync=ay;kU.arrayStrictEqual=iy;kU.errorStrictEqual=sy;kU.makeStateMachine=ny;kU.now=IU;kU.calculateDurationInMs=ty;kU.hasAtomicOperators=NU;kU.resolveOptions=ry;kU.isSuperset=BU;kU.isHello=oy;kU.setDifference=ey;var J_=(J,Z)=>Object.prototype.hasOwnProperty.call(J,Z);kU.isRecord=EU;kU.deepCopy=pX;class aX{get length(){return this.count}get[Symbol.toStringTag](){return"List"}constructor(){this.count=0,this.head={next:null,prev:null,value:null},this.head.next=this.head,this.head.prev=this.head}toArray(){return Array.from(this)}toString(){return`head <=> ${this.toArray().join(" <=> ")} <=> head`}*[Symbol.iterator](){for(let J of this.nodes())yield J.value}*nodes(){let J=this.head.next;while(J!==this.head){const{next:Z}=J;yield J,J=Z}}push(J){this.count+=1;const Z={next:this.head,prev:this.head.prev,value:J};this.head.prev.next=Z,this.head.prev=Z}pushMany(J){for(let Z of J)this.push(Z)}unshift(J){this.count+=1;const Z={next:this.head.next,prev:this.head,value:J};this.head.next.prev=Z,this.head.next=Z}remove(J){if(J===this.head||this.length===0)return null;this.count-=1;const{prev:Z,next:$}=J;return Z.next=$,$.prev=Z,J.value}shift(){return this.remove(this.head.next)}pop(){return this.remove(this.head.prev)}prune(J){for(let Z of this.nodes())if(J(Z.value))this.remove(Z)}clear(){this.count=0,this.head.next=this.head,this.head.prev=this.head}first(){return this.head.next.value}last(){return this.head.prev.value}}kU.List=aX;class CU{constructor(){this.buffers=new aX,this.totalByteLength=0}get length(){return this.totalByteLength}append(J){this.buffers.push(J),this.totalByteLength+=J.length}getInt32(){if(this.totalByteLength<4)return null;const J=this.buffers.first();if(J!=null&&J.byteLength>=4)return J.readInt32LE(0);const Z=this.read(4),$=Z.readInt32LE(0);return this.totalByteLength+=4,this.buffers.unshift(Z),$}read(J){if(typeof J!=="number"||J<0)throw new G6.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(J>this.totalByteLength)return Buffer.alloc(0);const Z=Buffer.allocUnsafe(J);for(let $=0;$<J;){const X=this.buffers.shift();if(X==null)break;const Y=J-$,Q=Math.min(Y,X.byteLength),K=X.subarray(0,Q);if(Z.set(K,$),$+=Q,this.totalByteLength-=Q,Q<X.byteLength)this.buffers.unshift(X.subarray(Q))}return Z}}kU.BufferPool=CU;class B5{constructor(J){this.host=void 0,this.port=void 0,this.socketPath=void 0,this.isIPv6=!1;const Z=J.split(" ").join("%20");if(Z.endsWith(".sock")){this.socketPath=decodeURIComponent(Z);return}const $=`iLoveJS://${Z}`;let X;try{X=new Iy.URL($)}catch(G){const F=new G6.MongoRuntimeError(`Unable to parse ${Z} with URL`);throw F.cause=G,F}const{hostname:Y,port:Q}=X;let K=decodeURIComponent(Y).toLowerCase();if(K.startsWith("[")&&K.endsWith("]"))this.isIPv6=!0,K=K.substring(1,Y.length-1);if(this.host=K.toLowerCase(),typeof Q==="number")this.port=Q;else if(typeof Q==="string"&&Q!=="")this.port=Number.parseInt(Q,10);else this.port=27017;if(this.port===0)throw new G6.MongoParseError("Invalid port (zero) with hostname");Object.freeze(this)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new HostAddress('${this.toString()}')`}toString(){if(typeof this.host==="string"){if(this.isIPv6)return`[${this.host}]:${this.port}`;return`${this.host}:${this.port}`}return`${this.socketPath}`}static fromString(J){return new B5(J)}static fromHostPort(J,Z){if(J.includes(":"))J=`[${J}]`;return B5.fromString(`${J}:${Z}`)}static fromSrvRecord({name:J,port:Z}){return B5.fromHostPort(J,Z)}toHostPort(){if(this.socketPath)return{host:this.socketPath,port:0};const J=this.host??"",Z=this.port??0;return{host:J,port:Z}}}kU.HostAddress=B5;kU.DEFAULT_PK_FACTORY={createPk(){return new PU.ObjectId}};kU.MONGODB_WARNING_CODE="MONGODB DRIVER";kU.emitWarning=hU;var DU=new Set;kU.emitWarningOnce=Z_;kU.enumToString=$_;kU.supportsRetryableWrites=X_;kU.shuffle=Y_;kU.commandSupportsReadConcern=Q_;kU.compareObjectId=K_;kU.parseInteger=SU;kU.parseUnsignedInteger=G_;kU.matchesParentDomain=F_;kU.request=q_;class OU extends AbortController{constructor(J=0,Z=J>0?RU.setTimeout(()=>this.abort(),J):null){super();this.timeoutId=Z}clear(){if(this.timeoutId!=null)RU.clearTimeout(this.timeoutId);this.timeoutId=null}}kU.TimeoutController=OU;kU.DOCUMENT_DB_CHECK=/(\.docdb\.amazonaws\.com$)|(\.docdb-elastic\.amazonaws\.com$)/;kU.COSMOS_DB_CHECK=/\.cosmos\.azure\.com$/;kU.DOCUMENT_DB_MSG="You appear to be connected to a DocumentDB cluster. For more information regarding feature compatibility and support please visit https://www.mongodb.com/supportability/documentdb";kU.COSMOS_DB_MSG="You appear to be connected to a CosmosDB cluster. For more information regarding feature compatibility and support please visit https://www.mongodb.com/supportability/cosmosdb";kU.isHostMatch=W_});var o=V((xU)=>{var Ff=function(J,Z){if(!Array.isArray(Z)&&!(Z instanceof Set))Z=[Z];return Z=new Set(Z),Object.defineProperty(J,"aspects",{value:Z,writable:!1}),Z};Object.defineProperty(xU,"__esModule",{value:!0});xU.defineAspects=xU.AbstractOperation=xU.Aspect=void 0;var Gf=H1(),iX=k1();xU.Aspect={READ_OPERATION:Symbol("READ_OPERATION"),WRITE_OPERATION:Symbol("WRITE_OPERATION"),RETRYABLE:Symbol("RETRYABLE"),EXPLAINABLE:Symbol("EXPLAINABLE"),SKIP_COLLATION:Symbol("SKIP_COLLATION"),CURSOR_CREATING:Symbol("CURSOR_CREATING"),MUST_SELECT_SAME_SERVER:Symbol("MUST_SELECT_SAME_SERVER")};var sX=Symbol("session");class vU{constructor(J={}){this.readPreference=this.hasAspect(xU.Aspect.WRITE_OPERATION)?iX.ReadPreference.primary:iX.ReadPreference.fromOptions(J)??iX.ReadPreference.primary,this.bsonOptions=Gf.resolveBSONOptions(J),this[sX]=J.session!=null?J.session:void 0,this.options=J,this.bypassPinningCheck=!!J.bypassPinningCheck,this.trySecondaryWrite=!1}hasAspect(J){const Z=this.constructor;if(Z.aspects==null)return!1;return Z.aspects.has(J)}get session(){return this[sX]}clearSession(){this[sX]=void 0}get canRetryRead(){return!0}get canRetryWrite(){return!0}}xU.AbstractOperation=vU;xU.defineAspects=Ff});var L0=V((cU)=>{var Hf=function(J,Z,$){return nX.maybeCallback(()=>Vf(J,Z),$)};async function Vf(J,Z){if(!(Z instanceof S8.AbstractOperation))throw new t1.MongoRuntimeError("This method requires a valid operation instance");if(J.topology==null){if(J.s.hasBeenClosed)throw new t1.MongoNotConnectedError("Client must be connected before running operations");J.s.options[Symbol.for("@@mdb.skipPingOnConnect")]=!0;try{await J.connect()}finally{delete J.s.options[Symbol.for("@@mdb.skipPingOnConnect")]}}const{topology:$}=J;if($==null)throw new t1.MongoRuntimeError("client.connect did not create a topology but also did not throw");let X=Z.session,Y;if(X==null)Y=Symbol(),X=J.startSession({owner:Y,explicit:!1});else if(X.hasEnded)throw new t1.MongoExpiredSessionError("Use of expired sessions is not permitted");else if(X.snapshotEnabled&&!$.capabilities.supportsSnapshotReads)throw new t1.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later");else if(X.client!==J)throw new t1.MongoInvalidArgumentError("ClientSession must be from the same MongoClient");const Q=Z.readPreference??mU.ReadPreference.primary,K=!!X?.inTransaction();if(K&&!Q.equals(mU.ReadPreference.primary))throw new t1.MongoTransactionError(`Read preference in a transaction must be primary, not: ${Q.mode}`);if(X?.isPinned&&X.transaction.isCommitted&&!Z.bypassPinningCheck)X.unpin();let G;if(Z.hasAspect(S8.Aspect.MUST_SELECT_SAME_SERVER))G=uU.sameServerSelector(Z.server?.description);else if(Z.trySecondaryWrite)G=uU.secondaryWritableServerSelector($.commonWireVersion,Q);else G=Q;const F=await $.selectServerAsync(G,{session:X});if(X==null)return Z.execute(F,void 0);if(!Z.hasAspect(S8.Aspect.RETRYABLE))try{return await Z.execute(F,X)}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}const q=$.s.options.retryReads&&!K&&Z.canRetryRead,W=$.s.options.retryWrites&&!K&&nX.supportsRetryableWrites(F)&&Z.canRetryWrite,H=Z.hasAspect(S8.Aspect.READ_OPERATION),U=Z.hasAspect(S8.Aspect.WRITE_OPERATION),j=H&&q||U&&W;if(U&&W)Z.options.willRetryWrite=!0,X.incrementTransactionNumber();try{return await Z.execute(F,X)}catch(z){if(j&&z instanceof t1.MongoError)return await zf(Z,z,{session:X,topology:$,selector:G});throw z}finally{if(X?.owner!=null&&X.owner===Y)await X.endSession().catch(()=>null)}}async function zf(J,Z,{session:$,topology:X,selector:Y}){const Q=J.hasAspect(S8.Aspect.WRITE_OPERATION),K=J.hasAspect(S8.Aspect.READ_OPERATION);if(Q&&Z.code===Wf)throw new t1.MongoServerError({message:dU,errmsg:dU,originalError:Z});if(Q&&!t1.isRetryableWriteError(Z))throw Z;if(K&&!t1.isRetryableReadError(Z))throw Z;if(Z instanceof t1.MongoNetworkError&&$.isPinned&&!$.inTransaction()&&J.hasAspect(S8.Aspect.CURSOR_CREATING))$.unpin({force:!0,forceClear:!0});const G=await X.selectServerAsync(Y,{session:$});if(Q&&!nX.supportsRetryableWrites(G))throw new t1.MongoUnexpectedServerResponseError("Selected server does not support retryable writes");try{return await J.execute(G,$)}catch(F){if(F instanceof t1.MongoError&&F.hasErrorLabel(t1.MongoErrorLabel.NoWritesPerformed))throw Z;throw F}}Object.defineProperty(cU,"__esModule",{value:!0});cU.executeOperation=void 0;var t1=E(),mU=k1(),uU=T5(),nX=y(),S8=o(),Wf=t1.MONGODB_ERROR_CODES.IllegalOperation,dU="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";cU.executeOperation=Hf});var oX=V((lU)=>{Object.defineProperty(lU,"__esModule",{value:!0});lU.Explain=lU.ExplainVerbosity=void 0;var Uf=E();lU.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class rX{constructor(J){if(typeof J==="boolean")this.verbosity=J?lU.ExplainVerbosity.allPlansExecution:lU.ExplainVerbosity.queryPlanner;else this.verbosity=J}static fromOptions(J){if(J?.explain==null)return;const Z=J.explain;if(typeof Z==="boolean"||typeof Z==="string")return new rX(Z);throw new Uf.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}lU.Explain=rX});var T1=V((nU)=>{Object.defineProperty(nU,"__esModule",{value:!0});nU.CommandOperation=void 0;var Mf=E(),jf=oX(),Af=c0(),Lf=T5(),C5=y(),iU=A0(),$7=o();class sU extends $7.AbstractOperation{constructor(J,Z){super(Z);this.options=Z??{};const $=Z?.dbName||Z?.authdb;if($)this.ns=new C5.MongoDBNamespace($,"$cmd");else this.ns=J?J.s.namespace.withCollection("$cmd"):new C5.MongoDBNamespace("admin","$cmd");if(this.readConcern=Af.ReadConcern.fromOptions(Z),this.writeConcern=iU.WriteConcern.fromOptions(Z),this.hasAspect($7.Aspect.EXPLAINABLE))this.explain=jf.Explain.fromOptions(Z);else if(Z?.explain!=null)throw new Mf.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){if(this.hasAspect($7.Aspect.EXPLAINABLE))return this.explain==null;return!0}async executeCommand(J,Z,$){this.server=J;const X={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:Z},Y=C5.maxWireVersion(J),Q=this.session&&this.session.inTransaction();if(this.readConcern&&C5.commandSupportsReadConcern($)&&!Q)Object.assign($,{readConcern:this.readConcern});if(this.trySecondaryWrite&&Y<Lf.MIN_SECONDARY_WRITE_WIRE_VERSION)X.omitReadPreference=!0;if(this.writeConcern&&this.hasAspect($7.Aspect.WRITE_OPERATION)&&!Q)iU.WriteConcern.apply($,this.writeConcern);if(X.collation&&typeof X.collation==="object"&&!this.hasAspect($7.Aspect.SKIP_COLLATION))Object.assign($,{collation:X.collation});if(typeof X.maxTimeMS==="number")$.maxTimeMS=X.maxTimeMS;if(this.hasAspect($7.Aspect.EXPLAINABLE)&&this.explain)$=C5.decorateWithExplain($,this.explain);return J.commandAsync(this.ns,$,X)}}nU.CommandOperation=sU});var JM=V((oU)=>{Object.defineProperty(oU,"__esModule",{value:!0});oU.ListDatabasesOperation=void 0;var rU=y(),wf=T1(),eX=o();class J3 extends wf.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z??{},this.ns=new rU.MongoDBNamespace("admin","$cmd")}async execute(J,Z){const $={listDatabases:1};if(typeof this.options.nameOnly==="boolean")$.nameOnly=this.options.nameOnly;if(this.options.filter)$.filter=this.options.filter;if(typeof this.options.authorizedDatabases==="boolean")$.authorizedDatabases=this.options.authorizedDatabases;if(rU.maxWireVersion(J)>=9&&this.options.comment!==void 0)$.comment=this.options.comment;return super.executeCommand(J,Z,$)}}oU.ListDatabasesOperation=J3;eX.defineAspects(J3,[eX.Aspect.READ_OPERATION,eX.Aspect.RETRYABLE])});var $3=V(($M)=>{Object.defineProperty($M,"__esModule",{value:!0});$M.RemoveUserOperation=void 0;var Rf=T1(),ZM=o();class Z3 extends Rf.CommandOperation{constructor(J,Z,$){super(J,$);this.options=$,this.username=Z}async execute(J,Z){return await super.executeCommand(J,Z,{dropUser:this.username}),!0}}$M.RemoveUserOperation=Z3;ZM.defineAspects(Z3,[ZM.Aspect.WRITE_OPERATION])});var X7=V((GM)=>{Object.defineProperty(GM,"__esModule",{value:!0});GM.RunAdminCommandOperation=GM.RunCommandOperation=void 0;var Df=y(),YM=o();class QM extends YM.AbstractOperation{constructor(J,Z,$){super($);this.command=Z,this.options=$,this.ns=J.s.namespace.withCollection("$cmd")}async execute(J,Z){return this.server=J,J.commandAsync(this.ns,this.command,{...this.options,readPreference:this.readPreference,session:Z})}}GM.RunCommandOperation=QM;class KM extends YM.AbstractOperation{constructor(J,Z){super(Z);this.command=J,this.options=Z,this.ns=new Df.MongoDBNamespace("admin","$cmd")}async execute(J,Z){return this.server=J,J.commandAsync(this.ns,this.command,{...this.options,readPreference:this.readPreference,session:Z})}}GM.RunAdminCommandOperation=KM});var VM=V((WM)=>{Object.defineProperty(WM,"__esModule",{value:!0});WM.ValidateCollectionOperation=void 0;var X3=E(),Tf=T1();class qM extends Tf.CommandOperation{constructor(J,Z,$){const X={validate:Z},Y=Object.keys($);for(let Q=0;Q<Y.length;Q++)if(Object.prototype.hasOwnProperty.call($,Y[Q])&&Y[Q]!=="session")X[Y[Q]]=$[Y[Q]];super(J.s.db,$);this.options=$,this.command=X,this.collectionName=Z}async execute(J,Z){const $=this.collectionName,X=await super.executeCommand(J,Z,this.command);if(X.result!=null&&typeof X.result!=="string")throw new X3.MongoUnexpectedServerResponseError("Error with validation data");if(X.result!=null&&X.result.match(/exception|corrupt/)!=null)throw new X3.MongoUnexpectedServerResponseError(`Invalid collection ${$}`);if(X.valid!=null&&!X.valid)throw new X3.MongoUnexpectedServerResponseError(`Invalid collection ${$}`);return X}}WM.ValidateCollectionOperation=qM});var Y3=V((UM)=>{Object.defineProperty(UM,"__esModule",{value:!0});UM.Admin=void 0;var If=H1(),wJ=L0(),Nf=JM(),Bf=$3(),Ef=X7(),Cf=VM();class zM{constructor(J){this.s={db:J}}async command(J,Z){return wJ.executeOperation(this.s.db.client,new Ef.RunAdminCommandOperation(J,{...If.resolveBSONOptions(Z),session:Z?.session,readPreference:Z?.readPreference}))}async buildInfo(J){return this.command({buildinfo:1},J)}async serverInfo(J){return this.command({buildinfo:1},J)}async serverStatus(J){return this.command({serverStatus:1},J)}async ping(J){return this.command({ping:1},J)}async removeUser(J,Z){return wJ.executeOperation(this.s.db.client,new Bf.RemoveUserOperation(this.s.db,J,{dbName:"admin",...Z}))}async validateCollection(J,Z={}){return wJ.executeOperation(this.s.db.client,new Cf.ValidateCollectionOperation(this,J,Z))}async listDatabases(J){return wJ.executeOperation(this.s.db.client,new Nf.ListDatabasesOperation(this.s.db,J))}async replSetGetStatus(J){return this.command({replSetGetStatus:1},J)}}UM.Admin=zM});var F3=V((jM)=>{var G3=function(J,Z){const $={q:J,limit:typeof Z.limit==="number"?Z.limit:0};if(Z.collation)$.collation=Z.collation;if(Z.hint)$.hint=Z.hint;return $};Object.defineProperty(jM,"__esModule",{value:!0});jM.makeDeleteStatement=jM.DeleteManyOperation=jM.DeleteOneOperation=jM.DeleteOperation=void 0;var h5=E(),hf=T1(),p0=o();class S5 extends hf.CommandOperation{constructor(J,Z,$){super(void 0,$);this.options=$,this.ns=J,this.statements=Z}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((J)=>J.limit!=null?J.limit>0:!0)}async execute(J,Z){const $=this.options??{},X=typeof $.ordered==="boolean"?$.ordered:!0,Y={delete:this.ns.collection,deletes:this.statements,ordered:X};if($.let)Y.let=$.let;if($.comment!==void 0)Y.comment=$.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((K)=>K.hint))throw new h5.MongoCompatibilityError("hint is not supported with unacknowledged writes")}return super.executeCommand(J,Z,Y)}}jM.DeleteOperation=S5;class Q3 extends S5{constructor(J,Z,$){super(J.s.namespace,[G3(Z,{...$,limit:1})],$)}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain)return $;if($.code)throw new h5.MongoServerError($);if($.writeErrors)throw new h5.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,deletedCount:$.n}}}jM.DeleteOneOperation=Q3;class K3 extends S5{constructor(J,Z,$){super(J.s.namespace,[G3(Z,$)],$)}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain)return $;if($.code)throw new h5.MongoServerError($);if($.writeErrors)throw new h5.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,deletedCount:$.n}}}jM.DeleteManyOperation=K3;jM.makeDeleteStatement=G3;p0.defineAspects(S5,[p0.Aspect.RETRYABLE,p0.Aspect.WRITE_OPERATION]);p0.defineAspects(Q3,[p0.Aspect.RETRYABLE,p0.Aspect.WRITE_OPERATION,p0.Aspect.EXPLAINABLE,p0.Aspect.SKIP_COLLATION]);p0.defineAspects(K3,[p0.Aspect.WRITE_OPERATION,p0.Aspect.EXPLAINABLE,p0.Aspect.SKIP_COLLATION])});var H3=V((LM)=>{Object.defineProperty(LM,"__esModule",{value:!0});LM.BulkWriteOperation=void 0;var q3=o();class W3 extends q3.AbstractOperation{constructor(J,Z,$){super($);this.options=$,this.collection=J,this.operations=Z}async execute(J,Z){const $=this.collection,X=this.operations,Y={...this.options,...this.bsonOptions,readPreference:this.readPreference},Q=Y.ordered===!1?$.initializeUnorderedBulkOp(Y):$.initializeOrderedBulkOp(Y);for(let G=0;G<X.length;G++)Q.raw(X[G]);return await Q.execute({...Y,session:Z})}}LM.BulkWriteOperation=W3;q3.defineAspects(W3,[q3.Aspect.WRITE_OPERATION])});var V3=V((RM)=>{async function yf(J,Z,$){if($==null)$={};const X=$.full==null?!1:$.full,Y=await J.collection(Z).listIndexes($).toArray();if(X)return Y;const Q={};for(let K of Y)Q[K.name]=Object.entries(K.key);return Q}var _f=function(J,Z,$){if((typeof $.forceServerObjectId==="boolean"?$.forceServerObjectId:J.s.db.options?.forceServerObjectId)===!0)return Z;return Z.map((Y)=>{if(Y._id==null)Y._id=J.s.pkFactory.createPk();return Y})};Object.defineProperty(RM,"__esModule",{value:!0});RM.prepareDocs=RM.indexInformation=void 0;RM.indexInformation=yf;RM.prepareDocs=_f});var M3=V((TM)=>{Object.defineProperty(TM,"__esModule",{value:!0});TM.InsertManyOperation=TM.InsertOneOperation=TM.InsertOperation=void 0;var RJ=E(),vf=A0(),xf=H3(),bf=T1(),PM=V3(),e6=o();class DJ extends bf.CommandOperation{constructor(J,Z,$){super(void 0,$);this.options={...$,checkKeys:$.checkKeys??!1},this.ns=J,this.documents=Z}async execute(J,Z){const $=this.options??{},X=typeof $.ordered==="boolean"?$.ordered:!0,Y={insert:this.ns.collection,documents:this.documents,ordered:X};if(typeof $.bypassDocumentValidation==="boolean")Y.bypassDocumentValidation=$.bypassDocumentValidation;if($.comment!==void 0)Y.comment=$.comment;return super.executeCommand(J,Z,Y)}}TM.InsertOperation=DJ;class z3 extends DJ{constructor(J,Z,$){super(J.s.namespace,PM.prepareDocs(J,[Z],$),$)}async execute(J,Z){const $=await super.execute(J,Z);if($.code)throw new RJ.MongoServerError($);if($.writeErrors)throw new RJ.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,insertedId:this.documents[0]._id}}}TM.InsertOneOperation=z3;class U3 extends e6.AbstractOperation{constructor(J,Z,$){super($);if(!Array.isArray(Z))throw new RJ.MongoInvalidArgumentError('Argument "docs" must be an array of documents');this.options=$,this.collection=J,this.docs=Z}async execute(J,Z){const $=this.collection,X={...this.options,...this.bsonOptions,readPreference:this.readPreference},Y=vf.WriteConcern.fromOptions(X),Q=new xf.BulkWriteOperation($,PM.prepareDocs($,this.docs,X).map((K)=>({insertOne:{document:K}})),X);try{const K=await Q.execute(J,Z);return{acknowledged:Y?.w!==0,insertedCount:K.insertedCount,insertedIds:K.insertedIds}}catch(K){if(K&&K.message==="Operation must be an object with an operation key")throw new RJ.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values");throw K}}}TM.InsertManyOperation=U3;e6.defineAspects(DJ,[e6.Aspect.RETRYABLE,e6.Aspect.WRITE_OPERATION]);e6.defineAspects(z3,[e6.Aspect.RETRYABLE,e6.Aspect.WRITE_OPERATION]);e6.defineAspects(U3,[e6.Aspect.WRITE_OPERATION])});var R3=V((NM)=>{var PJ=function(J,Z,$){if(J==null||typeof J!=="object")throw new l0.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(Z==null||typeof Z!=="object")throw new l0.MongoInvalidArgumentError("Document must be a valid JavaScript object");const X={q:J,u:Z};if(typeof $.upsert==="boolean")X.upsert=$.upsert;if($.multi)X.multi=$.multi;if($.hint)X.hint=$.hint;if($.arrayFilters)X.arrayFilters=$.arrayFilters;if($.collation)X.collation=$.collation;return X};Object.defineProperty(NM,"__esModule",{value:!0});NM.makeUpdateStatement=NM.ReplaceOneOperation=NM.UpdateManyOperation=NM.UpdateOneOperation=NM.UpdateOperation=void 0;var l0=E(),j3=y(),uf=T1(),b1=o();class Y7 extends uf.CommandOperation{constructor(J,Z,$){super(void 0,$);this.options=$,this.ns=J,this.statements=Z}get canRetryWrite(){if(super.canRetryWrite===!1)return!1;return this.statements.every((J)=>J.multi==null||J.multi===!1)}async execute(J,Z){const $=this.options??{},X=typeof $.ordered==="boolean"?$.ordered:!0,Y={update:this.ns.collection,updates:this.statements,ordered:X};if(typeof $.bypassDocumentValidation==="boolean")Y.bypassDocumentValidation=$.bypassDocumentValidation;if($.let)Y.let=$.let;if($.comment!==void 0)Y.comment=$.comment;if(this.writeConcern&&this.writeConcern.w===0){if(this.statements.find((K)=>K.hint))throw new l0.MongoCompatibilityError("hint is not supported with unacknowledged writes")}return super.executeCommand(J,Z,Y)}}NM.UpdateOperation=Y7;class A3 extends Y7{constructor(J,Z,$,X){super(J.s.namespace,[PJ(Z,$,{...X,multi:!1})],X);if(!j3.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain!=null)return $;if($.code)throw new l0.MongoServerError($);if($.writeErrors)throw new l0.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,modifiedCount:$.nModified??$.n,upsertedId:Array.isArray($.upserted)&&$.upserted.length>0?$.upserted[0]._id:null,upsertedCount:Array.isArray($.upserted)&&$.upserted.length?$.upserted.length:0,matchedCount:Array.isArray($.upserted)&&$.upserted.length>0?0:$.n}}}NM.UpdateOneOperation=A3;class L3 extends Y7{constructor(J,Z,$,X){super(J.s.namespace,[PJ(Z,$,{...X,multi:!0})],X);if(!j3.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Update document requires atomic operators")}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain!=null)return $;if($.code)throw new l0.MongoServerError($);if($.writeErrors)throw new l0.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,modifiedCount:$.nModified??$.n,upsertedId:Array.isArray($.upserted)&&$.upserted.length>0?$.upserted[0]._id:null,upsertedCount:Array.isArray($.upserted)&&$.upserted.length?$.upserted.length:0,matchedCount:Array.isArray($.upserted)&&$.upserted.length>0?0:$.n}}}NM.UpdateManyOperation=L3;class w3 extends Y7{constructor(J,Z,$,X){super(J.s.namespace,[PJ(Z,$,{...X,multi:!1})],X);if(j3.hasAtomicOperators($))throw new l0.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}async execute(J,Z){const $=await super.execute(J,Z);if(this.explain!=null)return $;if($.code)throw new l0.MongoServerError($);if($.writeErrors)throw new l0.MongoServerError($.writeErrors[0]);return{acknowledged:this.writeConcern?.w!==0,modifiedCount:$.nModified??$.n,upsertedId:Array.isArray($.upserted)&&$.upserted.length>0?$.upserted[0]._id:null,upsertedCount:Array.isArray($.upserted)&&$.upserted.length?$.upserted.length:0,matchedCount:Array.isArray($.upserted)&&$.upserted.length>0?0:$.n}}}NM.ReplaceOneOperation=w3;NM.makeUpdateStatement=PJ;b1.defineAspects(Y7,[b1.Aspect.RETRYABLE,b1.Aspect.WRITE_OPERATION,b1.Aspect.SKIP_COLLATION]);b1.defineAspects(A3,[b1.Aspect.RETRYABLE,b1.Aspect.WRITE_OPERATION,b1.Aspect.EXPLAINABLE,b1.Aspect.SKIP_COLLATION]);b1.defineAspects(L3,[b1.Aspect.WRITE_OPERATION,b1.Aspect.EXPLAINABLE,b1.Aspect.SKIP_COLLATION]);b1.defineAspects(w3,[b1.Aspect.RETRYABLE,b1.Aspect.WRITE_OPERATION,b1.Aspect.SKIP_COLLATION])});var f5=V((yM)=>{var BJ=function(J,Z,$,X){if($)X=$;else if(X&&X.result)X=X.result;if(X==null)return;if(X.ok===0&&Z.ok===1){Z.ok=0;const Q={index:0,code:X.code||0,errmsg:X.message,errInfo:X.errInfo,op:J.operations[0]};Z.writeErrors.push(new NJ(Q));return}else if(X.ok===0&&Z.ok===0)return;if(kM(J)&&X.n)Z.nInserted=Z.nInserted+X.n;if(P3(J)&&X.n)Z.nRemoved=Z.nRemoved+X.n;let Y=0;if(Array.isArray(X.upserted)){Y=X.upserted.length;for(let Q=0;Q<X.upserted.length;Q++)Z.upserted.push({index:X.upserted[Q].index+J.originalZeroIndex,_id:X.upserted[Q]._id})}else if(X.upserted)Y=1,Z.upserted.push({index:J.originalZeroIndex,_id:X.upserted});if(D3(J)&&X.n){const Q=X.nModified;if(Z.nUpserted=Z.nUpserted+Y,Z.nMatched=Z.nMatched+(X.n-Y),typeof Q==="number")Z.nModified=Z.nModified+Q;else Z.nModified=0}if(Array.isArray(X.writeErrors))for(let Q=0;Q<X.writeErrors.length;Q++){const K={index:J.originalIndexes[X.writeErrors[Q].index],code:X.writeErrors[Q].code,errmsg:X.writeErrors[Q].errmsg,errInfo:X.writeErrors[Q].errInfo,op:J.operations[X.writeErrors[Q].index]};Z.writeErrors.push(new NJ(K))}if(X.writeConcernError)Z.writeConcernErrors.push(new _5(X.writeConcernError))},SM=function(J,Z,$){if(J.s.batches.length===0)return $(void 0,new k8(J.s.bulkResult,J.isOrdered));const X=J.s.batches.shift();function Y(K,G){if(K&&"message"in K&&!(K instanceof y1.MongoWriteConcernError))return $(new Q7(K,new k8(J.s.bulkResult,J.isOrdered)));if(K instanceof y1.MongoWriteConcernError)return tf(X,J.s.bulkResult,J.isOrdered,K,$);BJ(X,J.s.bulkResult,K,G);const F=new k8(J.s.bulkResult,J.isOrdered);if(J.handleWriteError($,F))return;SM(J,Z,$)}const Q=O8.resolveOptions(J,{...Z,ordered:J.isOrdered});if(Q.bypassDocumentValidation!==!0)delete Q.bypassDocumentValidation;if(J.operationId)Y.operationId=J.operationId;if(J.s.bypassDocumentValidation===!0)Q.bypassDocumentValidation=!0;if(J.s.checkKeys===!1)Q.checkKeys=!1;if(Q.retryWrites){if(D3(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.multi);if(P3(X))Q.retryWrites=Q.retryWrites&&!X.operations.some((K)=>K.limit===0)}try{if(kM(X))IJ.executeOperation(J.s.collection.client,new sf.InsertOperation(J.s.namespace,X.operations,Q),Y);else if(D3(X))IJ.executeOperation(J.s.collection.client,new A4.UpdateOperation(J.s.namespace,X.operations,Q),Y);else if(P3(X))IJ.executeOperation(J.s.collection.client,new y5.DeleteOperation(J.s.namespace,X.operations,Q),Y)}catch(K){K.ok=0,BJ(X,J.s.bulkResult,K,void 0),$()}},tf=function(J,Z,$,X,Y){BJ(J,Z,void 0,X.result),Y(new Q7({message:X.result?.writeConcernError.errmsg,code:X.result?.writeConcernError.result},new k8(Z,$)))},CM=function(J){if(typeof J.s.options.forceServerObjectId==="boolean")return J.s.options.forceServerObjectId;if(typeof J.s.collection.s.db.options?.forceServerObjectId==="boolean")return J.s.collection.s.db.options?.forceServerObjectId;return!1},kM=function(J){return J.batchType===yM.BatchType.INSERT},D3=function(J){return J.batchType===yM.BatchType.UPDATE},P3=function(J){return J.batchType===yM.BatchType.DELETE},k5=function(J){let{currentOp:Z}=J.s;if(J.s.currentOp=void 0,!Z)Z={};return Z};Object.defineProperty(yM,"__esModule",{value:!0});yM.BulkOperationBase=yM.FindOperators=yM.MongoBulkWriteError=yM.mergeBatchResults=yM.WriteError=yM.WriteConcernError=yM.BulkWriteResult=yM.Batch=yM.BatchType=void 0;var af=import.meta.require("util"),TJ=H1(),y1=E(),y5=F3(),IJ=L0(),sf=M3(),nf=o(),A4=R3(),O8=y(),EM=A0(),O5=Symbol("serverError");yM.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3});class hM{constructor(J,Z){this.originalZeroIndex=Z,this.currentIndex=0,this.originalIndexes=[],this.batchType=J,this.operations=[],this.size=0,this.sizeBytes=0}}yM.Batch=hM;class k8{static generateIdMap(J){const Z={};for(let $ of J)Z[$.index]=$._id;return Z}constructor(J,Z){this.result=J,this.insertedCount=this.result.nInserted??0,this.matchedCount=this.result.nMatched??0,this.modifiedCount=this.result.nModified??0,this.deletedCount=this.result.nRemoved??0,this.upsertedCount=this.result.upserted.length??0,this.upsertedIds=k8.generateIdMap(this.result.upserted),this.insertedIds=k8.generateIdMap(this.getSuccessfullyInsertedIds(J,Z)),Object.defineProperty(this,"result",{value:this.result,enumerable:!1})}get ok(){return this.result.ok}getSuccessfullyInsertedIds(J,Z){if(J.writeErrors.length===0)return J.insertedIds;if(Z)return J.insertedIds.slice(0,J.writeErrors[0].index);return J.insertedIds.filter(({index:$})=>!J.writeErrors.some((X)=>$===X.index))}getUpsertedIdAt(J){return this.result.upserted[J]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(J){return J<this.result.writeErrors.length?this.result.writeErrors[J]:void 0}getWriteErrors(){return this.result.writeErrors}getWriteConcernError(){if(this.result.writeConcernErrors.length===0)return;else if(this.result.writeConcernErrors.length===1)return this.result.writeConcernErrors[0];else{let J="";for(let Z=0;Z<this.result.writeConcernErrors.length;Z++){const $=this.result.writeConcernErrors[Z];if(J=J+$.errmsg,Z===0)J=J+" and "}return new _5({errmsg:J,code:y1.MONGODB_ERROR_CODES.WriteConcernFailed})}}toString(){return`BulkWriteResult(${this.result})`}isOk(){return this.result.ok===1}}yM.BulkWriteResult=k8;class _5{constructor(J){this[O5]=J}get code(){return this[O5].code}get errmsg(){return this[O5].errmsg}get errInfo(){return this[O5].errInfo}toJSON(){return this[O5]}toString(){return`WriteConcernError(${this.errmsg})`}}yM.WriteConcernError=_5;class NJ{constructor(J){this.err=J}get code(){return this.err.code}get index(){return this.err.index}get errmsg(){return this.err.errmsg}get errInfo(){return this.err.errInfo}getOperation(){return this.err.op}toJSON(){return{code:this.err.code,index:this.err.index,errmsg:this.err.errmsg,op:this.err.op}}toString(){return`WriteError(${JSON.stringify(this.toJSON())})`}}yM.WriteError=NJ;yM.mergeBatchResults=BJ;class Q7 extends y1.MongoServerError{constructor(J,Z){super(J);if(this.writeErrors=[],J instanceof _5)this.err=J;else if(!(J instanceof Error))this.message=J.message,this.code=J.code,this.writeErrors=J.writeErrors??[];this.result=Z,Object.assign(this,J)}get name(){return"MongoBulkWriteError"}get insertedCount(){return this.result.insertedCount}get matchedCount(){return this.result.matchedCount}get modifiedCount(){return this.result.modifiedCount}get deletedCount(){return this.result.deletedCount}get upsertedCount(){return this.result.upsertedCount}get insertedIds(){return this.result.insertedIds}get upsertedIds(){return this.result.upsertedIds}}yM.MongoBulkWriteError=Q7;class T3{constructor(J){this.bulkOperation=J}update(J){const Z=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(yM.BatchType.UPDATE,A4.makeUpdateStatement(Z.selector,J,{...Z,multi:!0}))}updateOne(J){if(!O8.hasAtomicOperators(J))throw new y1.MongoInvalidArgumentError("Update document requires atomic operators");const Z=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(yM.BatchType.UPDATE,A4.makeUpdateStatement(Z.selector,J,{...Z,multi:!1}))}replaceOne(J){if(O8.hasAtomicOperators(J))throw new y1.MongoInvalidArgumentError("Replacement document must not use atomic operators");const Z=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(yM.BatchType.UPDATE,A4.makeUpdateStatement(Z.selector,J,{...Z,multi:!1}))}deleteOne(){const J=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(yM.BatchType.DELETE,y5.makeDeleteStatement(J.selector,{...J,limit:1}))}delete(){const J=k5(this.bulkOperation);return this.bulkOperation.addToOperationsList(yM.BatchType.DELETE,y5.makeDeleteStatement(J.selector,{...J,limit:0}))}upsert(){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.upsert=!0,this}collation(J){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.collation=J,this}arrayFilters(J){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.arrayFilters=J,this}hint(J){if(!this.bulkOperation.s.currentOp)this.bulkOperation.s.currentOp={};return this.bulkOperation.s.currentOp.hint=J,this}}yM.FindOperators=T3;var rf=af.promisify(SM);class OM extends nf.AbstractOperation{constructor(J,Z){super(Z);this.bulkOperation=J}execute(J,Z){if(this.options.session==null)this.options.session=Z;return rf(this.bulkOperation,this.options)}}class I3{constructor(J,Z,$){this.isOrdered=$;const X=O8.getTopology(J);Z=Z==null?{}:Z;const Y=J.s.namespace,Q=!1,K=void 0,G=X.lastHello(),F=!!(X.s.options&&X.s.options.autoEncrypter),q=G&&G.maxBsonObjectSize?G.maxBsonObjectSize:16777216,W=F?2097152:q,H=G&&G.maxWriteBatchSize?G.maxWriteBatchSize:1000,U=(H-1).toString(10).length+2;let j=Object.assign({},Z);j=O8.applyRetryableWrites(j,J.s.db);const z={ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]};if(this.s={bulkResult:z,currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:EM.WriteConcern.fromOptions(Z),maxBsonObjectSize:q,maxBatchSizeBytes:W,maxWriteBatchSize:H,maxKeySize:U,namespace:Y,topology:X,options:j,bsonOptions:TJ.resolveBSONOptions(Z),currentOp:K,executed:Q,collection:J,err:void 0,checkKeys:typeof Z.checkKeys==="boolean"?Z.checkKeys:!1},Z.bypassDocumentValidation===!0)this.s.bypassDocumentValidation=!0}insert(J){if(J._id==null&&!CM(this))J._id=new TJ.ObjectId;return this.addToOperationsList(yM.BatchType.INSERT,J)}find(J){if(!J)throw new y1.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:J},new T3(this)}raw(J){if(J==null||typeof J!=="object")throw new y1.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in J){const Z=CM(this);if(J.insertOne&&J.insertOne.document==null){if(Z!==!0&&J.insertOne._id==null)J.insertOne._id=new TJ.ObjectId;return this.addToOperationsList(yM.BatchType.INSERT,J.insertOne)}if(Z!==!0&&J.insertOne.document._id==null)J.insertOne.document._id=new TJ.ObjectId;return this.addToOperationsList(yM.BatchType.INSERT,J.insertOne.document)}if("replaceOne"in J||"updateOne"in J||"updateMany"in J){if("replaceOne"in J){if("q"in J.replaceOne)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");const Z=A4.makeUpdateStatement(J.replaceOne.filter,J.replaceOne.replacement,{...J.replaceOne,multi:!1});if(O8.hasAtomicOperators(Z.u))throw new y1.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(yM.BatchType.UPDATE,Z)}if("updateOne"in J){if("q"in J.updateOne)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");const Z=A4.makeUpdateStatement(J.updateOne.filter,J.updateOne.update,{...J.updateOne,multi:!1});if(!O8.hasAtomicOperators(Z.u))throw new y1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(yM.BatchType.UPDATE,Z)}if("updateMany"in J){if("q"in J.updateMany)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");const Z=A4.makeUpdateStatement(J.updateMany.filter,J.updateMany.update,{...J.updateMany,multi:!0});if(!O8.hasAtomicOperators(Z.u))throw new y1.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(yM.BatchType.UPDATE,Z)}}if("deleteOne"in J){if("q"in J.deleteOne)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(yM.BatchType.DELETE,y5.makeDeleteStatement(J.deleteOne.filter,{...J.deleteOne,limit:1}))}if("deleteMany"in J){if("q"in J.deleteMany)throw new y1.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(yM.BatchType.DELETE,y5.makeDeleteStatement(J.deleteMany.filter,{...J.deleteMany,limit:0}))}throw new y1.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const J=[...this.s.batches];if(this.isOrdered){if(this.s.currentBatch)J.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)J.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)J.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)J.push(this.s.currentRemoveBatch)}return J}async execute(J={}){if(this.s.executed)throw new y1.MongoBatchReExecutionError;const Z=EM.WriteConcern.fromOptions(J);if(Z)this.s.writeConcern=Z;if(this.isOrdered){if(this.s.currentBatch)this.s.batches.push(this.s.currentBatch)}else{if(this.s.currentInsertBatch)this.s.batches.push(this.s.currentInsertBatch);if(this.s.currentUpdateBatch)this.s.batches.push(this.s.currentUpdateBatch);if(this.s.currentRemoveBatch)this.s.batches.push(this.s.currentRemoveBatch)}if(this.s.batches.length===0)throw new y1.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty");this.s.executed=!0;const $={...this.s.options,...J},X=new OM(this,$);return IJ.executeOperation(this.s.collection.client,X)}handleWriteError(J,Z){if(this.s.bulkResult.writeErrors.length>0){const X=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";return J(new Q7({message:X,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},Z)),!0}const $=Z.getWriteConcernError();if($)return J(new Q7($,Z)),!0;return!1}}yM.BulkOperationBase=I3;Object.defineProperty(I3.prototype,"length",{enumerable:!0,get(){return this.s.currentIndex}})});var N3=V((xM)=>{Object.defineProperty(xM,"__esModule",{value:!0});xM.OrderedBulkOperation=void 0;var Qv=H1(),fM=E(),EJ=f5();class vM extends EJ.BulkOperationBase{constructor(J,Z){super(J,Z,!0)}addToOperationsList(J,Z){const $=Qv.calculateObjectSize(Z,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new fM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch==null)this.s.currentBatch=new EJ.Batch(J,this.s.currentIndex);const X=this.s.maxKeySize;if(this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==J)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new EJ.Batch(J,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0;if(J===EJ.BatchType.INSERT)this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:Z._id});if(Array.isArray(Z))throw new fM.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(Z),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=X+$,this.s.currentIndex+=1,this}}xM.OrderedBulkOperation=vM});var B3=V((uM)=>{Object.defineProperty(uM,"__esModule",{value:!0});uM.UnorderedBulkOperation=void 0;var Kv=H1(),gM=E(),J8=f5();class mM extends J8.BulkOperationBase{constructor(J,Z){super(J,Z,!1)}handleWriteError(J,Z){if(this.s.batches.length)return!1;return super.handleWriteError(J,Z)}addToOperationsList(J,Z){const $=Kv.calculateObjectSize(Z,{checkKeys:!1,ignoreUndefined:!1});if($>=this.s.maxBsonObjectSize)throw new gM.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);if(this.s.currentBatch=void 0,J===J8.BatchType.INSERT)this.s.currentBatch=this.s.currentInsertBatch;else if(J===J8.BatchType.UPDATE)this.s.currentBatch=this.s.currentUpdateBatch;else if(J===J8.BatchType.DELETE)this.s.currentBatch=this.s.currentRemoveBatch;const X=this.s.maxKeySize;if(this.s.currentBatch==null)this.s.currentBatch=new J8.Batch(J,this.s.currentIndex);if(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+X+$>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==J)this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new J8.Batch(J,this.s.currentIndex);if(Array.isArray(Z))throw new gM.MongoInvalidArgumentError("Operation passed in cannot be an Array");if(this.s.currentBatch.operations.push(Z),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,J===J8.BatchType.INSERT)this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:Z._id});else if(J===J8.BatchType.UPDATE)this.s.currentUpdateBatch=this.s.currentBatch;else if(J===J8.BatchType.DELETE)this.s.currentRemoveBatch=this.s.currentBatch;return this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=X+$,this}}uM.UnorderedBulkOperation=mM});var CJ=V((pM)=>{Object.defineProperty(pM,"__esModule",{value:!0});pM.AggregateOperation=pM.DB_AGGREGATE_COLLECTION=void 0;var cM=E(),Gv=y(),Fv=A0(),qv=T1(),v5=o();pM.DB_AGGREGATE_COLLECTION=1;var Wv=8;class E3 extends qv.CommandOperation{constructor(J,Z,$){super(void 0,{...$,dbName:J.db});if(this.options={...$},this.target=J.collection||pM.DB_AGGREGATE_COLLECTION,this.pipeline=Z,this.hasWriteStage=!1,typeof $?.out==="string")this.pipeline=this.pipeline.concat({$out:$.out}),this.hasWriteStage=!0;else if(Z.length>0){const X=Z[Z.length-1];if(X.$out||X.$merge)this.hasWriteStage=!0}if(this.hasWriteStage)this.trySecondaryWrite=!0;else delete this.options.writeConcern;if(this.explain&&this.writeConcern)throw new cM.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if($?.cursor!=null&&typeof $.cursor!=="object")throw new cM.MongoInvalidArgumentError("Cursor options must be an object")}get canRetryRead(){return!this.hasWriteStage}addToPipeline(J){this.pipeline.push(J)}async execute(J,Z){const $=this.options,X=Gv.maxWireVersion(J),Y={aggregate:this.target,pipeline:this.pipeline};if(this.hasWriteStage&&X<Wv)this.readConcern=void 0;if(this.hasWriteStage&&this.writeConcern)Fv.WriteConcern.apply(Y,this.writeConcern);if($.bypassDocumentValidation===!0)Y.bypassDocumentValidation=$.bypassDocumentValidation;if(typeof $.allowDiskUse==="boolean")Y.allowDiskUse=$.allowDiskUse;if($.hint)Y.hint=$.hint;if($.let)Y.let=$.let;if($.comment!==void 0)Y.comment=$.comment;if(Y.cursor=$.cursor||{},$.batchSize&&!this.hasWriteStage)Y.cursor.batchSize=$.batchSize;return super.executeCommand(J,Z,Y)}}pM.AggregateOperation=E3;v5.defineAspects(E3,[v5.Aspect.READ_OPERATION,v5.Aspect.RETRYABLE,v5.Aspect.EXPLAINABLE,v5.Aspect.CURSOR_CREATING])});var C0=V((sM)=>{Object.defineProperty(sM,"__esModule",{value:!0});sM.CancellationToken=sM.TypedEventEmitter=void 0;var Hv=import.meta.require("events");class C3 extends Hv.EventEmitter{emitAndLog(J,...Z){if(this.emit(J,...Z),this.component)this.mongoLogger?.debug(this.component,Z[0])}}sM.TypedEventEmitter=C3;class iM extends C3{}sM.CancellationToken=iM});var O3=V((tM)=>{Object.defineProperty(tM,"__esModule",{value:!0});tM.GetMoreOperation=void 0;var h3=E(),zv=y(),hJ=o();class S3 extends hJ.AbstractOperation{constructor(J,Z,$,X){super(X);this.options=X,this.ns=J,this.cursorId=Z,this.server=$}async execute(J,Z){if(J!==this.server)throw new h3.MongoRuntimeError("Getmore must run on the same server operation began on");if(this.cursorId==null||this.cursorId.isZero())throw new h3.MongoRuntimeError("Unable to iterate cursor with no id");const $=this.ns.collection;if($==null)throw new h3.MongoRuntimeError("A collection name must be determined before getMore");const X={getMore:this.cursorId,collection:$};if(typeof this.options.batchSize==="number")X.batchSize=Math.abs(this.options.batchSize);if(typeof this.options.maxAwaitTimeMS==="number")X.maxTimeMS=this.options.maxAwaitTimeMS;if(this.options.comment!==void 0&&zv.maxWireVersion(J)>=9)X.comment=this.options.comment;const Y={returnFieldSelector:null,documentsReturnedIn:"nextBatch",...this.options};return J.commandAsync(this.ns,X,Y)}}tM.GetMoreOperation=S3;hJ.defineAspects(S3,[hJ.Aspect.READ_OPERATION,hJ.Aspect.MUST_SELECT_SAME_SERVER])});var Zj=V((eM)=>{Object.defineProperty(eM,"__esModule",{value:!0});eM.KillCursorsOperation=void 0;var oM=E(),k3=o();class y3 extends k3.AbstractOperation{constructor(J,Z,$,X){super(X);this.ns=Z,this.cursorId=J,this.server=$}async execute(J,Z){if(J!==this.server)throw new oM.MongoRuntimeError("Killcursor must run on the same server operation began on");const $=this.ns.collection;if($==null)throw new oM.MongoRuntimeError("A collection name must be determined before killCursors");const X={killCursors:$,cursors:[this.cursorId]};try{await J.commandAsync(this.ns,X,{session:Z})}catch{}}}eM.KillCursorsOperation=y3;k3.defineAspects(y3,[k3.Aspect.MUST_SELECT_SAME_SERVER])});var _3=V(($j)=>{Object.defineProperty($j,"__esModule",{value:!0});$j.ConnectionPoolMetrics=void 0;class Z8{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}markPinned(J){if(J===Z8.TXN)this.txnConnections+=1;else if(J===Z8.CURSOR)this.cursorConnections+=1;else this.otherConnections+=1}markUnpinned(J){if(J===Z8.TXN)this.txnConnections-=1;else if(J===Z8.CURSOR)this.cursorConnections-=1;else this.otherConnections-=1}info(J){return"Timed out while checking out a connection from connection pool: "+`maxPoolSize: ${J}, `+`connections in use by cursors: ${this.cursorConnections}, `+`connections in use by transactions: ${this.txnConnections}, `+`connections in use by other operations: ${this.otherConnections}`}reset(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}}Z8.TXN="txn";Z8.CURSOR="cursor";Z8.OTHER="other";$j.ConnectionPoolMetrics=Z8});var x5=V((Gj)=>{var Qj=function(J,Z){if(Z?.loadBalanced)return B1.ServerType.LoadBalancer;if(!J||!J.ok)return B1.ServerType.Unknown;if(J.isreplicaset)return B1.ServerType.RSGhost;if(J.msg&&J.msg==="isdbgrid")return B1.ServerType.Mongos;if(J.setName)if(J.hidden)return B1.ServerType.RSOther;else if(J.isWritablePrimary)return B1.ServerType.RSPrimary;else if(J.secondary)return B1.ServerType.RSSecondary;else if(J.arbiterOnly)return B1.ServerType.RSArbiter;else return B1.ServerType.RSOther;return B1.ServerType.Standalone},Av=function(J,Z){const $=Object.keys(J),X=Object.keys(Z);return $.length===X.length&&$.every((Y)=>Z[Y]===J[Y])},Kj=function(J,Z){if(J==null||Z==null)return-1;if(!J.processId.equals(Z.processId))return-1;const $=SJ.Long.isLong(J.counter)?J.counter:SJ.Long.fromNumber(J.counter),X=SJ.Long.isLong(Z.counter)?Z.counter:SJ.Long.fromNumber(Z.counter);return $.compare(X)};Object.defineProperty(Gj,"__esModule",{value:!0});Gj.compareTopologyVersion=Gj.parseServerType=Gj.ServerDescription=void 0;var SJ=H1(),Uv=E(),K7=y(),B1=d0(),Mv=new Set([B1.ServerType.RSPrimary,B1.ServerType.Standalone,B1.ServerType.Mongos,B1.ServerType.LoadBalancer]),jv=new Set([B1.ServerType.RSPrimary,B1.ServerType.RSSecondary,B1.ServerType.Mongos,B1.ServerType.Standalone,B1.ServerType.LoadBalancer]);class Yj{constructor(J,Z,$={}){if(J==null||J==="")throw new Uv.MongoRuntimeError("ServerDescription must be provided with a non-empty address");this.address=typeof J==="string"?K7.HostAddress.fromString(J).toString():J.toString(),this.type=Qj(Z,$),this.hosts=Z?.hosts?.map((X)=>X.toLowerCase())??[],this.passives=Z?.passives?.map((X)=>X.toLowerCase())??[],this.arbiters=Z?.arbiters?.map((X)=>X.toLowerCase())??[],this.tags=Z?.tags??{},this.minWireVersion=Z?.minWireVersion??0,this.maxWireVersion=Z?.maxWireVersion??0,this.roundTripTime=$?.roundTripTime??-1,this.lastUpdateTime=K7.now(),this.lastWriteDate=Z?.lastWrite?.lastWriteDate??0,this.error=$.error??null,this.topologyVersion=this.error?.topologyVersion??Z?.topologyVersion??null,this.setName=Z?.setName??null,this.setVersion=Z?.setVersion??null,this.electionId=Z?.electionId??null,this.logicalSessionTimeoutMinutes=Z?.logicalSessionTimeoutMinutes??null,this.primary=Z?.primary??null,this.me=Z?.me?.toLowerCase()??null,this.$clusterTime=Z?.$clusterTime??null}get hostAddress(){return K7.HostAddress.fromString(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===B1.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return jv.has(this.type)}get isWritable(){return Mv.has(this.type)}get host(){const J=`:${this.port}`.length;return this.address.slice(0,-J)}get port(){const J=this.address.split(":").pop();return J?Number.parseInt(J,10):27017}equals(J){const Z=this.topologyVersion===J?.topologyVersion||Kj(this.topologyVersion,J?.topologyVersion)===0,$=this.electionId!=null&&J?.electionId!=null?K7.compareObjectId(this.electionId,J.electionId)===0:this.electionId===J?.electionId;return J!=null&&K7.errorStrictEqual(this.error,J.error)&&this.type===J.type&&this.minWireVersion===J.minWireVersion&&K7.arrayStrictEqual(this.hosts,J.hosts)&&Av(this.tags,J.tags)&&this.setName===J.setName&&this.setVersion===J.setVersion&&$&&this.primary===J.primary&&this.logicalSessionTimeoutMinutes===J.logicalSessionTimeoutMinutes&&Z}}Gj.ServerDescription=Yj;Gj.parseServerType=Qj;Gj.compareTopologyVersion=Kj});var v3=V((Uj)=>{var Iv=function(J){switch(J){case p.ServerType.Standalone:return p.TopologyType.Single;case p.ServerType.Mongos:return p.TopologyType.Sharded;case p.ServerType.RSPrimary:return p.TopologyType.ReplicaSetWithPrimary;case p.ServerType.RSOther:case p.ServerType.RSSecondary:return p.TopologyType.ReplicaSetNoPrimary;default:return p.TopologyType.Unknown}},zj=function(J,Z,$=null,X=null,Y=null){if($=$||Z.setName,$!==Z.setName)return J.delete(Z.address),[L4(J),$,X,Y];if(Z.maxWireVersion>=17){const G=f3.compareObjectId(Y,Z.electionId),F=G===0,q=G===-1,W=(X??-1)<=(Z.setVersion??-1);if(q||F&&W)Y=Z.electionId,X=Z.setVersion;else return J.set(Z.address,new y8.ServerDescription(Z.address)),[L4(J),$,X,Y]}else{const G=Z.electionId?Z.electionId:null;if(Z.setVersion&&G){if(X&&Y){if(X>Z.setVersion||f3.compareObjectId(Y,G)>0)return J.set(Z.address,new y8.ServerDescription(Z.address)),[L4(J),$,X,Y]}Y=Z.electionId}if(Z.setVersion!=null&&(X==null||Z.setVersion>X))X=Z.setVersion}for(let[G,F]of J)if(F.type===p.ServerType.RSPrimary&&F.address!==Z.address){J.set(G,new y8.ServerDescription(F.address));break}Z.allHosts.forEach((G)=>{if(!J.has(G))J.set(G,new y8.ServerDescription(G))});const Q=Array.from(J.keys()),K=Z.allHosts;return Q.filter((G)=>K.indexOf(G)===-1).forEach((G)=>{J.delete(G)}),[L4(J),$,X,Y]},Nv=function(J,Z,$=null){if($==null)throw new Rv.MongoRuntimeError('Argument "setName" is required if connected to a replica set');if($!==Z.setName||Z.me&&Z.address!==Z.me)J.delete(Z.address);return L4(J)},Bv=function(J,Z,$=null){const X=p.TopologyType.ReplicaSetNoPrimary;if($=$??Z.setName,$!==Z.setName)return J.delete(Z.address),[X,$];if(Z.allHosts.forEach((Y)=>{if(!J.has(Y))J.set(Y,new y8.ServerDescription(Y))}),Z.me&&Z.address!==Z.me)J.delete(Z.address);return[X,$]},L4=function(J){for(let Z of J.values())if(Z.type===p.ServerType.RSPrimary)return p.TopologyType.ReplicaSetWithPrimary;return p.TopologyType.ReplicaSetNoPrimary};Object.defineProperty(Uj,"__esModule",{value:!0});Uj.TopologyDescription=void 0;var OJ=h8(),Rv=E(),f3=y(),p=d0(),y8=x5(),Dv=OJ.MIN_SUPPORTED_SERVER_VERSION,Pv=OJ.MAX_SUPPORTED_SERVER_VERSION,qj=OJ.MIN_SUPPORTED_WIRE_VERSION,Wj=OJ.MAX_SUPPORTED_WIRE_VERSION,Tv=new Set([p.ServerType.Mongos,p.ServerType.Unknown]),Hj=new Set([p.ServerType.Mongos,p.ServerType.Standalone]),Vj=new Set([p.ServerType.RSSecondary,p.ServerType.RSArbiter,p.ServerType.RSOther]);class b5{constructor(J,Z=null,$=null,X=null,Y=null,Q=null,K=null){K=K??{},this.type=J??p.TopologyType.Unknown,this.servers=Z??new Map,this.stale=!1,this.compatible=!0,this.heartbeatFrequencyMS=K.heartbeatFrequencyMS??0,this.localThresholdMS=K.localThresholdMS??15,this.setName=$??null,this.maxElectionId=Y??null,this.maxSetVersion=X??null,this.commonWireVersion=Q??0;for(let G of this.servers.values()){if(G.type===p.ServerType.Unknown||G.type===p.ServerType.LoadBalancer)continue;if(G.minWireVersion>Wj)this.compatible=!1,this.compatibilityError=`Server at ${G.address} requires wire version ${G.minWireVersion}, but this version of the driver only supports up to ${Wj} (MongoDB ${Pv})`;if(G.maxWireVersion<qj){this.compatible=!1,this.compatibilityError=`Server at ${G.address} reports wire version ${G.maxWireVersion}, but this version of the driver requires at least ${qj} (MongoDB ${Dv}).`;break}}this.logicalSessionTimeoutMinutes=null;for(let[,G]of this.servers)if(G.isReadable){if(G.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=null;break}if(this.logicalSessionTimeoutMinutes==null){this.logicalSessionTimeoutMinutes=G.logicalSessionTimeoutMinutes;continue}this.logicalSessionTimeoutMinutes=Math.min(this.logicalSessionTimeoutMinutes,G.logicalSessionTimeoutMinutes)}}updateFromSrvPollingEvent(J,Z=0){const $=J.hostnames(),X=new Set(this.servers.keys()),Y=new Set($),Q=new Set;for(let G of X)if(Y.delete(G),!$.has(G))Q.add(G);if(Y.size===0&&Q.size===0)return this;const K=new Map(this.servers);for(let G of Q)K.delete(G);if(Y.size>0){if(Z===0)for(let G of Y)K.set(G,new y8.ServerDescription(G));else if(K.size<Z){const G=f3.shuffle(Y,Z-K.size);for(let F of G)K.set(F,new y8.ServerDescription(F))}}return new b5(this.type,K,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(J){const Z=J.address;let{type:$,setName:X,maxSetVersion:Y,maxElectionId:Q,commonWireVersion:K}=this;const G=J.type,F=new Map(this.servers);if(J.maxWireVersion!==0)if(K==null)K=J.maxWireVersion;else K=Math.min(K,J.maxWireVersion);if(typeof J.setName==="string"&&typeof X==="string"&&J.setName!==X)if($===p.TopologyType.Single)J=new y8.ServerDescription(Z);else F.delete(Z);if(F.set(Z,J),$===p.TopologyType.Single)return new b5(p.TopologyType.Single,F,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if($===p.TopologyType.Unknown)if(G===p.ServerType.Standalone&&this.servers.size!==1)F.delete(Z);else $=Iv(G);if($===p.TopologyType.Sharded){if(!Tv.has(G))F.delete(Z)}if($===p.TopologyType.ReplicaSetNoPrimary){if(Hj.has(G))F.delete(Z);if(G===p.ServerType.RSPrimary){const q=zj(F,J,X,Y,Q);$=q[0],X=q[1],Y=q[2],Q=q[3]}else if(Vj.has(G)){const q=Bv(F,J,X);$=q[0],X=q[1]}}if($===p.TopologyType.ReplicaSetWithPrimary)if(Hj.has(G))F.delete(Z),$=L4(F);else if(G===p.ServerType.RSPrimary){const q=zj(F,J,X,Y,Q);$=q[0],X=q[1],Y=q[2],Q=q[3]}else if(Vj.has(G))$=Nv(F,J,X);else $=L4(F);return new b5($,F,X,Y,Q,K,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){const J=Array.from(this.servers.values()).filter((Z)=>Z.error);if(J.length>0)return J[0].error;return null}get hasKnownServers(){return Array.from(this.servers.values()).some((J)=>J.type!==p.ServerType.Unknown)}get hasDataBearingServers(){return Array.from(this.servers.values()).some((J)=>J.isDataBearing)}hasServer(J){return this.servers.has(J)}}Uj.TopologyDescription=b5});var b3=V((Aj)=>{var hv=function(J){let Z=J?.readPreference??x3.ReadPreference.primary;if(J?.readPreference)Z=J.readPreference;if(typeof Z==="string")Z=x3.ReadPreference.fromString(Z);if(!(Z instanceof x3.ReadPreference))throw new Ev.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return Z},Sv=function(J){if(J==null)return!1;if(J.description&&J.description.type===jj.ServerType.Mongos)return!0;if(J.description&&J.description instanceof Cv.TopologyDescription)return Array.from(J.description.servers.values()).some(($)=>$.type===jj.ServerType.Mongos);return!1};Object.defineProperty(Aj,"__esModule",{value:!0});Aj.isSharded=Aj.getReadPreference=void 0;var Ev=E(),x3=k1(),jj=d0(),Cv=v3();Aj.getReadPreference=hv;Aj.isSharded=Sv});var g3=V((Dj)=>{var bv=function(J){return!!(J.commitTransaction||J.abortTransaction)};Object.defineProperty(Dj,"__esModule",{value:!0});Dj.isTransactionCommand=Dj.Transaction=Dj.TxnState=void 0;var wj=E(),kv=c0(),yv=k1(),_v=A0();Dj.TxnState=Object.freeze({NO_TRANSACTION:"NO_TRANSACTION",STARTING_TRANSACTION:"STARTING_TRANSACTION",TRANSACTION_IN_PROGRESS:"TRANSACTION_IN_PROGRESS",TRANSACTION_COMMITTED:"TRANSACTION_COMMITTED",TRANSACTION_COMMITTED_EMPTY:"TRANSACTION_COMMITTED_EMPTY",TRANSACTION_ABORTED:"TRANSACTION_ABORTED"});var fv={[Dj.TxnState.NO_TRANSACTION]:[Dj.TxnState.NO_TRANSACTION,Dj.TxnState.STARTING_TRANSACTION],[Dj.TxnState.STARTING_TRANSACTION]:[Dj.TxnState.TRANSACTION_IN_PROGRESS,Dj.TxnState.TRANSACTION_COMMITTED,Dj.TxnState.TRANSACTION_COMMITTED_EMPTY,Dj.TxnState.TRANSACTION_ABORTED],[Dj.TxnState.TRANSACTION_IN_PROGRESS]:[Dj.TxnState.TRANSACTION_IN_PROGRESS,Dj.TxnState.TRANSACTION_COMMITTED,Dj.TxnState.TRANSACTION_ABORTED],[Dj.TxnState.TRANSACTION_COMMITTED]:[Dj.TxnState.TRANSACTION_COMMITTED,Dj.TxnState.TRANSACTION_COMMITTED_EMPTY,Dj.TxnState.STARTING_TRANSACTION,Dj.TxnState.NO_TRANSACTION],[Dj.TxnState.TRANSACTION_ABORTED]:[Dj.TxnState.STARTING_TRANSACTION,Dj.TxnState.NO_TRANSACTION],[Dj.TxnState.TRANSACTION_COMMITTED_EMPTY]:[Dj.TxnState.TRANSACTION_COMMITTED_EMPTY,Dj.TxnState.NO_TRANSACTION]},vv=new Set([Dj.TxnState.STARTING_TRANSACTION,Dj.TxnState.TRANSACTION_IN_PROGRESS]),xv=new Set([Dj.TxnState.TRANSACTION_COMMITTED,Dj.TxnState.TRANSACTION_COMMITTED_EMPTY,Dj.TxnState.TRANSACTION_ABORTED]);class Rj{constructor(J){J=J??{},this.state=Dj.TxnState.NO_TRANSACTION,this.options={};const Z=_v.WriteConcern.fromOptions(J);if(Z){if(Z.w===0)throw new wj.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=Z}if(J.readConcern)this.options.readConcern=kv.ReadConcern.fromOptions(J);if(J.readPreference)this.options.readPreference=yv.ReadPreference.fromOptions(J);if(J.maxCommitTimeMS)this.options.maxTimeMS=J.maxCommitTimeMS;this._pinnedServer=void 0,this._recoveryToken=void 0}get server(){return this._pinnedServer}get recoveryToken(){return this._recoveryToken}get isPinned(){return!!this.server}get isStarting(){return this.state===Dj.TxnState.STARTING_TRANSACTION}get isActive(){return vv.has(this.state)}get isCommitted(){return xv.has(this.state)}transition(J){const Z=fv[this.state];if(Z&&Z.includes(J)){if(this.state=J,this.state===Dj.TxnState.NO_TRANSACTION||this.state===Dj.TxnState.STARTING_TRANSACTION||this.state===Dj.TxnState.TRANSACTION_ABORTED)this.unpinServer();return}throw new wj.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${J}]`)}pinServer(J){if(this.isActive)this._pinnedServer=J}unpinServer(){this._pinnedServer=void 0}}Dj.Transaction=Rj;Dj.isTransactionCommand=bv});var m5=V((kj)=>{var Sj=function(J,Z){return F6.calculateDurationInMs(J)<Z},iv=function(J){const Z=J instanceof x.MongoServerError&&J.codeName&&av.has(J.codeName);return xJ(J)||!Z&&J.code!==x.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&J.code!==x.MONGODB_ERROR_CODES.UnknownReplWriteConcern},vJ=function(J,Z){const $=J[F7],X=Z?.error;if(J.inTransaction()&&X&&X instanceof x.MongoError&&X.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError))return;const Y=J.client.topology;if($&&Y!=null){const K=Array.from(Y.s.servers.values())[0];if(Z?.error==null||Z?.force){if(K.pool.checkIn($),$.emit(Cj.UNPINNED,J.transaction.state!==z1.TxnState.NO_TRANSACTION?yJ.ConnectionPoolMetrics.TXN:yJ.ConnectionPoolMetrics.CURSOR),Z?.forceClear)K.pool.clear({serviceId:$.serviceId})}J[F7]=void 0}},xJ=function(J){if(J==null||!(J instanceof x.MongoServerError))return!1;return J.code===x.MONGODB_ERROR_CODES.MaxTimeMSExpired||J.writeConcernError&&J.writeConcernError.code===x.MONGODB_ERROR_CODES.MaxTimeMSExpired},Oj=function(J,Z,$,X,Y){return J.commitTransaction().then(()=>X,(Q)=>{if(Q instanceof x.MongoError&&Sj(Z,hj)&&!xJ(Q)){if(Q.hasErrorLabel(x.MongoErrorLabel.UnknownTransactionCommitResult))return Oj(J,Z,$,X,Y);if(Q.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError))return d3(J,Z,$,Y)}throw Q})},nv=function(J){return sv.has(J.transaction.state)},d3=function(J,Z,$,X={}){J.startTransaction(X);let Y;try{Y=$(J)}catch(Q){Y=Promise.reject(Q)}if(!F6.isPromiseLike(Y))return J.abortTransaction().catch(()=>null),Promise.reject(new x.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise"));return Y.then((Q)=>{if(nv(J))return Q;return Oj(J,Z,$,Q,X)},(Q)=>{function K(G){if(G instanceof x.MongoError&&G.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError)&&Sj(Z,hj))return d3(J,Z,$,X);if(xJ(G))G.addErrorLabel(x.MongoErrorLabel.UnknownTransactionCommitResult);throw G}if(J.inTransaction())return J.abortTransaction().then(()=>K(Q));return K(Q)})},tv=function(J,Z,$){const X=J.transaction.state;if(X===z1.TxnState.NO_TRANSACTION){$(new x.MongoTransactionError("No transaction started"));return}if(Z==="commitTransaction"){if(X===z1.TxnState.STARTING_TRANSACTION||X===z1.TxnState.TRANSACTION_COMMITTED_EMPTY){J.transaction.transition(z1.TxnState.TRANSACTION_COMMITTED_EMPTY),$();return}if(X===z1.TxnState.TRANSACTION_ABORTED){$(new x.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"));return}}else{if(X===z1.TxnState.STARTING_TRANSACTION){J.transaction.transition(z1.TxnState.TRANSACTION_ABORTED),$();return}if(X===z1.TxnState.TRANSACTION_ABORTED){$(new x.MongoTransactionError("Cannot call abortTransaction twice"));return}if(X===z1.TxnState.TRANSACTION_COMMITTED||X===z1.TxnState.TRANSACTION_COMMITTED_EMPTY){$(new x.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"));return}}const Y={[Z]:1};let Q;if(J.transaction.options.writeConcern)Q=Object.assign({},J.transaction.options.writeConcern);else if(J.clientOptions&&J.clientOptions.writeConcern)Q={w:J.clientOptions.writeConcern.w};if(X===z1.TxnState.TRANSACTION_COMMITTED)Q=Object.assign({wtimeoutMS:1e4},Q,{w:"majority"});if(Q)pv.WriteConcern.apply(Y,Q);if(Z==="commitTransaction"&&J.transaction.options.maxTimeMS)Object.assign(Y,{maxTimeMS:J.transaction.options.maxTimeMS});function K(G){if(Z!=="commitTransaction"){if(J.transaction.transition(z1.TxnState.TRANSACTION_ABORTED),J.loadBalanced)vJ(J,{force:!1});return $()}if(J.transaction.transition(z1.TxnState.TRANSACTION_COMMITTED),G instanceof x.MongoError){if(x.isRetryableWriteError(G)||G instanceof x.MongoWriteConcernError||xJ(G)){if(iv(G))G.addErrorLabel(x.MongoErrorLabel.UnknownTransactionCommitResult),J.unpin({error:G})}else if(G.hasErrorLabel(x.MongoErrorLabel.TransientTransactionError))J.unpin({error:G})}$(G)}if(J.transaction.recoveryToken)Y.recoveryToken=J.transaction.recoveryToken;Tj.executeOperation(J.client,new Ij.RunAdminCommandOperation(Y,{session:J,readPreference:Nj.ReadPreference.primary,bypassPinningCheck:!0}),(G)=>{if(Y.abortTransaction)J.unpin();if(G instanceof x.MongoError&&x.isRetryableWriteError(G)){if(Y.commitTransaction)J.unpin({force:!0}),Y.writeConcern=Object.assign({wtimeout:1e4},Y.writeConcern,{w:"majority"});return Tj.executeOperation(J.client,new Ij.RunAdminCommandOperation(Y,{session:J,readPreference:Nj.ReadPreference.primary,bypassPinningCheck:!0}),K)}K(G)})},rv=function(J,Z,$){if(J.hasEnded)return new x.MongoExpiredSessionError;const X=J.serverSession;if(X==null)return new x.MongoRuntimeError("Unable to acquire server session");if($.writeConcern?.w===0){if(J&&J.explicit)return new x.MongoAPIError("Cannot have explicit session with unacknowledged writes");return}X.lastUse=F6.now(),Z.lsid=X.id;const Y=J.inTransaction()||z1.isTransactionCommand(Z);if(!!$.willRetryWrite||Y)X.txnNumber+=J[fJ],J[fJ]=0,Z.txnNumber=kJ.Long.fromNumber(X.txnNumber);if(!Y){if(J.transaction.state!==z1.TxnState.NO_TRANSACTION)J.transaction.transition(z1.TxnState.NO_TRANSACTION);if(J.supports.causalConsistency&&J.operationTime&&F6.commandSupportsReadConcern(Z))Z.readConcern=Z.readConcern||{},Object.assign(Z.readConcern,{afterClusterTime:J.operationTime});else if(J[q7]){if(Z.readConcern=Z.readConcern||{level:cv.ReadConcernLevel.snapshot},J[_J]!=null)Object.assign(Z.readConcern,{atClusterTime:J[_J]})}return}if(Z.autocommit=!1,J.transaction.state===z1.TxnState.STARTING_TRANSACTION){J.transaction.transition(z1.TxnState.TRANSACTION_IN_PROGRESS),Z.startTransaction=!0;const K=J.transaction.options.readConcern||J?.clientOptions?.readConcern;if(K)Z.readConcern=K;if(J.supports.causalConsistency&&J.operationTime)Z.readConcern=Z.readConcern||{},Object.assign(Z.readConcern,{afterClusterTime:J.operationTime})}return},ov=function(J,Z){if(Z.$clusterTime)m3._advanceClusterTime(J,Z.$clusterTime);if(Z.operationTime&&J&&J.supports.causalConsistency)J.advanceOperationTime(Z.operationTime);if(Z.recoveryToken&&J&&J.inTransaction())J.transaction._recoveryToken=Z.recoveryToken;if(J?.[q7]&&J[_J]==null){const $=Z.cursor?.atClusterTime||Z.atClusterTime;if($)J[_J]=$}},Ej;Object.defineProperty(kj,"__esModule",{value:!0});kj.updateSessionFromResponse=kj.applySession=kj.ServerSessionPool=kj.ServerSession=kj.maybeClearPinnedConnection=kj.ClientSession=void 0;var mv=import.meta.require("util"),kJ=H1(),yJ=_3(),uv=b3(),Cj=v1(),x=E(),dv=C0(),Tj=L0(),Ij=X7(),cv=c0(),Nj=k1(),m3=d0(),z1=g3(),F6=y(),pv=A0(),lv=8,G7=Symbol("serverSession"),_J=Symbol("snapshotTime"),q7=Symbol("snapshotEnabled"),F7=Symbol("pinnedConnection"),fJ=Symbol("txnNumberIncrement");class u3 extends dv.TypedEventEmitter{constructor(J,Z,$,X){super();if(this[Ej]=!1,J==null)throw new x.MongoRuntimeError("ClientSession requires a MongoClient");if(Z==null||!(Z instanceof c3))throw new x.MongoRuntimeError("ClientSession requires a ServerSessionPool");if($=$??{},$.snapshot===!0){if(this[q7]=!0,$.causalConsistency===!0)throw new x.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive')}this.client=J,this.sessionPool=Z,this.hasEnded=!1,this.clientOptions=X,this.explicit=!!$.explicit,this[G7]=this.explicit?this.sessionPool.acquire():null,this[fJ]=0;const Y=this.explicit&&$.snapshot!==!0;this.supports={causalConsistency:$.causalConsistency??Y},this.clusterTime=$.initialClusterTime,this.operationTime=void 0,this.owner=$.owner,this.defaultTransactionOptions=Object.assign({},$.defaultTransactionOptions),this.transaction=new z1.Transaction}get id(){return this[G7]?.id}get serverSession(){let J=this[G7];if(J==null){if(this.explicit)throw new x.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new x.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");J=this.sessionPool.acquire(),this[G7]=J}return J}get snapshotEnabled(){return this[q7]}get loadBalanced(){return this.client.topology?.description.type===m3.TopologyType.LoadBalanced}get pinnedConnection(){return this[F7]}pin(J){if(this[F7])throw TypeError("Cannot pin multiple connections to the same session");this[F7]=J,J.emit(Cj.PINNED,this.inTransaction()?yJ.ConnectionPoolMetrics.TXN:yJ.ConnectionPoolMetrics.CURSOR)}unpin(J){if(this.loadBalanced)return vJ(this,J);this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[F7]:this.transaction.isPinned}async endSession(J){try{if(this.inTransaction())await this.abortTransaction();if(!this.hasEnded){const Z=this[G7];if(Z!=null)this.sessionPool.release(Z),Object.defineProperty(this,G7,{value:g5.clone(Z),writable:!1});this.hasEnded=!0,this.emit("ended",this)}}catch{}finally{vJ(this,{force:!0,...J})}}advanceOperationTime(J){if(this.operationTime==null){this.operationTime=J;return}if(J.greaterThan(this.operationTime))this.operationTime=J}advanceClusterTime(J){if(!J||typeof J!=="object")throw new x.MongoInvalidArgumentError("input cluster time must be an object");if(!J.clusterTime||J.clusterTime._bsontype!=="Timestamp")throw new x.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!J.signature||J.signature.hash?._bsontype!=="Binary"||typeof J.signature.keyId!=="bigint"&&typeof J.signature.keyId!=="number"&&J.signature.keyId?._bsontype!=="Long")throw new x.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');m3._advanceClusterTime(this,J)}equals(J){if(!(J instanceof u3))return!1;if(this.id==null||J.id==null)return!1;return F6.ByteUtils.equals(this.id.id.buffer,J.id.id.buffer)}incrementTransactionNumber(){this[fJ]+=1}inTransaction(){return this.transaction.isActive}startTransaction(J){if(this[q7])throw new x.MongoCompatibilityError("Transactions are not supported in snapshot sessions");if(this.inTransaction())throw new x.MongoTransactionError("Transaction already in progress");if(this.isPinned&&this.transaction.isCommitted)this.unpin();const Z=F6.maxWireVersion(this.client.topology);if(uv.isSharded(this.client.topology)&&Z!=null&&Z<lv)throw new x.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.");this.incrementTransactionNumber(),this.transaction=new z1.Transaction({readConcern:J?.readConcern??this.defaultTransactionOptions.readConcern??this.clientOptions?.readConcern,writeConcern:J?.writeConcern??this.defaultTransactionOptions.writeConcern??this.clientOptions?.writeConcern,readPreference:J?.readPreference??this.defaultTransactionOptions.readPreference??this.clientOptions?.readPreference,maxCommitTimeMS:J?.maxCommitTimeMS??this.defaultTransactionOptions.maxCommitTimeMS}),this.transaction.transition(z1.TxnState.STARTING_TRANSACTION)}async commitTransaction(){return Bj(this,"commitTransaction")}async abortTransaction(){return Bj(this,"abortTransaction")}toBSON(){throw new x.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}async withTransaction(J,Z){const $=F6.now();return d3(this,$,J,Z)}}kj.ClientSession=u3;Ej=q7;var hj=120000,av=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);kj.maybeClearPinnedConnection=vJ;var sv=new Set([z1.TxnState.NO_TRANSACTION,z1.TxnState.TRANSACTION_COMMITTED,z1.TxnState.TRANSACTION_ABORTED]),Bj=mv.promisify(tv);class g5{constructor(){this.id={id:new kJ.Binary(F6.uuidV4(),kJ.Binary.SUBTYPE_UUID)},this.lastUse=F6.now(),this.txnNumber=0,this.isDirty=!1}hasTimedOut(J){return Math.round(F6.calculateDurationInMs(this.lastUse)%86400000%3600000/60000)>J-1}static clone(J){const Z=new ArrayBuffer(16),$=Buffer.from(Z);$.set(J.id.id.buffer);const X=new kJ.Binary($,J.id.id.sub_type);return Object.setPrototypeOf({id:{id:X},lastUse:J.lastUse,txnNumber:J.txnNumber,isDirty:J.isDirty},g5.prototype)}}kj.ServerSession=g5;class c3{constructor(J){if(J==null)throw new x.MongoRuntimeError("ServerSessionPool requires a MongoClient");this.client=J,this.sessions=new F6.List}acquire(){const J=this.client.topology?.logicalSessionTimeoutMinutes??10;let Z=null;while(this.sessions.length>0){const $=this.sessions.shift();if($!=null&&(!!this.client.topology?.loadBalanced||!$.hasTimedOut(J))){Z=$;break}}if(Z==null)Z=new g5;return Z}release(J){const Z=this.client.topology?.logicalSessionTimeoutMinutes??10;if(this.client.topology?.loadBalanced&&!Z)this.sessions.unshift(J);if(!Z)return;if(this.sessions.prune(($)=>$.hasTimedOut(Z)),!J.hasTimedOut(Z)){if(J.isDirty)return;this.sessions.unshift(J)}}}kj.ServerSessionPool=c3;kj.applySession=rv;kj.updateSessionFromResponse=ov});var X8=V((gj)=>{async function mJ(J,{blocking:Z,transform:$}){if(J.closed)return null;do{if(J[r1]==null)await J[bj]();if(J[o1].length!==0){const Y=J[o1].shift();if(Y!=null&&$&&J[c5])try{return J[c5](Y)}catch(Q){throw await _8(J,{error:Q,needsToEmitClosed:!0}).catch(()=>null),Q}return Y}if(J.isDead)return await _8(J,{}),null;const X=J[x1].batchSize||1000;try{const Y=await J.getMore(X);if(Y){const Q=typeof Y.cursor.id==="number"?q6.Long.fromNumber(Y.cursor.id):typeof Y.cursor.id==="bigint"?q6.Long.fromBigInt(Y.cursor.id):Y.cursor.id;J[o1].pushMany(Y.cursor.nextBatch),J[r1]=Q}}catch(Y){throw await _8(J,{error:Y}).catch(()=>null),Y}if(J.isDead)await _8(J,{});if(J[o1].length===0&&Z===!1)return null}while(!J.isDead||J[o1].length!==0);return null}async function _8(J,Z){const $=J[r1],X=J[u5],Y=J[gJ],Q=J[$8],K=Z?.error,G=Z?.needsToEmitClosed??J[o1].length===0;if(K){if(J.loadBalanced&&K instanceof h0.MongoNetworkError)return F()}if($==null||Y==null||$.isZero()||X==null){if(G)J[w4]=!0,J[r1]=q6.Long.ZERO,J.emit(V7.CLOSE);if(Q){if(Q.owner===J){await Q.endSession({error:K});return}if(!Q.inTransaction())p3.maybeClearPinnedConnection(Q,{error:K})}return}async function F(){if(Q){if(Q.owner===J){try{await Q.endSession({error:K})}finally{J.emit(V7.CLOSE)}return}if(!Q.inTransaction())p3.maybeClearPinnedConnection(Q,{error:K})}J.emit(V7.CLOSE);return}if(J[d5]=!0,Q.hasEnded)return F();try{await xj.executeOperation(J[W7],new Kx.KillCursorsOperation($,X,Y,{session:Q})).catch(()=>null)}finally{await F()}}var R4=function(J){if(J[H7])throw new h0.MongoCursorInUseError};Object.defineProperty(gj,"__esModule",{value:!0});gj.assertUninitialized=gj.AbstractCursor=gj.CURSOR_FLAGS=void 0;var vj=import.meta.require("stream"),q6=H1(),h0=E(),Yx=C0(),xj=L0(),Qx=O3(),Kx=Zj(),_j=c0(),bJ=k1(),p3=m5(),fj=y(),r1=Symbol("id"),o1=Symbol("documents"),gJ=Symbol("server"),u5=Symbol("namespace"),W7=Symbol("client"),$8=Symbol("session"),x1=Symbol("options"),c5=Symbol("transform"),H7=Symbol("initialized"),w4=Symbol("closed"),d5=Symbol("killed"),bj=Symbol("kInit");gj.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class V7 extends Yx.TypedEventEmitter{constructor(J,Z,$={}){super();if(!J.s.isMongoClient)throw new h0.MongoRuntimeError("Cursor must be constructed with MongoClient");this[W7]=J,this[u5]=Z,this[r1]=null,this[o1]=new fj.List,this[H7]=!1,this[w4]=!1,this[d5]=!1,this[x1]={readPreference:$.readPreference&&$.readPreference instanceof bJ.ReadPreference?$.readPreference:bJ.ReadPreference.primary,...q6.pluckBSONSerializeOptions($)};const X=_j.ReadConcern.fromOptions($);if(X)this[x1].readConcern=X;if(typeof $.batchSize==="number")this[x1].batchSize=$.batchSize;if($.comment!==void 0)this[x1].comment=$.comment;if(typeof $.maxTimeMS==="number")this[x1].maxTimeMS=$.maxTimeMS;if(typeof $.maxAwaitTimeMS==="number")this[x1].maxAwaitTimeMS=$.maxAwaitTimeMS;if($.session instanceof p3.ClientSession)this[$8]=$.session;else this[$8]=this[W7].startSession({owner:this,explicit:!1})}get id(){return this[r1]??void 0}get isDead(){return(this[r1]?.isZero()??!1)||this[w4]||this[d5]}get client(){return this[W7]}get server(){return this[gJ]}get namespace(){return this[u5]}get readPreference(){return this[x1].readPreference}get readConcern(){return this[x1].readConcern}get session(){return this[$8]}set session(J){this[$8]=J}get cursorOptions(){return this[x1]}get closed(){return this[w4]}get killed(){return this[d5]}get loadBalanced(){return!!this[W7].topology?.loadBalanced}bufferedCount(){return this[o1].length}readBufferedDocuments(J){const Z=[],$=Math.min(J??this[o1].length,this[o1].length);for(let X=0;X<$;X++){const Y=this[o1].shift();if(Y!=null)Z.push(Y)}return Z}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0){const J=await this.next();if(J===null){if(!this.closed)throw await _8(this,{needsToEmitClosed:!0}).catch(()=>null),new h0.MongoAPIError("Cursor returned a `null` document, but the cursor is not exhausted. Mapping documents to `null` is not supported in the cursor transform.");break}if(yield J,this[r1]===q6.Long.ZERO)break}}finally{if(!this.closed)await this.close().catch(()=>null)}}stream(J){if(J?.transform){const Z=J.transform;return new l3(this).pipe(new vj.Transform({objectMode:!0,highWaterMark:1,transform(X,Y,Q){try{const K=Z(X);Q(void 0,K)}catch(K){Q(K)}}}))}return new l3(this)}async hasNext(){if(this[r1]===q6.Long.ZERO)return!1;if(this[o1].length!==0)return!0;const J=await mJ(this,{blocking:!0,transform:!1});if(J)return this[o1].unshift(J),!0;return!1}async next(){if(this[r1]===q6.Long.ZERO)throw new h0.MongoCursorExhaustedError;return mJ(this,{blocking:!0,transform:!0})}async tryNext(){if(this[r1]===q6.Long.ZERO)throw new h0.MongoCursorExhaustedError;return mJ(this,{blocking:!1,transform:!0})}async forEach(J){if(typeof J!=="function")throw new h0.MongoInvalidArgumentError('Argument "iterator" must be a function');for await(let Z of this)if(J(Z)===!1)break}async close(){const J=!this[w4];this[w4]=!0,await _8(this,{needsToEmitClosed:J})}async toArray(){const J=[];for await(let Z of this)J.push(Z);return J}addCursorFlag(J,Z){if(R4(this),!gj.CURSOR_FLAGS.includes(J))throw new h0.MongoInvalidArgumentError(`Flag ${J} is not one of ${gj.CURSOR_FLAGS}`);if(typeof Z!=="boolean")throw new h0.MongoInvalidArgumentError(`Flag ${J} must be a boolean value`);return this[x1][J]=Z,this}map(J){R4(this);const Z=this[c5];if(Z)this[c5]=($)=>{return J(Z($))};else this[c5]=J;return this}withReadPreference(J){if(R4(this),J instanceof bJ.ReadPreference)this[x1].readPreference=J;else if(typeof J==="string")this[x1].readPreference=bJ.ReadPreference.fromString(J);else throw new h0.MongoInvalidArgumentError(`Invalid read preference: ${J}`);return this}withReadConcern(J){R4(this);const Z=_j.ReadConcern.fromOptions({readConcern:J});if(Z)this[x1].readConcern=Z;return this}maxTimeMS(J){if(R4(this),typeof J!=="number")throw new h0.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[x1].maxTimeMS=J,this}batchSize(J){if(R4(this),this[x1].tailable)throw new h0.MongoTailableCursorError("Tailable cursor does not support batchSize");if(typeof J!=="number")throw new h0.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this[x1].batchSize=J,this}rewind(){if(!this[H7])return;this[r1]=null,this[o1].clear(),this[w4]=!1,this[d5]=!1,this[H7]=!1;const J=this[$8];if(J){if(J.explicit===!1){if(!J.hasEnded)J.endSession().catch(()=>null);this[$8]=this.client.startSession({owner:this,explicit:!1})}}}async getMore(J){const Z=new Qx.GetMoreOperation(this[u5],this[r1],this[gJ],{...this[x1],session:this[$8],batchSize:J});return xj.executeOperation(this[W7],Z)}async[bj](){try{const J=await this._initialize(this[$8]),Z=J.response;if(this[gJ]=J.server,Z.cursor){if(this[r1]=typeof Z.cursor.id==="number"?q6.Long.fromNumber(Z.cursor.id):typeof Z.cursor.id==="bigint"?q6.Long.fromBigInt(Z.cursor.id):Z.cursor.id,Z.cursor.ns)this[u5]=fj.ns(Z.cursor.ns);this[o1].pushMany(Z.cursor.firstBatch)}if(this[r1]==null)this[r1]=q6.Long.ZERO,this[o1].push(J.response);this[H7]=!0}catch(J){throw this[H7]=!0,await _8(this,{error:J}),J}if(this.isDead)await _8(this,void 0);return}}V7.CLOSE="close";gj.AbstractCursor=V7;gj.assertUninitialized=R4;class l3 extends vj.Readable{constructor(J){super({objectMode:!0,autoDestroy:!1,highWaterMark:1});this._readInProgress=!1,this._cursor=J}_read(J){if(!this._readInProgress)this._readInProgress=!0,this._readNext()}_destroy(J,Z){this._cursor.close().then(()=>Z(J),($)=>Z($))}_readNext(){mJ(this._cursor,{blocking:!0,transform:!0}).then((J)=>{if(J==null)this.push(null);else if(this.destroyed)this._cursor.close().catch(()=>null);else{if(this.push(J))return this._readNext();this._readInProgress=!1}},(J)=>{if(J.message.match(/server is closed/))return this._cursor.close().catch(()=>null),this.push(null);if(J.message.match(/operation was interrupted/))return this.push(null);return this.destroy(J)})}}});var p5=V((cj)=>{Object.defineProperty(cj,"__esModule",{value:!0});cj.AggregationCursor=void 0;var uj=CJ(),dj=L0(),Fx=y(),a0=X8(),e1=Symbol("pipeline"),uJ=Symbol("options");class i3 extends a0.AbstractCursor{constructor(J,Z,$=[],X={}){super(J,Z,X);this[e1]=$,this[uJ]=X}get pipeline(){return this[e1]}clone(){const J=Fx.mergeOptions({},this[uJ]);return delete J.session,new i3(this.client,this.namespace,this[e1],{...J})}map(J){return super.map(J)}async _initialize(J){const Z=new uj.AggregateOperation(this.namespace,this[e1],{...this[uJ],...this.cursorOptions,session:J}),$=await dj.executeOperation(this.client,Z);return{server:Z.server,session:J,response:$}}async explain(J){return dj.executeOperation(this.client,new uj.AggregateOperation(this.namespace,this[e1],{...this[uJ],...this.cursorOptions,explain:J??!0}))}group(J){return a0.assertUninitialized(this),this[e1].push({$group:J}),this}limit(J){return a0.assertUninitialized(this),this[e1].push({$limit:J}),this}match(J){return a0.assertUninitialized(this),this[e1].push({$match:J}),this}out(J){return a0.assertUninitialized(this),this[e1].push({$out:J}),this}project(J){return a0.assertUninitialized(this),this[e1].push({$project:J}),this}lookup(J){return a0.assertUninitialized(this),this[e1].push({$lookup:J}),this}redact(J){return a0.assertUninitialized(this),this[e1].push({$redact:J}),this}skip(J){return a0.assertUninitialized(this),this[e1].push({$skip:J}),this}sort(J){return a0.assertUninitialized(this),this[e1].push({$sort:J}),this}unwind(J){return a0.assertUninitialized(this),this[e1].push({$unwind:J}),this}geoNear(J){return a0.assertUninitialized(this),this[e1].push({$geoNear:J}),this}}cj.AggregationCursor=i3});var t3=V((lj)=>{Object.defineProperty(lj,"__esModule",{value:!0});lj.CountOperation=void 0;var qx=T1(),s3=o();class n3 extends qx.CommandOperation{constructor(J,Z,$){super({s:{namespace:J}},$);this.options=$,this.collectionName=J.collection,this.query=Z}async execute(J,Z){const $=this.options,X={count:this.collectionName,query:this.query};if(typeof $.limit==="number")X.limit=$.limit;if(typeof $.skip==="number")X.skip=$.skip;if($.hint!=null)X.hint=$.hint;if(typeof $.maxTimeMS==="number")X.maxTimeMS=$.maxTimeMS;const Y=await super.executeCommand(J,Z,X);return Y?Y.n:0}}lj.CountOperation=n3;s3.defineAspects(n3,[s3.Aspect.READ_OPERATION,s3.Aspect.RETRYABLE])});var dJ=V((sj)=>{var z7=function(J=1){const Z=`${J}`.toLowerCase();if(Wx(J))return J;switch(Z){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new ij.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(J)}`)}},Wx=function(J){return typeof J==="object"&&J!=null&&"$meta"in J&&typeof J.$meta==="string"},Hx=function(J){if(Array.isArray(J)&&J.length===2)try{return z7(J[1]),!0}catch(Z){return!1}return!1},Vx=function(J){return Array.isArray(J)&&Array.isArray(J[0])},zx=function(J){return J instanceof Map&&J.size>0},Ux=function(J){return new Map([[`${J[0]}`,z7([J[1]])]])},Mx=function(J){const Z=J.map(([$,X])=>[`${$}`,z7(X)]);return new Map(Z)},jx=function(J){const Z=J.map(($)=>[`${$}`,1]);return new Map(Z)},Ax=function(J){const Z=Object.entries(J).map(([$,X])=>[`${$}`,z7(X)]);return new Map(Z)},Lx=function(J){const Z=Array.from(J).map(([$,X])=>[`${$}`,z7(X)]);return new Map(Z)},wx=function(J,Z){if(J==null)return;if(typeof J==="string")return new Map([[J,z7(Z)]]);if(typeof J!=="object")throw new ij.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(J)} Sort must be a valid object`);if(!Array.isArray(J))return zx(J)?Lx(J):Object.keys(J).length?Ax(J):void 0;if(!J.length)return;if(Vx(J))return Mx(J);if(Hx(J))return Ux(J);return jx(J)};Object.defineProperty(sj,"__esModule",{value:!0});sj.formatSort=void 0;var ij=E();sj.formatSort=wx});var ej=V((rj)=>{var Ix=function(J,Z,$){const X={find:J.collection,filter:Z};if($.sort)X.sort=Px.formatSort($.sort);if($.projection){let Q=$.projection;if(Q&&Array.isArray(Q))Q=Q.length?Q.reduce((K,G)=>{return K[G]=1,K},{}):{_id:1};X.projection=Q}if($.hint)X.hint=tj.normalizeHintField($.hint);if(typeof $.skip==="number")X.skip=$.skip;if(typeof $.limit==="number")if($.limit<0)X.limit=-$.limit,X.singleBatch=!0;else X.limit=$.limit;if(typeof $.batchSize==="number")if($.batchSize<0){if($.limit&&$.limit!==0&&Math.abs($.batchSize)<Math.abs($.limit))X.limit=-$.batchSize;X.singleBatch=!0}else X.batchSize=$.batchSize;if(typeof $.singleBatch==="boolean")X.singleBatch=$.singleBatch;if($.comment!==void 0)X.comment=$.comment;if(typeof $.maxTimeMS==="number")X.maxTimeMS=$.maxTimeMS;const Y=Dx.ReadConcern.fromOptions($);if(Y)X.readConcern=Y.toJSON();if($.max)X.max=$.max;if($.min)X.min=$.min;if(typeof $.returnKey==="boolean")X.returnKey=$.returnKey;if(typeof $.showRecordId==="boolean")X.showRecordId=$.showRecordId;if(typeof $.tailable==="boolean")X.tailable=$.tailable;if(typeof $.oplogReplay==="boolean")X.oplogReplay=$.oplogReplay;if(typeof $.timeout==="boolean")X.noCursorTimeout=!$.timeout;else if(typeof $.noCursorTimeout==="boolean")X.noCursorTimeout=$.noCursorTimeout;if(typeof $.awaitData==="boolean")X.awaitData=$.awaitData;if(typeof $.allowPartialResults==="boolean")X.allowPartialResults=$.allowPartialResults;if($.collation)X.collation=$.collation;if(typeof $.allowDiskUse==="boolean")X.allowDiskUse=$.allowDiskUse;if($.let)X.let=$.let;return X};Object.defineProperty(rj,"__esModule",{value:!0});rj.FindOperation=void 0;var Rx=E(),Dx=c0(),Px=dJ(),tj=y(),Tx=T1(),l5=o();class r3 extends Tx.CommandOperation{constructor(J,Z,$={},X={}){super(J,X);if(this.options={...X},delete this.options.writeConcern,this.ns=Z,typeof $!=="object"||Array.isArray($))throw new Rx.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");this.filter=$!=null&&$._bsontype==="ObjectId"?{_id:$}:$}async execute(J,Z){this.server=J;const $=this.options;let X=Ix(this.ns,this.filter,$);if(this.explain)X=tj.decorateWithExplain(X,this.explain);return J.commandAsync(this.ns,X,{...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:Z})}}rj.FindOperation=r3;l5.defineAspects(r3,[l5.Aspect.READ_OPERATION,l5.Aspect.RETRYABLE,l5.Aspect.EXPLAINABLE,l5.Aspect.CURSOR_CREATING])});var ZY=V(($A)=>{Object.defineProperty($A,"__esModule",{value:!0});$A.FindCursor=$A.FLAGS=void 0;var Nx=H1(),W6=E(),Bx=t3(),o3=L0(),JA=ej(),e3=dJ(),ZA=y(),m1=X8(),D4=Symbol("filter"),cJ=Symbol("numReturned"),a=Symbol("builtOptions");$A.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class JY extends m1.AbstractCursor{constructor(J,Z,$={},X={}){super(J,Z,X);if(this[D4]=$,this[a]=X,X.sort!=null)this[a].sort=e3.formatSort(X.sort)}clone(){const J=ZA.mergeOptions({},this[a]);return delete J.session,new JY(this.client,this.namespace,this[D4],{...J})}map(J){return super.map(J)}async _initialize(J){const Z=new JA.FindOperation(void 0,this.namespace,this[D4],{...this[a],...this.cursorOptions,session:J}),$=await o3.executeOperation(this.client,Z);return this[cJ]=$.cursor?.firstBatch?.length,{server:Z.server,session:J,response:$}}async getMore(J){const Z=this[cJ];if(Z){const X=this[a].limit;if(J=X&&X>0&&Z+J>X?X-Z:J,J<=0)return await this.close().catch(()=>null),{cursor:{id:Nx.Long.ZERO,nextBatch:[]}}}const $=await super.getMore(J);if($)this[cJ]=this[cJ]+$.cursor.nextBatch.length;return $}async count(J){if(ZA.emitWarningOnce("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),typeof J==="boolean")throw new W6.MongoInvalidArgumentError("Invalid first parameter to count");return o3.executeOperation(this.client,new Bx.CountOperation(this.namespace,this[D4],{...this[a],...this.cursorOptions,...J}))}async explain(J){return o3.executeOperation(this.client,new JA.FindOperation(void 0,this.namespace,this[D4],{...this[a],...this.cursorOptions,explain:J??!0}))}filter(J){return m1.assertUninitialized(this),this[D4]=J,this}hint(J){return m1.assertUninitialized(this),this[a].hint=J,this}min(J){return m1.assertUninitialized(this),this[a].min=J,this}max(J){return m1.assertUninitialized(this),this[a].max=J,this}returnKey(J){return m1.assertUninitialized(this),this[a].returnKey=J,this}showRecordId(J){return m1.assertUninitialized(this),this[a].showRecordId=J,this}addQueryModifier(J,Z){if(m1.assertUninitialized(this),J[0]!=="$")throw new W6.MongoInvalidArgumentError(`${J} is not a valid query modifier`);switch(J.substr(1)){case"comment":this[a].comment=Z;break;case"explain":this[a].explain=Z;break;case"hint":this[a].hint=Z;break;case"max":this[a].max=Z;break;case"maxTimeMS":this[a].maxTimeMS=Z;break;case"min":this[a].min=Z;break;case"orderby":this[a].sort=e3.formatSort(Z);break;case"query":this[D4]=Z;break;case"returnKey":this[a].returnKey=Z;break;case"showDiskLoc":this[a].showRecordId=Z;break;default:throw new W6.MongoInvalidArgumentError(`Invalid query modifier: ${J}`)}return this}comment(J){return m1.assertUninitialized(this),this[a].comment=J,this}maxAwaitTimeMS(J){if(m1.assertUninitialized(this),typeof J!=="number")throw new W6.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this[a].maxAwaitTimeMS=J,this}maxTimeMS(J){if(m1.assertUninitialized(this),typeof J!=="number")throw new W6.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[a].maxTimeMS=J,this}project(J){return m1.assertUninitialized(this),this[a].projection=J,this}sort(J,Z){if(m1.assertUninitialized(this),this[a].tailable)throw new W6.MongoTailableCursorError("Tailable cursor does not support sorting");return this[a].sort=e3.formatSort(J,Z),this}allowDiskUse(J=!0){if(m1.assertUninitialized(this),!this[a].sort)throw new W6.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');if(!J)return this[a].allowDiskUse=!1,this;return this[a].allowDiskUse=!0,this}collation(J){return m1.assertUninitialized(this),this[a].collation=J,this}limit(J){if(m1.assertUninitialized(this),this[a].tailable)throw new W6.MongoTailableCursorError("Tailable cursor does not support limit");if(typeof J!=="number")throw new W6.MongoInvalidArgumentError('Operation "limit" requires an integer');return this[a].limit=J,this}skip(J){if(m1.assertUninitialized(this),this[a].tailable)throw new W6.MongoTailableCursorError("Tailable cursor does not support skip");if(typeof J!=="number")throw new W6.MongoInvalidArgumentError('Operation "skip" requires an integer');return this[a].skip=J,this}}$A.FindCursor=JY});var a5=V((GA)=>{var Sx=function(J){return typeof J==="number"||J==="2d"||J==="2dsphere"||J==="text"||J==="geoHaystack"},Ox=function(J){return Array.isArray(J)&&J.length===2&&Sx(J[1])},kx=function(J,Z){const $=new Map,X=!Array.isArray(J)||Ox(J)?[J]:J;for(let Y of X)if(typeof Y==="string")$.set(Y,1);else if(Array.isArray(Y))$.set(Y[0],Y[1]??1);else if(Y instanceof Map)for(let[Q,K]of Y)$.set(Q,K);else if(XY.isObject(Y))for(let[Q,K]of Object.entries(Y))$.set(Q,K);return{...Z,key:$}};Object.defineProperty(GA,"__esModule",{value:!0});GA.IndexInformationOperation=GA.IndexExistsOperation=GA.ListIndexesOperation=GA.DropIndexOperation=GA.EnsureIndexOperation=GA.CreateIndexOperation=GA.CreateIndexesOperation=GA.IndexesOperation=void 0;var $Y=E(),Cx=k1(),XY=y(),YY=T1(),QY=V3(),K0=o(),hx=new Set(["background","unique","name","partialFilterExpression","sparse","hidden","expireAfterSeconds","storageEngine","collation","version","weights","default_language","language_override","textIndexVersion","2dsphereIndexVersion","bits","min","max","bucketSize","wildcardProjection"]);class YA extends K0.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.collection=J}async execute(J,Z){const $=this.collection,X=this.options;return QY.indexInformation($.s.db,$.collectionName,{full:!0,...X,readPreference:this.readPreference,session:Z})}}GA.IndexesOperation=YA;class pJ extends YY.CommandOperation{constructor(J,Z,$,X){super(J,X);this.options=X??{},this.collectionName=Z,this.indexes=$.map((Y)=>{const Q=Y.key instanceof Map?Y.key:new Map(Object.entries(Y.key)),K=Y.name!=null?Y.name:Array.from(Q).flat().join("_");return{...Object.fromEntries(Object.entries({...Y}).filter(([F])=>hx.has(F))),name:K,key:Q}})}async execute(J,Z){const $=this.options,X=this.indexes,Y=XY.maxWireVersion(J),Q={createIndexes:this.collectionName,indexes:X};if($.commitQuorum!=null){if(Y<9)throw new $Y.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4");Q.commitQuorum=$.commitQuorum}return this.options.collation=void 0,await super.executeCommand(J,Z,Q),X.map((G)=>G.name||"")}}GA.CreateIndexesOperation=pJ;class lJ extends pJ{constructor(J,Z,$,X){super(J,Z,[kx($,X)],X)}async execute(J,Z){return(await super.execute(J,Z))[0]}}GA.CreateIndexOperation=lJ;class KY extends lJ{constructor(J,Z,$,X){super(J,Z,$,X);this.readPreference=Cx.ReadPreference.primary,this.db=J,this.collectionName=Z}async execute(J,Z){const $=this.indexes[0].name,X=await this.db.collection(this.collectionName).listIndexes({session:Z}).toArray().catch((Y)=>{if(Y instanceof $Y.MongoError&&Y.code===$Y.MONGODB_ERROR_CODES.NamespaceNotFound)return[];throw Y});if($&&X.some((Y)=>Y.name===$))return $;return super.execute(J,Z)}}GA.EnsureIndexOperation=KY;class GY extends YY.CommandOperation{constructor(J,Z,$){super(J,$);this.options=$??{},this.collection=J,this.indexName=Z}async execute(J,Z){const $={dropIndexes:this.collection.collectionName,index:this.indexName};return super.executeCommand(J,Z,$)}}GA.DropIndexOperation=GY;class FY extends YY.CommandOperation{constructor(J,Z){super(J,Z);this.options={...Z},delete this.options.writeConcern,this.collectionNamespace=J.s.namespace}async execute(J,Z){const $=XY.maxWireVersion(J),X=this.options.batchSize?{batchSize:this.options.batchSize}:{},Y={listIndexes:this.collectionNamespace.collection,cursor:X};if($>=9&&this.options.comment!==void 0)Y.comment=this.options.comment;return super.executeCommand(J,Z,Y)}}GA.ListIndexesOperation=FY;class QA extends K0.AbstractOperation{constructor(J,Z,$){super($);this.options=$,this.collection=J,this.indexes=Z}async execute(J,Z){const $=this.collection,X=this.indexes,Y=await QY.indexInformation($.s.db,$.collectionName,{...this.options,readPreference:this.readPreference,session:Z});if(!Array.isArray(X))return Y[X]!=null;return X.every((Q)=>Y[Q]!=null)}}GA.IndexExistsOperation=QA;class KA extends K0.AbstractOperation{constructor(J,Z,$){super($);this.options=$??{},this.db=J,this.name=Z}async execute(J,Z){const $=this.db,X=this.name;return QY.indexInformation($,X,{...this.options,readPreference:this.readPreference,session:Z})}}GA.IndexInformationOperation=KA;K0.defineAspects(FY,[K0.Aspect.READ_OPERATION,K0.Aspect.RETRYABLE,K0.Aspect.CURSOR_CREATING]);K0.defineAspects(pJ,[K0.Aspect.WRITE_OPERATION]);K0.defineAspects(lJ,[K0.Aspect.WRITE_OPERATION]);K0.defineAspects(KY,[K0.Aspect.WRITE_OPERATION]);K0.defineAspects(GY,[K0.Aspect.WRITE_OPERATION])});var WY=V((qA)=>{Object.defineProperty(qA,"__esModule",{value:!0});qA.ListIndexesCursor=void 0;var mx=L0(),ux=a5(),dx=X8();class qY extends dx.AbstractCursor{constructor(J,Z){super(J.client,J.s.namespace,Z);this.parent=J,this.options=Z}clone(){return new qY(this.parent,{...this.options,...this.cursorOptions})}async _initialize(J){const Z=new ux.ListIndexesOperation(this.parent,{...this.cursorOptions,...this.options,session:J}),$=await mx.executeOperation(this.parent.client,Z);return{server:Z.server,session:J,response:$}}}qA.ListIndexesCursor=qY});var UA=V((VA)=>{Object.defineProperty(VA,"__esModule",{value:!0});VA.ListSearchIndexesCursor=void 0;var cx=p5();class HA extends cx.AggregationCursor{constructor({fullNamespace:J,client:Z},$,X={}){const Y=$==null?[{$listSearchIndexes:{}}]:[{$listSearchIndexes:{name:$}}];super(Z,J,Y,X)}}VA.ListSearchIndexesCursor=HA});var LA=V((jA)=>{Object.defineProperty(jA,"__esModule",{value:!0});jA.CountDocumentsOperation=void 0;var px=CJ();class MA extends px.AggregateOperation{constructor(J,Z,$){const X=[];if(X.push({$match:Z}),typeof $.skip==="number")X.push({$skip:$.skip});if(typeof $.limit==="number")X.push({$limit:$.limit});X.push({$group:{_id:1,n:{$sum:1}}});super(J.s.namespace,X,$)}async execute(J,Z){const X=await super.execute(J,Z);if(X.cursor==null||X.cursor.firstBatch==null)return 0;const Y=X.cursor.firstBatch;return Y.length?Y[0].n:0}}jA.CountDocumentsOperation=MA});var PA=V((RA)=>{Object.defineProperty(RA,"__esModule",{value:!0});RA.DistinctOperation=void 0;var wA=y(),lx=T1(),aJ=o();class HY extends lx.CommandOperation{constructor(J,Z,$,X){super(J,X);this.options=X??{},this.collection=J,this.key=Z,this.query=$}async execute(J,Z){const $=this.collection,X=this.key,Y=this.query,Q=this.options,K={distinct:$.collectionName,key:X,query:Y};if(typeof Q.maxTimeMS==="number")K.maxTimeMS=Q.maxTimeMS;if(typeof Q.comment!=="undefined")K.comment=Q.comment;wA.decorateWithReadConcern(K,$,Q),wA.decorateWithCollation(K,$,Q);const G=await super.executeCommand(J,Z,K);return this.explain?G:G.values}}RA.DistinctOperation=HY;aJ.defineAspects(HY,[aJ.Aspect.READ_OPERATION,aJ.Aspect.RETRYABLE,aJ.Aspect.EXPLAINABLE])});var zY=V((NA)=>{Object.defineProperty(NA,"__esModule",{value:!0});NA.DropDatabaseOperation=NA.DropCollectionOperation=void 0;var TA=E(),IA=T1(),iJ=o();class sJ extends IA.CommandOperation{constructor(J,Z,$={}){super(J,$);this.db=J,this.options=$,this.name=Z}async execute(J,Z){const $=this.db,X=this.options,Y=this.name,Q=$.client.options.autoEncryption?.encryptedFieldsMap;let K=X.encryptedFields??Q?.[`${$.databaseName}.${Y}`];if(!K&&Q)K=(await $.listCollections({name:Y},{nameOnly:!1}).toArray())?.[0]?.options?.encryptedFields;if(K){const G=K.escCollection||`enxcol_.${Y}.esc`,F=K.ecocCollection||`enxcol_.${Y}.ecoc`;for(let q of[G,F]){const W=new sJ($,q);try{await W.executeWithoutEncryptedFieldsCheck(J,Z)}catch(H){if(!(H instanceof TA.MongoServerError)||H.code!==TA.MONGODB_ERROR_CODES.NamespaceNotFound)throw H}}}return this.executeWithoutEncryptedFieldsCheck(J,Z)}async executeWithoutEncryptedFieldsCheck(J,Z){return await super.executeCommand(J,Z,{drop:this.name}),!0}}NA.DropCollectionOperation=sJ;class VY extends IA.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z}async execute(J,Z){return await super.executeCommand(J,Z,{dropDatabase:1}),!0}}NA.DropDatabaseOperation=VY;iJ.defineAspects(sJ,[iJ.Aspect.WRITE_OPERATION]);iJ.defineAspects(VY,[iJ.Aspect.WRITE_OPERATION])});var hA=V((EA)=>{Object.defineProperty(EA,"__esModule",{value:!0});EA.EstimatedDocumentCountOperation=void 0;var ix=T1(),nJ=o();class UY extends ix.CommandOperation{constructor(J,Z={}){super(J,Z);this.options=Z,this.collectionName=J.collectionName}async execute(J,Z){const $={count:this.collectionName};if(typeof this.options.maxTimeMS==="number")$.maxTimeMS=this.options.maxTimeMS;if(this.options.comment!==void 0)$.comment=this.options.comment;return(await super.executeCommand(J,Z,$))?.n||0}}EA.EstimatedDocumentCountOperation=UY;nJ.defineAspects(UY,[nJ.Aspect.READ_OPERATION,nJ.Aspect.RETRYABLE,nJ.Aspect.CURSOR_CREATING])});var MY=V((_A)=>{var SA=function(J,Z){if(J.new=Z.returnDocument===_A.ReturnDocument.AFTER,J.upsert=Z.upsert===!0,Z.bypassDocumentValidation===!0)J.bypassDocumentValidation=Z.bypassDocumentValidation;return J};Object.defineProperty(_A,"__esModule",{value:!0});_A.FindOneAndUpdateOperation=_A.FindOneAndReplaceOperation=_A.FindOneAndDeleteOperation=_A.ReturnDocument=void 0;var f8=E(),sx=k1(),nx=dJ(),rJ=y(),tx=T1(),tJ=o();_A.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});class i5 extends tx.CommandOperation{constructor(J,Z,$){super(J,$);this.options=$??{},this.cmdBase={remove:!1,new:!1,upsert:!1},$.includeResultMetadata??=!1;const X=nx.formatSort($.sort);if(X)this.cmdBase.sort=X;if($.projection)this.cmdBase.fields=$.projection;if($.maxTimeMS)this.cmdBase.maxTimeMS=$.maxTimeMS;if($.writeConcern)this.cmdBase.writeConcern=$.writeConcern;if($.let)this.cmdBase.let=$.let;if($.comment!==void 0)this.cmdBase.comment=$.comment;this.readPreference=sx.ReadPreference.primary,this.collection=J,this.query=Z}async execute(J,Z){const $=this.collection,X=this.query,Y={...this.options,...this.bsonOptions},Q={findAndModify:$.collectionName,query:X,...this.cmdBase};try{rJ.decorateWithCollation(Q,$,Y)}catch(G){return G}if(Y.hint){if(this.writeConcern?.w===0||rJ.maxWireVersion(J)<8)throw new f8.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands");Q.hint=Y.hint}const K=await super.executeCommand(J,Z,Q);return Y.includeResultMetadata?K:K.value??null}}class OA extends i5{constructor(J,Z,$){if(Z==null||typeof Z!=="object")throw new f8.MongoInvalidArgumentError('Argument "filter" must be an object');super(J,Z,$);this.cmdBase.remove=!0}}_A.FindOneAndDeleteOperation=OA;class kA extends i5{constructor(J,Z,$,X){if(Z==null||typeof Z!=="object")throw new f8.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new f8.MongoInvalidArgumentError('Argument "replacement" must be an object');if(rJ.hasAtomicOperators($))throw new f8.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(J,Z,X);this.cmdBase.update=$,SA(this.cmdBase,X)}}_A.FindOneAndReplaceOperation=kA;class yA extends i5{constructor(J,Z,$,X){if(Z==null||typeof Z!=="object")throw new f8.MongoInvalidArgumentError('Argument "filter" must be an object');if($==null||typeof $!=="object")throw new f8.MongoInvalidArgumentError('Argument "update" must be an object');if(!rJ.hasAtomicOperators($))throw new f8.MongoInvalidArgumentError("Update document requires atomic operators");super(J,Z,X);if(this.cmdBase.update=$,SA(this.cmdBase,X),X.arrayFilters)this.cmdBase.arrayFilters=X.arrayFilters}}_A.FindOneAndUpdateOperation=yA;tJ.defineAspects(i5,[tJ.Aspect.WRITE_OPERATION,tJ.Aspect.RETRYABLE,tJ.Aspect.EXPLAINABLE])});var mA=V((bA)=>{Object.defineProperty(bA,"__esModule",{value:!0});bA.IsCappedOperation=void 0;var ex=E(),Jb=o();class xA extends Jb.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.collection=J}async execute(J,Z){const $=this.collection,[X]=await $.s.db.listCollections({name:$.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:Z}).toArray();if(X==null||X.options==null)throw new ex.MongoAPIError(`collection ${$.namespace} not found`);return!!X.options?.capped}}bA.IsCappedOperation=xA});var pA=V((dA)=>{Object.defineProperty(dA,"__esModule",{value:!0});dA.OptionsOperation=void 0;var Zb=E(),$b=o();class uA extends $b.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.collection=J}async execute(J,Z){const $=this.collection,[X]=await $.s.db.listCollections({name:$.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:Z}).toArray();if(X==null||X.options==null)throw new Zb.MongoAPIError(`collection ${$.namespace} not found`);return X.options}}dA.OptionsOperation=uA});var AY=V((aA)=>{Object.defineProperty(aA,"__esModule",{value:!0});aA.RenameOperation=void 0;var Xb=P4(),Yb=y(),Qb=T1(),lA=o();class jY extends Qb.CommandOperation{constructor(J,Z,$){super(J,$);this.collection=J,this.newName=Z,this.options=$,this.ns=new Yb.MongoDBNamespace("admin","$cmd")}async execute(J,Z){const $=this.collection.namespace,X=this.collection.s.namespace.withCollection(this.newName).toString(),Y=typeof this.options.dropTarget==="boolean"?this.options.dropTarget:!1,Q={renameCollection:$,to:X,dropTarget:Y};return await super.executeCommand(J,Z,Q),new Xb.Collection(this.collection.s.db,this.newName,this.collection.s.options)}}aA.RenameOperation=jY;lA.defineAspects(jY,[lA.Aspect.WRITE_OPERATION])});var rA=V((nA)=>{Object.defineProperty(nA,"__esModule",{value:!0});nA.CreateSearchIndexesOperation=void 0;var Kb=o();class sA extends Kb.AbstractOperation{constructor(J,Z){super();this.collection=J,this.descriptions=Z}async execute(J,Z){const $=this.collection.fullNamespace,X={createSearchIndexes:$.collection,indexes:this.descriptions};return((await J.commandAsync($,X,{session:Z}))?.indexesCreated??[]).map(({name:K})=>K)}}nA.CreateSearchIndexesOperation=sA});var $L=V((JL)=>{Object.defineProperty(JL,"__esModule",{value:!0});JL.DropSearchIndexOperation=void 0;var oA=E(),Gb=o();class eA extends Gb.AbstractOperation{constructor(J,Z){super();this.collection=J,this.name=Z}async execute(J,Z){const $=this.collection.fullNamespace,X={dropSearchIndex:$.collection};if(typeof this.name==="string")X.name=this.name;try{await J.commandAsync($,X,{session:Z})}catch(Y){if(!(Y instanceof oA.MongoServerError&&Y.code===oA.MONGODB_ERROR_CODES.NamespaceNotFound))throw Y}}}JL.DropSearchIndexOperation=eA});var KL=V((YL)=>{Object.defineProperty(YL,"__esModule",{value:!0});YL.UpdateSearchIndexOperation=void 0;var Fb=o();class XL extends Fb.AbstractOperation{constructor(J,Z,$){super();this.collection=J,this.name=Z,this.definition=$}async execute(J,Z){const $=this.collection.fullNamespace,X={updateSearchIndex:$.collection,name:this.name,definition:this.definition};await J.commandAsync($,X,{session:Z});return}}YL.UpdateSearchIndexOperation=XL});var P4=V((HL)=>{Object.defineProperty(HL,"__esModule",{value:!0});HL.Collection=void 0;var qb=H1(),Wb=N3(),Hb=B3(),Vb=U7(),zb=p5(),Ub=ZY(),Mb=WY(),jb=UA(),GL=E(),Ab=H3(),Lb=t3(),wb=LA(),FL=F3(),Rb=PA(),Db=zY(),Pb=hA(),$1=L0(),LY=MY(),T4=a5(),qL=M3(),Tb=mA(),Ib=pA(),Nb=AY(),Bb=rA(),Eb=$L(),Cb=KL(),wY=R3(),hb=c0(),RY=k1(),n=y(),Sb=A0();class WL{constructor(J,Z,$){this.s={db:J,options:$,namespace:new n.MongoDBCollectionNamespace(J.databaseName,Z),pkFactory:J.options?.pkFactory??n.DEFAULT_PK_FACTORY,readPreference:RY.ReadPreference.fromOptions($),bsonOptions:qb.resolveBSONOptions($,J),readConcern:hb.ReadConcern.fromOptions($),writeConcern:Sb.WriteConcern.fromOptions($)},this.client=J.client}get dbName(){return this.s.namespace.db}get collectionName(){return this.s.namespace.collection}get namespace(){return this.fullNamespace.toString()}get fullNamespace(){return this.s.namespace}get readConcern(){if(this.s.readConcern==null)return this.s.db.readConcern;return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.s.db.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){if(this.s.writeConcern==null)return this.s.db.writeConcern;return this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(J){this.s.collectionHint=n.normalizeHintField(J)}async insertOne(J,Z){return $1.executeOperation(this.client,new qL.InsertOneOperation(this,J,n.resolveOptions(this,Z)))}async insertMany(J,Z){return $1.executeOperation(this.client,new qL.InsertManyOperation(this,J,n.resolveOptions(this,Z??{ordered:!0})))}async bulkWrite(J,Z){if(!Array.isArray(J))throw new GL.MongoInvalidArgumentError('Argument "operations" must be an array of documents');return $1.executeOperation(this.client,new Ab.BulkWriteOperation(this,J,n.resolveOptions(this,Z??{ordered:!0})))}async updateOne(J,Z,$){return $1.executeOperation(this.client,new wY.UpdateOneOperation(this,J,Z,n.resolveOptions(this,$)))}async replaceOne(J,Z,$){return $1.executeOperation(this.client,new wY.ReplaceOneOperation(this,J,Z,n.resolveOptions(this,$)))}async updateMany(J,Z,$){return $1.executeOperation(this.client,new wY.UpdateManyOperation(this,J,Z,n.resolveOptions(this,$)))}async deleteOne(J={},Z={}){return $1.executeOperation(this.client,new FL.DeleteOneOperation(this,J,n.resolveOptions(this,Z)))}async deleteMany(J={},Z={}){return $1.executeOperation(this.client,new FL.DeleteManyOperation(this,J,n.resolveOptions(this,Z)))}async rename(J,Z){return $1.executeOperation(this.client,new Nb.RenameOperation(this,J,{...Z,readPreference:RY.ReadPreference.PRIMARY}))}async drop(J){return $1.executeOperation(this.client,new Db.DropCollectionOperation(this.s.db,this.collectionName,J))}async findOne(J={},Z={}){const $=this.find(J,Z).limit(-1).batchSize(1),X=await $.next();return await $.close(),X}find(J={},Z={}){return new Ub.FindCursor(this.client,this.s.namespace,J,n.resolveOptions(this,Z))}async options(J){return $1.executeOperation(this.client,new Ib.OptionsOperation(this,n.resolveOptions(this,J)))}async isCapped(J){return $1.executeOperation(this.client,new Tb.IsCappedOperation(this,n.resolveOptions(this,J)))}async createIndex(J,Z){return $1.executeOperation(this.client,new T4.CreateIndexOperation(this,this.collectionName,J,n.resolveOptions(this,Z)))}async createIndexes(J,Z){return $1.executeOperation(this.client,new T4.CreateIndexesOperation(this,this.collectionName,J,n.resolveOptions(this,{...Z,maxTimeMS:void 0})))}async dropIndex(J,Z){return $1.executeOperation(this.client,new T4.DropIndexOperation(this,J,{...n.resolveOptions(this,Z),readPreference:RY.ReadPreference.primary}))}async dropIndexes(J){try{return await $1.executeOperation(this.client,new T4.DropIndexOperation(this,"*",n.resolveOptions(this,J))),!0}catch{return!1}}listIndexes(J){return new Mb.ListIndexesCursor(this,n.resolveOptions(this,J))}async indexExists(J,Z){return $1.executeOperation(this.client,new T4.IndexExistsOperation(this,J,n.resolveOptions(this,Z)))}async indexInformation(J){return $1.executeOperation(this.client,new T4.IndexInformationOperation(this.s.db,this.collectionName,n.resolveOptions(this,J)))}async estimatedDocumentCount(J){return $1.executeOperation(this.client,new Pb.EstimatedDocumentCountOperation(this,n.resolveOptions(this,J)))}async countDocuments(J={},Z={}){return $1.executeOperation(this.client,new wb.CountDocumentsOperation(this,J,n.resolveOptions(this,Z)))}async distinct(J,Z={},$={}){return $1.executeOperation(this.client,new Rb.DistinctOperation(this,J,Z,n.resolveOptions(this,$)))}async indexes(J){return $1.executeOperation(this.client,new T4.IndexesOperation(this,n.resolveOptions(this,J)))}async findOneAndDelete(J,Z){return $1.executeOperation(this.client,new LY.FindOneAndDeleteOperation(this,J,n.resolveOptions(this,Z)))}async findOneAndReplace(J,Z,$){return $1.executeOperation(this.client,new LY.FindOneAndReplaceOperation(this,J,Z,n.resolveOptions(this,$)))}async findOneAndUpdate(J,Z,$){return $1.executeOperation(this.client,new LY.FindOneAndUpdateOperation(this,J,Z,n.resolveOptions(this,$)))}aggregate(J=[],Z){if(!Array.isArray(J))throw new GL.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');return new zb.AggregationCursor(this.client,this.s.namespace,J,n.resolveOptions(this,Z))}watch(J=[],Z={}){if(!Array.isArray(J))Z=J,J=[];return new Vb.ChangeStream(this,J,n.resolveOptions(this,Z))}initializeUnorderedBulkOp(J){return new Hb.UnorderedBulkOperation(this,n.resolveOptions(this,J))}initializeOrderedBulkOp(J){return new Wb.OrderedBulkOperation(this,n.resolveOptions(this,J))}async count(J={},Z={}){return $1.executeOperation(this.client,new Lb.CountOperation(this.fullNamespace,J,n.resolveOptions(this,Z)))}listSearchIndexes(J,Z){Z=typeof J==="object"?J:Z==null?{}:Z;const $=J==null?null:typeof J==="object"?null:J;return new jb.ListSearchIndexesCursor(this,$,Z)}async createSearchIndex(J){const[Z]=await this.createSearchIndexes([J]);return Z}async createSearchIndexes(J){return $1.executeOperation(this.client,new Bb.CreateSearchIndexesOperation(this,J))}async dropSearchIndex(J){return $1.executeOperation(this.client,new Eb.DropSearchIndexOperation(this,J))}async updateSearchIndex(J,Z){return $1.executeOperation(this.client,new Cb.UpdateSearchIndexOperation(this,J,Z))}}HL.Collection=WL});var IY=V((UL)=>{Object.defineProperty(UL,"__esModule",{value:!0});UL.ChangeStreamCursor=void 0;var DY=U7(),zL=v1(),Ob=CJ(),kb=L0(),PY=y(),yb=X8();class TY extends yb.AbstractCursor{constructor(J,Z,$=[],X={}){super(J,Z,X);if(this.pipeline=$,this.options=X,this._resumeToken=null,this.startAtOperationTime=X.startAtOperationTime,X.startAfter)this.resumeToken=X.startAfter;else if(X.resumeAfter)this.resumeToken=X.resumeAfter}set resumeToken(J){this._resumeToken=J,this.emit(DY.ChangeStream.RESUME_TOKEN_CHANGED,J)}get resumeToken(){return this._resumeToken}get resumeOptions(){const J={...this.options};for(let Z of["resumeAfter","startAfter","startAtOperationTime"])delete J[Z];if(this.resumeToken!=null)if(this.options.startAfter&&!this.hasReceived)J.startAfter=this.resumeToken;else J.resumeAfter=this.resumeToken;else if(this.startAtOperationTime!=null&&PY.maxWireVersion(this.server)>=7)J.startAtOperationTime=this.startAtOperationTime;return J}cacheResumeToken(J){if(this.bufferedCount()===0&&this.postBatchResumeToken)this.resumeToken=this.postBatchResumeToken;else this.resumeToken=J;this.hasReceived=!0}_processBatch(J){const Z=J.cursor;if(Z.postBatchResumeToken){if(this.postBatchResumeToken=J.cursor.postBatchResumeToken,("firstBatch"in J.cursor?J.cursor.firstBatch:J.cursor.nextBatch).length===0)this.resumeToken=Z.postBatchResumeToken}}clone(){return new TY(this.client,this.namespace,this.pipeline,{...this.cursorOptions})}async _initialize(J){const Z=new Ob.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:J}),$=await kb.executeOperation(J.client,Z),X=Z.server;if(this.maxWireVersion=PY.maxWireVersion(X),this.startAtOperationTime==null&&this.resumeAfter==null&&this.startAfter==null&&this.maxWireVersion>=7)this.startAtOperationTime=$.operationTime;return this._processBatch($),this.emit(zL.INIT,$),this.emit(zL.RESPONSE),{server:X,session:J,response:$}}async getMore(J){const Z=await super.getMore(J);return this.maxWireVersion=PY.maxWireVersion(this.server),this._processBatch(Z),this.emit(DY.ChangeStream.MORE,Z),this.emit(DY.ChangeStream.RESPONSE),Z}}UL.ChangeStreamCursor=TY});var LL=V((jL)=>{Object.defineProperty(jL,"__esModule",{value:!0});jL.ListCollectionsOperation=void 0;var _b=y(),fb=T1(),oJ=o();class NY extends fb.CommandOperation{constructor(J,Z,$){super(J,$);if(this.options={...$},delete this.options.writeConcern,this.db=J,this.filter=Z,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,typeof this.options.batchSize==="number")this.batchSize=this.options.batchSize}async execute(J,Z){return super.executeCommand(J,Z,this.generateCommand(_b.maxWireVersion(J)))}generateCommand(J){const Z={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};if(J>=9&&this.options.comment!==void 0)Z.comment=this.options.comment;return Z}}jL.ListCollectionsOperation=NY;oJ.defineAspects(NY,[oJ.Aspect.READ_OPERATION,oJ.Aspect.RETRYABLE,oJ.Aspect.CURSOR_CREATING])});var EY=V((wL)=>{Object.defineProperty(wL,"__esModule",{value:!0});wL.ListCollectionsCursor=void 0;var vb=L0(),xb=LL(),bb=X8();class BY extends bb.AbstractCursor{constructor(J,Z,$){super(J.client,J.s.namespace,$);this.parent=J,this.filter=Z,this.options=$}clone(){return new BY(this.parent,this.filter,{...this.options,...this.cursorOptions})}async _initialize(J){const Z=new xb.ListCollectionsOperation(this.parent,this.filter,{...this.cursorOptions,...this.options,session:J}),$=await vb.executeOperation(this.parent.client,Z);return{server:Z.server,session:J,response:$}}}wL.ListCollectionsCursor=BY});var NL=V((TL)=>{Object.defineProperty(TL,"__esModule",{value:!0});TL.RunCommandCursor=void 0;var M7=E(),DL=L0(),gb=O3(),mb=X7(),ub=y(),db=X8();class PL extends db.AbstractCursor{setComment(J){return this.getMoreOptions.comment=J,this}setMaxTimeMS(J){return this.getMoreOptions.maxAwaitTimeMS=J,this}setBatchSize(J){return this.getMoreOptions.batchSize=J,this}clone(){throw new M7.MongoAPIError("Clone not supported, create a new cursor with db.runCursorCommand")}withReadConcern(J){throw new M7.MongoAPIError("RunCommandCursor does not support readConcern it must be attached to the command being run")}addCursorFlag(J,Z){throw new M7.MongoAPIError("RunCommandCursor does not support cursor flags, they must be attached to the command being run")}maxTimeMS(J){throw new M7.MongoAPIError("maxTimeMS must be configured on the command document directly, to configure getMore.maxTimeMS use cursor.setMaxTimeMS()")}batchSize(J){throw new M7.MongoAPIError("batchSize must be configured on the command document directly, to configure getMore.batchSize use cursor.setBatchSize()")}constructor(J,Z,$={}){super(J.client,ub.ns(J.namespace),$);this.getMoreOptions={},this.db=J,this.command=Object.freeze({...Z})}async _initialize(J){const Z=new mb.RunCommandOperation(this.db,this.command,{...this.cursorOptions,session:J,readPreference:this.cursorOptions.readPreference}),$=await DL.executeOperation(this.client,Z);if($.cursor==null)throw new M7.MongoUnexpectedServerResponseError("Expected server to respond with cursor");return{server:Z.server,session:J,response:$}}async getMore(J){const Z=new gb.GetMoreOperation(this.namespace,this.id,this.server,{...this.cursorOptions,session:this.session,...this.getMoreOptions});return DL.executeOperation(this.client,Z)}}TL.RunCommandCursor=PL});var hL=V((EL)=>{Object.defineProperty(EL,"__esModule",{value:!0});EL.CollectionsOperation=void 0;var cb=P4(),pb=o();class BL extends pb.AbstractOperation{constructor(J,Z){super(Z);this.options=Z,this.db=J}async execute(J,Z){const $=await this.db.listCollections({},{...this.options,nameOnly:!0,readPreference:this.readPreference,session:Z}).toArray(),X=[];for(let{name:Y}of $)if(!Y.includes("$"))X.push(new cb.Collection(this.db,Y,this.db.s.options));return X}}EL.CollectionsOperation=BL});var _L=V((kL)=>{Object.defineProperty(kL,"__esModule",{value:!0});kL.CreateCollectionOperation=void 0;var SL=h8(),lb=P4(),ab=E(),ib=T1(),sb=a5(),OL=o(),nb=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","useBigInt64","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]),tb="Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption.";class eJ extends ib.CommandOperation{constructor(J,Z,$={}){super(J,$);this.options=$,this.db=J,this.name=Z}async execute(J,Z){const $=this.db,X=this.name,Y=this.options,Q=Y.encryptedFields??$.client.options.autoEncryption?.encryptedFieldsMap?.[`${$.databaseName}.${X}`];if(Q){if(!J.loadBalanced&&J.description.maxWireVersion<SL.MIN_SUPPORTED_QE_WIRE_VERSION)throw new ab.MongoCompatibilityError(`${tb} The minimum server version required is ${SL.MIN_SUPPORTED_QE_SERVER_VERSION}`);const G=Q.escCollection??`enxcol_.${X}.esc`,F=Q.ecocCollection??`enxcol_.${X}.ecoc`;for(let q of[G,F])await new eJ($,q,{clusteredIndex:{key:{_id:1},unique:!0}}).executeWithoutEncryptedFieldsCheck(J,Z);if(!Y.encryptedFields)this.options={...this.options,encryptedFields:Q}}const K=await this.executeWithoutEncryptedFieldsCheck(J,Z);if(Q)await new sb.CreateIndexOperation($,X,{__safeContent__:1},{}).execute(J,Z);return K}async executeWithoutEncryptedFieldsCheck(J,Z){const $=this.db,X=this.name,Y=this.options,Q={create:X};for(let K in Y)if(Y[K]!=null&&typeof Y[K]!=="function"&&!nb.has(K))Q[K]=Y[K];return await super.executeCommand(J,Z,Q),new lb.Collection($,X,Y)}}kL.CreateCollectionOperation=eJ;OL.defineAspects(eJ,[OL.Aspect.WRITE_OPERATION])});var gL=V((xL)=>{Object.defineProperty(xL,"__esModule",{value:!0});xL.ProfilingLevelOperation=void 0;var fL=E(),rb=T1();class vL extends rb.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z}async execute(J,Z){const $=await super.executeCommand(J,Z,{profile:-1});if($.ok===1){const X=$.was;if(X===0)return"off";if(X===1)return"slow_only";if(X===2)return"all";throw new fL.MongoUnexpectedServerResponseError(`Illegal profiling level value ${X}`)}else throw new fL.MongoUnexpectedServerResponseError("Error with profile command")}}xL.ProfilingLevelOperation=vL});var CY=V((uL)=>{Object.defineProperty(uL,"__esModule",{value:!0});uL.SetProfilingLevelOperation=uL.ProfilingLevel=void 0;var ob=E(),eb=y(),Jg=T1(),Zg=new Set(["off","slow_only","all"]);uL.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class mL extends Jg.CommandOperation{constructor(J,Z,$){super(J,$);switch(this.options=$,Z){case uL.ProfilingLevel.off:this.profile=0;break;case uL.ProfilingLevel.slowOnly:this.profile=1;break;case uL.ProfilingLevel.all:this.profile=2;break;default:this.profile=0;break}this.level=Z}async execute(J,Z){const $=this.level;if(!Zg.has($))throw new ob.MongoInvalidArgumentError(`Profiling level must be one of "${eb.enumToString(uL.ProfilingLevel)}"`);return await super.executeCommand(J,Z,{profile:this.profile}),$}}uL.SetProfilingLevelOperation=mL});var aL=V((pL)=>{Object.defineProperty(pL,"__esModule",{value:!0});pL.DbStatsOperation=void 0;var $g=T1(),cL=o();class hY extends $g.CommandOperation{constructor(J,Z){super(J,Z);this.options=Z}async execute(J,Z){const $={dbStats:!0};if(this.options.scale!=null)$.scale=this.options.scale;return super.executeCommand(J,Z,$)}}pL.DbStatsOperation=hY;cL.defineAspects(hY,[cL.Aspect.READ_OPERATION])});var JZ=V((oL)=>{Object.defineProperty(oL,"__esModule",{value:!0});oL.Db=void 0;var Xg=Y3(),iL=H1(),Yg=U7(),Qg=P4(),j7=v1(),Kg=p5(),Gg=EY(),Fg=NL(),sL=E(),qg=hL(),Wg=_L(),nL=zY(),i0=L0(),tL=a5(),Hg=gL(),Vg=$3(),zg=AY(),Ug=X7(),Mg=CY(),jg=aL(),Ag=c0(),rL=k1(),u1=y(),Lg=A0(),wg=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","useBigInt64","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class v8{constructor(J,Z,$){if($=$??{},$=u1.filterOptions($,wg),typeof Z==="string"&&Z.includes("."))throw new sL.MongoInvalidArgumentError("Database names cannot contain the character '.'");this.s={options:$,readPreference:rL.ReadPreference.fromOptions($),bsonOptions:iL.resolveBSONOptions($,J),pkFactory:$?.pkFactory??u1.DEFAULT_PK_FACTORY,readConcern:Ag.ReadConcern.fromOptions($),writeConcern:Lg.WriteConcern.fromOptions($),namespace:new u1.MongoDBNamespace(Z)},this.client=J}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get secondaryOk(){return this.s.readPreference?.preference!=="primary"||!1}get readConcern(){return this.s.readConcern}get readPreference(){if(this.s.readPreference==null)return this.client.readPreference;return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get namespace(){return this.s.namespace.toString()}async createCollection(J,Z){return i0.executeOperation(this.client,new Wg.CreateCollectionOperation(this,J,u1.resolveOptions(this,Z)))}async command(J,Z){return i0.executeOperation(this.client,new Ug.RunCommandOperation(this,J,{...iL.resolveBSONOptions(Z),session:Z?.session,readPreference:Z?.readPreference}))}aggregate(J=[],Z){return new Kg.AggregationCursor(this.client,this.s.namespace,J,u1.resolveOptions(this,Z))}admin(){return new Xg.Admin(this)}collection(J,Z={}){if(typeof Z==="function")throw new sL.MongoInvalidArgumentError("The callback form of this helper has been removed.");return new Qg.Collection(this,J,u1.resolveOptions(this,Z))}async stats(J){return i0.executeOperation(this.client,new jg.DbStatsOperation(this,u1.resolveOptions(this,J)))}listCollections(J={},Z={}){return new Gg.ListCollectionsCursor(this,J,u1.resolveOptions(this,Z))}async renameCollection(J,Z,$){return i0.executeOperation(this.client,new zg.RenameOperation(this.collection(J),Z,{...$,new_collection:!0,readPreference:rL.ReadPreference.primary}))}async dropCollection(J,Z){return i0.executeOperation(this.client,new nL.DropCollectionOperation(this,J,u1.resolveOptions(this,Z)))}async dropDatabase(J){return i0.executeOperation(this.client,new nL.DropDatabaseOperation(this,u1.resolveOptions(this,J)))}async collections(J){return i0.executeOperation(this.client,new qg.CollectionsOperation(this,u1.resolveOptions(this,J)))}async createIndex(J,Z,$){return i0.executeOperation(this.client,new tL.CreateIndexOperation(this,J,Z,u1.resolveOptions(this,$)))}async removeUser(J,Z){return i0.executeOperation(this.client,new Vg.RemoveUserOperation(this,J,u1.resolveOptions(this,Z)))}async setProfilingLevel(J,Z){return i0.executeOperation(this.client,new Mg.SetProfilingLevelOperation(this,J,u1.resolveOptions(this,Z)))}async profilingLevel(J){return i0.executeOperation(this.client,new Hg.ProfilingLevelOperation(this,u1.resolveOptions(this,J)))}async indexInformation(J,Z){return i0.executeOperation(this.client,new tL.IndexInformationOperation(this,J,u1.resolveOptions(this,Z)))}watch(J=[],Z={}){if(!Array.isArray(J))Z=J,J=[];return new Yg.ChangeStream(this,J,u1.resolveOptions(this,Z))}runCursorCommand(J,Z){return new Fg.RunCommandCursor(this,J,Z)}}v8.SYSTEM_NAMESPACE_COLLECTION=j7.SYSTEM_NAMESPACE_COLLECTION;v8.SYSTEM_INDEX_COLLECTION=j7.SYSTEM_INDEX_COLLECTION;v8.SYSTEM_PROFILE_COLLECTION=j7.SYSTEM_PROFILE_COLLECTION;v8.SYSTEM_USER_COLLECTION=j7.SYSTEM_USER_COLLECTION;v8.SYSTEM_COMMAND_COLLECTION=j7.SYSTEM_COMMAND_COLLECTION;v8.SYSTEM_JS_COLLECTION=j7.SYSTEM_JS_COLLECTION;oL.Db=v8});var H6=V((Jw)=>{var n5=function(J){return new Proxy(J?{kModuleError:J}:{},{get:($,X)=>{if(X==="kModuleError")return J;throw J},set:()=>{throw J}})},Rg=function(){try{return Jw.Kerberos=(()=>{ throw new Error(`Cannot require module "kerberos"`);})(),Jw.Kerberos}catch{return Jw.Kerberos}},Dg=function(){try{return Jw.ZStandard=(()=>{ throw new Error(`Cannot require module "@mongodb-js/zstd"`);})(),Jw.ZStandard}catch{return Jw.ZStandard}},Pg=function(){try{return (()=>{ throw new Error(`Cannot require module "@aws-sdk/credential-providers"`);})()}catch{return n5(new x8.MongoMissingDependencyError("Optional module `@aws-sdk/credential-providers` not found. Please install it to enable getting aws credentials via the official sdk."))}},Tg=function(){try{return (()=>{ throw new Error(`Cannot require module "gcp-metadata"`);})()}catch{return n5(new x8.MongoMissingDependencyError("Optional module `gcp-metadata` not found. Please install it to enable getting gcp credentials via the official sdk."))}},Ig=function(){try{return (()=>{ throw new Error(`Cannot require module "snappy"`);})()}catch(J){return{kModuleError:new x8.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression",{cause:J})}}},Ng=function(){try{return (()=>{ throw new Error(`Cannot require module "socks"`);})()}catch(J){return{kModuleError:new x8.MongoMissingDependencyError("Optional module `socks` not found. Please install it to connections over a SOCKS5 proxy",{cause:J})}}},Bg=function(){let J=null;try{J=(()=>{ throw new Error(`Cannot require module "mongodb-client-encryption"`);})()}catch(Z){return{kModuleError:new x8.MongoMissingDependencyError("Optional module `mongodb-client-encryption` not found. Please install it to use auto encryption or ClientEncryption.",{cause:Z})}}return J};Object.defineProperty(Jw,"__esModule",{value:!0});Jw.getMongoDBClientEncryption=Jw.aws4=Jw.getSocks=Jw.getSnappy=Jw.getGcpMetadata=Jw.getAwsCredentialProvider=Jw.getZstdLibrary=Jw.ZStandard=Jw.getKerberos=Jw.Kerberos=void 0;var x8=E();Jw.Kerberos=n5(new x8.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication"));Jw.getKerberos=Rg;Jw.ZStandard=n5(new x8.MongoMissingDependencyError("Optional module `@mongodb-js/zstd` not found. Please install it to enable zstd compression"));Jw.getZstdLibrary=Dg;Jw.getAwsCredentialProvider=Pg;Jw.getGcpMetadata=Tg;Jw.getSnappy=Ig;Jw.getSocks=Ng;Jw.aws4=n5(new x8.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{Jw.aws4=(()=>{ throw new Error(`Cannot require module "aws4"`);})()}catch{}Jw.getMongoDBClientEncryption=Bg});var Y8=V((Qw)=>{Object.defineProperty(Qw,"__esModule",{value:!0});Qw.AuthProvider=Qw.AuthContext=void 0;var yg=E();class Xw{constructor(J,Z,$){this.reauthenticating=!1,this.connection=J,this.credentials=Z,this.options=$}}Qw.AuthContext=Xw;class Yw{async prepare(J,Z){return J}async reauth(J){if(J.reauthenticating)throw new yg.MongoRuntimeError("Reauthentication already in progress.");try{J.reauthenticating=!0,await this.auth(J)}finally{J.reauthenticating=!1}}}Qw.AuthProvider=Yw});var YZ=V((Hw)=>{async function SY(J,Z){return J.commandAsync(vg.ns("$external.$cmd"),Z,void 0)}async function bg(J){const{hostAddress:Z}=J.options,{credentials:$}=J;if(!Z||typeof Z.host!=="string"||!$)throw new Gw.MongoInvalidArgumentError("Connection must have host and port and credentials defined.");if(dg(),"kModuleError"in t5)throw t5.kModuleError;const{initializeClient:X}=t5,{username:Y,password:Q}=$,K=$.mechanismProperties,G=K.SERVICE_NAME??"mongodb",F=await Ww(Z.host,K),q={};if(Q!=null)Object.assign(q,{user:Y,password:Q});const W=K.SERVICE_HOST??F;let H=`${G}${process.platform==="win32"?"/":"@"}${W}`;if("SERVICE_REALM"in K)H=`${H}@${K.SERVICE_REALM}`;return X(H,q)}var gg=function(J){return{saslStart:1,mechanism:"GSSAPI",payload:J,autoAuthorize:1}},mg=function(J,Z){return{saslContinue:1,conversationId:Z,payload:J}};async function qw(J,Z,$){try{return await J.step($)||""}catch(X){if(Z===0)throw X;return qw(J,Z-1,$)}}async function ug(J,Z,$){const X=await J.unwrap($);return J.wrap(X||"",{user:Z})}async function Ww(J,Z){const $=Z.CANONICALIZE_HOST_NAME;if(!$||$===Hw.GSSAPICanonicalizationValue.none)return J;if($===Hw.GSSAPICanonicalizationValue.on||$===Hw.GSSAPICanonicalizationValue.forwardAndReverse){const{address:X}=await OY.promises.lookup(J);try{const Y=await OY.promises.resolvePtr(X);return Y.length>0?Y[0]:J}catch(Y){return kY(J)}}else return kY(J)}async function kY(J){try{const Z=await OY.promises.resolveCname(J);return Z.length>0?Z[0]:J}catch{return J}}var dg=function(){if(!t5)t5=fg.getKerberos()};Object.defineProperty(Hw,"__esModule",{value:!0});Hw.resolveCname=Hw.performGSSAPICanonicalizeHostName=Hw.GSSAPI=Hw.GSSAPICanonicalizationValue=void 0;var OY=import.meta.require("dns"),fg=H6(),Gw=E(),vg=y(),xg=Y8();Hw.GSSAPICanonicalizationValue=Object.freeze({on:!0,off:!1,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});var t5;class Fw extends xg.AuthProvider{async auth(J){const{connection:Z,credentials:$}=J;if($==null)throw new Gw.MongoMissingCredentialsError("Credentials required for GSSAPI authentication");const{username:X}=$,Y=await bg(J),Q=await Y.step(""),K=await SY(Z,gg(Q)),G=await qw(Y,10,K.payload),F=await SY(Z,mg(G,K.conversationId)),q=await ug(Y,X,F.payload);await SY(Z,{saslContinue:1,conversationId:F.conversationId,payload:q})}}Hw.GSSAPI=Fw;Hw.performGSSAPICanonicalizeHostName=Ww;Hw.resolveCname=kY});var O6=V((zw)=>{Object.defineProperty(zw,"__esModule",{value:!0});zw.AUTH_MECHS_AUTH_SRC_EXTERNAL=zw.AuthMechanism=void 0;zw.AuthMechanism=Object.freeze({MONGODB_AWS:"MONGODB-AWS",MONGODB_CR:"MONGODB-CR",MONGODB_DEFAULT:"DEFAULT",MONGODB_GSSAPI:"GSSAPI",MONGODB_PLAIN:"PLAIN",MONGODB_SCRAM_SHA1:"SCRAM-SHA-1",MONGODB_SCRAM_SHA256:"SCRAM-SHA-256",MONGODB_X509:"MONGODB-X509",MONGODB_OIDC:"MONGODB-OIDC"});zw.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([zw.AuthMechanism.MONGODB_GSSAPI,zw.AuthMechanism.MONGODB_AWS,zw.AuthMechanism.MONGODB_OIDC,zw.AuthMechanism.MONGODB_X509])});var KZ=V((Aw)=>{var ag=function(J){if(J){if(Array.isArray(J.saslSupportedMechs))return J.saslSupportedMechs.includes(d1.AuthMechanism.MONGODB_SCRAM_SHA256)?d1.AuthMechanism.MONGODB_SCRAM_SHA256:d1.AuthMechanism.MONGODB_SCRAM_SHA1;if(J.maxWireVersion>=3)return d1.AuthMechanism.MONGODB_SCRAM_SHA1}return d1.AuthMechanism.MONGODB_CR};Object.defineProperty(Aw,"__esModule",{value:!0});Aw.MongoCredentials=Aw.DEFAULT_ALLOWED_HOSTS=void 0;var s0=E(),lg=YZ(),d1=O6(),Mw=["aws","azure"],jw="Auth mechanism property ALLOWED_HOSTS must be an array of strings.";Aw.DEFAULT_ALLOWED_HOSTS=["*.mongodb.net","*.mongodb-dev.net","*.mongodbgov.net","localhost","127.0.0.1","::1"];var ig="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class QZ{constructor(J){if(this.username=J.username??"",this.password=J.password,this.source=J.source,!this.source&&J.db)this.source=J.db;if(this.mechanism=J.mechanism||d1.AuthMechanism.MONGODB_DEFAULT,this.mechanismProperties=J.mechanismProperties||{},this.mechanism.match(/MONGODB-AWS/i)){if(!this.username&&process.env.AWS_ACCESS_KEY_ID)this.username=process.env.AWS_ACCESS_KEY_ID;if(!this.password&&process.env.AWS_SECRET_ACCESS_KEY)this.password=process.env.AWS_SECRET_ACCESS_KEY;if(this.mechanismProperties.AWS_SESSION_TOKEN==null&&process.env.AWS_SESSION_TOKEN!=null)this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN}}if(this.mechanism===d1.AuthMechanism.MONGODB_OIDC&&!this.mechanismProperties.ALLOWED_HOSTS)this.mechanismProperties={...this.mechanismProperties,ALLOWED_HOSTS:Aw.DEFAULT_ALLOWED_HOSTS};Object.freeze(this.mechanismProperties),Object.freeze(this)}equals(J){return this.mechanism===J.mechanism&&this.username===J.username&&this.password===J.password&&this.source===J.source}resolveAuthMechanism(J){if(this.mechanism.match(/DEFAULT/i))return new QZ({username:this.username,password:this.password,source:this.source,mechanism:ag(J),mechanismProperties:this.mechanismProperties});return this}validate(){if((this.mechanism===d1.AuthMechanism.MONGODB_GSSAPI||this.mechanism===d1.AuthMechanism.MONGODB_CR||this.mechanism===d1.AuthMechanism.MONGODB_PLAIN||this.mechanism===d1.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===d1.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new s0.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(this.mechanism===d1.AuthMechanism.MONGODB_OIDC){if(this.username&&this.mechanismProperties.PROVIDER_NAME)throw new s0.MongoInvalidArgumentError(`username and PROVIDER_NAME may not be used together for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.PROVIDER_NAME==="azure"&&!this.mechanismProperties.TOKEN_AUDIENCE)throw new s0.MongoAzureError(ig);if(this.mechanismProperties.PROVIDER_NAME&&!Mw.includes(this.mechanismProperties.PROVIDER_NAME))throw new s0.MongoInvalidArgumentError(`Currently only a PROVIDER_NAME in ${Mw.join(",")} is supported for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.REFRESH_TOKEN_CALLBACK&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new s0.MongoInvalidArgumentError(`A REQUEST_TOKEN_CALLBACK must be provided when using a REFRESH_TOKEN_CALLBACK for mechanism '${this.mechanism}'`);if(!this.mechanismProperties.PROVIDER_NAME&&!this.mechanismProperties.REQUEST_TOKEN_CALLBACK)throw new s0.MongoInvalidArgumentError(`Either a PROVIDER_NAME or a REQUEST_TOKEN_CALLBACK must be specified for mechanism '${this.mechanism}'.`);if(this.mechanismProperties.ALLOWED_HOSTS){const Z=this.mechanismProperties.ALLOWED_HOSTS;if(!Array.isArray(Z))throw new s0.MongoInvalidArgumentError(jw);for(let $ of Z)if(typeof $!=="string")throw new s0.MongoInvalidArgumentError(jw)}}if(d1.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)){if(this.source!=null&&this.source!=="$external")throw new s0.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`)}if(this.mechanism===d1.AuthMechanism.MONGODB_PLAIN&&this.source==null)throw new s0.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===d1.AuthMechanism.MONGODB_X509&&this.password!=null){if(this.password===""){Reflect.set(this,"password",void 0);return}throw new s0.MongoAPIError("Password not allowed for mechanism MONGODB-X509")}const J=this.mechanismProperties.CANONICALIZE_HOST_NAME??!1;if(!Object.values(lg.GSSAPICanonicalizationValue).includes(J))throw new s0.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${J}`)}static merge(J,Z){return new QZ({username:Z.username??J?.username??"",password:Z.password??J?.password??"",mechanism:Z.mechanism??J?.mechanism??d1.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:Z.mechanismProperties??J?.mechanismProperties??{},source:Z.source??Z.db??J?.source??"admin"})}}Aw.MongoCredentials=QZ});var FZ=V((Tw)=>{var K1=function(J,Z,$){if($.globals)J=$.globals[J.name];return new J(`${$.context?$.context:"Value"} ${Z}.`)},w7=function(J,Z){if(typeof J==="bigint")throw K1(TypeError,"is a BigInt which cannot be converted to a number",Z);if(!Z.globals)return Number(J);return Z.globals.Number(J)},Dw=function(J){if(J>0&&J%1===0.5&&(J&1)===0||J<0&&J%1===-0.5&&(J&1)===1)return o5(Math.floor(J));return o5(Math.round(J))},GZ=function(J){return o5(Math.trunc(J))},Rw=function(J){return J<0?-1:1},sg=function(J,Z){const $=J%Z;if(Rw(Z)!==Rw($))return $+Z;return $},o5=function(J){return J===0?0:J},R7=function(J,{unsigned:Z}){let $,X;if(Z)$=0,X=2**J-1;else $=-(2**(J-1)),X=2**(J-1)-1;const Y=2**J,Q=2**(J-1);return(K,G={})=>{let F=w7(K,G);if(F=o5(F),G.enforceRange){if(!Number.isFinite(F))throw K1(TypeError,"is not a finite number",G);if(F=GZ(F),F<$||F>X)throw K1(TypeError,`is outside the accepted range of ${$} to ${X}, inclusive`,G);return F}if(!Number.isNaN(F)&&G.clamp)return F=Math.min(Math.max(F,$),X),F=Dw(F),F;if(!Number.isFinite(F)||F===0)return 0;if(F=GZ(F),F>=$&&F<=X)return F;if(F=sg(F,Y),!Z&&F>=Q)return F-Y;return F}},Pw=function(J,{unsigned:Z}){const $=Number.MAX_SAFE_INTEGER,X=Z?0:Number.MIN_SAFE_INTEGER,Y=Z?BigInt.asUintN:BigInt.asIntN;return(Q,K={})=>{let G=w7(Q,K);if(G=o5(G),K.enforceRange){if(!Number.isFinite(G))throw K1(TypeError,"is not a finite number",K);if(G=GZ(G),G<X||G>$)throw K1(TypeError,`is outside the accepted range of ${X} to ${$}, inclusive`,K);return G}if(!Number.isNaN(G)&&K.clamp)return G=Math.min(Math.max(G,X),$),G=Dw(G),G;if(!Number.isFinite(G)||G===0)return 0;let F=BigInt(GZ(G));return F=Y(J,F),Number(F)}},yY=function(J){try{return ng.call(J),!0}catch{return!1}},A7=function(J){try{return tg.call(J),!0}catch{return!1}},L7=function(J){try{return new Uint8Array(J),!1}catch{return!0}};Tw.any=(J)=>{return J};Tw.undefined=()=>{return};Tw.boolean=(J)=>{return Boolean(J)};Tw.byte=R7(8,{unsigned:!1});Tw.octet=R7(8,{unsigned:!0});Tw.short=R7(16,{unsigned:!1});Tw["unsigned short"]=R7(16,{unsigned:!0});Tw.long=R7(32,{unsigned:!1});Tw["unsigned long"]=R7(32,{unsigned:!0});Tw["long long"]=Pw(64,{unsigned:!1});Tw["unsigned long long"]=Pw(64,{unsigned:!0});Tw.double=(J,Z={})=>{const $=w7(J,Z);if(!Number.isFinite($))throw K1(TypeError,"is not a finite floating-point value",Z);return $};Tw["unrestricted double"]=(J,Z={})=>{return w7(J,Z)};Tw.float=(J,Z={})=>{const $=w7(J,Z);if(!Number.isFinite($))throw K1(TypeError,"is not a finite floating-point value",Z);if(Object.is($,-0))return $;const X=Math.fround($);if(!Number.isFinite(X))throw K1(TypeError,"is outside the range of a single-precision floating-point value",Z);return X};Tw["unrestricted float"]=(J,Z={})=>{const $=w7(J,Z);if(isNaN($))return $;if(Object.is($,-0))return $;return Math.fround($)};Tw.DOMString=(J,Z={})=>{if(Z.treatNullAsEmptyString&&J===null)return"";if(typeof J==="symbol")throw K1(TypeError,"is a symbol, which cannot be converted to a string",Z);return(Z.globals?Z.globals.String:String)(J)};Tw.ByteString=(J,Z={})=>{const $=Tw.DOMString(J,Z);let X;for(let Y=0;(X=$.codePointAt(Y))!==void 0;++Y)if(X>255)throw K1(TypeError,"is not a valid ByteString",Z);return $};Tw.USVString=(J,Z={})=>{const $=Tw.DOMString(J,Z),X=$.length,Y=[];for(let Q=0;Q<X;++Q){const K=$.charCodeAt(Q);if(K<55296||K>57343)Y.push(String.fromCodePoint(K));else if(56320<=K&&K<=57343)Y.push(String.fromCodePoint(65533));else if(Q===X-1)Y.push(String.fromCodePoint(65533));else{const G=$.charCodeAt(Q+1);if(56320<=G&&G<=57343){const F=K&1023,q=G&1023;Y.push(String.fromCodePoint((2<<15)+(2<<9)*F+q)),++Q}else Y.push(String.fromCodePoint(65533))}}return Y.join("")};Tw.object=(J,Z={})=>{if(J===null||typeof J!=="object"&&typeof J!=="function")throw K1(TypeError,"is not an object",Z);return J};var ng=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,tg=typeof SharedArrayBuffer==="function"?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;Tw.ArrayBuffer=(J,Z={})=>{if(!yY(J)){if(Z.allowShared&&!A7(J))throw K1(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",Z);throw K1(TypeError,"is not an ArrayBuffer",Z)}if(L7(J))throw K1(TypeError,"is a detached ArrayBuffer",Z);return J};var rg=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;Tw.DataView=(J,Z={})=>{try{rg.call(J)}catch($){throw K1(TypeError,"is not a DataView",Z)}if(!Z.allowShared&&A7(J.buffer))throw K1(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",Z);if(L7(J.buffer))throw K1(TypeError,"is backed by a detached ArrayBuffer",Z);return J};var og=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((J)=>{const{name:Z}=J,$=/^[AEIOU]/u.test(Z)?"an":"a";Tw[Z]=(X,Y={})=>{if(!ArrayBuffer.isView(X)||og.call(X)!==Z)throw K1(TypeError,`is not ${$} ${Z} object`,Y);if(!Y.allowShared&&A7(X.buffer))throw K1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Y);if(L7(X.buffer))throw K1(TypeError,"is a view on a detached ArrayBuffer",Y);return X}});Tw.ArrayBufferView=(J,Z={})=>{if(!ArrayBuffer.isView(J))throw K1(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",Z);if(!Z.allowShared&&A7(J.buffer))throw K1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Z);if(L7(J.buffer))throw K1(TypeError,"is a view on a detached ArrayBuffer",Z);return J};Tw.BufferSource=(J,Z={})=>{if(ArrayBuffer.isView(J)){if(!Z.allowShared&&A7(J.buffer))throw K1(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",Z);if(L7(J.buffer))throw K1(TypeError,"is a view on a detached ArrayBuffer",Z);return J}if(!Z.allowShared&&!yY(J))throw K1(TypeError,"is not an ArrayBuffer or a view on one",Z);if(Z.allowShared&&!A7(J)&&!yY(J))throw K1(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",Z);if(L7(J))throw K1(TypeError,"is a detached ArrayBuffer",Z);return J};Tw.DOMTimeStamp=Tw["unsigned long long"]});var WZ=V((Ow,kw)=>{var Dm=function(J){return typeof J==="object"&&J!==null||typeof J==="function"},Pm=function(J,Z){for(let $ of Reflect.ownKeys(Z)){const X=Reflect.getOwnPropertyDescriptor(Z,$);if(X&&!Reflect.defineProperty(J,$,X))throw new TypeError(`Cannot redefine property: ${String($)}`)}},Tm=function(J,Z){const $=Cw(J);return Object.defineProperties(Object.create($["%Object.prototype%"]),Object.getOwnPropertyDescriptors(Z))},Cw=function(J){if(Nw(J,qZ))return J[qZ];const Z=Object.create(null);Z["%Object.prototype%"]=J.Object.prototype,Z["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(new J.Array()[Symbol.iterator]()));try{Z["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(J.eval("(async function* () {})").prototype))}catch{Z["%AsyncIteratorPrototype%"]=Im}return J[qZ]=Z,Z},Nm=function(J,Z,$){if(!J[D7])J[D7]=Object.create(null);if(Z in J[D7])return J[D7][Z];return J[D7][Z]=$(),J[D7][Z]},hw=function(J){return J?J[Bw]:null},Sw=function(J){return J?J[Ew]:null},Bm=function(J){const Z=hw(J);return Z?Z:J},Em=function(J){const Z=Sw(J);return Z?Z:J},hm=function(J){if(typeof J!=="string")return!1;const Z=J>>>0;if(Z===4294967295)return!1;const $=`${Z}`;if(J!==$)return!1;return!0},Om=function(J){try{return Sm.call(J),!0}catch(Z){return!1}},km=function([J,Z],$){let X;switch($){case"key":X=J;break;case"value":X=Z;break;case"key+value":X=[J,Z];break}return{value:X,done:!1}},Nw=Function.prototype.call.bind(Object.prototype.hasOwnProperty),Bw=Symbol("wrapper"),Ew=Symbol("impl"),D7=Symbol("SameObject caches"),qZ=Symbol.for("[webidl2js] constructor registry"),Im=Object.getPrototypeOf(Object.getPrototypeOf(async function*(){}).prototype),Cm=Symbol("internal"),Sm=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,ym=Symbol("supports property index"),_m=Symbol("supported property indices"),fm=Symbol("supports property name"),vm=Symbol("supported property names"),xm=Symbol("indexed property get"),bm=Symbol("indexed property set new"),gm=Symbol("indexed property set existing"),mm=Symbol("named property get"),um=Symbol("named property set new"),dm=Symbol("named property set existing"),cm=Symbol("named property delete"),pm=Symbol("async iterator get the next iteration result"),lm=Symbol("async iterator return steps"),am=Symbol("async iterator initialization steps"),im=Symbol("async iterator end of iteration");kw.exports=Ow={isObject:Dm,hasOwn:Nw,define:Pm,newObjectInRealm:Tm,wrapperSymbol:Bw,implSymbol:Ew,getSameObject:Nm,ctorRegistrySymbol:qZ,initCtorRegistry:Cw,wrapperForImpl:hw,implForWrapper:Sw,tryWrapperForImpl:Bm,tryImplForWrapper:Em,iterInternalSymbol:Cm,isArrayBuffer:Om,isArrayIndexPropName:hm,supportsPropertyIndex:ym,supportedPropertyIndices:_m,supportsPropertyName:fm,supportedPropertyNames:vm,indexedGet:xm,indexedSetNew:bm,indexedSetExisting:gm,namedGet:mm,namedSetNew:um,namedSetExisting:dm,namedDelete:cm,asyncIteratorNext:pm,asyncIteratorReturn:lm,asyncIteratorInit:am,asyncIteratorEOI:im,iteratorResult:km}});var mw=V((S01,gw)=>{var b8=function(J){throw new RangeError(rm[J])},om=function(J,Z){const $=[];let X=J.length;while(X--)$[X]=Z(J[X]);return $},_w=function(J,Z){const $=J.split("@");let X="";if($.length>1)X=$[0]+"@",J=$[1];J=J.replace(tm,".");const Y=J.split("."),Q=om(Y,Z).join(".");return X+Q},fw=function(J){const Z=[];let $=0;const X=J.length;while($<X){const Y=J.charCodeAt($++);if(Y>=55296&&Y<=56319&&$<X){const Q=J.charCodeAt($++);if((Q&64512)==56320)Z.push(((Y&1023)<<10)+(Q&1023)+65536);else Z.push(Y),$--}else Z.push(Y)}return Z},sm=/^xn--/,nm=/[^\0-\x7F]/,tm=/[\x2E\u3002\uFF0E\uFF61]/g,rm={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k6=Math.floor,fY=String.fromCharCode,em=(J)=>String.fromCodePoint(...J),Ju=function(J){if(J>=48&&J<58)return 26+(J-48);if(J>=65&&J<91)return J-65;if(J>=97&&J<123)return J-97;return 36},yw=function(J,Z){return J+22+75*(J<26)-((Z!=0)<<5)},vw=function(J,Z,$){let X=0;J=$?k6(J/700):J>>1,J+=k6(J/Z);for(;J>910>>1;X+=36)J=k6(J/35);return k6(X+36*J/(J+38))},xw=function(J){const Z=[],$=J.length;let X=0,Y=128,Q=72,K=J.lastIndexOf("-");if(K<0)K=0;for(let G=0;G<K;++G){if(J.charCodeAt(G)>=128)b8("not-basic");Z.push(J.charCodeAt(G))}for(let G=K>0?K+1:0;G<$;){const F=X;for(let W=1,H=36;;H+=36){if(G>=$)b8("invalid-input");const U=Ju(J.charCodeAt(G++));if(U>=36)b8("invalid-input");if(U>k6((2147483647-X)/W))b8("overflow");X+=U*W;const j=H<=Q?1:H>=Q+26?26:H-Q;if(U<j)break;const z=36-j;if(W>k6(2147483647/z))b8("overflow");W*=z}const q=Z.length+1;if(Q=vw(X-F,q,F==0),k6(X/q)>2147483647-Y)b8("overflow");Y+=k6(X/q),X%=q,Z.splice(X++,0,Y)}return String.fromCodePoint(...Z)},bw=function(J){const Z=[];J=fw(J);const $=J.length;let X=128,Y=0,Q=72;for(let F of J)if(F<128)Z.push(fY(F));const K=Z.length;let G=K;if(K)Z.push("-");while(G<$){let F=2147483647;for(let W of J)if(W>=X&&W<F)F=W;const q=G+1;if(F-X>k6((2147483647-Y)/q))b8("overflow");Y+=(F-X)*q,X=F;for(let W of J){if(W<X&&++Y>2147483647)b8("overflow");if(W===X){let H=Y;for(let U=36;;U+=36){const j=U<=Q?1:U>=Q+26?26:U-Q;if(H<j)break;const z=H-j,A=36-j;Z.push(fY(yw(j+z%A,0))),H=k6(z/A)}Z.push(fY(yw(H,0))),Q=vw(Y,q,G===K),Y=0,++G}}++Y,++X}return Z.join("")},Zu=function(J){return _w(J,function(Z){return sm.test(Z)?xw(Z.slice(4).toLowerCase()):Z})},$u=function(J){return _w(J,function(Z){return nm.test(Z)?"xn--"+bw(Z):Z})},Xu={version:"2.3.1",ucs2:{decode:fw,encode:em},decode:xw,encode:bw,toASCII:$u,toUnicode:Zu};gw.exports=Xu});var dw=V((O01,uw)=>{var Yu=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{11241}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{11F00}\u{11F01}\u{11F03}\u{11F34}-\u{11F3A}\u{11F3E}-\u{11F42}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,Qu=/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}]/u,Ku=/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u08A0-\u08A9\u08AF\u08B0\u08B3\u08B4\u08B6-\u08B8\u08BA-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0855\u0860\u0862-\u0865\u0867-\u086A\u08A0-\u08AC\u08AE-\u08B4\u08B6-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{1E900}-\u{1E943}]/u,Gu=/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,Fu=/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,qu=/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,Wu=/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0898-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2426\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E3\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10EFD}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{11FD5}-\u{11FF1}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6DB}\u{1D715}\u{1D74F}\u{1D789}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E4EC}-\u{1E4EF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA88}\u{1FA90}-\u{1FABD}\u{1FABF}-\u{1FAC5}\u{1FACE}-\u{1FADB}\u{1FAE0}-\u{1FAE8}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,Hu=/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,Vu=/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,zu=/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,Uu=/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B7E\u1B80-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2426\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E3\u31F0-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{11241}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11F00}-\u{11F10}\u{11F12}-\u{11F3A}\u{11F3E}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{13455}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E030}-\u{1E06D}\u{1E08F}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E4D0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DC}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F776}\u{1F77B}-\u{1F7D9}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA7C}\u{1FA80}-\u{1FA88}\u{1FA90}-\u{1FABD}\u{1FABF}-\u{1FAC5}\u{1FACE}-\u{1FADB}\u{1FAE0}-\u{1FAE8}\u{1FAF0}-\u{1FAF8}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,Mu=/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11B00}-\u{11B09}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11F02}-\u{11F10}\u{11F12}-\u{11F35}\u{11F3E}\u{11F3F}\u{11F41}\u{11F43}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1343F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10EFD}-\u{10EFF}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{11241}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11F00}\u{11F01}\u{11F36}-\u{11F3A}\u{11F40}\u{11F42}\u{13440}\u{13447}-\u{13455}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E08F}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E4EC}-\u{1E4EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u;uw.exports={combiningMarks:Yu,combiningClassVirama:Qu,validZWNJ:Ku,bidiDomain:Gu,bidiS1LTR:Fu,bidiS1RTL:qu,bidiS2:Wu,bidiS3:Hu,bidiS4EN:Vu,bidiS4AN:zu,bidiS5:Uu,bidiS6:Mu}});var cw=V((k01,ju)=>{ju.exports=[[[0,44],4],[[45,46],2],[47,4],[[48,57],2],[[58,64],4],[65,1,"a"],[66,1,"b"],[67,1,"c"],[68,1,"d"],[69,1,"e"],[70,1,"f"],[71,1,"g"],[72,1,"h"],[73,1,"i"],[74,1,"j"],[75,1,"k"],[76,1,"l"],[77,1,"m"],[78,1,"n"],[79,1,"o"],[80,1,"p"],[81,1,"q"],[82,1,"r"],[83,1,"s"],[84,1,"t"],[85,1,"u"],[86,1,"v"],[87,1,"w"],[88,1,"x"],[89,1,"y"],[90,1,"z"],[[91,96],4],[[97,122],2],[[123,127],4],[[128,159],3],[160,5," "],[[161,167],2],[168,5," \u0308"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," \u0304"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," \u0301"],[181,1,"\u03BC"],[182,2],[183,2],[184,5," \u0327"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1\u20444"],[189,1,"1\u20442"],[190,1,"3\u20444"],[191,2],[192,1,"\xE0"],[193,1,"\xE1"],[194,1,"\xE2"],[195,1,"\xE3"],[196,1,"\xE4"],[197,1,"\xE5"],[198,1,"\xE6"],[199,1,"\xE7"],[200,1,"\xE8"],[201,1,"\xE9"],[202,1,"\xEA"],[203,1,"\xEB"],[204,1,"\xEC"],[205,1,"\xED"],[206,1,"\xEE"],[207,1,"\xEF"],[208,1,"\xF0"],[209,1,"\xF1"],[210,1,"\xF2"],[211,1,"\xF3"],[212,1,"\xF4"],[213,1,"\xF5"],[214,1,"\xF6"],[215,2],[216,1,"\xF8"],[217,1,"\xF9"],[218,1,"\xFA"],[219,1,"\xFB"],[220,1,"\xFC"],[221,1,"\xFD"],[222,1,"\xFE"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"\u0101"],[257,2],[258,1,"\u0103"],[259,2],[260,1,"\u0105"],[261,2],[262,1,"\u0107"],[263,2],[264,1,"\u0109"],[265,2],[266,1,"\u010B"],[267,2],[268,1,"\u010D"],[269,2],[270,1,"\u010F"],[271,2],[272,1,"\u0111"],[273,2],[274,1,"\u0113"],[275,2],[276,1,"\u0115"],[277,2],[278,1,"\u0117"],[279,2],[280,1,"\u0119"],[281,2],[282,1,"\u011B"],[283,2],[284,1,"\u011D"],[285,2],[286,1,"\u011F"],[287,2],[288,1,"\u0121"],[289,2],[290,1,"\u0123"],[291,2],[292,1,"\u0125"],[293,2],[294,1,"\u0127"],[295,2],[296,1,"\u0129"],[297,2],[298,1,"\u012B"],[299,2],[300,1,"\u012D"],[301,2],[302,1,"\u012F"],[303,2],[304,1,"i\u0307"],[305,2],[[306,307],1,"ij"],[308,1,"\u0135"],[309,2],[310,1,"\u0137"],[[311,312],2],[313,1,"\u013A"],[314,2],[315,1,"\u013C"],[316,2],[317,1,"\u013E"],[318,2],[[319,320],1,"l\xB7"],[321,1,"\u0142"],[322,2],[323,1,"\u0144"],[324,2],[325,1,"\u0146"],[326,2],[327,1,"\u0148"],[328,2],[329,1,"\u02BCn"],[330,1,"\u014B"],[331,2],[332,1,"\u014D"],[333,2],[334,1,"\u014F"],[335,2],[336,1,"\u0151"],[337,2],[338,1,"\u0153"],[339,2],[340,1,"\u0155"],[341,2],[342,1,"\u0157"],[343,2],[344,1,"\u0159"],[345,2],[346,1,"\u015B"],[347,2],[348,1,"\u015D"],[349,2],[350,1,"\u015F"],[351,2],[352,1,"\u0161"],[353,2],[354,1,"\u0163"],[355,2],[356,1,"\u0165"],[357,2],[358,1,"\u0167"],[359,2],[360,1,"\u0169"],[361,2],[362,1,"\u016B"],[363,2],[364,1,"\u016D"],[365,2],[366,1,"\u016F"],[367,2],[368,1,"\u0171"],[369,2],[370,1,"\u0173"],[371,2],[372,1,"\u0175"],[373,2],[374,1,"\u0177"],[375,2],[376,1,"\xFF"],[377,1,"\u017A"],[378,2],[379,1,"\u017C"],[380,2],[381,1,"\u017E"],[382,2],[383,1,"s"],[384,2],[385,1,"\u0253"],[386,1,"\u0183"],[387,2],[388,1,"\u0185"],[389,2],[390,1,"\u0254"],[391,1,"\u0188"],[392,2],[393,1,"\u0256"],[394,1,"\u0257"],[395,1,"\u018C"],[[396,397],2],[398,1,"\u01DD"],[399,1,"\u0259"],[400,1,"\u025B"],[401,1,"\u0192"],[402,2],[403,1,"\u0260"],[404,1,"\u0263"],[405,2],[406,1,"\u0269"],[407,1,"\u0268"],[408,1,"\u0199"],[[409,411],2],[412,1,"\u026F"],[413,1,"\u0272"],[414,2],[415,1,"\u0275"],[416,1,"\u01A1"],[417,2],[418,1,"\u01A3"],[419,2],[420,1,"\u01A5"],[421,2],[422,1,"\u0280"],[423,1,"\u01A8"],[424,2],[425,1,"\u0283"],[[426,427],2],[428,1,"\u01AD"],[429,2],[430,1,"\u0288"],[431,1,"\u01B0"],[432,2],[433,1,"\u028A"],[434,1,"\u028B"],[435,1,"\u01B4"],[436,2],[437,1,"\u01B6"],[438,2],[439,1,"\u0292"],[440,1,"\u01B9"],[[441,443],2],[444,1,"\u01BD"],[[445,451],2],[[452,454],1,"d\u017E"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"\u01CE"],[462,2],[463,1,"\u01D0"],[464,2],[465,1,"\u01D2"],[466,2],[467,1,"\u01D4"],[468,2],[469,1,"\u01D6"],[470,2],[471,1,"\u01D8"],[472,2],[473,1,"\u01DA"],[474,2],[475,1,"\u01DC"],[[476,477],2],[478,1,"\u01DF"],[479,2],[480,1,"\u01E1"],[481,2],[482,1,"\u01E3"],[483,2],[484,1,"\u01E5"],[485,2],[486,1,"\u01E7"],[487,2],[488,1,"\u01E9"],[489,2],[490,1,"\u01EB"],[491,2],[492,1,"\u01ED"],[493,2],[494,1,"\u01EF"],[[495,496],2],[[497,499],1,"dz"],[500,1,"\u01F5"],[501,2],[502,1,"\u0195"],[503,1,"\u01BF"],[504,1,"\u01F9"],[505,2],[506,1,"\u01FB"],[507,2],[508,1,"\u01FD"],[509,2],[510,1,"\u01FF"],[511,2],[512,1,"\u0201"],[513,2],[514,1,"\u0203"],[515,2],[516,1,"\u0205"],[517,2],[518,1,"\u0207"],[519,2],[520,1,"\u0209"],[521,2],[522,1,"\u020B"],[523,2],[524,1,"\u020D"],[525,2],[526,1,"\u020F"],[527,2],[528,1,"\u0211"],[529,2],[530,1,"\u0213"],[531,2],[532,1,"\u0215"],[533,2],[534,1,"\u0217"],[535,2],[536,1,"\u0219"],[537,2],[538,1,"\u021B"],[539,2],[540,1,"\u021D"],[541,2],[542,1,"\u021F"],[543,2],[544,1,"\u019E"],[545,2],[546,1,"\u0223"],[547,2],[548,1,"\u0225"],[549,2],[550,1,"\u0227"],[551,2],[552,1,"\u0229"],[553,2],[554,1,"\u022B"],[555,2],[556,1,"\u022D"],[557,2],[558,1,"\u022F"],[559,2],[560,1,"\u0231"],[561,2],[562,1,"\u0233"],[563,2],[[564,566],2],[[567,569],2],[570,1,"\u2C65"],[571,1,"\u023C"],[572,2],[573,1,"\u019A"],[574,1,"\u2C66"],[[575,576],2],[577,1,"\u0242"],[578,2],[579,1,"\u0180"],[580,1,"\u0289"],[581,1,"\u028C"],[582,1,"\u0247"],[583,2],[584,1,"\u0249"],[585,2],[586,1,"\u024B"],[587,2],[588,1,"\u024D"],[589,2],[590,1,"\u024F"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"\u0266"],[690,1,"j"],[691,1,"r"],[692,1,"\u0279"],[693,1,"\u027B"],[694,1,"\u0281"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," \u0306"],[729,5," \u0307"],[730,5," \u030A"],[731,5," \u0328"],[732,5," \u0303"],[733,5," \u030B"],[734,2],[735,2],[736,1,"\u0263"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"\u0295"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"\u0300"],[833,1,"\u0301"],[834,2],[835,1,"\u0313"],[836,1,"\u0308\u0301"],[837,1,"\u03B9"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"\u0371"],[881,2],[882,1,"\u0373"],[883,2],[884,1,"\u02B9"],[885,2],[886,1,"\u0377"],[887,2],[[888,889],3],[890,5," \u03B9"],[[891,893],2],[894,5,";"],[895,1,"\u03F3"],[[896,899],3],[900,5," \u0301"],[901,5," \u0308\u0301"],[902,1,"\u03AC"],[903,1,"\xB7"],[904,1,"\u03AD"],[905,1,"\u03AE"],[906,1,"\u03AF"],[907,3],[908,1,"\u03CC"],[909,3],[910,1,"\u03CD"],[911,1,"\u03CE"],[912,2],[913,1,"\u03B1"],[914,1,"\u03B2"],[915,1,"\u03B3"],[916,1,"\u03B4"],[917,1,"\u03B5"],[918,1,"\u03B6"],[919,1,"\u03B7"],[920,1,"\u03B8"],[921,1,"\u03B9"],[922,1,"\u03BA"],[923,1,"\u03BB"],[924,1,"\u03BC"],[925,1,"\u03BD"],[926,1,"\u03BE"],[927,1,"\u03BF"],[928,1,"\u03C0"],[929,1,"\u03C1"],[930,3],[931,1,"\u03C3"],[932,1,"\u03C4"],[933,1,"\u03C5"],[934,1,"\u03C6"],[935,1,"\u03C7"],[936,1,"\u03C8"],[937,1,"\u03C9"],[938,1,"\u03CA"],[939,1,"\u03CB"],[[940,961],2],[962,6,"\u03C3"],[[963,974],2],[975,1,"\u03D7"],[976,1,"\u03B2"],[977,1,"\u03B8"],[978,1,"\u03C5"],[979,1,"\u03CD"],[980,1,"\u03CB"],[981,1,"\u03C6"],[982,1,"\u03C0"],[983,2],[984,1,"\u03D9"],[985,2],[986,1,"\u03DB"],[987,2],[988,1,"\u03DD"],[989,2],[990,1,"\u03DF"],[991,2],[992,1,"\u03E1"],[993,2],[994,1,"\u03E3"],[995,2],[996,1,"\u03E5"],[997,2],[998,1,"\u03E7"],[999,2],[1000,1,"\u03E9"],[1001,2],[1002,1,"\u03EB"],[1003,2],[1004,1,"\u03ED"],[1005,2],[1006,1,"\u03EF"],[1007,2],[1008,1,"\u03BA"],[1009,1,"\u03C1"],[1010,1,"\u03C3"],[1011,2],[1012,1,"\u03B8"],[1013,1,"\u03B5"],[1014,2],[1015,1,"\u03F8"],[1016,2],[1017,1,"\u03C3"],[1018,1,"\u03FB"],[1019,2],[1020,2],[1021,1,"\u037B"],[1022,1,"\u037C"],[1023,1,"\u037D"],[1024,1,"\u0450"],[1025,1,"\u0451"],[1026,1,"\u0452"],[1027,1,"\u0453"],[1028,1,"\u0454"],[1029,1,"\u0455"],[1030,1,"\u0456"],[1031,1,"\u0457"],[1032,1,"\u0458"],[1033,1,"\u0459"],[1034,1,"\u045A"],[1035,1,"\u045B"],[1036,1,"\u045C"],[1037,1,"\u045D"],[1038,1,"\u045E"],[1039,1,"\u045F"],[1040,1,"\u0430"],[1041,1,"\u0431"],[1042,1,"\u0432"],[1043,1,"\u0433"],[1044,1,"\u0434"],[1045,1,"\u0435"],[1046,1,"\u0436"],[1047,1,"\u0437"],[1048,1,"\u0438"],[1049,1,"\u0439"],[1050,1,"\u043A"],[1051,1,"\u043B"],[1052,1,"\u043C"],[1053,1,"\u043D"],[1054,1,"\u043E"],[1055,1,"\u043F"],[1056,1,"\u0440"],[1057,1,"\u0441"],[1058,1,"\u0442"],[1059,1,"\u0443"],[1060,1,"\u0444"],[1061,1,"\u0445"],[1062,1,"\u0446"],[1063,1,"\u0447"],[1064,1,"\u0448"],[1065,1,"\u0449"],[1066,1,"\u044A"],[1067,1,"\u044B"],[1068,1,"\u044C"],[1069,1,"\u044D"],[1070,1,"\u044E"],[1071,1,"\u044F"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"\u0461"],[1121,2],[1122,1,"\u0463"],[1123,2],[1124,1,"\u0465"],[1125,2],[1126,1,"\u0467"],[1127,2],[1128,1,"\u0469"],[1129,2],[1130,1,"\u046B"],[1131,2],[1132,1,"\u046D"],[1133,2],[1134,1,"\u046F"],[1135,2],[1136,1,"\u0471"],[1137,2],[1138,1,"\u0473"],[1139,2],[1140,1,"\u0475"],[1141,2],[1142,1,"\u0477"],[1143,2],[1144,1,"\u0479"],[1145,2],[1146,1,"\u047B"],[1147,2],[1148,1,"\u047D"],[1149,2],[1150,1,"\u047F"],[1151,2],[1152,1,"\u0481"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"\u048B"],[1163,2],[1164,1,"\u048D"],[1165,2],[1166,1,"\u048F"],[1167,2],[1168,1,"\u0491"],[1169,2],[1170,1,"\u0493"],[1171,2],[1172,1,"\u0495"],[1173,2],[1174,1,"\u0497"],[1175,2],[1176,1,"\u0499"],[1177,2],[1178,1,"\u049B"],[1179,2],[1180,1,"\u049D"],[1181,2],[1182,1,"\u049F"],[1183,2],[1184,1,"\u04A1"],[1185,2],[1186,1,"\u04A3"],[1187,2],[1188,1,"\u04A5"],[1189,2],[1190,1,"\u04A7"],[1191,2],[1192,1,"\u04A9"],[1193,2],[1194,1,"\u04AB"],[1195,2],[1196,1,"\u04AD"],[1197,2],[1198,1,"\u04AF"],[1199,2],[1200,1,"\u04B1"],[1201,2],[1202,1,"\u04B3"],[1203,2],[1204,1,"\u04B5"],[1205,2],[1206,1,"\u04B7"],[1207,2],[1208,1,"\u04B9"],[1209,2],[1210,1,"\u04BB"],[1211,2],[1212,1,"\u04BD"],[1213,2],[1214,1,"\u04BF"],[1215,2],[1216,3],[1217,1,"\u04C2"],[1218,2],[1219,1,"\u04C4"],[1220,2],[1221,1,"\u04C6"],[1222,2],[1223,1,"\u04C8"],[1224,2],[1225,1,"\u04CA"],[1226,2],[1227,1,"\u04CC"],[1228,2],[1229,1,"\u04CE"],[1230,2],[1231,2],[1232,1,"\u04D1"],[1233,2],[1234,1,"\u04D3"],[1235,2],[1236,1,"\u04D5"],[1237,2],[1238,1,"\u04D7"],[1239,2],[1240,1,"\u04D9"],[1241,2],[1242,1,"\u04DB"],[1243,2],[1244,1,"\u04DD"],[1245,2],[1246,1,"\u04DF"],[1247,2],[1248,1,"\u04E1"],[1249,2],[1250,1,"\u04E3"],[1251,2],[1252,1,"\u04E5"],[1253,2],[1254,1,"\u04E7"],[1255,2],[1256,1,"\u04E9"],[1257,2],[1258,1,"\u04EB"],[1259,2],[1260,1,"\u04ED"],[1261,2],[1262,1,"\u04EF"],[1263,2],[1264,1,"\u04F1"],[1265,2],[1266,1,"\u04F3"],[1267,2],[1268,1,"\u04F5"],[1269,2],[1270,1,"\u04F7"],[1271,2],[1272,1,"\u04F9"],[1273,2],[1274,1,"\u04FB"],[1275,2],[1276,1,"\u04FD"],[1277,2],[1278,1,"\u04FF"],[1279,2],[1280,1,"\u0501"],[1281,2],[1282,1,"\u0503"],[1283,2],[1284,1,"\u0505"],[1285,2],[1286,1,"\u0507"],[1287,2],[1288,1,"\u0509"],[1289,2],[1290,1,"\u050B"],[1291,2],[1292,1,"\u050D"],[1293,2],[1294,1,"\u050F"],[1295,2],[1296,1,"\u0511"],[1297,2],[1298,1,"\u0513"],[1299,2],[1300,1,"\u0515"],[1301,2],[1302,1,"\u0517"],[1303,2],[1304,1,"\u0519"],[1305,2],[1306,1,"\u051B"],[1307,2],[1308,1,"\u051D"],[1309,2],[1310,1,"\u051F"],[1311,2],[1312,1,"\u0521"],[1313,2],[1314,1,"\u0523"],[1315,2],[1316,1,"\u0525"],[1317,2],[1318,1,"\u0527"],[1319,2],[1320,1,"\u0529"],[1321,2],[1322,1,"\u052B"],[1323,2],[1324,1,"\u052D"],[1325,2],[1326,1,"\u052F"],[1327,2],[1328,3],[1329,1,"\u0561"],[1330,1,"\u0562"],[1331,1,"\u0563"],[1332,1,"\u0564"],[1333,1,"\u0565"],[1334,1,"\u0566"],[1335,1,"\u0567"],[1336,1,"\u0568"],[1337,1,"\u0569"],[1338,1,"\u056A"],[1339,1,"\u056B"],[1340,1,"\u056C"],[1341,1,"\u056D"],[1342,1,"\u056E"],[1343,1,"\u056F"],[1344,1,"\u0570"],[1345,1,"\u0571"],[1346,1,"\u0572"],[1347,1,"\u0573"],[1348,1,"\u0574"],[1349,1,"\u0575"],[1350,1,"\u0576"],[1351,1,"\u0577"],[1352,1,"\u0578"],[1353,1,"\u0579"],[1354,1,"\u057A"],[1355,1,"\u057B"],[1356,1,"\u057C"],[1357,1,"\u057D"],[1358,1,"\u057E"],[1359,1,"\u057F"],[1360,1,"\u0580"],[1361,1,"\u0581"],[1362,1,"\u0582"],[1363,1,"\u0583"],[1364,1,"\u0584"],[1365,1,"\u0585"],[1366,1,"\u0586"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"\u0565\u0582"],[1416,2],[1417,2],[1418,2],[[1419,1420],3],[[1421,1422],2],[1423,2],[1424,3],[[1425,1441],2],[1442,2],[[1443,1455],2],[[1456,1465],2],[1466,2],[[1467,1469],2],[1470,2],[1471,2],[1472,2],[[1473,1474],2],[1475,2],[1476,2],[1477,2],[1478,2],[1479,2],[[1480,1487],3],[[1488,1514],2],[[1515,1518],3],[1519,2],[[1520,1524],2],[[1525,1535],3],[[1536,1539],3],[1540,3],[1541,3],[[1542,1546],2],[1547,2],[1548,2],[[1549,1551],2],[[1552,1557],2],[[1558,1562],2],[1563,2],[1564,3],[1565,2],[1566,2],[1567,2],[1568,2],[[1569,1594],2],[[1595,1599],2],[1600,2],[[1601,1618],2],[[1619,1621],2],[[1622,1624],2],[[1625,1630],2],[1631,2],[[1632,1641],2],[[1642,1645],2],[[1646,1647],2],[[1648,1652],2],[1653,1,"\u0627\u0674"],[1654,1,"\u0648\u0674"],[1655,1,"\u06C7\u0674"],[1656,1,"\u064A\u0674"],[[1657,1719],2],[[1720,1721],2],[[1722,1726],2],[1727,2],[[1728,1742],2],[1743,2],[[1744,1747],2],[1748,2],[[1749,1756],2],[1757,3],[1758,2],[[1759,1768],2],[1769,2],[[1770,1773],2],[[1774,1775],2],[[1776,1785],2],[[1786,1790],2],[1791,2],[[1792,1805],2],[1806,3],[1807,3],[[1808,1836],2],[[1837,1839],2],[[1840,1866],2],[[1867,1868],3],[[1869,1871],2],[[1872,1901],2],[[1902,1919],2],[[1920,1968],2],[1969,2],[[1970,1983],3],[[1984,2037],2],[[2038,2042],2],[[2043,2044],3],[2045,2],[[2046,2047],2],[[2048,2093],2],[[2094,2095],3],[[2096,2110],2],[2111,3],[[2112,2139],2],[[2140,2141],3],[2142,2],[2143,3],[[2144,2154],2],[[2155,2159],3],[[2160,2183],2],[2184,2],[[2185,2190],2],[2191,3],[[2192,2193],3],[[2194,2199],3],[[2200,2207],2],[2208,2],[2209,2],[[2210,2220],2],[[2221,2226],2],[[2227,2228],2],[2229,2],[[2230,2237],2],[[2238,2247],2],[[2248,2258],2],[2259,2],[[2260,2273],2],[2274,3],[2275,2],[[2276,2302],2],[2303,2],[2304,2],[[2305,2307],2],[2308,2],[[2309,2361],2],[[2362,2363],2],[[2364,2381],2],[2382,2],[2383,2],[[2384,2388],2],[2389,2],[[2390,2391],2],[2392,1,"\u0915\u093C"],[2393,1,"\u0916\u093C"],[2394,1,"\u0917\u093C"],[2395,1,"\u091C\u093C"],[2396,1,"\u0921\u093C"],[2397,1,"\u0922\u093C"],[2398,1,"\u092B\u093C"],[2399,1,"\u092F\u093C"],[[2400,2403],2],[[2404,2405],2],[[2406,2415],2],[2416,2],[[2417,2418],2],[[2419,2423],2],[2424,2],[[2425,2426],2],[[2427,2428],2],[2429,2],[[2430,2431],2],[2432,2],[[2433,2435],2],[2436,3],[[2437,2444],2],[[2445,2446],3],[[2447,2448],2],[[2449,2450],3],[[2451,2472],2],[2473,3],[[2474,2480],2],[2481,3],[2482,2],[[2483,2485],3],[[2486,2489],2],[[2490,2491],3],[2492,2],[2493,2],[[2494,2500],2],[[2501,2502],3],[[2503,2504],2],[[2505,2506],3],[[2507,2509],2],[2510,2],[[2511,2518],3],[2519,2],[[2520,2523],3],[2524,1,"\u09A1\u09BC"],[2525,1,"\u09A2\u09BC"],[2526,3],[2527,1,"\u09AF\u09BC"],[[2528,2531],2],[[2532,2533],3],[[2534,2545],2],[[2546,2554],2],[2555,2],[2556,2],[2557,2],[2558,2],[[2559,2560],3],[2561,2],[2562,2],[2563,2],[2564,3],[[2565,2570],2],[[2571,2574],3],[[2575,2576],2],[[2577,2578],3],[[2579,2600],2],[2601,3],[[2602,2608],2],[2609,3],[2610,2],[2611,1,"\u0A32\u0A3C"],[2612,3],[2613,2],[2614,1,"\u0A38\u0A3C"],[2615,3],[[2616,2617],2],[[2618,2619],3],[2620,2],[2621,3],[[2622,2626],2],[[2627,2630],3],[[2631,2632],2],[[2633,2634],3],[[2635,2637],2],[[2638,2640],3],[2641,2],[[2642,2648],3],[2649,1,"\u0A16\u0A3C"],[2650,1,"\u0A17\u0A3C"],[2651,1,"\u0A1C\u0A3C"],[2652,2],[2653,3],[2654,1,"\u0A2B\u0A3C"],[[2655,2661],3],[[2662,2676],2],[2677,2],[2678,2],[[2679,2688],3],[[2689,2691],2],[2692,3],[[2693,2699],2],[2700,2],[2701,2],[2702,3],[[2703,2705],2],[2706,3],[[2707,2728],2],[2729,3],[[2730,2736],2],[2737,3],[[2738,2739],2],[2740,3],[[2741,2745],2],[[2746,2747],3],[[2748,2757],2],[2758,3],[[2759,2761],2],[2762,3],[[2763,2765],2],[[2766,2767],3],[2768,2],[[2769,2783],3],[2784,2],[[2785,2787],2],[[2788,2789],3],[[2790,2799],2],[2800,2],[2801,2],[[2802,2808],3],[2809,2],[[2810,2815],2],[2816,3],[[2817,2819],2],[2820,3],[[2821,2828],2],[[2829,2830],3],[[2831,2832],2],[[2833,2834],3],[[2835,2856],2],[2857,3],[[2858,2864],2],[2865,3],[[2866,2867],2],[2868,3],[2869,2],[[2870,2873],2],[[2874,2875],3],[[2876,2883],2],[2884,2],[[2885,2886],3],[[2887,2888],2],[[2889,2890],3],[[2891,2893],2],[[2894,2900],3],[2901,2],[[2902,2903],2],[[2904,2907],3],[2908,1,"\u0B21\u0B3C"],[2909,1,"\u0B22\u0B3C"],[2910,3],[[2911,2913],2],[[2914,2915],2],[[2916,2917],3],[[2918,2927],2],[2928,2],[2929,2],[[2930,2935],2],[[2936,2945],3],[[2946,2947],2],[2948,3],[[2949,2954],2],[[2955,2957],3],[[2958,2960],2],[2961,3],[[2962,2965],2],[[2966,2968],3],[[2969,2970],2],[2971,3],[2972,2],[2973,3],[[2974,2975],2],[[2976,2978],3],[[2979,2980],2],[[2981,2983],3],[[2984,2986],2],[[2987,2989],3],[[2990,2997],2],[2998,2],[[2999,3001],2],[[3002,3005],3],[[3006,3010],2],[[3011,3013],3],[[3014,3016],2],[3017,3],[[3018,3021],2],[[3022,3023],3],[3024,2],[[3025,3030],3],[3031,2],[[3032,3045],3],[3046,2],[[3047,3055],2],[[3056,3058],2],[[3059,3066],2],[[3067,3071],3],[3072,2],[[3073,3075],2],[3076,2],[[3077,3084],2],[3085,3],[[3086,3088],2],[3089,3],[[3090,3112],2],[3113,3],[[3114,3123],2],[3124,2],[[3125,3129],2],[[3130,3131],3],[3132,2],[3133,2],[[3134,3140],2],[3141,3],[[3142,3144],2],[3145,3],[[3146,3149],2],[[3150,3156],3],[[3157,3158],2],[3159,3],[[3160,3161],2],[3162,2],[[3163,3164],3],[3165,2],[[3166,3167],3],[[3168,3169],2],[[3170,3171],2],[[3172,3173],3],[[3174,3183],2],[[3184,3190],3],[3191,2],[[3192,3199],2],[3200,2],[3201,2],[[3202,3203],2],[3204,2],[[3205,3212],2],[3213,3],[[3214,3216],2],[3217,3],[[3218,3240],2],[3241,3],[[3242,3251],2],[3252,3],[[3253,3257],2],[[3258,3259],3],[[3260,3261],2],[[3262,3268],2],[3269,3],[[3270,3272],2],[3273,3],[[3274,3277],2],[[3278,3284],3],[[3285,3286],2],[[3287,3292],3],[3293,2],[3294,2],[3295,3],[[3296,3297],2],[[3298,3299],2],[[3300,3301],3],[[3302,3311],2],[3312,3],[[3313,3314],2],[3315,2],[[3316,3327],3],[3328,2],[3329,2],[[3330,3331],2],[3332,2],[[3333,3340],2],[3341,3],[[3342,3344],2],[3345,3],[[3346,3368],2],[3369,2],[[3370,3385],2],[3386,2],[[3387,3388],2],[3389,2],[[3390,3395],2],[3396,2],[3397,3],[[3398,3400],2],[3401,3],[[3402,3405],2],[3406,2],[3407,2],[[3408,3411],3],[[3412,3414],2],[3415,2],[[3416,3422],2],[3423,2],[[3424,3425],2],[[3426,3427],2],[[3428,3429],3],[[3430,3439],2],[[3440,3445],2],[[3446,3448],2],[3449,2],[[3450,3455],2],[3456,3],[3457,2],[[3458,3459],2],[3460,3],[[3461,3478],2],[[3479,3481],3],[[3482,3505],2],[3506,3],[[3507,3515],2],[3516,3],[3517,2],[[3518,3519],3],[[3520,3526],2],[[3527,3529],3],[3530,2],[[3531,3534],3],[[3535,3540],2],[3541,3],[3542,2],[3543,3],[[3544,3551],2],[[3552,3557],3],[[3558,3567],2],[[3568,3569],3],[[3570,3571],2],[3572,2],[[3573,3584],3],[[3585,3634],2],[3635,1,"\u0E4D\u0E32"],[[3636,3642],2],[[3643,3646],3],[3647,2],[[3648,3662],2],[3663,2],[[3664,3673],2],[[3674,3675],2],[[3676,3712],3],[[3713,3714],2],[3715,3],[3716,2],[3717,3],[3718,2],[[3719,3720],2],[3721,2],[3722,2],[3723,3],[3724,2],[3725,2],[[3726,3731],2],[[3732,3735],2],[3736,2],[[3737,3743],2],[3744,2],[[3745,3747],2],[3748,3],[3749,2],[3750,3],[3751,2],[[3752,3753],2],[[3754,3755],2],[3756,2],[[3757,3762],2],[3763,1,"\u0ECD\u0EB2"],[[3764,3769],2],[3770,2],[[3771,3773],2],[[3774,3775],3],[[3776,3780],2],[3781,3],[3782,2],[3783,3],[[3784,3789],2],[3790,2],[3791,3],[[3792,3801],2],[[3802,3803],3],[3804,1,"\u0EAB\u0E99"],[3805,1,"\u0EAB\u0EA1"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"\u0F0B"],[[3853,3863],2],[[3864,3865],2],[[3866,3871],2],[[3872,3881],2],[[3882,3892],2],[3893,2],[3894,2],[3895,2],[3896,2],[3897,2],[[3898,3901],2],[[3902,3906],2],[3907,1,"\u0F42\u0FB7"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"\u0F4C\u0FB7"],[[3918,3921],2],[3922,1,"\u0F51\u0FB7"],[[3923,3926],2],[3927,1,"\u0F56\u0FB7"],[[3928,3931],2],[3932,1,"\u0F5B\u0FB7"],[[3933,3944],2],[3945,1,"\u0F40\u0FB5"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"\u0F71\u0F72"],[3956,2],[3957,1,"\u0F71\u0F74"],[3958,1,"\u0FB2\u0F80"],[3959,1,"\u0FB2\u0F71\u0F80"],[3960,1,"\u0FB3\u0F80"],[3961,1,"\u0FB3\u0F71\u0F80"],[[3962,3968],2],[3969,1,"\u0F71\u0F80"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"\u0F92\u0FB7"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"\u0F9C\u0FB7"],[[3998,4001],2],[4002,1,"\u0FA1\u0FB7"],[[4003,4006],2],[4007,1,"\u0FA6\u0FB7"],[[4008,4011],2],[4012,1,"\u0FAB\u0FB7"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"\u0F90\u0FB5"],[[4026,4028],2],[4029,3],[[4030,4037],2],[4038,2],[[4039,4044],2],[4045,3],[4046,2],[4047,2],[[4048,4049],2],[[4050,4052],2],[[4053,4056],2],[[4057,4058],2],[[4059,4095],3],[[4096,4129],2],[4130,2],[[4131,4135],2],[4136,2],[[4137,4138],2],[4139,2],[[4140,4146],2],[[4147,4149],2],[[4150,4153],2],[[4154,4159],2],[[4160,4169],2],[[4170,4175],2],[[4176,4185],2],[[4186,4249],2],[[4250,4253],2],[[4254,4255],2],[[4256,4293],3],[4294,3],[4295,1,"\u2D27"],[[4296,4300],3],[4301,1,"\u2D2D"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"\u10DC"],[[4349,4351],2],[[4352,4441],2],[[4442,4446],2],[[4447,4448],3],[[4449,4514],2],[[4515,4519],2],[[4520,4601],2],[[4602,4607],2],[[4608,4614],2],[4615,2],[[4616,4678],2],[4679,2],[4680,2],[4681,3],[[4682,4685],2],[[4686,4687],3],[[4688,4694],2],[4695,3],[4696,2],[4697,3],[[4698,4701],2],[[4702,4703],3],[[4704,4742],2],[4743,2],[4744,2],[4745,3],[[4746,4749],2],[[4750,4751],3],[[4752,4782],2],[4783,2],[4784,2],[4785,3],[[4786,4789],2],[[4790,4791],3],[[4792,4798],2],[4799,3],[4800,2],[4801,3],[[4802,4805],2],[[4806,4807],3],[[4808,4814],2],[4815,2],[[4816,4822],2],[4823,3],[[4824,4846],2],[4847,2],[[4848,4878],2],[4879,2],[4880,2],[4881,3],[[4882,4885],2],[[4886,4887],3],[[4888,4894],2],[4895,2],[[4896,4934],2],[4935,2],[[4936,4954],2],[[4955,4956],3],[[4957,4958],2],[4959,2],[4960,2],[[4961,4988],2],[[4989,4991],3],[[4992,5007],2],[[5008,5017],2],[[5018,5023],3],[[5024,5108],2],[5109,2],[[5110,5111],3],[5112,1,"\u13F0"],[5113,1,"\u13F1"],[5114,1,"\u13F2"],[5115,1,"\u13F3"],[5116,1,"\u13F4"],[5117,1,"\u13F5"],[[5118,5119],3],[5120,2],[[5121,5740],2],[[5741,5742],2],[[5743,5750],2],[[5751,5759],2],[5760,3],[[5761,5786],2],[[5787,5788],2],[[5789,5791],3],[[5792,5866],2],[[5867,5872],2],[[5873,5880],2],[[5881,5887],3],[[5888,5900],2],[5901,2],[[5902,5908],2],[5909,2],[[5910,5918],3],[5919,2],[[5920,5940],2],[[5941,5942],2],[[5943,5951],3],[[5952,5971],2],[[5972,5983],3],[[5984,5996],2],[5997,3],[[5998,6000],2],[6001,3],[[6002,6003],2],[[6004,6015],3],[[6016,6067],2],[[6068,6069],3],[[6070,6099],2],[[6100,6102],2],[6103,2],[[6104,6107],2],[6108,2],[6109,2],[[6110,6111],3],[[6112,6121],2],[[6122,6127],3],[[6128,6137],2],[[6138,6143],3],[[6144,6149],2],[6150,3],[[6151,6154],2],[[6155,6157],7],[6158,3],[6159,7],[[6160,6169],2],[[6170,6175],3],[[6176,6263],2],[6264,2],[[6265,6271],3],[[6272,6313],2],[6314,2],[[6315,6319],3],[[6320,6389],2],[[6390,6399],3],[[6400,6428],2],[[6429,6430],2],[6431,3],[[6432,6443],2],[[6444,6447],3],[[6448,6459],2],[[6460,6463],3],[6464,2],[[6465,6467],3],[[6468,6469],2],[[6470,6509],2],[[6510,6511],3],[[6512,6516],2],[[6517,6527],3],[[6528,6569],2],[[6570,6571],2],[[6572,6575],3],[[6576,6601],2],[[6602,6607],3],[[6608,6617],2],[6618,2],[[6619,6621],3],[[6622,6623],2],[[6624,6655],2],[[6656,6683],2],[[6684,6685],3],[[6686,6687],2],[[6688,6750],2],[6751,3],[[6752,6780],2],[[6781,6782],3],[[6783,6793],2],[[6794,6799],3],[[6800,6809],2],[[6810,6815],3],[[6816,6822],2],[6823,2],[[6824,6829],2],[[6830,6831],3],[[6832,6845],2],[6846,2],[[6847,6848],2],[[6849,6862],2],[[6863,6911],3],[[6912,6987],2],[6988,2],[[6989,6991],3],[[6992,7001],2],[[7002,7018],2],[[7019,7027],2],[[7028,7036],2],[[7037,7038],2],[7039,3],[[7040,7082],2],[[7083,7085],2],[[7086,7097],2],[[7098,7103],2],[[7104,7155],2],[[7156,7163],3],[[7164,7167],2],[[7168,7223],2],[[7224,7226],3],[[7227,7231],2],[[7232,7241],2],[[7242,7244],3],[[7245,7293],2],[[7294,7295],2],[7296,1,"\u0432"],[7297,1,"\u0434"],[7298,1,"\u043E"],[7299,1,"\u0441"],[[7300,7301],1,"\u0442"],[7302,1,"\u044A"],[7303,1,"\u0463"],[7304,1,"\uA64B"],[[7305,7311],3],[7312,1,"\u10D0"],[7313,1,"\u10D1"],[7314,1,"\u10D2"],[7315,1,"\u10D3"],[7316,1,"\u10D4"],[7317,1,"\u10D5"],[7318,1,"\u10D6"],[7319,1,"\u10D7"],[7320,1,"\u10D8"],[7321,1,"\u10D9"],[7322,1,"\u10DA"],[7323,1,"\u10DB"],[7324,1,"\u10DC"],[7325,1,"\u10DD"],[7326,1,"\u10DE"],[7327,1,"\u10DF"],[7328,1,"\u10E0"],[7329,1,"\u10E1"],[7330,1,"\u10E2"],[7331,1,"\u10E3"],[7332,1,"\u10E4"],[7333,1,"\u10E5"],[7334,1,"\u10E6"],[7335,1,"\u10E7"],[7336,1,"\u10E8"],[7337,1,"\u10E9"],[7338,1,"\u10EA"],[7339,1,"\u10EB"],[7340,1,"\u10EC"],[7341,1,"\u10ED"],[7342,1,"\u10EE"],[7343,1,"\u10EF"],[7344,1,"\u10F0"],[7345,1,"\u10F1"],[7346,1,"\u10F2"],[7347,1,"\u10F3"],[7348,1,"\u10F4"],[7349,1,"\u10F5"],[7350,1,"\u10F6"],[7351,1,"\u10F7"],[7352,1,"\u10F8"],[7353,1,"\u10F9"],[7354,1,"\u10FA"],[[7355,7356],3],[7357,1,"\u10FD"],[7358,1,"\u10FE"],[7359,1,"\u10FF"],[[7360,7367],2],[[7368,7375],3],[[7376,7378],2],[7379,2],[[7380,7410],2],[[7411,7414],2],[7415,2],[[7416,7417],2],[7418,2],[[7419,7423],3],[[7424,7467],2],[7468,1,"a"],[7469,1,"\xE6"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"\u01DD"],[7475,1,"g"],[7476,1,"h"],[7477,1,"i"],[7478,1,"j"],[7479,1,"k"],[7480,1,"l"],[7481,1,"m"],[7482,1,"n"],[7483,2],[7484,1,"o"],[7485,1,"\u0223"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"\u0250"],[7493,1,"\u0251"],[7494,1,"\u1D02"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"\u0259"],[7499,1,"\u025B"],[7500,1,"\u025C"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"\u014B"],[7506,1,"o"],[7507,1,"\u0254"],[7508,1,"\u1D16"],[7509,1,"\u1D17"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"\u1D1D"],[7514,1,"\u026F"],[7515,1,"v"],[7516,1,"\u1D25"],[7517,1,"\u03B2"],[7518,1,"\u03B3"],[7519,1,"\u03B4"],[7520,1,"\u03C6"],[7521,1,"\u03C7"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"\u03B2"],[7527,1,"\u03B3"],[7528,1,"\u03C1"],[7529,1,"\u03C6"],[7530,1,"\u03C7"],[7531,2],[[7532,7543],2],[7544,1,"\u043D"],[[7545,7578],2],[7579,1,"\u0252"],[7580,1,"c"],[7581,1,"\u0255"],[7582,1,"\xF0"],[7583,1,"\u025C"],[7584,1,"f"],[7585,1,"\u025F"],[7586,1,"\u0261"],[7587,1,"\u0265"],[7588,1,"\u0268"],[7589,1,"\u0269"],[7590,1,"\u026A"],[7591,1,"\u1D7B"],[7592,1,"\u029D"],[7593,1,"\u026D"],[7594,1,"\u1D85"],[7595,1,"\u029F"],[7596,1,"\u0271"],[7597,1,"\u0270"],[7598,1,"\u0272"],[7599,1,"\u0273"],[7600,1,"\u0274"],[7601,1,"\u0275"],[7602,1,"\u0278"],[7603,1,"\u0282"],[7604,1,"\u0283"],[7605,1,"\u01AB"],[7606,1,"\u0289"],[7607,1,"\u028A"],[7608,1,"\u1D1C"],[7609,1,"\u028B"],[7610,1,"\u028C"],[7611,1,"z"],[7612,1,"\u0290"],[7613,1,"\u0291"],[7614,1,"\u0292"],[7615,1,"\u03B8"],[[7616,7619],2],[[7620,7626],2],[[7627,7654],2],[[7655,7669],2],[[7670,7673],2],[7674,2],[7675,2],[7676,2],[7677,2],[[7678,7679],2],[7680,1,"\u1E01"],[7681,2],[7682,1,"\u1E03"],[7683,2],[7684,1,"\u1E05"],[7685,2],[7686,1,"\u1E07"],[7687,2],[7688,1,"\u1E09"],[7689,2],[7690,1,"\u1E0B"],[7691,2],[7692,1,"\u1E0D"],[7693,2],[7694,1,"\u1E0F"],[7695,2],[7696,1,"\u1E11"],[7697,2],[7698,1,"\u1E13"],[7699,2],[7700,1,"\u1E15"],[7701,2],[7702,1,"\u1E17"],[7703,2],[7704,1,"\u1E19"],[7705,2],[7706,1,"\u1E1B"],[7707,2],[7708,1,"\u1E1D"],[7709,2],[7710,1,"\u1E1F"],[7711,2],[7712,1,"\u1E21"],[7713,2],[7714,1,"\u1E23"],[7715,2],[7716,1,"\u1E25"],[7717,2],[7718,1,"\u1E27"],[7719,2],[7720,1,"\u1E29"],[7721,2],[7722,1,"\u1E2B"],[7723,2],[7724,1,"\u1E2D"],[7725,2],[7726,1,"\u1E2F"],[7727,2],[7728,1,"\u1E31"],[7729,2],[7730,1,"\u1E33"],[7731,2],[7732,1,"\u1E35"],[7733,2],[7734,1,"\u1E37"],[7735,2],[7736,1,"\u1E39"],[7737,2],[7738,1,"\u1E3B"],[7739,2],[7740,1,"\u1E3D"],[7741,2],[7742,1,"\u1E3F"],[7743,2],[7744,1,"\u1E41"],[7745,2],[7746,1,"\u1E43"],[7747,2],[7748,1,"\u1E45"],[7749,2],[7750,1,"\u1E47"],[7751,2],[7752,1,"\u1E49"],[7753,2],[7754,1,"\u1E4B"],[7755,2],[7756,1,"\u1E4D"],[7757,2],[7758,1,"\u1E4F"],[7759,2],[7760,1,"\u1E51"],[7761,2],[7762,1,"\u1E53"],[7763,2],[7764,1,"\u1E55"],[7765,2],[7766,1,"\u1E57"],[7767,2],[7768,1,"\u1E59"],[7769,2],[7770,1,"\u1E5B"],[7771,2],[7772,1,"\u1E5D"],[7773,2],[7774,1,"\u1E5F"],[7775,2],[7776,1,"\u1E61"],[7777,2],[7778,1,"\u1E63"],[7779,2],[7780,1,"\u1E65"],[7781,2],[7782,1,"\u1E67"],[7783,2],[7784,1,"\u1E69"],[7785,2],[7786,1,"\u1E6B"],[7787,2],[7788,1,"\u1E6D"],[7789,2],[7790,1,"\u1E6F"],[7791,2],[7792,1,"\u1E71"],[7793,2],[7794,1,"\u1E73"],[7795,2],[7796,1,"\u1E75"],[7797,2],[7798,1,"\u1E77"],[7799,2],[7800,1,"\u1E79"],[7801,2],[7802,1,"\u1E7B"],[7803,2],[7804,1,"\u1E7D"],[7805,2],[7806,1,"\u1E7F"],[7807,2],[7808,1,"\u1E81"],[7809,2],[7810,1,"\u1E83"],[7811,2],[7812,1,"\u1E85"],[7813,2],[7814,1,"\u1E87"],[7815,2],[7816,1,"\u1E89"],[7817,2],[7818,1,"\u1E8B"],[7819,2],[7820,1,"\u1E8D"],[7821,2],[7822,1,"\u1E8F"],[7823,2],[7824,1,"\u1E91"],[7825,2],[7826,1,"\u1E93"],[7827,2],[7828,1,"\u1E95"],[[7829,7833],2],[7834,1,"a\u02BE"],[7835,1,"\u1E61"],[[7836,7837],2],[7838,1,"ss"],[7839,2],[7840,1,"\u1EA1"],[7841,2],[7842,1,"\u1EA3"],[7843,2],[7844,1,"\u1EA5"],[7845,2],[7846,1,"\u1EA7"],[7847,2],[7848,1,"\u1EA9"],[7849,2],[7850,1,"\u1EAB"],[7851,2],[7852,1,"\u1EAD"],[7853,2],[7854,1,"\u1EAF"],[7855,2],[7856,1,"\u1EB1"],[7857,2],[7858,1,"\u1EB3"],[7859,2],[7860,1,"\u1EB5"],[7861,2],[7862,1,"\u1EB7"],[7863,2],[7864,1,"\u1EB9"],[7865,2],[7866,1,"\u1EBB"],[7867,2],[7868,1,"\u1EBD"],[7869,2],[7870,1,"\u1EBF"],[7871,2],[7872,1,"\u1EC1"],[7873,2],[7874,1,"\u1EC3"],[7875,2],[7876,1,"\u1EC5"],[7877,2],[7878,1,"\u1EC7"],[7879,2],[7880,1,"\u1EC9"],[7881,2],[7882,1,"\u1ECB"],[7883,2],[7884,1,"\u1ECD"],[7885,2],[7886,1,"\u1ECF"],[7887,2],[7888,1,"\u1ED1"],[7889,2],[7890,1,"\u1ED3"],[7891,2],[7892,1,"\u1ED5"],[7893,2],[7894,1,"\u1ED7"],[7895,2],[7896,1,"\u1ED9"],[7897,2],[7898,1,"\u1EDB"],[7899,2],[7900,1,"\u1EDD"],[7901,2],[7902,1,"\u1EDF"],[7903,2],[7904,1,"\u1EE1"],[7905,2],[7906,1,"\u1EE3"],[7907,2],[7908,1,"\u1EE5"],[7909,2],[7910,1,"\u1EE7"],[7911,2],[7912,1,"\u1EE9"],[7913,2],[7914,1,"\u1EEB"],[7915,2],[7916,1,"\u1EED"],[7917,2],[7918,1,"\u1EEF"],[7919,2],[7920,1,"\u1EF1"],[7921,2],[7922,1,"\u1EF3"],[7923,2],[7924,1,"\u1EF5"],[7925,2],[7926,1,"\u1EF7"],[7927,2],[7928,1,"\u1EF9"],[7929,2],[7930,1,"\u1EFB"],[7931,2],[7932,1,"\u1EFD"],[7933,2],[7934,1,"\u1EFF"],[7935,2],[[7936,7943],2],[7944,1,"\u1F00"],[7945,1,"\u1F01"],[7946,1,"\u1F02"],[7947,1,"\u1F03"],[7948,1,"\u1F04"],[7949,1,"\u1F05"],[7950,1,"\u1F06"],[7951,1,"\u1F07"],[[7952,7957],2],[[7958,7959],3],[7960,1,"\u1F10"],[7961,1,"\u1F11"],[7962,1,"\u1F12"],[7963,1,"\u1F13"],[7964,1,"\u1F14"],[7965,1,"\u1F15"],[[7966,7967],3],[[7968,7975],2],[7976,1,"\u1F20"],[7977,1,"\u1F21"],[7978,1,"\u1F22"],[7979,1,"\u1F23"],[7980,1,"\u1F24"],[7981,1,"\u1F25"],[7982,1,"\u1F26"],[7983,1,"\u1F27"],[[7984,7991],2],[7992,1,"\u1F30"],[7993,1,"\u1F31"],[7994,1,"\u1F32"],[7995,1,"\u1F33"],[7996,1,"\u1F34"],[7997,1,"\u1F35"],[7998,1,"\u1F36"],[7999,1,"\u1F37"],[[8000,8005],2],[[8006,8007],3],[8008,1,"\u1F40"],[8009,1,"\u1F41"],[8010,1,"\u1F42"],[8011,1,"\u1F43"],[8012,1,"\u1F44"],[8013,1,"\u1F45"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"\u1F51"],[8026,3],[8027,1,"\u1F53"],[8028,3],[8029,1,"\u1F55"],[8030,3],[8031,1,"\u1F57"],[[8032,8039],2],[8040,1,"\u1F60"],[8041,1,"\u1F61"],[8042,1,"\u1F62"],[8043,1,"\u1F63"],[8044,1,"\u1F64"],[8045,1,"\u1F65"],[8046,1,"\u1F66"],[8047,1,"\u1F67"],[8048,2],[8049,1,"\u03AC"],[8050,2],[8051,1,"\u03AD"],[8052,2],[8053,1,"\u03AE"],[8054,2],[8055,1,"\u03AF"],[8056,2],[8057,1,"\u03CC"],[8058,2],[8059,1,"\u03CD"],[8060,2],[8061,1,"\u03CE"],[[8062,8063],3],[8064,1,"\u1F00\u03B9"],[8065,1,"\u1F01\u03B9"],[8066,1,"\u1F02\u03B9"],[8067,1,"\u1F03\u03B9"],[8068,1,"\u1F04\u03B9"],[8069,1,"\u1F05\u03B9"],[8070,1,"\u1F06\u03B9"],[8071,1,"\u1F07\u03B9"],[8072,1,"\u1F00\u03B9"],[8073,1,"\u1F01\u03B9"],[8074,1,"\u1F02\u03B9"],[8075,1,"\u1F03\u03B9"],[8076,1,"\u1F04\u03B9"],[8077,1,"\u1F05\u03B9"],[8078,1,"\u1F06\u03B9"],[8079,1,"\u1F07\u03B9"],[8080,1,"\u1F20\u03B9"],[8081,1,"\u1F21\u03B9"],[8082,1,"\u1F22\u03B9"],[8083,1,"\u1F23\u03B9"],[8084,1,"\u1F24\u03B9"],[8085,1,"\u1F25\u03B9"],[8086,1,"\u1F26\u03B9"],[8087,1,"\u1F27\u03B9"],[8088,1,"\u1F20\u03B9"],[8089,1,"\u1F21\u03B9"],[8090,1,"\u1F22\u03B9"],[8091,1,"\u1F23\u03B9"],[8092,1,"\u1F24\u03B9"],[8093,1,"\u1F25\u03B9"],[8094,1,"\u1F26\u03B9"],[8095,1,"\u1F27\u03B9"],[8096,1,"\u1F60\u03B9"],[8097,1,"\u1F61\u03B9"],[8098,1,"\u1F62\u03B9"],[8099,1,"\u1F63\u03B9"],[8100,1,"\u1F64\u03B9"],[8101,1,"\u1F65\u03B9"],[8102,1,"\u1F66\u03B9"],[8103,1,"\u1F67\u03B9"],[8104,1,"\u1F60\u03B9"],[8105,1,"\u1F61\u03B9"],[8106,1,"\u1F62\u03B9"],[8107,1,"\u1F63\u03B9"],[8108,1,"\u1F64\u03B9"],[8109,1,"\u1F65\u03B9"],[8110,1,"\u1F66\u03B9"],[8111,1,"\u1F67\u03B9"],[[8112,8113],2],[8114,1,"\u1F70\u03B9"],[8115,1,"\u03B1\u03B9"],[8116,1,"\u03AC\u03B9"],[8117,3],[8118,2],[8119,1,"\u1FB6\u03B9"],[8120,1,"\u1FB0"],[8121,1,"\u1FB1"],[8122,1,"\u1F70"],[8123,1,"\u03AC"],[8124,1,"\u03B1\u03B9"],[8125,5," \u0313"],[8126,1,"\u03B9"],[8127,5," \u0313"],[8128,5," \u0342"],[8129,5," \u0308\u0342"],[8130,1,"\u1F74\u03B9"],[8131,1,"\u03B7\u03B9"],[8132,1,"\u03AE\u03B9"],[8133,3],[8134,2],[8135,1,"\u1FC6\u03B9"],[8136,1,"\u1F72"],[8137,1,"\u03AD"],[8138,1,"\u1F74"],[8139,1,"\u03AE"],[8140,1,"\u03B7\u03B9"],[8141,5," \u0313\u0300"],[8142,5," \u0313\u0301"],[8143,5," \u0313\u0342"],[[8144,8146],2],[8147,1,"\u0390"],[[8148,8149],3],[[8150,8151],2],[8152,1,"\u1FD0"],[8153,1,"\u1FD1"],[8154,1,"\u1F76"],[8155,1,"\u03AF"],[8156,3],[8157,5," \u0314\u0300"],[8158,5," \u0314\u0301"],[8159,5," \u0314\u0342"],[[8160,8162],2],[8163,1,"\u03B0"],[[8164,8167],2],[8168,1,"\u1FE0"],[8169,1,"\u1FE1"],[8170,1,"\u1F7A"],[8171,1,"\u03CD"],[8172,1,"\u1FE5"],[8173,5," \u0308\u0300"],[8174,5," \u0308\u0301"],[8175,5,"`"],[[8176,8177],3],[8178,1,"\u1F7C\u03B9"],[8179,1,"\u03C9\u03B9"],[8180,1,"\u03CE\u03B9"],[8181,3],[8182,2],[8183,1,"\u1FF6\u03B9"],[8184,1,"\u1F78"],[8185,1,"\u03CC"],[8186,1,"\u1F7C"],[8187,1,"\u03CE"],[8188,1,"\u03C9\u03B9"],[8189,5," \u0301"],[8190,5," \u0314"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"\u2010"],[[8210,8214],2],[8215,5," \u0333"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"\u2032\u2032"],[8244,1,"\u2032\u2032\u2032"],[8245,2],[8246,1,"\u2035\u2035"],[8247,1,"\u2035\u2035\u2035"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," \u0305"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"\u2032\u2032\u2032\u2032"],[[8280,8286],2],[8287,5," "],[8288,7],[[8289,8291],3],[8292,7],[8293,3],[[8294,8297],3],[[8298,8303],3],[8304,1,"0"],[8305,1,"i"],[[8306,8307],3],[8308,1,"4"],[8309,1,"5"],[8310,1,"6"],[8311,1,"7"],[8312,1,"8"],[8313,1,"9"],[8314,5,"+"],[8315,1,"\u2212"],[8316,5,"="],[8317,5,"("],[8318,5,")"],[8319,1,"n"],[8320,1,"0"],[8321,1,"1"],[8322,1,"2"],[8323,1,"3"],[8324,1,"4"],[8325,1,"5"],[8326,1,"6"],[8327,1,"7"],[8328,1,"8"],[8329,1,"9"],[8330,5,"+"],[8331,1,"\u2212"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"\u0259"],[8341,1,"h"],[8342,1,"k"],[8343,1,"l"],[8344,1,"m"],[8345,1,"n"],[8346,1,"p"],[8347,1,"s"],[8348,1,"t"],[[8349,8351],3],[[8352,8359],2],[8360,1,"rs"],[[8361,8362],2],[8363,2],[8364,2],[[8365,8367],2],[[8368,8369],2],[[8370,8373],2],[[8374,8376],2],[8377,2],[8378,2],[[8379,8381],2],[8382,2],[8383,2],[8384,2],[[8385,8399],3],[[8400,8417],2],[[8418,8419],2],[[8420,8426],2],[8427,2],[[8428,8431],2],[8432,2],[[8433,8447],3],[8448,5,"a/c"],[8449,5,"a/s"],[8450,1,"c"],[8451,1,"\xB0c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"\u025B"],[8456,2],[8457,1,"\xB0f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"\u0127"],[[8464,8465],1,"i"],[[8466,8467],1,"l"],[8468,2],[8469,1,"n"],[8470,1,"no"],[[8471,8472],2],[8473,1,"p"],[8474,1,"q"],[[8475,8477],1,"r"],[[8478,8479],2],[8480,1,"sm"],[8481,1,"tel"],[8482,1,"tm"],[8483,2],[8484,1,"z"],[8485,2],[8486,1,"\u03C9"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"\xE5"],[8492,1,"b"],[8493,1,"c"],[8494,2],[[8495,8496],1,"e"],[8497,1,"f"],[8498,3],[8499,1,"m"],[8500,1,"o"],[8501,1,"\u05D0"],[8502,1,"\u05D1"],[8503,1,"\u05D2"],[8504,1,"\u05D3"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"\u03C0"],[[8509,8510],1,"\u03B3"],[8511,1,"\u03C0"],[8512,1,"\u2211"],[[8513,8516],2],[[8517,8518],1,"d"],[8519,1,"e"],[8520,1,"i"],[8521,1,"j"],[[8522,8523],2],[8524,2],[8525,2],[8526,2],[8527,2],[8528,1,"1\u20447"],[8529,1,"1\u20449"],[8530,1,"1\u204410"],[8531,1,"1\u20443"],[8532,1,"2\u20443"],[8533,1,"1\u20445"],[8534,1,"2\u20445"],[8535,1,"3\u20445"],[8536,1,"4\u20445"],[8537,1,"1\u20446"],[8538,1,"5\u20446"],[8539,1,"1\u20448"],[8540,1,"3\u20448"],[8541,1,"5\u20448"],[8542,1,"7\u20448"],[8543,1,"1\u2044"],[8544,1,"i"],[8545,1,"ii"],[8546,1,"iii"],[8547,1,"iv"],[8548,1,"v"],[8549,1,"vi"],[8550,1,"vii"],[8551,1,"viii"],[8552,1,"ix"],[8553,1,"x"],[8554,1,"xi"],[8555,1,"xii"],[8556,1,"l"],[8557,1,"c"],[8558,1,"d"],[8559,1,"m"],[8560,1,"i"],[8561,1,"ii"],[8562,1,"iii"],[8563,1,"iv"],[8564,1,"v"],[8565,1,"vi"],[8566,1,"vii"],[8567,1,"viii"],[8568,1,"ix"],[8569,1,"x"],[8570,1,"xi"],[8571,1,"xii"],[8572,1,"l"],[8573,1,"c"],[8574,1,"d"],[8575,1,"m"],[[8576,8578],2],[8579,3],[8580,2],[[8581,8584],2],[8585,1,"0\u20443"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"\u222B\u222B"],[8749,1,"\u222B\u222B\u222B"],[8750,2],[8751,1,"\u222E\u222E"],[8752,1,"\u222E\u222E\u222E"],[[8753,8799],2],[8800,4],[[8801,8813],2],[[8814,8815],4],[[8816,8945],2],[[8946,8959],2],[8960,2],[8961,2],[[8962,9000],2],[9001,1,"\u3008"],[9002,1,"\u3009"],[[9003,9082],2],[9083,2],[9084,2],[[9085,9114],2],[[9115,9166],2],[[9167,9168],2],[[9169,9179],2],[[9180,9191],2],[9192,2],[[9193,9203],2],[[9204,9210],2],[[9211,9214],2],[9215,2],[[9216,9252],2],[[9253,9254],2],[[9255,9279],3],[[9280,9290],2],[[9291,9311],3],[9312,1,"1"],[9313,1,"2"],[9314,1,"3"],[9315,1,"4"],[9316,1,"5"],[9317,1,"6"],[9318,1,"7"],[9319,1,"8"],[9320,1,"9"],[9321,1,"10"],[9322,1,"11"],[9323,1,"12"],[9324,1,"13"],[9325,1,"14"],[9326,1,"15"],[9327,1,"16"],[9328,1,"17"],[9329,1,"18"],[9330,1,"19"],[9331,1,"20"],[9332,5,"(1)"],[9333,5,"(2)"],[9334,5,"(3)"],[9335,5,"(4)"],[9336,5,"(5)"],[9337,5,"(6)"],[9338,5,"(7)"],[9339,5,"(8)"],[9340,5,"(9)"],[9341,5,"(10)"],[9342,5,"(11)"],[9343,5,"(12)"],[9344,5,"(13)"],[9345,5,"(14)"],[9346,5,"(15)"],[9347,5,"(16)"],[9348,5,"(17)"],[9349,5,"(18)"],[9350,5,"(19)"],[9351,5,"(20)"],[[9352,9371],3],[9372,5,"(a)"],[9373,5,"(b)"],[9374,5,"(c)"],[9375,5,"(d)"],[9376,5,"(e)"],[9377,5,"(f)"],[9378,5,"(g)"],[9379,5,"(h)"],[9380,5,"(i)"],[9381,5,"(j)"],[9382,5,"(k)"],[9383,5,"(l)"],[9384,5,"(m)"],[9385,5,"(n)"],[9386,5,"(o)"],[9387,5,"(p)"],[9388,5,"(q)"],[9389,5,"(r)"],[9390,5,"(s)"],[9391,5,"(t)"],[9392,5,"(u)"],[9393,5,"(v)"],[9394,5,"(w)"],[9395,5,"(x)"],[9396,5,"(y)"],[9397,5,"(z)"],[9398,1,"a"],[9399,1,"b"],[9400,1,"c"],[9401,1,"d"],[9402,1,"e"],[9403,1,"f"],[9404,1,"g"],[9405,1,"h"],[9406,1,"i"],[9407,1,"j"],[9408,1,"k"],[9409,1,"l"],[9410,1,"m"],[9411,1,"n"],[9412,1,"o"],[9413,1,"p"],[9414,1,"q"],[9415,1,"r"],[9416,1,"s"],[9417,1,"t"],[9418,1,"u"],[9419,1,"v"],[9420,1,"w"],[9421,1,"x"],[9422,1,"y"],[9423,1,"z"],[9424,1,"a"],[9425,1,"b"],[9426,1,"c"],[9427,1,"d"],[9428,1,"e"],[9429,1,"f"],[9430,1,"g"],[9431,1,"h"],[9432,1,"i"],[9433,1,"j"],[9434,1,"k"],[9435,1,"l"],[9436,1,"m"],[9437,1,"n"],[9438,1,"o"],[9439,1,"p"],[9440,1,"q"],[9441,1,"r"],[9442,1,"s"],[9443,1,"t"],[9444,1,"u"],[9445,1,"v"],[9446,1,"w"],[9447,1,"x"],[9448,1,"y"],[9449,1,"z"],[9450,1,"0"],[[9451,9470],2],[9471,2],[[9472,9621],2],[[9622,9631],2],[[9632,9711],2],[[9712,9719],2],[[9720,9727],2],[[9728,9747],2],[[9748,9749],2],[[9750,9751],2],[9752,2],[9753,2],[[9754,9839],2],[[9840,9841],2],[[9842,9853],2],[[9854,9855],2],[[9856,9865],2],[[9866,9873],2],[[9874,9884],2],[9885,2],[[9886,9887],2],[[9888,9889],2],[[9890,9905],2],[9906,2],[[9907,9916],2],[[9917,9919],2],[[9920,9923],2],[[9924,9933],2],[9934,2],[[9935,9953],2],[9954,2],[9955,2],[[9956,9959],2],[[9960,9983],2],[9984,2],[[9985,9988],2],[9989,2],[[9990,9993],2],[[9994,9995],2],[[9996,10023],2],[10024,2],[[10025,10059],2],[10060,2],[10061,2],[10062,2],[[10063,10066],2],[[10067,10069],2],[10070,2],[10071,2],[[10072,10078],2],[[10079,10080],2],[[10081,10087],2],[[10088,10101],2],[[10102,10132],2],[[10133,10135],2],[[10136,10159],2],[10160,2],[[10161,10174],2],[10175,2],[[10176,10182],2],[[10183,10186],2],[10187,2],[10188,2],[10189,2],[[10190,10191],2],[[10192,10219],2],[[10220,10223],2],[[10224,10239],2],[[10240,10495],2],[[10496,10763],2],[10764,1,"\u222B\u222B\u222B\u222B"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"\u2ADD\u0338"],[[10973,11007],2],[[11008,11021],2],[[11022,11027],2],[[11028,11034],2],[[11035,11039],2],[[11040,11043],2],[[11044,11084],2],[[11085,11087],2],[[11088,11092],2],[[11093,11097],2],[[11098,11123],2],[[11124,11125],3],[[11126,11157],2],[11158,3],[11159,2],[[11160,11193],2],[[11194,11196],2],[[11197,11208],2],[11209,2],[[11210,11217],2],[11218,2],[[11219,11243],2],[[11244,11247],2],[[11248,11262],2],[11263,2],[11264,1,"\u2C30"],[11265,1,"\u2C31"],[11266,1,"\u2C32"],[11267,1,"\u2C33"],[11268,1,"\u2C34"],[11269,1,"\u2C35"],[11270,1,"\u2C36"],[11271,1,"\u2C37"],[11272,1,"\u2C38"],[11273,1,"\u2C39"],[11274,1,"\u2C3A"],[11275,1,"\u2C3B"],[11276,1,"\u2C3C"],[11277,1,"\u2C3D"],[11278,1,"\u2C3E"],[11279,1,"\u2C3F"],[11280,1,"\u2C40"],[11281,1,"\u2C41"],[11282,1,"\u2C42"],[11283,1,"\u2C43"],[11284,1,"\u2C44"],[11285,1,"\u2C45"],[11286,1,"\u2C46"],[11287,1,"\u2C47"],[11288,1,"\u2C48"],[11289,1,"\u2C49"],[11290,1,"\u2C4A"],[11291,1,"\u2C4B"],[11292,1,"\u2C4C"],[11293,1,"\u2C4D"],[11294,1,"\u2C4E"],[11295,1,"\u2C4F"],[11296,1,"\u2C50"],[11297,1,"\u2C51"],[11298,1,"\u2C52"],[11299,1,"\u2C53"],[11300,1,"\u2C54"],[11301,1,"\u2C55"],[11302,1,"\u2C56"],[11303,1,"\u2C57"],[11304,1,"\u2C58"],[11305,1,"\u2C59"],[11306,1,"\u2C5A"],[11307,1,"\u2C5B"],[11308,1,"\u2C5C"],[11309,1,"\u2C5D"],[11310,1,"\u2C5E"],[11311,1,"\u2C5F"],[[11312,11358],2],[11359,2],[11360,1,"\u2C61"],[11361,2],[11362,1,"\u026B"],[11363,1,"\u1D7D"],[11364,1,"\u027D"],[[11365,11366],2],[11367,1,"\u2C68"],[11368,2],[11369,1,"\u2C6A"],[11370,2],[11371,1,"\u2C6C"],[11372,2],[11373,1,"\u0251"],[11374,1,"\u0271"],[11375,1,"\u0250"],[11376,1,"\u0252"],[11377,2],[11378,1,"\u2C73"],[11379,2],[11380,2],[11381,1,"\u2C76"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"\u023F"],[11391,1,"\u0240"],[11392,1,"\u2C81"],[11393,2],[11394,1,"\u2C83"],[11395,2],[11396,1,"\u2C85"],[11397,2],[11398,1,"\u2C87"],[11399,2],[11400,1,"\u2C89"],[11401,2],[11402,1,"\u2C8B"],[11403,2],[11404,1,"\u2C8D"],[11405,2],[11406,1,"\u2C8F"],[11407,2],[11408,1,"\u2C91"],[11409,2],[11410,1,"\u2C93"],[11411,2],[11412,1,"\u2C95"],[11413,2],[11414,1,"\u2C97"],[11415,2],[11416,1,"\u2C99"],[11417,2],[11418,1,"\u2C9B"],[11419,2],[11420,1,"\u2C9D"],[11421,2],[11422,1,"\u2C9F"],[11423,2],[11424,1,"\u2CA1"],[11425,2],[11426,1,"\u2CA3"],[11427,2],[11428,1,"\u2CA5"],[11429,2],[11430,1,"\u2CA7"],[11431,2],[11432,1,"\u2CA9"],[11433,2],[11434,1,"\u2CAB"],[11435,2],[11436,1,"\u2CAD"],[11437,2],[11438,1,"\u2CAF"],[11439,2],[11440,1,"\u2CB1"],[11441,2],[11442,1,"\u2CB3"],[11443,2],[11444,1,"\u2CB5"],[11445,2],[11446,1,"\u2CB7"],[11447,2],[11448,1,"\u2CB9"],[11449,2],[11450,1,"\u2CBB"],[11451,2],[11452,1,"\u2CBD"],[11453,2],[11454,1,"\u2CBF"],[11455,2],[11456,1,"\u2CC1"],[11457,2],[11458,1,"\u2CC3"],[11459,2],[11460,1,"\u2CC5"],[11461,2],[11462,1,"\u2CC7"],[11463,2],[11464,1,"\u2CC9"],[11465,2],[11466,1,"\u2CCB"],[11467,2],[11468,1,"\u2CCD"],[11469,2],[11470,1,"\u2CCF"],[11471,2],[11472,1,"\u2CD1"],[11473,2],[11474,1,"\u2CD3"],[11475,2],[11476,1,"\u2CD5"],[11477,2],[11478,1,"\u2CD7"],[11479,2],[11480,1,"\u2CD9"],[11481,2],[11482,1,"\u2CDB"],[11483,2],[11484,1,"\u2CDD"],[11485,2],[11486,1,"\u2CDF"],[11487,2],[11488,1,"\u2CE1"],[11489,2],[11490,1,"\u2CE3"],[[11491,11492],2],[[11493,11498],2],[11499,1,"\u2CEC"],[11500,2],[11501,1,"\u2CEE"],[[11502,11505],2],[11506,1,"\u2CF3"],[11507,2],[[11508,11512],3],[[11513,11519],2],[[11520,11557],2],[11558,3],[11559,2],[[11560,11564],3],[11565,2],[[11566,11567],3],[[11568,11621],2],[[11622,11623],2],[[11624,11630],3],[11631,1,"\u2D61"],[11632,2],[[11633,11646],3],[11647,2],[[11648,11670],2],[[11671,11679],3],[[11680,11686],2],[11687,3],[[11688,11694],2],[11695,3],[[11696,11702],2],[11703,3],[[11704,11710],2],[11711,3],[[11712,11718],2],[11719,3],[[11720,11726],2],[11727,3],[[11728,11734],2],[11735,3],[[11736,11742],2],[11743,3],[[11744,11775],2],[[11776,11799],2],[[11800,11803],2],[[11804,11805],2],[[11806,11822],2],[11823,2],[11824,2],[11825,2],[[11826,11835],2],[[11836,11842],2],[[11843,11844],2],[[11845,11849],2],[[11850,11854],2],[11855,2],[[11856,11858],2],[[11859,11869],2],[[11870,11903],3],[[11904,11929],2],[11930,3],[[11931,11934],2],[11935,1,"\u6BCD"],[[11936,12018],2],[12019,1,"\u9F9F"],[[12020,12031],3],[12032,1,"\u4E00"],[12033,1,"\u4E28"],[12034,1,"\u4E36"],[12035,1,"\u4E3F"],[12036,1,"\u4E59"],[12037,1,"\u4E85"],[12038,1,"\u4E8C"],[12039,1,"\u4EA0"],[12040,1,"\u4EBA"],[12041,1,"\u513F"],[12042,1,"\u5165"],[12043,1,"\u516B"],[12044,1,"\u5182"],[12045,1,"\u5196"],[12046,1,"\u51AB"],[12047,1,"\u51E0"],[12048,1,"\u51F5"],[12049,1,"\u5200"],[12050,1,"\u529B"],[12051,1,"\u52F9"],[12052,1,"\u5315"],[12053,1,"\u531A"],[12054,1,"\u5338"],[12055,1,"\u5341"],[12056,1,"\u535C"],[12057,1,"\u5369"],[12058,1,"\u5382"],[12059,1,"\u53B6"],[12060,1,"\u53C8"],[12061,1,"\u53E3"],[12062,1,"\u56D7"],[12063,1,"\u571F"],[12064,1,"\u58EB"],[12065,1,"\u5902"],[12066,1,"\u590A"],[12067,1,"\u5915"],[12068,1,"\u5927"],[12069,1,"\u5973"],[12070,1,"\u5B50"],[12071,1,"\u5B80"],[12072,1,"\u5BF8"],[12073,1,"\u5C0F"],[12074,1,"\u5C22"],[12075,1,"\u5C38"],[12076,1,"\u5C6E"],[12077,1,"\u5C71"],[12078,1,"\u5DDB"],[12079,1,"\u5DE5"],[12080,1,"\u5DF1"],[12081,1,"\u5DFE"],[12082,1,"\u5E72"],[12083,1,"\u5E7A"],[12084,1,"\u5E7F"],[12085,1,"\u5EF4"],[12086,1,"\u5EFE"],[12087,1,"\u5F0B"],[12088,1,"\u5F13"],[12089,1,"\u5F50"],[12090,1,"\u5F61"],[12091,1,"\u5F73"],[12092,1,"\u5FC3"],[12093,1,"\u6208"],[12094,1,"\u6236"],[12095,1,"\u624B"],[12096,1,"\u652F"],[12097,1,"\u6534"],[12098,1,"\u6587"],[12099,1,"\u6597"],[12100,1,"\u65A4"],[12101,1,"\u65B9"],[12102,1,"\u65E0"],[12103,1,"\u65E5"],[12104,1,"\u66F0"],[12105,1,"\u6708"],[12106,1,"\u6728"],[12107,1,"\u6B20"],[12108,1,"\u6B62"],[12109,1,"\u6B79"],[12110,1,"\u6BB3"],[12111,1,"\u6BCB"],[12112,1,"\u6BD4"],[12113,1,"\u6BDB"],[12114,1,"\u6C0F"],[12115,1,"\u6C14"],[12116,1,"\u6C34"],[12117,1,"\u706B"],[12118,1,"\u722A"],[12119,1,"\u7236"],[12120,1,"\u723B"],[12121,1,"\u723F"],[12122,1,"\u7247"],[12123,1,"\u7259"],[12124,1,"\u725B"],[12125,1,"\u72AC"],[12126,1,"\u7384"],[12127,1,"\u7389"],[12128,1,"\u74DC"],[12129,1,"\u74E6"],[12130,1,"\u7518"],[12131,1,"\u751F"],[12132,1,"\u7528"],[12133,1,"\u7530"],[12134,1,"\u758B"],[12135,1,"\u7592"],[12136,1,"\u7676"],[12137,1,"\u767D"],[12138,1,"\u76AE"],[12139,1,"\u76BF"],[12140,1,"\u76EE"],[12141,1,"\u77DB"],[12142,1,"\u77E2"],[12143,1,"\u77F3"],[12144,1,"\u793A"],[12145,1,"\u79B8"],[12146,1,"\u79BE"],[12147,1,"\u7A74"],[12148,1,"\u7ACB"],[12149,1,"\u7AF9"],[12150,1,"\u7C73"],[12151,1,"\u7CF8"],[12152,1,"\u7F36"],[12153,1,"\u7F51"],[12154,1,"\u7F8A"],[12155,1,"\u7FBD"],[12156,1,"\u8001"],[12157,1,"\u800C"],[12158,1,"\u8012"],[12159,1,"\u8033"],[12160,1,"\u807F"],[12161,1,"\u8089"],[12162,1,"\u81E3"],[12163,1,"\u81EA"],[12164,1,"\u81F3"],[12165,1,"\u81FC"],[12166,1,"\u820C"],[12167,1,"\u821B"],[12168,1,"\u821F"],[12169,1,"\u826E"],[12170,1,"\u8272"],[12171,1,"\u8278"],[12172,1,"\u864D"],[12173,1,"\u866B"],[12174,1,"\u8840"],[12175,1,"\u884C"],[12176,1,"\u8863"],[12177,1,"\u897E"],[12178,1,"\u898B"],[12179,1,"\u89D2"],[12180,1,"\u8A00"],[12181,1,"\u8C37"],[12182,1,"\u8C46"],[12183,1,"\u8C55"],[12184,1,"\u8C78"],[12185,1,"\u8C9D"],[12186,1,"\u8D64"],[12187,1,"\u8D70"],[12188,1,"\u8DB3"],[12189,1,"\u8EAB"],[12190,1,"\u8ECA"],[12191,1,"\u8F9B"],[12192,1,"\u8FB0"],[12193,1,"\u8FB5"],[12194,1,"\u9091"],[12195,1,"\u9149"],[12196,1,"\u91C6"],[12197,1,"\u91CC"],[12198,1,"\u91D1"],[12199,1,"\u9577"],[12200,1,"\u9580"],[12201,1,"\u961C"],[12202,1,"\u96B6"],[12203,1,"\u96B9"],[12204,1,"\u96E8"],[12205,1,"\u9751"],[12206,1,"\u975E"],[12207,1,"\u9762"],[12208,1,"\u9769"],[12209,1,"\u97CB"],[12210,1,"\u97ED"],[12211,1,"\u97F3"],[12212,1,"\u9801"],[12213,1,"\u98A8"],[12214,1,"\u98DB"],[12215,1,"\u98DF"],[12216,1,"\u9996"],[12217,1,"\u9999"],[12218,1,"\u99AC"],[12219,1,"\u9AA8"],[12220,1,"\u9AD8"],[12221,1,"\u9ADF"],[12222,1,"\u9B25"],[12223,1,"\u9B2F"],[12224,1,"\u9B32"],[12225,1,"\u9B3C"],[12226,1,"\u9B5A"],[12227,1,"\u9CE5"],[12228,1,"\u9E75"],[12229,1,"\u9E7F"],[12230,1,"\u9EA5"],[12231,1,"\u9EBB"],[12232,1,"\u9EC3"],[12233,1,"\u9ECD"],[12234,1,"\u9ED1"],[12235,1,"\u9EF9"],[12236,1,"\u9EFD"],[12237,1,"\u9F0E"],[12238,1,"\u9F13"],[12239,1,"\u9F20"],[12240,1,"\u9F3B"],[12241,1,"\u9F4A"],[12242,1,"\u9F52"],[12243,1,"\u9F8D"],[12244,1,"\u9F9C"],[12245,1,"\u9FA0"],[[12246,12271],3],[[12272,12283],3],[[12284,12287],3],[12288,5," "],[12289,2],[12290,1,"."],[[12291,12292],2],[[12293,12295],2],[[12296,12329],2],[[12330,12333],2],[[12334,12341],2],[12342,1,"\u3012"],[12343,2],[12344,1,"\u5341"],[12345,1,"\u5344"],[12346,1,"\u5345"],[12347,2],[12348,2],[12349,2],[12350,2],[12351,2],[12352,3],[[12353,12436],2],[[12437,12438],2],[[12439,12440],3],[[12441,12442],2],[12443,5," \u3099"],[12444,5," \u309A"],[[12445,12446],2],[12447,1,"\u3088\u308A"],[12448,2],[[12449,12542],2],[12543,1,"\u30B3\u30C8"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"\u1100"],[12594,1,"\u1101"],[12595,1,"\u11AA"],[12596,1,"\u1102"],[12597,1,"\u11AC"],[12598,1,"\u11AD"],[12599,1,"\u1103"],[12600,1,"\u1104"],[12601,1,"\u1105"],[12602,1,"\u11B0"],[12603,1,"\u11B1"],[12604,1,"\u11B2"],[12605,1,"\u11B3"],[12606,1,"\u11B4"],[12607,1,"\u11B5"],[12608,1,"\u111A"],[12609,1,"\u1106"],[12610,1,"\u1107"],[12611,1,"\u1108"],[12612,1,"\u1121"],[12613,1,"\u1109"],[12614,1,"\u110A"],[12615,1,"\u110B"],[12616,1,"\u110C"],[12617,1,"\u110D"],[12618,1,"\u110E"],[12619,1,"\u110F"],[12620,1,"\u1110"],[12621,1,"\u1111"],[12622,1,"\u1112"],[12623,1,"\u1161"],[12624,1,"\u1162"],[12625,1,"\u1163"],[12626,1,"\u1164"],[12627,1,"\u1165"],[12628,1,"\u1166"],[12629,1,"\u1167"],[12630,1,"\u1168"],[12631,1,"\u1169"],[12632,1,"\u116A"],[12633,1,"\u116B"],[12634,1,"\u116C"],[12635,1,"\u116D"],[12636,1,"\u116E"],[12637,1,"\u116F"],[12638,1,"\u1170"],[12639,1,"\u1171"],[12640,1,"\u1172"],[12641,1,"\u1173"],[12642,1,"\u1174"],[12643,1,"\u1175"],[12644,3],[12645,1,"\u1114"],[12646,1,"\u1115"],[12647,1,"\u11C7"],[12648,1,"\u11C8"],[12649,1,"\u11CC"],[12650,1,"\u11CE"],[12651,1,"\u11D3"],[12652,1,"\u11D7"],[12653,1,"\u11D9"],[12654,1,"\u111C"],[12655,1,"\u11DD"],[12656,1,"\u11DF"],[12657,1,"\u111D"],[12658,1,"\u111E"],[12659,1,"\u1120"],[12660,1,"\u1122"],[12661,1,"\u1123"],[12662,1,"\u1127"],[12663,1,"\u1129"],[12664,1,"\u112B"],[12665,1,"\u112C"],[12666,1,"\u112D"],[12667,1,"\u112E"],[12668,1,"\u112F"],[12669,1,"\u1132"],[12670,1,"\u1136"],[12671,1,"\u1140"],[12672,1,"\u1147"],[12673,1,"\u114C"],[12674,1,"\u11F1"],[12675,1,"\u11F2"],[12676,1,"\u1157"],[12677,1,"\u1158"],[12678,1,"\u1159"],[12679,1,"\u1184"],[12680,1,"\u1185"],[12681,1,"\u1188"],[12682,1,"\u1191"],[12683,1,"\u1192"],[12684,1,"\u1194"],[12685,1,"\u119E"],[12686,1,"\u11A1"],[12687,3],[[12688,12689],2],[12690,1,"\u4E00"],[12691,1,"\u4E8C"],[12692,1,"\u4E09"],[12693,1,"\u56DB"],[12694,1,"\u4E0A"],[12695,1,"\u4E2D"],[12696,1,"\u4E0B"],[12697,1,"\u7532"],[12698,1,"\u4E59"],[12699,1,"\u4E19"],[12700,1,"\u4E01"],[12701,1,"\u5929"],[12702,1,"\u5730"],[12703,1,"\u4EBA"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12783],3],[[12784,12799],2],[12800,5,"(\u1100)"],[12801,5,"(\u1102)"],[12802,5,"(\u1103)"],[12803,5,"(\u1105)"],[12804,5,"(\u1106)"],[12805,5,"(\u1107)"],[12806,5,"(\u1109)"],[12807,5,"(\u110B)"],[12808,5,"(\u110C)"],[12809,5,"(\u110E)"],[12810,5,"(\u110F)"],[12811,5,"(\u1110)"],[12812,5,"(\u1111)"],[12813,5,"(\u1112)"],[12814,5,"(\uAC00)"],[12815,5,"(\uB098)"],[12816,5,"(\uB2E4)"],[12817,5,"(\uB77C)"],[12818,5,"(\uB9C8)"],[12819,5,"(\uBC14)"],[12820,5,"(\uC0AC)"],[12821,5,"(\uC544)"],[12822,5,"(\uC790)"],[12823,5,"(\uCC28)"],[12824,5,"(\uCE74)"],[12825,5,"(\uD0C0)"],[12826,5,"(\uD30C)"],[12827,5,"(\uD558)"],[12828,5,"(\uC8FC)"],[12829,5,"(\uC624\uC804)"],[12830,5,"(\uC624\uD6C4)"],[12831,3],[12832,5,"(\u4E00)"],[12833,5,"(\u4E8C)"],[12834,5,"(\u4E09)"],[12835,5,"(\u56DB)"],[12836,5,"(\u4E94)"],[12837,5,"(\u516D)"],[12838,5,"(\u4E03)"],[12839,5,"(\u516B)"],[12840,5,"(\u4E5D)"],[12841,5,"(\u5341)"],[12842,5,"(\u6708)"],[12843,5,"(\u706B)"],[12844,5,"(\u6C34)"],[12845,5,"(\u6728)"],[12846,5,"(\u91D1)"],[12847,5,"(\u571F)"],[12848,5,"(\u65E5)"],[12849,5,"(\u682A)"],[12850,5,"(\u6709)"],[12851,5,"(\u793E)"],[12852,5,"(\u540D)"],[12853,5,"(\u7279)"],[12854,5,"(\u8CA1)"],[12855,5,"(\u795D)"],[12856,5,"(\u52B4)"],[12857,5,"(\u4EE3)"],[12858,5,"(\u547C)"],[12859,5,"(\u5B66)"],[12860,5,"(\u76E3)"],[12861,5,"(\u4F01)"],[12862,5,"(\u8CC7)"],[12863,5,"(\u5354)"],[12864,5,"(\u796D)"],[12865,5,"(\u4F11)"],[12866,5,"(\u81EA)"],[12867,5,"(\u81F3)"],[12868,1,"\u554F"],[12869,1,"\u5E7C"],[12870,1,"\u6587"],[12871,1,"\u7B8F"],[[12872,12879],2],[12880,1,"pte"],[12881,1,"21"],[12882,1,"22"],[12883,1,"23"],[12884,1,"24"],[12885,1,"25"],[12886,1,"26"],[12887,1,"27"],[12888,1,"28"],[12889,1,"29"],[12890,1,"30"],[12891,1,"31"],[12892,1,"32"],[12893,1,"33"],[12894,1,"34"],[12895,1,"35"],[12896,1,"\u1100"],[12897,1,"\u1102"],[12898,1,"\u1103"],[12899,1,"\u1105"],[12900,1,"\u1106"],[12901,1,"\u1107"],[12902,1,"\u1109"],[12903,1,"\u110B"],[12904,1,"\u110C"],[12905,1,"\u110E"],[12906,1,"\u110F"],[12907,1,"\u1110"],[12908,1,"\u1111"],[12909,1,"\u1112"],[12910,1,"\uAC00"],[12911,1,"\uB098"],[12912,1,"\uB2E4"],[12913,1,"\uB77C"],[12914,1,"\uB9C8"],[12915,1,"\uBC14"],[12916,1,"\uC0AC"],[12917,1,"\uC544"],[12918,1,"\uC790"],[12919,1,"\uCC28"],[12920,1,"\uCE74"],[12921,1,"\uD0C0"],[12922,1,"\uD30C"],[12923,1,"\uD558"],[12924,1,"\uCC38\uACE0"],[12925,1,"\uC8FC\uC758"],[12926,1,"\uC6B0"],[12927,2],[12928,1,"\u4E00"],[12929,1,"\u4E8C"],[12930,1,"\u4E09"],[12931,1,"\u56DB"],[12932,1,"\u4E94"],[12933,1,"\u516D"],[12934,1,"\u4E03"],[12935,1,"\u516B"],[12936,1,"\u4E5D"],[12937,1,"\u5341"],[12938,1,"\u6708"],[12939,1,"\u706B"],[12940,1,"\u6C34"],[12941,1,"\u6728"],[12942,1,"\u91D1"],[12943,1,"\u571F"],[12944,1,"\u65E5"],[12945,1,"\u682A"],[12946,1,"\u6709"],[12947,1,"\u793E"],[12948,1,"\u540D"],[12949,1,"\u7279"],[12950,1,"\u8CA1"],[12951,1,"\u795D"],[12952,1,"\u52B4"],[12953,1,"\u79D8"],[12954,1,"\u7537"],[12955,1,"\u5973"],[12956,1,"\u9069"],[12957,1,"\u512A"],[12958,1,"\u5370"],[12959,1,"\u6CE8"],[12960,1,"\u9805"],[12961,1,"\u4F11"],[12962,1,"\u5199"],[12963,1,"\u6B63"],[12964,1,"\u4E0A"],[12965,1,"\u4E2D"],[12966,1,"\u4E0B"],[12967,1,"\u5DE6"],[12968,1,"\u53F3"],[12969,1,"\u533B"],[12970,1,"\u5B97"],[12971,1,"\u5B66"],[12972,1,"\u76E3"],[12973,1,"\u4F01"],[12974,1,"\u8CC7"],[12975,1,"\u5354"],[12976,1,"\u591C"],[12977,1,"36"],[12978,1,"37"],[12979,1,"38"],[12980,1,"39"],[12981,1,"40"],[12982,1,"41"],[12983,1,"42"],[12984,1,"43"],[12985,1,"44"],[12986,1,"45"],[12987,1,"46"],[12988,1,"47"],[12989,1,"48"],[12990,1,"49"],[12991,1,"50"],[12992,1,"1\u6708"],[12993,1,"2\u6708"],[12994,1,"3\u6708"],[12995,1,"4\u6708"],[12996,1,"5\u6708"],[12997,1,"6\u6708"],[12998,1,"7\u6708"],[12999,1,"8\u6708"],[13000,1,"9\u6708"],[13001,1,"10\u6708"],[13002,1,"11\u6708"],[13003,1,"12\u6708"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"\u30A2"],[13009,1,"\u30A4"],[13010,1,"\u30A6"],[13011,1,"\u30A8"],[13012,1,"\u30AA"],[13013,1,"\u30AB"],[13014,1,"\u30AD"],[13015,1,"\u30AF"],[13016,1,"\u30B1"],[13017,1,"\u30B3"],[13018,1,"\u30B5"],[13019,1,"\u30B7"],[13020,1,"\u30B9"],[13021,1,"\u30BB"],[13022,1,"\u30BD"],[13023,1,"\u30BF"],[13024,1,"\u30C1"],[13025,1,"\u30C4"],[13026,1,"\u30C6"],[13027,1,"\u30C8"],[13028,1,"\u30CA"],[13029,1,"\u30CB"],[13030,1,"\u30CC"],[13031,1,"\u30CD"],[13032,1,"\u30CE"],[13033,1,"\u30CF"],[13034,1,"\u30D2"],[13035,1,"\u30D5"],[13036,1,"\u30D8"],[13037,1,"\u30DB"],[13038,1,"\u30DE"],[13039,1,"\u30DF"],[13040,1,"\u30E0"],[13041,1,"\u30E1"],[13042,1,"\u30E2"],[13043,1,"\u30E4"],[13044,1,"\u30E6"],[13045,1,"\u30E8"],[13046,1,"\u30E9"],[13047,1,"\u30EA"],[13048,1,"\u30EB"],[13049,1,"\u30EC"],[13050,1,"\u30ED"],[13051,1,"\u30EF"],[13052,1,"\u30F0"],[13053,1,"\u30F1"],[13054,1,"\u30F2"],[13055,1,"\u4EE4\u548C"],[13056,1,"\u30A2\u30D1\u30FC\u30C8"],[13057,1,"\u30A2\u30EB\u30D5\u30A1"],[13058,1,"\u30A2\u30F3\u30DA\u30A2"],[13059,1,"\u30A2\u30FC\u30EB"],[13060,1,"\u30A4\u30CB\u30F3\u30B0"],[13061,1,"\u30A4\u30F3\u30C1"],[13062,1,"\u30A6\u30A9\u30F3"],[13063,1,"\u30A8\u30B9\u30AF\u30FC\u30C9"],[13064,1,"\u30A8\u30FC\u30AB\u30FC"],[13065,1,"\u30AA\u30F3\u30B9"],[13066,1,"\u30AA\u30FC\u30E0"],[13067,1,"\u30AB\u30A4\u30EA"],[13068,1,"\u30AB\u30E9\u30C3\u30C8"],[13069,1,"\u30AB\u30ED\u30EA\u30FC"],[13070,1,"\u30AC\u30ED\u30F3"],[13071,1,"\u30AC\u30F3\u30DE"],[13072,1,"\u30AE\u30AC"],[13073,1,"\u30AE\u30CB\u30FC"],[13074,1,"\u30AD\u30E5\u30EA\u30FC"],[13075,1,"\u30AE\u30EB\u30C0\u30FC"],[13076,1,"\u30AD\u30ED"],[13077,1,"\u30AD\u30ED\u30B0\u30E9\u30E0"],[13078,1,"\u30AD\u30ED\u30E1\u30FC\u30C8\u30EB"],[13079,1,"\u30AD\u30ED\u30EF\u30C3\u30C8"],[13080,1,"\u30B0\u30E9\u30E0"],[13081,1,"\u30B0\u30E9\u30E0\u30C8\u30F3"],[13082,1,"\u30AF\u30EB\u30BC\u30A4\u30ED"],[13083,1,"\u30AF\u30ED\u30FC\u30CD"],[13084,1,"\u30B1\u30FC\u30B9"],[13085,1,"\u30B3\u30EB\u30CA"],[13086,1,"\u30B3\u30FC\u30DD"],[13087,1,"\u30B5\u30A4\u30AF\u30EB"],[13088,1,"\u30B5\u30F3\u30C1\u30FC\u30E0"],[13089,1,"\u30B7\u30EA\u30F3\u30B0"],[13090,1,"\u30BB\u30F3\u30C1"],[13091,1,"\u30BB\u30F3\u30C8"],[13092,1,"\u30C0\u30FC\u30B9"],[13093,1,"\u30C7\u30B7"],[13094,1,"\u30C9\u30EB"],[13095,1,"\u30C8\u30F3"],[13096,1,"\u30CA\u30CE"],[13097,1,"\u30CE\u30C3\u30C8"],[13098,1,"\u30CF\u30A4\u30C4"],[13099,1,"\u30D1\u30FC\u30BB\u30F3\u30C8"],[13100,1,"\u30D1\u30FC\u30C4"],[13101,1,"\u30D0\u30FC\u30EC\u30EB"],[13102,1,"\u30D4\u30A2\u30B9\u30C8\u30EB"],[13103,1,"\u30D4\u30AF\u30EB"],[13104,1,"\u30D4\u30B3"],[13105,1,"\u30D3\u30EB"],[13106,1,"\u30D5\u30A1\u30E9\u30C3\u30C9"],[13107,1,"\u30D5\u30A3\u30FC\u30C8"],[13108,1,"\u30D6\u30C3\u30B7\u30A7\u30EB"],[13109,1,"\u30D5\u30E9\u30F3"],[13110,1,"\u30D8\u30AF\u30BF\u30FC\u30EB"],[13111,1,"\u30DA\u30BD"],[13112,1,"\u30DA\u30CB\u30D2"],[13113,1,"\u30D8\u30EB\u30C4"],[13114,1,"\u30DA\u30F3\u30B9"],[13115,1,"\u30DA\u30FC\u30B8"],[13116,1,"\u30D9\u30FC\u30BF"],[13117,1,"\u30DD\u30A4\u30F3\u30C8"],[13118,1,"\u30DC\u30EB\u30C8"],[13119,1,"\u30DB\u30F3"],[13120,1,"\u30DD\u30F3\u30C9"],[13121,1,"\u30DB\u30FC\u30EB"],[13122,1,"\u30DB\u30FC\u30F3"],[13123,1,"\u30DE\u30A4\u30AF\u30ED"],[13124,1,"\u30DE\u30A4\u30EB"],[13125,1,"\u30DE\u30C3\u30CF"],[13126,1,"\u30DE\u30EB\u30AF"],[13127,1,"\u30DE\u30F3\u30B7\u30E7\u30F3"],[13128,1,"\u30DF\u30AF\u30ED\u30F3"],[13129,1,"\u30DF\u30EA"],[13130,1,"\u30DF\u30EA\u30D0\u30FC\u30EB"],[13131,1,"\u30E1\u30AC"],[13132,1,"\u30E1\u30AC\u30C8\u30F3"],[13133,1,"\u30E1\u30FC\u30C8\u30EB"],[13134,1,"\u30E4\u30FC\u30C9"],[13135,1,"\u30E4\u30FC\u30EB"],[13136,1,"\u30E6\u30A2\u30F3"],[13137,1,"\u30EA\u30C3\u30C8\u30EB"],[13138,1,"\u30EA\u30E9"],[13139,1,"\u30EB\u30D4\u30FC"],[13140,1,"\u30EB\u30FC\u30D6\u30EB"],[13141,1,"\u30EC\u30E0"],[13142,1,"\u30EC\u30F3\u30C8\u30B2\u30F3"],[13143,1,"\u30EF\u30C3\u30C8"],[13144,1,"0\u70B9"],[13145,1,"1\u70B9"],[13146,1,"2\u70B9"],[13147,1,"3\u70B9"],[13148,1,"4\u70B9"],[13149,1,"5\u70B9"],[13150,1,"6\u70B9"],[13151,1,"7\u70B9"],[13152,1,"8\u70B9"],[13153,1,"9\u70B9"],[13154,1,"10\u70B9"],[13155,1,"11\u70B9"],[13156,1,"12\u70B9"],[13157,1,"13\u70B9"],[13158,1,"14\u70B9"],[13159,1,"15\u70B9"],[13160,1,"16\u70B9"],[13161,1,"17\u70B9"],[13162,1,"18\u70B9"],[13163,1,"19\u70B9"],[13164,1,"20\u70B9"],[13165,1,"21\u70B9"],[13166,1,"22\u70B9"],[13167,1,"23\u70B9"],[13168,1,"24\u70B9"],[13169,1,"hpa"],[13170,1,"da"],[13171,1,"au"],[13172,1,"bar"],[13173,1,"ov"],[13174,1,"pc"],[13175,1,"dm"],[13176,1,"dm2"],[13177,1,"dm3"],[13178,1,"iu"],[13179,1,"\u5E73\u6210"],[13180,1,"\u662D\u548C"],[13181,1,"\u5927\u6B63"],[13182,1,"\u660E\u6CBB"],[13183,1,"\u682A\u5F0F\u4F1A\u793E"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"\u03BCa"],[13187,1,"ma"],[13188,1,"ka"],[13189,1,"kb"],[13190,1,"mb"],[13191,1,"gb"],[13192,1,"cal"],[13193,1,"kcal"],[13194,1,"pf"],[13195,1,"nf"],[13196,1,"\u03BCf"],[13197,1,"\u03BCg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"\u03BCl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"\u03BCm"],[13212,1,"mm"],[13213,1,"cm"],[13214,1,"km"],[13215,1,"mm2"],[13216,1,"cm2"],[13217,1,"m2"],[13218,1,"km2"],[13219,1,"mm3"],[13220,1,"cm3"],[13221,1,"m3"],[13222,1,"km3"],[13223,1,"m\u2215s"],[13224,1,"m\u2215s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad\u2215s"],[13231,1,"rad\u2215s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"\u03BCs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"\u03BCv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"\u03BCw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"k\u03C9"],[13249,1,"m\u03C9"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c\u2215kg"],[13255,3],[13256,1,"db"],[13257,1,"gy"],[13258,1,"ha"],[13259,1,"hp"],[13260,1,"in"],[13261,1,"kk"],[13262,1,"km"],[13263,1,"kt"],[13264,1,"lm"],[13265,1,"ln"],[13266,1,"log"],[13267,1,"lx"],[13268,1,"mb"],[13269,1,"mil"],[13270,1,"mol"],[13271,1,"ph"],[13272,3],[13273,1,"ppm"],[13274,1,"pr"],[13275,1,"sr"],[13276,1,"sv"],[13277,1,"wb"],[13278,1,"v\u2215m"],[13279,1,"a\u2215m"],[13280,1,"1\u65E5"],[13281,1,"2\u65E5"],[13282,1,"3\u65E5"],[13283,1,"4\u65E5"],[13284,1,"5\u65E5"],[13285,1,"6\u65E5"],[13286,1,"7\u65E5"],[13287,1,"8\u65E5"],[13288,1,"9\u65E5"],[13289,1,"10\u65E5"],[13290,1,"11\u65E5"],[13291,1,"12\u65E5"],[13292,1,"13\u65E5"],[13293,1,"14\u65E5"],[13294,1,"15\u65E5"],[13295,1,"16\u65E5"],[13296,1,"17\u65E5"],[13297,1,"18\u65E5"],[13298,1,"19\u65E5"],[13299,1,"20\u65E5"],[13300,1,"21\u65E5"],[13301,1,"22\u65E5"],[13302,1,"23\u65E5"],[13303,1,"24\u65E5"],[13304,1,"25\u65E5"],[13305,1,"26\u65E5"],[13306,1,"27\u65E5"],[13307,1,"28\u65E5"],[13308,1,"29\u65E5"],[13309,1,"30\u65E5"],[13310,1,"31\u65E5"],[13311,1,"gal"],[[13312,19893],2],[[19894,19903],2],[[19904,19967],2],[[19968,40869],2],[[40870,40891],2],[[40892,40899],2],[[40900,40907],2],[40908,2],[[40909,40917],2],[[40918,40938],2],[[40939,40943],2],[[40944,40956],2],[[40957,40959],2],[[40960,42124],2],[[42125,42127],3],[[42128,42145],2],[[42146,42147],2],[[42148,42163],2],[42164,2],[[42165,42176],2],[42177,2],[[42178,42180],2],[42181,2],[42182,2],[[42183,42191],3],[[42192,42237],2],[[42238,42239],2],[[42240,42508],2],[[42509,42511],2],[[42512,42539],2],[[42540,42559],3],[42560,1,"\uA641"],[42561,2],[42562,1,"\uA643"],[42563,2],[42564,1,"\uA645"],[42565,2],[42566,1,"\uA647"],[42567,2],[42568,1,"\uA649"],[42569,2],[42570,1,"\uA64B"],[42571,2],[42572,1,"\uA64D"],[42573,2],[42574,1,"\uA64F"],[42575,2],[42576,1,"\uA651"],[42577,2],[42578,1,"\uA653"],[42579,2],[42580,1,"\uA655"],[42581,2],[42582,1,"\uA657"],[42583,2],[42584,1,"\uA659"],[42585,2],[42586,1,"\uA65B"],[42587,2],[42588,1,"\uA65D"],[42589,2],[42590,1,"\uA65F"],[42591,2],[42592,1,"\uA661"],[42593,2],[42594,1,"\uA663"],[42595,2],[42596,1,"\uA665"],[42597,2],[42598,1,"\uA667"],[42599,2],[42600,1,"\uA669"],[42601,2],[42602,1,"\uA66B"],[42603,2],[42604,1,"\uA66D"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"\uA681"],[42625,2],[42626,1,"\uA683"],[42627,2],[42628,1,"\uA685"],[42629,2],[42630,1,"\uA687"],[42631,2],[42632,1,"\uA689"],[42633,2],[42634,1,"\uA68B"],[42635,2],[42636,1,"\uA68D"],[42637,2],[42638,1,"\uA68F"],[42639,2],[42640,1,"\uA691"],[42641,2],[42642,1,"\uA693"],[42643,2],[42644,1,"\uA695"],[42645,2],[42646,1,"\uA697"],[42647,2],[42648,1,"\uA699"],[42649,2],[42650,1,"\uA69B"],[42651,2],[42652,1,"\u044A"],[42653,1,"\u044C"],[42654,2],[42655,2],[[42656,42725],2],[[42726,42735],2],[[42736,42737],2],[[42738,42743],2],[[42744,42751],3],[[42752,42774],2],[[42775,42778],2],[[42779,42783],2],[[42784,42785],2],[42786,1,"\uA723"],[42787,2],[42788,1,"\uA725"],[42789,2],[42790,1,"\uA727"],[42791,2],[42792,1,"\uA729"],[42793,2],[42794,1,"\uA72B"],[42795,2],[42796,1,"\uA72D"],[42797,2],[42798,1,"\uA72F"],[[42799,42801],2],[42802,1,"\uA733"],[42803,2],[42804,1,"\uA735"],[42805,2],[42806,1,"\uA737"],[42807,2],[42808,1,"\uA739"],[42809,2],[42810,1,"\uA73B"],[42811,2],[42812,1,"\uA73D"],[42813,2],[42814,1,"\uA73F"],[42815,2],[42816,1,"\uA741"],[42817,2],[42818,1,"\uA743"],[42819,2],[42820,1,"\uA745"],[42821,2],[42822,1,"\uA747"],[42823,2],[42824,1,"\uA749"],[42825,2],[42826,1,"\uA74B"],[42827,2],[42828,1,"\uA74D"],[42829,2],[42830,1,"\uA74F"],[42831,2],[42832,1,"\uA751"],[42833,2],[42834,1,"\uA753"],[42835,2],[42836,1,"\uA755"],[42837,2],[42838,1,"\uA757"],[42839,2],[42840,1,"\uA759"],[42841,2],[42842,1,"\uA75B"],[42843,2],[42844,1,"\uA75D"],[42845,2],[42846,1,"\uA75F"],[42847,2],[42848,1,"\uA761"],[42849,2],[42850,1,"\uA763"],[42851,2],[42852,1,"\uA765"],[42853,2],[42854,1,"\uA767"],[42855,2],[42856,1,"\uA769"],[42857,2],[42858,1,"\uA76B"],[42859,2],[42860,1,"\uA76D"],[42861,2],[42862,1,"\uA76F"],[42863,2],[42864,1,"\uA76F"],[[42865,42872],2],[42873,1,"\uA77A"],[42874,2],[42875,1,"\uA77C"],[42876,2],[42877,1,"\u1D79"],[42878,1,"\uA77F"],[42879,2],[42880,1,"\uA781"],[42881,2],[42882,1,"\uA783"],[42883,2],[42884,1,"\uA785"],[42885,2],[42886,1,"\uA787"],[[42887,42888],2],[[42889,42890],2],[42891,1,"\uA78C"],[42892,2],[42893,1,"\u0265"],[42894,2],[42895,2],[42896,1,"\uA791"],[42897,2],[42898,1,"\uA793"],[42899,2],[[42900,42901],2],[42902,1,"\uA797"],[42903,2],[42904,1,"\uA799"],[42905,2],[42906,1,"\uA79B"],[42907,2],[42908,1,"\uA79D"],[42909,2],[42910,1,"\uA79F"],[42911,2],[42912,1,"\uA7A1"],[42913,2],[42914,1,"\uA7A3"],[42915,2],[42916,1,"\uA7A5"],[42917,2],[42918,1,"\uA7A7"],[42919,2],[42920,1,"\uA7A9"],[42921,2],[42922,1,"\u0266"],[42923,1,"\u025C"],[42924,1,"\u0261"],[42925,1,"\u026C"],[42926,1,"\u026A"],[42927,2],[42928,1,"\u029E"],[42929,1,"\u0287"],[42930,1,"\u029D"],[42931,1,"\uAB53"],[42932,1,"\uA7B5"],[42933,2],[42934,1,"\uA7B7"],[42935,2],[42936,1,"\uA7B9"],[42937,2],[42938,1,"\uA7BB"],[42939,2],[42940,1,"\uA7BD"],[42941,2],[42942,1,"\uA7BF"],[42943,2],[42944,1,"\uA7C1"],[42945,2],[42946,1,"\uA7C3"],[42947,2],[42948,1,"\uA794"],[42949,1,"\u0282"],[42950,1,"\u1D8E"],[42951,1,"\uA7C8"],[42952,2],[42953,1,"\uA7CA"],[42954,2],[[42955,42959],3],[42960,1,"\uA7D1"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"\uA7D7"],[42967,2],[42968,1,"\uA7D9"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"\uA7F6"],[42998,2],[42999,2],[43000,1,"\u0127"],[43001,1,"\u0153"],[43002,2],[[43003,43007],2],[[43008,43047],2],[[43048,43051],2],[43052,2],[[43053,43055],3],[[43056,43065],2],[[43066,43071],3],[[43072,43123],2],[[43124,43127],2],[[43128,43135],3],[[43136,43204],2],[43205,2],[[43206,43213],3],[[43214,43215],2],[[43216,43225],2],[[43226,43231],3],[[43232,43255],2],[[43256,43258],2],[43259,2],[43260,2],[43261,2],[[43262,43263],2],[[43264,43309],2],[[43310,43311],2],[[43312,43347],2],[[43348,43358],3],[43359,2],[[43360,43388],2],[[43389,43391],3],[[43392,43456],2],[[43457,43469],2],[43470,3],[[43471,43481],2],[[43482,43485],3],[[43486,43487],2],[[43488,43518],2],[43519,3],[[43520,43574],2],[[43575,43583],3],[[43584,43597],2],[[43598,43599],3],[[43600,43609],2],[[43610,43611],3],[[43612,43615],2],[[43616,43638],2],[[43639,43641],2],[[43642,43643],2],[[43644,43647],2],[[43648,43714],2],[[43715,43738],3],[[43739,43741],2],[[43742,43743],2],[[43744,43759],2],[[43760,43761],2],[[43762,43766],2],[[43767,43776],3],[[43777,43782],2],[[43783,43784],3],[[43785,43790],2],[[43791,43792],3],[[43793,43798],2],[[43799,43807],3],[[43808,43814],2],[43815,3],[[43816,43822],2],[43823,3],[[43824,43866],2],[43867,2],[43868,1,"\uA727"],[43869,1,"\uAB37"],[43870,1,"\u026B"],[43871,1,"\uAB52"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"\u028D"],[[43882,43883],2],[[43884,43887],3],[43888,1,"\u13A0"],[43889,1,"\u13A1"],[43890,1,"\u13A2"],[43891,1,"\u13A3"],[43892,1,"\u13A4"],[43893,1,"\u13A5"],[43894,1,"\u13A6"],[43895,1,"\u13A7"],[43896,1,"\u13A8"],[43897,1,"\u13A9"],[43898,1,"\u13AA"],[43899,1,"\u13AB"],[43900,1,"\u13AC"],[43901,1,"\u13AD"],[43902,1,"\u13AE"],[43903,1,"\u13AF"],[43904,1,"\u13B0"],[43905,1,"\u13B1"],[43906,1,"\u13B2"],[43907,1,"\u13B3"],[43908,1,"\u13B4"],[43909,1,"\u13B5"],[43910,1,"\u13B6"],[43911,1,"\u13B7"],[43912,1,"\u13B8"],[43913,1,"\u13B9"],[43914,1,"\u13BA"],[43915,1,"\u13BB"],[43916,1,"\u13BC"],[43917,1,"\u13BD"],[43918,1,"\u13BE"],[43919,1,"\u13BF"],[43920,1,"\u13C0"],[43921,1,"\u13C1"],[43922,1,"\u13C2"],[43923,1,"\u13C3"],[43924,1,"\u13C4"],[43925,1,"\u13C5"],[43926,1,"\u13C6"],[43927,1,"\u13C7"],[43928,1,"\u13C8"],[43929,1,"\u13C9"],[43930,1,"\u13CA"],[43931,1,"\u13CB"],[43932,1,"\u13CC"],[43933,1,"\u13CD"],[43934,1,"\u13CE"],[43935,1,"\u13CF"],[43936,1,"\u13D0"],[43937,1,"\u13D1"],[43938,1,"\u13D2"],[43939,1,"\u13D3"],[43940,1,"\u13D4"],[43941,1,"\u13D5"],[43942,1,"\u13D6"],[43943,1,"\u13D7"],[43944,1,"\u13D8"],[43945,1,"\u13D9"],[43946,1,"\u13DA"],[43947,1,"\u13DB"],[43948,1,"\u13DC"],[43949,1,"\u13DD"],[43950,1,"\u13DE"],[43951,1,"\u13DF"],[43952,1,"\u13E0"],[43953,1,"\u13E1"],[43954,1,"\u13E2"],[43955,1,"\u13E3"],[43956,1,"\u13E4"],[43957,1,"\u13E5"],[43958,1,"\u13E6"],[43959,1,"\u13E7"],[43960,1,"\u13E8"],[43961,1,"\u13E9"],[43962,1,"\u13EA"],[43963,1,"\u13EB"],[43964,1,"\u13EC"],[43965,1,"\u13ED"],[43966,1,"\u13EE"],[43967,1,"\u13EF"],[[43968,44010],2],[44011,2],[[44012,44013],2],[[44014,44015],3],[[44016,44025],2],[[44026,44031],3],[[44032,55203],2],[[55204,55215],3],[[55216,55238],2],[[55239,55242],3],[[55243,55291],2],[[55292,55295],3],[[55296,57343],3],[[57344,63743],3],[63744,1,"\u8C48"],[63745,1,"\u66F4"],[63746,1,"\u8ECA"],[63747,1,"\u8CC8"],[63748,1,"\u6ED1"],[63749,1,"\u4E32"],[63750,1,"\u53E5"],[[63751,63752],1,"\u9F9C"],[63753,1,"\u5951"],[63754,1,"\u91D1"],[63755,1,"\u5587"],[63756,1,"\u5948"],[63757,1,"\u61F6"],[63758,1,"\u7669"],[63759,1,"\u7F85"],[63760,1,"\u863F"],[63761,1,"\u87BA"],[63762,1,"\u88F8"],[63763,1,"\u908F"],[63764,1,"\u6A02"],[63765,1,"\u6D1B"],[63766,1,"\u70D9"],[63767,1,"\u73DE"],[63768,1,"\u843D"],[63769,1,"\u916A"],[63770,1,"\u99F1"],[63771,1,"\u4E82"],[63772,1,"\u5375"],[63773,1,"\u6B04"],[63774,1,"\u721B"],[63775,1,"\u862D"],[63776,1,"\u9E1E"],[63777,1,"\u5D50"],[63778,1,"\u6FEB"],[63779,1,"\u85CD"],[63780,1,"\u8964"],[63781,1,"\u62C9"],[63782,1,"\u81D8"],[63783,1,"\u881F"],[63784,1,"\u5ECA"],[63785,1,"\u6717"],[63786,1,"\u6D6A"],[63787,1,"\u72FC"],[63788,1,"\u90CE"],[63789,1,"\u4F86"],[63790,1,"\u51B7"],[63791,1,"\u52DE"],[63792,1,"\u64C4"],[63793,1,"\u6AD3"],[63794,1,"\u7210"],[63795,1,"\u76E7"],[63796,1,"\u8001"],[63797,1,"\u8606"],[63798,1,"\u865C"],[63799,1,"\u8DEF"],[63800,1,"\u9732"],[63801,1,"\u9B6F"],[63802,1,"\u9DFA"],[63803,1,"\u788C"],[63804,1,"\u797F"],[63805,1,"\u7DA0"],[63806,1,"\u83C9"],[63807,1,"\u9304"],[63808,1,"\u9E7F"],[63809,1,"\u8AD6"],[63810,1,"\u58DF"],[63811,1,"\u5F04"],[63812,1,"\u7C60"],[63813,1,"\u807E"],[63814,1,"\u7262"],[63815,1,"\u78CA"],[63816,1,"\u8CC2"],[63817,1,"\u96F7"],[63818,1,"\u58D8"],[63819,1,"\u5C62"],[63820,1,"\u6A13"],[63821,1,"\u6DDA"],[63822,1,"\u6F0F"],[63823,1,"\u7D2F"],[63824,1,"\u7E37"],[63825,1,"\u964B"],[63826,1,"\u52D2"],[63827,1,"\u808B"],[63828,1,"\u51DC"],[63829,1,"\u51CC"],[63830,1,"\u7A1C"],[63831,1,"\u7DBE"],[63832,1,"\u83F1"],[63833,1,"\u9675"],[63834,1,"\u8B80"],[63835,1,"\u62CF"],[63836,1,"\u6A02"],[63837,1,"\u8AFE"],[63838,1,"\u4E39"],[63839,1,"\u5BE7"],[63840,1,"\u6012"],[63841,1,"\u7387"],[63842,1,"\u7570"],[63843,1,"\u5317"],[63844,1,"\u78FB"],[63845,1,"\u4FBF"],[63846,1,"\u5FA9"],[63847,1,"\u4E0D"],[63848,1,"\u6CCC"],[63849,1,"\u6578"],[63850,1,"\u7D22"],[63851,1,"\u53C3"],[63852,1,"\u585E"],[63853,1,"\u7701"],[63854,1,"\u8449"],[63855,1,"\u8AAA"],[63856,1,"\u6BBA"],[63857,1,"\u8FB0"],[63858,1,"\u6C88"],[63859,1,"\u62FE"],[63860,1,"\u82E5"],[63861,1,"\u63A0"],[63862,1,"\u7565"],[63863,1,"\u4EAE"],[63864,1,"\u5169"],[63865,1,"\u51C9"],[63866,1,"\u6881"],[63867,1,"\u7CE7"],[63868,1,"\u826F"],[63869,1,"\u8AD2"],[63870,1,"\u91CF"],[63871,1,"\u52F5"],[63872,1,"\u5442"],[63873,1,"\u5973"],[63874,1,"\u5EEC"],[63875,1,"\u65C5"],[63876,1,"\u6FFE"],[63877,1,"\u792A"],[63878,1,"\u95AD"],[63879,1,"\u9A6A"],[63880,1,"\u9E97"],[63881,1,"\u9ECE"],[63882,1,"\u529B"],[63883,1,"\u66C6"],[63884,1,"\u6B77"],[63885,1,"\u8F62"],[63886,1,"\u5E74"],[63887,1,"\u6190"],[63888,1,"\u6200"],[63889,1,"\u649A"],[63890,1,"\u6F23"],[63891,1,"\u7149"],[63892,1,"\u7489"],[63893,1,"\u79CA"],[63894,1,"\u7DF4"],[63895,1,"\u806F"],[63896,1,"\u8F26"],[63897,1,"\u84EE"],[63898,1,"\u9023"],[63899,1,"\u934A"],[63900,1,"\u5217"],[63901,1,"\u52A3"],[63902,1,"\u54BD"],[63903,1,"\u70C8"],[63904,1,"\u88C2"],[63905,1,"\u8AAA"],[63906,1,"\u5EC9"],[63907,1,"\u5FF5"],[63908,1,"\u637B"],[63909,1,"\u6BAE"],[63910,1,"\u7C3E"],[63911,1,"\u7375"],[63912,1,"\u4EE4"],[63913,1,"\u56F9"],[63914,1,"\u5BE7"],[63915,1,"\u5DBA"],[63916,1,"\u601C"],[63917,1,"\u73B2"],[63918,1,"\u7469"],[63919,1,"\u7F9A"],[63920,1,"\u8046"],[63921,1,"\u9234"],[63922,1,"\u96F6"],[63923,1,"\u9748"],[63924,1,"\u9818"],[63925,1,"\u4F8B"],[63926,1,"\u79AE"],[63927,1,"\u91B4"],[63928,1,"\u96B8"],[63929,1,"\u60E1"],[63930,1,"\u4E86"],[63931,1,"\u50DA"],[63932,1,"\u5BEE"],[63933,1,"\u5C3F"],[63934,1,"\u6599"],[63935,1,"\u6A02"],[63936,1,"\u71CE"],[63937,1,"\u7642"],[63938,1,"\u84FC"],[63939,1,"\u907C"],[63940,1,"\u9F8D"],[63941,1,"\u6688"],[63942,1,"\u962E"],[63943,1,"\u5289"],[63944,1,"\u677B"],[63945,1,"\u67F3"],[63946,1,"\u6D41"],[63947,1,"\u6E9C"],[63948,1,"\u7409"],[63949,1,"\u7559"],[63950,1,"\u786B"],[63951,1,"\u7D10"],[63952,1,"\u985E"],[63953,1,"\u516D"],[63954,1,"\u622E"],[63955,1,"\u9678"],[63956,1,"\u502B"],[63957,1,"\u5D19"],[63958,1,"\u6DEA"],[63959,1,"\u8F2A"],[63960,1,"\u5F8B"],[63961,1,"\u6144"],[63962,1,"\u6817"],[63963,1,"\u7387"],[63964,1,"\u9686"],[63965,1,"\u5229"],[63966,1,"\u540F"],[63967,1,"\u5C65"],[63968,1,"\u6613"],[63969,1,"\u674E"],[63970,1,"\u68A8"],[63971,1,"\u6CE5"],[63972,1,"\u7406"],[63973,1,"\u75E2"],[63974,1,"\u7F79"],[63975,1,"\u88CF"],[63976,1,"\u88E1"],[63977,1,"\u91CC"],[63978,1,"\u96E2"],[63979,1,"\u533F"],[63980,1,"\u6EBA"],[63981,1,"\u541D"],[63982,1,"\u71D0"],[63983,1,"\u7498"],[63984,1,"\u85FA"],[63985,1,"\u96A3"],[63986,1,"\u9C57"],[63987,1,"\u9E9F"],[63988,1,"\u6797"],[63989,1,"\u6DCB"],[63990,1,"\u81E8"],[63991,1,"\u7ACB"],[63992,1,"\u7B20"],[63993,1,"\u7C92"],[63994,1,"\u72C0"],[63995,1,"\u7099"],[63996,1,"\u8B58"],[63997,1,"\u4EC0"],[63998,1,"\u8336"],[63999,1,"\u523A"],[64000,1,"\u5207"],[64001,1,"\u5EA6"],[64002,1,"\u62D3"],[64003,1,"\u7CD6"],[64004,1,"\u5B85"],[64005,1,"\u6D1E"],[64006,1,"\u66B4"],[64007,1,"\u8F3B"],[64008,1,"\u884C"],[64009,1,"\u964D"],[64010,1,"\u898B"],[64011,1,"\u5ED3"],[64012,1,"\u5140"],[64013,1,"\u55C0"],[[64014,64015],2],[64016,1,"\u585A"],[64017,2],[64018,1,"\u6674"],[[64019,64020],2],[64021,1,"\u51DE"],[64022,1,"\u732A"],[64023,1,"\u76CA"],[64024,1,"\u793C"],[64025,1,"\u795E"],[64026,1,"\u7965"],[64027,1,"\u798F"],[64028,1,"\u9756"],[64029,1,"\u7CBE"],[64030,1,"\u7FBD"],[64031,2],[64032,1,"\u8612"],[64033,2],[64034,1,"\u8AF8"],[[64035,64036],2],[64037,1,"\u9038"],[64038,1,"\u90FD"],[[64039,64041],2],[64042,1,"\u98EF"],[64043,1,"\u98FC"],[64044,1,"\u9928"],[64045,1,"\u9DB4"],[64046,1,"\u90DE"],[64047,1,"\u96B7"],[64048,1,"\u4FAE"],[64049,1,"\u50E7"],[64050,1,"\u514D"],[64051,1,"\u52C9"],[64052,1,"\u52E4"],[64053,1,"\u5351"],[64054,1,"\u559D"],[64055,1,"\u5606"],[64056,1,"\u5668"],[64057,1,"\u5840"],[64058,1,"\u58A8"],[64059,1,"\u5C64"],[64060,1,"\u5C6E"],[64061,1,"\u6094"],[64062,1,"\u6168"],[64063,1,"\u618E"],[64064,1,"\u61F2"],[64065,1,"\u654F"],[64066,1,"\u65E2"],[64067,1,"\u6691"],[64068,1,"\u6885"],[64069,1,"\u6D77"],[64070,1,"\u6E1A"],[64071,1,"\u6F22"],[64072,1,"\u716E"],[64073,1,"\u722B"],[64074,1,"\u7422"],[64075,1,"\u7891"],[64076,1,"\u793E"],[64077,1,"\u7949"],[64078,1,"\u7948"],[64079,1,"\u7950"],[64080,1,"\u7956"],[64081,1,"\u795D"],[64082,1,"\u798D"],[64083,1,"\u798E"],[64084,1,"\u7A40"],[64085,1,"\u7A81"],[64086,1,"\u7BC0"],[64087,1,"\u7DF4"],[64088,1,"\u7E09"],[64089,1,"\u7E41"],[64090,1,"\u7F72"],[64091,1,"\u8005"],[64092,1,"\u81ED"],[[64093,64094],1,"\u8279"],[64095,1,"\u8457"],[64096,1,"\u8910"],[64097,1,"\u8996"],[64098,1,"\u8B01"],[64099,1,"\u8B39"],[64100,1,"\u8CD3"],[64101,1,"\u8D08"],[64102,1,"\u8FB6"],[64103,1,"\u9038"],[64104,1,"\u96E3"],[64105,1,"\u97FF"],[64106,1,"\u983B"],[64107,1,"\u6075"],[64108,1,"\uD850\uDEEE"],[64109,1,"\u8218"],[[64110,64111],3],[64112,1,"\u4E26"],[64113,1,"\u51B5"],[64114,1,"\u5168"],[64115,1,"\u4F80"],[64116,1,"\u5145"],[64117,1,"\u5180"],[64118,1,"\u52C7"],[64119,1,"\u52FA"],[64120,1,"\u559D"],[64121,1,"\u5555"],[64122,1,"\u5599"],[64123,1,"\u55E2"],[64124,1,"\u585A"],[64125,1,"\u58B3"],[64126,1,"\u5944"],[64127,1,"\u5954"],[64128,1,"\u5A62"],[64129,1,"\u5B28"],[64130,1,"\u5ED2"],[64131,1,"\u5ED9"],[64132,1,"\u5F69"],[64133,1,"\u5FAD"],[64134,1,"\u60D8"],[64135,1,"\u614E"],[64136,1,"\u6108"],[64137,1,"\u618E"],[64138,1,"\u6160"],[64139,1,"\u61F2"],[64140,1,"\u6234"],[64141,1,"\u63C4"],[64142,1,"\u641C"],[64143,1,"\u6452"],[64144,1,"\u6556"],[64145,1,"\u6674"],[64146,1,"\u6717"],[64147,1,"\u671B"],[64148,1,"\u6756"],[64149,1,"\u6B79"],[64150,1,"\u6BBA"],[64151,1,"\u6D41"],[64152,1,"\u6EDB"],[64153,1,"\u6ECB"],[64154,1,"\u6F22"],[64155,1,"\u701E"],[64156,1,"\u716E"],[64157,1,"\u77A7"],[64158,1,"\u7235"],[64159,1,"\u72AF"],[64160,1,"\u732A"],[64161,1,"\u7471"],[64162,1,"\u7506"],[64163,1,"\u753B"],[64164,1,"\u761D"],[64165,1,"\u761F"],[64166,1,"\u76CA"],[64167,1,"\u76DB"],[64168,1,"\u76F4"],[64169,1,"\u774A"],[64170,1,"\u7740"],[64171,1,"\u78CC"],[64172,1,"\u7AB1"],[64173,1,"\u7BC0"],[64174,1,"\u7C7B"],[64175,1,"\u7D5B"],[64176,1,"\u7DF4"],[64177,1,"\u7F3E"],[64178,1,"\u8005"],[64179,1,"\u8352"],[64180,1,"\u83EF"],[64181,1,"\u8779"],[64182,1,"\u8941"],[64183,1,"\u8986"],[64184,1,"\u8996"],[64185,1,"\u8ABF"],[64186,1,"\u8AF8"],[64187,1,"\u8ACB"],[64188,1,"\u8B01"],[64189,1,"\u8AFE"],[64190,1,"\u8AED"],[64191,1,"\u8B39"],[64192,1,"\u8B8A"],[64193,1,"\u8D08"],[64194,1,"\u8F38"],[64195,1,"\u9072"],[64196,1,"\u9199"],[64197,1,"\u9276"],[64198,1,"\u967C"],[64199,1,"\u96E3"],[64200,1,"\u9756"],[64201,1,"\u97DB"],[64202,1,"\u97FF"],[64203,1,"\u980B"],[64204,1,"\u983B"],[64205,1,"\u9B12"],[64206,1,"\u9F9C"],[64207,1,"\uD84A\uDC4A"],[64208,1,"\uD84A\uDC44"],[64209,1,"\uD84C\uDFD5"],[64210,1,"\u3B9D"],[64211,1,"\u4018"],[64212,1,"\u4039"],[64213,1,"\uD854\uDE49"],[64214,1,"\uD857\uDCD0"],[64215,1,"\uD85F\uDED3"],[64216,1,"\u9F43"],[64217,1,"\u9F8E"],[[64218,64255],3],[64256,1,"ff"],[64257,1,"fi"],[64258,1,"fl"],[64259,1,"ffi"],[64260,1,"ffl"],[[64261,64262],1,"st"],[[64263,64274],3],[64275,1,"\u0574\u0576"],[64276,1,"\u0574\u0565"],[64277,1,"\u0574\u056B"],[64278,1,"\u057E\u0576"],[64279,1,"\u0574\u056D"],[[64280,64284],3],[64285,1,"\u05D9\u05B4"],[64286,2],[64287,1,"\u05F2\u05B7"],[64288,1,"\u05E2"],[64289,1,"\u05D0"],[64290,1,"\u05D3"],[64291,1,"\u05D4"],[64292,1,"\u05DB"],[64293,1,"\u05DC"],[64294,1,"\u05DD"],[64295,1,"\u05E8"],[64296,1,"\u05EA"],[64297,5,"+"],[64298,1,"\u05E9\u05C1"],[64299,1,"\u05E9\u05C2"],[64300,1,"\u05E9\u05BC\u05C1"],[64301,1,"\u05E9\u05BC\u05C2"],[64302,1,"\u05D0\u05B7"],[64303,1,"\u05D0\u05B8"],[64304,1,"\u05D0\u05BC"],[64305,1,"\u05D1\u05BC"],[64306,1,"\u05D2\u05BC"],[64307,1,"\u05D3\u05BC"],[64308,1,"\u05D4\u05BC"],[64309,1,"\u05D5\u05BC"],[64310,1,"\u05D6\u05BC"],[64311,3],[64312,1,"\u05D8\u05BC"],[64313,1,"\u05D9\u05BC"],[64314,1,"\u05DA\u05BC"],[64315,1,"\u05DB\u05BC"],[64316,1,"\u05DC\u05BC"],[64317,3],[64318,1,"\u05DE\u05BC"],[64319,3],[64320,1,"\u05E0\u05BC"],[64321,1,"\u05E1\u05BC"],[64322,3],[64323,1,"\u05E3\u05BC"],[64324,1,"\u05E4\u05BC"],[64325,3],[64326,1,"\u05E6\u05BC"],[64327,1,"\u05E7\u05BC"],[64328,1,"\u05E8\u05BC"],[64329,1,"\u05E9\u05BC"],[64330,1,"\u05EA\u05BC"],[64331,1,"\u05D5\u05B9"],[64332,1,"\u05D1\u05BF"],[64333,1,"\u05DB\u05BF"],[64334,1,"\u05E4\u05BF"],[64335,1,"\u05D0\u05DC"],[[64336,64337],1,"\u0671"],[[64338,64341],1,"\u067B"],[[64342,64345],1,"\u067E"],[[64346,64349],1,"\u0680"],[[64350,64353],1,"\u067A"],[[64354,64357],1,"\u067F"],[[64358,64361],1,"\u0679"],[[64362,64365],1,"\u06A4"],[[64366,64369],1,"\u06A6"],[[64370,64373],1,"\u0684"],[[64374,64377],1,"\u0683"],[[64378,64381],1,"\u0686"],[[64382,64385],1,"\u0687"],[[64386,64387],1,"\u068D"],[[64388,64389],1,"\u068C"],[[64390,64391],1,"\u068E"],[[64392,64393],1,"\u0688"],[[64394,64395],1,"\u0698"],[[64396,64397],1,"\u0691"],[[64398,64401],1,"\u06A9"],[[64402,64405],1,"\u06AF"],[[64406,64409],1,"\u06B3"],[[64410,64413],1,"\u06B1"],[[64414,64415],1,"\u06BA"],[[64416,64419],1,"\u06BB"],[[64420,64421],1,"\u06C0"],[[64422,64425],1,"\u06C1"],[[64426,64429],1,"\u06BE"],[[64430,64431],1,"\u06D2"],[[64432,64433],1,"\u06D3"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"\u06AD"],[[64471,64472],1,"\u06C7"],[[64473,64474],1,"\u06C6"],[[64475,64476],1,"\u06C8"],[64477,1,"\u06C7\u0674"],[[64478,64479],1,"\u06CB"],[[64480,64481],1,"\u06C5"],[[64482,64483],1,"\u06C9"],[[64484,64487],1,"\u06D0"],[[64488,64489],1,"\u0649"],[[64490,64491],1,"\u0626\u0627"],[[64492,64493],1,"\u0626\u06D5"],[[64494,64495],1,"\u0626\u0648"],[[64496,64497],1,"\u0626\u06C7"],[[64498,64499],1,"\u0626\u06C6"],[[64500,64501],1,"\u0626\u06C8"],[[64502,64504],1,"\u0626\u06D0"],[[64505,64507],1,"\u0626\u0649"],[[64508,64511],1,"\u06CC"],[64512,1,"\u0626\u062C"],[64513,1,"\u0626\u062D"],[64514,1,"\u0626\u0645"],[64515,1,"\u0626\u0649"],[64516,1,"\u0626\u064A"],[64517,1,"\u0628\u062C"],[64518,1,"\u0628\u062D"],[64519,1,"\u0628\u062E"],[64520,1,"\u0628\u0645"],[64521,1,"\u0628\u0649"],[64522,1,"\u0628\u064A"],[64523,1,"\u062A\u062C"],[64524,1,"\u062A\u062D"],[64525,1,"\u062A\u062E"],[64526,1,"\u062A\u0645"],[64527,1,"\u062A\u0649"],[64528,1,"\u062A\u064A"],[64529,1,"\u062B\u062C"],[64530,1,"\u062B\u0645"],[64531,1,"\u062B\u0649"],[64532,1,"\u062B\u064A"],[64533,1,"\u062C\u062D"],[64534,1,"\u062C\u0645"],[64535,1,"\u062D\u062C"],[64536,1,"\u062D\u0645"],[64537,1,"\u062E\u062C"],[64538,1,"\u062E\u062D"],[64539,1,"\u062E\u0645"],[64540,1,"\u0633\u062C"],[64541,1,"\u0633\u062D"],[64542,1,"\u0633\u062E"],[64543,1,"\u0633\u0645"],[64544,1,"\u0635\u062D"],[64545,1,"\u0635\u0645"],[64546,1,"\u0636\u062C"],[64547,1,"\u0636\u062D"],[64548,1,"\u0636\u062E"],[64549,1,"\u0636\u0645"],[64550,1,"\u0637\u062D"],[64551,1,"\u0637\u0645"],[64552,1,"\u0638\u0645"],[64553,1,"\u0639\u062C"],[64554,1,"\u0639\u0645"],[64555,1,"\u063A\u062C"],[64556,1,"\u063A\u0645"],[64557,1,"\u0641\u062C"],[64558,1,"\u0641\u062D"],[64559,1,"\u0641\u062E"],[64560,1,"\u0641\u0645"],[64561,1,"\u0641\u0649"],[64562,1,"\u0641\u064A"],[64563,1,"\u0642\u062D"],[64564,1,"\u0642\u0645"],[64565,1,"\u0642\u0649"],[64566,1,"\u0642\u064A"],[64567,1,"\u0643\u0627"],[64568,1,"\u0643\u062C"],[64569,1,"\u0643\u062D"],[64570,1,"\u0643\u062E"],[64571,1,"\u0643\u0644"],[64572,1,"\u0643\u0645"],[64573,1,"\u0643\u0649"],[64574,1,"\u0643\u064A"],[64575,1,"\u0644\u062C"],[64576,1,"\u0644\u062D"],[64577,1,"\u0644\u062E"],[64578,1,"\u0644\u0645"],[64579,1,"\u0644\u0649"],[64580,1,"\u0644\u064A"],[64581,1,"\u0645\u062C"],[64582,1,"\u0645\u062D"],[64583,1,"\u0645\u062E"],[64584,1,"\u0645\u0645"],[64585,1,"\u0645\u0649"],[64586,1,"\u0645\u064A"],[64587,1,"\u0646\u062C"],[64588,1,"\u0646\u062D"],[64589,1,"\u0646\u062E"],[64590,1,"\u0646\u0645"],[64591,1,"\u0646\u0649"],[64592,1,"\u0646\u064A"],[64593,1,"\u0647\u062C"],[64594,1,"\u0647\u0645"],[64595,1,"\u0647\u0649"],[64596,1,"\u0647\u064A"],[64597,1,"\u064A\u062C"],[64598,1,"\u064A\u062D"],[64599,1,"\u064A\u062E"],[64600,1,"\u064A\u0645"],[64601,1,"\u064A\u0649"],[64602,1,"\u064A\u064A"],[64603,1,"\u0630\u0670"],[64604,1,"\u0631\u0670"],[64605,1,"\u0649\u0670"],[64606,5," \u064C\u0651"],[64607,5," \u064D\u0651"],[64608,5," \u064E\u0651"],[64609,5," \u064F\u0651"],[64610,5," \u0650\u0651"],[64611,5," \u0651\u0670"],[64612,1,"\u0626\u0631"],[64613,1,"\u0626\u0632"],[64614,1,"\u0626\u0645"],[64615,1,"\u0626\u0646"],[64616,1,"\u0626\u0649"],[64617,1,"\u0626\u064A"],[64618,1,"\u0628\u0631"],[64619,1,"\u0628\u0632"],[64620,1,"\u0628\u0645"],[64621,1,"\u0628\u0646"],[64622,1,"\u0628\u0649"],[64623,1,"\u0628\u064A"],[64624,1,"\u062A\u0631"],[64625,1,"\u062A\u0632"],[64626,1,"\u062A\u0645"],[64627,1,"\u062A\u0646"],[64628,1,"\u062A\u0649"],[64629,1,"\u062A\u064A"],[64630,1,"\u062B\u0631"],[64631,1,"\u062B\u0632"],[64632,1,"\u062B\u0645"],[64633,1,"\u062B\u0646"],[64634,1,"\u062B\u0649"],[64635,1,"\u062B\u064A"],[64636,1,"\u0641\u0649"],[64637,1,"\u0641\u064A"],[64638,1,"\u0642\u0649"],[64639,1,"\u0642\u064A"],[64640,1,"\u0643\u0627"],[64641,1,"\u0643\u0644"],[64642,1,"\u0643\u0645"],[64643,1,"\u0643\u0649"],[64644,1,"\u0643\u064A"],[64645,1,"\u0644\u0645"],[64646,1,"\u0644\u0649"],[64647,1,"\u0644\u064A"],[64648,1,"\u0645\u0627"],[64649,1,"\u0645\u0645"],[64650,1,"\u0646\u0631"],[64651,1,"\u0646\u0632"],[64652,1,"\u0646\u0645"],[64653,1,"\u0646\u0646"],[64654,1,"\u0646\u0649"],[64655,1,"\u0646\u064A"],[64656,1,"\u0649\u0670"],[64657,1,"\u064A\u0631"],[64658,1,"\u064A\u0632"],[64659,1,"\u064A\u0645"],[64660,1,"\u064A\u0646"],[64661,1,"\u064A\u0649"],[64662,1,"\u064A\u064A"],[64663,1,"\u0626\u062C"],[64664,1,"\u0626\u062D"],[64665,1,"\u0626\u062E"],[64666,1,"\u0626\u0645"],[64667,1,"\u0626\u0647"],[64668,1,"\u0628\u062C"],[64669,1,"\u0628\u062D"],[64670,1,"\u0628\u062E"],[64671,1,"\u0628\u0645"],[64672,1,"\u0628\u0647"],[64673,1,"\u062A\u062C"],[64674,1,"\u062A\u062D"],[64675,1,"\u062A\u062E"],[64676,1,"\u062A\u0645"],[64677,1,"\u062A\u0647"],[64678,1,"\u062B\u0645"],[64679,1,"\u062C\u062D"],[64680,1,"\u062C\u0645"],[64681,1,"\u062D\u062C"],[64682,1,"\u062D\u0645"],[64683,1,"\u062E\u062C"],[64684,1,"\u062E\u0645"],[64685,1,"\u0633\u062C"],[64686,1,"\u0633\u062D"],[64687,1,"\u0633\u062E"],[64688,1,"\u0633\u0645"],[64689,1,"\u0635\u062D"],[64690,1,"\u0635\u062E"],[64691,1,"\u0635\u0645"],[64692,1,"\u0636\u062C"],[64693,1,"\u0636\u062D"],[64694,1,"\u0636\u062E"],[64695,1,"\u0636\u0645"],[64696,1,"\u0637\u062D"],[64697,1,"\u0638\u0645"],[64698,1,"\u0639\u062C"],[64699,1,"\u0639\u0645"],[64700,1,"\u063A\u062C"],[64701,1,"\u063A\u0645"],[64702,1,"\u0641\u062C"],[64703,1,"\u0641\u062D"],[64704,1,"\u0641\u062E"],[64705,1,"\u0641\u0645"],[64706,1,"\u0642\u062D"],[64707,1,"\u0642\u0645"],[64708,1,"\u0643\u062C"],[64709,1,"\u0643\u062D"],[64710,1,"\u0643\u062E"],[64711,1,"\u0643\u0644"],[64712,1,"\u0643\u0645"],[64713,1,"\u0644\u062C"],[64714,1,"\u0644\u062D"],[64715,1,"\u0644\u062E"],[64716,1,"\u0644\u0645"],[64717,1,"\u0644\u0647"],[64718,1,"\u0645\u062C"],[64719,1,"\u0645\u062D"],[64720,1,"\u0645\u062E"],[64721,1,"\u0645\u0645"],[64722,1,"\u0646\u062C"],[64723,1,"\u0646\u062D"],[64724,1,"\u0646\u062E"],[64725,1,"\u0646\u0645"],[64726,1,"\u0646\u0647"],[64727,1,"\u0647\u062C"],[64728,1,"\u0647\u0645"],[64729,1,"\u0647\u0670"],[64730,1,"\u064A\u062C"],[64731,1,"\u064A\u062D"],[64732,1,"\u064A\u062E"],[64733,1,"\u064A\u0645"],[64734,1,"\u064A\u0647"],[64735,1,"\u0626\u0645"],[64736,1,"\u0626\u0647"],[64737,1,"\u0628\u0645"],[64738,1,"\u0628\u0647"],[64739,1,"\u062A\u0645"],[64740,1,"\u062A\u0647"],[64741,1,"\u062B\u0645"],[64742,1,"\u062B\u0647"],[64743,1,"\u0633\u0645"],[64744,1,"\u0633\u0647"],[64745,1,"\u0634\u0645"],[64746,1,"\u0634\u0647"],[64747,1,"\u0643\u0644"],[64748,1,"\u0643\u0645"],[64749,1,"\u0644\u0645"],[64750,1,"\u0646\u0645"],[64751,1,"\u0646\u0647"],[64752,1,"\u064A\u0645"],[64753,1,"\u064A\u0647"],[64754,1,"\u0640\u064E\u0651"],[64755,1,"\u0640\u064F\u0651"],[64756,1,"\u0640\u0650\u0651"],[64757,1,"\u0637\u0649"],[64758,1,"\u0637\u064A"],[64759,1,"\u0639\u0649"],[64760,1,"\u0639\u064A"],[64761,1,"\u063A\u0649"],[64762,1,"\u063A\u064A"],[64763,1,"\u0633\u0649"],[64764,1,"\u0633\u064A"],[64765,1,"\u0634\u0649"],[64766,1,"\u0634\u064A"],[64767,1,"\u062D\u0649"],[64768,1,"\u062D\u064A"],[64769,1,"\u062C\u0649"],[64770,1,"\u062C\u064A"],[64771,1,"\u062E\u0649"],[64772,1,"\u062E\u064A"],[64773,1,"\u0635\u0649"],[64774,1,"\u0635\u064A"],[64775,1,"\u0636\u0649"],[64776,1,"\u0636\u064A"],[64777,1,"\u0634\u062C"],[64778,1,"\u0634\u062D"],[64779,1,"\u0634\u062E"],[64780,1,"\u0634\u0645"],[64781,1,"\u0634\u0631"],[64782,1,"\u0633\u0631"],[64783,1,"\u0635\u0631"],[64784,1,"\u0636\u0631"],[64785,1,"\u0637\u0649"],[64786,1,"\u0637\u064A"],[64787,1,"\u0639\u0649"],[64788,1,"\u0639\u064A"],[64789,1,"\u063A\u0649"],[64790,1,"\u063A\u064A"],[64791,1,"\u0633\u0649"],[64792,1,"\u0633\u064A"],[64793,1,"\u0634\u0649"],[64794,1,"\u0634\u064A"],[64795,1,"\u062D\u0649"],[64796,1,"\u062D\u064A"],[64797,1,"\u062C\u0649"],[64798,1,"\u062C\u064A"],[64799,1,"\u062E\u0649"],[64800,1,"\u062E\u064A"],[64801,1,"\u0635\u0649"],[64802,1,"\u0635\u064A"],[64803,1,"\u0636\u0649"],[64804,1,"\u0636\u064A"],[64805,1,"\u0634\u062C"],[64806,1,"\u0634\u062D"],[64807,1,"\u0634\u062E"],[64808,1,"\u0634\u0645"],[64809,1,"\u0634\u0631"],[64810,1,"\u0633\u0631"],[64811,1,"\u0635\u0631"],[64812,1,"\u0636\u0631"],[64813,1,"\u0634\u062C"],[64814,1,"\u0634\u062D"],[64815,1,"\u0634\u062E"],[64816,1,"\u0634\u0645"],[64817,1,"\u0633\u0647"],[64818,1,"\u0634\u0647"],[64819,1,"\u0637\u0645"],[64820,1,"\u0633\u062C"],[64821,1,"\u0633\u062D"],[64822,1,"\u0633\u062E"],[64823,1,"\u0634\u062C"],[64824,1,"\u0634\u062D"],[64825,1,"\u0634\u062E"],[64826,1,"\u0637\u0645"],[64827,1,"\u0638\u0645"],[[64828,64829],1,"\u0627\u064B"],[[64830,64831],2],[[64832,64847],2],[64848,1,"\u062A\u062C\u0645"],[[64849,64850],1,"\u062A\u062D\u062C"],[64851,1,"\u062A\u062D\u0645"],[64852,1,"\u062A\u062E\u0645"],[64853,1,"\u062A\u0645\u062C"],[64854,1,"\u062A\u0645\u062D"],[64855,1,"\u062A\u0645\u062E"],[[64856,64857],1,"\u062C\u0645\u062D"],[64858,1,"\u062D\u0645\u064A"],[64859,1,"\u062D\u0645\u0649"],[64860,1,"\u0633\u062D\u062C"],[64861,1,"\u0633\u062C\u062D"],[64862,1,"\u0633\u062C\u0649"],[[64863,64864],1,"\u0633\u0645\u062D"],[64865,1,"\u0633\u0645\u062C"],[[64866,64867],1,"\u0633\u0645\u0645"],[[64868,64869],1,"\u0635\u062D\u062D"],[64870,1,"\u0635\u0645\u0645"],[[64871,64872],1,"\u0634\u062D\u0645"],[64873,1,"\u0634\u062C\u064A"],[[64874,64875],1,"\u0634\u0645\u062E"],[[64876,64877],1,"\u0634\u0645\u0645"],[64878,1,"\u0636\u062D\u0649"],[[64879,64880],1,"\u0636\u062E\u0645"],[[64881,64882],1,"\u0637\u0645\u062D"],[64883,1,"\u0637\u0645\u0645"],[64884,1,"\u0637\u0645\u064A"],[64885,1,"\u0639\u062C\u0645"],[[64886,64887],1,"\u0639\u0645\u0645"],[64888,1,"\u0639\u0645\u0649"],[64889,1,"\u063A\u0645\u0645"],[64890,1,"\u063A\u0645\u064A"],[64891,1,"\u063A\u0645\u0649"],[[64892,64893],1,"\u0641\u062E\u0645"],[64894,1,"\u0642\u0645\u062D"],[64895,1,"\u0642\u0645\u0645"],[64896,1,"\u0644\u062D\u0645"],[64897,1,"\u0644\u062D\u064A"],[64898,1,"\u0644\u062D\u0649"],[[64899,64900],1,"\u0644\u062C\u062C"],[[64901,64902],1,"\u0644\u062E\u0645"],[[64903,64904],1,"\u0644\u0645\u062D"],[64905,1,"\u0645\u062D\u062C"],[64906,1,"\u0645\u062D\u0645"],[64907,1,"\u0645\u062D\u064A"],[64908,1,"\u0645\u062C\u062D"],[64909,1,"\u0645\u062C\u0645"],[64910,1,"\u0645\u062E\u062C"],[64911,1,"\u0645\u062E\u0645"],[[64912,64913],3],[64914,1,"\u0645\u062C\u062E"],[64915,1,"\u0647\u0645\u062C"],[64916,1,"\u0647\u0645\u0645"],[64917,1,"\u0646\u062D\u0645"],[64918,1,"\u0646\u062D\u0649"],[[64919,64920],1,"\u0646\u062C\u0645"],[64921,1,"\u0646\u062C\u0649"],[64922,1,"\u0646\u0645\u064A"],[64923,1,"\u0646\u0645\u0649"],[[64924,64925],1,"\u064A\u0645\u0645"],[64926,1,"\u0628\u062E\u064A"],[64927,1,"\u062A\u062C\u064A"],[64928,1,"\u062A\u062C\u0649"],[64929,1,"\u062A\u062E\u064A"],[64930,1,"\u062A\u062E\u0649"],[64931,1,"\u062A\u0645\u064A"],[64932,1,"\u062A\u0645\u0649"],[64933,1,"\u062C\u0645\u064A"],[64934,1,"\u062C\u062D\u0649"],[64935,1,"\u062C\u0645\u0649"],[64936,1,"\u0633\u062E\u0649"],[64937,1,"\u0635\u062D\u064A"],[64938,1,"\u0634\u062D\u064A"],[64939,1,"\u0636\u062D\u064A"],[64940,1,"\u0644\u062C\u064A"],[64941,1,"\u0644\u0645\u064A"],[64942,1,"\u064A\u062D\u064A"],[64943,1,"\u064A\u062C\u064A"],[64944,1,"\u064A\u0645\u064A"],[64945,1,"\u0645\u0645\u064A"],[64946,1,"\u0642\u0645\u064A"],[64947,1,"\u0646\u062D\u064A"],[64948,1,"\u0642\u0645\u062D"],[64949,1,"\u0644\u062D\u0645"],[64950,1,"\u0639\u0645\u064A"],[64951,1,"\u0643\u0645\u064A"],[64952,1,"\u0646\u062C\u062D"],[64953,1,"\u0645\u062E\u064A"],[64954,1,"\u0644\u062C\u0645"],[64955,1,"\u0643\u0645\u0645"],[64956,1,"\u0644\u062C\u0645"],[64957,1,"\u0646\u062C\u062D"],[64958,1,"\u062C\u062D\u064A"],[64959,1,"\u062D\u062C\u064A"],[64960,1,"\u0645\u062C\u064A"],[64961,1,"\u0641\u0645\u064A"],[64962,1,"\u0628\u062D\u064A"],[64963,1,"\u0643\u0645\u0645"],[64964,1,"\u0639\u062C\u0645"],[64965,1,"\u0635\u0645\u0645"],[64966,1,"\u0633\u062E\u064A"],[64967,1,"\u0646\u062C\u064A"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"\u0635\u0644\u06D2"],[65009,1,"\u0642\u0644\u06D2"],[65010,1,"\u0627\u0644\u0644\u0647"],[65011,1,"\u0627\u0643\u0628\u0631"],[65012,1,"\u0645\u062D\u0645\u062F"],[65013,1,"\u0635\u0644\u0639\u0645"],[65014,1,"\u0631\u0633\u0648\u0644"],[65015,1,"\u0639\u0644\u064A\u0647"],[65016,1,"\u0648\u0633\u0644\u0645"],[65017,1,"\u0635\u0644\u0649"],[65018,5,"\u0635\u0644\u0649 \u0627\u0644\u0644\u0647 \u0639\u0644\u064A\u0647 \u0648\u0633\u0644\u0645"],[65019,5,"\u062C\u0644 \u062C\u0644\u0627\u0644\u0647"],[65020,1,"\u0631\u06CC\u0627\u0644"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"\u3001"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"\u3016"],[65048,1,"\u3017"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"\u2014"],[65074,1,"\u2013"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"\u3014"],[65082,1,"\u3015"],[65083,1,"\u3010"],[65084,1,"\u3011"],[65085,1,"\u300A"],[65086,1,"\u300B"],[65087,1,"\u3008"],[65088,1,"\u3009"],[65089,1,"\u300C"],[65090,1,"\u300D"],[65091,1,"\u300E"],[65092,1,"\u300F"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," \u0305"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"\u3001"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"\u2014"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"\u3014"],[65118,1,"\u3015"],[65119,5,"#"],[65120,5,"&"],[65121,5,"*"],[65122,5,"+"],[65123,1,"-"],[65124,5,"<"],[65125,5,">"],[65126,5,"="],[65127,3],[65128,5,"\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," \u064B"],[65137,1,"\u0640\u064B"],[65138,5," \u064C"],[65139,2],[65140,5," \u064D"],[65141,3],[65142,5," \u064E"],[65143,1,"\u0640\u064E"],[65144,5," \u064F"],[65145,1,"\u0640\u064F"],[65146,5," \u0650"],[65147,1,"\u0640\u0650"],[65148,5," \u0651"],[65149,1,"\u0640\u0651"],[65150,5," \u0652"],[65151,1,"\u0640\u0652"],[65152,1,"\u0621"],[[65153,65154],1,"\u0622"],[[65155,65156],1,"\u0623"],[[65157,65158],1,"\u0624"],[[65159,65160],1,"\u0625"],[[65161,65164],1,"\u0626"],[[65165,65166],1,"\u0627"],[[65167,65170],1,"\u0628"],[[65171,65172],1,"\u0629"],[[65173,65176],1,"\u062A"],[[65177,65180],1,"\u062B"],[[65181,65184],1,"\u062C"],[[65185,65188],1,"\u062D"],[[65189,65192],1,"\u062E"],[[65193,65194],1,"\u062F"],[[65195,65196],1,"\u0630"],[[65197,65198],1,"\u0631"],[[65199,65200],1,"\u0632"],[[65201,65204],1,"\u0633"],[[65205,65208],1,"\u0634"],[[65209,65212],1,"\u0635"],[[65213,65216],1,"\u0636"],[[65217,65220],1,"\u0637"],[[65221,65224],1,"\u0638"],[[65225,65228],1,"\u0639"],[[65229,65232],1,"\u063A"],[[65233,65236],1,"\u0641"],[[65237,65240],1,"\u0642"],[[65241,65244],1,"\u0643"],[[65245,65248],1,"\u0644"],[[65249,65252],1,"\u0645"],[[65253,65256],1,"\u0646"],[[65257,65260],1,"\u0647"],[[65261,65262],1,"\u0648"],[[65263,65264],1,"\u0649"],[[65265,65268],1,"\u064A"],[[65269,65270],1,"\u0644\u0622"],[[65271,65272],1,"\u0644\u0623"],[[65273,65274],1,"\u0644\u0625"],[[65275,65276],1,"\u0644\u0627"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,"\""],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"\u2985"],[65376,1,"\u2986"],[65377,1,"."],[65378,1,"\u300C"],[65379,1,"\u300D"],[65380,1,"\u3001"],[65381,1,"\u30FB"],[65382,1,"\u30F2"],[65383,1,"\u30A1"],[65384,1,"\u30A3"],[65385,1,"\u30A5"],[65386,1,"\u30A7"],[65387,1,"\u30A9"],[65388,1,"\u30E3"],[65389,1,"\u30E5"],[65390,1,"\u30E7"],[65391,1,"\u30C3"],[65392,1,"\u30FC"],[65393,1,"\u30A2"],[65394,1,"\u30A4"],[65395,1,"\u30A6"],[65396,1,"\u30A8"],[65397,1,"\u30AA"],[65398,1,"\u30AB"],[65399,1,"\u30AD"],[65400,1,"\u30AF"],[65401,1,"\u30B1"],[65402,1,"\u30B3"],[65403,1,"\u30B5"],[65404,1,"\u30B7"],[65405,1,"\u30B9"],[65406,1,"\u30BB"],[65407,1,"\u30BD"],[65408,1,"\u30BF"],[65409,1,"\u30C1"],[65410,1,"\u30C4"],[65411,1,"\u30C6"],[65412,1,"\u30C8"],[65413,1,"\u30CA"],[65414,1,"\u30CB"],[65415,1,"\u30CC"],[65416,1,"\u30CD"],[65417,1,"\u30CE"],[65418,1,"\u30CF"],[65419,1,"\u30D2"],[65420,1,"\u30D5"],[65421,1,"\u30D8"],[65422,1,"\u30DB"],[65423,1,"\u30DE"],[65424,1,"\u30DF"],[65425,1,"\u30E0"],[65426,1,"\u30E1"],[65427,1,"\u30E2"],[65428,1,"\u30E4"],[65429,1,"\u30E6"],[65430,1,"\u30E8"],[65431,1,"\u30E9"],[65432,1,"\u30EA"],[65433,1,"\u30EB"],[65434,1,"\u30EC"],[65435,1,"\u30ED"],[65436,1,"\u30EF"],[65437,1,"\u30F3"],[65438,1,"\u3099"],[65439,1,"\u309A"],[65440,3],[65441,1,"\u1100"],[65442,1,"\u1101"],[65443,1,"\u11AA"],[65444,1,"\u1102"],[65445,1,"\u11AC"],[65446,1,"\u11AD"],[65447,1,"\u1103"],[65448,1,"\u1104"],[65449,1,"\u1105"],[65450,1,"\u11B0"],[65451,1,"\u11B1"],[65452,1,"\u11B2"],[65453,1,"\u11B3"],[65454,1,"\u11B4"],[65455,1,"\u11B5"],[65456,1,"\u111A"],[65457,1,"\u1106"],[65458,1,"\u1107"],[65459,1,"\u1108"],[65460,1,"\u1121"],[65461,1,"\u1109"],[65462,1,"\u110A"],[65463,1,"\u110B"],[65464,1,"\u110C"],[65465,1,"\u110D"],[65466,1,"\u110E"],[65467,1,"\u110F"],[65468,1,"\u1110"],[65469,1,"\u1111"],[65470,1,"\u1112"],[[65471,65473],3],[65474,1,"\u1161"],[65475,1,"\u1162"],[65476,1,"\u1163"],[65477,1,"\u1164"],[65478,1,"\u1165"],[65479,1,"\u1166"],[[65480,65481],3],[65482,1,"\u1167"],[65483,1,"\u1168"],[65484,1,"\u1169"],[65485,1,"\u116A"],[65486,1,"\u116B"],[65487,1,"\u116C"],[[65488,65489],3],[65490,1,"\u116D"],[65491,1,"\u116E"],[65492,1,"\u116F"],[65493,1,"\u1170"],[65494,1,"\u1171"],[65495,1,"\u1172"],[[65496,65497],3],[65498,1,"\u1173"],[65499,1,"\u1174"],[65500,1,"\u1175"],[[65501,65503],3],[65504,1,"\xA2"],[65505,1,"\xA3"],[65506,1,"\xAC"],[65507,5," \u0304"],[65508,1,"\xA6"],[65509,1,"\xA5"],[65510,1,"\u20A9"],[65511,3],[65512,1,"\u2502"],[65513,1,"\u2190"],[65514,1,"\u2191"],[65515,1,"\u2192"],[65516,1,"\u2193"],[65517,1,"\u25A0"],[65518,1,"\u25CB"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66000,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"\uD801\uDC28"],[66561,1,"\uD801\uDC29"],[66562,1,"\uD801\uDC2A"],[66563,1,"\uD801\uDC2B"],[66564,1,"\uD801\uDC2C"],[66565,1,"\uD801\uDC2D"],[66566,1,"\uD801\uDC2E"],[66567,1,"\uD801\uDC2F"],[66568,1,"\uD801\uDC30"],[66569,1,"\uD801\uDC31"],[66570,1,"\uD801\uDC32"],[66571,1,"\uD801\uDC33"],[66572,1,"\uD801\uDC34"],[66573,1,"\uD801\uDC35"],[66574,1,"\uD801\uDC36"],[66575,1,"\uD801\uDC37"],[66576,1,"\uD801\uDC38"],[66577,1,"\uD801\uDC39"],[66578,1,"\uD801\uDC3A"],[66579,1,"\uD801\uDC3B"],[66580,1,"\uD801\uDC3C"],[66581,1,"\uD801\uDC3D"],[66582,1,"\uD801\uDC3E"],[66583,1,"\uD801\uDC3F"],[66584,1,"\uD801\uDC40"],[66585,1,"\uD801\uDC41"],[66586,1,"\uD801\uDC42"],[66587,1,"\uD801\uDC43"],[66588,1,"\uD801\uDC44"],[66589,1,"\uD801\uDC45"],[66590,1,"\uD801\uDC46"],[66591,1,"\uD801\uDC47"],[66592,1,"\uD801\uDC48"],[66593,1,"\uD801\uDC49"],[66594,1,"\uD801\uDC4A"],[66595,1,"\uD801\uDC4B"],[66596,1,"\uD801\uDC4C"],[66597,1,"\uD801\uDC4D"],[66598,1,"\uD801\uDC4E"],[66599,1,"\uD801\uDC4F"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"\uD801\uDCD8"],[66737,1,"\uD801\uDCD9"],[66738,1,"\uD801\uDCDA"],[66739,1,"\uD801\uDCDB"],[66740,1,"\uD801\uDCDC"],[66741,1,"\uD801\uDCDD"],[66742,1,"\uD801\uDCDE"],[66743,1,"\uD801\uDCDF"],[66744,1,"\uD801\uDCE0"],[66745,1,"\uD801\uDCE1"],[66746,1,"\uD801\uDCE2"],[66747,1,"\uD801\uDCE3"],[66748,1,"\uD801\uDCE4"],[66749,1,"\uD801\uDCE5"],[66750,1,"\uD801\uDCE6"],[66751,1,"\uD801\uDCE7"],[66752,1,"\uD801\uDCE8"],[66753,1,"\uD801\uDCE9"],[66754,1,"\uD801\uDCEA"],[66755,1,"\uD801\uDCEB"],[66756,1,"\uD801\uDCEC"],[66757,1,"\uD801\uDCED"],[66758,1,"\uD801\uDCEE"],[66759,1,"\uD801\uDCEF"],[66760,1,"\uD801\uDCF0"],[66761,1,"\uD801\uDCF1"],[66762,1,"\uD801\uDCF2"],[66763,1,"\uD801\uDCF3"],[66764,1,"\uD801\uDCF4"],[66765,1,"\uD801\uDCF5"],[66766,1,"\uD801\uDCF6"],[66767,1,"\uD801\uDCF7"],[66768,1,"\uD801\uDCF8"],[66769,1,"\uD801\uDCF9"],[66770,1,"\uD801\uDCFA"],[66771,1,"\uD801\uDCFB"],[[66772,66775],3],[[66776,66811],2],[[66812,66815],3],[[66816,66855],2],[[66856,66863],3],[[66864,66915],2],[[66916,66926],3],[66927,2],[66928,1,"\uD801\uDD97"],[66929,1,"\uD801\uDD98"],[66930,1,"\uD801\uDD99"],[66931,1,"\uD801\uDD9A"],[66932,1,"\uD801\uDD9B"],[66933,1,"\uD801\uDD9C"],[66934,1,"\uD801\uDD9D"],[66935,1,"\uD801\uDD9E"],[66936,1,"\uD801\uDD9F"],[66937,1,"\uD801\uDDA0"],[66938,1,"\uD801\uDDA1"],[66939,3],[66940,1,"\uD801\uDDA3"],[66941,1,"\uD801\uDDA4"],[66942,1,"\uD801\uDDA5"],[66943,1,"\uD801\uDDA6"],[66944,1,"\uD801\uDDA7"],[66945,1,"\uD801\uDDA8"],[66946,1,"\uD801\uDDA9"],[66947,1,"\uD801\uDDAA"],[66948,1,"\uD801\uDDAB"],[66949,1,"\uD801\uDDAC"],[66950,1,"\uD801\uDDAD"],[66951,1,"\uD801\uDDAE"],[66952,1,"\uD801\uDDAF"],[66953,1,"\uD801\uDDB0"],[66954,1,"\uD801\uDDB1"],[66955,3],[66956,1,"\uD801\uDDB3"],[66957,1,"\uD801\uDDB4"],[66958,1,"\uD801\uDDB5"],[66959,1,"\uD801\uDDB6"],[66960,1,"\uD801\uDDB7"],[66961,1,"\uD801\uDDB8"],[66962,1,"\uD801\uDDB9"],[66963,3],[66964,1,"\uD801\uDDBB"],[66965,1,"\uD801\uDDBC"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"\u02D0"],[67458,1,"\u02D1"],[67459,1,"\xE6"],[67460,1,"\u0299"],[67461,1,"\u0253"],[67462,3],[67463,1,"\u02A3"],[67464,1,"\uAB66"],[67465,1,"\u02A5"],[67466,1,"\u02A4"],[67467,1,"\u0256"],[67468,1,"\u0257"],[67469,1,"\u1D91"],[67470,1,"\u0258"],[67471,1,"\u025E"],[67472,1,"\u02A9"],[67473,1,"\u0264"],[67474,1,"\u0262"],[67475,1,"\u0260"],[67476,1,"\u029B"],[67477,1,"\u0127"],[67478,1,"\u029C"],[67479,1,"\u0267"],[67480,1,"\u0284"],[67481,1,"\u02AA"],[67482,1,"\u02AB"],[67483,1,"\u026C"],[67484,1,"\uD837\uDF04"],[67485,1,"\uA78E"],[67486,1,"\u026E"],[67487,1,"\uD837\uDF05"],[67488,1,"\u028E"],[67489,1,"\uD837\uDF06"],[67490,1,"\xF8"],[67491,1,"\u0276"],[67492,1,"\u0277"],[67493,1,"q"],[67494,1,"\u027A"],[67495,1,"\uD837\uDF08"],[67496,1,"\u027D"],[67497,1,"\u027E"],[67498,1,"\u0280"],[67499,1,"\u02A8"],[67500,1,"\u02A6"],[67501,1,"\uAB67"],[67502,1,"\u02A7"],[67503,1,"\u0288"],[67504,1,"\u2C71"],[67505,3],[67506,1,"\u028F"],[67507,1,"\u02A1"],[67508,1,"\u02A2"],[67509,1,"\u0298"],[67510,1,"\u01C0"],[67511,1,"\u01C1"],[67512,1,"\u01C2"],[67513,1,"\uD837\uDF0A"],[67514,1,"\uD837\uDF1E"],[[67515,67583],3],[[67584,67589],2],[[67590,67591],3],[67592,2],[67593,3],[[67594,67637],2],[67638,3],[[67639,67640],2],[[67641,67643],3],[67644,2],[[67645,67646],3],[67647,2],[[67648,67669],2],[67670,3],[[67671,67679],2],[[67680,67702],2],[[67703,67711],2],[[67712,67742],2],[[67743,67750],3],[[67751,67759],2],[[67760,67807],3],[[67808,67826],2],[67827,3],[[67828,67829],2],[[67830,67834],3],[[67835,67839],2],[[67840,67861],2],[[67862,67865],2],[[67866,67867],2],[[67868,67870],3],[67871,2],[[67872,67897],2],[[67898,67902],3],[67903,2],[[67904,67967],3],[[67968,68023],2],[[68024,68027],3],[[68028,68029],2],[[68030,68031],2],[[68032,68047],2],[[68048,68049],3],[[68050,68095],2],[[68096,68099],2],[68100,3],[[68101,68102],2],[[68103,68107],3],[[68108,68115],2],[68116,3],[[68117,68119],2],[68120,3],[[68121,68147],2],[[68148,68149],2],[[68150,68151],3],[[68152,68154],2],[[68155,68158],3],[68159,2],[[68160,68167],2],[68168,2],[[68169,68175],3],[[68176,68184],2],[[68185,68191],3],[[68192,68220],2],[[68221,68223],2],[[68224,68252],2],[[68253,68255],2],[[68256,68287],3],[[68288,68295],2],[68296,2],[[68297,68326],2],[[68327,68330],3],[[68331,68342],2],[[68343,68351],3],[[68352,68405],2],[[68406,68408],3],[[68409,68415],2],[[68416,68437],2],[[68438,68439],3],[[68440,68447],2],[[68448,68466],2],[[68467,68471],3],[[68472,68479],2],[[68480,68497],2],[[68498,68504],3],[[68505,68508],2],[[68509,68520],3],[[68521,68527],2],[[68528,68607],3],[[68608,68680],2],[[68681,68735],3],[68736,1,"\uD803\uDCC0"],[68737,1,"\uD803\uDCC1"],[68738,1,"\uD803\uDCC2"],[68739,1,"\uD803\uDCC3"],[68740,1,"\uD803\uDCC4"],[68741,1,"\uD803\uDCC5"],[68742,1,"\uD803\uDCC6"],[68743,1,"\uD803\uDCC7"],[68744,1,"\uD803\uDCC8"],[68745,1,"\uD803\uDCC9"],[68746,1,"\uD803\uDCCA"],[68747,1,"\uD803\uDCCB"],[68748,1,"\uD803\uDCCC"],[68749,1,"\uD803\uDCCD"],[68750,1,"\uD803\uDCCE"],[68751,1,"\uD803\uDCCF"],[68752,1,"\uD803\uDCD0"],[68753,1,"\uD803\uDCD1"],[68754,1,"\uD803\uDCD2"],[68755,1,"\uD803\uDCD3"],[68756,1,"\uD803\uDCD4"],[68757,1,"\uD803\uDCD5"],[68758,1,"\uD803\uDCD6"],[68759,1,"\uD803\uDCD7"],[68760,1,"\uD803\uDCD8"],[68761,1,"\uD803\uDCD9"],[68762,1,"\uD803\uDCDA"],[68763,1,"\uD803\uDCDB"],[68764,1,"\uD803\uDCDC"],[68765,1,"\uD803\uDCDD"],[68766,1,"\uD803\uDCDE"],[68767,1,"\uD803\uDCDF"],[68768,1,"\uD803\uDCE0"],[68769,1,"\uD803\uDCE1"],[68770,1,"\uD803\uDCE2"],[68771,1,"\uD803\uDCE3"],[68772,1,"\uD803\uDCE4"],[68773,1,"\uD803\uDCE5"],[68774,1,"\uD803\uDCE6"],[68775,1,"\uD803\uDCE7"],[68776,1,"\uD803\uDCE8"],[68777,1,"\uD803\uDCE9"],[68778,1,"\uD803\uDCEA"],[68779,1,"\uD803\uDCEB"],[68780,1,"\uD803\uDCEC"],[68781,1,"\uD803\uDCED"],[68782,1,"\uD803\uDCEE"],[68783,1,"\uD803\uDCEF"],[68784,1,"\uD803\uDCF0"],[68785,1,"\uD803\uDCF1"],[68786,1,"\uD803\uDCF2"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69372],3],[[69373,69375],2],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70209],2],[[70210,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"\uD806\uDCC0"],[71841,1,"\uD806\uDCC1"],[71842,1,"\uD806\uDCC2"],[71843,1,"\uD806\uDCC3"],[71844,1,"\uD806\uDCC4"],[71845,1,"\uD806\uDCC5"],[71846,1,"\uD806\uDCC6"],[71847,1,"\uD806\uDCC7"],[71848,1,"\uD806\uDCC8"],[71849,1,"\uD806\uDCC9"],[71850,1,"\uD806\uDCCA"],[71851,1,"\uD806\uDCCB"],[71852,1,"\uD806\uDCCC"],[71853,1,"\uD806\uDCCD"],[71854,1,"\uD806\uDCCE"],[71855,1,"\uD806\uDCCF"],[71856,1,"\uD806\uDCD0"],[71857,1,"\uD806\uDCD1"],[71858,1,"\uD806\uDCD2"],[71859,1,"\uD806\uDCD3"],[71860,1,"\uD806\uDCD4"],[71861,1,"\uD806\uDCD5"],[71862,1,"\uD806\uDCD6"],[71863,1,"\uD806\uDCD7"],[71864,1,"\uD806\uDCD8"],[71865,1,"\uD806\uDCD9"],[71866,1,"\uD806\uDCDA"],[71867,1,"\uD806\uDCDB"],[71868,1,"\uD806\uDCDC"],[71869,1,"\uD806\uDCDD"],[71870,1,"\uD806\uDCDE"],[71871,1,"\uD806\uDCDF"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72447],3],[[72448,72457],2],[[72458,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73471],3],[[73472,73488],2],[73489,3],[[73490,73530],2],[[73531,73533],3],[[73534,73538],2],[[73539,73551],2],[[73552,73561],2],[[73562,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,2],[[78896,78904],3],[[78905,78911],3],[[78912,78933],2],[[78934,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"\uD81B\uDE60"],[93761,1,"\uD81B\uDE61"],[93762,1,"\uD81B\uDE62"],[93763,1,"\uD81B\uDE63"],[93764,1,"\uD81B\uDE64"],[93765,1,"\uD81B\uDE65"],[93766,1,"\uD81B\uDE66"],[93767,1,"\uD81B\uDE67"],[93768,1,"\uD81B\uDE68"],[93769,1,"\uD81B\uDE69"],[93770,1,"\uD81B\uDE6A"],[93771,1,"\uD81B\uDE6B"],[93772,1,"\uD81B\uDE6C"],[93773,1,"\uD81B\uDE6D"],[93774,1,"\uD81B\uDE6E"],[93775,1,"\uD81B\uDE6F"],[93776,1,"\uD81B\uDE70"],[93777,1,"\uD81B\uDE71"],[93778,1,"\uD81B\uDE72"],[93779,1,"\uD81B\uDE73"],[93780,1,"\uD81B\uDE74"],[93781,1,"\uD81B\uDE75"],[93782,1,"\uD81B\uDE76"],[93783,1,"\uD81B\uDE77"],[93784,1,"\uD81B\uDE78"],[93785,1,"\uD81B\uDE79"],[93786,1,"\uD81B\uDE7A"],[93787,1,"\uD81B\uDE7B"],[93788,1,"\uD81B\uDE7C"],[93789,1,"\uD81B\uDE7D"],[93790,1,"\uD81B\uDE7E"],[93791,1,"\uD81B\uDE7F"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110897],3],[110898,2],[[110899,110927],3],[[110928,110930],2],[[110931,110932],3],[110933,2],[[110934,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"\uD834\uDD57\uD834\uDD65"],[119135,1,"\uD834\uDD58\uD834\uDD65"],[119136,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6E"],[119137,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD6F"],[119138,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD70"],[119139,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD71"],[119140,1,"\uD834\uDD58\uD834\uDD65\uD834\uDD72"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"\uD834\uDDB9\uD834\uDD65"],[119228,1,"\uD834\uDDBA\uD834\uDD65"],[119229,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6E"],[119230,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6E"],[119231,1,"\uD834\uDDB9\uD834\uDD65\uD834\uDD6F"],[119232,1,"\uD834\uDDBA\uD834\uDD65\uD834\uDD6F"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119487],3],[[119488,119507],2],[[119508,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[120000,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"\u0131"],[120485,1,"\u0237"],[[120486,120487],3],[120488,1,"\u03B1"],[120489,1,"\u03B2"],[120490,1,"\u03B3"],[120491,1,"\u03B4"],[120492,1,"\u03B5"],[120493,1,"\u03B6"],[120494,1,"\u03B7"],[120495,1,"\u03B8"],[120496,1,"\u03B9"],[120497,1,"\u03BA"],[120498,1,"\u03BB"],[120499,1,"\u03BC"],[120500,1,"\u03BD"],[120501,1,"\u03BE"],[120502,1,"\u03BF"],[120503,1,"\u03C0"],[120504,1,"\u03C1"],[120505,1,"\u03B8"],[120506,1,"\u03C3"],[120507,1,"\u03C4"],[120508,1,"\u03C5"],[120509,1,"\u03C6"],[120510,1,"\u03C7"],[120511,1,"\u03C8"],[120512,1,"\u03C9"],[120513,1,"\u2207"],[120514,1,"\u03B1"],[120515,1,"\u03B2"],[120516,1,"\u03B3"],[120517,1,"\u03B4"],[120518,1,"\u03B5"],[120519,1,"\u03B6"],[120520,1,"\u03B7"],[120521,1,"\u03B8"],[120522,1,"\u03B9"],[120523,1,"\u03BA"],[120524,1,"\u03BB"],[120525,1,"\u03BC"],[120526,1,"\u03BD"],[120527,1,"\u03BE"],[120528,1,"\u03BF"],[120529,1,"\u03C0"],[120530,1,"\u03C1"],[[120531,120532],1,"\u03C3"],[120533,1,"\u03C4"],[120534,1,"\u03C5"],[120535,1,"\u03C6"],[120536,1,"\u03C7"],[120537,1,"\u03C8"],[120538,1,"\u03C9"],[120539,1,"\u2202"],[120540,1,"\u03B5"],[120541,1,"\u03B8"],[120542,1,"\u03BA"],[120543,1,"\u03C6"],[120544,1,"\u03C1"],[120545,1,"\u03C0"],[120546,1,"\u03B1"],[120547,1,"\u03B2"],[120548,1,"\u03B3"],[120549,1,"\u03B4"],[120550,1,"\u03B5"],[120551,1,"\u03B6"],[120552,1,"\u03B7"],[120553,1,"\u03B8"],[120554,1,"\u03B9"],[120555,1,"\u03BA"],[120556,1,"\u03BB"],[120557,1,"\u03BC"],[120558,1,"\u03BD"],[120559,1,"\u03BE"],[120560,1,"\u03BF"],[120561,1,"\u03C0"],[120562,1,"\u03C1"],[120563,1,"\u03B8"],[120564,1,"\u03C3"],[120565,1,"\u03C4"],[120566,1,"\u03C5"],[120567,1,"\u03C6"],[120568,1,"\u03C7"],[120569,1,"\u03C8"],[120570,1,"\u03C9"],[120571,1,"\u2207"],[120572,1,"\u03B1"],[120573,1,"\u03B2"],[120574,1,"\u03B3"],[120575,1,"\u03B4"],[120576,1,"\u03B5"],[120577,1,"\u03B6"],[120578,1,"\u03B7"],[120579,1,"\u03B8"],[120580,1,"\u03B9"],[120581,1,"\u03BA"],[120582,1,"\u03BB"],[120583,1,"\u03BC"],[120584,1,"\u03BD"],[120585,1,"\u03BE"],[120586,1,"\u03BF"],[120587,1,"\u03C0"],[120588,1,"\u03C1"],[[120589,120590],1,"\u03C3"],[120591,1,"\u03C4"],[120592,1,"\u03C5"],[120593,1,"\u03C6"],[120594,1,"\u03C7"],[120595,1,"\u03C8"],[120596,1,"\u03C9"],[120597,1,"\u2202"],[120598,1,"\u03B5"],[120599,1,"\u03B8"],[120600,1,"\u03BA"],[120601,1,"\u03C6"],[120602,1,"\u03C1"],[120603,1,"\u03C0"],[120604,1,"\u03B1"],[120605,1,"\u03B2"],[120606,1,"\u03B3"],[120607,1,"\u03B4"],[120608,1,"\u03B5"],[120609,1,"\u03B6"],[120610,1,"\u03B7"],[120611,1,"\u03B8"],[120612,1,"\u03B9"],[120613,1,"\u03BA"],[120614,1,"\u03BB"],[120615,1,"\u03BC"],[120616,1,"\u03BD"],[120617,1,"\u03BE"],[120618,1,"\u03BF"],[120619,1,"\u03C0"],[120620,1,"\u03C1"],[120621,1,"\u03B8"],[120622,1,"\u03C3"],[120623,1,"\u03C4"],[120624,1,"\u03C5"],[120625,1,"\u03C6"],[120626,1,"\u03C7"],[120627,1,"\u03C8"],[120628,1,"\u03C9"],[120629,1,"\u2207"],[120630,1,"\u03B1"],[120631,1,"\u03B2"],[120632,1,"\u03B3"],[120633,1,"\u03B4"],[120634,1,"\u03B5"],[120635,1,"\u03B6"],[120636,1,"\u03B7"],[120637,1,"\u03B8"],[120638,1,"\u03B9"],[120639,1,"\u03BA"],[120640,1,"\u03BB"],[120641,1,"\u03BC"],[120642,1,"\u03BD"],[120643,1,"\u03BE"],[120644,1,"\u03BF"],[120645,1,"\u03C0"],[120646,1,"\u03C1"],[[120647,120648],1,"\u03C3"],[120649,1,"\u03C4"],[120650,1,"\u03C5"],[120651,1,"\u03C6"],[120652,1,"\u03C7"],[120653,1,"\u03C8"],[120654,1,"\u03C9"],[120655,1,"\u2202"],[120656,1,"\u03B5"],[120657,1,"\u03B8"],[120658,1,"\u03BA"],[120659,1,"\u03C6"],[120660,1,"\u03C1"],[120661,1,"\u03C0"],[120662,1,"\u03B1"],[120663,1,"\u03B2"],[120664,1,"\u03B3"],[120665,1,"\u03B4"],[120666,1,"\u03B5"],[120667,1,"\u03B6"],[120668,1,"\u03B7"],[120669,1,"\u03B8"],[120670,1,"\u03B9"],[120671,1,"\u03BA"],[120672,1,"\u03BB"],[120673,1,"\u03BC"],[120674,1,"\u03BD"],[120675,1,"\u03BE"],[120676,1,"\u03BF"],[120677,1,"\u03C0"],[120678,1,"\u03C1"],[120679,1,"\u03B8"],[120680,1,"\u03C3"],[120681,1,"\u03C4"],[120682,1,"\u03C5"],[120683,1,"\u03C6"],[120684,1,"\u03C7"],[120685,1,"\u03C8"],[120686,1,"\u03C9"],[120687,1,"\u2207"],[120688,1,"\u03B1"],[120689,1,"\u03B2"],[120690,1,"\u03B3"],[120691,1,"\u03B4"],[120692,1,"\u03B5"],[120693,1,"\u03B6"],[120694,1,"\u03B7"],[120695,1,"\u03B8"],[120696,1,"\u03B9"],[120697,1,"\u03BA"],[120698,1,"\u03BB"],[120699,1,"\u03BC"],[120700,1,"\u03BD"],[120701,1,"\u03BE"],[120702,1,"\u03BF"],[120703,1,"\u03C0"],[120704,1,"\u03C1"],[[120705,120706],1,"\u03C3"],[120707,1,"\u03C4"],[120708,1,"\u03C5"],[120709,1,"\u03C6"],[120710,1,"\u03C7"],[120711,1,"\u03C8"],[120712,1,"\u03C9"],[120713,1,"\u2202"],[120714,1,"\u03B5"],[120715,1,"\u03B8"],[120716,1,"\u03BA"],[120717,1,"\u03C6"],[120718,1,"\u03C1"],[120719,1,"\u03C0"],[120720,1,"\u03B1"],[120721,1,"\u03B2"],[120722,1,"\u03B3"],[120723,1,"\u03B4"],[120724,1,"\u03B5"],[120725,1,"\u03B6"],[120726,1,"\u03B7"],[120727,1,"\u03B8"],[120728,1,"\u03B9"],[120729,1,"\u03BA"],[120730,1,"\u03BB"],[120731,1,"\u03BC"],[120732,1,"\u03BD"],[120733,1,"\u03BE"],[120734,1,"\u03BF"],[120735,1,"\u03C0"],[120736,1,"\u03C1"],[120737,1,"\u03B8"],[120738,1,"\u03C3"],[120739,1,"\u03C4"],[120740,1,"\u03C5"],[120741,1,"\u03C6"],[120742,1,"\u03C7"],[120743,1,"\u03C8"],[120744,1,"\u03C9"],[120745,1,"\u2207"],[120746,1,"\u03B1"],[120747,1,"\u03B2"],[120748,1,"\u03B3"],[120749,1,"\u03B4"],[120750,1,"\u03B5"],[120751,1,"\u03B6"],[120752,1,"\u03B7"],[120753,1,"\u03B8"],[120754,1,"\u03B9"],[120755,1,"\u03BA"],[120756,1,"\u03BB"],[120757,1,"\u03BC"],[120758,1,"\u03BD"],[120759,1,"\u03BE"],[120760,1,"\u03BF"],[120761,1,"\u03C0"],[120762,1,"\u03C1"],[[120763,120764],1,"\u03C3"],[120765,1,"\u03C4"],[120766,1,"\u03C5"],[120767,1,"\u03C6"],[120768,1,"\u03C7"],[120769,1,"\u03C8"],[120770,1,"\u03C9"],[120771,1,"\u2202"],[120772,1,"\u03B5"],[120773,1,"\u03B8"],[120774,1,"\u03BA"],[120775,1,"\u03C6"],[120776,1,"\u03C1"],[120777,1,"\u03C0"],[[120778,120779],1,"\u03DD"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122660],3],[[122661,122666],2],[[122667,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,122927],3],[122928,1,"\u0430"],[122929,1,"\u0431"],[122930,1,"\u0432"],[122931,1,"\u0433"],[122932,1,"\u0434"],[122933,1,"\u0435"],[122934,1,"\u0436"],[122935,1,"\u0437"],[122936,1,"\u0438"],[122937,1,"\u043A"],[122938,1,"\u043B"],[122939,1,"\u043C"],[122940,1,"\u043E"],[122941,1,"\u043F"],[122942,1,"\u0440"],[122943,1,"\u0441"],[122944,1,"\u0442"],[122945,1,"\u0443"],[122946,1,"\u0444"],[122947,1,"\u0445"],[122948,1,"\u0446"],[122949,1,"\u0447"],[122950,1,"\u0448"],[122951,1,"\u044B"],[122952,1,"\u044D"],[122953,1,"\u044E"],[122954,1,"\uA689"],[122955,1,"\u04D9"],[122956,1,"\u0456"],[122957,1,"\u0458"],[122958,1,"\u04E9"],[122959,1,"\u04AF"],[122960,1,"\u04CF"],[122961,1,"\u0430"],[122962,1,"\u0431"],[122963,1,"\u0432"],[122964,1,"\u0433"],[122965,1,"\u0434"],[122966,1,"\u0435"],[122967,1,"\u0436"],[122968,1,"\u0437"],[122969,1,"\u0438"],[122970,1,"\u043A"],[122971,1,"\u043B"],[122972,1,"\u043E"],[122973,1,"\u043F"],[122974,1,"\u0441"],[122975,1,"\u0443"],[122976,1,"\u0444"],[122977,1,"\u0445"],[122978,1,"\u0446"],[122979,1,"\u0447"],[122980,1,"\u0448"],[122981,1,"\u044A"],[122982,1,"\u044B"],[122983,1,"\u0491"],[122984,1,"\u0456"],[122985,1,"\u0455"],[122986,1,"\u045F"],[122987,1,"\u04AB"],[122988,1,"\uA651"],[122989,1,"\u04B1"],[[122990,123022],3],[123023,2],[[123024,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124111],3],[[124112,124153],2],[[124154,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"\uD83A\uDD22"],[125185,1,"\uD83A\uDD23"],[125186,1,"\uD83A\uDD24"],[125187,1,"\uD83A\uDD25"],[125188,1,"\uD83A\uDD26"],[125189,1,"\uD83A\uDD27"],[125190,1,"\uD83A\uDD28"],[125191,1,"\uD83A\uDD29"],[125192,1,"\uD83A\uDD2A"],[125193,1,"\uD83A\uDD2B"],[125194,1,"\uD83A\uDD2C"],[125195,1,"\uD83A\uDD2D"],[125196,1,"\uD83A\uDD2E"],[125197,1,"\uD83A\uDD2F"],[125198,1,"\uD83A\uDD30"],[125199,1,"\uD83A\uDD31"],[125200,1,"\uD83A\uDD32"],[125201,1,"\uD83A\uDD33"],[125202,1,"\uD83A\uDD34"],[125203,1,"\uD83A\uDD35"],[125204,1,"\uD83A\uDD36"],[125205,1,"\uD83A\uDD37"],[125206,1,"\uD83A\uDD38"],[125207,1,"\uD83A\uDD39"],[125208,1,"\uD83A\uDD3A"],[125209,1,"\uD83A\uDD3B"],[125210,1,"\uD83A\uDD3C"],[125211,1,"\uD83A\uDD3D"],[125212,1,"\uD83A\uDD3E"],[125213,1,"\uD83A\uDD3F"],[125214,1,"\uD83A\uDD40"],[125215,1,"\uD83A\uDD41"],[125216,1,"\uD83A\uDD42"],[125217,1,"\uD83A\uDD43"],[[125218,125258],2],[125259,2],[[125260,125263],3],[[125264,125273],2],[[125274,125277],3],[[125278,125279],2],[[125280,126064],3],[[126065,126132],2],[[126133,126208],3],[[126209,126269],2],[[126270,126463],3],[126464,1,"\u0627"],[126465,1,"\u0628"],[126466,1,"\u062C"],[126467,1,"\u062F"],[126468,3],[126469,1,"\u0648"],[126470,1,"\u0632"],[126471,1,"\u062D"],[126472,1,"\u0637"],[126473,1,"\u064A"],[126474,1,"\u0643"],[126475,1,"\u0644"],[126476,1,"\u0645"],[126477,1,"\u0646"],[126478,1,"\u0633"],[126479,1,"\u0639"],[126480,1,"\u0641"],[126481,1,"\u0635"],[126482,1,"\u0642"],[126483,1,"\u0631"],[126484,1,"\u0634"],[126485,1,"\u062A"],[126486,1,"\u062B"],[126487,1,"\u062E"],[126488,1,"\u0630"],[126489,1,"\u0636"],[126490,1,"\u0638"],[126491,1,"\u063A"],[126492,1,"\u066E"],[126493,1,"\u06BA"],[126494,1,"\u06A1"],[126495,1,"\u066F"],[126496,3],[126497,1,"\u0628"],[126498,1,"\u062C"],[126499,3],[126500,1,"\u0647"],[[126501,126502],3],[126503,1,"\u062D"],[126504,3],[126505,1,"\u064A"],[126506,1,"\u0643"],[126507,1,"\u0644"],[126508,1,"\u0645"],[126509,1,"\u0646"],[126510,1,"\u0633"],[126511,1,"\u0639"],[126512,1,"\u0641"],[126513,1,"\u0635"],[126514,1,"\u0642"],[126515,3],[126516,1,"\u0634"],[126517,1,"\u062A"],[126518,1,"\u062B"],[126519,1,"\u062E"],[126520,3],[126521,1,"\u0636"],[126522,3],[126523,1,"\u063A"],[[126524,126529],3],[126530,1,"\u062C"],[[126531,126534],3],[126535,1,"\u062D"],[126536,3],[126537,1,"\u064A"],[126538,3],[126539,1,"\u0644"],[126540,3],[126541,1,"\u0646"],[126542,1,"\u0633"],[126543,1,"\u0639"],[126544,3],[126545,1,"\u0635"],[126546,1,"\u0642"],[126547,3],[126548,1,"\u0634"],[[126549,126550],3],[126551,1,"\u062E"],[126552,3],[126553,1,"\u0636"],[126554,3],[126555,1,"\u063A"],[126556,3],[126557,1,"\u06BA"],[126558,3],[126559,1,"\u066F"],[126560,3],[126561,1,"\u0628"],[126562,1,"\u062C"],[126563,3],[126564,1,"\u0647"],[[126565,126566],3],[126567,1,"\u062D"],[126568,1,"\u0637"],[126569,1,"\u064A"],[126570,1,"\u0643"],[126571,3],[126572,1,"\u0645"],[126573,1,"\u0646"],[126574,1,"\u0633"],[126575,1,"\u0639"],[126576,1,"\u0641"],[126577,1,"\u0635"],[126578,1,"\u0642"],[126579,3],[126580,1,"\u0634"],[126581,1,"\u062A"],[126582,1,"\u062B"],[126583,1,"\u062E"],[126584,3],[126585,1,"\u0636"],[126586,1,"\u0638"],[126587,1,"\u063A"],[126588,1,"\u066E"],[126589,3],[126590,1,"\u06A1"],[126591,3],[126592,1,"\u0627"],[126593,1,"\u0628"],[126594,1,"\u062C"],[126595,1,"\u062F"],[126596,1,"\u0647"],[126597,1,"\u0648"],[126598,1,"\u0632"],[126599,1,"\u062D"],[126600,1,"\u0637"],[126601,1,"\u064A"],[126602,3],[126603,1,"\u0644"],[126604,1,"\u0645"],[126605,1,"\u0646"],[126606,1,"\u0633"],[126607,1,"\u0639"],[126608,1,"\u0641"],[126609,1,"\u0635"],[126610,1,"\u0642"],[126611,1,"\u0631"],[126612,1,"\u0634"],[126613,1,"\u062A"],[126614,1,"\u062B"],[126615,1,"\u062E"],[126616,1,"\u0630"],[126617,1,"\u0636"],[126618,1,"\u0638"],[126619,1,"\u063A"],[[126620,126624],3],[126625,1,"\u0628"],[126626,1,"\u062C"],[126627,1,"\u062F"],[126628,3],[126629,1,"\u0648"],[126630,1,"\u0632"],[126631,1,"\u062D"],[126632,1,"\u0637"],[126633,1,"\u064A"],[126634,3],[126635,1,"\u0644"],[126636,1,"\u0645"],[126637,1,"\u0646"],[126638,1,"\u0633"],[126639,1,"\u0639"],[126640,1,"\u0641"],[126641,1,"\u0635"],[126642,1,"\u0642"],[126643,1,"\u0631"],[126644,1,"\u0634"],[126645,1,"\u062A"],[126646,1,"\u062B"],[126647,1,"\u062E"],[126648,1,"\u0630"],[126649,1,"\u0636"],[126650,1,"\u0638"],[126651,1,"\u063A"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"\u3014s\u3015"],[127275,1,"c"],[127276,1,"r"],[127277,1,"cd"],[127278,1,"wz"],[127279,2],[127280,1,"a"],[127281,1,"b"],[127282,1,"c"],[127283,1,"d"],[127284,1,"e"],[127285,1,"f"],[127286,1,"g"],[127287,1,"h"],[127288,1,"i"],[127289,1,"j"],[127290,1,"k"],[127291,1,"l"],[127292,1,"m"],[127293,1,"n"],[127294,1,"o"],[127295,1,"p"],[127296,1,"q"],[127297,1,"r"],[127298,1,"s"],[127299,1,"t"],[127300,1,"u"],[127301,1,"v"],[127302,1,"w"],[127303,1,"x"],[127304,1,"y"],[127305,1,"z"],[127306,1,"hv"],[127307,1,"mv"],[127308,1,"sd"],[127309,1,"ss"],[127310,1,"ppv"],[127311,1,"wc"],[[127312,127318],2],[127319,2],[[127320,127326],2],[127327,2],[[127328,127337],2],[127338,1,"mc"],[127339,1,"md"],[127340,1,"mr"],[[127341,127343],2],[[127344,127352],2],[127353,2],[127354,2],[[127355,127356],2],[[127357,127358],2],[127359,2],[[127360,127369],2],[[127370,127373],2],[[127374,127375],2],[127376,1,"dj"],[[127377,127386],2],[[127387,127404],2],[127405,2],[[127406,127461],3],[[127462,127487],2],[127488,1,"\u307B\u304B"],[127489,1,"\u30B3\u30B3"],[127490,1,"\u30B5"],[[127491,127503],3],[127504,1,"\u624B"],[127505,1,"\u5B57"],[127506,1,"\u53CC"],[127507,1,"\u30C7"],[127508,1,"\u4E8C"],[127509,1,"\u591A"],[127510,1,"\u89E3"],[127511,1,"\u5929"],[127512,1,"\u4EA4"],[127513,1,"\u6620"],[127514,1,"\u7121"],[127515,1,"\u6599"],[127516,1,"\u524D"],[127517,1,"\u5F8C"],[127518,1,"\u518D"],[127519,1,"\u65B0"],[127520,1,"\u521D"],[127521,1,"\u7D42"],[127522,1,"\u751F"],[127523,1,"\u8CA9"],[127524,1,"\u58F0"],[127525,1,"\u5439"],[127526,1,"\u6F14"],[127527,1,"\u6295"],[127528,1,"\u6355"],[127529,1,"\u4E00"],[127530,1,"\u4E09"],[127531,1,"\u904A"],[127532,1,"\u5DE6"],[127533,1,"\u4E2D"],[127534,1,"\u53F3"],[127535,1,"\u6307"],[127536,1,"\u8D70"],[127537,1,"\u6253"],[127538,1,"\u7981"],[127539,1,"\u7A7A"],[127540,1,"\u5408"],[127541,1,"\u6E80"],[127542,1,"\u6709"],[127543,1,"\u6708"],[127544,1,"\u7533"],[127545,1,"\u5272"],[127546,1,"\u55B6"],[127547,1,"\u914D"],[[127548,127551],3],[127552,1,"\u3014\u672C\u3015"],[127553,1,"\u3014\u4E09\u3015"],[127554,1,"\u3014\u4E8C\u3015"],[127555,1,"\u3014\u5B89\u3015"],[127556,1,"\u3014\u70B9\u3015"],[127557,1,"\u3014\u6253\u3015"],[127558,1,"\u3014\u76D7\u3015"],[127559,1,"\u3014\u52DD\u3015"],[127560,1,"\u3014\u6557\u3015"],[[127561,127567],3],[127568,1,"\u5F97"],[127569,1,"\u53EF"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128000,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128731],3],[128732,2],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128886],2],[[128887,128890],3],[[128891,128895],2],[[128896,128980],2],[[128981,128984],2],[128985,2],[[128986,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],2],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129672],2],[[129673,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],2],[[129712,129718],2],[[129719,129722],2],[[129723,129725],2],[129726,3],[129727,2],[[129728,129730],2],[[129731,129733],2],[[129734,129741],3],[[129742,129743],2],[[129744,129750],2],[[129751,129753],2],[[129754,129755],2],[[129756,129759],3],[[129760,129767],2],[129768,2],[[129769,129775],3],[[129776,129782],2],[[129783,129784],2],[[129785,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[177977,2],[[177978,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,194559],3],[194560,1,"\u4E3D"],[194561,1,"\u4E38"],[194562,1,"\u4E41"],[194563,1,"\uD840\uDD22"],[194564,1,"\u4F60"],[194565,1,"\u4FAE"],[194566,1,"\u4FBB"],[194567,1,"\u5002"],[194568,1,"\u507A"],[194569,1,"\u5099"],[194570,1,"\u50E7"],[194571,1,"\u50CF"],[194572,1,"\u349E"],[194573,1,"\uD841\uDE3A"],[194574,1,"\u514D"],[194575,1,"\u5154"],[194576,1,"\u5164"],[194577,1,"\u5177"],[194578,1,"\uD841\uDD1C"],[194579,1,"\u34B9"],[194580,1,"\u5167"],[194581,1,"\u518D"],[194582,1,"\uD841\uDD4B"],[194583,1,"\u5197"],[194584,1,"\u51A4"],[194585,1,"\u4ECC"],[194586,1,"\u51AC"],[194587,1,"\u51B5"],[194588,1,"\uD864\uDDDF"],[194589,1,"\u51F5"],[194590,1,"\u5203"],[194591,1,"\u34DF"],[194592,1,"\u523B"],[194593,1,"\u5246"],[194594,1,"\u5272"],[194595,1,"\u5277"],[194596,1,"\u3515"],[194597,1,"\u52C7"],[194598,1,"\u52C9"],[194599,1,"\u52E4"],[194600,1,"\u52FA"],[194601,1,"\u5305"],[194602,1,"\u5306"],[194603,1,"\u5317"],[194604,1,"\u5349"],[194605,1,"\u5351"],[194606,1,"\u535A"],[194607,1,"\u5373"],[194608,1,"\u537D"],[[194609,194611],1,"\u537F"],[194612,1,"\uD842\uDE2C"],[194613,1,"\u7070"],[194614,1,"\u53CA"],[194615,1,"\u53DF"],[194616,1,"\uD842\uDF63"],[194617,1,"\u53EB"],[194618,1,"\u53F1"],[194619,1,"\u5406"],[194620,1,"\u549E"],[194621,1,"\u5438"],[194622,1,"\u5448"],[194623,1,"\u5468"],[194624,1,"\u54A2"],[194625,1,"\u54F6"],[194626,1,"\u5510"],[194627,1,"\u5553"],[194628,1,"\u5563"],[[194629,194630],1,"\u5584"],[194631,1,"\u5599"],[194632,1,"\u55AB"],[194633,1,"\u55B3"],[194634,1,"\u55C2"],[194635,1,"\u5716"],[194636,1,"\u5606"],[194637,1,"\u5717"],[194638,1,"\u5651"],[194639,1,"\u5674"],[194640,1,"\u5207"],[194641,1,"\u58EE"],[194642,1,"\u57CE"],[194643,1,"\u57F4"],[194644,1,"\u580D"],[194645,1,"\u578B"],[194646,1,"\u5832"],[194647,1,"\u5831"],[194648,1,"\u58AC"],[194649,1,"\uD845\uDCE4"],[194650,1,"\u58F2"],[194651,1,"\u58F7"],[194652,1,"\u5906"],[194653,1,"\u591A"],[194654,1,"\u5922"],[194655,1,"\u5962"],[194656,1,"\uD845\uDEA8"],[194657,1,"\uD845\uDEEA"],[194658,1,"\u59EC"],[194659,1,"\u5A1B"],[194660,1,"\u5A27"],[194661,1,"\u59D8"],[194662,1,"\u5A66"],[194663,1,"\u36EE"],[194664,3],[194665,1,"\u5B08"],[[194666,194667],1,"\u5B3E"],[194668,1,"\uD846\uDDC8"],[194669,1,"\u5BC3"],[194670,1,"\u5BD8"],[194671,1,"\u5BE7"],[194672,1,"\u5BF3"],[194673,1,"\uD846\uDF18"],[194674,1,"\u5BFF"],[194675,1,"\u5C06"],[194676,3],[194677,1,"\u5C22"],[194678,1,"\u3781"],[194679,1,"\u5C60"],[194680,1,"\u5C6E"],[194681,1,"\u5CC0"],[194682,1,"\u5C8D"],[194683,1,"\uD847\uDDE4"],[194684,1,"\u5D43"],[194685,1,"\uD847\uDDE6"],[194686,1,"\u5D6E"],[194687,1,"\u5D6B"],[194688,1,"\u5D7C"],[194689,1,"\u5DE1"],[194690,1,"\u5DE2"],[194691,1,"\u382F"],[194692,1,"\u5DFD"],[194693,1,"\u5E28"],[194694,1,"\u5E3D"],[194695,1,"\u5E69"],[194696,1,"\u3862"],[194697,1,"\uD848\uDD83"],[194698,1,"\u387C"],[194699,1,"\u5EB0"],[194700,1,"\u5EB3"],[194701,1,"\u5EB6"],[194702,1,"\u5ECA"],[194703,1,"\uD868\uDF92"],[194704,1,"\u5EFE"],[[194705,194706],1,"\uD848\uDF31"],[194707,1,"\u8201"],[[194708,194709],1,"\u5F22"],[194710,1,"\u38C7"],[194711,1,"\uD84C\uDEB8"],[194712,1,"\uD858\uDDDA"],[194713,1,"\u5F62"],[194714,1,"\u5F6B"],[194715,1,"\u38E3"],[194716,1,"\u5F9A"],[194717,1,"\u5FCD"],[194718,1,"\u5FD7"],[194719,1,"\u5FF9"],[194720,1,"\u6081"],[194721,1,"\u393A"],[194722,1,"\u391C"],[194723,1,"\u6094"],[194724,1,"\uD849\uDED4"],[194725,1,"\u60C7"],[194726,1,"\u6148"],[194727,1,"\u614C"],[194728,1,"\u614E"],[194729,1,"\u614C"],[194730,1,"\u617A"],[194731,1,"\u618E"],[194732,1,"\u61B2"],[194733,1,"\u61A4"],[194734,1,"\u61AF"],[194735,1,"\u61DE"],[194736,1,"\u61F2"],[194737,1,"\u61F6"],[194738,1,"\u6210"],[194739,1,"\u621B"],[194740,1,"\u625D"],[194741,1,"\u62B1"],[194742,1,"\u62D4"],[194743,1,"\u6350"],[194744,1,"\uD84A\uDF0C"],[194745,1,"\u633D"],[194746,1,"\u62FC"],[194747,1,"\u6368"],[194748,1,"\u6383"],[194749,1,"\u63E4"],[194750,1,"\uD84A\uDFF1"],[194751,1,"\u6422"],[194752,1,"\u63C5"],[194753,1,"\u63A9"],[194754,1,"\u3A2E"],[194755,1,"\u6469"],[194756,1,"\u647E"],[194757,1,"\u649D"],[194758,1,"\u6477"],[194759,1,"\u3A6C"],[194760,1,"\u654F"],[194761,1,"\u656C"],[194762,1,"\uD84C\uDC0A"],[194763,1,"\u65E3"],[194764,1,"\u66F8"],[194765,1,"\u6649"],[194766,1,"\u3B19"],[194767,1,"\u6691"],[194768,1,"\u3B08"],[194769,1,"\u3AE4"],[194770,1,"\u5192"],[194771,1,"\u5195"],[194772,1,"\u6700"],[194773,1,"\u669C"],[194774,1,"\u80AD"],[194775,1,"\u43D9"],[194776,1,"\u6717"],[194777,1,"\u671B"],[194778,1,"\u6721"],[194779,1,"\u675E"],[194780,1,"\u6753"],[194781,1,"\uD84C\uDFC3"],[194782,1,"\u3B49"],[194783,1,"\u67FA"],[194784,1,"\u6785"],[194785,1,"\u6852"],[194786,1,"\u6885"],[194787,1,"\uD84D\uDC6D"],[194788,1,"\u688E"],[194789,1,"\u681F"],[194790,1,"\u6914"],[194791,1,"\u3B9D"],[194792,1,"\u6942"],[194793,1,"\u69A3"],[194794,1,"\u69EA"],[194795,1,"\u6AA8"],[194796,1,"\uD84D\uDEA3"],[194797,1,"\u6ADB"],[194798,1,"\u3C18"],[194799,1,"\u6B21"],[194800,1,"\uD84E\uDCA7"],[194801,1,"\u6B54"],[194802,1,"\u3C4E"],[194803,1,"\u6B72"],[194804,1,"\u6B9F"],[194805,1,"\u6BBA"],[194806,1,"\u6BBB"],[194807,1,"\uD84E\uDE8D"],[194808,1,"\uD847\uDD0B"],[194809,1,"\uD84E\uDEFA"],[194810,1,"\u6C4E"],[194811,1,"\uD84F\uDCBC"],[194812,1,"\u6CBF"],[194813,1,"\u6CCD"],[194814,1,"\u6C67"],[194815,1,"\u6D16"],[194816,1,"\u6D3E"],[194817,1,"\u6D77"],[194818,1,"\u6D41"],[194819,1,"\u6D69"],[194820,1,"\u6D78"],[194821,1,"\u6D85"],[194822,1,"\uD84F\uDD1E"],[194823,1,"\u6D34"],[194824,1,"\u6E2F"],[194825,1,"\u6E6E"],[194826,1,"\u3D33"],[194827,1,"\u6ECB"],[194828,1,"\u6EC7"],[194829,1,"\uD84F\uDED1"],[194830,1,"\u6DF9"],[194831,1,"\u6F6E"],[194832,1,"\uD84F\uDF5E"],[194833,1,"\uD84F\uDF8E"],[194834,1,"\u6FC6"],[194835,1,"\u7039"],[194836,1,"\u701E"],[194837,1,"\u701B"],[194838,1,"\u3D96"],[194839,1,"\u704A"],[194840,1,"\u707D"],[194841,1,"\u7077"],[194842,1,"\u70AD"],[194843,1,"\uD841\uDD25"],[194844,1,"\u7145"],[194845,1,"\uD850\uDE63"],[194846,1,"\u719C"],[194847,3],[194848,1,"\u7228"],[194849,1,"\u7235"],[194850,1,"\u7250"],[194851,1,"\uD851\uDE08"],[194852,1,"\u7280"],[194853,1,"\u7295"],[194854,1,"\uD851\uDF35"],[194855,1,"\uD852\uDC14"],[194856,1,"\u737A"],[194857,1,"\u738B"],[194858,1,"\u3EAC"],[194859,1,"\u73A5"],[[194860,194861],1,"\u3EB8"],[194862,1,"\u7447"],[194863,1,"\u745C"],[194864,1,"\u7471"],[194865,1,"\u7485"],[194866,1,"\u74CA"],[194867,1,"\u3F1B"],[194868,1,"\u7524"],[194869,1,"\uD853\uDC36"],[194870,1,"\u753E"],[194871,1,"\uD853\uDC92"],[194872,1,"\u7570"],[194873,1,"\uD848\uDD9F"],[194874,1,"\u7610"],[194875,1,"\uD853\uDFA1"],[194876,1,"\uD853\uDFB8"],[194877,1,"\uD854\uDC44"],[194878,1,"\u3FFC"],[194879,1,"\u4008"],[194880,1,"\u76F4"],[194881,1,"\uD854\uDCF3"],[194882,1,"\uD854\uDCF2"],[194883,1,"\uD854\uDD19"],[194884,1,"\uD854\uDD33"],[194885,1,"\u771E"],[[194886,194887],1,"\u771F"],[194888,1,"\u774A"],[194889,1,"\u4039"],[194890,1,"\u778B"],[194891,1,"\u4046"],[194892,1,"\u4096"],[194893,1,"\uD855\uDC1D"],[194894,1,"\u784E"],[194895,1,"\u788C"],[194896,1,"\u78CC"],[194897,1,"\u40E3"],[194898,1,"\uD855\uDE26"],[194899,1,"\u7956"],[194900,1,"\uD855\uDE9A"],[194901,1,"\uD855\uDEC5"],[194902,1,"\u798F"],[194903,1,"\u79EB"],[194904,1,"\u412F"],[194905,1,"\u7A40"],[194906,1,"\u7A4A"],[194907,1,"\u7A4F"],[194908,1,"\uD856\uDD7C"],[[194909,194910],1,"\uD856\uDEA7"],[194911,3],[194912,1,"\u4202"],[194913,1,"\uD856\uDFAB"],[194914,1,"\u7BC6"],[194915,1,"\u7BC9"],[194916,1,"\u4227"],[194917,1,"\uD857\uDC80"],[194918,1,"\u7CD2"],[194919,1,"\u42A0"],[194920,1,"\u7CE8"],[194921,1,"\u7CE3"],[194922,1,"\u7D00"],[194923,1,"\uD857\uDF86"],[194924,1,"\u7D63"],[194925,1,"\u4301"],[194926,1,"\u7DC7"],[194927,1,"\u7E02"],[194928,1,"\u7E45"],[194929,1,"\u4334"],[194930,1,"\uD858\uDE28"],[194931,1,"\uD858\uDE47"],[194932,1,"\u4359"],[194933,1,"\uD858\uDED9"],[194934,1,"\u7F7A"],[194935,1,"\uD858\uDF3E"],[194936,1,"\u7F95"],[194937,1,"\u7FFA"],[194938,1,"\u8005"],[194939,1,"\uD859\uDCDA"],[194940,1,"\uD859\uDD23"],[194941,1,"\u8060"],[194942,1,"\uD859\uDDA8"],[194943,1,"\u8070"],[194944,1,"\uD84C\uDF5F"],[194945,1,"\u43D5"],[194946,1,"\u80B2"],[194947,1,"\u8103"],[194948,1,"\u440B"],[194949,1,"\u813E"],[194950,1,"\u5AB5"],[194951,1,"\uD859\uDFA7"],[194952,1,"\uD859\uDFB5"],[194953,1,"\uD84C\uDF93"],[194954,1,"\uD84C\uDF9C"],[194955,1,"\u8201"],[194956,1,"\u8204"],[194957,1,"\u8F9E"],[194958,1,"\u446B"],[194959,1,"\u8291"],[194960,1,"\u828B"],[194961,1,"\u829D"],[194962,1,"\u52B3"],[194963,1,"\u82B1"],[194964,1,"\u82B3"],[194965,1,"\u82BD"],[194966,1,"\u82E6"],[194967,1,"\uD85A\uDF3C"],[194968,1,"\u82E5"],[194969,1,"\u831D"],[194970,1,"\u8363"],[194971,1,"\u83AD"],[194972,1,"\u8323"],[194973,1,"\u83BD"],[194974,1,"\u83E7"],[194975,1,"\u8457"],[194976,1,"\u8353"],[194977,1,"\u83CA"],[194978,1,"\u83CC"],[194979,1,"\u83DC"],[194980,1,"\uD85B\uDC36"],[194981,1,"\uD85B\uDD6B"],[194982,1,"\uD85B\uDCD5"],[194983,1,"\u452B"],[194984,1,"\u84F1"],[194985,1,"\u84F3"],[194986,1,"\u8516"],[194987,1,"\uD85C\uDFCA"],[194988,1,"\u8564"],[194989,1,"\uD85B\uDF2C"],[194990,1,"\u455D"],[194991,1,"\u4561"],[194992,1,"\uD85B\uDFB1"],[194993,1,"\uD85C\uDCD2"],[194994,1,"\u456B"],[194995,1,"\u8650"],[194996,1,"\u865C"],[194997,1,"\u8667"],[194998,1,"\u8669"],[194999,1,"\u86A9"],[195000,1,"\u8688"],[195001,1,"\u870E"],[195002,1,"\u86E2"],[195003,1,"\u8779"],[195004,1,"\u8728"],[195005,1,"\u876B"],[195006,1,"\u8786"],[195007,3],[195008,1,"\u87E1"],[195009,1,"\u8801"],[195010,1,"\u45F9"],[195011,1,"\u8860"],[195012,1,"\u8863"],[195013,1,"\uD85D\uDE67"],[195014,1,"\u88D7"],[195015,1,"\u88DE"],[195016,1,"\u4635"],[195017,1,"\u88FA"],[195018,1,"\u34BB"],[195019,1,"\uD85E\uDCAE"],[195020,1,"\uD85E\uDD66"],[195021,1,"\u46BE"],[195022,1,"\u46C7"],[195023,1,"\u8AA0"],[195024,1,"\u8AED"],[195025,1,"\u8B8A"],[195026,1,"\u8C55"],[195027,1,"\uD85F\uDCA8"],[195028,1,"\u8CAB"],[195029,1,"\u8CC1"],[195030,1,"\u8D1B"],[195031,1,"\u8D77"],[195032,1,"\uD85F\uDF2F"],[195033,1,"\uD842\uDC04"],[195034,1,"\u8DCB"],[195035,1,"\u8DBC"],[195036,1,"\u8DF0"],[195037,1,"\uD842\uDCDE"],[195038,1,"\u8ED4"],[195039,1,"\u8F38"],[195040,1,"\uD861\uDDD2"],[195041,1,"\uD861\uDDED"],[195042,1,"\u9094"],[195043,1,"\u90F1"],[195044,1,"\u9111"],[195045,1,"\uD861\uDF2E"],[195046,1,"\u911B"],[195047,1,"\u9238"],[195048,1,"\u92D7"],[195049,1,"\u92D8"],[195050,1,"\u927C"],[195051,1,"\u93F9"],[195052,1,"\u9415"],[195053,1,"\uD862\uDFFA"],[195054,1,"\u958B"],[195055,1,"\u4995"],[195056,1,"\u95B7"],[195057,1,"\uD863\uDD77"],[195058,1,"\u49E6"],[195059,1,"\u96C3"],[195060,1,"\u5DB2"],[195061,1,"\u9723"],[195062,1,"\uD864\uDD45"],[195063,1,"\uD864\uDE1A"],[195064,1,"\u4A6E"],[195065,1,"\u4A76"],[195066,1,"\u97E0"],[195067,1,"\uD865\uDC0A"],[195068,1,"\u4AB2"],[195069,1,"\uD865\uDC96"],[[195070,195071],1,"\u980B"],[195072,1,"\u9829"],[195073,1,"\uD865\uDDB6"],[195074,1,"\u98E2"],[195075,1,"\u4B33"],[195076,1,"\u9929"],[195077,1,"\u99A7"],[195078,1,"\u99C2"],[195079,1,"\u99FE"],[195080,1,"\u4BCE"],[195081,1,"\uD866\uDF30"],[195082,1,"\u9B12"],[195083,1,"\u9C40"],[195084,1,"\u9CFD"],[195085,1,"\u4CCE"],[195086,1,"\u4CED"],[195087,1,"\u9D67"],[195088,1,"\uD868\uDCCE"],[195089,1,"\u4CF8"],[195090,1,"\uD868\uDD05"],[195091,1,"\uD868\uDE0E"],[195092,1,"\uD868\uDE91"],[195093,1,"\u9EBB"],[195094,1,"\u4D56"],[195095,1,"\u9EF9"],[195096,1,"\u9EFE"],[195097,1,"\u9F05"],[195098,1,"\u9F0F"],[195099,1,"\u9F16"],[195100,1,"\u9F3B"],[195101,1,"\uD869\uDE00"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,201551],3],[[201552,205743],2],[[205744,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918000,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]]});var lw=V((Au,pw)=>{Au.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}});var tw=V((y01,nw)=>{var wu=function(J){return/[^\x00-\x7F]/u.test(J)},iw=function(J,{useSTD3ASCIIRules:Z}){let $=0,X=aw.length-1;while($<=X){const Y=Math.floor(($+X)/2),Q=aw[Y],K=Array.isArray(Q[0])?Q[0][0]:Q[0],G=Array.isArray(Q[0])?Q[0][1]:Q[0];if(K<=J&&G>=J){if(Z&&(Q[1]===G0.disallowed_STD3_valid||Q[1]===G0.disallowed_STD3_mapped))return[G0.disallowed,...Q.slice(2)];else if(Q[1]===G0.disallowed_STD3_valid)return[G0.valid,...Q.slice(2)];else if(Q[1]===G0.disallowed_STD3_mapped)return[G0.mapped,...Q.slice(2)];return Q.slice(1)}else if(K>J)X=Y-1;else $=Y+1}return null},Ru=function(J,{useSTD3ASCIIRules:Z,processingOption:$}){let X=!1,Y="";for(let Q of J){const[K,G]=iw(Q.codePointAt(0),{useSTD3ASCIIRules:Z});switch(K){case G0.disallowed:X=!0,Y+=Q;break;case G0.ignored:break;case G0.mapped:Y+=G;break;case G0.deviation:if($==="transitional")Y+=G;else Y+=Q;break;case G0.valid:Y+=Q;break}}return{string:Y,error:X}},Du=function(J,{checkHyphens:Z,checkBidi:$,checkJoiners:X,processingOption:Y,useSTD3ASCIIRules:Q}){if(J.normalize("NFC")!==J)return!1;const K=Array.from(J);if(Z){if(K[2]==="-"&&K[3]==="-"||(J.startsWith("-")||J.endsWith("-")))return!1}if(J.includes(".")||K.length>0&&n0.combiningMarks.test(K[0]))return!1;for(let G of K){const[F]=iw(G.codePointAt(0),{useSTD3ASCIIRules:Q});if(Y==="transitional"&&F!==G0.valid||Y==="nontransitional"&&F!==G0.valid&&F!==G0.deviation)return!1}if(X){let G=0;for(let[F,q]of K.entries())if(q==="\u200C"||q==="\u200D"){if(F>0){if(n0.combiningClassVirama.test(K[F-1]))continue;if(q==="\u200C"){const W=K.indexOf("\u200C",F+1),H=W<0?K.slice(G):K.slice(G,W);if(n0.validZWNJ.test(H.join(""))){G=F+1;continue}}}return!1}}if($&&K.length>0){let G;if(n0.bidiS1LTR.test(K[0]))G=!1;else if(n0.bidiS1RTL.test(K[0]))G=!0;else return!1;if(G){if(!n0.bidiS2.test(J)||!n0.bidiS3.test(J)||n0.bidiS4EN.test(J)&&n0.bidiS4AN.test(J))return!1}else if(!n0.bidiS5.test(J)||!n0.bidiS6.test(J))return!1}return!0},Pu=function(J){const Z=J.map(($)=>{if($.startsWith("xn--"))try{return vY.decode($.substring(4))}catch(X){return""}return $}).join(".");return n0.bidiDomain.test(Z)},sw=function(J,Z){const{processingOption:$}=Z;let{string:X,error:Y}=Ru(J,Z);X=X.normalize("NFC");const Q=X.split("."),K=Pu(Q);for(let[G,F]of Q.entries()){let q=F,W=$;if(q.startsWith("xn--")){try{q=vY.decode(q.substring(4)),Q[G]=q}catch(U){Y=!0;continue}W="nontransitional"}if(Y)continue;if(!Du(q,{...Z,processingOption:W,checkBidi:Z.checkBidi&&K}))Y=!0}return{string:Q.join("."),error:Y}},Tu=function(J,{checkHyphens:Z=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional",verifyDNSLength:K=!1}={}){if(Q!=="transitional"&&Q!=="nontransitional")throw new RangeError("processingOption must be either transitional or nontransitional");const G=sw(J,{processingOption:Q,checkHyphens:Z,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});let F=G.string.split(".");if(F=F.map((q)=>{if(wu(q))try{return`xn--${vY.encode(q)}`}catch(W){G.error=!0}return q}),K){const q=F.join(".").length;if(q>253||q===0)G.error=!0;for(let W=0;W<F.length;++W)if(F[W].length>63||F[W].length===0){G.error=!0;break}}if(G.error)return null;return F.join(".")},Iu=function(J,{checkHyphens:Z=!1,checkBidi:$=!1,checkJoiners:X=!1,useSTD3ASCIIRules:Y=!1,processingOption:Q="nontransitional"}={}){const K=sw(J,{processingOption:Q,checkHyphens:Z,checkBidi:$,checkJoiners:X,useSTD3ASCIIRules:Y});return{domain:K.string,error:K.error}},vY=mw(),n0=dw(),aw=cw(),{STATUS_MAPPING:G0}=lw();nw.exports={toASCII:Tu,toUnicode:Iu}});var bY=V((_01,ow)=>{var xY=function(J){return J>=48&&J<=57},rw=function(J){return J>=65&&J<=90||J>=97&&J<=122},Nu=function(J){return rw(J)||xY(J)},Bu=function(J){return xY(J)||J>=65&&J<=70||J>=97&&J<=102};ow.exports={isASCIIDigit:xY,isASCIIAlpha:rw,isASCIIAlphanumeric:Nu,isASCIIHex:Bu}});var HZ=V((f01,ew)=>{var hu=function(J){return Eu.encode(J)},Su=function(J){return Cu.decode(J)},Eu=new TextEncoder,Cu=new TextDecoder("utf-8",{ignoreBOM:!0});ew.exports={utf8Encode:hu,utf8DecodeWithoutBOM:Su}});var VZ=V((v01,KR)=>{var i=function(J){return J.codePointAt(0)},Ou=function(J){let Z=J.toString(16).toUpperCase();if(Z.length===1)Z=`0${Z}`;return`%${Z}`},$R=function(J){const Z=new Uint8Array(J.byteLength);let $=0;for(let X=0;X<J.byteLength;++X){const Y=J[X];if(Y!==37)Z[$++]=Y;else if(Y===37&&(!JR(J[X+1])||!JR(J[X+2])))Z[$++]=Y;else{const Q=parseInt(String.fromCodePoint(J[X+1],J[X+2]),16);Z[$++]=Q,X+=2}}return Z.slice(0,$)},ku=function(J){const Z=ZR(J);return $R(Z)},gY=function(J){return J<=31||J>126},_u=function(J){return gY(J)||yu.has(J)},mY=function(J){return gY(J)||fu.has(J)},vu=function(J){return mY(J)||J===i("'")},XR=function(J){return mY(J)||xu.has(J)},YR=function(J){return XR(J)||bu.has(J)},mu=function(J){return YR(J)||gu.has(J)},du=function(J){return mu(J)||uu.has(J)},QR=function(J,Z){const $=ZR(J);let X="";for(let Y of $)if(!Z(Y))X+=String.fromCharCode(Y);else X+=Ou(Y);return X},cu=function(J,Z){return QR(String.fromCodePoint(J),Z)},pu=function(J,Z,$=!1){let X="";for(let Y of J)if($&&Y===" ")X+="+";else X+=QR(Y,Z);return X},{isASCIIHex:JR}=bY(),{utf8Encode:ZR}=HZ(),yu=new Set([i(" "),i("\""),i("<"),i(">"),i("`")]),fu=new Set([i(" "),i("\""),i("#"),i("<"),i(">")]),xu=new Set([i("?"),i("`"),i("{"),i("}")]),bu=new Set([i("/"),i(":"),i(";"),i("="),i("@"),i("["),i("\\"),i("]"),i("^"),i("|")]),gu=new Set([i("$"),i("%"),i("&"),i("+"),i(",")]),uu=new Set([i("!"),i("'"),i("("),i(")"),i("~")]);KR.exports={isC0ControlPercentEncode:gY,isFragmentPercentEncode:_u,isQueryPercentEncode:mY,isSpecialQueryPercentEncode:vu,isPathPercentEncode:XR,isUserinfoPercentEncode:YR,isURLEncodedPercentEncode:du,percentDecodeString:ku,percentDecodeBytes:$R,utf8PercentEncodeString:pu,utf8PercentEncodeCodePoint:cu}});var aY=V((Ad,F0)=>{var I=function(J){return J.codePointAt(0)},GR=function(J){return[...J].length},FR=function(J,Z){const $=J[Z];return isNaN($)?void 0:String.fromCodePoint($)},qR=function(J){return J==="."||J.toLowerCase()==="%2e"},ou=function(J){return J=J.toLowerCase(),J===".."||J==="%2e."||J===".%2e"||J==="%2e%2e"},eu=function(J,Z){return p1.isASCIIAlpha(J)&&(Z===I(":")||Z===I("|"))},zR=function(J){return J.length===2&&p1.isASCIIAlpha(J.codePointAt(0))&&(J[1]===":"||J[1]==="|")},Jd=function(J){return J.length===2&&p1.isASCIIAlpha(J.codePointAt(0))&&J[1]===":"},UR=function(J){return J.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1},Zd=function(J){return UR(J)||J.search(/[\u0000-\u001F]|%|\u007F/u)!==-1},zZ=function(J){return VR[J]!==void 0},c1=function(J){return zZ(J.scheme)},uY=function(J){return!zZ(J.scheme)},MR=function(J){return VR[J]},jR=function(J){if(J==="")return b;let Z=10;if(J.length>=2&&J.charAt(0)==="0"&&J.charAt(1).toLowerCase()==="x")J=J.substring(2),Z=16;else if(J.length>=2&&J.charAt(0)==="0")J=J.substring(1),Z=8;if(J==="")return 0;let $=/[^0-7]/u;if(Z===10)$=/[^0-9]/u;if(Z===16)$=/[^0-9A-Fa-f]/u;if($.test(J))return b;return parseInt(J,Z)},$d=function(J){const Z=J.split(".");if(Z[Z.length-1]===""){if(Z.length>1)Z.pop()}if(Z.length>4)return b;const $=[];for(let Q of Z){const K=jR(Q);if(K===b)return b;$.push(K)}for(let Q=0;Q<$.length-1;++Q)if($[Q]>255)return b;if($[$.length-1]>=256**(5-$.length))return b;let X=$.pop(),Y=0;for(let Q of $)X+=Q*256**(3-Y),++Y;return X},Xd=function(J){let Z="",$=J;for(let X=1;X<=4;++X){if(Z=String($%256)+Z,X!==4)Z=`.${Z}`;$=Math.floor($/256)}return Z},Yd=function(J){const Z=[0,0,0,0,0,0,0,0];let $=0,X=null,Y=0;if(J=Array.from(J,(Q)=>Q.codePointAt(0)),J[Y]===I(":")){if(J[Y+1]!==I(":"))return b;Y+=2,++$,X=$}while(Y<J.length){if($===8)return b;if(J[Y]===I(":")){if(X!==null)return b;++Y,++$,X=$;continue}let Q=0,K=0;while(K<4&&p1.isASCIIHex(J[Y]))Q=Q*16+parseInt(FR(J,Y),16),++Y,++K;if(J[Y]===I(".")){if(K===0)return b;if(Y-=K,$>6)return b;let G=0;while(J[Y]!==void 0){let F=null;if(G>0)if(J[Y]===I(".")&&G<4)++Y;else return b;if(!p1.isASCIIDigit(J[Y]))return b;while(p1.isASCIIDigit(J[Y])){const q=parseInt(FR(J,Y));if(F===null)F=q;else if(F===0)return b;else F=F*10+q;if(F>255)return b;++Y}if(Z[$]=Z[$]*256+F,++G,G===2||G===4)++$}if(G!==4)return b;break}else if(J[Y]===I(":")){if(++Y,J[Y]===void 0)return b}else if(J[Y]!==void 0)return b;Z[$]=Q,++$}if(X!==null){let Q=$-X;$=7;while($!==0&&Q>0){const K=Z[X+Q-1];Z[X+Q-1]=Z[$],Z[$]=K,--$,--Q}}else if(X===null&&$!==8)return b;return Z},Qd=function(J){let Z="";const $=Fd(J);let X=!1;for(let Y=0;Y<=7;++Y){if(X&&J[Y]===0)continue;else if(X)X=!1;if($===Y){Z+=Y===0?"::":":",X=!0;continue}if(Z+=J[Y].toString(16),Y!==7)Z+=":"}return Z},dY=function(J,Z=!1){if(J[0]==="["){if(J[J.length-1]!=="]")return b;return Yd(J.substring(1,J.length-1))}if(Z)return Gd(J);const $=au(iu(J)),X=qd($);if(X===b)return b;if(Zd(X))return b;if(Kd(X))return $d(X);return X},Kd=function(J){const Z=J.split(".");if(Z[Z.length-1]===""){if(Z.length===1)return!1;Z.pop()}const $=Z[Z.length-1];if(jR($)!==b)return!0;if(/^[0-9]+$/u.test($))return!0;return!1},Gd=function(J){if(UR(J))return b;return MZ(J,HR)},Fd=function(J){let Z=null,$=1,X=null,Y=0;for(let Q=0;Q<J.length;++Q)if(J[Q]!==0){if(Y>$)Z=X,$=Y;X=null,Y=0}else{if(X===null)X=Q;++Y}if(Y>$)return X;return Z},pY=function(J){if(typeof J==="number")return Xd(J);if(J instanceof Array)return`[${Qd(J)}]`;return J},qd=function(J,Z=!1){const $=lu.toASCII(J,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:Z,verifyDNSLength:Z});if($===null||$==="")return b;return $},Wd=function(J){return J.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/ug,"")},Hd=function(J){return J.replace(/\u0009|\u000A|\u000D/ug,"")},AR=function(J){const{path:Z}=J;if(Z.length===0)return;if(J.scheme==="file"&&Z.length===1&&zd(Z[0]))return;Z.pop()},LR=function(J){return J.username!==""||J.password!==""},Vd=function(J){return J.host===null||J.host===""||J.scheme==="file"},e5=function(J){return typeof J.path==="string"},zd=function(J){return/^[A-Za-z]:$/u.test(J)},D1=function(J,Z,$,X,Y){if(this.pointer=0,this.input=J,this.base=Z||null,this.encodingOverride=$||"utf-8",this.stateOverride=Y,this.url=X,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const K=Wd(this.input);if(K!==this.input)this.parseError=!0;this.input=K}const Q=Hd(this.input);if(Q!==this.input)this.parseError=!0;this.input=Q,this.state=Y||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(K)=>K.codePointAt(0));for(;this.pointer<=this.input.length;++this.pointer){const K=this.input[this.pointer],G=isNaN(K)?void 0:String.fromCodePoint(K),F=this[`parse ${this.state}`](K,G);if(!F)break;else if(F===b){this.failure=!0;break}}},wR=function(J,Z){const $=J.length-Z;return $>=2&&eu(J[Z],J[Z+1])&&($===2||Ud.has(J[Z+2]))},Md=function(J,Z){let $=`${J.scheme}:`;if(J.host!==null){if($+="//",J.username!==""||J.password!==""){if($+=J.username,J.password!=="")$+=`:${J.password}`;$+="@"}if($+=pY(J.host),J.port!==null)$+=`:${J.port}`}if(J.host===null&&!e5(J)&&J.path.length>1&&J.path[0]==="")$+="/.";if($+=lY(J),J.query!==null)$+=`?${J.query}`;if(!Z&&J.fragment!==null)$+=`#${J.fragment}`;return $},jd=function(J){let Z=`${J.scheme}://`;if(Z+=pY(J.host),J.port!==null)Z+=`:${J.port}`;return Z},lY=function(J){if(e5(J))return J.path;let Z="";for(let $ of J.path)Z+=`/${$}`;return Z},lu=tw(),p1=bY(),{utf8DecodeWithoutBOM:au}=HZ(),{percentDecodeString:iu,utf8PercentEncodeCodePoint:UZ,utf8PercentEncodeString:MZ,isC0ControlPercentEncode:HR,isFragmentPercentEncode:su,isQueryPercentEncode:nu,isSpecialQueryPercentEncode:tu,isPathPercentEncode:ru,isUserinfoPercentEncode:cY}=VZ(),VR={ftp:21,file:null,http:80,https:443,ws:80,wss:443},b=Symbol("failure");D1.prototype["parse scheme start"]=function J(Z,$){if(p1.isASCIIAlpha(Z))this.buffer+=$.toLowerCase(),this.state="scheme";else if(!this.stateOverride)this.state="no scheme",--this.pointer;else return this.parseError=!0,b;return!0};D1.prototype["parse scheme"]=function J(Z,$){if(p1.isASCIIAlphanumeric(Z)||Z===I("+")||Z===I("-")||Z===I("."))this.buffer+=$.toLowerCase();else if(Z===I(":")){if(this.stateOverride){if(c1(this.url)&&!zZ(this.buffer))return!1;if(!c1(this.url)&&zZ(this.buffer))return!1;if((LR(this.url)||this.url.port!==null)&&this.buffer==="file")return!1;if(this.url.scheme==="file"&&this.url.host==="")return!1}if(this.url.scheme=this.buffer,this.stateOverride){if(this.url.port===MR(this.url.scheme))this.url.port=null;return!1}if(this.buffer="",this.url.scheme==="file"){if(this.input[this.pointer+1]!==I("/")||this.input[this.pointer+2]!==I("/"))this.parseError=!0;this.state="file"}else if(c1(this.url)&&this.base!==null&&this.base.scheme===this.url.scheme)this.state="special relative or authority";else if(c1(this.url))this.state="special authority slashes";else if(this.input[this.pointer+1]===I("/"))this.state="path or authority",++this.pointer;else this.url.path="",this.state="opaque path"}else if(!this.stateOverride)this.buffer="",this.state="no scheme",this.pointer=-1;else return this.parseError=!0,b;return!0};D1.prototype["parse no scheme"]=function J(Z){if(this.base===null||e5(this.base)&&Z!==I("#"))return b;else if(e5(this.base)&&Z===I("#"))this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment";else if(this.base.scheme==="file")this.state="file",--this.pointer;else this.state="relative",--this.pointer;return!0};D1.prototype["parse special relative or authority"]=function J(Z){if(Z===I("/")&&this.input[this.pointer+1]===I("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="relative",--this.pointer;return!0};D1.prototype["parse path or authority"]=function J(Z){if(Z===I("/"))this.state="authority";else this.state="path",--this.pointer;return!0};D1.prototype["parse relative"]=function J(Z){if(this.url.scheme=this.base.scheme,Z===I("/"))this.state="relative slash";else if(c1(this.url)&&Z===I("\\"))this.parseError=!0,this.state="relative slash";else if(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,Z===I("?"))this.url.query="",this.state="query";else if(Z===I("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(Z))this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer;return!0};D1.prototype["parse relative slash"]=function J(Z){if(c1(this.url)&&(Z===I("/")||Z===I("\\"))){if(Z===I("\\"))this.parseError=!0;this.state="special authority ignore slashes"}else if(Z===I("/"))this.state="authority";else this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer;return!0};D1.prototype["parse special authority slashes"]=function J(Z){if(Z===I("/")&&this.input[this.pointer+1]===I("/"))this.state="special authority ignore slashes",++this.pointer;else this.parseError=!0,this.state="special authority ignore slashes",--this.pointer;return!0};D1.prototype["parse special authority ignore slashes"]=function J(Z){if(Z!==I("/")&&Z!==I("\\"))this.state="authority",--this.pointer;else this.parseError=!0;return!0};D1.prototype["parse authority"]=function J(Z,$){if(Z===I("@")){if(this.parseError=!0,this.atFlag)this.buffer=`%40${this.buffer}`;this.atFlag=!0;const X=GR(this.buffer);for(let Y=0;Y<X;++Y){const Q=this.buffer.codePointAt(Y);if(Q===I(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const K=UZ(Q,cY);if(this.passwordTokenSeenFlag)this.url.password+=K;else this.url.username+=K}this.buffer=""}else if(isNaN(Z)||Z===I("/")||Z===I("?")||Z===I("#")||c1(this.url)&&Z===I("\\")){if(this.atFlag&&this.buffer==="")return this.parseError=!0,b;this.pointer-=GR(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=$;return!0};D1.prototype["parse hostname"]=D1.prototype["parse host"]=function J(Z,$){if(this.stateOverride&&this.url.scheme==="file")--this.pointer,this.state="file host";else if(Z===I(":")&&!this.arrFlag){if(this.buffer==="")return this.parseError=!0,b;if(this.stateOverride==="hostname")return!1;const X=dY(this.buffer,uY(this.url));if(X===b)return b;this.url.host=X,this.buffer="",this.state="port"}else if(isNaN(Z)||Z===I("/")||Z===I("?")||Z===I("#")||c1(this.url)&&Z===I("\\")){if(--this.pointer,c1(this.url)&&this.buffer==="")return this.parseError=!0,b;else if(this.stateOverride&&this.buffer===""&&(LR(this.url)||this.url.port!==null))return this.parseError=!0,!1;const X=dY(this.buffer,uY(this.url));if(X===b)return b;if(this.url.host=X,this.buffer="",this.state="path start",this.stateOverride)return!1}else{if(Z===I("["))this.arrFlag=!0;else if(Z===I("]"))this.arrFlag=!1;this.buffer+=$}return!0};D1.prototype["parse port"]=function J(Z,$){if(p1.isASCIIDigit(Z))this.buffer+=$;else if(isNaN(Z)||Z===I("/")||Z===I("?")||Z===I("#")||c1(this.url)&&Z===I("\\")||this.stateOverride){if(this.buffer!==""){const X=parseInt(this.buffer);if(X>65535)return this.parseError=!0,b;this.url.port=X===MR(this.url.scheme)?null:X,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}else return this.parseError=!0,b;return!0};var Ud=new Set([I("/"),I("\\"),I("?"),I("#")]);D1.prototype["parse file"]=function J(Z){if(this.url.scheme="file",this.url.host="",Z===I("/")||Z===I("\\")){if(Z===I("\\"))this.parseError=!0;this.state="file slash"}else if(this.base!==null&&this.base.scheme==="file"){if(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,Z===I("?"))this.url.query="",this.state="query";else if(Z===I("#"))this.url.fragment="",this.state="fragment";else if(!isNaN(Z)){if(this.url.query=null,!wR(this.input,this.pointer))AR(this.url);else this.parseError=!0,this.url.path=[];this.state="path",--this.pointer}}else this.state="path",--this.pointer;return!0};D1.prototype["parse file slash"]=function J(Z){if(Z===I("/")||Z===I("\\")){if(Z===I("\\"))this.parseError=!0;this.state="file host"}else{if(this.base!==null&&this.base.scheme==="file"){if(!wR(this.input,this.pointer)&&Jd(this.base.path[0]))this.url.path.push(this.base.path[0]);this.url.host=this.base.host}this.state="path",--this.pointer}return!0};D1.prototype["parse file host"]=function J(Z,$){if(isNaN(Z)||Z===I("/")||Z===I("\\")||Z===I("?")||Z===I("#"))if(--this.pointer,!this.stateOverride&&zR(this.buffer))this.parseError=!0,this.state="path";else if(this.buffer===""){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let X=dY(this.buffer,uY(this.url));if(X===b)return b;if(X==="localhost")X="";if(this.url.host=X,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=$;return!0};D1.prototype["parse path start"]=function J(Z){if(c1(this.url)){if(Z===I("\\"))this.parseError=!0;if(this.state="path",Z!==I("/")&&Z!==I("\\"))--this.pointer}else if(!this.stateOverride&&Z===I("?"))this.url.query="",this.state="query";else if(!this.stateOverride&&Z===I("#"))this.url.fragment="",this.state="fragment";else if(Z!==void 0){if(this.state="path",Z!==I("/"))--this.pointer}else if(this.stateOverride&&this.url.host===null)this.url.path.push("");return!0};D1.prototype["parse path"]=function J(Z){if(isNaN(Z)||Z===I("/")||c1(this.url)&&Z===I("\\")||!this.stateOverride&&(Z===I("?")||Z===I("#"))){if(c1(this.url)&&Z===I("\\"))this.parseError=!0;if(ou(this.buffer)){if(AR(this.url),Z!==I("/")&&!(c1(this.url)&&Z===I("\\")))this.url.path.push("")}else if(qR(this.buffer)&&Z!==I("/")&&!(c1(this.url)&&Z===I("\\")))this.url.path.push("");else if(!qR(this.buffer)){if(this.url.scheme==="file"&&this.url.path.length===0&&zR(this.buffer))this.buffer=`${this.buffer[0]}:`;this.url.path.push(this.buffer)}if(this.buffer="",Z===I("?"))this.url.query="",this.state="query";if(Z===I("#"))this.url.fragment="",this.state="fragment"}else{if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=UZ(Z,ru)}return!0};D1.prototype["parse opaque path"]=function J(Z){if(Z===I("?"))this.url.query="",this.state="query";else if(Z===I("#"))this.url.fragment="",this.state="fragment";else{if(!isNaN(Z)&&Z!==I("%"))this.parseError=!0;if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;if(!isNaN(Z))this.url.path+=UZ(Z,HR)}return!0};D1.prototype["parse query"]=function J(Z,$){if(!c1(this.url)||this.url.scheme==="ws"||this.url.scheme==="wss")this.encodingOverride="utf-8";if(!this.stateOverride&&Z===I("#")||isNaN(Z)){const X=c1(this.url)?tu:nu;if(this.url.query+=MZ(this.buffer,X),this.buffer="",Z===I("#"))this.url.fragment="",this.state="fragment"}else if(!isNaN(Z)){if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.buffer+=$}return!0};D1.prototype["parse fragment"]=function J(Z){if(!isNaN(Z)){if(Z===I("%")&&(!p1.isASCIIHex(this.input[this.pointer+1])||!p1.isASCIIHex(this.input[this.pointer+2])))this.parseError=!0;this.url.fragment+=UZ(Z,su)}return!0};Ad.serializeURL=Md;Ad.serializePath=lY;Ad.serializeURLOrigin=function(J){switch(J.scheme){case"blob":{const Z=Ad.parseURL(lY(J));if(Z===null)return"null";if(Z.scheme!=="http"&&Z.scheme!=="https")return"null";return Ad.serializeURLOrigin(Z)}case"ftp":case"http":case"https":case"ws":case"wss":return jd({scheme:J.scheme,host:J.host,port:J.port});case"file":return"null";default:return"null"}};Ad.basicURLParse=function(J,Z){if(Z===void 0)Z={};const $=new D1(J,Z.baseURL,Z.encodingOverride,Z.url,Z.stateOverride);if($.failure)return null;return $.url};Ad.setTheUsername=function(J,Z){J.username=MZ(Z,cY)};Ad.setThePassword=function(J,Z){J.password=MZ(Z,cY)};Ad.serializeHost=pY;Ad.cannotHaveAUsernamePasswordPort=Vd;Ad.hasAnOpaquePath=e5;Ad.serializeInteger=function(J){return String(J)};Ad.parseURL=function(J,Z){if(Z===void 0)Z={};return Ad.basicURLParse(J,{baseURL:Z.baseURL,encodingOverride:Z.encodingOverride})}});var iY=V((x01,ER)=>{var NR=function(J){return J.codePointAt(0)},Cd=function(J){const Z=Od(J,NR("&")),$=[];for(let X of Z){if(X.length===0)continue;let Y,Q;const K=X.indexOf(NR("="));if(K>=0)Y=X.slice(0,K),Q=X.slice(K+1);else Y=X,Q=new Uint8Array(0);Y=BR(Y,43,32),Q=BR(Q,43,32);const G=DR(PR(Y)),F=DR(PR(Q));$.push([G,F])}return $},hd=function(J){return Cd(Ed(J))},Sd=function(J,Z=void 0){let $="utf-8";if(Z!==void 0)$=Z;let X="";for(let[Y,Q]of J.entries()){const K=TR(Q[0],IR,!0);let G=Q[1];if(Q.length>2&&Q[2]!==void 0){if(Q[2]==="hidden"&&K==="_charset_")G=$;else if(Q[2]==="file")G=G.name}if(G=TR(G,IR,!0),Y!==0)X+="&";X+=`${K}=${G}`}return X},Od=function(J,Z){const $=[];let X=0,Y=J.indexOf(Z);while(Y>=0)$.push(J.slice(X,Y)),X=Y+1,Y=J.indexOf(Z,X);if(X!==J.length)$.push(J.slice(X));return $},BR=function(J,Z,$){let X=J.indexOf(Z);while(X>=0)J[X]=$,X=J.indexOf(Z,X+1);return J},{utf8Encode:Ed,utf8DecodeWithoutBOM:DR}=HZ(),{percentDecodeBytes:PR,utf8PercentEncodeString:TR,isURLEncodedPercentEncode:IR}=VZ();ER.exports={parseUrlencodedString:hd,serializeUrlencoded:Sd}});var hR=V((kd)=>{var CR=FZ(),jZ=WZ();kd.convert=(J,Z,{context:$="The provided value"}={})=>{if(typeof Z!=="function")throw new J.TypeError($+" is not a function");function X(...Y){const Q=jZ.tryWrapperForImpl(this);let K;for(let G=0;G<Y.length;G++)Y[G]=jZ.tryWrapperForImpl(Y[G]);return K=Reflect.apply(Z,Q,Y),K=CR.any(K,{context:$,globals:J}),K}return X.construct=(...Y)=>{for(let K=0;K<Y.length;K++)Y[K]=jZ.tryWrapperForImpl(Y[K]);let Q=Reflect.construct(Z,Y);return Q=CR.any(Q,{context:$,globals:J}),Q},X[jZ.wrapperSymbol]=Z,X.objectReference=Z,X}});var SR=V((_d)=>{var sY=iY();_d.implementation=class J{constructor(Z,$,{doNotStripQMark:X=!1}){let Y=$[0];if(this._list=[],this._url=null,!X&&typeof Y==="string"&&Y[0]==="?")Y=Y.slice(1);if(Array.isArray(Y))for(let Q of Y){if(Q.length!==2)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([Q[0],Q[1]])}else if(typeof Y==="object"&&Object.getPrototypeOf(Y)===null)for(let Q of Object.keys(Y)){const K=Y[Q];this._list.push([Q,K])}else this._list=sY.parseUrlencodedString(Y)}_updateSteps(){if(this._url!==null){let Z=sY.serializeUrlencoded(this._list);if(Z==="")Z=null;if(this._url._url.query=Z,Z===null)this._url._potentiallyStripTrailingSpacesFromAnOpaquePath()}}get size(){return this._list.length}append(Z,$){this._list.push([Z,$]),this._updateSteps()}delete(Z,$){let X=0;while(X<this._list.length)if(this._list[X][0]===Z&&($===void 0||this._list[X][1]===$))this._list.splice(X,1);else X++;this._updateSteps()}get(Z){for(let $ of this._list)if($[0]===Z)return $[1];return null}getAll(Z){const $=[];for(let X of this._list)if(X[0]===Z)$.push(X[1]);return $}has(Z,$){for(let X of this._list)if(X[0]===Z&&($===void 0||X[1]===$))return!0;return!1}set(Z,$){let X=!1,Y=0;while(Y<this._list.length)if(this._list[Y][0]===Z)if(X)this._list.splice(Y,1);else X=!0,this._list[Y][1]=$,Y++;else Y++;if(!X)this._list.push([Z,$]);this._updateSteps()}sort(){this._list.sort((Z,$)=>{if(Z[0]<$[0])return-1;if(Z[0]>$[0])return 1;return 0}),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return sY.serializeUrlencoded(this._list)}}});var tY=V((bd)=>{var yR=function(J,Z){let $;if(Z!==void 0)$=Z.prototype;if(!G1.isObject($))$=J[kR].URLSearchParams.prototype;return Object.create($)},w0=FZ(),G1=WZ(),vd=hR(),OR=G1.newObjectInRealm,I1=G1.implSymbol,kR=G1.ctorRegistrySymbol;bd.is=(J)=>{return G1.isObject(J)&&G1.hasOwn(J,I1)&&J[I1]instanceof g8.implementation};bd.isImpl=(J)=>{return G1.isObject(J)&&J instanceof g8.implementation};bd.convert=(J,Z,{context:$="The provided value"}={})=>{if(bd.is(Z))return G1.implForWrapper(Z);throw new J.TypeError(`${$} is not of type 'URLSearchParams'.`)};bd.createDefaultIterator=(J,Z,$)=>{const Y=J[kR]["URLSearchParams Iterator"],Q=Object.create(Y);return Object.defineProperty(Q,G1.iterInternalSymbol,{value:{target:Z,kind:$,index:0},configurable:!0}),Q};bd.create=(J,Z,$)=>{const X=yR(J);return bd.setup(X,J,Z,$)};bd.createImpl=(J,Z,$)=>{const X=bd.create(J,Z,$);return G1.implForWrapper(X)};bd._internalSetup=(J,Z)=>{};bd.setup=(J,Z,$=[],X={})=>{if(X.wrapper=J,bd._internalSetup(J,Z),Object.defineProperty(J,I1,{value:new g8.implementation(Z,$,X),configurable:!0}),J[I1][G1.wrapperSymbol]=J,g8.init)g8.init(J[I1]);return J};bd.new=(J,Z)=>{const $=yR(J,Z);if(bd._internalSetup($,J),Object.defineProperty($,I1,{value:Object.create(g8.implementation.prototype),configurable:!0}),$[I1][G1.wrapperSymbol]=$,g8.init)g8.init($[I1]);return $[I1]};var xd=new Set(["Window","Worker"]);bd.install=(J,Z)=>{if(!Z.some((Y)=>xd.has(Y)))return;const $=G1.initCtorRegistry(J);class X{constructor(){const Y=[];{let Q=arguments[0];if(Q!==void 0)if(G1.isObject(Q))if(Q[Symbol.iterator]!==void 0)if(!G1.isObject(Q))throw new J.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");else{const K=[],G=Q;for(let F of G){if(!G1.isObject(F))throw new J.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");else{const q=[],W=F;for(let H of W)H=w0.USVString(H,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:J}),q.push(H);F=q}K.push(F)}Q=K}else if(!G1.isObject(Q))throw new J.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");else{const K=Object.create(null);for(let G of Reflect.ownKeys(Q)){const F=Object.getOwnPropertyDescriptor(Q,G);if(F&&F.enumerable){let q=G;q=w0.USVString(q,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:J});let W=Q[G];W=w0.USVString(W,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:J}),K[q]=W}}Q=K}else Q=w0.USVString(Q,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:J});else Q="";Y.push(Q)}return bd.setup(Object.create(new.target.prototype),J,Y)}append(Y,Q){const K=this!==null&&this!==void 0?this:J;if(!bd.is(K))throw new J.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new J.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let F=arguments[0];F=w0.USVString(F,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:J}),G.push(F)}{let F=arguments[1];F=w0.USVString(F,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:J}),G.push(F)}return G1.tryWrapperForImpl(K[I1].append(...G))}delete(Y){const Q=this!==null&&this!==void 0?this:J;if(!bd.is(Q))throw new J.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}{let G=arguments[1];if(G!==void 0)G=w0.USVString(G,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 2",globals:J});K.push(G)}return G1.tryWrapperForImpl(Q[I1].delete(...K))}get(Y){const Q=this!==null&&this!==void 0?this:J;if(!bd.is(Q))throw new J.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}return Q[I1].get(...K)}getAll(Y){const Q=this!==null&&this!==void 0?this:J;if(!bd.is(Q))throw new J.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}return G1.tryWrapperForImpl(Q[I1].getAll(...K))}has(Y){const Q=this!==null&&this!==void 0?this:J;if(!bd.is(Q))throw new J.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const K=[];{let G=arguments[0];G=w0.USVString(G,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:J}),K.push(G)}{let G=arguments[1];if(G!==void 0)G=w0.USVString(G,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 2",globals:J});K.push(G)}return Q[I1].has(...K)}set(Y,Q){const K=this!==null&&this!==void 0?this:J;if(!bd.is(K))throw new J.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new J.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const G=[];{let F=arguments[0];F=w0.USVString(F,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:J}),G.push(F)}{let F=arguments[1];F=w0.USVString(F,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:J}),G.push(F)}return G1.tryWrapperForImpl(K[I1].set(...G))}sort(){const Y=this!==null&&this!==void 0?this:J;if(!bd.is(Y))throw new J.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return G1.tryWrapperForImpl(Y[I1].sort())}toString(){const Y=this!==null&&this!==void 0?this:J;if(!bd.is(Y))throw new J.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return Y[I1].toString()}keys(){if(!bd.is(this))throw new J.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return bd.createDefaultIterator(J,this,"key")}values(){if(!bd.is(this))throw new J.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return bd.createDefaultIterator(J,this,"value")}entries(){if(!bd.is(this))throw new J.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return bd.createDefaultIterator(J,this,"key+value")}forEach(Y){if(!bd.is(this))throw new J.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new J.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");Y=vd.convert(J,Y,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const Q=arguments[1];let K=Array.from(this[I1]),G=0;while(G<K.length){const[F,q]=K[G].map(G1.tryWrapperForImpl);Y.call(Q,q,F,this),K=Array.from(this[I1]),G++}}get size(){const Y=this!==null&&this!==void 0?this:J;if(!bd.is(Y))throw new J.TypeError("'get size' called on an object that is not a valid instance of URLSearchParams.");return Y[I1].size}}Object.defineProperties(X.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},size:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:X.prototype.entries,configurable:!0,writable:!0}}),$["URLSearchParams"]=X,$["URLSearchParams Iterator"]=Object.create($["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),G1.define($["URLSearchParams Iterator"],{next(){const Y=this&&this[G1.iterInternalSymbol];if(!Y)throw new J.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:Q,kind:K,index:G}=Y,F=Array.from(Q[I1]),q=F.length;if(G>=q)return OR(J,{value:void 0,done:!0});const W=F[G];return Y.index=G+1,OR(J,G1.iteratorResult(W.map(G1.tryWrapperForImpl),K))}}),Object.defineProperty(J,"URLSearchParams",{configurable:!0,writable:!0,value:X})};var g8=SR()});var xR=V((ld)=>{var X1=aY(),vR=iY(),pd=tY();ld.implementation=class J{constructor(Z,$){const X=$[0],Y=$[1];let Q=null;if(Y!==void 0){if(Q=X1.basicURLParse(Y),Q===null)throw new TypeError(`Invalid base URL: ${Y}`)}const K=X1.basicURLParse(X,{baseURL:Q});if(K===null)throw new TypeError(`Invalid URL: ${X}`);const G=K.query!==null?K.query:"";this._url=K,this._query=pd.createImpl(Z,[G],{doNotStripQMark:!0}),this._query._url=this}static canParse(Z,$){let X=null;if($!==void 0){if(X=X1.basicURLParse($),X===null)return!1}if(X1.basicURLParse(Z,{baseURL:X})===null)return!1;return!0}get href(){return X1.serializeURL(this._url)}set href(Z){const $=X1.basicURLParse(Z);if($===null)throw new TypeError(`Invalid URL: ${Z}`);this._url=$,this._query._list.splice(0);const{query:X}=$;if(X!==null)this._query._list=vR.parseUrlencodedString(X)}get origin(){return X1.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(Z){X1.basicURLParse(`${Z}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(Z){if(X1.cannotHaveAUsernamePasswordPort(this._url))return;X1.setTheUsername(this._url,Z)}get password(){return this._url.password}set password(Z){if(X1.cannotHaveAUsernamePasswordPort(this._url))return;X1.setThePassword(this._url,Z)}get host(){const Z=this._url;if(Z.host===null)return"";if(Z.port===null)return X1.serializeHost(Z.host);return`${X1.serializeHost(Z.host)}:${X1.serializeInteger(Z.port)}`}set host(Z){if(X1.hasAnOpaquePath(this._url))return;X1.basicURLParse(Z,{url:this._url,stateOverride:"host"})}get hostname(){if(this._url.host===null)return"";return X1.serializeHost(this._url.host)}set hostname(Z){if(X1.hasAnOpaquePath(this._url))return;X1.basicURLParse(Z,{url:this._url,stateOverride:"hostname"})}get port(){if(this._url.port===null)return"";return X1.serializeInteger(this._url.port)}set port(Z){if(X1.cannotHaveAUsernamePasswordPort(this._url))return;if(Z==="")this._url.port=null;else X1.basicURLParse(Z,{url:this._url,stateOverride:"port"})}get pathname(){return X1.serializePath(this._url)}set pathname(Z){if(X1.hasAnOpaquePath(this._url))return;this._url.path=[],X1.basicURLParse(Z,{url:this._url,stateOverride:"path start"})}get search(){if(this._url.query===null||this._url.query==="")return"";return`?${this._url.query}`}set search(Z){const $=this._url;if(Z===""){$.query=null,this._query._list=[],this._potentiallyStripTrailingSpacesFromAnOpaquePath();return}const X=Z[0]==="?"?Z.substring(1):Z;$.query="",X1.basicURLParse(X,{url:$,stateOverride:"query"}),this._query._list=vR.parseUrlencodedString(X)}get searchParams(){return this._query}get hash(){if(this._url.fragment===null||this._url.fragment==="")return"";return`#${this._url.fragment}`}set hash(Z){if(Z===""){this._url.fragment=null,this._potentiallyStripTrailingSpacesFromAnOpaquePath();return}const $=Z[0]==="#"?Z.substring(1):Z;this._url.fragment="",X1.basicURLParse($,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}_potentiallyStripTrailingSpacesFromAnOpaquePath(){if(!X1.hasAnOpaquePath(this._url))return;if(this._url.fragment!==null)return;if(this._url.query!==null)return;this._url.path=this._url.path.replace(/\u0020+$/u,"")}}});var uR=V((nd)=>{var bR=function(J,Z){let $;if(Z!==void 0)$=Z.prototype;if(!S0.isObject($))$=J[id].URL.prototype;return Object.create($)},R0=FZ(),S0=WZ(),t=S0.implSymbol,id=S0.ctorRegistrySymbol;nd.is=(J)=>{return S0.isObject(J)&&S0.hasOwn(J,t)&&J[t]instanceof Q8.implementation};nd.isImpl=(J)=>{return S0.isObject(J)&&J instanceof Q8.implementation};nd.convert=(J,Z,{context:$="The provided value"}={})=>{if(nd.is(Z))return S0.implForWrapper(Z);throw new J.TypeError(`${$} is not of type 'URL'.`)};nd.create=(J,Z,$)=>{const X=bR(J);return nd.setup(X,J,Z,$)};nd.createImpl=(J,Z,$)=>{const X=nd.create(J,Z,$);return S0.implForWrapper(X)};nd._internalSetup=(J,Z)=>{};nd.setup=(J,Z,$=[],X={})=>{if(X.wrapper=J,nd._internalSetup(J,Z),Object.defineProperty(J,t,{value:new Q8.implementation(Z,$,X),configurable:!0}),J[t][S0.wrapperSymbol]=J,Q8.init)Q8.init(J[t]);return J};nd.new=(J,Z)=>{const $=bR(J,Z);if(nd._internalSetup($,J),Object.defineProperty($,t,{value:Object.create(Q8.implementation.prototype),configurable:!0}),$[t][S0.wrapperSymbol]=$,Q8.init)Q8.init($[t]);return $[t]};var sd=new Set(["Window","Worker"]);nd.install=(J,Z)=>{if(!Z.some((Y)=>sd.has(Y)))return;const $=S0.initCtorRegistry(J);class X{constructor(Y){if(arguments.length<1)throw new J.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const Q=[];{let K=arguments[0];K=R0.USVString(K,{context:"Failed to construct 'URL': parameter 1",globals:J}),Q.push(K)}{let K=arguments[1];if(K!==void 0)K=R0.USVString(K,{context:"Failed to construct 'URL': parameter 2",globals:J});Q.push(K)}return nd.setup(Object.create(new.target.prototype),J,Q)}toJSON(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return Y[t].toJSON()}get href(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get href' called on an object that is not a valid instance of URL.");return Y[t].href}set href(Y){const Q=this!==null&&this!==void 0?this:J;if(!nd.is(Q))throw new J.TypeError("'set href' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:J}),Q[t].href=Y}toString(){const Y=this;if(!nd.is(Y))throw new J.TypeError("'toString' called on an object that is not a valid instance of URL.");return Y[t].href}get origin(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get origin' called on an object that is not a valid instance of URL.");return Y[t].origin}get protocol(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return Y[t].protocol}set protocol(Y){const Q=this!==null&&this!==void 0?this:J;if(!nd.is(Q))throw new J.TypeError("'set protocol' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:J}),Q[t].protocol=Y}get username(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get username' called on an object that is not a valid instance of URL.");return Y[t].username}set username(Y){const Q=this!==null&&this!==void 0?this:J;if(!nd.is(Q))throw new J.TypeError("'set username' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:J}),Q[t].username=Y}get password(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get password' called on an object that is not a valid instance of URL.");return Y[t].password}set password(Y){const Q=this!==null&&this!==void 0?this:J;if(!nd.is(Q))throw new J.TypeError("'set password' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:J}),Q[t].password=Y}get host(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get host' called on an object that is not a valid instance of URL.");return Y[t].host}set host(Y){const Q=this!==null&&this!==void 0?this:J;if(!nd.is(Q))throw new J.TypeError("'set host' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:J}),Q[t].host=Y}get hostname(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return Y[t].hostname}set hostname(Y){const Q=this!==null&&this!==void 0?this:J;if(!nd.is(Q))throw new J.TypeError("'set hostname' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:J}),Q[t].hostname=Y}get port(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get port' called on an object that is not a valid instance of URL.");return Y[t].port}set port(Y){const Q=this!==null&&this!==void 0?this:J;if(!nd.is(Q))throw new J.TypeError("'set port' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:J}),Q[t].port=Y}get pathname(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return Y[t].pathname}set pathname(Y){const Q=this!==null&&this!==void 0?this:J;if(!nd.is(Q))throw new J.TypeError("'set pathname' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:J}),Q[t].pathname=Y}get search(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get search' called on an object that is not a valid instance of URL.");return Y[t].search}set search(Y){const Q=this!==null&&this!==void 0?this:J;if(!nd.is(Q))throw new J.TypeError("'set search' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:J}),Q[t].search=Y}get searchParams(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return S0.getSameObject(this,"searchParams",()=>{return S0.tryWrapperForImpl(Y[t].searchParams)})}get hash(){const Y=this!==null&&this!==void 0?this:J;if(!nd.is(Y))throw new J.TypeError("'get hash' called on an object that is not a valid instance of URL.");return Y[t].hash}set hash(Y){const Q=this!==null&&this!==void 0?this:J;if(!nd.is(Q))throw new J.TypeError("'set hash' called on an object that is not a valid instance of URL.");Y=R0.USVString(Y,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:J}),Q[t].hash=Y}static canParse(Y){if(arguments.length<1)throw new J.TypeError(`Failed to execute 'canParse' on 'URL': 1 argument required, but only ${arguments.length} present.`);const Q=[];{let K=arguments[0];K=R0.USVString(K,{context:"Failed to execute 'canParse' on 'URL': parameter 1",globals:J}),Q.push(K)}{let K=arguments[1];if(K!==void 0)K=R0.USVString(K,{context:"Failed to execute 'canParse' on 'URL': parameter 2",globals:J});Q.push(K)}return Q8.implementation.canParse(...Q)}}if(Object.defineProperties(X.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),Object.defineProperties(X,{canParse:{enumerable:!0}}),$["URL"]=X,Object.defineProperty(J,"URL",{configurable:!0,writable:!0,value:X}),Z.includes("Window"))Object.defineProperty(J,"webkitURL",{configurable:!0,writable:!0,value:X})};var Q8=xR()});var dR=V((Xc)=>{var Zc=uR(),$c=tY();Xc.URL=Zc;Xc.URLSearchParams=$c});var pR=V((Fc)=>{var{URL:Kc,URLSearchParams:Gc}=dR(),V6=aY(),cR=VZ(),LZ={Array,Object,Promise,String,TypeError};Kc.install(LZ,["Window"]);Gc.install(LZ,["Window"]);Fc.URL=LZ.URL;Fc.URLSearchParams=LZ.URLSearchParams;Fc.parseURL=V6.parseURL;Fc.basicURLParse=V6.basicURLParse;Fc.serializeURL=V6.serializeURL;Fc.serializePath=V6.serializePath;Fc.serializeHost=V6.serializeHost;Fc.serializeInteger=V6.serializeInteger;Fc.serializeURLOrigin=V6.serializeURLOrigin;Fc.setTheUsername=V6.setTheUsername;Fc.setThePassword=V6.setThePassword;Fc.cannotHaveAUsernamePasswordPort=V6.cannotHaveAUsernamePasswordPort;Fc.hasAnOpaquePath=V6.hasAnOpaquePath;Fc.percentDecodeString=cR.percentDecodeString;Fc.percentDecodeBytes=cR.percentDecodeBytes});var aR=V((t0)=>{var Ec=function(J,Z){var $,X;const Y=J.clone(),Q=($=Z===null||Z===void 0?void 0:Z.replacementString)!==null&&$!==void 0?$:"_credentials_",K=(X=Z===null||Z===void 0?void 0:Z.redactUsernames)!==null&&X!==void 0?X:!0;if((Y.username||Y.password)&&K)Y.username=Q,Y.password="";else if(Y.password)Y.password=Q;if(Y.searchParams.has("authMechanismProperties")){const G=new lR.CommaAndColonSeparatedRecord(Y.searchParams.get("authMechanismProperties"));if(G.get("AWS_SESSION_TOKEN"))G.set("AWS_SESSION_TOKEN",Q),Y.searchParams.set("authMechanismProperties",G.toString())}if(Y.searchParams.has("tlsCertificateKeyFilePassword"))Y.searchParams.set("tlsCertificateKeyFilePassword",Q);if(Y.searchParams.has("proxyUsername")&&K)Y.searchParams.set("proxyUsername",Q);if(Y.searchParams.has("proxyPassword"))Y.searchParams.set("proxyPassword",Q);return Y},Cc=function(J,Z){var $,X;const Y=($=Z===null||Z===void 0?void 0:Z.replacementString)!==null&&$!==void 0?$:"<credentials>",Q=(X=Z===null||Z===void 0?void 0:Z.redactUsernames)!==null&&X!==void 0?X:!0;let K;try{K=new lR.default(J)}catch(q){}if(K)return Z={...Z,replacementString:"___credentials___"},K.redact(Z).toString().replace(/___credentials___/g,Y);const G=Y,F=[(q)=>q.replace(Q?/(\/\/)(.*)(@)/g:/(\/\/[^@]*:)(.*)(@)/g,`\$1${G}\$3`),(q)=>q.replace(/(AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,`\$1${G}`),(q)=>q.replace(/(tlsCertificateKeyFilePassword=)([^&]+)/gi,`\$1${G}`),(q)=>Q?q.replace(/(proxyUsername=)([^&]+)/gi,`\$1${G}`):q,(q)=>q.replace(/(proxyPassword=)([^&]+)/gi,`\$1${G}`)];for(let q of F)J=q(J);return J},Ic=t0&&t0.__createBinding||(Object.create?function(J,Z,$,X){if(X===void 0)X=$;var Y=Object.getOwnPropertyDescriptor(Z,$);if(!Y||("get"in Y?!Z.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return Z[$]}};Object.defineProperty(J,X,Y)}:function(J,Z,$,X){if(X===void 0)X=$;J[X]=Z[$]}),Nc=t0&&t0.__setModuleDefault||(Object.create?function(J,Z){Object.defineProperty(J,"default",{enumerable:!0,value:Z})}:function(J,Z){J.default=Z}),Bc=t0&&t0.__importStar||function(J){if(J&&J.__esModule)return J;var Z={};if(J!=null){for(var $ in J)if($!=="default"&&Object.prototype.hasOwnProperty.call(J,$))Ic(Z,J,$)}return Nc(Z,J),Z};Object.defineProperty(t0,"__esModule",{value:!0});t0.redactConnectionString=t0.redactValidConnectionString=void 0;var lR=Bc(oY());t0.redactValidConnectionString=Ec;t0.redactConnectionString=Cc});var oY=V((JQ)=>{var Sc=function(J){return J.startsWith("mongodb://")||J.startsWith("mongodb+srv://")},kc=function(J){return class Z extends J{append($,X){return super.append(this._normalizeKey($),X)}delete($){return super.delete(this._normalizeKey($))}get($){return super.get(this._normalizeKey($))}getAll($){return super.getAll(this._normalizeKey($))}has($){return super.has(this._normalizeKey($))}set($,X){return super.set(this._normalizeKey($),X)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey($){return eY.prototype._normalizeKey.call(this,$)}}};Object.defineProperty(JQ,"__esModule",{value:!0});JQ.CommaAndColonSeparatedRecord=JQ.ConnectionString=JQ.redactConnectionString=void 0;var hc=pR(),iR=aR();Object.defineProperty(JQ,"redactConnectionString",{enumerable:!0,get:function(){return iR.redactConnectionString}});var J9="__this_is_a_placeholder__",Oc=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:@]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class eY extends Map{delete(J){return super.delete(this._normalizeKey(J))}get(J){return super.get(this._normalizeKey(J))}has(J){return super.has(this._normalizeKey(J))}set(J,Z){return super.set(this._normalizeKey(J),Z)}_normalizeKey(J){J=`${J}`;for(let Z of this.keys())if(Z.toLowerCase()===J.toLowerCase()){J=Z;break}return J}}class sR extends hc.URL{}class y6 extends Error{get name(){return"MongoParseError"}}class Z9 extends sR{constructor(J,Z={}){var $;const{looseValidation:X}=Z;if(!X&&!Sc(J))throw new y6('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');const Y=J.match(Oc);if(!Y)throw new y6(`Invalid connection string "${J}"`);const{protocol:Q,username:K,password:G,hosts:F,rest:q}=($=Y.groups)!==null&&$!==void 0?$:{};if(!X){if(!Q||!F)throw new y6(`Protocol and host list are required in "${J}"`);try{decodeURIComponent(K!==null&&K!==void 0?K:""),decodeURIComponent(G!==null&&G!==void 0?G:"")}catch(U){throw new y6(U.message)}const H=/[:/?#[\]@]/gi;if(K===null||K===void 0?void 0:K.match(H))throw new y6(`Username contains unescaped characters ${K}`);if(!K||!G){const U=J.replace(`${Q}://`,"");if(U.startsWith("@")||U.startsWith(":"))throw new y6("URI contained empty userinfo section")}if(G===null||G===void 0?void 0:G.match(H))throw new y6("Password contains unescaped characters")}let W="";if(typeof K==="string")W+=K;if(typeof G==="string")W+=`:${G}`;if(W)W+="@";try{super(`${Q.toLowerCase()}://${W}${J9}${q}`)}catch(H){if(X)new Z9(J,{...Z,looseValidation:!1});if(typeof H.message==="string")H.message=H.message.replace(J9,F);throw H}if(this._hosts=F.split(","),!X){if(this.isSRV&&this.hosts.length!==1)throw new y6("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((H)=>H.includes(":")))throw new y6("mongodb+srv URI cannot have port number")}if(!this.pathname)this.pathname="/";Object.setPrototypeOf(this.searchParams,kc(this.searchParams.constructor).prototype)}get host(){return J9}set host(J){throw new Error("No single host for connection string")}get hostname(){return J9}set hostname(J){throw new Error("No single host for connection string")}get port(){return""}set port(J){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(J){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(J){this._hosts=J}toString(){return super.toString().replace(J9,this.hosts.join(","))}clone(){return new Z9(this.toString(),{looseValidation:!0})}redact(J){return iR.redactValidConnectionString(this,J)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:J,origin:Z,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:F,hash:q}=this;return{href:J,origin:Z,protocol:$,username:X,password:Y,hosts:Q,pathname:K,search:G,searchParams:F,hash:q}}}JQ.ConnectionString=Z9;class nR extends eY{constructor(J){super();for(let Z of(J!==null&&J!==void 0?J:"").split(",")){if(!Z)continue;const $=Z.indexOf(":");if($===-1)this.set(Z,"");else this.set(Z.slice(0,$),Z.slice($+1))}}toString(){return[...this].map((J)=>J.join(":")).join(",")}}JQ.CommaAndColonSeparatedRecord=nR;JQ.default=Z9});var rR=V((s01,fc)=>{fc.exports={name:"mongodb",version:"6.3.0",description:"The official MongoDB driver for Node.js",main:"lib/index.js",files:["lib","src","etc/prepare.js","mongodb.d.ts","tsconfig.json"],types:"mongodb.d.ts",repository:{type:"git",url:"git@github.com:mongodb/node-mongodb-native.git"},keywords:["mongodb","driver","official"],author:{name:"The MongoDB NodeJS Team",email:"dbx-node@mongodb.com"},dependencies:{"@mongodb-js/saslprep":"^1.1.0",bson:"^6.2.0","mongodb-connection-string-url":"^3.0.0"},peerDependencies:{"@aws-sdk/credential-providers":"^3.188.0","@mongodb-js/zstd":"^1.1.0","gcp-metadata":"^5.2.0",kerberos:"^2.0.1","mongodb-client-encryption":">=6.0.0 <7",snappy:"^7.2.2",socks:"^2.7.1"},peerDependenciesMeta:{"@aws-sdk/credential-providers":{optional:!0},"@mongodb-js/zstd":{optional:!0},kerberos:{optional:!0},snappy:{optional:!0},"mongodb-client-encryption":{optional:!0},"gcp-metadata":{optional:!0},socks:{optional:!0}},devDependencies:{"@iarna/toml":"^2.2.5","@istanbuljs/nyc-config-typescript":"^1.0.2","@microsoft/api-extractor":"^7.36.4","@microsoft/tsdoc-config":"^0.16.2","@mongodb-js/zstd":"^1.1.0","@octokit/core":"^4.2.4","@types/chai":"^4.3.5","@types/chai-subset":"^1.3.3","@types/express":"^4.17.17","@types/kerberos":"^1.1.2","@types/mocha":"^10.0.1","@types/node":"^20.5.9","@types/saslprep":"^1.0.1","@types/semver":"^7.5.0","@types/sinon":"^10.0.16","@types/sinon-chai":"^3.2.9","@types/whatwg-url":"^11.0.0","@typescript-eslint/eslint-plugin":"^5.62.0","@typescript-eslint/parser":"^5.62.0",chai:"^4.3.7","chai-subset":"^1.6.0",chalk:"^4.1.2",eslint:"^8.48.0","eslint-config-prettier":"^8.10.0","eslint-plugin-import":"^2.28.1","eslint-plugin-prettier":"^4.2.1","eslint-plugin-simple-import-sort":"^10.0.0","eslint-plugin-tsdoc":"^0.2.17","eslint-plugin-unused-imports":"^2.0.0",express:"^4.18.2","gcp-metadata":"^5.2.0","js-yaml":"^4.1.0",mocha:"^10.2.0","mocha-sinon":"^2.1.2","mongodb-client-encryption":"^6.0.0","mongodb-legacy":"^6.0.0",nyc:"^15.1.0",prettier:"^2.8.8",semver:"^7.5.4",sinon:"^15.2.0","sinon-chai":"^3.7.0",snappy:"^7.2.2",socks:"^2.7.1","source-map-support":"^0.5.21","ts-node":"^10.9.1",tsd:"^0.28.1",typescript:"^5.0.4","typescript-cached-transpile":"^0.0.6","v8-heapsnapshot":"^1.3.1",yargs:"^17.7.2"},license:"Apache-2.0",engines:{node:">=16.20.1"},bugs:{url:"https://jira.mongodb.org/projects/NODE/issues/"},homepage:"https://github.com/mongodb/node-mongodb-native",scripts:{"build:evergreen":"node .evergreen/generate_evergreen_tasks.js","build:ts":"node ./node_modules/typescript/bin/tsc","build:dts":"npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs && eslint mongodb.d.ts --fix","build:docs":"./etc/docs/build.ts","build:typedoc":"typedoc","build:nightly":"node ./.github/scripts/nightly.mjs","check:bench":"node test/benchmarks/driverBench","check:coverage":"nyc npm run test:all","check:integration-coverage":"nyc npm run check:test","check:lambda":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/handler.test.js","check:lambda:aws":"mocha --config test/mocha_lambda.json test/integration/node-specific/examples/aws_handler.test.js","check:lint":"npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd","check:eslint":"eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test","check:tsd":"tsd --version && tsd","check:dependencies":"mocha test/action/dependency.test.ts","check:dts":"node ./node_modules/typescript/bin/tsc --noEmit mongodb.d.ts && tsd","check:search-indexes":"nyc mocha --config test/mocha_mongodb.json test/manual/search-index-management.prose.test.ts","check:test":"mocha --config test/mocha_mongodb.json test/integration","check:unit":"mocha test/unit","check:ts":"node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit","check:atlas":"mocha --config test/manual/mocharc.json test/manual/atlas_connectivity.test.js","check:drivers-atlas-testing":"mocha --config test/mocha_mongodb.json test/atlas/drivers_atlas_testing.test.ts","check:adl":"mocha --config test/mocha_mongodb.json test/manual/atlas-data-lake-testing","check:aws":"nyc mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_aws.test.ts","check:oidc":"mocha --config test/mocha_mongodb.json test/manual/mongodb_oidc.prose.test.ts","check:oidc-azure":"mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_oidc_azure.prose.test.ts","check:ocsp":"mocha --config test/manual/mocharc.json test/manual/ocsp_support.test.js","check:kerberos":"nyc mocha --config test/manual/mocharc.json test/manual/kerberos.test.ts","check:tls":"mocha --config test/manual/mocharc.json test/manual/tls_support.test.ts","check:ldap":"nyc mocha --config test/manual/mocharc.json test/manual/ldap.test.js","check:socks5":"mocha --config test/manual/mocharc.json test/manual/socks5.test.ts","check:csfle":"mocha --config test/mocha_mongodb.json test/integration/client-side-encryption","check:snappy":"mocha test/unit/assorted/snappy.test.js","fix:eslint":"npm run check:eslint -- --fix",prepare:"node etc/prepare.js","preview:docs":"ts-node etc/docs/preview.ts",test:"npm run check:lint && npm run test:all","test:all":"npm run check:unit && npm run check:test","update:docs":"npm run build:docs -- --yes"},tsd:{directory:"test/types",compilerOptions:{strict:!0,target:"esnext",module:"commonjs",moduleResolution:"node"}}}});var $Q=V((ZD)=>{var vc=function(J){const Z=new ZQ(512),{appName:$=""}=J;if($.length>0){const W=Buffer.byteLength($,"utf8")<=128?J.appName:Buffer.from($,"utf8").subarray(0,128).toString("utf8");Z.ifItFitsItSits("application",{name:W})}const{name:X="",version:Y="",platform:Q=""}=J.driverInfo,K={name:X.length>0?`nodejs|${X}`:"nodejs",version:Y.length>0?`${eR}|${Y}`:eR};if(!Z.ifItFitsItSits("driver",K))throw new oR.MongoInvalidArgumentError("Unable to include driverInfo name and version, metadata cannot exceed 512 bytes");let G=xc();if(Q.length>0)G=`${G}|${Q}`;if(!Z.ifItFitsItSits("platform",G))throw new oR.MongoInvalidArgumentError("Unable to include driverInfo platform, metadata cannot exceed 512 bytes");const F=(new Map()).set("name",wZ.platform).set("architecture",wZ.arch).set("version",$9.release()).set("type",$9.type());if(!Z.ifItFitsItSits("os",F))for(let W of F.keys()){if(F.delete(W),F.size===0)break;if(Z.ifItFitsItSits("os",F))break}const q=JD();if(q!=null){if(!Z.ifItFitsItSits("env",q))for(let W of q.keys()){if(q.delete(W),q.size===0)break;if(Z.ifItFitsItSits("env",q))break}}return Z.toObject()},JD=function(){const{AWS_EXECUTION_ENV:J="",AWS_LAMBDA_RUNTIME_API:Z="",FUNCTIONS_WORKER_RUNTIME:$="",K_SERVICE:X="",FUNCTION_NAME:Y="",VERCEL:Q="",AWS_LAMBDA_FUNCTION_MEMORY_SIZE:K="",AWS_REGION:G="",FUNCTION_MEMORY_MB:F="",FUNCTION_REGION:q="",FUNCTION_TIMEOUT_SEC:W="",VERCEL_REGION:H=""}=wZ.env,U=J.startsWith("AWS_Lambda_")||Z.length>0,j=$.length>0,z=X.length>0||Y.length>0,A=Q.length>0,T=new Map;if(A&&!(j||z)){if(H.length>0)T.set("region",H);return T.set("name","vercel"),T}if(U&&!(j||z||A)){if(G.length>0)T.set("region",G);if(K.length>0&&Number.isInteger(+K))T.set("memory_mb",new P7.Int32(K));return T.set("name","aws.lambda"),T}if(j&&!(z||U||A))return T.set("name","azure.func"),T;if(z&&!(j||U||A)){if(q.length>0)T.set("region",q);if(F.length>0&&Number.isInteger(+F))T.set("memory_mb",new P7.Int32(F));if(W.length>0&&Number.isInteger(+W))T.set("timeout_sec",new P7.Int32(W));return T.set("name","gcp.func"),T}return null},xc=function(){if("Deno"in globalThis)return`Deno v${typeof Deno?.version?.deno==="string"?Deno?.version?.deno:"0.0.0-unknown"}, ${$9.endianness()}`;if("Bun"in globalThis)return`Bun v${typeof Bun?.version==="string"?Bun?.version:"0.0.0-unknown"}, ${$9.endianness()}`;return`Node.js ${wZ.version}, ${$9.endianness()}`};Object.defineProperty(ZD,"__esModule",{value:!0});ZD.getFAASEnv=ZD.makeClientMetadata=ZD.LimitedSizeDocument=void 0;var $9=import.meta.require("os"),wZ=import.meta.require("process"),P7=H1(),oR=E(),eR=rR().version;class ZQ{constructor(J){this.maxSize=J,this.document=new Map,this.documentSize=5}ifItFitsItSits(J,Z){const $=P7.BSON.serialize((new Map()).set(J,Z)).byteLength-5;if($+this.documentSize>this.maxSize)return!1;return this.documentSize+=$,this.document.set(J,Z),!0}toObject(){return P7.BSON.deserialize(P7.BSON.serialize(this.document),{promoteLongs:!1,promoteBuffers:!1,promoteValues:!1,useBigInt64:!1})}}ZD.LimitedSizeDocument=ZQ;ZD.makeClientMetadata=vc;ZD.getFAASEnv=JD});var Y9=V((WD)=>{Object.defineProperty(WD,"__esModule",{value:!0});WD.OpCompressedRequest=WD.OpMsgResponse=WD.OpMsgRequest=WD.OpQueryResponse=WD.OpQueryRequest=void 0;var m8=H1(),X9=E(),mc=k1(),XQ=N7(),T7=h8(),I7=0,uc=2,dc=4,cc=8,pc=16,lc=32,ac=64,ic=128,sc=1,nc=2,tc=4,rc=8;class QQ{constructor(J,Z,$){this.databaseName=J,this.query=Z;const X=`${J}.\$cmd`;if(typeof J!=="string")throw new X9.MongoRuntimeError("Database name must be a string for a query");if(Z==null)throw new X9.MongoRuntimeError("A query document must be specified for query");if(X.indexOf("\0")!==-1)throw new X9.MongoRuntimeError("Namespace cannot contain a null character");this.ns=X,this.numberToSkip=$.numberToSkip||0,this.numberToReturn=$.numberToReturn||0,this.returnFieldSelector=$.returnFieldSelector||void 0,this.requestId=$.requestId??QQ.getRequestId(),this.pre32Limit=$.pre32Limit,this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.batchSize=this.numberToReturn,this.tailable=!1,this.secondaryOk=typeof $.secondaryOk==="boolean"?$.secondaryOk:!1,this.oplogReplay=!1,this.noCursorTimeout=!1,this.awaitData=!1,this.exhaust=!1,this.partial=!1}incRequestId(){this.requestId=I7++}nextRequestId(){return I7+1}static getRequestId(){return++I7}toBin(){const J=[];let Z=null,$=0;if(this.tailable)$|=uc;if(this.secondaryOk)$|=dc;if(this.oplogReplay)$|=cc;if(this.noCursorTimeout)$|=pc;if(this.awaitData)$|=lc;if(this.exhaust)$|=ac;if(this.partial)$|=ic;if(this.batchSize!==this.numberToReturn)this.numberToReturn=this.batchSize;const X=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);J.push(X);const Y=m8.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});if(J.push(Y),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0)Z=m8.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),J.push(Z);const Q=X.length+Y.length+(Z?Z.length:0);let K=4;return X[3]=Q>>24&255,X[2]=Q>>16&255,X[1]=Q>>8&255,X[0]=Q&255,X[K+3]=this.requestId>>24&255,X[K+2]=this.requestId>>16&255,X[K+1]=this.requestId>>8&255,X[K]=this.requestId&255,K=K+4,X[K+3]=0>>24&255,X[K+2]=0>>16&255,X[K+1]=0>>8&255,X[K]=0&255,K=K+4,X[K+3]=T7.OP_QUERY>>24&255,X[K+2]=T7.OP_QUERY>>16&255,X[K+1]=T7.OP_QUERY>>8&255,X[K]=T7.OP_QUERY&255,K=K+4,X[K+3]=$>>24&255,X[K+2]=$>>16&255,X[K+1]=$>>8&255,X[K]=$&255,K=K+4,K=K+X.write(this.ns,K,"utf8")+1,X[K-1]=0,X[K+3]=this.numberToSkip>>24&255,X[K+2]=this.numberToSkip>>16&255,X[K+1]=this.numberToSkip>>8&255,X[K]=this.numberToSkip&255,K=K+4,X[K+3]=this.numberToReturn>>24&255,X[K+2]=this.numberToReturn>>16&255,X[K+1]=this.numberToReturn>>8&255,X[K]=this.numberToReturn&255,K=K+4,J}}WD.OpQueryRequest=QQ;class YD{constructor(J,Z,$,X){this.documents=new Array(0),this.parsed=!1,this.raw=J,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=Z.length,this.requestId=Z.requestId,this.responseTo=Z.responseTo,this.opCode=Z.opCode,this.fromCompressed=Z.fromCompressed,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1}isParsed(){return this.parsed}parse(J){if(this.parsed)return;J=J??{};const Z=J.raw||!1,$=J.documentsReturnedIn||null,X=J.useBigInt64??this.opts.useBigInt64,Y=J.promoteLongs??this.opts.promoteLongs,Q=J.promoteValues??this.opts.promoteValues,K=J.promoteBuffers??this.opts.promoteBuffers,G=J.bsonRegExp??this.opts.bsonRegExp;let F;const q={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G};this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new m8.Long(this.data.readInt32LE(4),this.data.readInt32LE(8)),this.startingFrom=this.data.readInt32LE(12),this.numberReturned=this.data.readInt32LE(16),this.documents=new Array(this.numberReturned),this.cursorNotFound=(this.responseFlags&sc)!==0,this.queryFailure=(this.responseFlags&nc)!==0,this.shardConfigStale=(this.responseFlags&tc)!==0,this.awaitCapable=(this.responseFlags&rc)!==0;for(let W=0;W<this.numberReturned;W++){if(F=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,Z)this.documents[W]=this.data.slice(this.index,this.index+F);else this.documents[W]=m8.deserialize(this.data.slice(this.index,this.index+F),q);this.index=this.index+F}if(this.documents.length===1&&$!=null&&Z){const W={};W[$]=!0,q.fieldsAsRaw=W;const H=m8.deserialize(this.documents[0],q);this.documents=[H]}this.parsed=!0}}WD.OpQueryResponse=YD;var QD=1,KD=2,GD=1<<16;class RZ{constructor(J,Z,$){if(this.databaseName=J,this.command=Z,this.options=$,Z==null)throw new X9.MongoInvalidArgumentError("Query document must be specified for query");if(this.command.$db=J,$.readPreference&&$.readPreference.mode!==mc.ReadPreference.PRIMARY)this.command.$readPreference=$.readPreference.toJSON();this.options=$??{},this.requestId=$.requestId?$.requestId:RZ.getRequestId(),this.serializeFunctions=typeof $.serializeFunctions==="boolean"?$.serializeFunctions:!1,this.ignoreUndefined=typeof $.ignoreUndefined==="boolean"?$.ignoreUndefined:!1,this.checkKeys=typeof $.checkKeys==="boolean"?$.checkKeys:!1,this.maxBsonSize=$.maxBsonSize||16777216,this.checksumPresent=!1,this.moreToCome=$.moreToCome||!1,this.exhaustAllowed=typeof $.exhaustAllowed==="boolean"?$.exhaustAllowed:!1}toBin(){const J=[];let Z=0;if(this.checksumPresent)Z|=QD;if(this.moreToCome)Z|=KD;if(this.exhaustAllowed)Z|=GD;const $=Buffer.alloc(20);J.push($);let X=$.length;const Y=this.command;return X+=this.makeDocumentSegment(J,Y),$.writeInt32LE(X,0),$.writeInt32LE(this.requestId,4),$.writeInt32LE(0,8),$.writeInt32LE(T7.OP_MSG,12),$.writeUInt32LE(Z,16),J}makeDocumentSegment(J,Z){const $=Buffer.alloc(1);$[0]=0;const X=this.serializeBson(Z);return J.push($),J.push(X),$.length+X.length}serializeBson(J){return m8.serialize(J,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return I7=I7+1&2147483647,I7}}WD.OpMsgRequest=RZ;class FD{constructor(J,Z,$,X){this.parsed=!1,this.raw=J,this.data=$,this.opts=X??{useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=Z.length,this.requestId=Z.requestId,this.responseTo=Z.responseTo,this.opCode=Z.opCode,this.fromCompressed=Z.fromCompressed,this.responseFlags=$.readInt32LE(0),this.checksumPresent=(this.responseFlags&QD)!==0,this.moreToCome=(this.responseFlags&KD)!==0,this.exhaustAllowed=(this.responseFlags&GD)!==0,this.useBigInt64=typeof this.opts.useBigInt64==="boolean"?this.opts.useBigInt64:!1,this.promoteLongs=typeof this.opts.promoteLongs==="boolean"?this.opts.promoteLongs:!0,this.promoteValues=typeof this.opts.promoteValues==="boolean"?this.opts.promoteValues:!0,this.promoteBuffers=typeof this.opts.promoteBuffers==="boolean"?this.opts.promoteBuffers:!1,this.bsonRegExp=typeof this.opts.bsonRegExp==="boolean"?this.opts.bsonRegExp:!1,this.documents=[]}isParsed(){return this.parsed}parse(J){if(this.parsed)return;J=J??{},this.index=4;const Z=J.raw||!1,$=J.documentsReturnedIn||null,X=J.useBigInt64??this.opts.useBigInt64,Y=J.promoteLongs??this.opts.promoteLongs,Q=J.promoteValues??this.opts.promoteValues,K=J.promoteBuffers??this.opts.promoteBuffers,G=J.bsonRegExp??this.opts.bsonRegExp,F=this.parseBsonSerializationOptions(J),q={useBigInt64:X,promoteLongs:Y,promoteValues:Q,promoteBuffers:K,bsonRegExp:G,validation:F};while(this.index<this.data.length){const W=this.data.readUInt8(this.index++);if(W===0){const H=this.data.readUInt32LE(this.index),U=this.data.slice(this.index,this.index+H);this.documents.push(Z?U:m8.deserialize(U,q)),this.index+=H}else if(W===1)throw new X9.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol")}if(this.documents.length===1&&$!=null&&Z){const W={};W[$]=!0,q.fieldsAsRaw=W;const H=m8.deserialize(this.documents[0],q);this.documents=[H]}this.parsed=!0}parseBsonSerializationOptions({enableUtf8Validation:J}){if(J===!1)return{utf8:!1};return{utf8:{writeErrors:!1}}}}WD.OpMsgResponse=FD;var YQ=16,XD=9;class qD{constructor(J,Z){this.command=J,this.options=Z}static canCompress(J){const Z=J instanceof RZ?J.command:J.query,$=Object.keys(Z)[0];return!XQ.uncompressibleCommands.has($)}async toBin(){const J=Buffer.concat(this.command.toBin()),Z=J.slice(YQ),$=J.readInt32LE(12),X=await XQ.compress(this.options,Z),Y=Buffer.alloc(YQ);Y.writeInt32LE(YQ+XD+X.length,0),Y.writeInt32LE(this.command.requestId,4),Y.writeInt32LE(0,8),Y.writeInt32LE(T7.OP_COMPRESSED,12);const Q=Buffer.alloc(XD);return Q.writeInt32LE($,0),Q.writeInt32LE(Z.length,4),Q.writeUInt8(XQ.Compressor[this.options.agreedCompressor],8),[Y,Q,X]}}WD.OpCompressedRequest=qD});var N7=V((AD)=>{var UD=function(){if(I4==null){const J=zD.getSnappy();if("kModuleError"in J)throw J.kModuleError;I4=J}return I4};async function Kp(J,Z){const $={};switch(J.agreedCompressor){case"snappy":return I4??=UD(),I4.compress(Z);case"zstd":{if(jD(),"kModuleError"in d8)throw d8.kModuleError;return d8.compress(Z,Xp)}case"zlib":{if(J.zlibCompressionLevel)$.level=J.zlibCompressionLevel;return Qp(Z,$)}default:throw new GQ.MongoInvalidArgumentError(`Unknown compressor ${J.agreedCompressor} failed to compress`)}}async function MD(J,Z){if(J!==AD.Compressor.snappy&&J!==AD.Compressor.zstd&&J!==AD.Compressor.zlib&&J!==AD.Compressor.none)throw new GQ.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${J})`);switch(J){case AD.Compressor.snappy:return I4??=UD(),I4.uncompress(Z,{asBuffer:!0});case AD.Compressor.zstd:{if(jD(),"kModuleError"in d8)throw d8.kModuleError;return d8.decompress(Z)}case AD.Compressor.zlib:return Yp(Z);default:return Z}}var jD=function(){if(!d8)d8=zD.getZstdLibrary()};async function Gp(J,Z){const X=await(Z.agreedCompressor==="none"||!B7.OpCompressedRequest.canCompress(J)?J:new B7.OpCompressedRequest(J,{agreedCompressor:Z.agreedCompressor??"none",zlibCompressionLevel:Z.zlibCompressionLevel??0})).toBin();return Buffer.concat(X)}async function Fp(J){const Z={length:J.readInt32LE(0),requestId:J.readInt32LE(4),responseTo:J.readInt32LE(8),opCode:J.readInt32LE(12)};if(Z.opCode!==KQ.OP_COMPRESSED){const G=Z.opCode===KQ.OP_MSG?B7.OpMsgResponse:B7.OpQueryResponse,F=J.subarray(Q9);return new G(J,Z,F)}const $={...Z,fromCompressed:!0,opCode:J.readInt32LE(Q9),length:J.readInt32LE(Q9+4)},X=J[Q9+8],Y=J.slice(Q9+9),Q=$.opCode===KQ.OP_MSG?B7.OpMsgResponse:B7.OpQueryResponse,K=await MD(X,Y);if(K.length!==$.length)throw new GQ.MongoDecompressionError("Message body and message header must be the same length");return new Q(J,$,K)}Object.defineProperty(AD,"__esModule",{value:!0});AD.decompressResponse=AD.compressCommand=AD.decompress=AD.compress=AD.uncompressibleCommands=AD.Compressor=void 0;var VD=import.meta.require("util"),DZ=import.meta.require("zlib"),$p=v1(),zD=H6(),GQ=E(),B7=Y9(),KQ=h8();AD.Compressor=Object.freeze({none:0,snappy:1,zlib:2,zstd:3});AD.uncompressibleCommands=new Set([$p.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]);var Xp=3,Yp=VD.promisify(DZ.inflate.bind(DZ)),Qp=VD.promisify(DZ.deflate.bind(DZ)),d8,I4=null;AD.compress=Kp;AD.decompress=MD;var Q9=16;AD.compressCommand=Gp;AD.decompressResponse=Fp});var qQ=V((wD)=>{var G9=function(J,Z){return function($,X,Y,Q){let K;try{const G=K9[J](Z,$,X);G.setAutoPadding(!1),K=G.update(Y);const F=G.final();if(F.length>0)K=Buffer.concat([K,F])}catch(G){return G}return K.copy(Q),K.length}},zp=function(J,Z){try{K9.randomFillSync(J,0,Z)}catch($){return $}return Z},Up=function(J,Z){let $;try{$=K9.createHash("sha256").update(J).digest()}catch(X){return X}return $.copy(Z),$.length},FQ=function(J){return(Z,$,X)=>{let Y;try{Y=K9.createHmac(J,Z).update($).digest()}catch(Q){return Q}return Y.copy(X),Y.length}},Mp=function(J,Z,$){let X;try{const Y=K9.createSign("sha256WithRSAEncryption"),Q=Buffer.from(`-----BEGIN PRIVATE KEY-----\n${J.toString("base64")}\n-----END PRIVATE KEY-----\n`);X=Y.update(Z).end().sign(Q)}catch(Y){return Y}return X.copy($),X.length};Object.defineProperty(wD,"__esModule",{value:!0});wD.hmacSha256Hook=wD.hmacSha512Hook=wD.aes256CtrDecryptHook=wD.aes256CtrEncryptHook=wD.aes256CbcDecryptHook=wD.aes256CbcEncryptHook=wD.signRsaSha256Hook=wD.makeHmacHook=wD.sha256Hook=wD.randomHook=wD.makeAES256Hook=void 0;var K9=import.meta.require("crypto");wD.makeAES256Hook=G9;wD.randomHook=zp;wD.sha256Hook=Up;wD.makeHmacHook=FQ;wD.signRsaSha256Hook=Mp;wD.aes256CbcEncryptHook=G9("createCipheriv","aes-256-cbc");wD.aes256CbcDecryptHook=G9("createDecipheriv","aes-256-cbc");wD.aes256CtrEncryptHook=G9("createCipheriv","aes-256-ctr");wD.aes256CtrDecryptHook=G9("createDecipheriv","aes-256-ctr");wD.hmacSha512Hook=FQ("sha512");wD.hmacSha256Hook=FQ("sha256")});var B4=V((BD)=>{Object.defineProperty(BD,"__esModule",{value:!0});BD.MongoCryptKMSRequestNetworkTimeoutError=BD.MongoCryptAzureKMSRequestError=BD.MongoCryptCreateEncryptedCollectionError=BD.MongoCryptCreateDataKeyError=BD.MongoCryptInvalidArgumentError=BD.MongoCryptError=void 0;var Bp=E();class N4 extends Bp.MongoError{constructor(J,Z={}){super(J,Z)}get name(){return"MongoCryptError"}}BD.MongoCryptError=N4;class DD extends N4{constructor(J){super(J)}get name(){return"MongoCryptInvalidArgumentError"}}BD.MongoCryptInvalidArgumentError=DD;class PD extends N4{constructor(J,{cause:Z}){super(`Unable to complete creating data keys: ${Z.message}`,{cause:Z});this.encryptedFields=J}get name(){return"MongoCryptCreateDataKeyError"}}BD.MongoCryptCreateDataKeyError=PD;class TD extends N4{constructor(J,{cause:Z}){super(`Unable to create collection: ${Z.message}`,{cause:Z});this.encryptedFields=J}get name(){return"MongoCryptCreateEncryptedCollectionError"}}BD.MongoCryptCreateEncryptedCollectionError=TD;class ID extends N4{constructor(J,Z){super(J);this.body=Z}get name(){return"MongoCryptAzureKMSRequestError"}}BD.MongoCryptAzureKMSRequestError=ID;class ND extends N4{get name(){return"MongoCryptKMSRequestNetworkTimeoutError"}}BD.MongoCryptKMSRequestNetworkTimeoutError=ND});var SD=V((CD)=>{Object.defineProperty(CD,"__esModule",{value:!0});CD.MongocryptdManager=void 0;var kp=E();class PZ{constructor(J={}){if(this.uri=typeof J.mongocryptdURI==="string"&&J.mongocryptdURI.length>0?J.mongocryptdURI:PZ.DEFAULT_MONGOCRYPTD_URI,this.bypassSpawn=!!J.mongocryptdBypassSpawn,this.spawnPath=J.mongocryptdSpawnPath||"",this.spawnArgs=[],Array.isArray(J.mongocryptdSpawnArgs))this.spawnArgs=this.spawnArgs.concat(J.mongocryptdSpawnArgs);if(this.spawnArgs.filter((Z)=>typeof Z==="string").every((Z)=>Z.indexOf("--idleShutdownTimeoutSecs")<0))this.spawnArgs.push("--idleShutdownTimeoutSecs","60")}async spawn(){const J=this.spawnPath||"mongocryptd",{spawn:Z}=import.meta.require("child_process");this._child=Z(J,this.spawnArgs,{stdio:"ignore",detached:!0}),this._child.on("error",()=>{}),this._child.unref()}async withRespawn(J){try{return await J()}catch($){if(!($ instanceof kp.MongoNetworkTimeoutError&&!this.bypassSpawn))throw $}return await this.spawn(),await J()}}PZ.DEFAULT_MONGOCRYPTD_URI="mongodb://localhost:27020";CD.MongocryptdManager=PZ});var yD=V((OD)=>{async function _p(J){const Z=yp.getAwsCredentialProvider();if("kModuleError"in Z)return J;const{fromNodeProviderChain:$}=Z,Y=await $()();return{...J,aws:Y}}Object.defineProperty(OD,"__esModule",{value:!0});OD.loadAWSCredentials=void 0;var yp=H6();OD.loadAWSCredentials=_p});var vD=V((_D)=>{var xp=function(J,Z={}){return new Promise(($,X)=>{let Y;const Q=fp.get(J,Z,(K)=>{K.setEncoding("utf8");let G="";K.on("data",(F)=>G+=F),K.on("end",()=>{WQ.clearTimeout(Y),$({status:K.statusCode,body:G})})}).on("error",(K)=>{WQ.clearTimeout(Y),X(K)}).end();Y=WQ.setTimeout(()=>{Q.destroy(new vp.MongoCryptKMSRequestNetworkTimeoutError("request timed out after 10 seconds"))},1e4)})};Object.defineProperty(_D,"__esModule",{value:!0});_D.get=void 0;var fp=import.meta.require("http"),WQ=import.meta.require("timers"),vp=B4();_D.get=xp});var dD=V((gD)=>{async function mp(J){const{status:Z,body:$}=J,X=(()=>{try{return JSON.parse($)}catch{throw new E4.MongoCryptAzureKMSRequestError("Malformed JSON body in GET request.")}})();if(Z!==200)throw new E4.MongoCryptAzureKMSRequestError("Unable to complete request.",X);if(!X.access_token)throw new E4.MongoCryptAzureKMSRequestError("Malformed response body - missing field `access_token`.");if(!X.expires_in)throw new E4.MongoCryptAzureKMSRequestError("Malformed response body - missing field `expires_in`.");const Y=Number(X.expires_in)*1000;if(Number.isNaN(Y))throw new E4.MongoCryptAzureKMSRequestError("Malformed response body - unable to parse int from `expires_in` field.");return{accessToken:X.access_token,expiresOnTimestamp:Date.now()+Y}}var xD=function(J){const Z=new URL(J.url?.toString()??"http://169.254.169.254/metadata/identity/oauth2/token");return Z.searchParams.append("api-version","2018-02-01"),Z.searchParams.append("resource","https://vault.azure.net"),{headers:{...J.headers,"Content-Type":"application/json",Metadata:!0},url:Z}};async function bD(J={}){const{headers:Z,url:$}=xD(J),X=await bp.get($,{headers:Z}).catch((Y)=>{if(Y instanceof E4.MongoCryptKMSRequestNetworkTimeoutError)throw new E4.MongoCryptAzureKMSRequestError(`[Azure KMS] ${Y.message}`);throw Y});return mp(X)}async function up(J){const Z=await gD.tokenCache.getToken();return{...J,azure:Z}}Object.defineProperty(gD,"__esModule",{value:!0});gD.loadAzureCredentials=gD.fetchAzureKMSToken=gD.prepareRequest=gD.tokenCache=gD.AzureCredentialCache=void 0;var E4=B4(),bp=vD(),gp=6000;class HQ{constructor(){this.cachedToken=null}async getToken(){if(this.cachedToken==null||this.needsRefresh(this.cachedToken))this.cachedToken=await this._getToken();return{accessToken:this.cachedToken.accessToken}}needsRefresh(J){return J.expiresOnTimestamp-Date.now()<=gp}resetCache(){this.cachedToken=null}_getToken(){return bD()}}gD.AzureCredentialCache=HQ;gD.tokenCache=new HQ;gD.prepareRequest=xD;gD.fetchAzureKMSToken=bD;gD.loadAzureCredentials=up});var lD=V((cD)=>{async function ap(J){const Z=lp.getGcpMetadata();if("kModuleError"in Z)return J;const{access_token:$}=await Z.instance({property:"service-accounts/default/token"});return{...J,gcp:{accessToken:$}}}Object.defineProperty(cD,"__esModule",{value:!0});cD.loadGCPCredentials=void 0;var lp=H6();cD.loadGCPCredentials=ap});var VQ=V((aD)=>{var TZ=function(J,Z){const $=Z[J];if($==null)return!1;return typeof $==="object"&&Object.keys($).length===0};async function tp(J){let Z=J;if(TZ("aws",J))Z=await ip.loadAWSCredentials(Z);if(TZ("gcp",J))Z=await np.loadGCPCredentials(Z);if(TZ("azure",J))Z=await sp.loadAzureCredentials(Z);return Z}Object.defineProperty(aD,"__esModule",{value:!0});aD.refreshKMSCredentials=aD.isEmptyCredentials=void 0;var ip=yD(),sp=dD(),np=lD();aD.isEmptyCredentials=TZ;aD.refreshKMSCredentials=tp});var zQ=V((YP)=>{var Zl=function(){if(F9==null){const J=Jl.getSocks();if("kModuleError"in J)throw J.kModuleError;F9=J}return F9},nD=function(J){if(process.env.MONGODB_CRYPT_DEBUG)console.error(J)};Object.defineProperty(YP,"__esModule",{value:!0});YP.StateMachine=void 0;var sD=import.meta.require("fs/promises"),op=import.meta.require("net"),ep=import.meta.require("tls"),K8=H1(),Jl=H6(),IZ=y(),c8=B4(),F9=null,NZ=0,tD=1,rD=2,oD=3,eD=7,JP=4,ZP=5,$P=6,$l=443,Xl=new Map([[NZ,"MONGOCRYPT_CTX_ERROR"],[tD,"MONGOCRYPT_CTX_NEED_MONGO_COLLINFO"],[rD,"MONGOCRYPT_CTX_NEED_MONGO_MARKINGS"],[oD,"MONGOCRYPT_CTX_NEED_MONGO_KEYS"],[eD,"MONGOCRYPT_CTX_NEED_KMS_CREDENTIALS"],[JP,"MONGOCRYPT_CTX_NEED_KMS"],[ZP,"MONGOCRYPT_CTX_READY"],[$P,"MONGOCRYPT_CTX_DONE"]]),Yl=["tlsInsecure","tlsAllowInvalidCertificates","tlsAllowInvalidHostnames","tlsDisableOCSPEndpointCheck","tlsDisableCertificateRevocationCheck"];class XP{constructor(J,Z=K8.pluckBSONSerializeOptions(J)){this.options=J,this.bsonOptions=Z}async execute(J,Z){const{_keyVaultNamespace:$,_keyVaultClient:X,_metaDataClient:Y,_mongocryptdClient:Q,_mongocryptdManager:K}=J;let G=null;while(Z.state!==$P&&Z.state!==NZ)switch(nD(`[context#${Z.id}] ${Xl.get(Z.state)||Z.state}`),Z.state){case tD:{const F=K8.deserialize(Z.nextMongoOperation());if(!Y)throw new c8.MongoCryptError("unreachable state machine state: entered MONGOCRYPT_CTX_NEED_MONGO_COLLINFO but metadata client is undefined");const q=await this.fetchCollectionInfo(Y,Z.ns,F);if(q)Z.addMongoOperationResponse(q);Z.finishMongoOperation();break}case rD:{const F=Z.nextMongoOperation();if(!Q)throw new c8.MongoCryptError("unreachable state machine state: entered MONGOCRYPT_CTX_NEED_MONGO_MARKINGS but mongocryptdClient is undefined");const q=K?await K.withRespawn(this.markCommand.bind(this,Q,Z.ns,F)):await this.markCommand(Q,Z.ns,F);Z.addMongoOperationResponse(q),Z.finishMongoOperation();break}case oD:{const F=Z.nextMongoOperation(),q=await this.fetchKeys(X,$,F);if(q.length===0)G={v:[]};for await(let W of q)Z.addMongoOperationResponse(K8.serialize(W));Z.finishMongoOperation();break}case eD:{const F=await J.askForKMSCredentials();Z.provideKMSProviders(K8.serialize(F));break}case JP:{const F=Array.from(this.requests(Z));await Promise.all(F),Z.finishKMSRequests();break}case ZP:{const F=Z.finalize();if(Z.state===NZ){const q=Z.status.message||"Finalization error";throw new c8.MongoCryptError(q)}G=K8.deserialize(F,this.options);break}default:throw new c8.MongoCryptError(`Unknown state: ${Z.state}`)}if(Z.state===NZ||G==null){const F=Z.status.message;if(!F)nD("unidentifiable error in MongoCrypt - received an error status from \`libmongocrypt\` but received no error message.");throw new c8.MongoCryptError(F??"unidentifiable error in MongoCrypt - received an error status from `libmongocrypt` but received no error message.")}return G}kmsRequest(J){const Z=J.endpoint.split(":"),$=Z[1]!=null?Number.parseInt(Z[1],10):$l,X={host:Z[0],servername:Z[0],port:$},Y=J.message;return new Promise(async(Q,K)=>{const G=new IZ.BufferPool;let F,q;function W(){for(let z of[F,q])if(z)z.removeAllListeners(),z.destroy()}function H(){W(),K(new c8.MongoCryptError("KMS request timed out"))}function U(z){W();const A=new c8.MongoCryptError("KMS request failed",{cause:z});K(A)}if(this.options.proxyOptions&&this.options.proxyOptions.proxyHost){q=op.connect({host:this.options.proxyOptions.proxyHost,port:this.options.proxyOptions.proxyPort||1080}),q.on("timeout",H),q.on("error",U);try{await import.meta.require("events").once(q,"connect"),F9??=Zl(),X.socket=(await F9.SocksClient.createConnection({existing_socket:q,command:"connect",destination:{host:X.host,port:X.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:this.options.proxyOptions.proxyUsername,password:this.options.proxyOptions.proxyPassword}})).socket}catch(z){return U(z)}}const j=this.options.tlsOptions;if(j){const z=J.kmsProvider,A=j[z];if(A){const T=this.validateTlsOptions(z,A);if(T)K(T);try{await this.setTlsOptions(A,X)}catch(w){return U(w)}}}F=ep.connect(X,()=>{F.write(Y)}),F.once("timeout",H),F.once("error",U),F.on("data",(z)=>{G.append(z);while(J.bytesNeeded>0&&G.length){const A=Math.min(J.bytesNeeded,G.length);J.addResponse(G.read(A))}if(J.bytesNeeded<=0)W(),Q()})})}*requests(J){for(let Z=J.nextKMSRequest();Z!=null;Z=J.nextKMSRequest())yield this.kmsRequest(Z)}validateTlsOptions(J,Z){const $=Object.keys(Z);for(let X of Yl)if($.includes(X))return new c8.MongoCryptError(`Insecure TLS options prohibited for ${J}: ${X}`)}async setTlsOptions(J,Z){if(J.tlsCertificateKeyFile){const $=await sD.readFile(J.tlsCertificateKeyFile);Z.cert=Z.key=$}if(J.tlsCAFile)Z.ca=await sD.readFile(J.tlsCAFile);if(J.tlsCertificateKeyFilePassword)Z.passphrase=J.tlsCertificateKeyFilePassword}async fetchCollectionInfo(J,Z,$){const{db:X}=IZ.MongoDBCollectionNamespace.fromString(Z),Y=await J.db(X).listCollections($,{promoteLongs:!1,promoteValues:!1}).toArray();return Y.length>0?K8.serialize(Y[0]):null}async markCommand(J,Z,$){const X={promoteLongs:!1,promoteValues:!1},{db:Y}=IZ.MongoDBCollectionNamespace.fromString(Z),Q=K8.deserialize($,X),K=await J.db(Y).command(Q,X);return K8.serialize(K,this.bsonOptions)}fetchKeys(J,Z,$){const{db:X,collection:Y}=IZ.MongoDBCollectionNamespace.fromString(Z);return J.db(X).collection(Y,{readConcern:{level:"majority"}}).find(K8.deserialize($)).toArray()}}YP.StateMachine=XP});var MQ=V((WP)=>{var qP=function(J,Z,$=!0){if($){if(Buffer.isBuffer(Z))Z=E7.deserialize(Z);if(Buffer.isBuffer(J))throw new BZ.MongoRuntimeError("Expected result of decryption to be deserialized BSON object")}if(!J||typeof J!=="object")return;for(let X of Object.keys(J)){const Y=Z[X];if(Y&&Y._bsontype==="Binary"&&Y.sub_type===6){if(!J[UQ])Object.defineProperty(J,UQ,{value:[],configurable:!0,enumerable:!1,writable:!1});J[UQ].push(X);continue}qP(J[X],Y,!1)}},GP;Object.defineProperty(WP,"__esModule",{value:!0});WP.AutoEncrypter=WP.AutoEncryptionLoggerLevel=void 0;var E7=H1(),Ql=H6(),BZ=E(),Kl=C4(),Gl=y(),Fl=qQ(),ql=B4(),Wl=SD(),Hl=VQ(),KP=zQ();WP.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4});var FP=Symbol.for("@@mdb.decorateDecryptionResult"),UQ=Symbol.for("@@mdb.decryptedKeys");class EZ{static getMongoCrypt(){const J=Ql.getMongoDBClientEncryption();if("kModuleError"in J)throw J.kModuleError;return J.MongoCrypt}constructor(J,Z){this[GP]=!1,this._client=J,this._bypassEncryption=Z.bypassAutoEncryption===!0,this._keyVaultNamespace=Z.keyVaultNamespace||"admin.datakeys",this._keyVaultClient=Z.keyVaultClient||J,this._metaDataClient=Z.metadataClient||J,this._proxyOptions=Z.proxyOptions||{},this._tlsOptions=Z.tlsOptions||{},this._kmsProviders=Z.kmsProviders||{};const $={cryptoCallbacks:Fl};if(Z.schemaMap)$.schemaMap=Buffer.isBuffer(Z.schemaMap)?Z.schemaMap:E7.serialize(Z.schemaMap);if(Z.encryptedFieldsMap)$.encryptedFieldsMap=Buffer.isBuffer(Z.encryptedFieldsMap)?Z.encryptedFieldsMap:E7.serialize(Z.encryptedFieldsMap);if($.kmsProviders=!Buffer.isBuffer(this._kmsProviders)?E7.serialize(this._kmsProviders):this._kmsProviders,Z.options?.logger)$.logger=Z.options.logger;if(Z.extraOptions&&Z.extraOptions.cryptSharedLibPath)$.cryptSharedLibPath=Z.extraOptions.cryptSharedLibPath;if(Z.bypassQueryAnalysis)$.bypassQueryAnalysis=Z.bypassQueryAnalysis;if(this._bypassMongocryptdAndCryptShared=this._bypassEncryption||!!Z.bypassQueryAnalysis,Z.extraOptions&&Z.extraOptions.cryptSharedLibSearchPaths)$.cryptSharedLibSearchPaths=Z.extraOptions.cryptSharedLibSearchPaths;else if(!this._bypassMongocryptdAndCryptShared)$.cryptSharedLibSearchPaths=["$SYSTEM"];const X=EZ.getMongoCrypt();if(this._mongocrypt=new X($),this._contextCounter=0,Z.extraOptions&&Z.extraOptions.cryptSharedLibRequired&&!this.cryptSharedLibVersionInfo)throw new ql.MongoCryptInvalidArgumentError("`cryptSharedLibRequired` set but no crypt_shared library loaded");if(!this._bypassMongocryptdAndCryptShared&&!this.cryptSharedLibVersionInfo){this._mongocryptdManager=new Wl.MongocryptdManager(Z.extraOptions);const Y={serverSelectionTimeoutMS:1e4};if(Z.extraOptions==null||typeof Z.extraOptions.mongocryptdURI!=="string")Y.family=4;this._mongocryptdClient=new Kl.MongoClient(this._mongocryptdManager.uri,Y)}}async init(){if(this._bypassMongocryptdAndCryptShared||this.cryptSharedLibVersionInfo)return;if(!this._mongocryptdManager)throw new BZ.MongoRuntimeError("Reached impossible state: mongocryptdManager is undefined when neither bypassSpawn nor the shared lib are specified.");if(!this._mongocryptdClient)throw new BZ.MongoRuntimeError("Reached impossible state: mongocryptdClient is undefined when neither bypassSpawn nor the shared lib are specified.");if(!this._mongocryptdManager.bypassSpawn)await this._mongocryptdManager.spawn();try{return await this._mongocryptdClient.connect()}catch(J){const{message:Z}=J;if(Z&&(Z.match(/timed out after/)||Z.match(/ENOTFOUND/)))throw new BZ.MongoRuntimeError("Unable to connect to `mongocryptd`, please make sure it is running or in your PATH for auto-spawn",{cause:J});throw J}}async teardown(J){await this._mongocryptdClient?.close(J)}async encrypt(J,Z,$={}){if(this._bypassEncryption)return Z;const X=Buffer.isBuffer(Z)?Z:E7.serialize(Z,$),Y=this._mongocrypt.makeEncryptionContext(Gl.MongoDBCollectionNamespace.fromString(J).db,X);return Y.id=this._contextCounter++,Y.ns=J,Y.document=Z,new KP.StateMachine({promoteValues:!1,promoteLongs:!1,proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}).execute(this,Y)}async decrypt(J,Z={}){const $=Buffer.isBuffer(J)?J:E7.serialize(J,Z),X=this._mongocrypt.makeDecryptionContext($);X.id=this._contextCounter++;const Y=new KP.StateMachine({...Z,proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),Q=this[FP],K=await Y.execute(this,X);if(Q)qP(K,J);return K}async askForKMSCredentials(){return Hl.refreshKMSCredentials(this._kmsProviders)}get cryptSharedLibVersionInfo(){return this._mongocrypt.cryptSharedLibVersionInfo}static get libmongocryptVersion(){return EZ.getMongoCrypt().libmongocryptVersion}}WP.AutoEncrypter=EZ;GP=FP});var jP=V((UP)=>{Object.defineProperty(UP,"__esModule",{value:!0});UP.Encrypter=void 0;var zl=import.meta.require("util"),Ul=MQ(),Ml=v1(),jl=H6(),VP=E(),Al=C4(),q9=Symbol("internalClient");class zP{constructor(J,Z,$){if(typeof $.autoEncryption!=="object")throw new VP.MongoInvalidArgumentError('Option "autoEncryption" must be specified');if(this[q9]=null,this.bypassAutoEncryption=!!$.autoEncryption.bypassAutoEncryption,this.needsConnecting=!1,$.maxPoolSize===0&&$.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=J;else if($.autoEncryption.keyVaultClient==null)$.autoEncryption.keyVaultClient=this.getInternalClient(J,Z,$);if(this.bypassAutoEncryption)$.autoEncryption.metadataClient=void 0;else if($.maxPoolSize===0)$.autoEncryption.metadataClient=J;else $.autoEncryption.metadataClient=this.getInternalClient(J,Z,$);if($.proxyHost)$.autoEncryption.proxyOptions={proxyHost:$.proxyHost,proxyPort:$.proxyPort,proxyUsername:$.proxyUsername,proxyPassword:$.proxyPassword};this.autoEncrypter=new Ul.AutoEncrypter(J,$.autoEncryption)}getInternalClient(J,Z,$){let X=this[q9];if(X==null){const Y={};for(let Q of[...Object.getOwnPropertyNames($),...Object.getOwnPropertySymbols($)]){if(["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(Q))continue;Reflect.set(Y,Q,Reflect.get($,Q))}Y.minPoolSize=0,X=new Al.MongoClient(Z,Y),this[q9]=X;for(let Q of Ml.MONGO_CLIENT_EVENTS)for(let K of J.listeners(Q))X.on(Q,K);J.on("newListener",(Q,K)=>{X?.on(Q,K)}),this.needsConnecting=!0}return X}async connectInternalClient(){const J=this[q9];if(this.needsConnecting&&J!=null)this.needsConnecting=!1,await J.connect()}closeCallback(J,Z,$){zl.callbackify(this.close.bind(this))(J,Z,$)}async close(J,Z){const $=await this.autoEncrypter.teardown(!!Z).catch((Y)=>Y),X=this[q9];if(X!=null&&J!==X)return X.close(Z);if($)throw $}static checkForMongoCrypt(){if("kModuleError"in jl.getMongoDBClientEncryption())throw new VP.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project")}}UP.Encrypter=zP});var RQ=V((RP)=>{var AP=function(J){const Z=Object.values(RP.SeverityLevel),$=J?.toLowerCase();if($!=null&&Z.includes($))return $;return null},h7=function(J){return{write:(Z)=>{J.write(wl.inspect(Z,{compact:!0,breakLength:Infinity}),"utf-8");return}}},Rl=function({MONGODB_LOG_PATH:J},{mongodbLogPath:Z}){if(typeof Z==="string"&&/^stderr$/i.test(Z))return h7(process.stderr);if(typeof Z==="string"&&/^stdout$/i.test(Z))return h7(process.stdout);if(typeof Z==="object"&&typeof Z?.write==="function")return Z;if(J&&/^stderr$/i.test(J))return h7(process.stderr);if(J&&/^stdout$/i.test(J))return h7(process.stdout);return h7(process.stderr)},C7=function(J,Z,$){return AP(J)??AP(Z)??$},Dl=function(J,Z){const $=RP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(J),X=RP.SEVERITY_LEVEL_MAP.getNumericSeverityLevel(Z);return $<X?-1:$>X?1:0},AQ=function(J,Z){const $=Ll.EJSON.stringify(J);return Z!==0&&$.length>Z?`${$.slice(0,Z)}...`:$},Pl=function(J){const Z=J;return Z.toLog!==void 0&&typeof Z.toLog==="function"},jQ=function(J,Z){J.commandName=Z.commandName,J.requestId=Z.requestId,J.driverConnectionId=Z?.connectionId;const{host:$,port:X}=wQ.HostAddress.fromString(Z.address).toHostPort();if(J.serverHost=$,J.serverPort=X,Z?.serviceId)J.serviceId=Z.serviceId.toHexString();return J},z6=function(J,Z){const{host:$,port:X}=wQ.HostAddress.fromString(Z.address).toHostPort();return J.serverHost=$,J.serverPort=X,J},Tl=function(J,Z=RP.DEFAULT_MAX_DOCUMENT_LENGTH){let $=Object.create(null);switch(J.name){case D0.COMMAND_STARTED:return $=jQ($,J),$.message="Command started",$.command=AQ(J.command,Z),$.databaseName=J.databaseName,$;case D0.COMMAND_SUCCEEDED:return $=jQ($,J),$.message="Command succeeded",$.durationMS=J.duration,$.reply=AQ(J.reply,Z),$;case D0.COMMAND_FAILED:return $=jQ($,J),$.message="Command failed",$.durationMS=J.duration,$.failure=J.failure,$;case D0.CONNECTION_POOL_CREATED:if($=z6($,J),$.message="Connection pool created",J.options){const{maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}=J.options;$={...$,maxIdleTimeMS:X,minPoolSize:Y,maxPoolSize:Q,maxConnecting:K,waitQueueTimeoutMS:G}}return $;case D0.CONNECTION_POOL_READY:return $=z6($,J),$.message="Connection pool ready",$;case D0.CONNECTION_POOL_CLEARED:if($=z6($,J),$.message="Connection pool cleared",J.serviceId?._bsontype==="ObjectId")$.serviceId=J.serviceId.toHexString();return $;case D0.CONNECTION_POOL_CLOSED:return $=z6($,J),$.message="Connection pool closed",$;case D0.CONNECTION_CREATED:return $=z6($,J),$.message="Connection created",$.driverConnectionId=J.connectionId,$;case D0.CONNECTION_READY:return $=z6($,J),$.message="Connection ready",$.driverConnectionId=J.connectionId,$;case D0.CONNECTION_CLOSED:switch($=z6($,J),$.message="Connection closed",$.driverConnectionId=J.connectionId,J.reason){case"stale":$.reason="Connection became stale because the pool was cleared";break;case"idle":$.reason="Connection has been available but unused for longer than the configured max idle time";break;case"error":if($.reason="An error occurred while using the connection",J.error)$.error=J.error;break;case"poolClosed":$.reason="Connection pool was closed";break;default:$.reason=`Unknown close reason: ${J.reason}`}return $;case D0.CONNECTION_CHECK_OUT_STARTED:return $=z6($,J),$.message="Connection checkout started",$;case D0.CONNECTION_CHECK_OUT_FAILED:switch($=z6($,J),$.message="Connection checkout failed",J.reason){case"poolClosed":$.reason="Connection pool was closed";break;case"timeout":$.reason="Wait queue timeout elapsed without a connection becoming available";break;case"connectionError":if($.reason="An error occurred while trying to establish a new connection",J.error)$.error=J.error;break;default:$.reason=`Unknown close reason: ${J.reason}`}return $;case D0.CONNECTION_CHECKED_OUT:return $=z6($,J),$.message="Connection checked out",$.driverConnectionId=J.connectionId,$;case D0.CONNECTION_CHECKED_IN:return $=z6($,J),$.message="Connection checked in",$.driverConnectionId=J.connectionId,$;default:for(let[X,Y]of Object.entries(J))if(Y!=null)$[X]=Y}return $};Object.defineProperty(RP,"__esModule",{value:!0});RP.MongoLogger=RP.stringifyWithMaxLen=RP.createStdioLogger=RP.MongoLoggableComponent=RP.SEVERITY_LEVEL_MAP=RP.DEFAULT_MAX_DOCUMENT_LENGTH=RP.SeverityLevel=void 0;var Ll=L5(),wl=import.meta.require("util"),D0=v1(),wQ=y();RP.SeverityLevel=Object.freeze({EMERGENCY:"emergency",ALERT:"alert",CRITICAL:"critical",ERROR:"error",WARNING:"warn",NOTICE:"notice",INFORMATIONAL:"info",DEBUG:"debug",TRACE:"trace",OFF:"off"});RP.DEFAULT_MAX_DOCUMENT_LENGTH=1000;class LP extends Map{constructor(J){const Z=[];for(let[$,X]of J)Z.push([X,$]);Z.push(...J);super(Z)}getNumericSeverityLevel(J){return this.get(J)}getSeverityLevelName(J){return this.get(J)}}RP.SEVERITY_LEVEL_MAP=new LP([[RP.SeverityLevel.OFF,(-Infinity)],[RP.SeverityLevel.EMERGENCY,0],[RP.SeverityLevel.ALERT,1],[RP.SeverityLevel.CRITICAL,2],[RP.SeverityLevel.ERROR,3],[RP.SeverityLevel.WARNING,4],[RP.SeverityLevel.NOTICE,5],[RP.SeverityLevel.INFORMATIONAL,6],[RP.SeverityLevel.DEBUG,7],[RP.SeverityLevel.TRACE,8]]);RP.MongoLoggableComponent=Object.freeze({COMMAND:"command",TOPOLOGY:"topology",SERVER_SELECTION:"serverSelection",CONNECTION:"connection",CLIENT:"client"});RP.createStdioLogger=h7;RP.stringifyWithMaxLen=AQ;class wP{constructor(J){this.error=this.log.bind(this,"error"),this.warn=this.log.bind(this,"warn"),this.info=this.log.bind(this,"info"),this.debug=this.log.bind(this,"debug"),this.trace=this.log.bind(this,"trace"),this.componentSeverities=J.componentSeverities,this.maxDocumentLength=J.maxDocumentLength,this.logDestination=J.logDestination}log(J,Z,$){if(Dl(J,this.componentSeverities[Z])>0)return;let X={t:new Date,c:Z,s:J};if(typeof $==="string")X.message=$;else if(typeof $==="object")if(Pl($))X={...X,...$.toLog()};else X={...X,...Tl($,this.maxDocumentLength)};this.logDestination.write(X)}static resolveOptions(J,Z){const $={...J,...Z,mongodbLogPath:Rl(J,Z)},X=C7($.mongodbLogComponentSeverities?.default,$.MONGODB_LOG_ALL,RP.SeverityLevel.OFF);return{componentSeverities:{command:C7($.mongodbLogComponentSeverities?.command,$.MONGODB_LOG_COMMAND,X),topology:C7($.mongodbLogComponentSeverities?.topology,$.MONGODB_LOG_TOPOLOGY,X),serverSelection:C7($.mongodbLogComponentSeverities?.serverSelection,$.MONGODB_LOG_SERVER_SELECTION,X),connection:C7($.mongodbLogComponentSeverities?.connection,$.MONGODB_LOG_CONNECTION,X),client:C7($.mongodbLogComponentSeverities?.client,$.MONGODB_LOG_CLIENT,X),default:X},maxDocumentLength:$.mongodbLogMaxDocumentLength??wQ.parseUnsignedInteger($.MONGODB_LOG_MAX_DOCUMENT_LENGTH)??1000,logDestination:$.mongodbLogPath}}}RP.MongoLogger=wP});var CP=V((BP)=>{Object.defineProperty(BP,"__esModule",{value:!0});BP.MongoCR=void 0;var TP=import.meta.require("crypto"),El=E(),IP=y(),Cl=Y8();class NP extends Cl.AuthProvider{async auth(J){const{connection:Z,credentials:$}=J;if(!$)throw new El.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y,source:Q}=$,{nonce:K}=await Z.commandAsync(IP.ns(`${Q}.\$cmd`),{getnonce:1},void 0),G=TP.createHash("md5").update(`${X}:mongo:${Y}`,"utf8").digest("hex"),F=TP.createHash("md5").update(`${K}${X}${G}`,"utf8").digest("hex"),q={authenticate:1,user:X,nonce:K,key:F};await Z.commandAsync(IP.ns(`${Q}.\$cmd`),q,void 0)}}BP.MongoCR=NP});var kP=V((SP)=>{async function xl(J){function Z($){if(!$.AccessKeyId||!$.SecretAccessKey||!$.Token)throw new h4.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials");return new kl.MongoCredentials({username:$.AccessKeyId,password:$.SecretAccessKey,source:J.source,mechanism:yl.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:$.Token}})}if(S4.credentialProvider??=CZ.getAwsCredentialProvider(),"kModuleError"in S4.credentialProvider){if(DQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)return Z(await G8.request(`${vl}${DQ.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`));const $=await G8.request(`${TQ}/latest/api/token`,{method:"PUT",json:!1,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}}),X=await G8.request(`${TQ}/${hP}`,{json:!1,headers:{"X-aws-ec2-metadata-token":$}}),Y=await G8.request(`${TQ}/${hP}/${X}`,{headers:{"X-aws-ec2-metadata-token":$}});return Z(Y)}else{let{AWS_STS_REGIONAL_ENDPOINTS:$="",AWS_REGION:X=""}=DQ.env;$=$.toLowerCase(),X=X.toLowerCase();const Y=X.length!==0&&$.length!==0,Q=$==="regional"||$==="legacy"&&!_l.has(X),K=Y&&Q?S4.credentialProvider.fromNodeProviderChain({clientConfig:{region:X}}):S4.credentialProvider.fromNodeProviderChain();try{const G=await K();return Z({AccessKeyId:G.accessKeyId,SecretAccessKey:G.secretAccessKey,Token:G.sessionToken,Expiration:G.expiration})}catch(G){throw new h4.MongoAWSError(G.message)}}}var bl=function(J){const Z=J.split(".");if(Z.length===1||Z[1]==="amazonaws")return"us-east-1";return Z[1]};Object.defineProperty(SP,"__esModule",{value:!0});SP.MongoDBAWS=void 0;var hl=import.meta.require("crypto"),DQ=import.meta.require("process"),Sl=import.meta.require("util"),PQ=H1(),CZ=H6(),h4=E(),G8=y(),Ol=Y8(),kl=KZ(),yl=O6(),_l=new Set(["ap-northeast-1","ap-south-1","ap-southeast-1","ap-southeast-2","aws-global","ca-central-1","eu-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),fl=110,vl="http://169.254.170.2",TQ="http://169.254.169.254",hP="/latest/meta-data/iam/security-credentials",IQ={useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1};class S4 extends Ol.AuthProvider{constructor(){super();this.randomBytesAsync=Sl.promisify(hl.randomBytes)}async auth(J){const{connection:Z}=J;if(!J.credentials)throw new h4.MongoMissingCredentialsError("AuthContext must provide credentials.");if("kModuleError"in CZ.aws4)throw CZ.aws4.kModuleError;const{sign:$}=CZ.aws4;if(G8.maxWireVersion(Z)<9)throw new h4.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later");if(!J.credentials.username)J.credentials=await xl(J.credentials);const{credentials:X}=J,Y=X.username,Q=X.password,K=X.mechanismProperties.AWS_SESSION_TOKEN,G=Y&&Q&&K?{accessKeyId:Y,secretAccessKey:Q,sessionToken:K}:Y&&Q?{accessKeyId:Y,secretAccessKey:Q}:void 0,F=X.source,q=await this.randomBytesAsync(32),W={saslStart:1,mechanism:"MONGODB-AWS",payload:PQ.serialize({r:q,p:fl},IQ)},H=await Z.commandAsync(G8.ns(`${F}.\$cmd`),W,void 0),U=PQ.deserialize(H.payload.buffer,IQ),j=U.h,z=U.s.buffer;if(z.length!==64)throw new h4.MongoRuntimeError(`Invalid server nonce length ${z.length}, expected 64`);if(!G8.ByteUtils.equals(z.subarray(0,q.byteLength),q))throw new h4.MongoRuntimeError("Server nonce does not begin with client nonce");if(j.length<1||j.length>255||j.indexOf("..")!==-1)throw new h4.MongoRuntimeError(`Server returned an invalid host: "${j}"`);const A="Action=GetCallerIdentity&Version=2011-06-15",T=$({method:"POST",host:j,region:bl(U.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":A.length,"X-MongoDB-Server-Nonce":G8.ByteUtils.toBase64(z),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:A},G),w={a:T.headers.Authorization,d:T.headers["X-Amz-Date"]};if(K)w.t=K;const N={saslContinue:1,conversationId:1,payload:PQ.serialize(w,IQ)};await Z.commandAsync(G8.ns(`${F}.\$cmd`),N,void 0)}}S4.credentialProvider=null;SP.MongoDBAWS=S4});var BQ=V((_P)=>{var NQ=function(J){return{saslStart:1,mechanism:ul.AuthMechanism.MONGODB_OIDC,payload:gl.BSON.serialize({jwt:J})}};Object.defineProperty(_P,"__esModule",{value:!0});_P.commandDocument=_P.ServiceWorkflow=void 0;var gl=L5(),ml=y(),ul=O6();class yP{async execute(J,Z){const $=await this.getToken(Z),X=NQ($);return J.commandAsync(ml.ns(Z.source),X,void 0)}async speculativeAuth(J){const Z=await this.getToken(J),$=NQ(Z);return $.db=J.source,{speculativeAuthenticate:$}}}_P.ServiceWorkflow=yP;_P.commandDocument=NQ});var gP=V((xP)=>{Object.defineProperty(xP,"__esModule",{value:!0});xP.AwsServiceWorkflow=void 0;var cl=import.meta.require("fs"),pl=E(),ll=BQ(),al="AWS_WEB_IDENTITY_TOKEN_FILE must be set in the environment.";class vP extends ll.ServiceWorkflow{constructor(){super()}async getToken(){const J=process.env.AWS_WEB_IDENTITY_TOKEN_FILE;if(!J)throw new pl.MongoAWSError(al);return cl.promises.readFile(J,"utf8")}}xP.AwsServiceWorkflow=vP});var hZ=V((dP)=>{Object.defineProperty(dP,"__esModule",{value:!0});dP.Cache=dP.ExpiringCacheEntry=void 0;var il=300000;class mP{constructor(J){this.expiration=this.expirationTime(J)}isValid(){return this.expiration-Date.now()>il}expirationTime(J){return Date.now()+J*1000}}dP.ExpiringCacheEntry=mP;class uP{constructor(){this.entries=new Map}clear(){this.entries.clear()}hashedCacheKey(J,Z,$){return JSON.stringify([J,Z,$])}}dP.Cache=uP});var sP=V((aP)=>{Object.defineProperty(aP,"__esModule",{value:!0});aP.AzureTokenCache=aP.AzureTokenEntry=void 0;var pP=hZ();class EQ extends pP.ExpiringCacheEntry{constructor(J,Z){super(Z);this.token=J}}aP.AzureTokenEntry=EQ;class lP extends pP.Cache{addEntry(J,Z){const $=new EQ(Z.access_token,Z.expires_in);return this.entries.set(J,$),$}cacheKey(J){return J}deleteEntry(J){this.entries.delete(J)}getEntry(J){return this.entries.get(J)}}aP.AzureTokenCache=lP});var eP=V((rP)=>{async function Xa(J){const Z=`${el}&resource=${J}`;return await tl.request(Z,{json:!0,headers:Ja})}var Ya=function(J){if(J==null||typeof J!=="object")return!1;return"access_token"in J&&"expires_in"in J};Object.defineProperty(rP,"__esModule",{value:!0});rP.AzureServiceWorkflow=void 0;var nP=E(),tl=y(),rl=sP(),ol=BQ(),el="http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01",Ja=Object.freeze({Metadata:"true",Accept:"application/json"}),Za="Azure endpoint did not return a value with only access_token and expires_in properties",$a="TOKEN_AUDIENCE must be set in the auth mechanism properties when PROVIDER_NAME is azure.";class tP extends ol.ServiceWorkflow{constructor(){super(...arguments);this.cache=new rl.AzureTokenCache}async getToken(J){const Z=J?.mechanismProperties.TOKEN_AUDIENCE;if(!Z)throw new nP.MongoAzureError($a);let $;const X=this.cache.getEntry(Z);if(X?.isValid())$=X.token;else{this.cache.deleteEntry(Z);const Y=await Xa(Z);if(!Ya(Y))throw new nP.MongoAzureError(Za);this.cache.addEntry(Z,Y),$=Y.access_token}return $}}rP.AzureServiceWorkflow=tP});var QT=V((XT)=>{var JT=function(J){let Z=Promise.resolve();return async($,X)=>{return await Z,Z=Z.then(()=>J($,X)),Z}},Fa=function(J,Z){let $=W9.get(J),X=W9.get(Z??ZT);if($==null)O4++,$=O4,W9.set(J,O4);if(X==null&&Z)O4++,X=O4,W9.set(Z,O4);return`${$}-${X}`};Object.defineProperty(XT,"__esModule",{value:!0});XT.CallbackLockCache=void 0;var Qa=E(),Ka=hZ(),Ga="Auth mechanism property REQUEST_TOKEN_CALLBACK is required.",O4=0,ZT=async()=>({accessToken:"test"}),W9=new WeakMap;W9.set(ZT,O4);class $T extends Ka.Cache{getEntry(J,Z){const $=Z.mechanismProperties.REQUEST_TOKEN_CALLBACK,X=Z.mechanismProperties.REFRESH_TOKEN_CALLBACK;if(!$)throw new Qa.MongoInvalidArgumentError(Ga);const Y=Fa($,X),Q=this.cacheKey(J.address,Z.username,Y),K=this.entries.get(Q);if(K)return K;return this.addEntry(Q,Y,$,X)}addEntry(J,Z,$,X){const Y={requestCallback:JT($),refreshCallback:X?JT(X):void 0,callbackHash:Z};return this.entries.set(J,Y),Y}cacheKey(J,Z,$){return this.hashedCacheKey(J,Z,$)}}XT.CallbackLockCache=$T});var WT=V((FT)=>{Object.defineProperty(FT,"__esModule",{value:!0});FT.TokenEntryCache=FT.TokenEntry=void 0;var KT=hZ(),qa=0;class CQ extends KT.ExpiringCacheEntry{constructor(J,Z,$){super($);this.tokenResult=J,this.serverInfo=Z}}FT.TokenEntry=CQ;class GT extends KT.Cache{addEntry(J,Z,$,X,Y){const Q=new CQ(X,Y,X.expiresInSeconds??qa);return this.entries.set(this.cacheKey(J,Z,$),Q),Q}deleteEntry(J,Z,$){this.entries.delete(this.cacheKey(J,Z,$))}getEntry(J,Z,$){return this.entries.get(this.cacheKey(J,Z,$))}deleteExpiredEntries(){for(let[J,Z]of this.entries)if(!Z.isValid())this.entries.delete(J)}cacheKey(J,Z,$){return this.hashedCacheKey(J,Z,$)}}FT.TokenEntryCache=GT});var AT=V((MT)=>{var Aa=function(J,Z){if(Z!=null&&typeof Z==="number")return{saslContinue:1,conversationId:Z,payload:new k4.Binary(k4.BSON.serialize({jwt:J}))};return{saslStart:1,mechanism:zT.AuthMechanism.MONGODB_OIDC,payload:new k4.Binary(k4.BSON.serialize({jwt:J}))}},La=function(J){if(J==null||typeof J!=="object")return!0;if(!("accessToken"in J))return!0;return!Object.getOwnPropertyNames(J).every((Z)=>Ma.includes(Z))},VT=function(J){const Z={};if(J.username)Z.n=J.username;return{saslStart:1,autoAuthorize:1,mechanism:zT.AuthMechanism.MONGODB_OIDC,payload:new k4.Binary(k4.BSON.serialize(Z))}};Object.defineProperty(MT,"__esModule",{value:!0});MT.CallbackWorkflow=void 0;var k4=L5(),hQ=E(),HT=y(),zT=O6(),Ha=QT(),Va=WT(),za=0,Ua=300,Ma=["accessToken","expiresInSeconds","refreshToken"],ja="User provided OIDC callbacks must return a valid object with an accessToken.";class UT{constructor(){this.cache=new Va.TokenEntryCache,this.callbackCache=new Ha.CallbackLockCache}async speculativeAuth(J){const Z=VT(J);return Z.db=J.source,{speculativeAuthenticate:Z}}async execute(J,Z,$,X){const{requestCallback:Y,refreshCallback:Q,callbackHash:K}=this.callbackCache.getEntry(J,Z),G=this.cache.getEntry(J.address,Z.username,K);let F;if(G)if(G.isValid()&&!$)F=await this.finishAuthentication(J,Z,G.tokenResult,X?.speculativeAuthenticate?.conversationId);else{const q=await this.fetchAccessToken(J,Z,G.serverInfo,$,K,Y,Q);try{F=await this.finishAuthentication(J,Z,q,$?void 0:X?.speculativeAuthenticate?.conversationId)}catch(W){if($&&W instanceof hQ.MongoError&&W.code===hQ.MONGODB_ERROR_CODES.Reauthenticate)this.cache.deleteEntry(J.address,Z.username,K),F=await this.execute(J,Z,$);else throw W}}else{const q=await this.startAuthentication(J,Z,$,X),W=q.conversationId,H=k4.BSON.deserialize(q.payload.buffer),U=await this.fetchAccessToken(J,Z,H,$,K,Y,Q);F=await this.finishAuthentication(J,Z,U,W)}return F}async startAuthentication(J,Z,$,X){let Y;if(!$&&X?.speculativeAuthenticate)Y=X.speculativeAuthenticate;else Y=await J.commandAsync(HT.ns(Z.source),VT(Z),void 0);return Y}async finishAuthentication(J,Z,$,X){return await J.commandAsync(HT.ns(Z.source),Aa($.accessToken,X),void 0)}async fetchAccessToken(J,Z,$,X,Y,Q,K){const G=this.cache.getEntry(J.address,Z.username,Y);let F;const q={timeoutSeconds:Ua,version:za};if(G){if(G.isValid()&&!X)return G.tokenResult;if(K)q.refreshToken=G.tokenResult.refreshToken,F=await K($,q);else F=await Q($,q)}else F=await Q($,q);if(La(F))throw this.cache.deleteEntry(J.address,Z.username,Y),new hQ.MongoMissingCredentialsError(ja);return this.cache.deleteExpiredEntries(),this.cache.addEntry(J.address,Z.username||"",Y,F,$),F}}MT.CallbackWorkflow=UT});var IT=V((PT)=>{var LT=function(J){const{credentials:Z}=J;if(!Z)throw new RT.MongoMissingCredentialsError(Ta);return Z},wT=function(J){const Z=J.mechanismProperties.PROVIDER_NAME,$=PT.OIDC_WORKFLOWS.get(Z||"callback");if(!$)throw new RT.MongoInvalidArgumentError(`Could not load workflow for provider ${J.mechanismProperties.PROVIDER_NAME}`);return $};Object.defineProperty(PT,"__esModule",{value:!0});PT.MongoDBOIDC=PT.OIDC_WORKFLOWS=void 0;var RT=E(),wa=Y8(),Ra=gP(),Da=eP(),Pa=AT(),Ta="AuthContext must provide credentials.";PT.OIDC_WORKFLOWS=new Map;PT.OIDC_WORKFLOWS.set("callback",new Pa.CallbackWorkflow);PT.OIDC_WORKFLOWS.set("aws",new Ra.AwsServiceWorkflow);PT.OIDC_WORKFLOWS.set("azure",new Da.AzureServiceWorkflow);class DT extends wa.AuthProvider{constructor(){super()}async auth(J){const{connection:Z,reauthenticating:$,response:X}=J,Y=LT(J);await wT(Y).execute(Z,Y,$,X)}async prepare(J,Z){const $=LT(Z),Y=await wT($).speculativeAuth($);return{...J,...Y}}}PT.MongoDBOIDC=DT});var CT=V((BT)=>{Object.defineProperty(BT,"__esModule",{value:!0});BT.Plain=void 0;var Ia=H1(),Na=E(),Ba=y(),Ea=Y8();class NT extends Ea.AuthProvider{async auth(J){const{connection:Z,credentials:$}=J;if(!$)throw new Na.MongoMissingCredentialsError("AuthContext must provide credentials.");const{username:X,password:Y}=$,K={saslStart:1,mechanism:"PLAIN",payload:new Ia.Binary(Buffer.from(`\0${X}\0${Y}`)),autoAuthorize:1};await Z.commandAsync(Ba.ns("$external.$cmd"),K,void 0)}}BT.Plain=NT});var OT=V((P61,ST)=>{var F8=function(J,Z){if(!(this instanceof F8))return new F8(J,Z);this.length=0,this.updates=[],this.path=new Uint16Array(4),this.pages=new Array(32768),this.maxPages=this.pages.length,this.level=0,this.pageSize=J||1024,this.deduplicate=Z?Z.deduplicate:null,this.zeros=this.deduplicate?SZ(this.deduplicate.length):null},Ca=function(J,Z){while(J.maxPages<Z){var $=J.pages;J.pages=new Array(32768),J.pages[0]=$,J.level++,J.maxPages*=32768}},ha=function(J,Z){if(J.length===Z)return J;if(J.length>Z)return J.slice(0,Z);var $=SZ(Z);return J.copy($),$},SZ=function(J){if(Buffer.alloc)return Buffer.alloc(J);var Z=new Buffer(J);return Z.fill(0),Z},Sa=function(J){var Z=Buffer.allocUnsafe?Buffer.allocUnsafe(J.length):new Buffer(J.length);return J.copy(Z),Z},hT=function(J,Z){this.offset=J*Z.length,this.buffer=Z,this.updated=!1,this.deduplicate=0},Oa=function(J,Z){J=(J-(Z[0]=J&32767))/32768,J=(J-(Z[1]=J&32767))/32768,Z[3]=(J-(Z[2]=J&32767))/32768&32767};ST.exports=F8;F8.prototype.updated=function(J){while(this.deduplicate&&J.buffer[J.deduplicate]===this.deduplicate[J.deduplicate])if(J.deduplicate++,J.deduplicate===this.deduplicate.length){if(J.deduplicate=0,J.buffer.equals&&J.buffer.equals(this.deduplicate))J.buffer=this.deduplicate;break}if(J.updated||!this.updates)return;J.updated=!0,this.updates.push(J)};F8.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var J=this.updates.pop();return J.updated=!1,J};F8.prototype._array=function(J,Z){if(J>=this.maxPages){if(Z)return;Ca(this,J)}Oa(J,this.path);var $=this.pages;for(var X=this.level;X>0;X--){var Y=this.path[X],Q=$[Y];if(!Q){if(Z)return;Q=$[Y]=new Array(32768)}$=Q}return $};F8.prototype.get=function(J,Z){var $=this._array(J,Z),X=this.path[0],Y=$&&$[X];if(!Y&&!Z){if(Y=$[X]=new hT(J,SZ(this.pageSize)),J>=this.length)this.length=J+1}if(Y&&Y.buffer===this.deduplicate&&this.deduplicate&&!Z)Y.buffer=Sa(Y.buffer),Y.deduplicate=0;return Y};F8.prototype.set=function(J,Z){var $=this._array(J,!1),X=this.path[0];if(J>=this.length)this.length=J+1;if(!Z||this.zeros&&Z.equals&&Z.equals(this.zeros)){$[X]=void 0;return}if(this.deduplicate&&Z.equals&&Z.equals(this.deduplicate))Z=this.deduplicate;var Y=$[X],Q=ha(Z,this.pageSize);if(Y)Y.buffer=Q;else $[X]=new hT(J,Q)};F8.prototype.toBuffer=function(){var J=new Array(this.length),Z=SZ(this.pageSize),$=0;while($<J.length){var X=this._array($,!0);for(var Y=0;Y<32768&&$<J.length;Y++)J[$++]=X&&X[Y]?X[Y].buffer:Z}return Buffer.concat(J)}});var yT=V((T61,kT)=>{var p8=function(J){if(!(this instanceof p8))return new p8(J);if(!J)J={};if(Buffer.isBuffer(J))J={buffer:J};if(this.pageOffset=J.pageOffset||0,this.pageSize=J.pageSize||1024,this.pages=J.pages||ka(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,!_a(this.pageSize))throw new Error("The page size should be a power of two");if(this._trackUpdates=!!J.trackUpdates,this._pageMask=this.pageSize-1,J.buffer){for(var Z=0;Z<J.buffer.length;Z+=this.pageSize)this.pages.set(Z/this.pageSize,J.buffer.slice(Z,Z+this.pageSize));this.byteLength=J.buffer.length,this.length=8*this.byteLength}},ya=function(J){if(Buffer.alloc)return Buffer.alloc(J);var Z=new Buffer(J);return Z.fill(0),Z},_a=function(J){return!(J&J-1)},ka=OT();kT.exports=p8;p8.prototype.get=function(J){var Z=J&7,$=(J-Z)/8;return!!(this.getByte($)&128>>Z)};p8.prototype.getByte=function(J){var Z=J&this._pageMask,$=(J-Z)/this.pageSize,X=this.pages.get($,!0);return X?X.buffer[Z+this.pageOffset]:0};p8.prototype.set=function(J,Z){var $=J&7,X=(J-$)/8,Y=this.getByte(X);return this.setByte(X,Z?Y|128>>$:Y&(255^128>>$))};p8.prototype.toBuffer=function(){var J=ya(this.pages.length*this.pageSize);for(var Z=0;Z<this.pages.length;Z++){var $=this.pages.get(Z,!0),X=Z*this.pageSize;if($)$.buffer.copy(J,X,this.pageOffset,this.pageOffset+this.pageSize)}return J};p8.prototype.setByte=function(J,Z){var $=J&this._pageMask,X=(J-$)/this.pageSize,Y=this.pages.get(X,!1);if($+=this.pageOffset,Y.buffer[$]===Z)return!1;if(Y.buffer[$]=Z,J>=this.byteLength)this.byteLength=J+1,this.length=this.byteLength*8;if(this._trackUpdates)this.pages.updated(Y);return!0}});var fT=V((_T)=>{Object.defineProperty(_T,"__esModule",{value:!0});var fa=import.meta.require("zlib");_T.default=fa.gunzipSync(Buffer.from("H4sIAAAAAAACA+3dTYgcWR0A8FfTnekQ47aCkBxiZpYV8RhwYQM7bA/ksoLgSRD0IOSiePAkLrowvWSF4CkHEW856MlTQHA9RKZ1ZJODsEcVcTOyhxUEbXdXtpPp1PNVV39Uz4czEyaTVOb3G6a7XtWrr/devX49/+qekG2Go7Aa2jHGyozG+Dmrzi2mP/xb/zMhLI+WlRm2byubm2h0ivVi7BYzusVjuNkt1l9uFWsutWL8OP4rzV9KeXdsKx1HFhbSc6vIG0fKBZ14UNfLFS6FRrGRtXh98ZvphL/x4uLV/IOzaat/vlikv/TixavxR8PQitfPpKNbffXSwgtr8fV07GX+L1967urwg5W0/t0LV37y/oWFlQtX8ping7reXE3LT680r9yPKyn/3Vn64SwdVs6m/KN0yHrp9D+RvXsqpe6MSia5mH6LSog//Xq/++O74YVTjfDFWK2VIuNSemiPppphcVYeyzcudKqFMiq6cs3vVkrzlcnE0mxeZ1Jf2ZXsSvk8TmRZWYdpalydxd5bc8eUkt1wlEbtqTVLr8XQLFpKMb+dpr9SbSOt4ozTgXUq8+Ihm8cTt0shtCvT6dwao6sxPf5ydmU208/Z0yH8IZtlvZi3e5fG12yn3PLSdPvnQ7vsK9rxyKpqevzFZGVfu3YHezvbnbvit9Xdm5fGbf/MZ7PuuNrTjLJnaofH7gm0h+VKU/g/tdUocrer3cO4yOcuycGoyLrba6Ta+lrlnkZ5ntvWCrfV39wLTuNg9QvsvHb37P8BAGCP0eNTOH5szf154JmnNQIcn7b+FziyAfX4eWnn+C6Lm4M0mj31ubkViiDV4WLvs56qN54xGS3HWER5su6nQtZubl9tcY/4atbr9e5kWewew/g2a8fdy2Yaa97+pgQAAAAAAIBHtt+dYmWwaN/byI5g/9PYVfMvb4YvvDpOLJxvFgueP9VbPXh8/yCZViZxNYATaejmDQAAAACgfjJ/3QUA4JD3Px1InT+5PtQCAAAAAAAAAKD2xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP6G6+khVCgSAAAAAAAAAKidYQjLYVfNcPSyAE+dhQsnvAAq59/VHAAAAAAAAOCJmv8E/w4HiLqf3nWuWCB1pe0esg/pT3sKd+m4XjhpFpZH3/1THTcU6cfRLnrHf3ZNPZs+bf9rwPuIUPYAWb+j/Zy0EaAxAAAAAADwrPJ1IMBenu6ea99M+0W/17wCAAAAAAAAnGRLm8oA4JnQUAQAAAAAAAAAUHvi/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/jdX0ECsUCQAAAAAAAADUTiMCAAAAAAAAAHU3VAQAAAAAAAAAUH8hLNf1uwsWbhT/uWBzUEx/ei1Nxc001VqrnN2wuRjCK3G4HuNgtuJoSVj17Q9QyBQBAAAAAAAAHMKpuJ4/+Otc5L2XZi8dJlQ/LCPXhc4keJ9UI9uFre3rDfY9uoXZPQBFHL34HSWWm8sx5rH83d967IfZMRZHHG/2Qi8MFnbscXnhnzHei5NND8P2bW2OT3G8vFeebBHbz9dGEf5jDt+fK4/mTve1bnwndsNL92+mE/75xhs/yz65Ed/ZbP29SP96oxvCDxrxcjj333R262/d6X6tG66lYy/z/+rtMn83nHvv9nfOv/dw4+pvspCl4v7+1npa/nHvtbSvjSJ/mf79/VuLC7N03LiW8o/SMU8ldO+jPOul1OVQ3vVwK+TZqBLCt3/RXvveS7eaD0L8YyhrJeV/cC0WGTdD1hzlCo2H98vzK9a+963V7qRVTeaNa+ZGpWp+N62jSmOetJD8dn67fB4n8nzchG7n4+os2tcgzLWUQVg70rta8lE7nqW7IW710v7eDsV1F7e6433njYfd9j9Gl2KIveptMePVamOXQuhXO5tUk6Pv+kiPX43T7/3YevDy4MN+HLw8CHPX6OqOOwKe73z0+pnf3rvT6pX76j/SUU7/3UjqX5r7ZW7PdZU8Vq2id+29Pphdh3n1Tqp/t0aXaWVOPnsFGre+waRdpKf/TK+7fiX3bOWluVeJg77AAPNDwr37fwAA2GP0+BSOHwcn6/231ghwfPr6X+DIBtTj582d47s8LD3xMeYktt+YHXHe6XQuH9P4Nu+H3ctmGmve/qYEAAAAAACAR7bfnWJlsGgSNNoM54tPZ23EI4vYzPY1/fzq1ud/GP/01jjx8P2tYsG7DzrrB4/vHySTz5YB+n8AAAAAgJrJ/XEXAIDHEf/2yXUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgGdABAAAAAAAAADqbqgIAAAAAAAAAKD2hv8DWK79UBhoBgA=","base64"))});var bT=V((J0)=>{var S7=function(){const J=vT.default.readUInt32BE(V9);V9+=4;const Z=vT.default.slice(V9,V9+J);return V9+=J,xa.default({buffer:Z})},xT=J0&&J0.__importDefault||function(J){return J&&J.__esModule?J:{default:J}};Object.defineProperty(J0,"__esModule",{value:!0});J0.bidirectional_l=J0.bidirectional_r_al=J0.prohibited_characters=J0.non_ASCII_space_characters=J0.commonly_mapped_to_nothing=J0.unassigned_code_points=void 0;var xa=xT(yT()),vT=xT(fT()),V9=0;J0.unassigned_code_points=S7();J0.commonly_mapped_to_nothing=S7();J0.non_ASCII_space_characters=S7();J0.prohibited_characters=S7();J0.bidirectional_r_al=S7();J0.bidirectional_l=S7()});var dT=V((B61,uT)=>{var mT=function(J){const Z=[],$=J.length;for(let X=0;X<$;X+=1){const Y=J.charCodeAt(X);if(Y>=55296&&Y<=56319&&$>X+1){const Q=J.charCodeAt(X+1);if(Q>=56320&&Q<=57343){Z.push((Y-55296)*1024+Q-56320+65536),X+=1;continue}}Z.push(Y)}return Z},z9=function(J,Z={}){if(typeof J!=="string")throw new TypeError("Expected string.");if(J.length===0)return"";const $=mT(J).map((W)=>ba.get(W)?32:W).filter((W)=>!ga.get(W)),X=String.fromCodePoint.apply(null,$).normalize("NFKC"),Y=mT(X);if(Y.some((W)=>l8.prohibited_characters.get(W)))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(Z.allowUnassigned!==!0){if(Y.some((H)=>l8.unassigned_code_points.get(H)))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5")}const K=Y.some((W)=>l8.bidirectional_r_al.get(W)),G=Y.some((W)=>l8.bidirectional_l.get(W));if(K&&G)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const F=l8.bidirectional_r_al.get(gT(ma(X))),q=l8.bidirectional_r_al.get(gT(ua(X)));if(K&&!(F&&q))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return X},l8=bT(),ba=l8.non_ASCII_space_characters,ga=l8.commonly_mapped_to_nothing,gT=(J)=>J.codePointAt(0),ma=(J)=>J[0],ua=(J)=>J[J.length-1];z9.saslprep=z9;z9.default=z9;uT.exports=z9});var eT=V((rT)=>{var lT=function(J){return J.replace("=","=3D").replace(",","=2C")},aT=function(J,Z){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(J,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(Z.toString("base64"),"utf8")])},iT=function(J,Z,$){const X=lT(Z.username);return{saslStart:1,mechanism:J==="sha1"?cT.AuthMechanism.MONGODB_SCRAM_SHA1:cT.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new SQ.Binary(Buffer.concat([Buffer.from("n,,","utf8"),aT(X,$)])),autoAuthorize:1,options:{skipEmptyExchange:!0}}};async function la(J,Z){const{connection:$,credentials:X}=Z;if(!X)throw new U6.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!Z.nonce)throw new U6.MongoInvalidArgumentError("AuthContext must contain a valid nonce property");const Y=Z.nonce,Q=X.source,K=iT(J,X,Y),G=await $.commandAsync(OQ.ns(`${Q}.\$cmd`),K,void 0);await sT(J,G,Z)}async function sT(J,Z,$){const{connection:X,credentials:Y}=$;if(!Y)throw new U6.MongoMissingCredentialsError("AuthContext must provide credentials.");if(!$.nonce)throw new U6.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce");const Q=$.nonce,K=Y.source,G=lT(Y.username),F=Y.password,q=J==="sha256"?da.saslprep(F):aa(G,F),W=Buffer.isBuffer(Z.payload)?new SQ.Binary(Z.payload):Z.payload,H=pT(W),U=parseInt(H.i,10);if(U&&U<4096)throw new U6.MongoRuntimeError(`Server returned an invalid iteration count ${U}`);const{s:j,r:z}=H;if(z.startsWith("nonce"))throw new U6.MongoRuntimeError(`Server returned an invalid nonce: ${z}`);const A=`c=biws,r=${z}`,T=ra(q,Buffer.from(j,"base64"),U,J),w=OZ(J,T,"Client Key"),N=OZ(J,T,"Server Key"),P=sa(J,w),f=[aT(G,Q),W.toString("utf8"),A].join(","),$0=OZ(J,P,f),A8=`p=${ia(w,$0)}`,k=[A,A8].join(","),B=OZ(J,N,f),Q1={saslContinue:1,conversationId:Z.conversationId,payload:new SQ.Binary(Buffer.from(k))},g=await X.commandAsync(OQ.ns(`${K}.\$cmd`),Q1,void 0),_=pT(g.payload);if(!oa(Buffer.from(_.v,"base64"),B))throw new U6.MongoRuntimeError("Server returned an invalid signature");if(g.done!==!1)return;const C={saslContinue:1,conversationId:g.conversationId,payload:Buffer.alloc(0)};await X.commandAsync(OQ.ns(`${K}.\$cmd`),C,void 0)}var pT=function(J){const Z=J.toString("utf8"),$={},X=Z.split(",");for(let Y=0;Y<X.length;Y++){const Q=X[Y].split("=");$[Q[0]]=Q[1]}return $},aa=function(J,Z){if(typeof J!=="string")throw new U6.MongoInvalidArgumentError("Username must be a string");if(typeof Z!=="string")throw new U6.MongoInvalidArgumentError("Password must be a string");if(Z.length===0)throw new U6.MongoInvalidArgumentError("Password cannot be empty");let $;try{$=a8.createHash("md5")}catch(X){if(a8.getFips())throw new Error("Auth mechanism SCRAM-SHA-1 is not supported in FIPS mode");throw X}return $.update(`${J}:mongo:${Z}`,"utf8"),$.digest("hex")},ia=function(J,Z){if(!Buffer.isBuffer(J))J=Buffer.from(J);if(!Buffer.isBuffer(Z))Z=Buffer.from(Z);const $=Math.max(J.length,Z.length),X=[];for(let Y=0;Y<$;Y+=1)X.push(J[Y]^Z[Y]);return Buffer.from(X).toString("base64")},sa=function(J,Z){return a8.createHash(J).update(Z).digest()},OZ=function(J,Z,$){return a8.createHmac(J,Z).update($).digest()},na=function(){kZ={},kQ=0},ra=function(J,Z,$,X){const Y=[J,Z.toString("base64"),$].join("_");if(kZ[Y]!=null)return kZ[Y];const Q=a8.pbkdf2Sync(J,Z,$,ta[X],X);if(kQ>=200)na();return kZ[Y]=Q,kQ+=1,Q},oa=function(J,Z){if(J.length!==Z.length)return!1;if(typeof a8.timingSafeEqual==="function")return a8.timingSafeEqual(J,Z);let $=0;for(let X=0;X<J.length;X++)$|=J[X]^Z[X];return $===0};Object.defineProperty(rT,"__esModule",{value:!0});rT.ScramSHA256=rT.ScramSHA1=void 0;var da=dT(),a8=import.meta.require("crypto"),ca=import.meta.require("util"),SQ=H1(),U6=E(),OQ=y(),pa=Y8(),cT=O6();class yQ extends pa.AuthProvider{constructor(J){super();this.cryptoMethod=J||"sha1",this.randomBytesAsync=ca.promisify(a8.randomBytes)}async prepare(J,Z){const $=this.cryptoMethod,X=Z.credentials;if(!X)throw new U6.MongoMissingCredentialsError("AuthContext must provide credentials.");const Y=await this.randomBytesAsync(24);return Z.nonce=Y,{...J,speculativeAuthenticate:{...iT($,X,Y),db:X.source}}}async auth(J){const{reauthenticating:Z,response:$}=J;if($?.speculativeAuthenticate&&!Z)return sT(this.cryptoMethod,$.speculativeAuthenticate,J);return la(this.cryptoMethod,J)}}var kZ={},kQ=0,ta={sha256:32,sha1:20};class nT extends yQ{constructor(){super("sha1")}}rT.ScramSHA1=nT;class tT extends yQ{constructor(){super("sha256")}}rT.ScramSHA256=tT});var QI=V((XI)=>{var ZI=function(J){const Z={authenticate:1,mechanism:"MONGODB-X509"};if(J.username)Z.user=J.username;return Z};Object.defineProperty(XI,"__esModule",{value:!0});XI.X509=void 0;var JI=E(),Ji=y(),Zi=Y8();class $I extends Zi.AuthProvider{async prepare(J,Z){const{credentials:$}=Z;if(!$)throw new JI.MongoMissingCredentialsError("AuthContext must provide credentials.");return{...J,speculativeAuthenticate:ZI($)}}async auth(J){const{connection:Z,credentials:$}=J;if(!$)throw new JI.MongoMissingCredentialsError("AuthContext must provide credentials.");if(J.response?.speculativeAuthenticate)return;await Z.commandAsync(Ji.ns("$external.$cmd"),ZI($),void 0)}}XI.X509=$I});var bQ=V((VI)=>{var vQ=function(J){if(J instanceof FI.OpMsgRequest)return M6.deepCopy(J.command);if(J.query?.$query){let X;if(J.ns==="admin.$cmd")X=Object.assign({},J.query.$query);else X={find:Yi(J)},Object.keys(KI).forEach((Y)=>{if(J.query[Y]!=null)X[KI[Y]]=M6.deepCopy(J.query[Y])});if(Object.keys(GI).forEach((Y)=>{const Q=Y;if(J[Q]!=null)X[GI[Q]]=M6.deepCopy(J[Q])}),Qi.forEach((Y)=>{if(J[Y])X[Y]=J[Y]}),J.pre32Limit!=null)X.limit=J.pre32Limit;if(J.query.$explain)return{explain:X};return X}const Z={},$={};if(J.query){for(let X in J.query)Z[X]=M6.deepCopy(J.query[X]);$.query=Z}for(let X in J){if(X==="query")continue;$[X]=M6.deepCopy(J[X])}return J.query?Z:$},Ki=function(J,Z){if(!Z)return Z;if(J instanceof FI.OpMsgRequest)return M6.deepCopy(Z.result?Z.result:Z);if(J.query&&J.query.$query!=null)return{ok:1,cursor:{id:M6.deepCopy(Z.cursorId),ns:Xi(J),firstBatch:M6.deepCopy(Z.documents)}};return M6.deepCopy(Z.result?Z.result:Z)},xQ=function(J){let Z;if("id"in J)Z=J.id;return{address:J.address,serviceId:J.serviceId,connectionId:Z}};Object.defineProperty(VI,"__esModule",{value:!0});VI.SENSITIVE_COMMANDS=VI.CommandFailedEvent=VI.CommandSucceededEvent=VI.CommandStartedEvent=void 0;var U9=v1(),M6=y(),FI=Y9();class qI{constructor(J,Z){this.name=U9.COMMAND_STARTED;const $=vQ(Z),X=_Q($),{address:Y,connectionId:Q,serviceId:K}=xQ(J);if(VI.SENSITIVE_COMMANDS.has(X))this.commandObj={},this.commandObj[X]=!0;this.address=Y,this.connectionId=Q,this.serviceId=K,this.requestId=Z.requestId,this.databaseName=Z.databaseName,this.commandName=X,this.command=fQ(X,$,$)}get hasServiceId(){return!!this.serviceId}}VI.CommandStartedEvent=qI;class WI{constructor(J,Z,$,X){this.name=U9.COMMAND_SUCCEEDED;const Y=vQ(Z),Q=_Q(Y),{address:K,connectionId:G,serviceId:F}=xQ(J);this.address=K,this.connectionId=G,this.serviceId=F,this.requestId=Z.requestId,this.commandName=Q,this.duration=M6.calculateDurationInMs(X),this.reply=fQ(Q,Y,Ki(Z,$))}get hasServiceId(){return!!this.serviceId}}VI.CommandSucceededEvent=WI;class HI{constructor(J,Z,$,X){this.name=U9.COMMAND_FAILED;const Y=vQ(Z),Q=_Q(Y),{address:K,connectionId:G,serviceId:F}=xQ(J);this.address=K,this.connectionId=G,this.serviceId=F,this.requestId=Z.requestId,this.commandName=Q,this.duration=M6.calculateDurationInMs(X),this.failure=fQ(Q,Y,$)}get hasServiceId(){return!!this.serviceId}}VI.CommandFailedEvent=HI;VI.SENSITIVE_COMMANDS=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]);var $i=new Set(["hello",U9.LEGACY_HELLO_COMMAND,U9.LEGACY_HELLO_COMMAND_CAMEL_CASE]),_Q=(J)=>Object.keys(J)[0],Xi=(J)=>J.ns,Yi=(J)=>J.ns.split(".")[1],fQ=(J,Z,$)=>VI.SENSITIVE_COMMANDS.has(J)||$i.has(J)&&Z.speculativeAuthenticate?{}:$,KI={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},GI={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"},Qi=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"]});var AI=V((MI)=>{var j9=function(J,Z){const $=J[fZ],X=$.getInt32();if(X==null)return Z();if(X<0)return Z(new gQ.MongoParseError(`Invalid message size: ${X}`));if(X>J.maxBsonMessageSize)return Z(new gQ.MongoParseError(`Invalid message size: ${X}, max allowed: ${J.maxBsonMessageSize}`));if(X>$.length)return Z();const Y=$.read(X),Q={length:Y.readInt32LE(0),requestId:Y.readInt32LE(4),responseTo:Y.readInt32LE(8),opCode:Y.readInt32LE(12)},K=()=>{if(J.isMonitoringConnection){const W=$.getInt32();if(W!=null&&W<=$.length)return!0}return!1};let G=Q.opCode===_Z.OP_MSG?M9.OpMsgResponse:M9.OpQueryResponse;if(Q.opCode!==_Z.OP_COMPRESSED){const W=Y.subarray(i8);if(K())return j9(J,Z);if(J.emit("message",new G(Y,Q,W)),$.length>=4)return j9(J,Z);return Z()}Q.fromCompressed=!0,Q.opCode=Y.readInt32LE(i8),Q.length=Y.readInt32LE(i8+4);const F=Y[i8+8],q=Y.slice(i8+9);G=Q.opCode===_Z.OP_MSG?M9.OpMsgResponse:M9.OpQueryResponse,mQ.decompress(F,q).then((W)=>{if(W.length!==Q.length)return Z(new gQ.MongoDecompressionError("Message body and message header must be the same length"));if(K())return j9(J,Z);if(J.emit("message",new G(Y,Q,W)),$.length>=4)return j9(J,Z);return Z()},(W)=>{return Z(W)})};Object.defineProperty(MI,"__esModule",{value:!0});MI.MessageStream=void 0;var Wi=import.meta.require("stream"),gQ=E(),Hi=y(),M9=Y9(),mQ=N7(),_Z=h8(),i8=16,zI=9,Vi=67108864,fZ=Symbol("buffer");class UI extends Wi.Duplex{constructor(J={}){super(J);this.isMonitoringConnection=!1,this.maxBsonMessageSize=J.maxBsonMessageSize||Vi,this[fZ]=new Hi.BufferPool}get buffer(){return this[fZ]}_write(J,Z,$){this[fZ].append(J),j9(this,$)}_read(){return}writeCommand(J,Z){const $=Z.agreedCompressor??"none";if($==="none"||!M9.OpCompressedRequest.canCompress(J)){const G=J.toBin();this.push(Array.isArray(G)?Buffer.concat(G):G);return}const X=Buffer.concat(J.toBin()),Y=X.slice(i8),Q=X.readInt32LE(12),K={agreedCompressor:$,zlibCompressionLevel:Z.zlibCompressionLevel??0};mQ.compress(K,Y).then((G)=>{const F=Buffer.alloc(i8);F.writeInt32LE(i8+zI+G.length,0),F.writeInt32LE(J.requestId,4),F.writeInt32LE(0,8),F.writeInt32LE(_Z.OP_COMPRESSED,12);const q=Buffer.alloc(zI);q.writeInt32LE(Q,0),q.writeInt32LE(Y.length,4),q.writeUInt8(mQ.Compressor[$],8),this.push(Buffer.concat([F,q,G]))},(G)=>{Z.cb(G)})}}MI.MessageStream=UI});var DI=V((wI)=>{Object.defineProperty(wI,"__esModule",{value:!0});wI.StreamDescription=void 0;var zi=d0(),Ui=x5(),Mi=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];class LI{constructor(J,Z){this.address=J,this.type=zi.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48000000,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=Z?.logicalSessionTimeoutMinutes,this.loadBalanced=!!Z?.loadBalanced,this.compressors=Z&&Z.compressors&&Array.isArray(Z.compressors)?Z.compressors:[]}receiveResponse(J){if(J==null)return;this.type=Ui.parseServerType(J);for(let Z of Mi){if(J[Z]!=null)this[Z]=J[Z];if("__nodejs_mock_server__"in J)this.__nodejs_mock_server__=J.__nodejs_mock_server__}if(J.compression)this.compressor=this.compressors.filter((Z)=>J.compression?.includes(Z))[0]}}wI.StreamDescription=LI});var A9=V((_I)=>{var hI=function(J){return J.description.logicalSessionTimeoutMinutes!=null},wi=function(J){const Z=J.description;if(Z==null)return!1;return k0.maxWireVersion(J)>=6&&!Z.__nodejs_mock_server__},SI=function(J,Z){if(Z.proxyHost)return Z.hostAddress.toString();const{remoteAddress:$,remotePort:X}=J;if(typeof $==="string"&&typeof X==="number")return k0.HostAddress.fromHostPort($,X).toString();return k0.uuidV4().toString("hex")},OI=function(J,Z,$,X){$=$??{};const Y={requestId:Z.requestId,cb:X,session:$.session,noResponse:typeof $.noResponse==="boolean"?$.noResponse:!1,documentsReturnedIn:$.documentsReturnedIn,useBigInt64:typeof $.useBigInt64==="boolean"?$.useBigInt64:!1,promoteLongs:typeof $.promoteLongs==="boolean"?$.promoteLongs:!0,promoteValues:typeof $.promoteValues==="boolean"?$.promoteValues:!0,promoteBuffers:typeof $.promoteBuffers==="boolean"?$.promoteBuffers:!1,bsonRegExp:typeof $.bsonRegExp==="boolean"?$.bsonRegExp:!1,enableUtf8Validation:typeof $.enableUtf8Validation==="boolean"?$.enableUtf8Validation:!0,raw:typeof $.raw==="boolean"?$.raw:!1,started:0};if(J[W0]&&J[W0].compressor){if(Y.agreedCompressor=J[W0].compressor,J[W0].zlibCompressionLevel)Y.zlibCompressionLevel=J[W0].zlibCompressionLevel}if(typeof $.socketTimeoutMS==="number")J[l1].setTimeout($.socketTimeoutMS);else if(J.socketTimeoutMS!==0)J[l1].setTimeout(J.socketTimeoutMS);if(J.monitorCommands)J.emit(R1.COMMAND_STARTED,new vZ.CommandStartedEvent(J,Z)),Y.started=k0.now(),Y.cb=(Q,K)=>{if(Q&&K?.ok!==1)J.emit(R1.COMMAND_FAILED,new vZ.CommandFailedEvent(J,Z,Q,Y.started));else if(K&&(K.ok===0||K.$err))J.emit(R1.COMMAND_FAILED,new vZ.CommandFailedEvent(J,Z,K,Y.started));else J.emit(R1.COMMAND_SUCCEEDED,new vZ.CommandSucceededEvent(J,Z,K,Y.started));if(typeof X==="function")X(Q,Q instanceof C1.MongoWriteConcernError?void 0:K)};if(!Y.noResponse)J[E1].set(Y.requestId,Y);try{J[_1].writeCommand(Z,Y)}catch(Q){if(!Y.noResponse){J[E1].delete(Y.requestId),Y.cb(Q);return}}if(Y.noResponse)Y.cb()};async function*kI(J){const Z=new k0.BufferPool,$=J.hello?.maxBsonMessageSize??Ri;for await(let[X]of Ai.on(J.socket,"data")){Z.append(X);const Y=Z.getInt32();if(Y==null)continue;if(Y<0)throw new C1.MongoParseError(`Invalid message size: ${Y}`);if(Y>$)throw new C1.MongoParseError(`Invalid message size: ${Y}, max allowed: ${$}`);if(Y>Z.length)continue;yield Z.read(Y)}}async function Di(J,Z,$){const X=ji.once(J.socket,"drain"),Y=$.agreedCompressor==="none"||!f7.OpCompressedRequest.canCompress(Z)?Z:new f7.OpCompressedRequest(Z,{agreedCompressor:$.agreedCompressor??"none",zlibCompressionLevel:$.zlibCompressionLevel??0}),Q=Buffer.concat(await Y.toBin());J.socket.push(Q),await X}async function*yI(J){for await(let Z of kI(J)){const $=await Li.decompressResponse(Z);if(yield $,!("moreToCome"in $)||!$.moreToCome)return}}async function Pi(J){for await(let Z of yI(J))return Z;throw new C1.MongoRuntimeError("unable to read message off of connection")}Object.defineProperty(_I,"__esModule",{value:!0});_I.read=_I.readMany=_I.writeCommand=_I.readWireProtocolMessages=_I.ModernConnection=_I.hasSessionSupport=_I.CryptoConnection=_I.Connection=void 0;var ji=import.meta.require("events"),Ai=import.meta.require("stream"),xZ=import.meta.require("timers"),TI=import.meta.require("util"),Z0=v1(),C1=E(),II=C0(),bZ=m5(),k0=y(),vZ=bQ(),f7=Y9(),NI=AI(),BI=DI(),Li=N7(),gZ=b3(),l1=Symbol("stream"),E1=Symbol("queue"),_1=Symbol("messageStream"),O7=Symbol("generation"),k7=Symbol("lastUseTime"),y7=Symbol("clusterTime"),W0=Symbol("description"),_7=Symbol("hello"),PI=Symbol("autoEncrypter"),s8=Symbol("delayedTimeoutId"),EI="Connection internal queue contains more than 1 operation description";class R1 extends II.TypedEventEmitter{constructor(J,Z){super();this.commandAsync=TI.promisify(($,X,Y,Q)=>this.command($,X,Y,Q)),this.id=Z.id,this.address=SI(J,Z),this.socketTimeoutMS=Z.socketTimeoutMS??0,this.monitorCommands=Z.monitorCommands,this.serverApi=Z.serverApi,this.closed=!1,this[_7]=null,this[y7]=null,this[W0]=new BI.StreamDescription(this.address,Z),this[O7]=Z.generation,this[k7]=k0.now(),this[E1]=new Map,this[_1]=new NI.MessageStream({...Z,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this[l1]=J,this[s8]=null,this[_1].on("message",($)=>this.onMessage($)),this[_1].on("error",($)=>this.onError($)),this[l1].on("close",()=>this.onClose()),this[l1].on("timeout",()=>this.onTimeout()),this[l1].on("error",()=>{}),this[l1].pipe(this[_1]),this[_1].pipe(this[l1])}get description(){return this[W0]}get hello(){return this[_7]}set hello(J){this[W0].receiveResponse(J),this[W0]=Object.freeze(this[W0]),this[_7]=J}set isMonitoringConnection(J){this[_1].isMonitoringConnection=J}get isMonitoringConnection(){return this[_1].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[O7]||0}set generation(J){this[O7]=J}get idleTime(){return k0.calculateDurationInMs(this[k7])}get clusterTime(){return this[y7]}get stream(){return this[l1]}markAvailable(){this[k7]=k0.now()}onError(J){this.cleanup(!0,J)}onClose(){const J=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new C1.MongoNetworkError(J))}onTimeout(){this[s8]=xZ.setTimeout(()=>{const J=`connection ${this.id} to ${this.address} timed out`,Z=this.hello==null;this.cleanup(!0,new C1.MongoNetworkTimeoutError(J,{beforeHandshake:Z}))},1).unref()}onMessage(J){const Z=this[s8];if(Z!=null)xZ.clearTimeout(Z),this[s8]=null;const $=this[l1].timeout??0;this[l1].setTimeout(0),this.emit("message",J);let X=this[E1].get(J.responseTo);if(!X&&this.isMonitoringConnection)if(this[E1].size>1)this.cleanup(!0,new C1.MongoRuntimeError(EI));else{const Q=this[E1].entries().next();if(Q.value!=null){const[K,G]=Q.value;X=G,this[E1].delete(K)}}if(!X)return;const Y=X.cb;if(this[E1].delete(J.responseTo),"moreToCome"in J&&J.moreToCome)this[E1].set(J.requestId,X),this[l1].setTimeout($);try{J.parse(X)}catch(Q){Y(Q);return}if(J.documents[0]){const Q=J.documents[0],K=X.session;if(K)bZ.updateSessionFromResponse(K,Q);if(Q.$clusterTime)this[y7]=Q.$clusterTime,this.emit(R1.CLUSTER_TIME_RECEIVED,Q.$clusterTime);if(Q.writeConcernError){Y(new C1.MongoWriteConcernError(Q.writeConcernError,Q),Q);return}if(Q.ok===0||Q.$err||Q.errmsg||Q.code){Y(new C1.MongoServerError(Q));return}}Y(void 0,J.documents[0])}destroy(J,Z){if(this.closed){process.nextTick(()=>Z?.());return}if(typeof Z==="function")this.once("close",()=>process.nextTick(()=>Z()));this.removeAllListeners(R1.PINNED),this.removeAllListeners(R1.UNPINNED);const $=`connection ${this.id} to ${this.address} closed`;this.cleanup(J.force,new C1.MongoNetworkError($))}cleanup(J,Z){if(this.closed)return;this.closed=!0;const $=()=>{for(let X of this[E1].values())X.cb(Z);this[E1].clear(),this.emit(R1.CLOSE)};if(this[l1].removeAllListeners(),this[_1].removeAllListeners(),this[_1].destroy(),J){this[l1].destroy(),$();return}if(!this[l1].writableEnded)this[l1].end(()=>{this[l1].destroy(),$()});else $()}command(J,Z,$,X){let Y={...Z};const Q=gZ.getReadPreference($),K=wi(this),G=$?.session;let F=this.clusterTime;if(this.serverApi){const{version:H,strict:U,deprecationErrors:j}=this.serverApi;if(Y.apiVersion=H,U!=null)Y.apiStrict=U;if(j!=null)Y.apiDeprecationErrors=j}if(hI(this)&&G){if(G.clusterTime&&F&&G.clusterTime.clusterTime.greaterThan(F.clusterTime))F=G.clusterTime;const H=bZ.applySession(G,Y,$);if(H)return X(H)}else if(G?.explicit)return X(new C1.MongoCompatibilityError("Current topology does not support sessions"));if(F)Y.$clusterTime=F;if(gZ.isSharded(this)&&!K&&Q&&Q.mode!=="primary")Y={$query:Y,$readPreference:Q.toJSON()};const q=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:Q.secondaryOk()},$),W=K?new f7.OpMsgRequest(J.db,Y,q):new f7.OpQueryRequest(J.db,Y,q);try{OI(this,W,q,X)}catch(H){X(H)}}}R1.COMMAND_STARTED=Z0.COMMAND_STARTED;R1.COMMAND_SUCCEEDED=Z0.COMMAND_SUCCEEDED;R1.COMMAND_FAILED=Z0.COMMAND_FAILED;R1.CLUSTER_TIME_RECEIVED=Z0.CLUSTER_TIME_RECEIVED;R1.CLOSE=Z0.CLOSE;R1.MESSAGE=Z0.MESSAGE;R1.PINNED=Z0.PINNED;R1.UNPINNED=Z0.UNPINNED;_I.Connection=R1;class CI extends R1{constructor(J,Z){super(J,Z);this[PI]=Z.autoEncrypter}command(J,Z,$,X){const Y=this[PI];if(!Y)return X(new C1.MongoMissingDependencyError("No AutoEncrypter available for encryption"));const Q=k0.maxWireVersion(this);if(Q===0)return super.command(J,Z,$,X);if(Q<8){X(new C1.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2"));return}const K=Z.find||Z.findAndModify?Z.sort:null,G=Z.createIndexes?Z.indexes.map((F)=>F.key):null;Y.encrypt(J.toString(),Z,$).then((F)=>{if(K!=null&&(Z.find||Z.findAndModify))F.sort=K;if(G!=null&&Z.createIndexes)for(let[q,W]of G.entries())F.indexes[q].key=W;super.command(J,F,$,(q,W)=>{if(q||W==null){X(q,W);return}Y.decrypt(W,$).then((H)=>X(void 0,H),(H)=>X(H))})},(F)=>{if(F)X(F,null)})}}_I.CryptoConnection=CI;_I.hasSessionSupport=hI;class _6 extends II.TypedEventEmitter{constructor(J,Z){super();this.commandAsync=TI.promisify(($,X,Y,Q)=>this.command($,X,Y,Q)),this.id=Z.id,this.address=SI(J,Z),this.socketTimeoutMS=Z.socketTimeoutMS??0,this.monitorCommands=Z.monitorCommands,this.serverApi=Z.serverApi,this.closed=!1,this[_7]=null,this[y7]=null,this[W0]=new BI.StreamDescription(this.address,Z),this[O7]=Z.generation,this[k7]=k0.now(),this[E1]=new Map,this[_1]=new NI.MessageStream({...Z,maxBsonMessageSize:this.hello?.maxBsonMessageSize}),this.socket=J,this[s8]=null,this[_1].on("message",($)=>this.onMessage($)),this[_1].on("error",($)=>this.onError($)),this.socket.on("close",()=>this.onClose()),this.socket.on("timeout",()=>this.onTimeout()),this.socket.on("error",()=>{}),this.socket.pipe(this[_1]),this[_1].pipe(this.socket)}get description(){return this[W0]}get hello(){return this[_7]}set hello(J){this[W0].receiveResponse(J),this[W0]=Object.freeze(this[W0]),this[_7]=J}set isMonitoringConnection(J){this[_1].isMonitoringConnection=J}get isMonitoringConnection(){return this[_1].isMonitoringConnection}get serviceId(){return this.hello?.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[O7]||0}set generation(J){this[O7]=J}get idleTime(){return k0.calculateDurationInMs(this[k7])}get clusterTime(){return this[y7]}get stream(){return this.socket}get hasSessionSupport(){return this.description.logicalSessionTimeoutMinutes!=null}get supportsOpMsg(){return this.description!=null&&k0.maxWireVersion(this)>=6&&!this.description.__nodejs_mock_server__}markAvailable(){this[k7]=k0.now()}onError(J){this.cleanup(!0,J)}onClose(){const J=`connection ${this.id} to ${this.address} closed`;this.cleanup(!0,new C1.MongoNetworkError(J))}onTimeout(){this[s8]=xZ.setTimeout(()=>{const J=`connection ${this.id} to ${this.address} timed out`,Z=this.hello==null;this.cleanup(!0,new C1.MongoNetworkTimeoutError(J,{beforeHandshake:Z}))},1).unref()}onMessage(J){const Z=this[s8];if(Z!=null)xZ.clearTimeout(Z),this[s8]=null;const $=this.socket.timeout??0;this.socket.setTimeout(0),this.emit("message",J);let X=this[E1].get(J.responseTo);if(!X&&this.isMonitoringConnection)if(this[E1].size>1)this.cleanup(!0,new C1.MongoRuntimeError(EI));else{const Q=this[E1].entries().next();if(Q.value!=null){const[K,G]=Q.value;X=G,this[E1].delete(K)}}if(!X)return;const Y=X.cb;if(this[E1].delete(J.responseTo),"moreToCome"in J&&J.moreToCome)this[E1].set(J.requestId,X),this.socket.setTimeout($);try{J.parse(X)}catch(Q){Y(Q);return}if(J.documents[0]){const Q=J.documents[0],K=X.session;if(K)bZ.updateSessionFromResponse(K,Q);if(Q.$clusterTime)this[y7]=Q.$clusterTime,this.emit(R1.CLUSTER_TIME_RECEIVED,Q.$clusterTime);if(Q.writeConcernError){Y(new C1.MongoWriteConcernError(Q.writeConcernError,Q),Q);return}if(Q.ok===0||Q.$err||Q.errmsg||Q.code){Y(new C1.MongoServerError(Q));return}}Y(void 0,J.documents[0])}destroy(J,Z){if(this.closed){process.nextTick(()=>Z?.());return}if(typeof Z==="function")this.once("close",()=>process.nextTick(()=>Z()));this.removeAllListeners(R1.PINNED),this.removeAllListeners(R1.UNPINNED);const $=`connection ${this.id} to ${this.address} closed`;this.cleanup(J.force,new C1.MongoNetworkError($))}cleanup(J,Z){if(this.closed)return;this.closed=!0;const $=()=>{for(let X of this[E1].values())X.cb(Z);this[E1].clear(),this.emit(R1.CLOSE)};if(this.socket.removeAllListeners(),this[_1].removeAllListeners(),this[_1].destroy(),J){this.socket.destroy(),$();return}if(!this.socket.writableEnded)this.socket.end(()=>{this.socket.destroy(),$()});else $()}command(J,Z,$,X){let Y={...Z};const Q=gZ.getReadPreference($),K=$?.session;let G=this.clusterTime;if(this.serverApi){const{version:W,strict:H,deprecationErrors:U}=this.serverApi;if(Y.apiVersion=W,H!=null)Y.apiStrict=H;if(U!=null)Y.apiDeprecationErrors=U}if(this.hasSessionSupport&&K){if(K.clusterTime&&G&&K.clusterTime.clusterTime.greaterThan(G.clusterTime))G=K.clusterTime;const W=bZ.applySession(K,Y,$);if(W)return X(W)}else if(K?.explicit)return X(new C1.MongoCompatibilityError("Current topology does not support sessions"));if(G)Y.$clusterTime=G;if(gZ.isSharded(this)&&!this.supportsOpMsg&&Q&&Q.mode!=="primary")Y={$query:Y,$readPreference:Q.toJSON()};const F=Object.assign({numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:Q.secondaryOk()},$),q=this.supportsOpMsg?new f7.OpMsgRequest(J.db,Y,F):new f7.OpQueryRequest(J.db,Y,F);try{OI(this,q,F,X)}catch(W){X(W)}}}_6.COMMAND_STARTED=Z0.COMMAND_STARTED;_6.COMMAND_SUCCEEDED=Z0.COMMAND_SUCCEEDED;_6.COMMAND_FAILED=Z0.COMMAND_FAILED;_6.CLUSTER_TIME_RECEIVED=Z0.CLUSTER_TIME_RECEIVED;_6.CLOSE=Z0.CLOSE;_6.MESSAGE=Z0.MESSAGE;_6.PINNED=Z0.PINNED;_6.UNPINNED=Z0.UNPINNED;_I.ModernConnection=_6;var Ri=67108864;_I.readWireProtocolMessages=kI;_I.writeCommand=Di;_I.readMany=yI;_I.read=Pi});var lQ=V((cI)=>{var gi=function(J,Z){dQ({...J,existingSocket:void 0},($,X)=>{if($||!X)return Z($);let Y=J.connectionType??xI.Connection;if(J.autoEncrypter)Y=xI.CryptoConnection;const Q=new Y(X,J);ui(Q,J).then(()=>Z(void 0,Q),(K)=>{Q.destroy({force:!1}),Z(K)})})},mi=function(J,Z){const $=Number(J.maxWireVersion),X=Number(J.minWireVersion),Y=!Number.isNaN($)&&$>=v7.MIN_SUPPORTED_WIRE_VERSION,Q=!Number.isNaN(X)&&X<=v7.MAX_SUPPORTED_WIRE_VERSION;if(Y){if(Q)return null;const G=`Server at ${Z.hostAddress} reports minimum wire version ${JSON.stringify(J.minWireVersion)}, but this version of the Node.js Driver requires at most ${v7.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${v7.MAX_SUPPORTED_SERVER_VERSION})`;return new h1.MongoCompatibilityError(G)}const K=`Server at ${Z.hostAddress} reports maximum wire version ${JSON.stringify(J.maxWireVersion)??0}, but this version of the Node.js Driver requires at least ${v7.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${v7.MIN_SUPPORTED_SERVER_VERSION})`;return new h1.MongoCompatibilityError(K)};async function ui(J,Z){const $=Z.credentials;if($){if($.mechanism!==r0.AuthMechanism.MONGODB_DEFAULT&&!cI.AUTH_PROVIDERS.get($.mechanism))throw new h1.MongoInvalidArgumentError(`AuthMechanism '${$.mechanism}' not supported`)}const X=new ki.AuthContext(J,$,Z);J.authContext=X;const Y=await uI(X),Q={...Z};if(typeof Z.connectTimeoutMS==="number")Q.socketTimeoutMS=Z.connectTimeoutMS;const K=(new Date()).getTime(),G=await J.commandAsync(mI.ns("admin.$cmd"),Y,Q);if(!("isWritablePrimary"in G))G.isWritablePrimary=G[gI.LEGACY_HELLO_COMMAND];if(G.helloOk)J.helloOk=!0;const F=mi(G,Z);if(F)throw F;if(Z.loadBalanced){if(!G.serviceId)throw new h1.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode.")}if(J.hello=G,J.lastHelloMS=(new Date()).getTime()-K,!G.arbiterOnly&&$){X.response=G;const q=$.resolveAuthMechanism(G),W=cI.AUTH_PROVIDERS.get(q.mechanism);if(!W)throw new h1.MongoInvalidArgumentError(`No AuthProvider for ${q.mechanism} defined.`);try{await W.auth(X)}catch(H){if(H instanceof h1.MongoError){if(H.addErrorLabel(h1.MongoErrorLabel.HandshakeError),h1.needsRetryableWriteLabel(H,G.maxWireVersion))H.addErrorLabel(h1.MongoErrorLabel.RetryableWriteError)}throw H}}}async function uI(J){const Z=J.options,$=Z.compressors?Z.compressors:[],{serverApi:X}=J.connection,Y={[X?.version||Z.loadBalanced===!0?"hello":gI.LEGACY_HELLO_COMMAND]:1,helloOk:!0,client:Z.metadata,compression:$};if(Z.loadBalanced===!0)Y.loadBalanced=!0;const Q=J.credentials;if(Q){if(Q.mechanism===r0.AuthMechanism.MONGODB_DEFAULT&&Q.username){Y.saslSupportedMechs=`${Q.source}.${Q.username}`;const G=cI.AUTH_PROVIDERS.get(r0.AuthMechanism.MONGODB_SCRAM_SHA256);if(!G)throw new h1.MongoInvalidArgumentError(`No AuthProvider for ${r0.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`);return G.prepare(Y,J)}const K=cI.AUTH_PROVIDERS.get(Q.mechanism);if(!K)throw new h1.MongoInvalidArgumentError(`No AuthProvider for ${Q.mechanism} defined.`);return K.prepare(Y,J)}return Y}var cQ=function(J){const Z=J.hostAddress;if(!Z)throw new h1.MongoInvalidArgumentError('Option "hostAddress" is required');const $={};for(let X of cI.LEGAL_TCP_SOCKET_OPTIONS)if(J[X]!=null)$[X]=J[X];if(typeof Z.socketPath==="string")return $.path=Z.socketPath,$;else if(typeof Z.host==="string")return $.host=Z.host,$.port=Z.port,$;else throw new h1.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(Z)}`)},di=function(J){const Z=cQ(J);for(let $ of cI.LEGAL_TLS_SOCKET_OPTIONS)if(J[$]!=null)Z[$]=J[$];if(J.existingSocket)Z.socket=J.existingSocket;if(Z.servername==null&&Z.host&&!bI.isIP(Z.host))Z.servername=Z.host;return Z},dQ=function(J,Z){const $=J.tls??!1,X=J.noDelay??!0,Y=J.connectTimeoutMS??30000,Q=J.rejectUnauthorized??!0,K=J.existingSocket;let G;const F=function(j,z){if(j&&G)G.destroy();Z(j,z)};if(J.proxyHost!=null)return li({...J,connectTimeoutMS:Y},F);if($){const j=Si.connect(di(J));if(typeof j.disableRenegotiation==="function")j.disableRenegotiation();G=j}else if(K)G=K;else G=bI.createConnection(cQ(J));G.setKeepAlive(!0,300000),G.setTimeout(Y),G.setNoDelay(X);const q=$?"secureConnect":"connect";let W;function H(j){return(z)=>{if(uQ.forEach((A)=>G.removeAllListeners(A)),W&&J.cancellationToken)J.cancellationToken.removeListener("cancel",W);G.removeListener(q,U),F(dI(j,z))}}function U(){if(uQ.forEach((j)=>G.removeAllListeners(j)),W&&J.cancellationToken)J.cancellationToken.removeListener("cancel",W);if("authorizationError"in G){if(G.authorizationError&&Q)return F(G.authorizationError)}G.setTimeout(0),F(void 0,G)}if(uQ.forEach((j)=>G.once(j,H(j))),J.cancellationToken)W=H("cancel"),J.cancellationToken.once("cancel",W);if(K)process.nextTick(U);else G.once(q,U)},pi=function(){if(L9==null){const J=Oi.getSocks();if("kModuleError"in J)throw J.kModuleError;L9=J}return L9},li=function(J,Z){const $=mI.HostAddress.fromHostPort(J.proxyHost??"",J.proxyPort??1080);dQ({...J,hostAddress:$,tls:!1,proxyHost:void 0},(X,Y)=>{if(X||!Y)return Z(X);const Q=cQ(J);if(typeof Q.host!=="string"||typeof Q.port!=="number")return Z(new h1.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"));try{L9??=pi()}catch(K){return Z(K)}L9.SocksClient.createConnection({existing_socket:Y,timeout:J.connectTimeoutMS,command:"connect",destination:{host:Q.host,port:Q.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:J.proxyUsername||void 0,password:J.proxyPassword||void 0}}).then(({socket:K})=>{dQ({...J,existingSocket:K,proxyHost:void 0},Z)},(K)=>Z(dI("error",K)))})},dI=function(J,Z){switch(J){case"error":return new h1.MongoNetworkError(h1.MongoError.buildErrorMessage(Z),{cause:Z});case"timeout":return new h1.MongoNetworkTimeoutError("connection timed out");case"close":return new h1.MongoNetworkError("connection closed");case"cancel":return new h1.MongoNetworkError("connection establishment was cancelled");default:return new h1.MongoNetworkError("unknown network error")}};Object.defineProperty(cI,"__esModule",{value:!0});cI.LEGAL_TCP_SOCKET_OPTIONS=cI.LEGAL_TLS_SOCKET_OPTIONS=cI.prepareHandshakeDocument=cI.connect=cI.AUTH_PROVIDERS=void 0;var bI=import.meta.require("net"),Si=import.meta.require("tls"),gI=v1(),Oi=H6(),h1=E(),mI=y(),ki=Y8(),yi=YZ(),_i=CP(),fi=kP(),vi=IT(),xi=CT(),r0=O6(),vI=eT(),bi=QI(),xI=A9(),v7=h8();cI.AUTH_PROVIDERS=new Map([[r0.AuthMechanism.MONGODB_AWS,new fi.MongoDBAWS],[r0.AuthMechanism.MONGODB_CR,new _i.MongoCR],[r0.AuthMechanism.MONGODB_GSSAPI,new yi.GSSAPI],[r0.AuthMechanism.MONGODB_OIDC,new vi.MongoDBOIDC],[r0.AuthMechanism.MONGODB_PLAIN,new xi.Plain],[r0.AuthMechanism.MONGODB_SCRAM_SHA1,new vI.ScramSHA1],[r0.AuthMechanism.MONGODB_SCRAM_SHA256,new vI.ScramSHA256],[r0.AuthMechanism.MONGODB_X509,new bi.X509]]);cI.connect=gi;cI.prepareHandshakeDocument=uI;cI.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"];cI.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];var ci=["error","close","timeout","parseError"],uQ=new Set(ci),L9=null});var mZ=V((JN)=>{Object.defineProperty(JN,"__esModule",{value:!0});JN.ServerHeartbeatFailedEvent=JN.ServerHeartbeatSucceededEvent=JN.ServerHeartbeatStartedEvent=JN.TopologyClosedEvent=JN.TopologyOpeningEvent=JN.TopologyDescriptionChangedEvent=JN.ServerClosedEvent=JN.ServerOpeningEvent=JN.ServerDescriptionChangedEvent=void 0;class lI{constructor(J,Z,$,X){this.topologyId=J,this.address=Z,this.previousDescription=$,this.newDescription=X}}JN.ServerDescriptionChangedEvent=lI;class aI{constructor(J,Z){this.topologyId=J,this.address=Z}}JN.ServerOpeningEvent=aI;class iI{constructor(J,Z){this.topologyId=J,this.address=Z}}JN.ServerClosedEvent=iI;class sI{constructor(J,Z,$){this.topologyId=J,this.previousDescription=Z,this.newDescription=$}}JN.TopologyDescriptionChangedEvent=sI;class nI{constructor(J){this.topologyId=J}}JN.TopologyOpeningEvent=nI;class tI{constructor(J){this.topologyId=J}}JN.TopologyClosedEvent=tI;class rI{constructor(J,Z){this.connectionId=J,this.awaited=Z}}JN.ServerHeartbeatStartedEvent=rI;class oI{constructor(J,Z,$,X){this.connectionId=J,this.duration=Z,this.reply=$??{},this.awaited=X}}JN.ServerHeartbeatSucceededEvent=oI;class eI{constructor(J,Z,$,X){this.connectionId=J,this.duration=Z,this.failure=$,this.awaited=X}}JN.ServerHeartbeatFailedEvent=eI});var aQ=V((zN)=>{Object.defineProperty(zN,"__esModule",{value:!0});zN.ConnectionPoolClearedEvent=zN.ConnectionCheckedInEvent=zN.ConnectionCheckedOutEvent=zN.ConnectionCheckOutFailedEvent=zN.ConnectionCheckOutStartedEvent=zN.ConnectionClosedEvent=zN.ConnectionReadyEvent=zN.ConnectionCreatedEvent=zN.ConnectionPoolClosedEvent=zN.ConnectionPoolReadyEvent=zN.ConnectionPoolCreatedEvent=zN.ConnectionPoolMonitoringEvent=void 0;var j6=v1();class y0{constructor(J){this.time=new Date,this.address=J.address}}zN.ConnectionPoolMonitoringEvent=y0;class $N extends y0{constructor(J){super(J);this.name=j6.CONNECTION_POOL_CREATED;const{maxConnecting:Z,maxPoolSize:$,minPoolSize:X,maxIdleTimeMS:Y,waitQueueTimeoutMS:Q}=J.options;this.options={maxConnecting:Z,maxPoolSize:$,minPoolSize:X,maxIdleTimeMS:Y,waitQueueTimeoutMS:Q}}}zN.ConnectionPoolCreatedEvent=$N;class XN extends y0{constructor(J){super(J);this.name=j6.CONNECTION_POOL_READY}}zN.ConnectionPoolReadyEvent=XN;class YN extends y0{constructor(J){super(J);this.name=j6.CONNECTION_POOL_CLOSED}}zN.ConnectionPoolClosedEvent=YN;class QN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_CREATED,this.connectionId=Z.id}}zN.ConnectionCreatedEvent=QN;class KN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_READY,this.connectionId=Z.id}}zN.ConnectionReadyEvent=KN;class GN extends y0{constructor(J,Z,$,X){super(J);this.name=j6.CONNECTION_CLOSED,this.connectionId=Z.id,this.reason=$,this.serviceId=Z.serviceId,this.error=X??null}}zN.ConnectionClosedEvent=GN;class FN extends y0{constructor(J){super(J);this.name=j6.CONNECTION_CHECK_OUT_STARTED}}zN.ConnectionCheckOutStartedEvent=FN;class qN extends y0{constructor(J,Z,$){super(J);this.name=j6.CONNECTION_CHECK_OUT_FAILED,this.reason=Z,this.error=$}}zN.ConnectionCheckOutFailedEvent=qN;class WN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_CHECKED_OUT,this.connectionId=Z.id}}zN.ConnectionCheckedOutEvent=WN;class HN extends y0{constructor(J,Z){super(J);this.name=j6.CONNECTION_CHECKED_IN,this.connectionId=Z.id}}zN.ConnectionCheckedInEvent=HN;class VN extends y0{constructor(J,Z={}){super(J);this.name=j6.CONNECTION_POOL_CLEARED,this.serviceId=Z.serviceId,this.interruptInUseConnections=Z.interruptInUseConnections}}zN.ConnectionPoolClearedEvent=VN});var sQ=V((LN)=>{Object.defineProperty(LN,"__esModule",{value:!0});LN.WaitQueueTimeoutError=LN.PoolClearedOnNetworkError=LN.PoolClearedError=LN.PoolClosedError=void 0;var uZ=E();class MN extends uZ.MongoDriverError{constructor(J){super("Attempted to check out a connection from closed connection pool");this.address=J.address}get name(){return"MongoPoolClosedError"}}LN.PoolClosedError=MN;class iQ extends uZ.MongoNetworkError{constructor(J,Z){const $=Z?Z:`Connection pool for ${J.address} was cleared because another operation failed with: "${J.serverError?.message}"`;super($,J.serverError?{cause:J.serverError}:void 0);this.address=J.address,this.addErrorLabel(uZ.MongoErrorLabel.PoolRequstedRetry)}get name(){return"MongoPoolClearedError"}}LN.PoolClearedError=iQ;class jN extends iQ{constructor(J){super(J,`Connection to ${J.address} interrupted due to server monitor timeout`)}get name(){return"PoolClearedOnNetworkError"}}LN.PoolClearedOnNetworkError=jN;class AN extends uZ.MongoDriverError{constructor(J,Z){super(J);this.address=Z}get name(){return"MongoWaitQueueTimeoutError"}}LN.WaitQueueTimeoutError=AN});var NN=V((TN)=>{Object.defineProperty(TN,"__esModule",{value:!0});TN.ConnectionPool=TN.PoolState=void 0;var x7=import.meta.require("timers"),e0=v1(),A6=E(),RN=C0(),R9=y(),DN=lQ(),dZ=A9(),a1=aQ(),b7=sQ(),js=_3(),cZ=Symbol("server"),q8=Symbol("connections"),g7=Symbol("pending"),n8=Symbol("checkedOut"),y4=Symbol("minPoolSizeTimer"),m7=Symbol("generation"),PN=Symbol("serviceGenerations"),pZ=Symbol("connectionCounter"),lZ=Symbol("cancellationToken"),W8=Symbol("waitQueue"),aZ=Symbol("cancelled"),iZ=Symbol("metrics"),sZ=Symbol("processingWaitQueue"),L6=Symbol("poolState");TN.PoolState=Object.freeze({paused:"paused",ready:"ready",closed:"closed"});class J1 extends RN.TypedEventEmitter{constructor(J,Z){super();if(this.options=Object.freeze({...Z,connectionType:dZ.Connection,maxPoolSize:Z.maxPoolSize??100,minPoolSize:Z.minPoolSize??0,maxConnecting:Z.maxConnecting??2,maxIdleTimeMS:Z.maxIdleTimeMS??0,waitQueueTimeoutMS:Z.waitQueueTimeoutMS??0,minPoolSizeCheckFrequencyMS:Z.minPoolSizeCheckFrequencyMS??100,autoEncrypter:Z.autoEncrypter,metadata:Z.metadata}),this.options.minPoolSize>this.options.maxPoolSize)throw new A6.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this[L6]=TN.PoolState.paused,this[cZ]=J,this[q8]=new R9.List,this[g7]=0,this[n8]=new Set,this[y4]=void 0,this[m7]=0,this[PN]=new Map,this[pZ]=R9.makeCounter(1),this[lZ]=new RN.CancellationToken,this[lZ].setMaxListeners(Infinity),this[W8]=new R9.List,this[iZ]=new js.ConnectionPoolMetrics,this[sZ]=!1,this.mongoLogger=this[cZ].topology.client.mongoLogger,this.component="connection",process.nextTick(()=>{this.emitAndLog(J1.CONNECTION_POOL_CREATED,new a1.ConnectionPoolCreatedEvent(this))})}get address(){return this.options.hostAddress.toString()}get closed(){return this[L6]===TN.PoolState.closed}get generation(){return this[m7]}get totalConnectionCount(){return this.availableConnectionCount+this.pendingConnectionCount+this.currentCheckedOutCount}get availableConnectionCount(){return this[q8].length}get pendingConnectionCount(){return this[g7]}get currentCheckedOutCount(){return this[n8].size}get waitQueueSize(){return this[W8].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[PN]}get serverError(){return this[cZ].description.error}get checkedOutConnections(){return this[n8]}waitQueueErrorMetrics(){return this[iZ].info(this.options.maxPoolSize)}ready(){if(this[L6]!==TN.PoolState.paused)return;this[L6]=TN.PoolState.ready,this.emitAndLog(J1.CONNECTION_POOL_READY,new a1.ConnectionPoolReadyEvent(this)),x7.clearTimeout(this[y4]),this.ensureMinPoolSize()}checkOut(J){this.emitAndLog(J1.CONNECTION_CHECK_OUT_STARTED,new a1.ConnectionCheckOutStartedEvent(this));const Z=this.options.waitQueueTimeoutMS,$={callback:J,timeoutController:new R9.TimeoutController(Z)};$.timeoutController.signal.addEventListener("abort",()=>{$[aZ]=!0,$.timeoutController.clear(),this.emitAndLog(J1.CONNECTION_CHECK_OUT_FAILED,new a1.ConnectionCheckOutFailedEvent(this,"timeout")),$.callback(new b7.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))}),this[W8].push($),process.nextTick(()=>this.processWaitQueue())}checkIn(J){if(!this[n8].has(J))return;const Z=this.closed,$=this.connectionIsStale(J),X=!!(Z||$||J.closed);if(!X)J.markAvailable(),this[q8].unshift(J);if(this[n8].delete(J),this.emitAndLog(J1.CONNECTION_CHECKED_IN,new a1.ConnectionCheckedInEvent(this,J)),X){const Y=J.closed?"error":Z?"poolClosed":"stale";this.destroyConnection(J,Y)}process.nextTick(()=>this.processWaitQueue())}clear(J={}){if(this.closed)return;if(this.loadBalanced){const{serviceId:Y}=J;if(!Y)throw new A6.MongoRuntimeError("ConnectionPool.clear() called in load balanced mode with no serviceId.");const Q=Y.toHexString(),K=this.serviceGenerations.get(Q);if(K==null)throw new A6.MongoRuntimeError("Service generations are required in load balancer mode.");else this.serviceGenerations.set(Q,K+1);this.emitAndLog(J1.CONNECTION_POOL_CLEARED,new a1.ConnectionPoolClearedEvent(this,{serviceId:Y}));return}const Z=J.interruptInUseConnections??!1,$=this[m7];this[m7]+=1;const X=this[L6]===TN.PoolState.paused;if(this[L6]=TN.PoolState.paused,this.clearMinPoolSizeTimer(),!X)this.emitAndLog(J1.CONNECTION_POOL_CLEARED,new a1.ConnectionPoolClearedEvent(this,{interruptInUseConnections:Z}));if(Z)process.nextTick(()=>this.interruptInUseConnections($));this.processWaitQueue()}interruptInUseConnections(J){for(let Z of this[n8])if(Z.generation<=J)this.checkIn(Z),Z.onError(new b7.PoolClearedOnNetworkError(this))}close(J,Z){let $=J;const X=Z??J;if(typeof $==="function")$={};if($=Object.assign({force:!1},$),this.closed)return X();if(this[lZ].emit("cancel"),typeof this[pZ].return==="function")this[pZ].return(void 0);this[L6]=TN.PoolState.closed,this.clearMinPoolSizeTimer(),this.processWaitQueue(),R9.eachAsync(this[q8].toArray(),(Y,Q)=>{this.emitAndLog(J1.CONNECTION_CLOSED,new a1.ConnectionClosedEvent(this,Y,"poolClosed")),Y.destroy({force:!!$.force},Q)},(Y)=>{this[q8].clear(),this.emitAndLog(J1.CONNECTION_POOL_CLOSED,new a1.ConnectionPoolClosedEvent(this)),X(Y)})}withConnection(J,Z,$){if(J){Z(void 0,J,(X,Y)=>{if(X)return this.withReauthentication(X,J,Z,$);$(void 0,Y)});return}this.checkOut((X,Y)=>{Z(X,Y,(Q,K)=>{if(Q)if(Y)this.withReauthentication(Q,Y,Z,$);else $(Q);else $(void 0,K);if(Y)this.checkIn(Y)})})}withReauthentication(J,Z,$,X){if(J instanceof A6.MongoError&&J.code===A6.MONGODB_ERROR_CODES.Reauthenticate)this.reauthenticate(Z,$,(Y,Q)=>{if(Y)return X(Y);X(void 0,Q)});else X(J)}reauthenticate(J,Z,$){const X=J.authContext;if(!X)return $(new A6.MongoRuntimeError("No auth context found on connection."));const Y=X.credentials;if(!Y)return $(new A6.MongoMissingCredentialsError("Connection is missing credentials when asked to reauthenticate"));const Q=Y.resolveAuthMechanism(J.hello||void 0),K=DN.AUTH_PROVIDERS.get(Q.mechanism);if(!K)return $(new A6.MongoMissingCredentialsError(`Reauthenticate failed due to no auth provider for ${Y.mechanism}`));K.reauth(X).then(()=>{Z(void 0,J,(G,F)=>{if(G)return $(G);$(void 0,F)})},(G)=>$(G))}clearMinPoolSizeTimer(){const J=this[y4];if(J)x7.clearTimeout(J)}destroyConnection(J,Z){this.emitAndLog(J1.CONNECTION_CLOSED,new a1.ConnectionClosedEvent(this,J,Z)),process.nextTick(()=>J.destroy({force:!1}))}connectionIsStale(J){const Z=J.serviceId;if(this.loadBalanced&&Z){const $=Z.toHexString(),X=this.serviceGenerations.get($);return J.generation!==X}return J.generation!==this[m7]}connectionIsIdle(J){return!!(this.options.maxIdleTimeMS&&J.idleTime>this.options.maxIdleTimeMS)}destroyConnectionIfPerished(J){const Z=this.connectionIsStale(J),$=this.connectionIsIdle(J);if(!Z&&!$&&!J.closed)return!1;const X=J.closed?"error":Z?"stale":"idle";return this.destroyConnection(J,X),!0}createConnection(J){const Z={...this.options,id:this[pZ].next().value,generation:this[m7],cancellationToken:this[lZ]};this[g7]++,this.emitAndLog(J1.CONNECTION_CREATED,new a1.ConnectionCreatedEvent(this,{id:Z.id})),DN.connect(Z,($,X)=>{if($||!X){if(this[g7]--,this.emitAndLog(J1.CONNECTION_CLOSED,new a1.ConnectionClosedEvent(this,{id:Z.id,serviceId:void 0},"error",$)),$ instanceof A6.MongoNetworkError||$ instanceof A6.MongoServerError)$.connectionGeneration=Z.generation;J($??new A6.MongoRuntimeError("Connection creation failed without error"));return}if(this[L6]!==TN.PoolState.ready){this[g7]--,X.destroy({force:!0}),J(this.closed?new b7.PoolClosedError(this):new b7.PoolClearedError(this));return}for(let Y of[...e0.APM_EVENTS,dZ.Connection.CLUSTER_TIME_RECEIVED])X.on(Y,(Q)=>this.emit(Y,Q));if(this.loadBalanced){X.on(dZ.Connection.PINNED,(Q)=>this[iZ].markPinned(Q)),X.on(dZ.Connection.UNPINNED,(Q)=>this[iZ].markUnpinned(Q));const Y=X.serviceId;if(Y){let Q;const K=Y.toHexString();if(Q=this.serviceGenerations.get(K))X.generation=Q;else this.serviceGenerations.set(K,0),X.generation=0}}X.markAvailable(),this.emitAndLog(J1.CONNECTION_READY,new a1.ConnectionReadyEvent(this,X)),this[g7]--,J(void 0,X);return})}ensureMinPoolSize(){const J=this.options.minPoolSize;if(this[L6]!==TN.PoolState.ready||J===0)return;if(this[q8].prune((Z)=>this.destroyConnectionIfPerished(Z)),this.totalConnectionCount<J&&this.pendingConnectionCount<this.options.maxConnecting)this.createConnection((Z,$)=>{if(Z)this[cZ].handleError(Z);if(!Z&&$)this[q8].push($),process.nextTick(()=>this.processWaitQueue());if(this[L6]===TN.PoolState.ready)x7.clearTimeout(this[y4]),this[y4]=x7.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)});else x7.clearTimeout(this[y4]),this[y4]=x7.setTimeout(()=>this.ensureMinPoolSize(),this.options.minPoolSizeCheckFrequencyMS)}processWaitQueue(){if(this[sZ])return;this[sZ]=!0;while(this.waitQueueSize){const $=this[W8].first();if(!$){this[W8].shift();continue}if($[aZ]){this[W8].shift();continue}if(this[L6]!==TN.PoolState.ready){const Y=this.closed?"poolClosed":"connectionError",Q=this.closed?new b7.PoolClosedError(this):new b7.PoolClearedError(this);this.emitAndLog(J1.CONNECTION_CHECK_OUT_FAILED,new a1.ConnectionCheckOutFailedEvent(this,Y,Q)),$.timeoutController.clear(),this[W8].shift(),$.callback(Q);continue}if(!this.availableConnectionCount)break;const X=this[q8].shift();if(!X)break;if(!this.destroyConnectionIfPerished(X))this[n8].add(X),this.emitAndLog(J1.CONNECTION_CHECKED_OUT,new a1.ConnectionCheckedOutEvent(this,X)),$.timeoutController.clear(),this[W8].shift(),$.callback(void 0,X)}const{maxPoolSize:J,maxConnecting:Z}=this.options;while(this.waitQueueSize>0&&this.pendingConnectionCount<Z&&(J===0||this.totalConnectionCount<J)){const $=this[W8].shift();if(!$||$[aZ])continue;this.createConnection((X,Y)=>{if($[aZ]){if(!X&&Y)this[q8].push(Y)}else{if(X)this.emitAndLog(J1.CONNECTION_CHECK_OUT_FAILED,new a1.ConnectionCheckOutFailedEvent(this,"connectionError",X));else if(Y)this[n8].add(Y),this.emitAndLog(J1.CONNECTION_CHECKED_OUT,new a1.ConnectionCheckedOutEvent(this,Y));$.timeoutController.clear(),$.callback(X,Y)}process.nextTick(()=>this.processWaitQueue())})}this[sZ]=!1}}J1.CONNECTION_POOL_CREATED=e0.CONNECTION_POOL_CREATED;J1.CONNECTION_POOL_CLOSED=e0.CONNECTION_POOL_CLOSED;J1.CONNECTION_POOL_CLEARED=e0.CONNECTION_POOL_CLEARED;J1.CONNECTION_POOL_READY=e0.CONNECTION_POOL_READY;J1.CONNECTION_CREATED=e0.CONNECTION_CREATED;J1.CONNECTION_READY=e0.CONNECTION_READY;J1.CONNECTION_CLOSED=e0.CONNECTION_CLOSED;J1.CONNECTION_CHECK_OUT_STARTED=e0.CONNECTION_CHECK_OUT_STARTED;J1.CONNECTION_CHECK_OUT_FAILED=e0.CONNECTION_CHECK_OUT_FAILED;J1.CONNECTION_CHECKED_OUT=e0.CONNECTION_CHECKED_OUT;J1.CONNECTION_CHECKED_IN=e0.CONNECTION_CHECKED_IN;TN.ConnectionPool=J1});var eQ=V((EN)=>{var Ts=function(J,Z){if(J===-1)return Z;const $=0.2;return $*Z+(1-$)*J},nQ=function(J,Z){if(J.loadBalanced)return;if(Z instanceof U1.MongoNetworkError&&!(Z instanceof U1.MongoNetworkTimeoutError))J.monitor?.reset();J.emit(P0.DESCRIPTION_RECEIVED,new oQ.ServerDescription(J.description.hostAddress,void 0,{error:Z}))},Is=function(J,Z){if(Z)return Z.inTransaction()||"aggregate"in J||"find"in J||"getMore"in J||"listCollections"in J||"listIndexes"in J;return!1},Ns=function(J,Z){if(Z.serviceId)return Z.generation!==J.serviceGenerations.get(Z.serviceId.toHexString());return Z.generation!==J.generation},Bs=function(J,Z){const $=Z.topologyVersion,X=J.description.topologyVersion;return oQ.compareTopologyVersion(X,$)<0},tQ=function(J,Z){return J&&J.inTransaction()&&!rQ.isTransactionCommand(Z)},BN=function(J){return J.s.options.retryWrites!==!1},Es=function(J,Z,$,X,Y){const Q=X?.session;return function K(G,F){if(G==null&&F!=null)return Y(void 0,F);if(X!=null&&"noResponse"in X&&X.noResponse===!0)return Y(void 0,null);if(!G)return Y(new U1.MongoUnexpectedServerResponseError("Empty response with no error"));if(!(G instanceof U1.MongoError))return Y(G);if(Ns(J.pool,Z))return Y(G);if(G instanceof U1.MongoNetworkError){if(Q&&!Q.hasEnded&&Q.serverSession)Q.serverSession.isDirty=!0;if(tQ(Q,$)&&!G.hasErrorLabel(U1.MongoErrorLabel.TransientTransactionError))G.addErrorLabel(U1.MongoErrorLabel.TransientTransactionError);if((BN(J.topology)||rQ.isTransactionCommand($))&&nZ.supportsRetryableWrites(J)&&!tQ(Q,$))G.addErrorLabel(U1.MongoErrorLabel.RetryableWriteError)}else if((BN(J.topology)||rQ.isTransactionCommand($))&&U1.needsRetryableWriteLabel(G,nZ.maxWireVersion(J))&&!tQ(Q,$))G.addErrorLabel(U1.MongoErrorLabel.RetryableWriteError);if(Q&&Q.isPinned&&G.hasErrorLabel(U1.MongoErrorLabel.TransientTransactionError))Q.unpin({force:!0});return J.handleError(G,Z),Y(G)}};Object.defineProperty(EN,"__esModule",{value:!0});EN.Server=void 0;var As=import.meta.require("util"),Ls=A9(),ws=NN(),Rs=sQ(),f6=v1(),U1=E(),Ds=C0(),rQ=g3(),nZ=y(),F1=d0(),Ps=JK(),oQ=x5(),D9=nZ.makeStateMachine({[F1.STATE_CLOSED]:[F1.STATE_CLOSED,F1.STATE_CONNECTING],[F1.STATE_CONNECTING]:[F1.STATE_CONNECTING,F1.STATE_CLOSING,F1.STATE_CONNECTED,F1.STATE_CLOSED],[F1.STATE_CONNECTED]:[F1.STATE_CONNECTED,F1.STATE_CLOSING,F1.STATE_CLOSED],[F1.STATE_CLOSING]:[F1.STATE_CLOSING,F1.STATE_CLOSED]});class P0 extends Ds.TypedEventEmitter{constructor(J,Z,$){super();this.commandAsync=As.promisify((Y,Q,K,G)=>this.command(Y,Q,K,G)),this.serverApi=$.serverApi;const X={hostAddress:Z.hostAddress,...$};this.topology=J,this.pool=new ws.ConnectionPool(this,X),this.s={description:Z,options:$,state:F1.STATE_CLOSED,operationCount:0};for(let Y of[...f6.CMAP_EVENTS,...f6.APM_EVENTS])this.pool.on(Y,(Q)=>this.emit(Y,Q));if(this.pool.on(Ls.Connection.CLUSTER_TIME_RECEIVED,(Y)=>{this.clusterTime=Y}),this.loadBalanced){this.monitor=null;return}this.monitor=new Ps.Monitor(this,this.s.options);for(let Y of f6.HEARTBEAT_EVENTS)this.monitor.on(Y,(Q)=>this.emit(Y,Q));this.monitor.on("resetServer",(Y)=>nQ(this,Y)),this.monitor.on(P0.SERVER_HEARTBEAT_SUCCEEDED,(Y)=>{if(this.emit(P0.DESCRIPTION_RECEIVED,new oQ.ServerDescription(this.description.hostAddress,Y.reply,{roundTripTime:Ts(this.description.roundTripTime,Y.duration)})),this.s.state===F1.STATE_CONNECTING)D9(this,F1.STATE_CONNECTED),this.emit(P0.CONNECT,this)})}get clusterTime(){return this.topology.clusterTime}set clusterTime(J){this.topology.clusterTime=J}get description(){return this.s.description}get name(){return this.s.description.address}get autoEncrypter(){if(this.s.options&&this.s.options.autoEncrypter)return this.s.options.autoEncrypter;return}get loadBalanced(){return this.topology.description.type===F1.TopologyType.LoadBalanced}connect(){if(this.s.state!==F1.STATE_CLOSED)return;if(D9(this,F1.STATE_CONNECTING),!this.loadBalanced)this.monitor?.connect();else D9(this,F1.STATE_CONNECTED),this.emit(P0.CONNECT,this)}destroy(J,Z){if(typeof J==="function")Z=J,J={force:!1};if(J=Object.assign({},{force:!1},J),this.s.state===F1.STATE_CLOSED){if(typeof Z==="function")Z();return}if(D9(this,F1.STATE_CLOSING),!this.loadBalanced)this.monitor?.close();this.pool.close(J,($)=>{if(D9(this,F1.STATE_CLOSED),this.emit("closed"),typeof Z==="function")Z($)})}requestCheck(){if(!this.loadBalanced)this.monitor?.requestCheck()}command(J,Z,$,X){if(X==null)throw new U1.MongoInvalidArgumentError("Callback must be provided");if(J.db==null||typeof J==="string")throw new U1.MongoInvalidArgumentError("Namespace must not be a string");if(this.s.state===F1.STATE_CLOSING||this.s.state===F1.STATE_CLOSED){X(new U1.MongoServerClosedError);return}const Y=Object.assign({},$,{wireProtocolCommand:!1});if(Y.omitReadPreference)delete Y.readPreference;const Q=Y.session,K=Q?.pinnedConnection;if(this.loadBalanced&&Q&&K==null&&Is(Z,Q)){this.pool.checkOut((G,F)=>{if(G||F==null){if(X)return X(G);return}Q.pin(F),this.command(J,Z,Y,X)});return}this.incrementOperationCount(),this.pool.withConnection(K,(G,F,q)=>{if(G||!F){if(this.decrementOperationCount(),!G)return q(new U1.MongoRuntimeError("Failed to create connection without error"));if(!(G instanceof Rs.PoolClearedError))this.handleError(G);return q(G)}F.command(J,Z,Y,Es(this,F,Z,Y,(W,H)=>{this.decrementOperationCount(),q(W,H)}))},X)}handleError(J,Z){if(!(J instanceof U1.MongoError))return;if(J.connectionGeneration&&J.connectionGeneration<this.pool.generation)return;const X=J instanceof U1.MongoNetworkError&&!(J instanceof U1.MongoNetworkTimeoutError),Y=U1.isNetworkErrorBeforeHandshake(J),Q=J.hasErrorLabel(U1.MongoErrorLabel.HandshakeError);if(X||Y||Q){if(!this.loadBalanced)J.addErrorLabel(U1.MongoErrorLabel.ResetPool),nQ(this,J);else if(Z)this.pool.clear({serviceId:Z.serviceId})}else if(U1.isSDAMUnrecoverableError(J)){if(Bs(this,J)){const K=nZ.maxWireVersion(this)<=7||U1.isNodeShuttingDownError(J);if(this.loadBalanced&&Z&&K)this.pool.clear({serviceId:Z.serviceId});if(!this.loadBalanced){if(K)J.addErrorLabel(U1.MongoErrorLabel.ResetPool);nQ(this,J),process.nextTick(()=>this.requestCheck())}}}}decrementOperationCount(){return this.s.operationCount-=1}incrementOperationCount(){return this.s.operationCount+=1}}P0.SERVER_HEARTBEAT_STARTED=f6.SERVER_HEARTBEAT_STARTED;P0.SERVER_HEARTBEAT_SUCCEEDED=f6.SERVER_HEARTBEAT_SUCCEEDED;P0.SERVER_HEARTBEAT_FAILED=f6.SERVER_HEARTBEAT_FAILED;P0.CONNECT=f6.CONNECT;P0.DESCRIPTION_RECEIVED=f6.DESCRIPTION_RECEIVED;P0.CLOSED=f6.CLOSED;P0.ENDED=f6.ENDED;EN.Server=P0});var JK=V((vN)=>{var N9=function(J){return J.s.state===i1.STATE_CLOSED||J.s.state===i1.STATE_CLOSING},ON=function(J){J[v6]?.stop(),J[v6]=void 0,J.rttPinger?.close(),J.rttPinger=void 0,J[f4].emit("cancel"),J[H8]?.destroy({force:!0}),J[H8]=void 0},$K=function(J,Z){if(Z==null)return!1;const $=J.options.serverMonitoringMode;if($===vN.ServerMonitoringMode.poll)return!1;if($===vN.ServerMonitoringMode.stream)return!0;if(J.isRunningInFaasEnv)return!1;return!0},Os=function(J,Z){let $=_0.now();const X=J[tZ].description.topologyVersion,Y=$K(J,X);J.emit(T9.Server.SERVER_HEARTBEAT_STARTED,new P9.ServerHeartbeatStartedEvent(J.address,Y));function Q(G,F){J[H8]?.destroy({force:!0}),J[H8]=void 0,J.emit(T9.Server.SERVER_HEARTBEAT_FAILED,new P9.ServerHeartbeatFailedEvent(J.address,_0.calculateDurationInMs($),G,F));const q=!(G instanceof u7.MongoError)?new u7.MongoError(u7.MongoError.buildErrorMessage(G),{cause:G}):G;if(q.addErrorLabel(u7.MongoErrorLabel.ResetPool),q instanceof u7.MongoNetworkTimeoutError)q.addErrorLabel(u7.MongoErrorLabel.InterruptInUseConnections);J.emit("resetServer",q),Z(G)}const K=J[H8];if(K&&!K.closed){const{serverApi:G,helloOk:F}=K,q=J.options.connectTimeoutMS,W=J.options.heartbeatFrequencyMS,H={[G?.version||F?"hello":ZK.LEGACY_HELLO_COMMAND]:1,...Y&&X?{maxAwaitTimeMS:W,topologyVersion:ks(X)}:{}},U=Y?{socketTimeoutMS:q?q+W:0,exhaustAllowed:!0}:{socketTimeoutMS:q};if(Y&&J.rttPinger==null)J.rttPinger=new YK(J[f4],Object.assign({heartbeatFrequencyMS:J.options.heartbeatFrequencyMS},J.connectOptions));K.command(_0.ns("admin.$cmd"),H,U,(j,z)=>{if(j)return Q(j,Y);if(!("isWritablePrimary"in z))z.isWritablePrimary=z[ZK.LEGACY_HELLO_COMMAND];const A=Y&&J.rttPinger?J.rttPinger.roundTripTime:_0.calculateDurationInMs($);if(J.emit(T9.Server.SERVER_HEARTBEAT_SUCCEEDED,new P9.ServerHeartbeatSucceededEvent(J.address,A,z,Y)),Y)J.emit(T9.Server.SERVER_HEARTBEAT_STARTED,new P9.ServerHeartbeatStartedEvent(J.address,!0)),$=_0.now();else J.rttPinger?.close(),J.rttPinger=void 0,Z(void 0,z)});return}yN.connect(J.connectOptions,(G,F)=>{if(G){J[H8]=void 0,Q(G,!1);return}if(F){if(F.isMonitoringConnection=!0,N9(J)){F.destroy({force:!0});return}J[H8]=F,J.emit(T9.Server.SERVER_HEARTBEAT_SUCCEEDED,new P9.ServerHeartbeatSucceededEvent(J.address,_0.calculateDurationInMs($),F.hello,$K(J,F.hello?.topologyVersion))),Z(void 0,F.hello)}})},kN=function(J){return(Z)=>{if(J.s.state===_4){process.nextTick(Z);return}c7(J,_4);function $(){if(!N9(J))c7(J,d7);Z()}Os(J,(X,Y)=>{if(X){if(J[tZ].description.type===i1.ServerType.Unknown)return $()}if($K(J,Y?.topologyVersion))t8.setTimeout(()=>{if(!N9(J))J[v6]?.wake()},0);$()})}},ks=function(J){return{processId:J.processId,counter:hN.Long.isLong(J.counter)?J.counter:hN.Long.fromNumber(J.counter)}},fN=function(J,Z){const $=_0.now();Z.cancellationToken=J[f4];const X=Z.heartbeatFrequencyMS;if(J.closed)return;function Y(G){if(J.closed){G?.destroy({force:!0});return}if(J.connection==null)J.connection=G;J[I9]=_0.calculateDurationInMs($),J[v6]=t8.setTimeout(()=>fN(J,Z),X)}const Q=J.connection;if(Q==null){yN.connect(Z,(G,F)=>{if(G){J.connection=void 0,J[I9]=0;return}Y(F)});return}const K=Q.serverApi?.version||Q.helloOk?"hello":ZK.LEGACY_HELLO_COMMAND;Q.commandAsync(_0.ns("admin.$cmd"),{[K]:1},void 0).then(()=>Y(),()=>{J.connection?.destroy({force:!0}),J.connection=void 0,J[I9]=0;return})};Object.defineProperty(vN,"__esModule",{value:!0});vN.MonitorInterval=vN.RTTPinger=vN.Monitor=vN.ServerMonitoringMode=void 0;var t8=import.meta.require("timers"),hN=H1(),yN=lQ(),Cs=A9(),hs=$Q(),ZK=v1(),u7=E(),SN=C0(),_0=y(),i1=d0(),P9=mZ(),T9=eQ(),tZ=Symbol("server"),v6=Symbol("monitorId"),H8=Symbol("connection"),f4=Symbol("cancellationToken"),I9=Symbol("roundTripTime"),d7="idle",_4="monitoring",c7=_0.makeStateMachine({[i1.STATE_CLOSING]:[i1.STATE_CLOSING,d7,i1.STATE_CLOSED],[i1.STATE_CLOSED]:[i1.STATE_CLOSED,_4],[d7]:[d7,_4,i1.STATE_CLOSING],[_4]:[_4,d7,i1.STATE_CLOSING]}),Ss=new Set([i1.STATE_CLOSING,i1.STATE_CLOSED,_4]);vN.ServerMonitoringMode=Object.freeze({auto:"auto",poll:"poll",stream:"stream"});class _N extends SN.TypedEventEmitter{get connection(){return this[H8]}constructor(J,Z){super();this[tZ]=J,this[H8]=void 0,this[f4]=new SN.CancellationToken,this[f4].setMaxListeners(Infinity),this[v6]=void 0,this.s={state:i1.STATE_CLOSED},this.address=J.description.address,this.options=Object.freeze({connectTimeoutMS:Z.connectTimeoutMS??1e4,heartbeatFrequencyMS:Z.heartbeatFrequencyMS??1e4,minHeartbeatFrequencyMS:Z.minHeartbeatFrequencyMS??500,serverMonitoringMode:Z.serverMonitoringMode}),this.isRunningInFaasEnv=hs.getFAASEnv()!=null;const $=this[f4],X=Object.assign({id:"<monitor>",generation:J.pool.generation,connectionType:Cs.Connection,cancellationToken:$,hostAddress:J.description.hostAddress},Z,{raw:!1,useBigInt64:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!0});if(delete X.credentials,X.autoEncrypter)delete X.autoEncrypter;this.connectOptions=Object.freeze(X)}connect(){if(this.s.state!==i1.STATE_CLOSED)return;const J=this.options.heartbeatFrequencyMS,Z=this.options.minHeartbeatFrequencyMS;this[v6]=new rZ(kN(this),{heartbeatFrequencyMS:J,minHeartbeatFrequencyMS:Z,immediate:!0})}requestCheck(){if(Ss.has(this.s.state))return;this[v6]?.wake()}reset(){const J=this[tZ].description.topologyVersion;if(N9(this)||J==null)return;c7(this,i1.STATE_CLOSING),ON(this),c7(this,d7);const Z=this.options.heartbeatFrequencyMS,$=this.options.minHeartbeatFrequencyMS;this[v6]=new rZ(kN(this),{heartbeatFrequencyMS:Z,minHeartbeatFrequencyMS:$})}close(){if(N9(this))return;c7(this,i1.STATE_CLOSING),ON(this),this.emit("close"),c7(this,i1.STATE_CLOSED)}}vN.Monitor=_N;class YK{constructor(J,Z){this.connection=void 0,this[f4]=J,this[I9]=0,this.closed=!1;const $=Z.heartbeatFrequencyMS;this[v6]=t8.setTimeout(()=>fN(this,Z),$)}get roundTripTime(){return this[I9]}close(){this.closed=!0,t8.clearTimeout(this[v6]),this.connection?.destroy({force:!0}),this.connection=void 0}}vN.RTTPinger=YK;class rZ{constructor(J,Z={}){if(this.isExpeditedCallToFnScheduled=!1,this.stopped=!1,this.isExecutionInProgress=!1,this.hasExecutedOnce=!1,this._executeAndReschedule=()=>{if(this.stopped)return;if(this.timerId)t8.clearTimeout(this.timerId);this.isExpeditedCallToFnScheduled=!1,this.isExecutionInProgress=!0,this.fn(()=>{this.lastExecutionEnded=_0.now(),this.isExecutionInProgress=!1,this._reschedule(this.heartbeatFrequencyMS)})},this.fn=J,this.lastExecutionEnded=(-Infinity),this.heartbeatFrequencyMS=Z.heartbeatFrequencyMS??1000,this.minHeartbeatFrequencyMS=Z.minHeartbeatFrequencyMS??500,Z.immediate)this._executeAndReschedule();else this._reschedule(void 0)}wake(){const Z=_0.now()-this.lastExecutionEnded;if(Z<0)return this._executeAndReschedule();if(this.isExecutionInProgress)return;if(this.isExpeditedCallToFnScheduled)return;if(Z<this.minHeartbeatFrequencyMS){this.isExpeditedCallToFnScheduled=!0,this._reschedule(this.minHeartbeatFrequencyMS-Z);return}this._executeAndReschedule()}stop(){if(this.stopped=!0,this.timerId)t8.clearTimeout(this.timerId),this.timerId=void 0;this.lastExecutionEnded=(-Infinity),this.isExpeditedCallToFnScheduled=!1}toString(){return JSON.stringify(this)}toJSON(){const J=_0.now(),Z=J-this.lastExecutionEnded;return{timerId:this.timerId!=null?"set":"cleared",lastCallTime:this.lastExecutionEnded,isExpeditedCheckScheduled:this.isExpeditedCallToFnScheduled,stopped:this.stopped,heartbeatFrequencyMS:this.heartbeatFrequencyMS,minHeartbeatFrequencyMS:this.minHeartbeatFrequencyMS,currentTime:J,timeSinceLastCall:Z}}_reschedule(J){if(this.stopped)return;if(this.timerId)t8.clearTimeout(this.timerId);this.timerId=t8.setTimeout(this._executeAndReschedule,J||this.heartbeatFrequencyMS)}}vN.MonitorInterval=rZ});var HK=V((cN)=>{async function cs(J){if(typeof J.srvHost!=="string")throw new S.MongoAPIError('Option "srvHost" must not be empty');if(J.srvHost.split(".").length<3)throw new S.MongoAPIError("URI must include hostname, domain name, and tld");const Z=J.srvHost,$=await bN.promises.resolveSrv(`_${J.srvServiceName}._tcp.${Z}`);if($.length===0)throw new S.MongoAPIError("No addresses found at host");for(let{name:W}of $)if(!H0.matchesParentDomain(W,Z))throw new S.MongoAPIError("Server record does not share hostname with parent URI");const X=$.map((W)=>H0.HostAddress.fromString(`${W.name}:${W.port??27017}`));GK(X,J,!0);let Y;try{Y=await bN.promises.resolveTxt(Z)}catch(W){if(W.code!=="ENODATA"&&W.code!=="ENOTFOUND")throw W;return X}if(Y.length>1)throw new S.MongoParseError("Multiple text records not allowed");const Q=new vs.URLSearchParams(Y[0].join(""));if([...Q.keys()].some((W)=>!KK.includes(W)))throw new S.MongoParseError(`Text record may only set any of: ${KK.join(", ")}`);if(KK.some((W)=>Q.get(W)===""))throw new S.MongoParseError("Cannot have empty URI params in DNS TXT Record");const G=Q.get("authSource")??void 0,F=Q.get("replicaSet")??void 0,q=Q.get("loadBalanced")??void 0;if(!J.userSpecifiedAuthSource&&G&&J.credentials&&!x6.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(J.credentials.mechanism))J.credentials=p7.MongoCredentials.merge(J.credentials,{source:G});if(!J.userSpecifiedReplicaSet&&F)J.replicaSet=F;if(q==="true")J.loadBalanced=!0;if(J.replicaSet&&J.srvMaxHosts>0)throw new S.MongoParseError("Cannot combine replicaSet option with srvMaxHosts");return GK(X,J,!0),X}var ps=function(J){if(!J)return;const Z=($,X)=>{if(J.has($)&&J.has(X))throw new S.MongoAPIError(`The '${$}' option cannot be used with the '${X}' option`)};Z("tlsInsecure","tlsAllowInvalidCertificates"),Z("tlsInsecure","tlsAllowInvalidHostnames"),Z("tlsInsecure","tlsDisableCertificateRevocationCheck"),Z("tlsInsecure","tlsDisableOCSPEndpointCheck"),Z("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck"),Z("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck"),Z("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")},z8=function(J,Z){if(typeof Z==="boolean")return Z;switch(Z){case"true":return!0;case"false":return!1;default:throw new S.MongoParseError(`${J} must be either "true" or "false"`)}},qK=function(J,Z){const $=H0.parseInteger(Z);if($!=null)return $;throw new S.MongoParseError(`Expected ${J} to be stringified int value, got: ${Z}`)},B9=function(J,Z){const $=qK(J,Z);if($<0)throw new S.MongoParseError(`${J} can only be a positive int value, got: ${Z}`);return $};function*uN(J){if(J==="")return;const Z=J.split(",");for(let $ of Z){const[X,Y]=$.split(/:(.*)/);if(Y==null)throw new S.MongoParseError("Cannot have undefined values in key value pairs");yield[X,Y]}}var ls=function(J,Z=void 0,$={}){if(Z!=null&&!(Z instanceof oZ.MongoClient))$=Z,Z=void 0;if($.useBigInt64&&typeof $.promoteLongs==="boolean"&&!$.promoteLongs)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");if($.useBigInt64&&typeof $.promoteValues==="boolean"&&!$.promoteValues)throw new S.MongoAPIError("Must request either bigint or Long for int64 deserialization");const X=new fs.default(J),{hosts:Y,isSRV:Q}=X,K=Object.create(null);for(let w of Object.getOwnPropertySymbols($))if(cN.FEATURE_FLAGS.has(w))K[w]=$[w];K.hosts=Q?[]:Y.map(H0.HostAddress.fromString);const G=new E9;if(X.pathname!=="/"&&X.pathname!==""){const w=decodeURIComponent(X.pathname[0]==="/"?X.pathname.slice(1):X.pathname);if(w)G.set("dbName",[w])}if(X.username!==""){const w={username:decodeURIComponent(X.username)};if(typeof X.password==="string")w.password=decodeURIComponent(X.password);G.set("auth",[w])}for(let w of X.searchParams.keys()){const N=X.searchParams.getAll(w),P=/readPreferenceTags/i.test(w);if(!P&&N.length>1)throw new S.MongoInvalidArgumentError(`URI option "${w}" cannot appear more than once in the connection string`);if(!P&&N.includes(""))throw new S.MongoAPIError(`URI option "${w}" cannot be specified with no value`);if(!G.has(w))G.set(w,N)}const F=new E9(Object.entries($).filter(([,w])=>w!=null));if(G.has("serverApi"))throw new S.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client");const q=G.get("authMechanismProperties");if(q){for(let w of q)if(/(^|,)ALLOWED_HOSTS:/.test(w))throw new S.MongoParseError("Auth mechanism property ALLOWED_HOSTS is not allowed in the connection string.")}if(F.has("loadBalanced"))throw new S.MongoParseError("loadBalanced is only a valid option in the URI");const W=new E9,H=new Set([...G.keys(),...F.keys()]);for(let w of H){const N=[],P=F.get(w);if(P!=null)N.push(P);const f=G.get(w)??[];N.push(...f),W.set(w,N)}if(W.has("tls")||W.has("ssl")){const w=(W.get("tls")||[]).concat(W.get("ssl")||[]).map(z8.bind(null,"tls/ssl"));if(new Set(w).size!==1)throw new S.MongoParseError("All values of tls/ssl must be the same.")}ps(W);const U=H0.setDifference(H,Array.from(Object.keys(cN.OPTIONS)).map((w)=>w.toLowerCase()));if(U.size!==0){const w=U.size>1?"options":"option",N=U.size>1?"are":"is";throw new S.MongoParseError(`${w} ${Array.from(U).join(", ")} ${N} not supported`)}for(let[w,N]of Object.entries(cN.OPTIONS)){const P=W.get(w);if(!P||P.length===0){if(cN.DEFAULT_OPTIONS.has(w))dN(K,w,N,[cN.DEFAULT_OPTIONS.get(w)])}else{const{deprecated:f}=N;if(f){const $0=typeof f==="string"?`: ${f}`:"";H0.emitWarning(`${w} is a deprecated option${$0}`)}dN(K,w,N,P)}}if(K.credentials){const w=K.credentials.mechanism===x6.AuthMechanism.MONGODB_GSSAPI,N=K.credentials.mechanism===x6.AuthMechanism.MONGODB_X509,P=K.credentials.mechanism===x6.AuthMechanism.MONGODB_AWS,f=K.credentials.mechanism===x6.AuthMechanism.MONGODB_OIDC;if((w||N)&&W.has("authSource")&&K.credentials.source!=="$external")throw new S.MongoParseError(`authMechanism ${K.credentials.mechanism} requires an authSource of '\$external'`);if(!(w||N||P||f)&&K.dbName&&!W.has("authSource"))K.credentials=p7.MongoCredentials.merge(K.credentials,{source:K.dbName});if(P&&K.credentials.username&&!K.credentials.password)throw new S.MongoMissingCredentialsError(`When using ${K.credentials.mechanism} password must be set when a username is specified`);if(K.credentials.validate(),K.credentials.password===""&&K.credentials.username===""&&K.credentials.mechanism===x6.AuthMechanism.MONGODB_DEFAULT&&Object.keys(K.credentials.mechanismProperties).length===0)delete K.credentials}if(!K.dbName)K.dbName="test";if(GK(Y,K,Q),Z&&K.autoEncryption)mN.Encrypter.checkForMongoCrypt(),K.encrypter=new mN.Encrypter(Z,J,$),K.autoEncrypter=K.encrypter.autoEncrypter;if(K.userSpecifiedAuthSource=F.has("authSource")||G.has("authSource"),K.userSpecifiedReplicaSet=F.has("replicaSet")||G.has("replicaSet"),Q){if(K.srvHost=Y[0],K.directConnection)throw new S.MongoAPIError("SRV URI does not support directConnection");if(K.srvMaxHosts>0&&typeof K.replicaSet==="string")throw new S.MongoParseError("Cannot use srvMaxHosts option with replicaSet");const w=!F.has("tls")&&!G.has("tls"),N=!F.has("ssl")&&!G.has("ssl");if(w&&N)K.tls=!0}else if(G.has("srvMaxHosts")||F.has("srvMaxHosts")||G.has("srvServiceName")||F.has("srvServiceName"))throw new S.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string");if(K.directConnection&&K.hosts.length!==1)throw new S.MongoParseError("directConnection option requires exactly one host");if(!K.proxyHost&&(K.proxyPort||K.proxyUsername||K.proxyPassword))throw new S.MongoParseError("Must specify proxyHost if other proxy options are passed");if(K.proxyUsername&&!K.proxyPassword||!K.proxyUsername&&K.proxyPassword)throw new S.MongoParseError("Can only specify both of proxy username/password or neither");if(["proxyHost","proxyPort","proxyUsername","proxyPassword"].map((w)=>G.get(w)??[]).some((w)=>w.length>1))throw new S.MongoParseError("Proxy options cannot be specified multiple times in the connection string");const z=Symbol.for("@@mdb.enableMongoLogger");K[z]=K[z]??!1;let A={},T={};if(K[z])A={MONGODB_LOG_COMMAND:process.env.MONGODB_LOG_COMMAND,MONGODB_LOG_TOPOLOGY:process.env.MONGODB_LOG_TOPOLOGY,MONGODB_LOG_SERVER_SELECTION:process.env.MONGODB_LOG_SERVER_SELECTION,MONGODB_LOG_CONNECTION:process.env.MONGODB_LOG_CONNECTION,MONGODB_LOG_CLIENT:process.env.MONGODB_LOG_CLIENT,MONGODB_LOG_ALL:process.env.MONGODB_LOG_ALL,MONGODB_LOG_MAX_DOCUMENT_LENGTH:process.env.MONGODB_LOG_MAX_DOCUMENT_LENGTH,MONGODB_LOG_PATH:process.env.MONGODB_LOG_PATH,...K[Symbol.for("@@mdb.internalLoggerConfig")]},T={mongodbLogPath:K.mongodbLogPath,mongodbLogComponentSeverities:K.mongodbLogComponentSeverities,mongodbLogMaxDocumentLength:K.mongodbLogMaxDocumentLength};return K.mongoLoggerOptions=bs.MongoLogger.resolveOptions(A,T),K.metadata=xs.makeClientMetadata(K),K},GK=function(J,Z,$){if(Z.loadBalanced){if(J.length>1)throw new S.MongoParseError(ms);if(Z.replicaSet)throw new S.MongoParseError(us);if(Z.directConnection)throw new S.MongoParseError(ds);if($&&Z.srvMaxHosts>0)throw new S.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}return},dN=function(J,Z,$,X){const{target:Y,type:Q,transform:K}=$,G=Y??Z;switch(Q){case"boolean":J[G]=z8(G,X[0]);break;case"int":J[G]=qK(G,X[0]);break;case"uint":J[G]=B9(G,X[0]);break;case"string":if(X[0]==null)break;J[G]=String(X[0]);break;case"record":if(!H0.isRecord(X[0]))throw new S.MongoParseError(`${G} must be an object`);J[G]=X[0];break;case"any":J[G]=X[0];break;default:{if(!K)throw new S.MongoParseError("Descriptors missing a type must define a transform");const F=K({name:G,options:J,values:X});J[G]=F;break}}};Object.defineProperty(cN,"__esModule",{value:!0});cN.FEATURE_FLAGS=cN.DEFAULT_OPTIONS=cN.OPTIONS=cN.parseOptions=cN.resolveSRVRecord=void 0;var bN=import.meta.require("dns"),fs=oY(),vs=import.meta.require("url"),p7=KZ(),x6=O6(),xs=$Q(),gN=N7(),mN=jP(),S=E(),oZ=C4(),bs=RQ(),QK=c0(),r8=k1(),gs=JK(),H0=y(),V8=A0(),KK=["authSource","replicaSet","loadBalanced"],ms="loadBalanced option only supported with a single host in the URI",us="loadBalanced option not supported with a replicaSet option",ds="loadBalanced option not supported when directConnection is provided";cN.resolveSRVRecord=cs;class E9 extends Map{constructor(J=[]){super(J.map(([Z,$])=>[Z.toLowerCase(),$]))}has(J){return super.has(J.toLowerCase())}get(J){return super.get(J.toLowerCase())}set(J,Z){return super.set(J.toLowerCase(),Z)}delete(J){return super.delete(J.toLowerCase())}}cN.parseOptions=ls;cN.OPTIONS={appName:{type:"string"},auth:{target:"credentials",transform({name:J,options:Z,values:[$]}){if(!H0.isRecord($,["username","password"]))throw new S.MongoParseError(`${J} must be an object with 'username' and 'password' properties`);return p7.MongoCredentials.merge(Z.credentials,{username:$.username,password:$.password})}},authMechanism:{target:"credentials",transform({options:J,values:[Z]}){const $=Object.values(x6.AuthMechanism),[X]=$.filter((K)=>K.match(RegExp(String.raw`\b${Z}\b`,"i")));if(!X)throw new S.MongoParseError(`authMechanism one of ${$}, got ${Z}`);let Y=J.credentials?.source;if(X===x6.AuthMechanism.MONGODB_PLAIN||x6.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(X))Y="$external";let Q=J.credentials?.password;if(X===x6.AuthMechanism.MONGODB_X509&&Q==="")Q=void 0;return p7.MongoCredentials.merge(J.credentials,{mechanism:X,source:Y,password:Q})}},authMechanismProperties:{target:"credentials",transform({options:J,values:Z}){let $=Object.create(null);for(let X of Z)if(typeof X==="string")for(let[Y,Q]of uN(X))try{$[Y]=z8(Y,Q)}catch{$[Y]=Q}else{if(!H0.isRecord(X))throw new S.MongoParseError("AuthMechanismProperties must be an object");$={...X}}return p7.MongoCredentials.merge(J.credentials,{mechanismProperties:$})}},authSource:{target:"credentials",transform({options:J,values:[Z]}){const $=String(Z);return p7.MongoCredentials.merge(J.credentials,{source:$})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[J]}){const Z=typeof J==="string"?{version:J}:J,$=Z&&Z.version;if(!$)throw new S.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(oZ.ServerApiVersion).join('", "')}"]`);if(!Object.values(oZ.ServerApiVersion).some((X)=>X===$))throw new S.MongoParseError(`Invalid server API version=${$}; must be in the following enum: ["${Object.values(oZ.ServerApiVersion).join('", "')}"]`);return Z}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:J}){const Z=new Set;for(let $ of J){const X=typeof $==="string"?$.split(","):$;if(!Array.isArray(X))throw new S.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings");for(let Y of X)if(Object.keys(gN.Compressor).includes(String(Y)))Z.add(String(Y));else throw new S.MongoInvalidArgumentError(`${Y} is not a valid compression mechanism. Must be one of: ${Object.keys(gN.Compressor)}.`)}return[...Z]}},connectTimeoutMS:{default:30000,type:"uint"},dbName:{type:"string"},directConnection:{default:!1,type:"boolean"},driverInfo:{default:{},type:"record"},enableUtf8Validation:{type:"boolean",default:!0},family:{transform({name:J,values:[Z]}){const $=qK(J,Z);if($===4||$===6)return $;throw new S.MongoParseError(`Option 'family' must be 4 or 6 got ${$}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:!1,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:J,options:Z,values:[$]}){const X=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,fsync:z8(J,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from fsync=${$}`);return X}},heartbeatFrequencyMS:{default:1e4,type:"uint"},ignoreUndefined:{type:"boolean"},j:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:J,options:Z,values:[$]}){const X=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,journal:z8(J,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},journal:{target:"writeConcern",transform({name:J,options:Z,values:[$]}){const X=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,journal:z8(J,$)}});if(!X)throw new S.MongoParseError(`Unable to make a writeConcern from journal=${$}`);return X}},loadBalanced:{default:!1,type:"boolean"},localThresholdMS:{default:15,type:"uint"},maxConnecting:{default:2,transform({name:J,values:[Z]}){const $=B9(J,Z);if($===0)throw new S.MongoInvalidArgumentError("maxConnecting must be > 0 if specified");return $}},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:J,options:Z,values:[$]}){const X=B9(J,$);if(Z.readPreference)return r8.ReadPreference.fromOptions({readPreference:{...Z.readPreference,maxStalenessSeconds:X}});else return new r8.ReadPreference("secondary",void 0,{maxStalenessSeconds:X})}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:!1,type:"boolean"},name:{target:"driverInfo",transform({values:[J],options:Z}){return{...Z.driverInfo,name:String(J)}}},noDelay:{default:!0,type:"boolean"},pkFactory:{default:H0.DEFAULT_PK_FACTORY,transform({values:[J]}){if(H0.isRecord(J,["createPk"])&&typeof J.createPk==="function")return J;throw new S.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${J}`)}},promoteBuffers:{type:"boolean"},promoteLongs:{type:"boolean"},promoteValues:{type:"boolean"},useBigInt64:{type:"boolean"},proxyHost:{type:"string"},proxyPassword:{type:"string"},proxyPort:{type:"uint"},proxyUsername:{type:"string"},raw:{default:!1,type:"boolean"},readConcern:{transform({values:[J],options:Z}){if(J instanceof QK.ReadConcern||H0.isRecord(J,["level"]))return QK.ReadConcern.fromOptions({...Z.readConcern,...J});throw new S.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(J)}`)}},readConcernLevel:{target:"readConcern",transform({values:[J],options:Z}){return QK.ReadConcern.fromOptions({...Z.readConcern,level:J})}},readPreference:{default:r8.ReadPreference.primary,transform({values:[J],options:Z}){if(J instanceof r8.ReadPreference)return r8.ReadPreference.fromOptions({readPreference:{...Z.readPreference,...J},...J});if(H0.isRecord(J,["mode"])){const $=r8.ReadPreference.fromOptions({readPreference:{...Z.readPreference,...J},...J});if($)return $;else throw new S.MongoParseError(`Cannot make read preference from ${JSON.stringify(J)}`)}if(typeof J==="string"){const $={hedge:Z.readPreference?.hedge,maxStalenessSeconds:Z.readPreference?.maxStalenessSeconds};return new r8.ReadPreference(J,Z.readPreference?.tags,$)}throw new S.MongoParseError(`Unknown ReadPreference value: ${J}`)}},readPreferenceTags:{target:"readPreference",transform({values:J,options:Z}){const $=Array.isArray(J[0])?J[0]:J,X=[];for(let Y of $){const Q=Object.create(null);if(typeof Y==="string")for(let[K,G]of uN(Y))Q[K]=G;if(H0.isRecord(Y))for(let[K,G]of Object.entries(Y))Q[K]=G;X.push(Q)}return r8.ReadPreference.fromOptions({readPreference:Z.readPreference,readPreferenceTags:X})}},replicaSet:{type:"string"},retryReads:{default:!0,type:"boolean"},retryWrites:{default:!0,type:"boolean"},serializeFunctions:{type:"boolean"},serverMonitoringMode:{default:"auto",transform({values:[J]}){if(!Object.values(gs.ServerMonitoringMode).includes(J))throw new S.MongoParseError("serverMonitoringMode must be one of `auto`, `poll`, or `stream`");return J}},serverSelectionTimeoutMS:{default:30000,type:"uint"},servername:{type:"string"},socketTimeoutMS:{default:0,type:"uint"},srvMaxHosts:{type:"uint",default:0},srvServiceName:{type:"string",default:"mongodb"},ssl:{target:"tls",type:"boolean"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform({name:J,values:[Z]}){return!z8(J,Z)}},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform({name:J,values:[Z]}){return z8(J,Z)?()=>{return}:void 0}},tlsCAFile:{type:"string"},tlsCRLFile:{type:"string"},tlsCertificateKeyFile:{type:"string"},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:J,options:Z,values:[$]}){const X=z8(J,$);if(X)Z.checkServerIdentity=()=>{return},Z.rejectUnauthorized=!1;else Z.checkServerIdentity=Z.tlsAllowInvalidHostnames?()=>{return}:void 0,Z.rejectUnauthorized=Z.tlsAllowInvalidCertificates?!1:!0;return X}},w:{target:"writeConcern",transform({values:[J],options:Z}){return V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,w:J}})}},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[J],options:Z}){if(H0.isRecord(J)||J instanceof V8.WriteConcern)return V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,...J}});else if(J==="majority"||typeof J==="number")return V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,w:J}});throw new S.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(J)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[J],options:Z}){const $=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,wtimeout:B9("wtimeout",J)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[J],options:Z}){const $=V8.WriteConcern.fromOptions({writeConcern:{...Z.writeConcern,wtimeoutMS:B9("wtimeoutMS",J)}});if($)return $;throw new S.MongoParseError("Cannot make WriteConcern from wtimeout")}},zlibCompressionLevel:{default:0,type:"int"},connectionType:{type:"any"},srvPoller:{type:"any"},minDHSize:{type:"any"},pskCallback:{type:"any"},secureContext:{type:"any"},enableTrace:{type:"any"},requestCert:{type:"any"},rejectUnauthorized:{type:"any"},checkServerIdentity:{type:"any"},ALPNProtocols:{type:"any"},SNICallback:{type:"any"},session:{type:"any"},requestOCSP:{type:"any"},localAddress:{type:"any"},localPort:{type:"any"},hints:{type:"any"},lookup:{type:"any"},ca:{type:"any"},cert:{type:"any"},ciphers:{type:"any"},crl:{type:"any"},ecdhCurve:{type:"any"},key:{type:"any"},passphrase:{type:"any"},pfx:{type:"any"},secureProtocol:{type:"any"},index:{type:"any"},useNewUrlParser:{type:"boolean",deprecated:"useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version"},useUnifiedTopology:{type:"boolean",deprecated:"useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version"},mongodbLogPath:{type:"any"},mongodbLogComponentSeverities:{type:"any"},mongodbLogMaxDocumentLength:{type:"uint"}};cN.DEFAULT_OPTIONS=new E9(Object.entries(cN.OPTIONS).filter(([,J])=>J.default!=null).map(([J,Z])=>[J,Z.default]));cN.FEATURE_FLAGS=new Set([Symbol.for("@@mdb.skipPingOnConnect"),Symbol.for("@@mdb.enableMongoLogger"),Symbol.for("@@mdb.internalLoggerConfig")])});var UK=V((lN)=>{Object.defineProperty(lN,"__esModule",{value:!0});lN.SrvPoller=lN.SrvPollingEvent=void 0;var ss=import.meta.require("dns"),VK=import.meta.require("timers"),ns=E(),ts=C0(),pN=y();class zK{constructor(J){this.srvRecords=J}hostnames(){return new Set(this.srvRecords.map((J)=>pN.HostAddress.fromSrvRecord(J).toString()))}}lN.SrvPollingEvent=zK;class J$ extends ts.TypedEventEmitter{constructor(J){super();if(!J||!J.srvHost)throw new ns.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");this.srvHost=J.srvHost,this.srvMaxHosts=J.srvMaxHosts??0,this.srvServiceName=J.srvServiceName??"mongodb",this.rescanSrvIntervalMS=60000,this.heartbeatFrequencyMS=J.heartbeatFrequencyMS??1e4,this.haMode=!1,this.generation=0,this._timeout=void 0}get srvAddress(){return`_${this.srvServiceName}._tcp.${this.srvHost}`}get intervalMS(){return this.haMode?this.heartbeatFrequencyMS:this.rescanSrvIntervalMS}start(){if(!this._timeout)this.schedule()}stop(){if(this._timeout)VK.clearTimeout(this._timeout),this.generation+=1,this._timeout=void 0}schedule(){if(this._timeout)VK.clearTimeout(this._timeout);this._timeout=VK.setTimeout(()=>{this._poll().catch(()=>null)},this.intervalMS)}success(J){this.haMode=!1,this.schedule(),this.emit(J$.SRV_RECORD_DISCOVERY,new zK(J))}failure(){this.haMode=!0,this.schedule()}async _poll(){const J=this.generation;let Z;try{Z=await ss.promises.resolveSrv(this.srvAddress)}catch(X){this.failure();return}if(J!==this.generation)return;const $=[];for(let X of Z)if(pN.matchesParentDomain(X.name,this.srvHost))$.push(X);if(!$.length){this.failure();return}this.success($)}}J$.SRV_RECORD_DISCOVERY="srvRecordDiscovery";lN.SrvPoller=J$});var YB=V(($B)=>{var eN=function(J,Z,$,X){$=$??{force:!1};for(let Y of T0.LOCAL_SERVER_EVENTS)J.removeAllListeners(Y);J.destroy($,()=>{Z.emit(Y1.SERVER_CLOSED,new o8.ServerClosedEvent(Z.s.id,J.description.address));for(let Y of T0.SERVER_RELAY_EVENTS)J.removeAllListeners(Y);if(typeof X==="function")X()})},Jn=function(J){if(J?.directConnection)return u.TopologyType.Single;if(J?.replicaSet)return u.TopologyType.ReplicaSetNoPrimary;if(J?.loadBalanced)return u.TopologyType.LoadBalanced;return u.TopologyType.Unknown},JB=function(J,Z){J.emit(Y1.SERVER_OPENING,new o8.ServerOpeningEvent(J.s.id,Z.address));const $=new nN.Server(J,Z,J.s.options);for(let X of T0.SERVER_RELAY_EVENTS)$.on(X,(Y)=>J.emit(X,Y));return $.on(nN.Server.DESCRIPTION_RECEIVED,(X)=>J.serverUpdateHandler(X)),$.connect(),$},rN=function(J,Z){if(Z&&J.s.servers.has(Z.address)){const $=J.s.servers.get(Z.address);if($){if($.s.description=Z,Z.error instanceof M8.MongoError&&Z.error.hasErrorLabel(M8.MongoErrorLabel.ResetPool)){const X=Z.error.hasErrorLabel(M8.MongoErrorLabel.InterruptInUseConnections);$.pool.clear({interruptInUseConnections:X})}else if(Z.error==null){const X=J.s.description.type;if(Z.isDataBearing||Z.type!==u.ServerType.Unknown&&X===u.TopologyType.Single)$.pool.ready()}}}for(let $ of J.description.servers.values())if(!J.s.servers.has($.address)){const X=JB(J,$);J.s.servers.set($.address,X)}for(let $ of J.s.servers){const X=$[0];if(J.description.hasServer(X))continue;if(!J.s.servers.has(X))continue;const Y=J.s.servers.get(X);if(J.s.servers.delete(X),Y)eN(Y,J)}},ZB=function(J,Z){while(J.length){const $=J.shift();if(!$)continue;if($.timeoutController.clear(),!$[AK])$.callback(Z)}},oN=function(J){if(J.s.state===u.STATE_CLOSED){ZB(J[U8],new M8.MongoTopologyClosedError);return}const Z=J.description.type===u.TopologyType.Sharded,$=Array.from(J.description.servers.values()),X=J[U8].length;for(let Y=0;Y<X;++Y){const Q=J[U8].shift();if(!Q)continue;if(Q[AK])continue;let K;try{const q=Q.serverSelector;K=q?q(J.description,$):$}catch(q){Q.timeoutController.clear(),Q.callback(q);continue}let G;if(K.length===0){J[U8].push(Q);continue}else if(K.length===1)G=J.s.servers.get(K[0].address);else{const q=b6.shuffle(K,2),W=J.s.servers.get(q[0].address),H=J.s.servers.get(q[1].address);G=W&&H&&W.s.operationCount<H.s.operationCount?W:H}if(!G){Q.callback(new M8.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",J.description));return}const F=Q.transaction;if(Z&&F&&F.isActive&&G)F.pinServer(G);Q.timeoutController.clear(),Q.callback(void 0,G)}if(J[U8].length>0)for(let[,Y]of J.s.servers)process.nextTick(function Q(){return Y.requestCheck()})},Zn=function(J,Z){const X=J.servers.get(Z.address)?.topologyVersion;return jK.compareTopologyVersion(X,Z.topologyVersion)>0};Object.defineProperty($B,"__esModule",{value:!0});$B.ServerCapabilities=$B.Topology=void 0;var iN=import.meta.require("util"),sN=HK(),T0=v1(),M8=E(),os=C0(),C9=k1(),b6=y(),u=d0(),o8=mZ(),nN=eQ(),jK=x5(),MK=T5(),Z$=UK(),tN=v3(),es=0,h9=b6.makeStateMachine({[u.STATE_CLOSED]:[u.STATE_CLOSED,u.STATE_CONNECTING],[u.STATE_CONNECTING]:[u.STATE_CONNECTING,u.STATE_CLOSING,u.STATE_CONNECTED,u.STATE_CLOSED],[u.STATE_CONNECTED]:[u.STATE_CONNECTED,u.STATE_CLOSING,u.STATE_CLOSED],[u.STATE_CLOSING]:[u.STATE_CLOSING,u.STATE_CLOSED]}),AK=Symbol("cancelled"),U8=Symbol("waitQueue");class Y1 extends os.TypedEventEmitter{constructor(J,Z,$){super();if(this.client=J,this.selectServerAsync=iN.promisify((F,q,W)=>this.selectServer(F,q,W)),$=$??{hosts:[b6.HostAddress.fromString("localhost:27017")],...Object.fromEntries(sN.DEFAULT_OPTIONS.entries()),...Object.fromEntries(sN.FEATURE_FLAGS.entries())},typeof Z==="string")Z=[b6.HostAddress.fromString(Z)];else if(!Array.isArray(Z))Z=[Z];const X=[];for(let F of Z)if(typeof F==="string")X.push(b6.HostAddress.fromString(F));else if(F instanceof b6.HostAddress)X.push(F);else throw new M8.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(F)}`);const Y=Jn($),Q=es++,K=$.srvMaxHosts==null||$.srvMaxHosts===0||$.srvMaxHosts>=X.length?X:b6.shuffle(X,$.srvMaxHosts),G=new Map;for(let F of K)G.set(F.toString(),new jK.ServerDescription(F));if(this[U8]=new b6.List,this.s={id:Q,options:$,seedlist:X,state:u.STATE_CLOSED,description:new tN.TopologyDescription(Y,G,$.replicaSet,void 0,void 0,void 0,$),serverSelectionTimeoutMS:$.serverSelectionTimeoutMS,heartbeatFrequencyMS:$.heartbeatFrequencyMS,minHeartbeatFrequencyMS:$.minHeartbeatFrequencyMS,servers:new Map,credentials:$?.credentials,clusterTime:void 0,connectionTimers:new Set,detectShardedTopology:(F)=>this.detectShardedTopology(F),detectSrvRecords:(F)=>this.detectSrvRecords(F)},$.srvHost&&!$.loadBalanced)this.s.srvPoller=$.srvPoller??new Z$.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:$.srvHost,srvMaxHosts:$.srvMaxHosts,srvServiceName:$.srvServiceName}),this.on(Y1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology)}detectShardedTopology(J){const Z=J.previousDescription.type,$=J.newDescription.type,X=Z!==u.TopologyType.Sharded&&$===u.TopologyType.Sharded,Q=!!this.s.srvPoller?.listeners(Z$.SrvPoller.SRV_RECORD_DISCOVERY)?.includes(this.s.detectSrvRecords);if(X&&!Q)this.s.srvPoller?.on(Z$.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),this.s.srvPoller?.start()}detectSrvRecords(J){const Z=this.s.description;if(this.s.description=this.s.description.updateFromSrvPollingEvent(J,this.s.options.srvMaxHosts),this.s.description===Z)return;rN(this),this.emit(Y1.TOPOLOGY_DESCRIPTION_CHANGED,new o8.TopologyDescriptionChangedEvent(this.s.id,Z,this.s.description))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new LK(this.lastHello())}connect(J,Z){if(typeof J==="function")Z=J,J={};if(J=J??{},this.s.state===u.STATE_CONNECTED){if(typeof Z==="function")Z();return}h9(this,u.STATE_CONNECTING),this.emit(Y1.TOPOLOGY_OPENING,new o8.TopologyOpeningEvent(this.s.id)),this.emit(Y1.TOPOLOGY_DESCRIPTION_CHANGED,new o8.TopologyDescriptionChangedEvent(this.s.id,new tN.TopologyDescription(u.TopologyType.Unknown),this.s.description));const $=Array.from(this.s.description.servers.values());if(this.s.servers=new Map($.map((Q)=>[Q.address,JB(this,Q)])),this.s.options.loadBalanced)for(let Q of $){const K=new jK.ServerDescription(Q.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(K)}const X=(Q)=>Z?Z(Q):this.emit(Y1.ERROR,Q),Y=J.readPreference??C9.ReadPreference.primary;this.selectServer(MK.readPreferenceServerSelector(Y),J,(Q,K)=>{if(Q)return this.close({force:!1},()=>X(Q));if(this.s.options[Symbol.for("@@mdb.skipPingOnConnect")]!==!0&&K&&this.s.credentials){K.command(b6.ns("admin.$cmd"),{ping:1},{},(F)=>{if(F)return X(F);h9(this,u.STATE_CONNECTED),this.emit(Y1.OPEN,this),this.emit(Y1.CONNECT,this),Z?.(void 0,this)});return}h9(this,u.STATE_CONNECTED),this.emit(Y1.OPEN,this),this.emit(Y1.CONNECT,this),Z?.(void 0,this)})}close(J,Z){if(J=J??{force:!1},this.s.state===u.STATE_CLOSED||this.s.state===u.STATE_CLOSING)return Z?.();const $=Array.from(this.s.servers.values(),(X)=>{return iN.promisify(eN)(X,this,{force:!!J?.force})});Promise.all($).then(()=>{if(this.s.servers.clear(),h9(this,u.STATE_CLOSING),ZB(this[U8],new M8.MongoTopologyClosedError),u.drainTimerQueue(this.s.connectionTimers),this.s.srvPoller)this.s.srvPoller.stop(),this.s.srvPoller.removeListener(Z$.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords);this.removeListener(Y1.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),h9(this,u.STATE_CLOSED),this.emit(Y1.TOPOLOGY_CLOSED,new o8.TopologyClosedEvent(this.s.id))}).finally(()=>Z?.())}selectServer(J,Z,$){let X;if(typeof J!=="function")if(typeof J==="string")X=MK.readPreferenceServerSelector(C9.ReadPreference.fromString(J));else{let F;if(J instanceof C9.ReadPreference)F=J;else C9.ReadPreference.translate(Z),F=Z.readPreference||C9.ReadPreference.primary;X=MK.readPreferenceServerSelector(F)}else X=J;Z=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},Z);const Y=this.description.type===u.TopologyType.Sharded,Q=Z.session,K=Q&&Q.transaction;if(Y&&K&&K.server){$(void 0,K.server);return}const G={serverSelector:X,transaction:K,callback:$,timeoutController:new b6.TimeoutController(Z.serverSelectionTimeoutMS)};G.timeoutController.signal.addEventListener("abort",()=>{G[AK]=!0,G.timeoutController.clear();const F=new M8.MongoServerSelectionError(`Server selection timed out after ${Z.serverSelectionTimeoutMS} ms`,this.description);G.callback(F)}),this[U8].push(G),oN(this)}serverUpdateHandler(J){if(!this.s.description.hasServer(J.address))return;if(Zn(this.s.description,J))return;const Z=this.s.description,$=this.s.description.servers.get(J.address);if(!$)return;const X=J.$clusterTime;if(X)u._advanceClusterTime(this,X);const Y=$&&$.equals(J);if(this.s.description=this.s.description.update(J),this.s.description.compatibilityError){this.emit(Y1.ERROR,new M8.MongoCompatibilityError(this.s.description.compatibilityError));return}if(!Y){const Q=this.s.description.servers.get(J.address);if(Q)this.emit(Y1.SERVER_DESCRIPTION_CHANGED,new o8.ServerDescriptionChangedEvent(this.s.id,J.address,$,Q))}if(rN(this,J),this[U8].length>0)oN(this);if(!Y)this.emit(Y1.TOPOLOGY_DESCRIPTION_CHANGED,new o8.TopologyDescriptionChangedEvent(this.s.id,Z,this.s.description))}auth(J,Z){if(typeof J==="function")Z=J,J=void 0;if(typeof Z==="function")Z(void 0,!0)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===u.STATE_CONNECTED}isDestroyed(){return this.s.state===u.STATE_CLOSED}lastHello(){const J=Array.from(this.description.servers.values());if(J.length===0)return{};return J.filter((X)=>X.type!==u.ServerType.Unknown)[0]||{maxWireVersion:this.description.commonWireVersion}}get commonWireVersion(){return this.description.commonWireVersion}get logicalSessionTimeoutMinutes(){return this.description.logicalSessionTimeoutMinutes}get clusterTime(){return this.s.clusterTime}set clusterTime(J){this.s.clusterTime=J}}Y1.SERVER_OPENING=T0.SERVER_OPENING;Y1.SERVER_CLOSED=T0.SERVER_CLOSED;Y1.SERVER_DESCRIPTION_CHANGED=T0.SERVER_DESCRIPTION_CHANGED;Y1.TOPOLOGY_OPENING=T0.TOPOLOGY_OPENING;Y1.TOPOLOGY_CLOSED=T0.TOPOLOGY_CLOSED;Y1.TOPOLOGY_DESCRIPTION_CHANGED=T0.TOPOLOGY_DESCRIPTION_CHANGED;Y1.ERROR=T0.ERROR;Y1.OPEN=T0.OPEN;Y1.CONNECT=T0.CONNECT;Y1.CLOSE=T0.CLOSE;Y1.TIMEOUT=T0.TIMEOUT;$B.Topology=Y1;class LK{constructor(J){this.minWireVersion=J.minWireVersion||0,this.maxWireVersion=J.maxWireVersion||0}get hasAggregationCursor(){return this.maxWireVersion>=1}get hasWriteCommands(){return this.maxWireVersion>=2}get hasTextSearch(){return this.minWireVersion>=0}get hasAuthCommands(){return this.maxWireVersion>=1}get hasListCollectionsCommand(){return this.maxWireVersion>=3}get hasListIndexesCommand(){return this.maxWireVersion>=3}get supportsSnapshotReads(){return this.maxWireVersion>=13}get commandsTakeWriteConcern(){return this.maxWireVersion>=5}get commandsTakeCollation(){return this.maxWireVersion>=5}}$B.ServerCapabilities=LK});var C4=V((HB)=>{Object.defineProperty(HB,"__esModule",{value:!0});HB.MongoClient=HB.ServerApiVersion=void 0;var wK=import.meta.require("fs"),Xn=import.meta.require("util"),Yn=H1(),Qn=U7(),Kn=KZ(),Gn=O6(),QB=HK(),Fn=v1(),qn=JZ(),KB=E(),Wn=RQ(),Hn=C0(),Vn=L0(),zn=X7(),GB=k1(),Un=T5(),FB=YB(),qB=m5(),f0=y();HB.ServerApiVersion=Object.freeze({v1:"1"});var N1=Symbol("options");class WB extends Hn.TypedEventEmitter{constructor(J,Z){super();this[N1]=QB.parseOptions(J,this,Z),this.mongoLogger=new Wn.MongoLogger(this[N1].mongoLoggerOptions);const $=this;this.s={url:J,bsonOptions:Yn.resolveBSONOptions(this[N1]),namespace:f0.ns("admin"),hasBeenClosed:!1,sessionPool:new qB.ServerSessionPool(this),activeSessions:new Set,get options(){return $[N1]},get readConcern(){return $[N1].readConcern},get writeConcern(){return $[N1].writeConcern},get readPreference(){return $[N1].readPreference},get isMongoClient(){return!0}},this.checkForNonGenuineHosts()}checkForNonGenuineHosts(){const J=this[N1].hosts.filter((Y)=>f0.isHostMatch(f0.DOCUMENT_DB_CHECK,Y.host)),Z=f0.isHostMatch(f0.DOCUMENT_DB_CHECK,this[N1].srvHost),$=this[N1].hosts.filter((Y)=>f0.isHostMatch(f0.COSMOS_DB_CHECK,Y.host)),X=f0.isHostMatch(f0.COSMOS_DB_CHECK,this[N1].srvHost);if(J.length!==0||Z)this.mongoLogger.info("client",f0.DOCUMENT_DB_MSG);else if($.length!==0||X)this.mongoLogger.info("client",f0.COSMOS_DB_MSG)}get options(){return Object.freeze({...this[N1]})}get serverApi(){return this[N1].serverApi&&Object.freeze({...this[N1].serverApi})}get monitorCommands(){return this[N1].monitorCommands}set monitorCommands(J){this[N1].monitorCommands=J}get autoEncrypter(){return this[N1].autoEncrypter}get readConcern(){return this.s.readConcern}get writeConcern(){return this.s.writeConcern}get readPreference(){return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}async connect(){if(this.connectionLock)return this.connectionLock;try{this.connectionLock=this._connect(),await this.connectionLock}finally{this.connectionLock=void 0}return this}async _connect(){if(this.topology&&this.topology.isConnected())return this;const J=this[N1];if(J.tls){if(typeof J.tlsCAFile==="string")J.ca??=await wK.promises.readFile(J.tlsCAFile);if(typeof J.tlsCRLFile==="string")J.crl??=await wK.promises.readFile(J.tlsCRLFile);if(typeof J.tlsCertificateKeyFile==="string"){if(!J.key||!J.cert){const $=await wK.promises.readFile(J.tlsCertificateKeyFile);J.key??=$,J.cert??=$}}}if(typeof J.srvHost==="string"){const $=await QB.resolveSRVRecord(J);for(let[X,Y]of $.entries())J.hosts[X]=Y}if(J.credentials?.mechanism===Gn.AuthMechanism.MONGODB_OIDC){const $=J.credentials?.mechanismProperties?.ALLOWED_HOSTS||Kn.DEFAULT_ALLOWED_HOSTS;if(!J.credentials?.mechanismProperties?.PROVIDER_NAME){for(let Y of J.hosts)if(!f0.hostMatchesWildcards(Y.toHostPort().host,$))throw new KB.MongoInvalidArgumentError(`Host '${Y}' is not valid for OIDC authentication with ALLOWED_HOSTS of '${$.join(",")}'`)}}this.topology=new FB.Topology(this,J.hosts,J),this.topology.once(FB.Topology.OPEN,()=>this.emit("open",this));for(let $ of Fn.MONGO_CLIENT_EVENTS)this.topology.on($,(...X)=>this.emit($,...X));const Z=async()=>{try{await Xn.promisify(($)=>this.topology?.connect(J,$))()}catch($){throw this.topology?.close({force:!0}),$}};if(this.autoEncrypter)await this.autoEncrypter?.init(),await Z(),await J.encrypter.connectInternalClient();else await Z();return this}async close(J=!1){Object.defineProperty(this.s,"hasBeenClosed",{value:!0,enumerable:!0,configurable:!1,writable:!1});const Z=Array.from(this.s.activeSessions,(G)=>G.endSession());if(this.s.activeSessions.clear(),await Promise.all(Z),this.topology==null)return;const $=Un.readPreferenceServerSelector(GB.ReadPreference.primaryPreferred),X=this.topology.description,Y=Array.from(X.servers.values());if($(X,Y).length!==0){const G=Array.from(this.s.sessionPool.sessions,({id:F})=>F);if(G.length!==0)await Vn.executeOperation(this,new zn.RunAdminCommandOperation({endSessions:G},{readPreference:GB.ReadPreference.primaryPreferred,noResponse:!0})).catch(()=>null)}const K=this.topology;this.topology=void 0,await new Promise((G,F)=>{K.close({force:J},(q)=>{if(q)return F(q);const{encrypter:W}=this[N1];if(W)return W.closeCallback(this,J,(H)=>{if(H)return F(H);G()});G()})})}db(J,Z){if(Z=Z??{},!J)J=this.options.dbName;const $=Object.assign({},this[N1],Z);return new qn.Db(this,J,$)}static async connect(J,Z){return new this(J,Z).connect()}startSession(J){const Z=new qB.ClientSession(this,this.s.sessionPool,{explicit:!0,...J},this[N1]);return this.s.activeSessions.add(Z),Z.once("ended",()=>{this.s.activeSessions.delete(Z)}),Z}async withSession(J,Z){const $={owner:Symbol(),...typeof J==="object"?J:{}},X=typeof J==="function"?J:Z;if(X==null)throw new KB.MongoInvalidArgumentError("Missing required callback parameter");const Y=this.startSession($);try{return await X(Y)}finally{try{await Y.endSession()}catch{}}}watch(J=[],Z={}){if(!Array.isArray(J))Z=J,J=[];return new Qn.ChangeStream(this,J,f0.resolveOptions(this,Z))}}HB.MongoClient=WB});var U7=V((zB)=>{Object.defineProperty(zB,"__esModule",{value:!0});zB.ChangeStream=void 0;var jn=P4(),R6=v1(),An=IY(),Ln=JZ(),w6=E(),wn=C4(),Rn=C0(),RK=y(),l7=Symbol("cursorStream"),a7=Symbol("closed"),S9=Symbol("mode"),Dn=["resumeAfter","startAfter","startAtOperationTime","fullDocument","fullDocumentBeforeChange","showExpandedEvents"],v4={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},Pn=[R6.RESUME_TOKEN_CHANGED,R6.END,R6.CLOSE],Tn="A change stream document has been received that lacks a resume token (_id).",$$="ChangeStream is closed";class I0 extends Rn.TypedEventEmitter{constructor(J,Z=[],$={}){super();if(this.pipeline=Z,this.options={...$},delete this.options.writeConcern,J instanceof jn.Collection)this.type=v4.COLLECTION;else if(J instanceof Ln.Db)this.type=v4.DATABASE;else if(J instanceof wn.MongoClient)this.type=v4.CLUSTER;else throw new w6.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");if(this.parent=J,this.namespace=J.s.namespace,!this.options.readPreference&&J.readPreference)this.options.readPreference=J.readPreference;this.cursor=this._createChangeStreamCursor($),this[a7]=!1,this[S9]=!1,this.on("newListener",(X)=>{if(X==="change"&&this.cursor&&this.listenerCount("change")===0)this._streamEvents(this.cursor)}),this.on("removeListener",(X)=>{if(X==="change"&&this.listenerCount("change")===0&&this.cursor)this[l7]?.removeAllListeners("data")})}get cursorStream(){return this[l7]}get resumeToken(){return this.cursor?.resumeToken}async hasNext(){this._setIsIterator();while(!0)try{return await this.cursor.hasNext()}catch(J){try{await this._processErrorIteratorMode(J)}catch(Z){try{await this.close()}catch{}throw Z}}}async next(){this._setIsIterator();while(!0)try{const J=await this.cursor.next();return this._processChange(J??null)}catch(J){try{await this._processErrorIteratorMode(J)}catch(Z){try{await this.close()}catch{}throw Z}}}async tryNext(){this._setIsIterator();while(!0)try{return await this.cursor.tryNext()??null}catch(J){try{await this._processErrorIteratorMode(J)}catch(Z){try{await this.close()}catch{}throw Z}}}async*[Symbol.asyncIterator](){if(this.closed)return;try{while(!0)yield await this.next()}finally{try{await this.close()}catch{}}}get closed(){return this[a7]||this.cursor.closed}async close(){this[a7]=!0;const J=this.cursor;try{await J.close()}finally{this._endStream()}}stream(J){if(this.closed)throw new w6.MongoChangeStreamError($$);return this.streamOptions=J,this.cursor.stream(J)}_setIsEmitter(){if(this[S9]==="iterator")throw new w6.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this[S9]="emitter"}_setIsIterator(){if(this[S9]==="emitter")throw new w6.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this[S9]="iterator"}_createChangeStreamCursor(J){const Z=RK.filterOptions(J,Dn);if(this.type===v4.CLUSTER)Z.allChangesForCluster=!0;const $=[{$changeStream:Z},...this.pipeline],X=this.type===v4.CLUSTER?this.parent:this.type===v4.DATABASE?this.parent.client:this.type===v4.COLLECTION?this.parent.client:null;if(X==null)throw new w6.MongoRuntimeError(`Changestream type should only be one of cluster, database, collection. Found ${this.type.toString()}`);const Y=new An.ChangeStreamCursor(X,this.namespace,$,J);for(let Q of Pn)Y.on(Q,(K)=>this.emit(Q,K));if(this.listenerCount(I0.CHANGE)>0)this._streamEvents(Y);return Y}_closeEmitterModeWithError(J){this.emit(I0.ERROR,J),this.close().catch(()=>null)}_streamEvents(J){this._setIsEmitter();const Z=this[l7]??J.stream();this[l7]=Z,Z.on("data",($)=>{try{const X=this._processChange($);this.emit(I0.CHANGE,X)}catch(X){this.emit(I0.ERROR,X)}}),Z.on("error",($)=>this._processErrorStreamMode($))}_endStream(){const J=this[l7];if(J)["data","close","end","error"].forEach((Z)=>J.removeAllListeners(Z)),J.destroy();this[l7]=void 0}_processChange(J){if(this[a7])throw new w6.MongoAPIError($$);if(J==null)throw new w6.MongoRuntimeError($$);if(J&&!J._id)throw new w6.MongoChangeStreamError(Tn);return this.cursor.cacheResumeToken(J._id),this.options.startAtOperationTime=void 0,J}_processErrorStreamMode(J){if(this[a7])return;if(w6.isResumableError(J,this.cursor.maxWireVersion))this._endStream(),this.cursor.close().catch(()=>null),RK.getTopology(this.parent).selectServer(this.cursor.readPreference,{},($)=>{if($)return this._closeEmitterModeWithError(J);this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)});else this._closeEmitterModeWithError(J)}async _processErrorIteratorMode(J){if(this[a7])throw new w6.MongoAPIError($$);if(!w6.isResumableError(J,this.cursor.maxWireVersion)){try{await this.close()}catch{}throw J}await this.cursor.close().catch(()=>null);const Z=RK.getTopology(this.parent);try{await Z.selectServerAsync(this.cursor.readPreference,{}),this.cursor=this._createChangeStreamCursor(this.cursor.resumeOptions)}catch{throw await this.close(),J}}}I0.RESPONSE=R6.RESPONSE;I0.MORE=R6.MORE;I0.INIT=R6.INIT;I0.CLOSE=R6.CLOSE;I0.CHANGE=R6.CHANGE;I0.END=R6.END;I0.ERROR=R6.ERROR;I0.RESUME_TOKEN_CHANGED=R6.RESUME_TOKEN_CHANGED;zB.ChangeStream=I0});var DK=V((jB)=>{var MB=function(J){if(J.s.init)throw new v0.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")},Nn=function(J){if(J.destroyed)return;if(!J.s.cursor)return;if(!J.s.file)return;const Z=({error:$,doc:X})=>{if(J.destroyed)return;if($){J.destroy($);return}if(!X){J.push(null),J.s.cursor?.close().then(()=>null,(U)=>J.destroy(U));return}if(!J.s.file)return;const Y=J.s.file.length-J.s.bytesRead,Q=J.s.expected++,K=Math.min(J.s.file.chunkSize,Y);if(X.n>Q)return J.destroy(new v0.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${X.n}, expected: ${Q}`));if(X.n<Q)return J.destroy(new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected: ${Q}`));let G=Buffer.isBuffer(X.data)?X.data:X.data.buffer;if(G.byteLength!==K){if(Y<=0)return J.destroy(new v0.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${X.n}, expected file length ${J.s.file.length} bytes but already read ${J.s.bytesRead} bytes`));return J.destroy(new v0.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${G.byteLength}, expected: ${K}`))}if(J.s.bytesRead+=G.byteLength,G.byteLength===0)return J.push(null);let F=null,q=null;if(J.s.bytesToSkip!=null)F=J.s.bytesToSkip,J.s.bytesToSkip=0;const W=Q===J.s.expectedEnd-1,H=J.s.options.end-J.s.bytesToSkip;if(W&&J.s.bytesToTrim!=null)q=J.s.file.chunkSize-J.s.bytesToTrim;else if(J.s.options.end&&H<X.data.byteLength)q=H;if(F!=null||q!=null)G=G.slice(F||0,q||G.byteLength);J.push(G);return};J.s.cursor.next().then(($)=>Z({error:null,doc:$}),($)=>Z({error:$,doc:null}))},Bn=function(J){const Z={};if(J.s.readPreference)Z.readPreference=J.s.readPreference;if(J.s.options&&J.s.options.sort)Z.sort=J.s.options.sort;if(J.s.options&&J.s.options.skip)Z.skip=J.s.options.skip;const $=({error:X,doc:Y})=>{if(X)return J.destroy(X);if(!Y){const G=`FileNotFound: file ${J.s.filter._id?J.s.filter._id.toString():J.s.filter.filename} was not found`,F=new v0.MongoRuntimeError(G);return F.code="ENOENT",J.destroy(F)}if(Y.length<=0){J.push(null);return}if(J.destroyed){J.destroy();return}try{J.s.bytesToSkip=Cn(J,Y,J.s.options)}catch(K){return J.destroy(K)}const Q={files_id:Y._id};if(J.s.options&&J.s.options.start!=null){const K=Math.floor(J.s.options.start/Y.chunkSize);if(K>0)Q.n={$gte:K}}if(J.s.cursor=J.s.chunks.find(Q).sort({n:1}),J.s.readPreference)J.s.cursor.withReadPreference(J.s.readPreference);J.s.expectedEnd=Math.ceil(Y.length/Y.chunkSize),J.s.file=Y;try{J.s.bytesToTrim=hn(J,Y,J.s.cursor,J.s.options)}catch(K){return J.destroy(K)}J.emit(X$.FILE,Y);return};J.s.files.findOne(J.s.filter,Z).then((X)=>$({error:null,doc:X}),(X)=>$({error:X,doc:null}))},En=function(J,Z){if(J.s.file)return Z();if(!J.s.init)Bn(J),J.s.init=!0;J.once("file",()=>{Z()})},Cn=function(J,Z,$){if($&&$.start!=null){if($.start>Z.length)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be more than the length of the file (${Z.length})`);if($.start<0)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be negative`);if($.end!=null&&$.end<$.start)throw new v0.MongoInvalidArgumentError(`Stream start (${$.start}) must not be greater than stream end (${$.end})`);return J.s.bytesRead=Math.floor($.start/Z.chunkSize)*Z.chunkSize,J.s.expected=Math.floor($.start/Z.chunkSize),$.start-J.s.bytesRead}throw new v0.MongoInvalidArgumentError("Start option must be defined")},hn=function(J,Z,$,X){if(X&&X.end!=null){if(X.end>Z.length)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be more than the length of the file (${Z.length})`);if(X.start==null||X.start<0)throw new v0.MongoInvalidArgumentError(`Stream end (${X.end}) must not be negative`);const Y=X.start!=null?Math.floor(X.start/Z.chunkSize):0;return $.limit(Math.ceil(X.end/Z.chunkSize)-Y),J.s.expectedEnd=Math.ceil(X.end/Z.chunkSize),Math.ceil(X.end/Z.chunkSize)*Z.chunkSize-X.end}throw new v0.MongoInvalidArgumentError("End option must be defined")};Object.defineProperty(jB,"__esModule",{value:!0});jB.GridFSBucketReadStream=void 0;var In=import.meta.require("stream"),v0=E();class X$ extends In.Readable{constructor(J,Z,$,X,Y){super({emitClose:!0});this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:J,expected:0,files:Z,filter:X,init:!1,expectedEnd:0,options:{start:0,end:0,...Y},readPreference:$}}_read(){if(this.destroyed)return;En(this,()=>Nn(this))}start(J=0){return MB(this),this.s.options.start=J,this}end(J=0){return MB(this),this.s.options.end=J,this}async abort(){this.push(null),this.destroy(),await this.s.cursor?.close()}}X$.FILE="file";jB.GridFSBucketReadStream=X$});var IK=V((DB)=>{var TK=function(J,Z,$){if(J.state.errored){process.nextTick($);return}J.state.errored=!0,process.nextTick($,Z)},RB=function(J,Z,$){return{_id:new LB.ObjectId,files_id:J,n:Z,data:$}};async function kn(J){const Z={files_id:1,n:1};let $;try{$=await J.chunks.listIndexes().toArray()}catch(Y){if(Y instanceof x4.MongoError&&Y.code===x4.MONGODB_ERROR_CODES.NamespaceNotFound)$=[];else throw Y}if(!$.find((Y)=>{if(Object.keys(Y.key).length===2&&Y.key.files_id===1&&Y.key.n===1)return!0;return!1}))await J.chunks.createIndex(Z,{...J.writeConcern,background:!0,unique:!0})}var PK=function(J,Z){if(J.done)return process.nextTick(Z);if(J.state.streamEnd&&J.state.outstandingRequests===0&&!J.state.errored){J.done=!0;const $=_n(J.id,J.length,J.chunkSizeBytes,J.filename,J.options.contentType,J.options.aliases,J.options.metadata);if(Y$(J,Z))return;J.files.insertOne($,{writeConcern:J.writeConcern}).then(()=>{J.gridFSFile=$,Z()},(X)=>TK(J,X,Z));return}process.nextTick(Z)};async function yn(J){if(await J.files.findOne({},{projection:{_id:1}})!=null)return;const $={filename:1,uploadDate:1};let X;try{X=await J.files.listIndexes().toArray()}catch(Q){if(Q instanceof x4.MongoError&&Q.code===x4.MONGODB_ERROR_CODES.NamespaceNotFound)X=[];else throw Q}if(!X.find((Q)=>{if(Object.keys(Q.key).length===2&&Q.key.filename===1&&Q.key.uploadDate===1)return!0;return!1}))await J.files.createIndex($,{background:!1});await kn(J)}var _n=function(J,Z,$,X,Y,Q,K){const G={_id:J,length:Z,chunkSize:$,uploadDate:new Date,filename:X};if(Y)G.contentType=Y;if(Q)G.aliases=Q;if(K)G.metadata=K;return G},fn=function(J,Z,$,X){if(Y$(J,X))return;const Y=Buffer.isBuffer(Z)?Z:Buffer.from(Z,$);if(J.length+=Y.length,J.pos+Y.length<J.chunkSizeBytes){Y.copy(J.bufToStore,J.pos),J.pos+=Y.length,process.nextTick(X);return}let Q=Y.length,K=J.chunkSizeBytes-J.pos,G=Math.min(K,Y.length),F=0;while(Q>0){const q=Y.length-Q;Y.copy(J.bufToStore,J.pos,q,q+G),J.pos+=G,K-=G;let W;if(K===0){if(W=RB(J.id,J.n,Buffer.from(J.bufToStore)),++J.state.outstandingRequests,++F,Y$(J,X))return;J.chunks.insertOne(W,{writeConcern:J.writeConcern}).then(()=>{if(--J.state.outstandingRequests,--F,!F)PK(J,X)},(H)=>TK(J,H,X)),K=J.chunkSizeBytes,J.pos=0,++J.n}Q-=G,G=Math.min(K,Q)}},vn=function(J,Z){if(J.pos===0)return PK(J,Z);++J.state.outstandingRequests;const $=Buffer.alloc(J.pos);J.bufToStore.copy($,0,0,J.pos);const X=RB(J.id,J.n,$);if(Y$(J,Z))return;J.chunks.insertOne(X,{writeConcern:J.writeConcern}).then(()=>{--J.state.outstandingRequests,PK(J,Z)},(Y)=>TK(J,Y,Z))},Y$=function(J,Z){if(J.state.aborted)return process.nextTick(Z,new x4.MongoAPIError("Stream has been aborted")),!0;return!1};Object.defineProperty(DB,"__esModule",{value:!0});DB.GridFSBucketWriteStream=void 0;var Sn=import.meta.require("stream"),LB=H1(),x4=E(),On=A0();class wB extends Sn.Writable{constructor(J,Z,$){super();if(this.gridFSFile=null,$=$??{},this.bucket=J,this.chunks=J.s._chunksCollection,this.filename=Z,this.files=J.s._filesCollection,this.options=$,this.writeConcern=On.WriteConcern.fromOptions($)||J.s.options.writeConcern,this.done=!1,this.id=$.id?$.id:new LB.ObjectId,this.chunkSizeBytes=$.chunkSizeBytes||this.bucket.s.options.chunkSizeBytes,this.bufToStore=Buffer.alloc(this.chunkSizeBytes),this.length=0,this.n=0,this.pos=0,this.state={streamEnd:!1,outstandingRequests:0,errored:!1,aborted:!1},!this.bucket.s.calledOpenUploadStream)this.bucket.s.calledOpenUploadStream=!0,yn(this).then(()=>{this.bucket.s.checkedIndexes=!0,this.bucket.emit("index")},()=>null)}_construct(J){if(this.bucket.s.checkedIndexes)return process.nextTick(J);this.bucket.once("index",J)}_write(J,Z,$){fn(this,J,Z,$)}_final(J){if(this.state.streamEnd)return process.nextTick(J);this.state.streamEnd=!0,vn(this,J)}async abort(){if(this.state.streamEnd)throw new x4.MongoAPIError("Cannot abort a stream that has already completed");if(this.state.aborted)throw new x4.MongoAPIError("Cannot call abort() on a stream twice");this.state.aborted=!0,await this.chunks.deleteMany({files_id:this.id})}}DB.GridFSBucketWriteStream=wB});var CB=V((BB)=>{Object.defineProperty(BB,"__esModule",{value:!0});BB.GridFSBucket=void 0;var TB=E(),xn=C0(),bn=A0(),IB=DK(),NB=IK(),gn={bucketName:"fs",chunkSizeBytes:261120};class NK extends xn.TypedEventEmitter{constructor(J,Z){super();this.setMaxListeners(0);const $={...gn,...Z,writeConcern:bn.WriteConcern.fromOptions(Z)};this.s={db:J,options:$,_chunksCollection:J.collection($.bucketName+".chunks"),_filesCollection:J.collection($.bucketName+".files"),checkedIndexes:!1,calledOpenUploadStream:!1}}openUploadStream(J,Z){return new NB.GridFSBucketWriteStream(this,J,Z)}openUploadStreamWithId(J,Z,$){return new NB.GridFSBucketWriteStream(this,Z,{...$,id:J})}openDownloadStream(J,Z){return new IB.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:J},Z)}async delete(J){const{deletedCount:Z}=await this.s._filesCollection.deleteOne({_id:J});if(await this.s._chunksCollection.deleteMany({files_id:J}),Z===0)throw new TB.MongoRuntimeError(`File not found for id ${J}`)}find(J={},Z={}){return this.s._filesCollection.find(J,Z)}openDownloadStreamByName(J,Z){let $={uploadDate:-1},X=void 0;if(Z&&Z.revision!=null)if(Z.revision>=0)$={uploadDate:1},X=Z.revision;else X=-Z.revision-1;return new IB.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:J},{...Z,sort:$,skip:X})}async rename(J,Z){const $={_id:J},X={$set:{filename:Z}},{matchedCount:Y}=await this.s._filesCollection.updateOne($,X);if(Y===0)throw new TB.MongoRuntimeError(`File with id ${J} not found`)}async drop(){await this.s._filesCollection.drop(),await this.s._chunksCollection.drop()}}NK.INDEX="index";BB.GridFSBucket=NK});var OB=V((hB)=>{Object.defineProperty(hB,"__esModule",{value:!0});hB.ClientEncryption=void 0;var g6=H1(),mn=H6(),e8=y(),un=qQ(),b4=B4(),dn=VQ(),Q$=zQ();class K${static getMongoCrypt(){const J=mn.getMongoDBClientEncryption();if("kModuleError"in J)throw J.kModuleError;return J.MongoCrypt}constructor(J,Z){if(this._client=J,this._proxyOptions=Z.proxyOptions??{},this._tlsOptions=Z.tlsOptions??{},this._kmsProviders=Z.kmsProviders||{},Z.keyVaultNamespace==null)throw new b4.MongoCryptInvalidArgumentError("Missing required option `keyVaultNamespace`");const $={...Z,cryptoCallbacks:un,kmsProviders:!Buffer.isBuffer(this._kmsProviders)?g6.serialize(this._kmsProviders):this._kmsProviders};this._keyVaultNamespace=Z.keyVaultNamespace,this._keyVaultClient=Z.keyVaultClient||J;const X=K$.getMongoCrypt();this._mongoCrypt=new X($)}async createDataKey(J,Z={}){if(Z.keyAltNames&&!Array.isArray(Z.keyAltNames))throw new b4.MongoCryptInvalidArgumentError(`Option "keyAltNames" must be an array of strings, but was of type ${typeof Z.keyAltNames}.`);let $=void 0;if(Z.keyAltNames&&Z.keyAltNames.length>0)$=Z.keyAltNames.map((H,U)=>{if(typeof H!=="string")throw new b4.MongoCryptInvalidArgumentError(`Option "keyAltNames" must be an array of strings, but item at index ${U} was of type ${typeof H}`);return g6.serialize({keyAltName:H})});let X=void 0;if(Z.keyMaterial)X=g6.serialize({keyMaterial:Z.keyMaterial});const Y=g6.serialize({provider:J,...Z.masterKey}),Q=this._mongoCrypt.makeDataKeyContext(Y,{keyAltNames:$,keyMaterial:X}),G=await new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}).execute(this,Q),{db:F,collection:q}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),{insertedId:W}=await this._keyVaultClient.db(F).collection(q).insertOne(G,{writeConcern:{w:"majority"}});return W}async rewrapManyDataKey(J,Z){let $=void 0;if(Z){const H=Object.assign({provider:Z.provider},Z.masterKey);$=g6.serialize(H)}const X=g6.serialize(J),Y=this._mongoCrypt.makeRewrapManyDataKeyContext(X,$),Q=new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),{v:K}=await Q.execute(this,Y);if(K.length===0)return{};const{db:G,collection:F}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),q=K.map((H)=>({updateOne:{filter:{_id:H._id},update:{$set:{masterKey:H.masterKey,keyMaterial:H.keyMaterial},$currentDate:{updateDate:!0}}}}));return{bulkWriteResult:await this._keyVaultClient.db(G).collection(F).bulkWrite(q,{writeConcern:{w:"majority"}})}}async deleteKey(J){const{db:Z,collection:$}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(Z).collection($).deleteOne({_id:J},{writeConcern:{w:"majority"}})}getKeys(){const{db:J,collection:Z}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(J).collection(Z).find({},{readConcern:{level:"majority"}})}async getKey(J){const{db:Z,collection:$}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(Z).collection($).findOne({_id:J},{readConcern:{level:"majority"}})}async getKeyByAltName(J){const{db:Z,collection:$}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return this._keyVaultClient.db(Z).collection($).findOne({keyAltNames:J},{readConcern:{level:"majority"}})}async addKeyAltName(J,Z){const{db:$,collection:X}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace);return await this._keyVaultClient.db($).collection(X).findOneAndUpdate({_id:J},{$addToSet:{keyAltNames:Z}},{writeConcern:{w:"majority"},returnDocument:"before"})}async removeKeyAltName(J,Z){const{db:$,collection:X}=e8.MongoDBCollectionNamespace.fromString(this._keyVaultNamespace),Y=[{$set:{keyAltNames:{$cond:[{$eq:["$keyAltNames",[Z]]},"$$REMOVE",{$filter:{input:"$keyAltNames",cond:{$ne:["$$this",Z]}}}]}}}];return await this._keyVaultClient.db($).collection(X).findOneAndUpdate({_id:J},Y,{writeConcern:{w:"majority"},returnDocument:"before"})}async createEncryptedCollection(J,Z,$){const{provider:X,masterKey:Y,createCollectionOptions:{encryptedFields:{...Q},...K}}=$;if(Array.isArray(Q.fields)){const G=Q.fields.map(async(W)=>W==null||typeof W!=="object"||W.keyId!=null?W:{...W,keyId:await this.createDataKey(X,{masterKey:Y})}),F=await Promise.allSettled(G);Q.fields=F.map((W,H)=>W.status==="fulfilled"?W.value:Q.fields[H]);const q=F.find((W)=>W.status==="rejected");if(q!=null)throw new b4.MongoCryptCreateDataKeyError(Q,{cause:q.reason})}try{return{collection:await J.createCollection(Z,{...K,encryptedFields:Q}),encryptedFields:Q}}catch(G){throw new b4.MongoCryptCreateEncryptedCollectionError(Q,{cause:G})}}async encrypt(J,Z){return this._encrypt(J,!1,Z)}async encryptExpression(J,Z){return this._encrypt(J,!0,Z)}async decrypt(J){const Z=g6.serialize({v:J}),$=this._mongoCrypt.makeExplicitDecryptionContext(Z),X=new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),{v:Y}=await X.execute(this,$);return Y}async askForKMSCredentials(){return dn.refreshKMSCredentials(this._kmsProviders)}static get libmongocryptVersion(){return K$.getMongoCrypt().libmongocryptVersion}async _encrypt(J,Z,$){const{algorithm:X,keyId:Y,keyAltName:Q,contentionFactor:K,queryType:G,rangeOptions:F}=$,q={expressionMode:Z,algorithm:X};if(Y)q.keyId=Y.buffer;if(Q){if(Y)throw new b4.MongoCryptInvalidArgumentError('"options" cannot contain both "keyId" and "keyAltName"');if(typeof Q!=="string")throw new b4.MongoCryptInvalidArgumentError(`"options.keyAltName" must be of type string, but was of type ${typeof Q}`);q.keyAltName=g6.serialize({keyAltName:Q})}if(typeof K==="number"||typeof K==="bigint")q.contentionFactor=K;if(typeof G==="string")q.queryType=G;if(typeof F==="object")q.rangeOptions=g6.serialize(F);const W=g6.serialize({v:J}),H=new Q$.StateMachine({proxyOptions:this._proxyOptions,tlsOptions:this._tlsOptions}),U=this._mongoCrypt.makeExplicitEncryptionContext(W,q);return(await H.execute(this,U)).v}}hB.ClientEncryption=K$});var G$=V((R)=>{Object.defineProperty(R,"__esModule",{value:!0});R.MongoUnexpectedServerResponseError=R.MongoTransactionError=R.MongoTopologyClosedError=R.MongoTailableCursorError=R.MongoSystemError=R.MongoServerSelectionError=R.MongoServerError=R.MongoServerClosedError=R.MongoRuntimeError=R.MongoParseError=R.MongoNotConnectedError=R.MongoNetworkTimeoutError=R.MongoNetworkError=R.MongoMissingDependencyError=R.MongoMissingCredentialsError=R.MongoKerberosError=R.MongoInvalidArgumentError=R.MongoGridFSStreamError=R.MongoGridFSChunkError=R.MongoExpiredSessionError=R.MongoError=R.MongoDriverError=R.MongoDecompressionError=R.MongoCursorInUseError=R.MongoCursorExhaustedError=R.MongoCompatibilityError=R.MongoChangeStreamError=R.MongoBatchReExecutionError=R.MongoAzureError=R.MongoAWSError=R.MongoAPIError=R.ChangeStreamCursor=R.ClientEncryption=R.MongoBulkWriteError=R.UUID=R.Timestamp=R.ObjectId=R.MinKey=R.MaxKey=R.Long=R.Int32=R.Double=R.Decimal128=R.DBRef=R.Code=R.BSONType=R.BSONSymbol=R.BSONRegExp=R.Binary=R.BSON=void 0;R.ConnectionPoolReadyEvent=R.ConnectionPoolMonitoringEvent=R.ConnectionPoolCreatedEvent=R.ConnectionPoolClosedEvent=R.ConnectionPoolClearedEvent=R.ConnectionCreatedEvent=R.ConnectionClosedEvent=R.ConnectionCheckOutStartedEvent=R.ConnectionCheckOutFailedEvent=R.ConnectionCheckedOutEvent=R.ConnectionCheckedInEvent=R.CommandSucceededEvent=R.CommandStartedEvent=R.CommandFailedEvent=R.WriteConcern=R.ReadPreference=R.ReadConcern=R.TopologyType=R.ServerType=R.ReadPreferenceMode=R.ReadConcernLevel=R.ProfilingLevel=R.ReturnDocument=R.ServerApiVersion=R.ExplainVerbosity=R.MongoErrorLabel=R.CURSOR_FLAGS=R.Compressor=R.AuthMechanism=R.GSSAPICanonicalizationValue=R.AutoEncryptionLoggerLevel=R.BatchType=R.UnorderedBulkOperation=R.OrderedBulkOperation=R.MongoClient=R.ListIndexesCursor=R.ListCollectionsCursor=R.GridFSBucketWriteStream=R.GridFSBucketReadStream=R.GridFSBucket=R.FindCursor=R.Db=R.Collection=R.ClientSession=R.ChangeStream=R.CancellationToken=R.AggregationCursor=R.Admin=R.AbstractCursor=R.MongoWriteConcernError=void 0;R.MongoCryptKMSRequestNetworkTimeoutError=R.MongoCryptInvalidArgumentError=R.MongoCryptError=R.MongoCryptCreateEncryptedCollectionError=R.MongoCryptCreateDataKeyError=R.MongoCryptAzureKMSRequestError=R.SrvPollingEvent=R.TopologyOpeningEvent=R.TopologyDescriptionChangedEvent=R.TopologyClosedEvent=R.ServerOpeningEvent=R.ServerHeartbeatSucceededEvent=R.ServerHeartbeatStartedEvent=R.ServerHeartbeatFailedEvent=R.ServerDescriptionChangedEvent=R.ServerClosedEvent=R.ConnectionReadyEvent=void 0;var cn=Y3();Object.defineProperty(R,"Admin",{enumerable:!0,get:function(){return cn.Admin}});var pn=N3();Object.defineProperty(R,"OrderedBulkOperation",{enumerable:!0,get:function(){return pn.OrderedBulkOperation}});var ln=B3();Object.defineProperty(R,"UnorderedBulkOperation",{enumerable:!0,get:function(){return ln.UnorderedBulkOperation}});var an=U7();Object.defineProperty(R,"ChangeStream",{enumerable:!0,get:function(){return an.ChangeStream}});var sn=P4();Object.defineProperty(R,"Collection",{enumerable:!0,get:function(){return sn.Collection}});var nn=X8();Object.defineProperty(R,"AbstractCursor",{enumerable:!0,get:function(){return nn.AbstractCursor}});var tn=p5();Object.defineProperty(R,"AggregationCursor",{enumerable:!0,get:function(){return tn.AggregationCursor}});var rn=ZY();Object.defineProperty(R,"FindCursor",{enumerable:!0,get:function(){return rn.FindCursor}});var on=EY();Object.defineProperty(R,"ListCollectionsCursor",{enumerable:!0,get:function(){return on.ListCollectionsCursor}});var en=WY();Object.defineProperty(R,"ListIndexesCursor",{enumerable:!0,get:function(){return en.ListIndexesCursor}});var Jt=JZ();Object.defineProperty(R,"Db",{enumerable:!0,get:function(){return Jt.Db}});var Zt=CB();Object.defineProperty(R,"GridFSBucket",{enumerable:!0,get:function(){return Zt.GridFSBucket}});var $t=DK();Object.defineProperty(R,"GridFSBucketReadStream",{enumerable:!0,get:function(){return $t.GridFSBucketReadStream}});var Xt=IK();Object.defineProperty(R,"GridFSBucketWriteStream",{enumerable:!0,get:function(){return Xt.GridFSBucketWriteStream}});var Yt=C4();Object.defineProperty(R,"MongoClient",{enumerable:!0,get:function(){return Yt.MongoClient}});var Qt=C0();Object.defineProperty(R,"CancellationToken",{enumerable:!0,get:function(){return Qt.CancellationToken}});var Kt=m5();Object.defineProperty(R,"ClientSession",{enumerable:!0,get:function(){return Kt.ClientSession}});var Gt=H1();Object.defineProperty(R,"BSON",{enumerable:!0,get:function(){return Gt.BSON}});var V0=H1();Object.defineProperty(R,"Binary",{enumerable:!0,get:function(){return V0.Binary}});Object.defineProperty(R,"BSONRegExp",{enumerable:!0,get:function(){return V0.BSONRegExp}});Object.defineProperty(R,"BSONSymbol",{enumerable:!0,get:function(){return V0.BSONSymbol}});Object.defineProperty(R,"BSONType",{enumerable:!0,get:function(){return V0.BSONType}});Object.defineProperty(R,"Code",{enumerable:!0,get:function(){return V0.Code}});Object.defineProperty(R,"DBRef",{enumerable:!0,get:function(){return V0.DBRef}});Object.defineProperty(R,"Decimal128",{enumerable:!0,get:function(){return V0.Decimal128}});Object.defineProperty(R,"Double",{enumerable:!0,get:function(){return V0.Double}});Object.defineProperty(R,"Int32",{enumerable:!0,get:function(){return V0.Int32}});Object.defineProperty(R,"Long",{enumerable:!0,get:function(){return V0.Long}});Object.defineProperty(R,"MaxKey",{enumerable:!0,get:function(){return V0.MaxKey}});Object.defineProperty(R,"MinKey",{enumerable:!0,get:function(){return V0.MinKey}});Object.defineProperty(R,"ObjectId",{enumerable:!0,get:function(){return V0.ObjectId}});Object.defineProperty(R,"Timestamp",{enumerable:!0,get:function(){return V0.Timestamp}});Object.defineProperty(R,"UUID",{enumerable:!0,get:function(){return V0.UUID}});var Ft=f5();Object.defineProperty(R,"MongoBulkWriteError",{enumerable:!0,get:function(){return Ft.MongoBulkWriteError}});var qt=OB();Object.defineProperty(R,"ClientEncryption",{enumerable:!0,get:function(){return qt.ClientEncryption}});var Wt=IY();Object.defineProperty(R,"ChangeStreamCursor",{enumerable:!0,get:function(){return Wt.ChangeStreamCursor}});var r=E();Object.defineProperty(R,"MongoAPIError",{enumerable:!0,get:function(){return r.MongoAPIError}});Object.defineProperty(R,"MongoAWSError",{enumerable:!0,get:function(){return r.MongoAWSError}});Object.defineProperty(R,"MongoAzureError",{enumerable:!0,get:function(){return r.MongoAzureError}});Object.defineProperty(R,"MongoBatchReExecutionError",{enumerable:!0,get:function(){return r.MongoBatchReExecutionError}});Object.defineProperty(R,"MongoChangeStreamError",{enumerable:!0,get:function(){return r.MongoChangeStreamError}});Object.defineProperty(R,"MongoCompatibilityError",{enumerable:!0,get:function(){return r.MongoCompatibilityError}});Object.defineProperty(R,"MongoCursorExhaustedError",{enumerable:!0,get:function(){return r.MongoCursorExhaustedError}});Object.defineProperty(R,"MongoCursorInUseError",{enumerable:!0,get:function(){return r.MongoCursorInUseError}});Object.defineProperty(R,"MongoDecompressionError",{enumerable:!0,get:function(){return r.MongoDecompressionError}});Object.defineProperty(R,"MongoDriverError",{enumerable:!0,get:function(){return r.MongoDriverError}});Object.defineProperty(R,"MongoError",{enumerable:!0,get:function(){return r.MongoError}});Object.defineProperty(R,"MongoExpiredSessionError",{enumerable:!0,get:function(){return r.MongoExpiredSessionError}});Object.defineProperty(R,"MongoGridFSChunkError",{enumerable:!0,get:function(){return r.MongoGridFSChunkError}});Object.defineProperty(R,"MongoGridFSStreamError",{enumerable:!0,get:function(){return r.MongoGridFSStreamError}});Object.defineProperty(R,"MongoInvalidArgumentError",{enumerable:!0,get:function(){return r.MongoInvalidArgumentError}});Object.defineProperty(R,"MongoKerberosError",{enumerable:!0,get:function(){return r.MongoKerberosError}});Object.defineProperty(R,"MongoMissingCredentialsError",{enumerable:!0,get:function(){return r.MongoMissingCredentialsError}});Object.defineProperty(R,"MongoMissingDependencyError",{enumerable:!0,get:function(){return r.MongoMissingDependencyError}});Object.defineProperty(R,"MongoNetworkError",{enumerable:!0,get:function(){return r.MongoNetworkError}});Object.defineProperty(R,"MongoNetworkTimeoutError",{enumerable:!0,get:function(){return r.MongoNetworkTimeoutError}});Object.defineProperty(R,"MongoNotConnectedError",{enumerable:!0,get:function(){return r.MongoNotConnectedError}});Object.defineProperty(R,"MongoParseError",{enumerable:!0,get:function(){return r.MongoParseError}});Object.defineProperty(R,"MongoRuntimeError",{enumerable:!0,get:function(){return r.MongoRuntimeError}});Object.defineProperty(R,"MongoServerClosedError",{enumerable:!0,get:function(){return r.MongoServerClosedError}});Object.defineProperty(R,"MongoServerError",{enumerable:!0,get:function(){return r.MongoServerError}});Object.defineProperty(R,"MongoServerSelectionError",{enumerable:!0,get:function(){return r.MongoServerSelectionError}});Object.defineProperty(R,"MongoSystemError",{enumerable:!0,get:function(){return r.MongoSystemError}});Object.defineProperty(R,"MongoTailableCursorError",{enumerable:!0,get:function(){return r.MongoTailableCursorError}});Object.defineProperty(R,"MongoTopologyClosedError",{enumerable:!0,get:function(){return r.MongoTopologyClosedError}});Object.defineProperty(R,"MongoTransactionError",{enumerable:!0,get:function(){return r.MongoTransactionError}});Object.defineProperty(R,"MongoUnexpectedServerResponseError",{enumerable:!0,get:function(){return r.MongoUnexpectedServerResponseError}});Object.defineProperty(R,"MongoWriteConcernError",{enumerable:!0,get:function(){return r.MongoWriteConcernError}});var Ht=f5();Object.defineProperty(R,"BatchType",{enumerable:!0,get:function(){return Ht.BatchType}});var Vt=MQ();Object.defineProperty(R,"AutoEncryptionLoggerLevel",{enumerable:!0,get:function(){return Vt.AutoEncryptionLoggerLevel}});var zt=YZ();Object.defineProperty(R,"GSSAPICanonicalizationValue",{enumerable:!0,get:function(){return zt.GSSAPICanonicalizationValue}});var Ut=O6();Object.defineProperty(R,"AuthMechanism",{enumerable:!0,get:function(){return Ut.AuthMechanism}});var Mt=N7();Object.defineProperty(R,"Compressor",{enumerable:!0,get:function(){return Mt.Compressor}});var jt=X8();Object.defineProperty(R,"CURSOR_FLAGS",{enumerable:!0,get:function(){return jt.CURSOR_FLAGS}});var At=E();Object.defineProperty(R,"MongoErrorLabel",{enumerable:!0,get:function(){return At.MongoErrorLabel}});var Lt=oX();Object.defineProperty(R,"ExplainVerbosity",{enumerable:!0,get:function(){return Lt.ExplainVerbosity}});var wt=C4();Object.defineProperty(R,"ServerApiVersion",{enumerable:!0,get:function(){return wt.ServerApiVersion}});var Rt=MY();Object.defineProperty(R,"ReturnDocument",{enumerable:!0,get:function(){return Rt.ReturnDocument}});var Dt=CY();Object.defineProperty(R,"ProfilingLevel",{enumerable:!0,get:function(){return Dt.ProfilingLevel}});var Pt=c0();Object.defineProperty(R,"ReadConcernLevel",{enumerable:!0,get:function(){return Pt.ReadConcernLevel}});var Tt=k1();Object.defineProperty(R,"ReadPreferenceMode",{enumerable:!0,get:function(){return Tt.ReadPreferenceMode}});var kB=d0();Object.defineProperty(R,"ServerType",{enumerable:!0,get:function(){return kB.ServerType}});Object.defineProperty(R,"TopologyType",{enumerable:!0,get:function(){return kB.TopologyType}});var It=c0();Object.defineProperty(R,"ReadConcern",{enumerable:!0,get:function(){return It.ReadConcern}});var Nt=k1();Object.defineProperty(R,"ReadPreference",{enumerable:!0,get:function(){return Nt.ReadPreference}});var Bt=A0();Object.defineProperty(R,"WriteConcern",{enumerable:!0,get:function(){return Bt.WriteConcern}});var BK=bQ();Object.defineProperty(R,"CommandFailedEvent",{enumerable:!0,get:function(){return BK.CommandFailedEvent}});Object.defineProperty(R,"CommandStartedEvent",{enumerable:!0,get:function(){return BK.CommandStartedEvent}});Object.defineProperty(R,"CommandSucceededEvent",{enumerable:!0,get:function(){return BK.CommandSucceededEvent}});var J6=aQ();Object.defineProperty(R,"ConnectionCheckedInEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckedInEvent}});Object.defineProperty(R,"ConnectionCheckedOutEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckedOutEvent}});Object.defineProperty(R,"ConnectionCheckOutFailedEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckOutFailedEvent}});Object.defineProperty(R,"ConnectionCheckOutStartedEvent",{enumerable:!0,get:function(){return J6.ConnectionCheckOutStartedEvent}});Object.defineProperty(R,"ConnectionClosedEvent",{enumerable:!0,get:function(){return J6.ConnectionClosedEvent}});Object.defineProperty(R,"ConnectionCreatedEvent",{enumerable:!0,get:function(){return J6.ConnectionCreatedEvent}});Object.defineProperty(R,"ConnectionPoolClearedEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolClearedEvent}});Object.defineProperty(R,"ConnectionPoolClosedEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolClosedEvent}});Object.defineProperty(R,"ConnectionPoolCreatedEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolCreatedEvent}});Object.defineProperty(R,"ConnectionPoolMonitoringEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolMonitoringEvent}});Object.defineProperty(R,"ConnectionPoolReadyEvent",{enumerable:!0,get:function(){return J6.ConnectionPoolReadyEvent}});Object.defineProperty(R,"ConnectionReadyEvent",{enumerable:!0,get:function(){return J6.ConnectionReadyEvent}});var j8=mZ();Object.defineProperty(R,"ServerClosedEvent",{enumerable:!0,get:function(){return j8.ServerClosedEvent}});Object.defineProperty(R,"ServerDescriptionChangedEvent",{enumerable:!0,get:function(){return j8.ServerDescriptionChangedEvent}});Object.defineProperty(R,"ServerHeartbeatFailedEvent",{enumerable:!0,get:function(){return j8.ServerHeartbeatFailedEvent}});Object.defineProperty(R,"ServerHeartbeatStartedEvent",{enumerable:!0,get:function(){return j8.ServerHeartbeatStartedEvent}});Object.defineProperty(R,"ServerHeartbeatSucceededEvent",{enumerable:!0,get:function(){return j8.ServerHeartbeatSucceededEvent}});Object.defineProperty(R,"ServerOpeningEvent",{enumerable:!0,get:function(){return j8.ServerOpeningEvent}});Object.defineProperty(R,"TopologyClosedEvent",{enumerable:!0,get:function(){return j8.TopologyClosedEvent}});Object.defineProperty(R,"TopologyDescriptionChangedEvent",{enumerable:!0,get:function(){return j8.TopologyDescriptionChangedEvent}});Object.defineProperty(R,"TopologyOpeningEvent",{enumerable:!0,get:function(){return j8.TopologyOpeningEvent}});var Et=UK();Object.defineProperty(R,"SrvPollingEvent",{enumerable:!0,get:function(){return Et.SrvPollingEvent}});var i7=B4();Object.defineProperty(R,"MongoCryptAzureKMSRequestError",{enumerable:!0,get:function(){return i7.MongoCryptAzureKMSRequestError}});Object.defineProperty(R,"MongoCryptCreateDataKeyError",{enumerable:!0,get:function(){return i7.MongoCryptCreateDataKeyError}});Object.defineProperty(R,"MongoCryptCreateEncryptedCollectionError",{enumerable:!0,get:function(){return i7.MongoCryptCreateEncryptedCollectionError}});Object.defineProperty(R,"MongoCryptError",{enumerable:!0,get:function(){return i7.MongoCryptError}});Object.defineProperty(R,"MongoCryptInvalidArgumentError",{enumerable:!0,get:function(){return i7.MongoCryptInvalidArgumentError}});Object.defineProperty(R,"MongoCryptKMSRequestNetworkTimeoutError",{enumerable:!0,get:function(){return i7.MongoCryptKMSRequestNetworkTimeoutError}})});import{createRequire as ah} from"module";var fK=$4(U$(),1);class m4{static list(J){return fK.default({},{argv:J.slice(2),permissive:!0})._.filter(($)=>{return $.substring(0,1)!=="-"})}static parse(J,Z){if(J.length>Z.length)throw new Error("Too many arguments");const $={};for(let X=0;X<Z.length;X++){const Y=Z[X];$[Y.name]=J[X]}try{return $}catch(X){throw X}}static requireArguments(J){let Z="";if(Object.keys(J).forEach((X,Y,Q)=>{if(J[X]===void 0){if(Z+=X,Y<Q.length-1)Z+=", "}}),Z!=="")throw new Error(`Argument ${Z} is required`)}}class L8{constructor(J){var Z;this.opts={},this.args={},this.name=J.name,this.alias=(Z=J.alias)!==null&&Z!==void 0?Z:[],this.description=J.description,this.summary=J.summary,this.arguments=J.arguments,this.options=J.options}}import*as k9 from"tty";var{env:w8={},argv:xK=[],platform:nB=""}=typeof process==="undefined"?{}:process,tB="NO_COLOR"in w8||xK.includes("--no-color"),rB="FORCE_COLOR"in w8||xK.includes("--color"),oB=nB==="win32",bK=w8.TERM==="dumb",eB=k9&&k9.isatty&&k9.isatty(1)&&w8.TERM&&!bK,JE="CI"in w8&&(("GITHUB_ACTIONS"in w8)||("GITLAB_CI"in w8)||("CIRCLECI"in w8)),ZE=!tB&&(rB||oB&&!bK||eB||JE),gK=(J,Z,$,X,Y=Z.substring(0,J)+X,Q=Z.substring(J+$.length),K=Q.indexOf($))=>Y+(K<0?Q:gK(K,Q,$,X)),$E=(J,Z,$,X,Y)=>J<0?$+Z+X:$+gK(J,Z,X,Y)+X,XE=(J,Z,$=J,X=J.length+1)=>(Y)=>Y||!(Y===""||Y===void 0)?$E((""+Y).indexOf(Z,X),Y,J,Z,$):"",m=(J,Z,$)=>XE(`\x1B[${J}m`,`\x1B[${Z}m`,$),vK={reset:m(0,0),bold:m(1,22,"\x1B[22m\x1B[1m"),dim:m(2,22,"\x1B[22m\x1B[2m"),italic:m(3,23),underline:m(4,24),inverse:m(7,27),hidden:m(8,28),strikethrough:m(9,29),black:m(30,39),red:m(31,39),green:m(32,39),yellow:m(33,39),blue:m(34,39),magenta:m(35,39),cyan:m(36,39),white:m(37,39),gray:m(90,39),bgBlack:m(40,49),bgRed:m(41,49),bgGreen:m(42,49),bgYellow:m(43,49),bgBlue:m(44,49),bgMagenta:m(45,49),bgCyan:m(46,49),bgWhite:m(47,49),blackBright:m(90,39),redBright:m(91,39),greenBright:m(92,39),yellowBright:m(93,39),blueBright:m(94,39),magentaBright:m(95,39),cyanBright:m(96,39),whiteBright:m(97,39),bgBlackBright:m(100,49),bgRedBright:m(101,49),bgGreenBright:m(102,49),bgYellowBright:m(103,49),bgBlueBright:m(104,49),bgMagentaBright:m(105,49),bgCyanBright:m(106,49),bgWhiteBright:m(107,49)},YE=({useColor:J=ZE}={})=>J?vK:Object.keys(vK).reduce((Z,$)=>({...Z,[$]:String}),{}),{reset:lt,bold:at,dim:it,italic:st,underline:nt,inverse:tt,hidden:rt,strikethrough:ot,black:et,red:mK,green:uK,yellow:dK,blue:cK,magenta:Jr,cyan:Zr,white:$r,gray:pK,bgBlack:Xr,bgRed:lK,bgGreen:aK,bgYellow:iK,bgBlue:sK,bgMagenta:Yr,bgCyan:Qr,bgWhite:Kr,blackBright:Gr,redBright:Fr,greenBright:qr,yellowBright:Wr,blueBright:Hr,magentaBright:Vr,cyanBright:zr,whiteBright:Ur,bgBlackBright:Mr,bgRedBright:jr,bgGreenBright:Ar,bgYellowBright:Lr,bgBlueBright:wr,bgMagentaBright:Rr,bgCyanBright:Dr,bgWhiteBright:Pr}=YE();class e{static red(J){return mK(J)}static green(J){return uK(J)}static blue(J){return cK(J)}static gray(J){return pK(J)}static yellow(J){return dK(J)}static bgRed(J){return lK(J)}static bgGreen(J){return aK(J)}static bgBlue(J){return sK(J)}static bgYellow(J){return iK(J)}}class M${constructor(J){this.commands=[],this.name=J}getCommands(){return this.commands.filter((J)=>J.name!=="")}getCommand(J){var Z;return(Z=this.commands.find(($)=>$.name===J))!==null&&Z!==void 0?Z:this.commands.find(($)=>$.alias.includes(J))}createCommand(J){this.addHelpFlag(J),this.commands.push(J)}findDuplicate(){const J=new Set,Z=[],$=[],X=[];return this.commands.forEach((Y)=>{if(J.size===J.add(Y.name).size)Z.push(Y.name);const Q=[],K=new Set;if(Y.arguments.forEach((q)=>{if(K.size===K.add(q.name).size)Q.push(q.name)}),Q.length>0)$.push({command:Y.name,arguments:Q});const G=[],F=new Set;if(Y.options.forEach((q)=>{if(F.size===F.add(q.flag).size)G.push(q.flag);if(q.type==="boolean"&&q.shorthand&&F.size===F.add(q.shorthand).size)G.push(q.shorthand)}),G.length>0)X.push({command:Y.name,options:G})}),{isDuplicate:Z.length>0||$.length>0||X.length>0,commands:Z,arguments:$,options:X}}addHelpFlag(J){J.options.push({type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"})}}var sG=$4(iG(),1);class B$ extends sG.default{constructor(J){super(J)}static termsWidth(...J){return Math.max(...J)}}class d6 extends B${constructor(J=30){super({colWidths:[J,process.stdout.columns-J],wordWrap:!0,chars:{top:"","top-mid":"","top-left":"","top-right":"",bottom:"","bottom-mid":"","bottom-left":"","bottom-right":"",left:"","left-mid":"",mid:"","mid-mid":"",right:"","right-mid":"",middle:""}})}}class $6{static rootHelp(J,Z){this.outputRoot+=e.yellow("USAGE"),this.outputRoot+=this.br(),this.outputRoot+=` ${J.name} [options] <command>`,this.outputRoot+=this.br(),this.outputRoot+=this.br(),this.outputRoot+=e.yellow("COMMANDS"),this.outputRoot+=this.br();const $=d6.termsWidth($6.commandTermLength(J.getCommands()),$6.optionTermLength(Z)),X=new d6($+this.separatorLength+Math.round($/2));J.getCommands().forEach((Q)=>{X.push([e.green(Q.name),e.gray(Q.summary)])}),this.outputRoot+=X.toString(),this.outputRoot+=this.br();const Y=new d6($+this.separatorLength+Math.round($/2));this.outputRoot+=this.br(),this.outputRoot+=e.yellow("OPTIONS"),this.outputRoot+=this.br(),Z.forEach((Q)=>{let K=e.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${e.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,e.gray(Q.description)])}),this.outputRoot+=Y.toString(),this.outputRoot+=this.br(),console.log(this.outputRoot)}static commandHelp(J,Z){if(this.output+=e.yellow("USAGE"),this.output+=this.br(),this.output+=` ${J.name} ${Z.name}`,Z.options.length)this.output+=" [options]";Z.arguments.forEach((Q)=>{this.output+=` <${Q.name}>`}),this.output+=this.br(),this.output+=this.br(),this.output+=e.yellow("ARGUMENTS"),this.output+=this.br();const $=d6.termsWidth($6.argumentTermLength(Z.arguments),$6.optionTermLength(Z.options)),X=new d6($+this.separatorLength+Math.round($/2));Z.arguments.forEach((Q)=>{X.push([e.green(Q.name),e.gray(Q.description)])}),this.output+=X.toString(),this.output+=this.br(),this.output+=this.br(),this.output+=e.yellow("OPTIONS"),this.output+=this.br();const Y=new d6($+this.separatorLength+Math.round($/2));if(Z.options.forEach((Q)=>{let K=e.green(Q.flag);if(Q.type==="boolean"&&Q.shorthand)K+=`, ${e.green(Q.shorthand)}`;if(Q.type==="boolean")Y.push([K,e.gray(Q.description)])}),this.output+=Y.toString(),this.output+=this.br(),Z.alias.length)this.output+=this.br(),this.output+=e.yellow("ALIAS"),this.output+=this.br(),this.output+=` ${e.green(Z.alias.join(","))}`;console.log(this.output)}static br(J=1){let Z="";for(let $=0;$<J;$++)Z+="\n";return Z}static commandTermLength(J){return J.reduce((Z,$)=>{return Math.max(Z,$.name.length)},0)}static optionTermLength(J){return J.reduce((Z,$)=>{return Math.max(Z,$.flag.length)},0)}static argumentTermLength(J){return J.reduce((Z,$)=>{return Math.max(Z,$.name.length)},0)}}$6.separatorLength=10;$6.outputRoot="";$6.output="";var E$=$4(U$(),1);class b9{static convert(J){const Z={};for(let $=0;$<J.length;$++){const X=J[$];if(Z[X.flag]=X.type==="boolean"?Boolean:String,X.type=="boolean"&&X.shorthand)Z[X.shorthand]=X.flag}return Z}static parseRoot(J,Z){try{const $=this.convert(Z);return E$.default($,{argv:J.slice(2)})}catch($){throw $}}static parse(J,Z,$){try{const X=this.convert($),Y=E$.default(X,{argv:J.slice(3)});return{args:m4.parse(Y._,Z),opts:Y}}catch(X){throw X}}}var lh=$4(KV(),1);class GV{constructor(J,Z){if(Z)this.version=Z;else this.version=this.packageVersion();this.command=new M$(J)}packageVersion(){const J=ah(import.meta.url),{version:Z}=J("../package.json");return Z}register(J){this.command.createCommand(J)}run(J){try{const Z=this.command.findDuplicate();if(Z.isDuplicate){if(Z.commands.length)console.error(e.red("[ERROR] Duplicate commands")),console.error(Z.commands);if(Z.arguments.length)console.error(e.red("[ERROR] Duplicate arguments")),console.error(Z.arguments);if(Z.options.length)console.error(e.red("[ERROR] Duplicate options")),console.error(Z.options);return}if(m4.list(J).length===0){const Q=[{type:"boolean",flag:"--version",shorthand:"-v",description:"Display version"},{type:"boolean",flag:"--help",shorthand:"-h",description:"Display help"}];if(b9.parseRoot(J,Q)["--version"])return console.log(this.version);return $6.rootHelp(this.command,Q)}let X=this.command.getCommand(J[2]);if(!X)X=this.command.getCommand("");if(!X)throw new Error("Command not found");const Y=b9.parse(J,X.arguments,X.options);if(X.args=Y.args,X.opts=Y.opts,X.opts["--help"])return $6.commandHelp(this.command,X);m4.requireArguments(X.args),X.handle()}catch(Z){if(Z instanceof Error)return console.error(e.red(`[ERROR] ${Z.message}`));return console.error(Z)}}}function XJ(J,Z,$){$(new K4(404))}class b0 extends Error{constructor(J){super(J.message);Object.setPrototypeOf(this,new.target.prototype),this.code=J.code,this.status=J.status,this.message=J.message,this.errors=J.errors,Error.captureStackTrace(this)}}var V5=(J)=>{if(J instanceof b0)return J.isOperational;return!1};function YJ(J,Z,$,X){if(J instanceof b0&&V5(J)){const Q={name:J.name,code:J.code,status:J.status,message:J.message};if(J.errors)Q.errors=J.errors;return $.status(J.code).json(Q),X(J)}const Y={name:"ServerError",code:500,status:"Internal Server Error",message:"Sorry something went wrong."};$.status(500).json(Y),X(J)}function G4(J){if(typeof J==="number")return FV.find((Z)=>{return Z.code===J});else return FV.find((Z)=>{return Z.status===J})}var FV=[{name:"ClientError",code:400,status:"Bad Request",message:"The server cannot process the request."},{name:"ClientError",code:401,status:"Unauthorized",message:"Authentication credentials is invalid."},{name:"ClientError",code:403,status:"Forbidden",message:"Don't have necessary permissions for this resource."},{name:"ClientError",code:404,status:"Not Found",message:"The URL is not recognized or endpoint is valid but the resource itself does not exist."},{name:"ClientError",code:422,status:"Unprocessable Entity",message:"The request was well-formed but was unable to be followed due to semantic errors."},{name:"ClientError",code:429,status:"Too Many Requests",message:"Sent too many requests in a given amount of time."},{name:"ServerError",code:500,status:"Internal Server Error",message:"An unexpected condition was encountered."}];class K4 extends b0{constructor(J,Z){const $=G4(J);if(!$)throw new Error(`Error codeStatus "${J}" not found`);const X=$;if(Z)X.errors=Z;super(X)}get isOperational(){return!0}get name(){return"ApiError"}}var cB=$4(G$(),1);import X71 from"fs";import Q71 from"path";import F71 from"fs";import W71 from"path";import z71 from"fs";var EK=(J)=>J[0].toUpperCase()+J.slice(1);var O9=(J)=>{return J.replace(/(?:^\w|[A-Z]|\b\w)/g,function(Z,$){return $===0?Z.toLowerCase():Z.toUpperCase()}).replace(/[^0-9a-zA-Z]/g,"")};var g4=(J)=>EK(O9(J));var S1=(J)=>J.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();import s7 from"fs";import _B from"path";class F$ extends L8{constructor(){super({name:"make:command",description:"Make a new console command",summary:"Make a new console command",arguments:[{name:"name",description:"Name of console command"}],options:[]})}async handle(){if(s7.existsSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}`)){console.error(e.red("Command directory is exists"));return}s7.mkdirSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}`,{recursive:!0});const J=s7.readFileSync(_B.resolve(Z4,"./command/index.command.ts")).toString().replace("[name]",S1(this.args.name)).replace("NewCommand",`${g4(this.args.name)}Command`);s7.writeFileSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}/index.command.ts`,J);const Z=s7.readFileSync(_B.resolve(Z4,"./command/index.spec.ts")).toString().replace(/NewCommand/g,`${g4(this.args.name)}Command`).replace(/newCommand/g,`${O9(this.args.name)}Command`);s7.writeFileSync(`${process.cwd()}/src/console/commands/${S1(this.args.name)}/index.spec.ts`,Z),console.info(`src/console/commands/${S1(this.args.name)}/index.command.ts`,"has been created"),console.info(`src/console/commands/${S1(this.args.name)}/index.spec.ts`,"has been created")}}import m6 from"fs";import q$ from"path";class W$ extends L8{constructor(){super({name:"make:middleware",description:"Make a new middleware",summary:"Make a new middleware",arguments:[{name:"name",description:"Name of middleware"}],options:[{type:"boolean",flag:"--configurable",shorthand:"-c",description:"Export a function which accepts an options"}]})}async handle(){if(m6.existsSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}`)){console.error(e.red("Middleware directory is exists"));return}if(m6.mkdirSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}`,{recursive:!0}),this.opts["--configurable"])this.copyConfigureableMiddleware();else this.copyMiddleware()}copyMiddleware(){const J=m6.readFileSync(q$.resolve(Z4,"./middleware/new.middleware.ts")).toString().replace("NewMiddleware",`${g4(this.args.name)}Middleware`);m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.middleware.ts`,J);const Z=m6.readFileSync(q$.resolve(Z4,"./middleware/new.spec.ts")).toString().replace("new.middleware.ts","index.middleware.ts");m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.spec.ts`,Z),console.info(`src/middleware/${S1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${S1(this.args.name)}/index.spec.ts`,"has been created")}copyConfigureableMiddleware(){const J=m6.readFileSync(q$.resolve(Z4,"./middleware/configurable.middleware.ts")).toString().replace("NewMiddleware",`${g4(this.args.name)}Middleware`);m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.middleware.ts`,J);const Z=m6.readFileSync(q$.resolve(Z4,"./middleware/configurable.spec.ts")).toString().replace("configurable.middleware.ts","index.middleware.ts");m6.writeFileSync(`${process.cwd()}/src/middleware/${S1(this.args.name)}/index.spec.ts`,Z),console.info(`src/middleware/${S1(this.args.name)}/index.middleware.ts`,"has been created"),console.info(`src/middleware/${S1(this.args.name)}/index.spec.ts`,"has been created")}}class CK{command;constructor(J){this.command=J}async register(){this.command.register(new F$),this.command.register(new W$)}}class hK{J;session;constructor(J){this.adapter=J}async open(){await this.adapter.open()}async close(){await this.adapter.close()}database(J){return this.adapter.database(J),this}collection(J){return this.adapter.collection(J),this}async listCollections(){return this.adapter.listCollections()}startSession(){return this.adapter.startSession()}async endSession(){await this.adapter.endSession()}startTransaction(){this.adapter.startTransaction()}async commitTransaction(){await this.adapter.commitTransaction()}async abortTransaction(){await this.adapter.abortTransaction()}async createIndex(J,Z,$){await this.adapter.createIndex(J,Z,$)}async createCollection(J,Z){await this.adapter.createCollection(J,Z)}async dropCollection(J,Z){await this.adapter.dropCollection(J,Z)}async updateSchema(J,Z){await this.adapter.updateSchema(J,Z)}async create(J,Z){return await this.adapter.create(J,Z)}async createMany(J,Z){return await this.adapter.createMany(J,Z)}async retrieveAll(J,Z){return await this.adapter.retrieveAll(J,Z)}async retrieve(J,Z){return await this.adapter.retrieve(J,Z)}async update(J,Z,$){return await this.adapter.update(J,Z,$)}async updateMany(J,Z,$){return await this.adapter.updateMany(J,Z,$)}async delete(J,Z){return await this.adapter.delete(J,Z)}async deleteMany(J,Z){return await this.adapter.deleteMany(J,Z)}async deleteAll(J){return await this.adapter.deleteAll(J)}async aggregate(J,Z,$){return await this.adapter.aggregate(J,Z,$)}}var t7=$4(G$(),1);function fB(J){const Z=Object.prototype.toString.call(J);if(J instanceof Date||typeof J==="object"&&Z==="[object Date]")return new J.constructor(+J);else if(typeof J==="number"||Z==="[object Number]"||typeof J==="string"||Z==="[object String]")return new Date(J);else return new Date(NaN)}function vB(J){return J instanceof Date||typeof J==="object"&&Object.prototype.toString.call(J)==="[object Date]"}function H$(J){if(!vB(J)&&typeof J!=="number")return!1;const Z=fB(J);return!isNaN(Number(Z))}var n7=$4(G$(),1);class z0{db;constructor(J){this.db=J}async createUnique(J,Z){await this.db.createIndex(J,Z,{unique:!0,collation:{locale:"en",strength:2}})}async createUniqueIfNotNull(J,Z){await this.db.createIndex(J,Z,{unique:!0,sparse:!0,collation:{locale:"en",strength:2}})}async isExists(J){return(await this.db.listCollections()).some(function($){return $.name===J})}static stringToObjectId(J){if(J==null)return null;if(Array.isArray(J))return J.map((Z)=>{return z0.stringToObjectId(Z)});else if(typeof J==="object"&&!H$(J))return Object.keys(J).reduce((Z,$)=>{const X=z0.stringToObjectId(J[$]);return Z[$]=X,Z},{});else if(typeof J==="string"&&n7.ObjectId.isValid(J)&&J===new n7.ObjectId(J).toString())return new n7.ObjectId(J);return J}static objectIdToString(J){if(J==null)return null;if(Array.isArray(J))return J.map((Z)=>{return z0.objectIdToString(Z)});else if(typeof J==="object"&&n7.ObjectId.isValid(J))return J.toString();else if(typeof J==="object"&&!H$(J))return Object.keys(J).reduce((Z,$)=>{if(n7.ObjectId.isValid(J)||H$(J))return J.toString();else{const X=z0.objectIdToString(J[$]);return Z[$]=X,Z}},{});return J}}function xB(J=1){if(typeof J==="string")return parseInt(J);return J}function bB(J=10){if(typeof J==="string")return parseInt(J);return J}function ft(J,Z){return(xB(J)-1)*bB(Z)}function vt(J){return J}function xt(J="",Z=[]){const $=mB(gB(J));return uB($,Z)}function gB(J){return J.split(" ").join().split(",").filter((Z)=>Z)}function mB(J,Z=1){const $={};for(let X=0;X<J.length;X++)$[`${J[X].trim()}`]=Z;return $}function uB(J,Z){for(let $=0;$<Z.length;$++)J[`${Z[$]}`]=0;return J}function bt(J){const Z={};if(J)J.split(",").forEach(function($){if($.charAt(0)==="-")$=$.substring(1),Z[$.trim()]=-1;else Z[$.trim()]=1});return Z}var M1={page:xB,limit:bB,skip:ft,sort:bt,fields:xt,filter:vt,filterExludeFields:uB,convertStringToArray:gB,convertArrayToObject:mB};class SK{Z;client;_database;_collection;session;constructor(J,Z){this.databaseName=Z;const $={};this.client=new t7.MongoClient(J,$),this.database(Z)}async open(){await this.client.connect()}async close(){await this.client.close()}database(J,Z){return this._database=this.client.db(J,Z),this}collection(J,Z){if(!this._database)throw new Error("Database not found");return this._collection=this._database.collection(J,Z),this}async listCollections(){if(!this._database)throw new Error("Database not found");return await this._database.listCollections().toArray()}async createIndex(J,Z,$){if(!this._database)throw new Error("Database not found");await this._database.createIndex(J,Z,$)}async updateSchema(J,Z){if(!this._database)throw new Error("Database not found");await this._database.command({collMod:J,validator:{$jsonSchema:Z}})}async createCollection(J,Z){if(!this._database)throw new Error("Database not found");await this._database.createCollection(J,Z)}async dropCollection(J,Z){if(!this._database)throw new Error("Database not found");await this._database.dropCollection(J,Z)}startSession(){return this.session=this.client.startSession(),this.session}async endSession(){await this.session?.endSession()}startTransaction(){this.session?.startTransaction()}async commitTransaction(){await this.session?.commitTransaction()}async abortTransaction(){await this.session?.abortTransaction()}async create(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z;return{insertedId:(await this._collection.insertOne(J,$)).insertedId.toString()}}async createMany(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z,X=await this._collection.insertMany(J,$),Y=[];return Object.values(X.insertedIds).forEach((Q)=>{Y.push(Q.toString())}),{insertedIds:Y,insertedCount:X.insertedCount}}async retrieveAll(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z,X=this._collection.find(z0.stringToObjectId(J.filter??{}),$).limit(M1.limit(J.pageSize)).skip(M1.skip(M1.page(J.page),M1.limit(J.pageSize)));if(J.sort&&M1.sort(J.sort))X.sort(M1.sort(J.sort));if(M1.fields(J.fields,J.excludeFields))X.project(M1.fields(J.fields,J.excludeFields));const Y=await X.toArray(),Q=await this._collection.countDocuments(J.filter??{},$);return{data:z0.objectIdToString(Y),pagination:{page:M1.page(J.page),pageCount:Math.ceil(Q/M1.limit(J.pageSize)),pageSize:M1.limit(J.pageSize),totalDocument:Q}}}async retrieve(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z,X=await this._collection.findOne({_id:new t7.ObjectId(J)},$);return z0.objectIdToString(X)}async update(J,Z,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateOne({_id:new t7.ObjectId(J)},{$set:z0.stringToObjectId(Z)},X);return{modifiedCount:Y.modifiedCount,matchedCount:Y.matchedCount}}async updateMany(J,Z,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=await this._collection.updateMany(J,{$set:z0.stringToObjectId(Z)},X);return{matchedCount:Y.matchedCount,modifiedCount:Y.modifiedCount}}async delete(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z;return{deletedCount:(await this._collection.deleteOne({_id:new t7.ObjectId(J)},$)).deletedCount}}async deleteMany(J,Z){if(!this._collection)throw new Error("Collection not found");const $=Z;return{deletedCount:(await this._collection.deleteMany({_id:{$in:z0.stringToObjectId(J)}},$)).deletedCount}}async deleteAll(J){if(!this._collection)throw new Error("Collection not found");const Z=J;return{deletedCount:(await this._collection.deleteMany({},Z)).deletedCount}}async aggregate(J,Z,$){if(!this._collection)throw new Error("Collection not found");const X=$,Y=this._collection.aggregate([...J,{$skip:(M1.page(Z.page)-1)*M1.limit(Z.pageSize)},{$limit:M1.limit(Z.pageSize)}],X);if(Z.sort&&M1.sort(Z.sort))Y.sort(M1.sort(Z.sort));if(M1.fields(Z.fields,Z.excludeFields))Y.project(M1.fields(Z.fields,Z.excludeFields));const Q=await Y.toArray(),G=await this._collection.aggregate([...J,{$count:"totalDocument"}],X).toArray(),F=G.length?G[0].totalDocument:0;return{data:z0.objectIdToString(Q),pagination:{page:M1.page(Z.page),pageCount:Math.ceil(F/M1.limit(Z.pageSize)),pageSize:M1.limit(Z.pageSize),totalDocument:F}}}}function gt(J,Z){Z.errors={},(J.errInfo?.details.schemaRulesNotSatisfied[0].propertiesNotSatisfied).forEach((X)=>{const Y={};Y[X.propertyName]=[X.details[0].reason],Z.errors=Y})}function mt(J,Z){if(Object.keys(J.keyPattern).length===1)Z.errors={[Object.keys(J.keyPattern)[0]]:[`The ${Object.keys(J.keyPattern)[0]} is exists.`]};else{const $=Object.keys(J.keyPattern).reduce((Y,Q,K)=>{if(K===0)Y+="'";if(Y+=`${Q.toString()}`,K===Object.keys(J.keyPattern).length-1)Y+="'";else Y+=", ";return Y},""),X=Object.keys(J.keyPattern).reduce((Y,Q)=>{return Y[Q]=[`The combination of ${$.toString()} is exists.`],Y},{});Z.errors=X}}class OK extends b0{constructor(J){const Z=G4(400);if(J.code===121)gt(J,Z);else if(J.code===11000)mt(J,Z);super(Z);Object.setPrototypeOf(this,new.target.prototype)}get isOperational(){return!0}get name(){return"MongoErrorHandler"}}class kK{constructor(){this.modelCount=1,this.modelSequence=[],this.modelState={}}count(J){return this.modelCount=J,this}sequence(J){return this.modelSequence=J,this}state(J){return this.modelState=J,this}useSequence(){const J=[];for(let Z=0;Z<this.modelCount;Z++){const $=this.definition();let X={};if(this.modelSequence.length)X=this.modelSequence[Z%this.modelSequence.length];J.push(Object.assign({},this.useState(Object.assign(Object.assign({},$),X))))}return J}useState(J){return Object.assign(Object.assign({},J),this.modelState)}make(J=1){if(this.count(J),this.modelCount===1)return this.makeOne();return this.makeMany(J)}makeOne(){return this.useState(this.definition())}makeMany(J){return this.count(J),this.useSequence()}}class dB{app;server=null;constructor(J){this.app=J}listen(J,Z){return new Promise(($,X)=>{if(Z)this.server=this.app.listen(J,Z).once("listening",$).once("error",X);else this.server=this.app.listen(J).once("listening",$).once("error",X)})}async start(J,Z){await this.listen(J,Z)}stop(){this.server?.close(),this.server=null}get host(){const J=this.server?.address();if(J?.address==="0.0.0.0"||J?.address==="::")return"localhost";else return J?.address}get port(){return this.server?.address()?.port}get url(){return`http://${this.host}${this.port!==80?`:${this.port}`:""}`}}var Z4=import.meta.path.replace("/index.ts","/../stub").replace("/index.js","/../stub"),y91=L8,_91=CK,f91=hK,v91=SK,x91=z0,b91=M1,g91=cB.MongoServerError,m91=OK,u91={ApiError:K4,BaseError:b0,isTrustedError:V5,getHttpError:G4,errorHandlerMiddleware:YJ,invalidPathMiddleware:XJ};export{Z4 as stubDir,dB as BaseServer,g91 as BaseMongoServerError,m91 as BaseMongoErrorHandler,b91 as BaseMongoDBQuerystring,x91 as BaseMongoDBHelper,v91 as BaseMongoDBConnection,kK as BaseFactory,u91 as BaseErrorHandler,f91 as BaseDatabaseConnection,_91 as BaseConsoleKernel,y91 as BaseConsoleCommand,GV as BaseConsoleCli};
|